librpc: Shorten dcerpc_binding_handle_call a bit
[Samba/gebeck_regimport.git] / source3 / rpc_client / init_spoolss.h
blob247f711f760c2509f1fd2ee6228bc211352af9c5
1 /*
2 * Unix SMB/CIFS implementation.
3 * RPC Pipe client / server routines
4 * Copyright (C) Guenther Deschner 2009.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, see <http://www.gnu.org/licenses/>.
20 #ifndef _RPC_CLIENT_INIT_SPOOLSS_H_
21 #define _RPC_CLIENT_INIT_SPOOLSS_H_
23 /* The following definitions come from rpc_client/init_spoolss.c */
25 bool init_systemtime(struct spoolss_Time *r,
26 struct tm *unixtime);
27 time_t spoolss_Time_to_time_t(const struct spoolss_Time *r);
28 WERROR pull_spoolss_PrinterData(TALLOC_CTX *mem_ctx,
29 const DATA_BLOB *blob,
30 union spoolss_PrinterData *data,
31 enum winreg_Type type);
32 WERROR push_spoolss_PrinterData(TALLOC_CTX *mem_ctx, DATA_BLOB *blob,
33 enum winreg_Type type,
34 union spoolss_PrinterData *data);
35 void spoolss_printerinfo2_to_setprinterinfo2(const struct spoolss_PrinterInfo2 *i,
36 struct spoolss_SetPrinterInfo2 *s);
37 bool driver_info_ctr_to_info8(struct spoolss_AddDriverInfoCtr *r,
38 struct spoolss_DriverInfo8 *_info8);
40 WERROR spoolss_create_default_devmode(TALLOC_CTX *mem_ctx,
41 const char *devicename,
42 struct spoolss_DeviceMode **devmode);
44 WERROR spoolss_create_default_secdesc(TALLOC_CTX *mem_ctx,
45 struct spoolss_security_descriptor **secdesc);
47 #endif /* _RPC_CLIENT_INIT_SPOOLSS_H_ */