root/source4/libnet/libnet_share.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /* 
   2    Unix SMB/CIFS implementation.
   3    
   4    Copyright (C) Grégory LEOCADIE <gleocadie@idealx.com> 
   5    
   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.
  10    
  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.
  15    
  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/>.
  18 */
  19 
  20 #include "librpc/gen_ndr/srvsvc.h"
  21 
  22 enum libnet_ListShares_level {
  23         LIBNET_LIST_SHARES_GENERIC,
  24         LIBNET_LIST_SHARES_SRVSVC
  25 };
  26 
  27 struct libnet_ListShares {
  28         struct {
  29                 const char *server_name;
  30                 uint32_t *resume_handle;
  31                 uint32_t level; 
  32         } in;
  33         struct {
  34                 const char *error_string;
  35                 union srvsvc_NetShareCtr ctr;
  36                 uint32_t *resume_handle;
  37         } out;
  38 };
  39 
  40 enum libnet_AddShare_level {
  41         LIBNET_ADD_SHARE_GENERIC,
  42         LIBNET_ADD_SHARE_SRVSVC
  43 };
  44 
  45 struct libnet_AddShare {
  46         enum libnet_AddShare_level level;
  47         struct {
  48                 const char * server_name;
  49                 struct srvsvc_NetShareInfo2 share;      
  50         } in;
  51         struct {
  52                 const char* error_string;
  53         } out;
  54 };
  55 
  56 enum libnet_DelShare_level {
  57         LIBNET_DEL_SHARE_GENERIC,
  58         LIBNET_DEL_SHARE_SRVSVC
  59 };
  60 
  61 struct libnet_DelShare {
  62         enum libnet_DelShare_level level;
  63         struct {
  64                 const char *server_name;
  65                 const char *share_name;
  66         } in;
  67         struct {
  68                 const char *error_string;
  69         } out;
  70 };

/* [<][>][^][v][top][bottom][index][help] */