diff options
author | Günther Deschner <gd@samba.org> | 2008-04-16 23:23:24 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-04-17 14:55:15 +0200 |
commit | 6c6c89cde0808ad2c485064d7bbdbfc57a77d2d4 (patch) | |
tree | 2cd36bad7d11ef9f3fc1ffca8aa71b08d0bfcead /source3/librpc/ndr | |
parent | e629c8d08f2059d2b66d3bbfe3cd84f672e1c4dd (diff) | |
download | samba-6c6c89cde0808ad2c485064d7bbdbfc57a77d2d4.tar.gz samba-6c6c89cde0808ad2c485064d7bbdbfc57a77d2d4.tar.bz2 samba-6c6c89cde0808ad2c485064d7bbdbfc57a77d2d4.zip |
IDL: build generated nbt code.
Guenther
(This used to be commit 554dcfdab03f9d06f319a3234d56cf44dc38c9da)
Diffstat (limited to 'source3/librpc/ndr')
-rw-r--r-- | source3/librpc/ndr/libndr.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/librpc/ndr/libndr.h b/source3/librpc/ndr/libndr.h index a277a626c7..35a5b136a7 100644 --- a/source3/librpc/ndr/libndr.h +++ b/source3/librpc/ndr/libndr.h @@ -337,4 +337,15 @@ struct ndr_interface_list { const struct ndr_interface_table *table; }; +#define NDR_SCALAR_PROTO(name, type) \ +enum ndr_err_code ndr_push_ ## name(struct ndr_push *ndr, int ndr_flags, type v); \ +enum ndr_err_code ndr_pull_ ## name(struct ndr_pull *ndr, int ndr_flags, type *v); \ +void ndr_print_ ## name(struct ndr_print *ndr, const char *var_name, type v); + +#define NDR_BUFFER_PROTO(name, type) \ +enum ndr_err_code ndr_push_ ## name(struct ndr_push *ndr, int ndr_flags, const type *v); \ +enum ndr_err_code ndr_pull_ ## name(struct ndr_pull *ndr, int ndr_flags, type *v); \ +void ndr_print_ ## name(struct ndr_print *ndr, const char *var_name, const type *v); + + #endif /* __LIBNDR_H__ */ |