summaryrefslogtreecommitdiff
path: root/source3/rpc_client/init_srvsvc.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-03-09 21:28:53 +0100
committerGünther Deschner <gd@samba.org>2008-03-10 03:43:40 +0100
commit032d4fa8ea3c5df2607e70eee1f13d51be460196 (patch)
treefd70c44c63df70e8f6d2c6a9557b85abebc01d8b /source3/rpc_client/init_srvsvc.c
parent28d53070345e23e6a3b7bea91602a619eb5792bd (diff)
downloadsamba-032d4fa8ea3c5df2607e70eee1f13d51be460196.tar.gz
samba-032d4fa8ea3c5df2607e70eee1f13d51be460196.tar.bz2
samba-032d4fa8ea3c5df2607e70eee1f13d51be460196.zip
Add some srvsvc_NetSessInfo init functions.
Guenther (This used to be commit 8168fd583cfc2ad64e5c1aa67047d8c3c607993a)
Diffstat (limited to 'source3/rpc_client/init_srvsvc.c')
-rw-r--r--source3/rpc_client/init_srvsvc.c91
1 files changed, 91 insertions, 0 deletions
diff --git a/source3/rpc_client/init_srvsvc.c b/source3/rpc_client/init_srvsvc.c
index 579756cae3..0d4d616384 100644
--- a/source3/rpc_client/init_srvsvc.c
+++ b/source3/rpc_client/init_srvsvc.c
@@ -251,3 +251,94 @@ void init_srvsvc_NetRemoteTODInfo(struct srvsvc_NetRemoteTODInfo *r,
r->weekday = weekday;
}
+/*******************************************************************
+ inits a srvsvc_NetSessInfo0 structure
+ ********************************************************************/
+
+void init_srvsvc_NetSessInfo0(struct srvsvc_NetSessInfo0 *r,
+ const char *client)
+{
+ r->client = client;
+}
+
+/*******************************************************************
+ inits a srvsvc_NetSessInfo1 structure
+ ********************************************************************/
+
+void init_srvsvc_NetSessInfo1(struct srvsvc_NetSessInfo1 *r,
+ const char *client,
+ const char *user,
+ uint32_t num_open,
+ uint32_t _time,
+ uint32_t idle_time,
+ uint32_t user_flags)
+{
+ r->client = client;
+ r->user = user;
+ r->num_open = num_open;
+ r->time = _time;
+ r->idle_time = idle_time;
+ r->user_flags = user_flags;
+}
+
+/*******************************************************************
+ inits a srvsvc_NetSessInfo2 structure
+ ********************************************************************/
+
+void init_srvsvc_NetSessInfo2(struct srvsvc_NetSessInfo2 *r,
+ const char *client,
+ const char *user,
+ uint32_t num_open,
+ uint32_t _time,
+ uint32_t idle_time,
+ uint32_t user_flags,
+ const char *client_type)
+{
+ r->client = client;
+ r->user = user;
+ r->num_open = num_open;
+ r->time = _time;
+ r->idle_time = idle_time;
+ r->user_flags = user_flags;
+ r->client_type = client_type;
+}
+
+/*******************************************************************
+ inits a srvsvc_NetSessInfo10 structure
+ ********************************************************************/
+
+void init_srvsvc_NetSessInfo10(struct srvsvc_NetSessInfo10 *r,
+ const char *client,
+ const char *user,
+ uint32_t _time,
+ uint32_t idle_time)
+{
+ r->client = client;
+ r->user = user;
+ r->time = _time;
+ r->idle_time = idle_time;
+}
+
+/*******************************************************************
+ inits a srvsvc_NetSessInfo502 structure
+ ********************************************************************/
+
+void init_srvsvc_NetSessInfo502(struct srvsvc_NetSessInfo502 *r,
+ const char *client,
+ const char *user,
+ uint32_t num_open,
+ uint32_t _time,
+ uint32_t idle_time,
+ uint32_t user_flags,
+ const char *client_type,
+ const char *transport)
+{
+ r->client = client;
+ r->user = user;
+ r->num_open = num_open;
+ r->time = _time;
+ r->idle_time = idle_time;
+ r->user_flags = user_flags;
+ r->client_type = client_type;
+ r->transport = transport;
+}