summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-02-08 23:11:28 +0100
committerGünther Deschner <gd@samba.org>2009-02-09 10:43:01 +0100
commit9232a5be207dc156c37f45eede0f2de6465e58ee (patch)
tree5878fb79bce74053bbc9e17081eb346c55c13233 /source3/rpc_server
parent373a4d829d4f3591b10044af38ebf2097d21e533 (diff)
downloadsamba-9232a5be207dc156c37f45eede0f2de6465e58ee.tar.gz
samba-9232a5be207dc156c37f45eede0f2de6465e58ee.tar.bz2
samba-9232a5be207dc156c37f45eede0f2de6465e58ee.zip
s3-spoolss: add fill_form_info_1.
Guenther
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index f7d421263c..a97e4e9400 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -7248,6 +7248,27 @@ static void fill_form_1(FORM_1 *form, nt_forms_struct *list)
/****************************************************************************
****************************************************************************/
+static WERROR fill_form_info_1(TALLOC_CTX *mem_ctx,
+ struct spoolss_FormInfo1 *form,
+ nt_forms_struct *list)
+{
+ form->form_name = talloc_strdup(mem_ctx, list->name);
+ W_ERROR_HAVE_NO_MEMORY(form->form_name);
+
+ form->flags = list->flag;
+ form->size.width = list->width;
+ form->size.height = list->length;
+ form->area.left = list->left;
+ form->area.top = list->top;
+ form->area.right = list->right;
+ form->area.bottom = list->bottom;
+
+ return WERR_OK;
+}
+
+/****************************************************************************
+****************************************************************************/
+
WERROR _spoolss_enumforms(pipes_struct *p, SPOOL_Q_ENUMFORMS *q_u, SPOOL_R_ENUMFORMS *r_u)
{
uint32 level = q_u->level;