2 NDR library used by pidl bindings
4 Copyright (C) Stefan Metzmacher 2007
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 struct ndr_push *ndr_push_init_ctx(TALLOC_CTX *mem_ctx)
30 return talloc_zero(mem_ctx, struct ndr_push);
33 DATA_BLOB ndr_push_blob(struct ndr_push *push)
35 return data_blob_const(push->data, push->offset);
38 enum ndr_err_code ndr_push_zero(struct ndr_push *push, size_t len)
40 return NDR_ERR_FOOBAR;
43 enum ndr_err_code ndr_push_align(struct ndr_push *push, size_t len)
45 return NDR_ERR_FOOBAR;
48 enum ndr_err_code ndr_push_bytes(struct ndr_push *push, const uint8_t *data, size_t len)
50 return NDR_ERR_FOOBAR;