ldb:test:api_search: shift remaining setUp adds to class add_index
[Samba.git] / librpc / ndr / ndr_compression.h
blob3d335b2befdf2c51e9c4176cd1a02bba5a800d65
1 /*
2 Unix SMB/CIFS implementation.
4 libndr compression support
6 Copyright (C) Stefan Metzmacher 2005
7 Copyright (C) Matthieu Suiche 2008
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 3 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with this program. If not, see <http://www.gnu.org/licenses/>.
23 #ifndef __LIBRPC_NDR_NDR_COMPRESSION_H__
24 #define __LIBRPC_NDR_NDR_COMPRESSION_H__
26 #undef _PRINTF_ATTRIBUTE
27 #define _PRINTF_ATTRIBUTE(a1, a2) PRINTF_ATTRIBUTE(a1, a2)
29 /* this file contains prototypes for functions that are private
30 * to this subsystem or library. These functions should not be
31 * used outside this particular subsystem! */
33 /* The following definitions come from librpc/ndr/ndr_compression.c */
35 enum ndr_err_code ndr_pull_compression_start(struct ndr_pull *subndr,
36 struct ndr_pull **_comndr,
37 enum ndr_compression_alg compression_alg,
38 ssize_t decompressed_len,
39 ssize_t compressed_len);
40 enum ndr_err_code ndr_pull_compression_end(struct ndr_pull *subndr,
41 struct ndr_pull *comndr,
42 enum ndr_compression_alg compression_alg,
43 ssize_t decompressed_len);
44 enum ndr_err_code ndr_push_compression_start(struct ndr_push *subndr,
45 struct ndr_push **_uncomndr);
46 enum ndr_err_code ndr_push_compression_end(struct ndr_push *subndr,
47 struct ndr_push *uncomndr);
49 enum ndr_err_code ndr_pull_compression_state_init(struct ndr_pull *ndr,
50 enum ndr_compression_alg compression_alg,
51 struct ndr_compression_state **state);
52 void ndr_pull_compression_state_free(struct ndr_compression_state *state);
53 enum ndr_err_code ndr_push_compression_state_init(struct ndr_push *ndr,
54 enum ndr_compression_alg compression_alg);
56 #undef _PRINTF_ATTRIBUTE
57 #define _PRINTF_ATTRIBUTE(a1, a2)
59 #endif /* __LIBRPC_NDR_NDR_COMPRESSION_H__ */