spoolss_svc.c revision 148c5f43199ca0b43fc8e3b643aab11cd66ea327
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
/*
* Printing and Spooling RPC service.
*/
#include <stdlib.h>
#include <strings.h>
#include <smbsrv/libmlrpc.h>
#include <smbsrv/libmlsvc.h>
int spoolss_s_OpenPrinter(void *, ndr_xa_t *);
int spoolss_s_stub(void *, ndr_xa_t *);
static ndr_stub_table_t spoolss_stub_table[] = {
{0}
};
static ndr_service_t spoolss_service = {
"SPOOLSS", /* name */
"Print Spool Service", /* desc */
"\\spoolss", /* endpoint */
PIPE_SPOOLSS, /* sec_addr_port */
"12345678-1234-abcd-ef000123456789ab", 1, /* abstract */
0, /* no bind_instance_size */
0, /* no bind_req() */
0, /* no unbind_and_close() */
0, /* use generic_call_stub() */
spoolss_stub_table /* stub_table */
};
void
spoolss_initialize(void)
{
(void) ndr_svc_register(&spoolss_service);
}
int
{
else
return (NDR_DRC_OK);
}
/*ARGSUSED*/
int
{
return (NDR_DRC_FAULT_PARAM_0_UNIMPLEMENTED);
}