summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-05-20 13:17:26 +0000
committerLuke Leighton <lkcl@samba.org>1998-05-20 13:17:26 +0000
commit9c99863642d295e8b674c9c8b5eeda95bfc4d094 (patch)
tree9912cc55314035b34c7f8ad0aa4e3381483eb878 /source3/include
parent67850c4574c739c61702eb18389ae4a592018037 (diff)
downloadsamba-9c99863642d295e8b674c9c8b5eeda95bfc4d094.tar.gz
samba-9c99863642d295e8b674c9c8b5eeda95bfc4d094.tar.bz2
samba-9c99863642d295e8b674c9c8b5eeda95bfc4d094.zip
dce/rpc net time command from jean-francois. does not support timezones
(This used to be commit 8e11d542eebe076d74ab264e22b87f7aed9bbe8f)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h7
-rw-r--r--source3/include/rpc_srvsvc.h38
2 files changed, 44 insertions, 1 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 760f889dd9..005911d1f6 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -828,6 +828,13 @@ void srv_io_q_net_srv_set_info(char *desc, SRV_Q_NET_SRV_SET_INFO *q_n, prs_str
void make_srv_r_net_srv_set_info(SRV_R_NET_SRV_SET_INFO *srv,
uint32 switch_value, SRV_INFO_CTR *ctr, uint32 status);
void srv_io_r_net_srv_set_info(char *desc, SRV_R_NET_SRV_SET_INFO *r_n, prs_struct *ps, int depth);
+void srv_io_q_net_remote_tod(char *desc, SRV_Q_NET_REMOTE_TOD *q_n, prs_struct *ps, int depth);
+void srv_io_time_of_day_info(char *desc, TIME_OF_DAY_INFO *tod, prs_struct *ps, int depth);
+void make_time_of_day_info(TIME_OF_DAY_INFO *tod, uint32 elapsedt, uint32 msecs,
+ uint32 hours, uint32 mins, uint32 secs, uint32 hunds,
+ uint32 zone, uint32 tintervals, uint32 day,
+ uint32 month, uint32 year, uint32 weekday);
+void srv_io_r_net_remote_tod(char *desc, SRV_R_NET_REMOTE_TOD *r_n, prs_struct *ps, int depth);
/*The following definitions come from lib/rpc/parse/parse_wks.c */
diff --git a/source3/include/rpc_srvsvc.h b/source3/include/rpc_srvsvc.h
index 6ba137da2f..afcef4e168 100644
--- a/source3/include/rpc_srvsvc.h
+++ b/source3/include/rpc_srvsvc.h
@@ -32,7 +32,7 @@
#define SRV_NETSHAREENUM 0x0f
#define SRV_NET_SRV_GET_INFO 0x15
#define SRV_NET_SRV_SET_INFO 0x16
-
+#define SRV_NET_REMOTE_TOD 0x1c
/* SESS_INFO_0 (pointers to level 0 session info strings) */
typedef struct ptr_sess_info0
@@ -535,6 +535,42 @@ typedef struct r_net_srv_set_info
} SRV_R_NET_SRV_SET_INFO;
+/* SRV_Q_NET_REMOTE_TOD */
+typedef struct q_net_remote_tod
+{
+ uint32 ptr_srv_name;
+ UNISTR2 uni_srv_name; /* "\\server" */
+
+} SRV_Q_NET_REMOTE_TOD;
+
+/* TIME_OF_DAY_INFO */
+typedef struct time_of_day_info
+{
+ uint32 elapsedt;
+ uint32 msecs;
+ uint32 hours;
+ uint32 mins;
+ uint32 secs;
+ uint32 hunds;
+ uint32 zone;
+ uint32 tintervals;
+ uint32 day;
+ uint32 month;
+ uint32 year;
+ uint32 weekday;
+
+} TIME_OF_DAY_INFO;
+
+/* SRV_R_NET_REMOTE_TOD */
+typedef struct r_net_remote_tod
+{
+ uint32 ptr_srv_tod; /* pointer to TOD */
+ TIME_OF_DAY_INFO *tod;
+
+ uint32 status; /* return status */
+
+} SRV_R_NET_REMOTE_TOD;
+
#endif /* _RPC_SRVSVC_H */