2 NDR library used by pidl bindings
4 Copyright (C) Stefan Metzmacher 2008
6 ** NOTE! The following LGPL license applies to the ndr
7 ** library. This does NOT imply that all of Samba is released
10 This library is free software; you can redistribute it and/or
11 modify it under the terms of the GNU Lesser General Public
12 License as published by the Free Software Foundation; either
13 version 3 of the License, or (at your option) any later version.
15 This library is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 Lesser General Public License for more details.
20 You should have received a copy of the GNU Lesser General Public
21 License along with this library; if not, see <http://www.gnu.org/licenses/>.
24 #include "includes.h" /* TODO: remove this! */
28 void ndr_print_bitmap_flag(struct ndr_print *ndr, size_t size, const char *flag_name,
29 uint32_t flag, uint32_t value)
34 void ndr_print_enum(struct ndr_print *print, const char *name, const char *type,
35 const char *value_string, uint32_t value)
40 void ndr_print_struct(struct ndr_print *print, const char *name, const char *type)
45 void ndr_print_union(struct ndr_print *print, const char *name,
46 int32_t level, const char *type)
51 void ndr_print_bad_level(struct ndr_print *print, const char *name, uint32_t level)
56 void ndr_print_string_helper(struct ndr_print *print, const char *format, ...) _PRINTF_ATTRIBUTE(2,3)
61 char *ndr_print_function_string(TALLOC_CTX *mem_ctx,
62 ndr_print_function_t fn, const char *name,
63 uint32_t flags, const void *ptr)