r23792: convert Samba4 to GPLv3
[samba.git] / source4 / utils / net / net.h
1 /* 
2    Samba Unix/Linux SMB client library 
3    Distributed SMB/CIFS Server Management Utility 
4
5    Copyright (C) Stefan Metzmacher 2004
6
7    This program is free software; you can redistribute it and/or modify
8    it under the terms of the GNU General Public License as published by
9    the Free Software Foundation; either version 3 of the License, or
10    (at your option) any later version.
11    
12    This program is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
16    
17    You should have received a copy of the GNU General Public License
18    along with this program.  If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #ifndef _UTIL_NET_H
22 #define _UTIL_NET_H
23
24 struct net_context {
25         TALLOC_CTX *mem_ctx;
26         struct cli_credentials *credentials;
27 };
28
29 struct net_functable {
30         const char *name;
31         const char *desc;
32         int (*fn)(struct net_context *ctx, int argc, const char **argv);
33         int (*usage)(struct net_context *ctx, int argc, const char **argv);
34 };
35
36 #include "utils/net/net_proto.h"
37
38 #endif /* _UTIL_NET_H */