summaryrefslogtreecommitdiff
path: root/source4/lib/cmdline
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-08-19 12:18:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:10 -0500
commitd139dc808abd7b3ee8c4721c6e4ce51894210598 (patch)
treeb088f1a08fc418a233704f56899368b8ea4d6821 /source4/lib/cmdline
parentbca24a19ebfc8943b46fdb900418e396aef96aa4 (diff)
downloadsamba-d139dc808abd7b3ee8c4721c6e4ce51894210598.tar.gz
samba-d139dc808abd7b3ee8c4721c6e4ce51894210598.tar.bz2
samba-d139dc808abd7b3ee8c4721c6e4ce51894210598.zip
r1912: move popt_common.h
metze (This used to be commit ecf6be894fc47f9e00f46531e06ef20e11115c0f)
Diffstat (limited to 'source4/lib/cmdline')
-rw-r--r--source4/lib/cmdline/popt_common.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/source4/lib/cmdline/popt_common.h b/source4/lib/cmdline/popt_common.h
new file mode 100644
index 0000000000..e41b1a2cf4
--- /dev/null
+++ b/source4/lib/cmdline/popt_common.h
@@ -0,0 +1,51 @@
+/*
+ Unix SMB/CIFS implementation.
+ Common popt arguments
+ Copyright (C) Jelmer Vernooij 2003
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*/
+
+#ifndef _POPT_COMMON_H
+#define _POPT_COMMON_H
+
+#include "popt.h"
+
+/* Common popt structures */
+extern struct poptOption popt_common_samba[];
+extern struct poptOption popt_common_connection[];
+extern struct poptOption popt_common_version[];
+extern struct poptOption popt_common_credentials[];
+
+#ifndef POPT_TABLEEND
+#define POPT_TABLEEND { NULL, '\0', 0, 0, 0, NULL, NULL }
+#endif
+
+#define POPT_COMMON_SAMBA { NULL, 0, POPT_ARG_INCLUDE_TABLE, popt_common_samba, 0, "Common samba options:", NULL },
+#define POPT_COMMON_CONNECTION { NULL, 0, POPT_ARG_INCLUDE_TABLE, popt_common_connection, 0, "Connection options:", NULL },
+#define POPT_COMMON_VERSION { NULL, 0, POPT_ARG_INCLUDE_TABLE, popt_common_version, 0, "Common samba options:", NULL },
+#define POPT_COMMON_CREDENTIALS { NULL, 0, POPT_ARG_INCLUDE_TABLE, popt_common_credentials, 0, "Authentication options:", NULL },
+
+struct cmdline_auth_info {
+ pstring username;
+ pstring password;
+ pstring domain;
+ BOOL got_pass;
+ BOOL use_kerberos;
+};
+
+extern struct cmdline_auth_info cmdline_auth_info;
+
+#endif /* _POPT_COMMON_H */