source: trunk/server/source3/rpc_client/init_spoolss.h

Last change on this file was 745, checked in by Silvan Scherrer, 13 years ago

Samba Server: updated trunk to 3.6.0

File size: 1.9 KB
Line 
1/*
2 * Unix SMB/CIFS implementation.
3 * RPC Pipe client / server routines
4 * Copyright (C) Guenther Deschner 2009.
5 *
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.
10 *
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.
15 *
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/>.
18 */
19
20#ifndef _RPC_CLIENT_INIT_SPOOLSS_H_
21#define _RPC_CLIENT_INIT_SPOOLSS_H_
22
23/* The following definitions come from rpc_client/init_spoolss.c */
24
25bool init_systemtime(struct spoolss_Time *r,
26 struct tm *unixtime);
27time_t spoolss_Time_to_time_t(const struct spoolss_Time *r);
28WERROR pull_spoolss_PrinterData(TALLOC_CTX *mem_ctx,
29 const DATA_BLOB *blob,
30 union spoolss_PrinterData *data,
31 enum winreg_Type type);
32WERROR push_spoolss_PrinterData(TALLOC_CTX *mem_ctx, DATA_BLOB *blob,
33 enum winreg_Type type,
34 union spoolss_PrinterData *data);
35void spoolss_printerinfo2_to_setprinterinfo2(const struct spoolss_PrinterInfo2 *i,
36 struct spoolss_SetPrinterInfo2 *s);
37bool driver_info_ctr_to_info8(struct spoolss_AddDriverInfoCtr *r,
38 struct spoolss_DriverInfo8 *_info8);
39
40WERROR spoolss_create_default_devmode(TALLOC_CTX *mem_ctx,
41 const char *devicename,
42 struct spoolss_DeviceMode **devmode);
43
44WERROR spoolss_create_default_secdesc(TALLOC_CTX *mem_ctx,
45 struct spoolss_security_descriptor **secdesc);
46
47#endif /* _RPC_CLIENT_INIT_SPOOLSS_H_ */
Note: See TracBrowser for help on using the repository browser.