summaryrefslogtreecommitdiff
path: root/source3/lib/netapi/examples/common.h
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-04-08 14:34:30 +0200
committerGünther Deschner <gd@samba.org>2008-04-08 14:34:30 +0200
commitcccaef9e0896e9a3fcf9b860283543fd35d3f248 (patch)
treeba1c3244a682376c347ab1f8974b1e19106ac0f3 /source3/lib/netapi/examples/common.h
parent0f86cc18ff2e88a0f1fe244574ff5e3fcfce2f92 (diff)
downloadsamba-cccaef9e0896e9a3fcf9b860283543fd35d3f248.tar.gz
samba-cccaef9e0896e9a3fcf9b860283543fd35d3f248.tar.bz2
samba-cccaef9e0896e9a3fcf9b860283543fd35d3f248.zip
Use popt in libetapi example code.
Guenther (This used to be commit 6f239df3f5a57c9549f1637e53fd42d2ed604c3f)
Diffstat (limited to 'source3/lib/netapi/examples/common.h')
-rw-r--r--source3/lib/netapi/examples/common.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/lib/netapi/examples/common.h b/source3/lib/netapi/examples/common.h
new file mode 100644
index 0000000000..85df51d868
--- /dev/null
+++ b/source3/lib/netapi/examples/common.h
@@ -0,0 +1,11 @@
+#include <popt.h>
+
+void popt_common_callback(poptContext con,
+ enum poptCallbackReason reason,
+ const struct poptOption *opt,
+ const char *arg, const void *data);
+
+extern struct poptOption popt_common_netapi_examples[];
+
+#define POPT_COMMON_LIBNETAPI_EXAMPLES { NULL, 0, POPT_ARG_INCLUDE_TABLE, popt_common_netapi_examples, 0, "Common samba netapi example options:", NULL },
+