diff options
author | Günther Deschner <gd@samba.org> | 2008-06-06 13:50:39 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-06-17 19:56:44 +0200 |
commit | ebbeddfdcd7b3782f5b6e58abb7af7d9484090ae (patch) | |
tree | 0a5d1ea2959b6831ca2697fdf0fa6cf3a2a30acb | |
parent | de7de69530b886e84627daa9597327dc4f2e0afb (diff) | |
download | samba-ebbeddfdcd7b3782f5b6e58abb7af7d9484090ae.tar.gz samba-ebbeddfdcd7b3782f5b6e58abb7af7d9484090ae.tar.bz2 samba-ebbeddfdcd7b3782f5b6e58abb7af7d9484090ae.zip |
netapi: add NetRemoteTOD() skeleton.
Guenther
(This used to be commit 78bc98cb55e36ef175f9c0f6fcd943781a514005)
-rw-r--r-- | source3/lib/netapi/libnetapi.c | 42 | ||||
-rw-r--r-- | source3/lib/netapi/libnetapi.h | 6 | ||||
-rw-r--r-- | source3/lib/netapi/serverinfo.c | 19 |
3 files changed, 67 insertions, 0 deletions
diff --git a/source3/lib/netapi/libnetapi.c b/source3/lib/netapi/libnetapi.c index 097086f12f..173c4d3c66 100644 --- a/source3/lib/netapi/libnetapi.c +++ b/source3/lib/netapi/libnetapi.c @@ -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; +} + diff --git a/source3/lib/netapi/libnetapi.h b/source3/lib/netapi/libnetapi.h index 911be7420b..12be1cc074 100644 --- a/source3/lib/netapi/libnetapi.h +++ b/source3/lib/netapi/libnetapi.h @@ -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__ */ diff --git a/source3/lib/netapi/serverinfo.c b/source3/lib/netapi/serverinfo.c index dd7a8808b4..f75779a653 100644 --- a/source3/lib/netapi/serverinfo.c +++ b/source3/lib/netapi/serverinfo.c @@ -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; +} + |