diff options
author | Volker Lendecke <vl@samba.org> | 2009-01-06 23:37:09 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-01-09 23:17:57 +0100 |
commit | 106e65a3b3ac5b13ffbf8ea644f25e99257ee64e (patch) | |
tree | 38c8543df97db7e34ce6f0e5c2bb6693c16b03e6 /source3/rpc_server | |
parent | 125696b73dbe3d0813432c9775c146e861b4707c (diff) | |
download | samba-106e65a3b3ac5b13ffbf8ea644f25e99257ee64e.tar.gz samba-106e65a3b3ac5b13ffbf8ea644f25e99257ee64e.tar.bz2 samba-106e65a3b3ac5b13ffbf8ea644f25e99257ee64e.zip |
Fake up ndr_table_spoolss
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_spoolss.c | 31 |
1 files changed, 27 insertions, 4 deletions
diff --git a/source3/rpc_server/srv_spoolss.c b/source3/rpc_server/srv_spoolss.c index 22b3a7607e..d3045028bf 100644 --- a/source3/rpc_server/srv_spoolss.c +++ b/source3/rpc_server/srv_spoolss.c @@ -1630,10 +1630,33 @@ void spoolss_get_pipe_fns( struct api_struct **fns, int *n_fns ) *n_fns = sizeof(api_spoolss_cmds) / sizeof(struct api_struct); } +static const char * const spoolss_endpoint_strings[] = { + "ncacn_np:[\\pipe\\spoolss]", +}; + +static const struct ndr_interface_string_array spoolss_endpoints = { + .count = 1, + .names = spoolss_endpoint_strings +}; + +const struct ndr_interface_table ndr_table_spoolss = { + .name = "spoolss", + .syntax_id = { + { 0x12345678, 0x1234, 0xabcd, { 0xef, 0x00 }, + { 0x01, 0x23, 0x45, 0x67, 0x89, 0xab } }, 0x01 + }, + .helpstring = "Spooler SubSystem", + .num_calls = 0x60, + .calls = NULL, /* unused in s3 so far */ + .endpoints = &spoolss_endpoints, + .authservices = NULL /* unused in s3 so far */ +}; + NTSTATUS rpc_spoolss_init(void) { - return rpc_pipe_register_commands(SMB_RPC_INTERFACE_VERSION, - "spoolss", "spoolss", &syntax_spoolss, - api_spoolss_cmds, - sizeof(api_spoolss_cmds) / sizeof(struct api_struct)); + return rpc_srv_register( + SMB_RPC_INTERFACE_VERSION, "spoolss", "spoolss", + &ndr_table_spoolss, + api_spoolss_cmds, + sizeof(api_spoolss_cmds) / sizeof(struct api_struct)); } |