2007-08-27 00:25:39 +04: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 09:08:49 +03:00
the Free Software Foundation ; either version 3 of the License , or
2007-08-27 00:25:39 +04: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-31 04:13:50 +03:00
struct libnet_CreateGroup {
struct {
const char * group_name ;
const char * domain_name ;
} in ;
struct {
const char * error_string ;
} out ;
} ;
2008-12-26 13:32:09 +03:00
enum libnet_GroupInfo_level {
GROUP_INFO_BY_NAME = 0 ,
GROUP_INFO_BY_SID
} ;
2007-12-31 04:13:50 +03:00
2007-08-27 00:25:39 +04:00
struct libnet_GroupInfo {
struct {
2008-12-26 12:17:38 +03:00
const char * domain_name ;
2008-12-26 13:32:09 +03:00
enum libnet_GroupInfo_level level ;
union {
const char * group_name ;
const struct dom_sid * group_sid ;
} data ;
2007-08-27 00:25:39 +04:00
} in ;
struct {
2008-12-26 12:17:38 +03:00
const char * group_name ;
2007-08-27 00:25:39 +04:00
struct dom_sid * group_sid ;
uint32_t num_members ;
const char * description ;
2008-12-26 12:17:38 +03:00
2007-08-27 00:25:39 +04:00
const char * error_string ;
} out ;
} ;
2007-12-18 02:59:21 +03:00
struct libnet_GroupList {
struct {
const char * domain_name ;
int page_size ;
2009-07-15 22:45:53 +04:00
uint32_t resume_index ;
2007-12-18 02:59:21 +03:00
} in ;
struct {
int count ;
2009-07-15 22:45:53 +04:00
uint32_t resume_index ;
2007-12-18 02:59:21 +03:00
struct grouplist {
const char * sid ;
const char * groupname ;
} * groups ;
const char * error_string ;
} out ;
} ;