diff options
author | Luke Leighton <lkcl@samba.org> | 1999-02-16 18:04:21 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-02-16 18:04:21 +0000 |
commit | 52fb07aea26cc3041e571fafdc843622f1741a19 (patch) | |
tree | 674846ac410652cfbcdc9cd1827c28e87c5b5b26 /source3/rpc_parse | |
parent | 78314c2e327ccd67e75dbc92be497ff2852b1817 (diff) | |
download | samba-52fb07aea26cc3041e571fafdc843622f1741a19.tar.gz samba-52fb07aea26cc3041e571fafdc843622f1741a19.tar.bz2 samba-52fb07aea26cc3041e571fafdc843622f1741a19.zip |
rpcclient shutdown command
(This used to be commit 59f081069a58f6a070ed6016c06153d5e695da93)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r-- | source3/rpc_parse/parse_reg.c | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/source3/rpc_parse/parse_reg.c b/source3/rpc_parse/parse_reg.c index 8072ed2a64..ecec498528 100644 --- a/source3/rpc_parse/parse_reg.c +++ b/source3/rpc_parse/parse_reg.c @@ -1180,3 +1180,66 @@ void reg_io_r_open_entry(char *desc, REG_R_OPEN_ENTRY *r_r, prs_struct *ps, int prs_uint32("status", ps, depth, &(r_r->status)); } +/******************************************************************* +makes a structure. +********************************************************************/ +void make_reg_q_shutdown(REG_Q_SHUTDOWN *q_i, + char *msg, uint32 timeout, uint16 flags) +{ + int len = strlen(msg) + 1; + + if (q_i == NULL) return; + + ZERO_STRUCTP(q_i); + + q_i->ptr_0 = 1; + q_i->ptr_1 = 1; + q_i->ptr_2 = 1; + + make_uni_hdr(&q_i->hdr_msg, len, len, 1); + make_unistr2(&(q_i->uni_msg), msg, len); + + q_i->timeout = timeout; + q_i->flags = flags; +} + +/******************************************************************* +reads or writes a structure. +********************************************************************/ +void reg_io_q_shutdown(char *desc, REG_Q_SHUTDOWN *q_q, prs_struct *ps, int depth) +{ + if (q_q == NULL) return; + + prs_debug(ps, depth, desc, "reg_io_q_shutdown"); + depth++; + + prs_align(ps); + + prs_uint32("ptr_0", ps, depth, &(q_q->ptr_0)); + prs_uint32("ptr_1", ps, depth, &(q_q->ptr_1)); + prs_uint32("ptr_2", ps, depth, &(q_q->ptr_2)); + + smb_io_unihdr ("hdr_msg", &(q_q->hdr_msg), ps, depth); + smb_io_unistr2("uni_msg", &(q_q->uni_msg), q_q->hdr_msg.buffer, ps, depth); + prs_align(ps); + + prs_uint32("timeout", ps, depth, &(q_q->timeout)); + prs_uint16("flags ", ps, depth, &(q_q->flags )); + prs_align(ps); +} + +/******************************************************************* +reads or writes a structure. +********************************************************************/ +void reg_io_r_shutdown(char *desc, REG_R_SHUTDOWN *r_q, prs_struct *ps, int depth) +{ + if (r_q == NULL) return; + + prs_debug(ps, depth, desc, "reg_io_r_shutdown"); + depth++; + + prs_align(ps); + + prs_uint32("status", ps, depth, &(r_q->status)); +} + |