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
,
27 time_t spoolss_Time_to_time_t(const struct spoolss_Time
*r
);
28 bool spoolss_timestr_to_NTTIME(const char *str
,
30 bool spoolss_driver_version_to_qword(const char *str
,
32 WERROR
pull_spoolss_PrinterData(TALLOC_CTX
*mem_ctx
,
33 const DATA_BLOB
*blob
,
34 union spoolss_PrinterData
*data
,
35 enum winreg_Type type
);
36 WERROR
push_spoolss_PrinterData(TALLOC_CTX
*mem_ctx
, DATA_BLOB
*blob
,
37 enum winreg_Type type
,
38 union spoolss_PrinterData
*data
);
39 void spoolss_printerinfo2_to_setprinterinfo2(const struct spoolss_PrinterInfo2
*i
,
40 struct spoolss_SetPrinterInfo2
*s
);
41 bool driver_info_ctr_to_info8(struct spoolss_AddDriverInfoCtr
*r
,
42 struct spoolss_DriverInfo8
*_info8
);
44 WERROR
spoolss_create_default_devmode(TALLOC_CTX
*mem_ctx
,
45 const char *devicename
,
46 struct spoolss_DeviceMode
**devmode
);
48 WERROR
spoolss_create_default_secdesc(TALLOC_CTX
*mem_ctx
,
49 struct spoolss_security_descriptor
**secdesc
);
50 const char *spoolss_get_short_filesys_environment(const char *environment
);
51 WERROR
spoolss_init_spoolss_UserLevel1(TALLOC_CTX
*mem_ctx
,
53 struct spoolss_UserLevel1
*r
);
55 #endif /* _RPC_CLIENT_INIT_SPOOLSS_H_ */