summaryrefslogtreecommitdiff
path: root/source3/lib/netapi/examples/server
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-10-31 15:34:19 +0100
committerGünther Deschner <gd@samba.org>2009-02-06 11:10:36 +0100
commit7fa534bd7c55be91a7ad209e1271a69163256288 (patch)
tree4e9780d4ed56e95dddb7a5fd0ae6faa6a3859183 /source3/lib/netapi/examples/server
parentbbfc11644d7aeb353b5bc1e7131f40a4f82ceaae (diff)
downloadsamba-7fa534bd7c55be91a7ad209e1271a69163256288.tar.gz
samba-7fa534bd7c55be91a7ad209e1271a69163256288.tar.bz2
samba-7fa534bd7c55be91a7ad209e1271a69163256288.zip
netapi: include more SERVER_INFO_X levels in example code.
Guenther
Diffstat (limited to 'source3/lib/netapi/examples/server')
-rw-r--r--source3/lib/netapi/examples/server/server_getinfo.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/source3/lib/netapi/examples/server/server_getinfo.c b/source3/lib/netapi/examples/server/server_getinfo.c
index afd2edd05d..b6a665e4e0 100644
--- a/source3/lib/netapi/examples/server/server_getinfo.c
+++ b/source3/lib/netapi/examples/server/server_getinfo.c
@@ -38,6 +38,10 @@ int main(int argc, const char **argv)
struct SERVER_INFO_100 *i100;
struct SERVER_INFO_101 *i101;
struct SERVER_INFO_102 *i102;
+ struct SERVER_INFO_402 *i402;
+ struct SERVER_INFO_403 *i403;
+ struct SERVER_INFO_502 *i502;
+ struct SERVER_INFO_503 *i503;
struct SERVER_INFO_1005 *i1005;
poptContext pc;
@@ -112,6 +116,18 @@ int main(int argc, const char **argv)
printf("licenses: %d\n", i102->sv102_licenses);
printf("userpath: %s\n", i102->sv102_userpath);
break;
+ case 402:
+ i402 = (struct SERVER_INFO_402 *)buffer;
+ break;
+ case 403:
+ i403 = (struct SERVER_INFO_403 *)buffer;
+ break;
+ case 502:
+ i502 = (struct SERVER_INFO_502 *)buffer;
+ break;
+ case 503:
+ i503 = (struct SERVER_INFO_503 *)buffer;
+ break;
case 1005:
i1005 = (struct SERVER_INFO_1005 *)buffer;
printf("comment: %s\n", i1005->sv1005_comment);