netapi: add NetRemoteTOD() skeleton.
authorGünther Deschner <gd@samba.org>
Fri, 6 Jun 2008 11:50:39 +0000 (13:50 +0200)
committerGünther Deschner <gd@samba.org>
Tue, 17 Jun 2008 17:56:44 +0000 (19:56 +0200)
Guenther
(This used to be commit 78bc98cb55e36ef175f9c0f6fcd943781a514005)

source3/lib/netapi/libnetapi.c
source3/lib/netapi/libnetapi.h
source3/lib/netapi/serverinfo.c

index 097086f12f7fb8b331a803b763da2990e99038d4..173c4d3c666228e321c1a8ccd3e421adf7ed6871 100644 (file)
@@ -1089,3 +1089,45 @@ NET_API_STATUS NetLocalGroupSetInfo(const char * server_name /* [in] */,
        return r.out.result;
 }
 
+/****************************************************************
+ NetRemoteTOD
+****************************************************************/
+
+NET_API_STATUS NetRemoteTOD(const char * server_name /* [in] */,
+                           uint8_t **buf /* [out] [ref] */)
+{
+       struct NetRemoteTOD 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;
+
+       /* Out parameters */
+       r.out.buf = buf;
+
+       if (DEBUGLEVEL >= 10) {
+               NDR_PRINT_IN_DEBUG(NetRemoteTOD, &r);
+       }
+
+       if (LIBNETAPI_LOCAL_SERVER(server_name)) {
+               werr = NetRemoteTOD_l(ctx, &r);
+       } else {
+               werr = NetRemoteTOD_r(ctx, &r);
+       }
+
+       r.out.result = W_ERROR_V(werr);
+
+       if (DEBUGLEVEL >= 10) {
+               NDR_PRINT_OUT_DEBUG(NetRemoteTOD, &r);
+       }
+
+       return r.out.result;
+}
+
index 911be7420b6860599a53353523a7f9b583b00d10..12be1cc074e13ae61c5b0d641df0dd2844446c90 100644 (file)
@@ -187,4 +187,10 @@ WERROR NetLocalGroupSetInfo_r(struct libnetapi_ctx *ctx,
                              struct NetLocalGroupSetInfo *r);
 WERROR NetLocalGroupSetInfo_l(struct libnetapi_ctx *ctx,
                              struct NetLocalGroupSetInfo *r);
+NET_API_STATUS NetRemoteTOD(const char * server_name /* [in] */,
+                           uint8_t **buf /* [out] [ref] */);
+WERROR NetRemoteTOD_r(struct libnetapi_ctx *ctx,
+                     struct NetRemoteTOD *r);
+WERROR NetRemoteTOD_l(struct libnetapi_ctx *ctx,
+                     struct NetRemoteTOD *r);
 #endif /* __LIBNETAPI_LIBNETAPI__ */
index dd7a8808b4100b406c512330efba3694e9a30310..f75779a6531f744a787f33b86b9508e0db332e82 100644 (file)
@@ -203,3 +203,22 @@ WERROR NetServerSetInfo_r(struct libnetapi_ctx *ctx,
  done:
        return werr;
 }
+
+/****************************************************************
+****************************************************************/
+
+WERROR NetRemoteTOD_r(struct libnetapi_ctx *ctx,
+                     struct NetRemoteTOD *r)
+{
+       return WERR_NOT_SUPPORTED;
+}
+
+/****************************************************************
+****************************************************************/
+
+WERROR NetRemoteTOD_l(struct libnetapi_ctx *ctx,
+                     struct NetRemoteTOD *r)
+{
+       return WERR_NOT_SUPPORTED;
+}
+