2 Unix SMB/CIFS implementation.
4 Copyright (C) Grégory LEOCADIE <gleocadie@idealx.com>
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #include "librpc/gen_ndr/srvsvc.h"
23 enum libnet_ListShares_level
{
24 LIBNET_LIST_SHARES_GENERIC
,
25 LIBNET_LIST_SHARES_SRVSVC
28 struct libnet_ListShares
{
30 const char *server_name
;
31 uint32_t *resume_handle
;
35 const char *error_string
;
36 union srvsvc_NetShareCtr ctr
;
37 uint32_t *resume_handle
;
41 enum libnet_AddShare_level
{
42 LIBNET_ADD_SHARE_GENERIC
,
43 LIBNET_ADD_SHARE_SRVSVC
46 struct libnet_AddShare
{
47 enum libnet_AddShare_level level
;
49 const char * server_name
;
51 struct srvsvc_NetShareInfo2 share
;
54 const char* error_string
;
58 enum libnet_DelShare_level
{
59 LIBNET_DEL_SHARE_GENERIC
,
60 LIBNET_DEL_SHARE_SRVSVC
63 struct libnet_DelShare
{
64 enum libnet_DelShare_level level
;
66 const char *server_name
;
67 const char *share_name
;
70 const char *error_string
;