summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2005-06-07 23:21:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:17:48 -0500
commitae6907c5c8695ef34ef16be3cad67a0d28ac5dfd (patch)
treeda0ef9b48fdf3daae71573a9a4d442ac67a17e10 /source4
parentfdc2be2cd6b48bfe5f9dbd3306714119f95bcaf2 (diff)
downloadsamba-ae6907c5c8695ef34ef16be3cad67a0d28ac5dfd.tar.gz
samba-ae6907c5c8695ef34ef16be3cad67a0d28ac5dfd.tar.bz2
samba-ae6907c5c8695ef34ef16be3cad67a0d28ac5dfd.zip
r7379: Simplify CreateUser function and io structure. Also, implementing
it based on composite functions. Moving to fully async CreateUser on the way... rafal (This used to be commit 240409bc3cfa1426db15fc0537fcf0841f51ede0)
Diffstat (limited to 'source4')
-rw-r--r--source4/include/structs.h2
-rw-r--r--source4/libnet/libnet_user.h25
2 files changed, 9 insertions, 18 deletions
diff --git a/source4/include/structs.h b/source4/include/structs.h
index 934dc6e192..5ec7509e76 100644
--- a/source4/include/structs.h
+++ b/source4/include/structs.h
@@ -135,7 +135,7 @@ union libnet_find_pdc;
union libnet_rpc_connect;
union libnet_RemoteTOD;
union libnet_JoinDomain;
-union libnet_CreateUser;
+struct libnet_CreateUser;
struct libnet_ListShares;
struct libnet_AddShare;
struct libnet_DelShare;
diff --git a/source4/libnet/libnet_user.h b/source4/libnet/libnet_user.h
index 29d97637bd..358f0d0b0f 100644
--- a/source4/libnet/libnet_user.h
+++ b/source4/libnet/libnet_user.h
@@ -25,23 +25,14 @@ enum libnet_CreateUser_level {
};
-union libnet_CreateUser {
- struct {
- enum libnet_CreateUser_level level;
-
- struct _libnet_CreateUser_in {
- const char *user_name;
- const char *domain_name;
- } in;
-
- struct _libnet_CreateUser_out {
- const char *error_string;
- } out;
- } generic;
+struct libnet_CreateUser {
+ enum libnet_CreateUser_level level;
struct {
- enum libnet_CreateUser_level level;
- struct _libnet_CreateUser_in in;
- struct _libnet_CreateUser_out out;
- } samr;
+ const char *user_name;
+ const char *domain_name;
+ } in;
+ struct {
+ const char *error_string;
+ } out;
};