summaryrefslogtreecommitdiff
path: root/source3/utils/net.h
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2008-05-21 10:47:59 +0200
committerKai Blin <kai@samba.org>2008-06-10 09:45:09 +0200
commit4d9748e44dc58e026136ce0c28526ba4cf1d4f3e (patch)
treeaedaef7852e76f9d3eb153d0f591334b965d6302 /source3/utils/net.h
parent13b2f59383c117033605df77935a67c7cc1c8da1 (diff)
downloadsamba-4d9748e44dc58e026136ce0c28526ba4cf1d4f3e.tar.gz
samba-4d9748e44dc58e026136ce0c28526ba4cf1d4f3e.tar.bz2
samba-4d9748e44dc58e026136ce0c28526ba4cf1d4f3e.zip
net: Move includes to net.h
(This used to be commit 1943e2752d4dcb5bbbd4e40cf854efba4aed8f45)
Diffstat (limited to 'source3/utils/net.h')
-rw-r--r--source3/utils/net.h104
1 files changed, 64 insertions, 40 deletions
diff --git a/source3/utils/net.h b/source3/utils/net.h
index 80024bd958..a5078d0266 100644
--- a/source3/utils/net.h
+++ b/source3/utils/net.h
@@ -24,6 +24,70 @@
#include "lib/netapi/netapi.h"
+struct net_context {
+ const char *opt_requester_name;
+ const char *opt_host;
+ const char *opt_password;
+ const char *opt_user_name;
+ bool opt_user_specified;
+ const char *opt_workgroup;
+ int opt_long_list_entries;
+ int opt_reboot;
+ int opt_force;
+ int opt_stdin;
+ int opt_port;
+ int opt_verbose;
+ int opt_maxusers;
+ const char *opt_comment;
+ const char *opt_container;
+ int opt_flags;
+ int opt_timeout;
+ const char *opt_target_workgroup;
+ int opt_machine_pass;
+ int opt_localgroup;
+ int opt_domaingroup;
+ int do_talloc_report;
+ const char *opt_newntname;
+ int opt_rid;
+ int opt_acls;
+ int opt_attrs;
+ int opt_timestamps;
+ const char *opt_exclude;
+ const char *opt_destination;
+ int opt_testmode;
+
+ int opt_have_ip;
+ struct sockaddr_storage opt_dest_ip;
+ bool smb_encrypt;
+ struct libnetapi_ctx *netapi_ctx;
+
+ const char *share_type[];
+};
+
+#define NET_TRANSPORT_LOCAL 0x01
+#define NET_TRANSPORT_RAP 0x02
+#define NET_TRANSPORT_RPC 0x04
+#define NET_TRANSPROT_ADS 0x08
+
+struct functable {
+ const char *funcname;
+ int (*fn)(struct net_context *c, int argc, const char **argv);
+};
+
+struct functable2 {
+ const char *funcname;
+ int (*fn)(struct net_context *c, int argc, const char **argv);
+ const char *helptext;
+};
+
+struct functable3 {
+ const char *funcname;
+ int (*fn)(struct net_context *c, int argc, const char **argv);
+ int valid_transports;
+ const char *description;
+ const char *usage;
+};
+
typedef NTSTATUS (*rpc_command_fn)(struct net_context *c,
const DOM_SID *,
const char *,
@@ -69,46 +133,6 @@ struct rpc_sh_cmd {
enum netdom_domain_t { ND_TYPE_NT4, ND_TYPE_AD };
-struct net_context {
- const char *opt_requester_name;
- const char *opt_host;
- const char *opt_password;
- const char *opt_user_name;
- bool opt_user_specified;
- const char *opt_workgroup;
- int opt_long_list_entries;
- int opt_reboot;
- int opt_force;
- int opt_stdin;
- int opt_port;
- int opt_verbose;
- int opt_maxusers;
- const char *opt_comment;
- const char *opt_container;
- int opt_flags;
- int opt_timeout;
- const char *opt_target_workgroup;
- int opt_machine_pass;
- int opt_localgroup;
- int opt_domaingroup;
- int do_talloc_report;
- const char *opt_newntname;
- int opt_rid;
- int opt_acls;
- int opt_attrs;
- int opt_timestamps;
- const char *opt_exclude;
- const char *opt_destination;
- int opt_testmode;
-
- int opt_have_ip;
- struct sockaddr_storage opt_dest_ip;
- bool smb_encrypt;
- struct libnetapi_ctx *netapi_ctx;
-
- const char *share_type[];
-};
-
/* INCLUDE FILES */
#include "utils/net_proto.h"