netapi: add skeleton for NetUserModalsGet and NetUserModalsSet.
authorGünther Deschner <gd@samba.org>
Thu, 31 Jul 2008 14:43:27 +0000 (16:43 +0200)
committerGünther Deschner <gd@samba.org>
Mon, 11 Aug 2008 17:12:36 +0000 (19:12 +0200)
Guenther

source/lib/netapi/libnetapi.c
source/lib/netapi/libnetapi.h
source/lib/netapi/user.c

index fe572383038ddbd57c93f6af913c3d34a7f08a27..adc875d213ecd393f3f39c66dce4754f04f0cd4d 100644 (file)
@@ -725,6 +725,96 @@ NET_API_STATUS NetUserSetInfo(const char * server_name /* [in] */,
        return r.out.result;
 }
 
+/****************************************************************
+ NetUserModalsGet
+****************************************************************/
+
+NET_API_STATUS NetUserModalsGet(const char * server_name /* [in] */,
+                               uint32_t level /* [in] */,
+                               uint8_t **buffer /* [out] [ref] */)
+{
+       struct NetUserModalsGet 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;
+
+       /* Out parameters */
+       r.out.buffer = buffer;
+
+       if (DEBUGLEVEL >= 10) {
+               NDR_PRINT_IN_DEBUG(NetUserModalsGet, &r);
+       }
+
+       if (LIBNETAPI_LOCAL_SERVER(server_name)) {
+               werr = NetUserModalsGet_l(ctx, &r);
+       } else {
+               werr = NetUserModalsGet_r(ctx, &r);
+       }
+
+       r.out.result = W_ERROR_V(werr);
+
+       if (DEBUGLEVEL >= 10) {
+               NDR_PRINT_OUT_DEBUG(NetUserModalsGet, &r);
+       }
+
+       return r.out.result;
+}
+
+/****************************************************************
+ NetUserModalsSet
+****************************************************************/
+
+NET_API_STATUS NetUserModalsSet(const char * server_name /* [in] */,
+                               uint32_t level /* [in] */,
+                               uint8_t *buffer /* [in] [ref] */,
+                               uint32_t *parm_err /* [out] [ref] */)
+{
+       struct NetUserModalsSet 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.buffer = buffer;
+
+       /* Out parameters */
+       r.out.parm_err = parm_err;
+
+       if (DEBUGLEVEL >= 10) {
+               NDR_PRINT_IN_DEBUG(NetUserModalsSet, &r);
+       }
+
+       if (LIBNETAPI_LOCAL_SERVER(server_name)) {
+               werr = NetUserModalsSet_l(ctx, &r);
+       } else {
+               werr = NetUserModalsSet_r(ctx, &r);
+       }
+
+       r.out.result = W_ERROR_V(werr);
+
+       if (DEBUGLEVEL >= 10) {
+               NDR_PRINT_OUT_DEBUG(NetUserModalsSet, &r);
+       }
+
+       return r.out.result;
+}
+
 /****************************************************************
  NetQueryDisplayInformation
 ****************************************************************/
index 5c9e2e2cef1a2a060422156a353c9b21b33f3e26..8e7a662d60ec1baa6519a1dc4de3a37a5eba6d8d 100644 (file)
@@ -125,6 +125,21 @@ WERROR NetUserSetInfo_r(struct libnetapi_ctx *ctx,
                        struct NetUserSetInfo *r);
 WERROR NetUserSetInfo_l(struct libnetapi_ctx *ctx,
                        struct NetUserSetInfo *r);
+NET_API_STATUS NetUserModalsGet(const char * server_name /* [in] */,
+                               uint32_t level /* [in] */,
+                               uint8_t **buffer /* [out] [ref] */);
+WERROR NetUserModalsGet_r(struct libnetapi_ctx *ctx,
+                         struct NetUserModalsGet *r);
+WERROR NetUserModalsGet_l(struct libnetapi_ctx *ctx,
+                         struct NetUserModalsGet *r);
+NET_API_STATUS NetUserModalsSet(const char * server_name /* [in] */,
+                               uint32_t level /* [in] */,
+                               uint8_t *buffer /* [in] [ref] */,
+                               uint32_t *parm_err /* [out] [ref] */);
+WERROR NetUserModalsSet_r(struct libnetapi_ctx *ctx,
+                         struct NetUserModalsSet *r);
+WERROR NetUserModalsSet_l(struct libnetapi_ctx *ctx,
+                         struct NetUserModalsSet *r);
 NET_API_STATUS NetQueryDisplayInformation(const char * server_name /* [in] [unique] */,
                                          uint32_t level /* [in] */,
                                          uint32_t idx /* [in] */,
index 4bcab4c372166170555e889083c1e0bbe114e2f3..f52941235b1a43a63dd762f9000d8ceee0d5adf0 100644 (file)
@@ -1408,3 +1408,38 @@ WERROR NetUserSetInfo_l(struct libnetapi_ctx *ctx,
        return WERR_NOT_SUPPORTED;
 }
 
+/****************************************************************
+****************************************************************/
+
+WERROR NetUserModalsGet_r(struct libnetapi_ctx *ctx,
+                         struct NetUserModalsGet *r)
+{
+       return WERR_NOT_SUPPORTED;
+}
+
+/****************************************************************
+****************************************************************/
+
+WERROR NetUserModalsGet_l(struct libnetapi_ctx *ctx,
+                         struct NetUserModalsGet *r)
+{
+       return WERR_NOT_SUPPORTED;
+}
+
+/****************************************************************
+****************************************************************/
+
+WERROR NetUserModalsSet_r(struct libnetapi_ctx *ctx,
+                         struct NetUserModalsSet *r)
+{
+       return WERR_NOT_SUPPORTED;
+}
+
+/****************************************************************
+****************************************************************/
+
+WERROR NetUserModalsSet_l(struct libnetapi_ctx *ctx,
+                         struct NetUserModalsSet *r)
+{
+       return WERR_NOT_SUPPORTED;
+}