Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
[kai/samba.git] / source4 / libnet / libnet_group.h
1 /* 
2    Unix SMB/CIFS implementation.
3
4    Copyright (C) Rafal Szczesniak  2007
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 2 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, write to the Free Software
18    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 */
20
21
22 struct libnet_CreateGroup {
23         struct {
24                 const char *group_name;
25                 const char *domain_name;
26         } in;
27         struct {
28                 const char *error_string;
29         } out;
30 };
31
32
33 struct libnet_GroupInfo {
34         struct {
35                 const char *group_name;
36                 const char *domain_name;                
37         } in;
38         struct {
39                 struct dom_sid *group_sid;
40                 uint32_t num_members;
41                 const char *description;
42                 
43                 const char *error_string;
44         } out;
45 };
46
47
48 struct libnet_GroupList {
49         struct {
50                 const char *domain_name;
51                 int page_size;
52                 uint resume_index;
53         } in;
54         struct {
55                 int count;
56                 uint resume_index;
57                 
58                 struct grouplist {
59                         const char *sid;
60                         const char *groupname;
61                 } *groups;
62
63                 const char *error_string;
64         } out;
65 };