1 /* 2 Unix SMB/CIFS implementation. 3 4 libndr compression support 5 6 Copyright (C) Stefan Metzmacher 2005 7 Copyright (C) Matthieu Suiche 2008 8 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. 13 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. 18 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/>. 21 */ 22 23 #ifndef __LIBRPC_NDR_NDR_COMPRESSION_H__ 24 #define __LIBRPC_NDR_NDR_COMPRESSION_H__ 25 26 #undef _PRINTF_ATTRIBUTE 27 #define _PRINTF_ATTRIBUTE(a1, a2) PRINTF_ATTRIBUTE(a1, a2) 28 /* This file was automatically generated by mkproto.pl. DO NOT EDIT */ 29 30 /* this file contains prototypes for functions that are private 31 * to this subsystem or library. These functions should not be 32 * used outside this particular subsystem! */ 33 34 35 /* The following definitions come from librpc/ndr/ndr_compression.c */ 36 37 enum ndr_err_code ndr_pull_compression_start(struct ndr_pull *subndr, 38 struct ndr_pull **_comndr, 39 enum ndr_compression_alg compression_alg, 40 ssize_t decompressed_len, 41 ssize_t compressed_len); 42 enum ndr_err_code ndr_pull_compression_end(struct ndr_pull *subndr, 43 struct ndr_pull *comndr, 44 enum ndr_compression_alg compression_alg, 45 ssize_t decompressed_len); 46 enum ndr_err_code ndr_push_compression_start(struct ndr_push *subndr, 47 struct ndr_push **_uncomndr, 48 enum ndr_compression_alg compression_alg, 49 ssize_t decompressed_len); 50 enum ndr_err_code ndr_push_compression_end(struct ndr_push *subndr, 51 struct ndr_push *uncomndr, 52 enum ndr_compression_alg compression_alg, 53 ssize_t decompressed_len); 54 55 enum ndr_err_code ndr_pull_compression_state_init(struct ndr_pull *ndr, 56 enum ndr_compression_alg compression_alg, 57 struct ndr_compression_state **state); 58 void ndr_pull_compression_state_free(struct ndr_compression_state *state); 59 enum ndr_err_code ndr_push_compression_state_init(struct ndr_push *ndr, 60 enum ndr_compression_alg compression_alg, 61 struct ndr_compression_state **state); 62 void ndr_push_compression_state_free(struct ndr_compression_state *state); 63 64 #undef _PRINTF_ATTRIBUTE 65 #define _PRINTF_ATTRIBUTE(a1, a2) 66 67 #endif /* __LIBRPC_NDR_NDR_COMPRESSION_H__ */ 68 69