summaryrefslogtreecommitdiff
path: root/source/rpc_parse/parse_svc.c
diff options
context:
space:
mode:
authorMatthew Chapman <matty@samba.org>1999-03-16 06:24:24 +0000
committerMatthew Chapman <matty@samba.org>1999-03-16 06:24:24 +0000
commit03e722cdf502491d09d4c5eb9024d837ae10ab32 (patch)
tree87d3bd62a5fa9bd5d2f5df38a7af8e42c7018914 /source/rpc_parse/parse_svc.c
parentc95520eae9eecc2ec0a347dc0212d6983c5c7f2c (diff)
downloadsamba-03e722cdf502491d09d4c5eb9024d837ae10ab32.tar.gz
Added SVC_QUERY_DISP_NAME (corresponding to the GetServiceDisplayName API).
Needed during preliminary part of SAM replication.
Diffstat (limited to 'source/rpc_parse/parse_svc.c')
-rw-r--r--source/rpc_parse/parse_svc.c58
1 files changed, 58 insertions, 0 deletions
diff --git a/source/rpc_parse/parse_svc.c b/source/rpc_parse/parse_svc.c
index 9c1f0f33359..e8cdd35a2c3 100644
--- a/source/rpc_parse/parse_svc.c
+++ b/source/rpc_parse/parse_svc.c
@@ -521,6 +521,64 @@ void svc_io_r_query_svc_config(char *desc, SVC_R_QUERY_SVC_CONFIG *r_u, prs_str
}
/*******************************************************************
+reads or writes a structure.
+********************************************************************/
+void svc_io_q_query_disp_name(char *desc, SVC_Q_QUERY_DISP_NAME *q_u, prs_struct *ps, int depth)
+{
+ if (q_u == NULL) return;
+
+ prs_debug(ps, depth, desc, "svc_io_q_query_disp_name");
+ depth++;
+
+ prs_align(ps);
+
+ smb_io_pol_hnd("", &(q_u->scman_pol), ps, depth);
+ prs_align(ps);
+
+ smb_io_unistr2("uni_svc_name", &(q_u->uni_svc_name), 1, ps, depth);
+ prs_align(ps);
+
+ prs_uint32("buf_size", ps, depth, &(q_u->buf_size));
+}
+
+/*******************************************************************
+makes an SVC_R_QUERY_DISP_NAME structure.
+********************************************************************/
+void make_svc_r_query_disp_name(SVC_R_QUERY_DISP_NAME *r_d,
+ char *disp_name, uint32 status)
+{
+ uint32 len = strlen(disp_name);
+
+ if (r_d == NULL) return;
+
+ DEBUG(5,("make_svc_r_query_disp_name\n"));
+
+ make_unistr2(&(r_d->uni_disp_name), disp_name, len+1);
+ r_d->buf_size = len;
+
+ r_d->status = status;
+}
+
+/*******************************************************************
+reads or writes a structure.
+********************************************************************/
+void svc_io_r_query_disp_name(char *desc, SVC_R_QUERY_DISP_NAME *r_u, prs_struct *ps, int depth)
+{
+ if (r_u == NULL) return;
+
+ prs_debug(ps, depth, desc, "svc_io_r_query_disp_name");
+ depth++;
+
+ prs_align(ps);
+
+ smb_io_unistr2("uni_disp_name", &(r_u->uni_disp_name), 1, ps, depth);
+ prs_align(ps);
+
+ prs_uint32("buf_size", ps, depth, &(r_u->buf_size));
+ prs_uint32("status ", ps, depth, &(r_u->status ));
+}
+
+/*******************************************************************
makes an SVC_Q_CLOSE structure.
********************************************************************/
void make_svc_q_close(SVC_Q_CLOSE *q_c, POLICY_HND *hnd)