s3-printing: open up a winreg pipe handle for the migration code.
[Samba/gebeck_regimport.git] / source3 / printing / nt_printing_migrate.h
blob707ddc9714f71c9d42014583356348f708148afd
1 /*
2 * Unix SMB/CIFS implementation.
3 * RPC Pipe client / server routines
5 * Copyright (c) Andreas Schneider 2010.
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 3 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, see <http://www.gnu.org/licenses/>.
21 #ifndef _NT_PRINTING_MIGRATE_H_
22 #define _NT_PRINTING_MIGRATE_H_
24 NTSTATUS printing_tdb_migrate_form(TALLOC_CTX *mem_ctx,
25 struct rpc_pipe_client *pipe_hnd,
26 struct rpc_pipe_client *winreg_pipe,
27 const char *key_name,
28 unsigned char *data,
29 size_t length);
30 NTSTATUS printing_tdb_migrate_driver(TALLOC_CTX *mem_ctx,
31 struct rpc_pipe_client *pipe_hnd,
32 struct rpc_pipe_client *winreg_pipe,
33 const char *key_name,
34 unsigned char *data,
35 size_t length);
36 NTSTATUS printing_tdb_migrate_printer(TALLOC_CTX *mem_ctx,
37 struct rpc_pipe_client *pipe_hnd,
38 struct rpc_pipe_client *winreg_pipe,
39 const char *key_name,
40 unsigned char *data,
41 size_t length);
42 NTSTATUS printing_tdb_migrate_secdesc(TALLOC_CTX *mem_ctx,
43 struct rpc_pipe_client *pipe_hnd,
44 struct rpc_pipe_client *winreg_pipe,
45 const char *key_name,
46 unsigned char *data,
47 size_t length);
49 #endif /* _NT_PRINTING_MIGRATE_H_ */