diff options
Diffstat (limited to 'source4/utils/net/net.h')
-rw-r--r-- | source4/utils/net/net.h | 52 |
1 files changed, 14 insertions, 38 deletions
diff --git a/source4/utils/net/net.h b/source4/utils/net/net.h index 1d83a02635..f1ed93fbfb 100644 --- a/source4/utils/net/net.h +++ b/source4/utils/net/net.h @@ -1,7 +1,8 @@ /* Samba Unix/Linux SMB client library Distributed SMB/CIFS Server Management Utility - Copyright (C) 2001 Andrew Bartlett (abartlet@samba.org) + + Copyright (C) Stefan Metzmacher 2004 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 @@ -15,45 +16,20 @@ 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. */ - -#define NET_FLAGS_MASTER 1 -#define NET_FLAGS_DMB 2 - -/* Would it be insane to set 'localhost' as the default - remote host for this operation? - - For example, localhost is insane for a 'join' operation. + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#define NET_FLAGS_LOCALHOST_DEFAULT_INSANE 4 - -/* We want to find the PDC only */ -#define NET_FLAGS_PDC 8 - -/* We want an anonymous connection */ -#define NET_FLAGS_ANONYMOUS 16 - - -extern int opt_maxusers; -extern const char *opt_comment; -extern char *opt_container; -extern int opt_flags; - -extern const char *opt_comment; -extern const char *opt_target_workgroup; -extern const char *opt_workgroup; -extern int opt_long_list_entries; -extern int opt_reboot; -extern int opt_force; -extern int opt_timeout; -extern const char *opt_host; -extern const char *opt_user_name; -extern const char *opt_password; -extern BOOL opt_user_specified; +#ifndef _UTIL_NET_H +#define _UTIL_NET_H -extern BOOL opt_have_ip; -extern struct in_addr opt_dest_ip; +struct net_context { + TALLOC_CTX *mem_ctx; +}; -extern const char *share_type[]; +struct net_functable { + const char *name; + int (*fn)(struct net_context *ctx, int argc, const char **argv); + int (*help)(struct net_context *ctx, int argc, const char **argv); +}; +#endif /* _UTIL_NET_H */ |