[SCM] Samba Shared Repository - branch v3-2-test updated -
release-3-2-0pre2-879-g6ec4a62
Günther Deschner
gd at samba.org
Sun Apr 13 17:06:14 GMT 2008
The branch, v3-2-test has been updated
via 6ec4a62b6d584f6745c3285474372f235614b598 (commit)
from afd0e925dc63b6f776caa5fd442c4e48e8349682 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test
- Log -----------------------------------------------------------------
commit 6ec4a62b6d584f6745c3285474372f235614b598
Author: Günther Deschner <gd at samba.org>
Date: Sun Apr 13 19:04:18 2008 +0200
libnetapi: add NetQueryDisplayInformation skeleton.
Guenther
-----------------------------------------------------------------------
Summary of changes:
source/lib/netapi/libnetapi.c | 52 +++++++++++++++++++++++++++++++++++++++++
source/lib/netapi/libnetapi.h | 11 ++++++++
source/lib/netapi/user.c | 19 +++++++++++++++
3 files changed, 82 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/lib/netapi/libnetapi.c b/source/lib/netapi/libnetapi.c
index fd1802f..e71adc6 100644
--- a/source/lib/netapi/libnetapi.c
+++ b/source/lib/netapi/libnetapi.c
@@ -585,3 +585,55 @@ NET_API_STATUS NetUserEnum(const char * server_name /* [in] [unique] */,
return r.out.result;
}
+/****************************************************************
+ NetQueryDisplayInformation
+****************************************************************/
+
+NET_API_STATUS NetQueryDisplayInformation(const char * server_name /* [in] [unique] */,
+ uint32_t level /* [in] */,
+ uint32_t idx /* [in] */,
+ uint32_t entries_requested /* [in] */,
+ uint32_t prefmaxlen /* [in] */,
+ uint32_t *entries_read /* [out] [ref] */,
+ void **buffer /* [out] [noprint,ref] */)
+{
+ struct NetQueryDisplayInformation r;
+ struct libnetapi_ctx *ctx = NULL;
+ NET_API_STATUS status;
+ WERROR werr;
+
+ status = libnetapi_getctx(&ctx);
+ if (status != 0) {
+ return status;
+ }
+
+ /* In parameters */
+ r.in.server_name = server_name;
+ r.in.level = level;
+ r.in.idx = idx;
+ r.in.entries_requested = entries_requested;
+ r.in.prefmaxlen = prefmaxlen;
+
+ /* Out parameters */
+ r.out.entries_read = entries_read;
+ r.out.buffer = buffer;
+
+ if (DEBUGLEVEL >= 10) {
+ NDR_PRINT_IN_DEBUG(NetQueryDisplayInformation, &r);
+ }
+
+ if (LIBNETAPI_LOCAL_SERVER(server_name)) {
+ werr = NetQueryDisplayInformation_l(ctx, &r);
+ } else {
+ werr = NetQueryDisplayInformation_r(ctx, &r);
+ }
+
+ r.out.result = W_ERROR_V(werr);
+
+ if (DEBUGLEVEL >= 10) {
+ NDR_PRINT_OUT_DEBUG(NetQueryDisplayInformation, &r);
+ }
+
+ return r.out.result;
+}
+
diff --git a/source/lib/netapi/libnetapi.h b/source/lib/netapi/libnetapi.h
index 5cd4165..7aff355 100644
--- a/source/lib/netapi/libnetapi.h
+++ b/source/lib/netapi/libnetapi.h
@@ -100,4 +100,15 @@ WERROR NetUserEnum_r(struct libnetapi_ctx *ctx,
struct NetUserEnum *r);
WERROR NetUserEnum_l(struct libnetapi_ctx *ctx,
struct NetUserEnum *r);
+NET_API_STATUS NetQueryDisplayInformation(const char * server_name /* [in] [unique] */,
+ uint32_t level /* [in] */,
+ uint32_t idx /* [in] */,
+ uint32_t entries_requested /* [in] */,
+ uint32_t prefmaxlen /* [in] */,
+ uint32_t *entries_read /* [out] [ref] */,
+ void **buffer /* [out] [noprint,ref] */);
+WERROR NetQueryDisplayInformation_r(struct libnetapi_ctx *ctx,
+ struct NetQueryDisplayInformation *r);
+WERROR NetQueryDisplayInformation_l(struct libnetapi_ctx *ctx,
+ struct NetQueryDisplayInformation *r);
#endif /* __LIBNETAPI_LIBNETAPI__ */
diff --git a/source/lib/netapi/user.c b/source/lib/netapi/user.c
index 31e5faa..f0ce26b 100644
--- a/source/lib/netapi/user.c
+++ b/source/lib/netapi/user.c
@@ -707,3 +707,22 @@ WERROR NetUserEnum_l(struct libnetapi_ctx *ctx,
return WERR_NOT_SUPPORTED;
}
+/****************************************************************
+****************************************************************/
+
+
+WERROR NetQueryDisplayInformation_r(struct libnetapi_ctx *ctx,
+ struct NetQueryDisplayInformation *r)
+{
+ return WERR_NOT_SUPPORTED;
+}
+
+/****************************************************************
+****************************************************************/
+
+
+WERROR NetQueryDisplayInformation_l(struct libnetapi_ctx *ctx,
+ struct NetQueryDisplayInformation *r)
+{
+ return WERR_NOT_SUPPORTED;
+}
--
Samba Shared Repository
More information about the samba-cvs
mailing list