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 3 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, see <http://www.gnu.org/licenses/>.
20 #include "librpc/gen_ndr/srvsvc.h"
22 enum libnet_ListShares_level
{
23 LIBNET_LIST_SHARES_GENERIC
,
24 LIBNET_LIST_SHARES_SRVSVC
27 struct libnet_ListShares
{
29 const char *server_name
;
30 uint32_t *resume_handle
;
34 const char *error_string
;
35 union srvsvc_NetShareCtr ctr
;
36 uint32_t *resume_handle
;
40 enum libnet_AddShare_level
{
41 LIBNET_ADD_SHARE_GENERIC
,
42 LIBNET_ADD_SHARE_SRVSVC
45 struct libnet_AddShare
{
46 enum libnet_AddShare_level level
;
48 const char * server_name
;
49 struct srvsvc_NetShareInfo2 share
;
52 const char* error_string
;
56 enum libnet_DelShare_level
{
57 LIBNET_DEL_SHARE_GENERIC
,
58 LIBNET_DEL_SHARE_SRVSVC
61 struct libnet_DelShare
{
62 enum libnet_DelShare_level level
;
64 const char *server_name
;
65 const char *share_name
;
68 const char *error_string
;