2007-08-26 20:25:39 +00:00
/*
Unix SMB / CIFS implementation .
Copyright ( C ) Rafal Szczesniak 2007
This program is free software ; you can redistribute it and / or modify
it under the terms of the GNU General Public License as published by
2008-03-28 01:08:49 -05:00
the Free Software Foundation ; either version 3 of the License , or
2007-08-26 20:25:39 +00:00
( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
GNU General Public License for more details .
You should have received a copy of the GNU General Public License
along with this program ; if not , write to the Free Software
Foundation , Inc . , 675 Mass Ave , Cambridge , MA 0213 9 , USA .
*/
2007-12-30 19:13:50 -06:00
struct libnet_CreateGroup {
struct {
const char * group_name ;
const char * domain_name ;
} in ;
struct {
const char * error_string ;
} out ;
} ;
2008-12-26 11:32:09 +01:00
enum libnet_GroupInfo_level {
GROUP_INFO_BY_NAME = 0 ,
GROUP_INFO_BY_SID
} ;
2007-12-30 19:13:50 -06:00
2007-08-26 20:25:39 +00:00
struct libnet_GroupInfo {
struct {
2008-12-26 10:17:38 +01:00
const char * domain_name ;
2008-12-26 11:32:09 +01:00
enum libnet_GroupInfo_level level ;
union {
const char * group_name ;
const struct dom_sid * group_sid ;
} data ;
2007-08-26 20:25:39 +00:00
} in ;
struct {
2008-12-26 10:17:38 +01:00
const char * group_name ;
2007-08-26 20:25:39 +00:00
struct dom_sid * group_sid ;
uint32_t num_members ;
const char * description ;
2008-12-26 10:17:38 +01:00
2007-08-26 20:25:39 +00:00
const char * error_string ;
} out ;
} ;
2007-12-18 00:59:21 +01:00
struct libnet_GroupList {
struct {
const char * domain_name ;
int page_size ;
2009-07-15 20:45:53 +02:00
uint32_t resume_index ;
2007-12-18 00:59:21 +01:00
} in ;
struct {
int count ;
2009-07-15 20:45:53 +02:00
uint32_t resume_index ;
2007-12-18 00:59:21 +01:00
struct grouplist {
const char * sid ;
const char * groupname ;
} * groups ;
const char * error_string ;
} out ;
} ;