diff options
author | Stefan Metzmacher <metze@samba.org> | 2004-08-18 09:33:54 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:58:06 -0500 |
commit | 9373c046f12322dbc19adf2fdd481d2f534bae9b (patch) | |
tree | 6d782354fed609f383a402d7fb48bfde7b5a8745 /source4/utils/net/net.h | |
parent | 8de0c24a08cf71058dd58004fe82ca2e8368ffbc (diff) | |
download | samba-9373c046f12322dbc19adf2fdd481d2f534bae9b.tar.gz samba-9373c046f12322dbc19adf2fdd481d2f534bae9b.tar.bz2 samba-9373c046f12322dbc19adf2fdd481d2f534bae9b.zip |
r1876: rewrite net command completely
and add it to the build
metze
(This used to be commit 14b9858800f6944bf78bee34338242cd3292b297)
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 */ |