summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-03-07 02:59:58 +0100
committerGünther Deschner <gd@samba.org>2008-03-07 13:08:34 +0100
commit221af840a597e49e58e2f1ab350307374e912878 (patch)
tree24dcff47dc33d087e5c2b40cd91e03f094fba9fb /source3/rpc_client
parent766c669be110f3f750439c1db648f4ebf051af1f (diff)
downloadsamba-221af840a597e49e58e2f1ab350307374e912878.tar.gz
samba-221af840a597e49e58e2f1ab350307374e912878.tar.bz2
samba-221af840a597e49e58e2f1ab350307374e912878.zip
Add some more init_srvsvc_NetShareInfoX functions.
Guenther (This used to be commit cb3577e695f80d76e4c20f6396d57e3a2047c3c4)
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/init_srvsvc.c134
1 files changed, 134 insertions, 0 deletions
diff --git a/source3/rpc_client/init_srvsvc.c b/source3/rpc_client/init_srvsvc.c
index 5e868ffd2b..579756cae3 100644
--- a/source3/rpc_client/init_srvsvc.c
+++ b/source3/rpc_client/init_srvsvc.c
@@ -86,6 +86,140 @@ void init_srvsvc_NetSrvInfo100(struct srvsvc_NetSrvInfo100 *r,
}
/*******************************************************************
+ inits a srvsvc_NetShareInfo0 structure
+********************************************************************/
+
+void init_srvsvc_NetShareInfo0(struct srvsvc_NetShareInfo0 *r,
+ const char *name)
+{
+ r->name = name;
+}
+
+/*******************************************************************
+ inits a srvsvc_NetShareInfo1 structure
+********************************************************************/
+
+void init_srvsvc_NetShareInfo1(struct srvsvc_NetShareInfo1 *r,
+ const char *name,
+ enum srvsvc_ShareType type,
+ const char *comment)
+{
+ r->name = name;
+ r->type = type;
+ r->comment = comment;
+}
+
+/*******************************************************************
+ inits a srvsvc_NetShareInfo2 structure
+********************************************************************/
+
+void init_srvsvc_NetShareInfo2(struct srvsvc_NetShareInfo2 *r,
+ const char *name,
+ enum srvsvc_ShareType type,
+ const char *comment,
+ uint32_t permissions,
+ uint32_t max_users,
+ uint32_t current_users,
+ const char *path,
+ const char *password)
+{
+ r->name = name;
+ r->type = type;
+ r->comment = comment;
+ r->permissions = permissions;
+ r->max_users = max_users;
+ r->current_users = current_users;
+ r->path = path;
+ r->password = password;
+}
+
+/*******************************************************************
+ inits a srvsvc_NetShareInfo501 structure
+********************************************************************/
+
+void init_srvsvc_NetShareInfo501(struct srvsvc_NetShareInfo501 *r,
+ const char *name,
+ enum srvsvc_ShareType type,
+ const char *comment,
+ uint32_t csc_policy)
+{
+ r->name = name;
+ r->type = type;
+ r->comment = comment;
+ r->csc_policy = csc_policy;
+}
+
+/*******************************************************************
+ inits a srvsvc_NetShareInfo502 structure
+********************************************************************/
+
+void init_srvsvc_NetShareInfo502(struct srvsvc_NetShareInfo502 *r,
+ const char *name,
+ enum srvsvc_ShareType type,
+ const char *comment,
+ uint32_t permissions,
+ int32_t max_users,
+ uint32_t current_users,
+ const char *path,
+ const char *password,
+ uint32_t unknown,
+ struct security_descriptor *sd)
+{
+ r->name = name;
+ r->type = type;
+ r->comment = comment;
+ r->permissions = permissions;
+ r->max_users = max_users;
+ r->current_users = current_users;
+ r->path = path;
+ r->password = password;
+ r->unknown = unknown;
+ r->sd = sd;
+}
+
+/*******************************************************************
+ inits a srvsvc_NetShareInfo1004 structure
+********************************************************************/
+
+void init_srvsvc_NetShareInfo1004(struct srvsvc_NetShareInfo1004 *r,
+ const char *comment)
+{
+ r->comment = comment;
+}
+
+/*******************************************************************
+ inits a srvsvc_NetShareInfo1005 structure
+********************************************************************/
+
+void init_srvsvc_NetShareInfo1005(struct srvsvc_NetShareInfo1005 *r,
+ uint32_t dfs_flags)
+{
+ r->dfs_flags = dfs_flags;
+}
+
+/*******************************************************************
+ inits a srvsvc_NetShareInfo1006 structure
+********************************************************************/
+
+void init_srvsvc_NetShareInfo1006(struct srvsvc_NetShareInfo1006 *r,
+ int32_t max_users)
+{
+ r->max_users = max_users;
+}
+
+/*******************************************************************
+ inits a srvsvc_NetShareInfo1007 structure
+********************************************************************/
+
+void init_srvsvc_NetShareInfo1007(struct srvsvc_NetShareInfo1007 *r,
+ uint32_t flags,
+ const char *alternate_directory_name)
+{
+ r->flags = flags;
+ r->alternate_directory_name = alternate_directory_name;
+}
+
+/*******************************************************************
inits a srvsvc_NetRemoteTODInfo structure
********************************************************************/