diff options
author | Günther Deschner <gd@samba.org> | 2008-04-10 21:31:12 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-04-10 21:31:12 +0200 |
commit | 1a8a8b776961c9220fa686cb60b7ab82a7c76a3d (patch) | |
tree | 70b49d75124cf94fce172e803fdb19768fc94f0c /source3/lib/netapi/examples | |
parent | d424a74f15b8d834ba2fb0db33cb8c8d87e20e0d (diff) | |
download | samba-1a8a8b776961c9220fa686cb60b7ab82a7c76a3d.tar.gz samba-1a8a8b776961c9220fa686cb60b7ab82a7c76a3d.tar.bz2 samba-1a8a8b776961c9220fa686cb60b7ab82a7c76a3d.zip |
Use SERVER_INFO_1005 in libnetapi.
Guenther
(This used to be commit 5f8793dd1d8a3694afb7f2d882cfb9990eb40b75)
Diffstat (limited to 'source3/lib/netapi/examples')
-rw-r--r-- | source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c b/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c index a4daf4fea7..fa1bafd5ae 100644 --- a/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c +++ b/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c @@ -48,10 +48,6 @@ #define SAFE_FREE(x) do { if ((x) != NULL) {free(x); x=NULL;} } while(0) -struct srvsvc_NetSrvInfo1005 { - const char *comment;/* [unique,charset(UTF16)] */ -}; - static gboolean verbose = FALSE; typedef struct join_state { @@ -173,10 +169,10 @@ static void callback_apply_description_change(GtkWidget *widget, struct join_state *state = (struct join_state *)data; NET_API_STATUS status = 0; uint32_t parm_err = 0; - struct srvsvc_NetSrvInfo1005 info1005; + struct SERVER_INFO_1005 info1005; GtkWidget *dialog; - info1005.comment = state->comment_new; + info1005.sv1005_comment = state->comment_new; status = NetServerSetInfo(NULL, 1005, (uint8_t *)&info1005, &parm_err); if (status) { @@ -1556,7 +1552,7 @@ static int initialize_join_state(struct join_state *state, } { - struct srvsvc_NetSrvInfo1005 *info1005 = NULL; + struct SERVER_INFO_1005 *info1005 = NULL; uint8_t *buffer = NULL; status = NetServerGetInfo(NULL, 1005, &buffer); @@ -1566,9 +1562,9 @@ static int initialize_join_state(struct join_state *state, return status; } - info1005 = (struct srvsvc_NetSrvInfo1005 *)buffer; + info1005 = (struct SERVER_INFO_1005 *)buffer; - state->comment = strdup(info1005->comment); + state->comment = strdup(info1005->sv1005_comment); if (!state->comment) { return -1; } |