Merge 2610c05b5b95cc7036b3d6dfb894c6cfbdb68483 as Samba-4.0alpha16
[vlendec/samba-autobuild/.git] / source3 / rpc_client / init_spoolss.h
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
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
38 #endif /* _RPC_CLIENT_INIT_SPOOLSS_H_ */