summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-03-11 18:19:45 +0100
committerGünther Deschner <gd@samba.org>2008-03-11 18:23:34 +0100
commitb83234cf4028f067f274754786e66bb071df7cd9 (patch)
tree5944f2e7ffc9d72d0e001f773a9c4a665fa41a9f /source3
parent27c07c98619075d594fcd46c0ad05b83b60bc877 (diff)
downloadsamba-b83234cf4028f067f274754786e66bb071df7cd9.tar.gz
samba-b83234cf4028f067f274754786e66bb071df7cd9.tar.bz2
samba-b83234cf4028f067f274754786e66bb071df7cd9.zip
Add some last init_srvsvc_X functions.
Guenther (This used to be commit 41dc55f1de8590b1bb5572e4adbf9bf960c12a64)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_client/init_srvsvc.c60
1 files changed, 60 insertions, 0 deletions
diff --git a/source3/rpc_client/init_srvsvc.c b/source3/rpc_client/init_srvsvc.c
index 0d4d616384..7b595683f7 100644
--- a/source3/rpc_client/init_srvsvc.c
+++ b/source3/rpc_client/init_srvsvc.c
@@ -342,3 +342,63 @@ void init_srvsvc_NetSessInfo502(struct srvsvc_NetSessInfo502 *r,
r->client_type = client_type;
r->transport = transport;
}
+
+/*******************************************************************
+ inits a srvsvc_NetFileInfo2 structure
+ ********************************************************************/
+
+void init_srvsvc_NetFileInfo2(struct srvsvc_NetFileInfo2 *r,
+ uint32_t fid)
+{
+ r->fid = fid;
+}
+
+/*******************************************************************
+ inits a srvsvc_NetFileInfo3 structure
+ ********************************************************************/
+
+void init_srvsvc_NetFileInfo3(struct srvsvc_NetFileInfo3 *r,
+ uint32_t fid,
+ uint32_t permissions,
+ uint32_t num_locks,
+ const char *path,
+ const char *user)
+{
+ r->fid = fid;
+ r->permissions = permissions;
+ r->num_locks = num_locks;
+ r->path = path;
+ r->user = user;
+}
+
+/*******************************************************************
+ inits a srvsvc_NetConnInfo0 structure
+ ********************************************************************/
+
+void init_srvsvc_NetConnInfo0(struct srvsvc_NetConnInfo0 *r,
+ uint32_t conn_id)
+{
+ r->conn_id = conn_id;
+}
+
+/*******************************************************************
+ inits a srvsvc_NetConnInfo1 structure
+ ********************************************************************/
+
+void init_srvsvc_NetConnInfo1(struct srvsvc_NetConnInfo1 *r,
+ uint32_t conn_id,
+ uint32_t conn_type,
+ uint32_t num_open,
+ uint32_t num_users,
+ uint32_t conn_time,
+ const char *user,
+ const char *share)
+{
+ r->conn_id = conn_id;
+ r->conn_type = conn_type;
+ r->num_open = num_open;
+ r->num_users = num_users;
+ r->conn_time = conn_time;
+ r->user = user;
+ r->share = share;
+}