diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-05-16 21:18:25 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-05-18 16:12:08 +0200 |
commit | 41b3c38587f1153d49c1805869aa186b66501f7a (patch) | |
tree | 357a084034abfc2f3612c92795cdf78566ed0443 /librpc/ndr/libndr.h | |
parent | 8d7be8af794830c25d9d41eb53ad22b7b4ab7a9b (diff) | |
download | samba-41b3c38587f1153d49c1805869aa186b66501f7a.tar.gz samba-41b3c38587f1153d49c1805869aa186b66501f7a.tar.bz2 samba-41b3c38587f1153d49c1805869aa186b66501f7a.zip |
librpc/ndr Merge ndr_print_sockaddr_storage() into common code
There is no longer a reason to leave this source3 specific, and this
brings it into a library (avoiding duplicate symbols).
Andrew Bartlett
Diffstat (limited to 'librpc/ndr/libndr.h')
-rw-r--r-- | librpc/ndr/libndr.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/librpc/ndr/libndr.h b/librpc/ndr/libndr.h index 8c59bb9bb0..cbe9b40440 100644 --- a/librpc/ndr/libndr.h +++ b/librpc/ndr/libndr.h @@ -374,6 +374,8 @@ struct ndr_interface_list { const struct ndr_interface_table *table; }; +struct sockaddr_storage; + /********************************************************************* Map an NT error code from a NDR error code. *********************************************************************/ @@ -395,6 +397,7 @@ enum ndr_err_code ndr_pull_dom_sid0(struct ndr_pull *ndr, int ndr_flags, struct void ndr_print_dom_sid0(struct ndr_print *ndr, const char *name, const struct dom_sid *sid); size_t ndr_size_dom_sid0(const struct dom_sid *sid, int flags); void ndr_print_GUID(struct ndr_print *ndr, const char *name, const struct GUID *guid); +void ndr_print_sockaddr_storage(struct ndr_print *ndr, const char *name, const struct sockaddr_storage *ss); bool ndr_syntax_id_equal(const struct ndr_syntax_id *i1, const struct ndr_syntax_id *i2); enum ndr_err_code ndr_push_struct_blob(DATA_BLOB *blob, TALLOC_CTX *mem_ctx, const void *p, ndr_push_flags_fn_t fn); enum ndr_err_code ndr_push_union_blob(DATA_BLOB *blob, TALLOC_CTX *mem_ctx, void *p, uint32_t level, ndr_push_flags_fn_t fn); |