From fdd4d56405544b8c25fa3f24889726cb98506345 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 10 Feb 2011 00:11:38 +0100 Subject: s3: give ../librpc/ndr/util.c its own header. Guenther --- source3/librpc/idl/messaging.idl | 1 + source3/librpc/idl/notify.idl | 1 + source3/librpc/ndr/util.c | 1 + source3/librpc/ndr/util.h | 7 +++++++ 4 files changed, 10 insertions(+) create mode 100644 source3/librpc/ndr/util.h (limited to 'source3/librpc') diff --git a/source3/librpc/idl/messaging.idl b/source3/librpc/idl/messaging.idl index faa9a6ef0c..22c34297e4 100644 --- a/source3/librpc/idl/messaging.idl +++ b/source3/librpc/idl/messaging.idl @@ -5,6 +5,7 @@ */ [ + helper("../librpc/ndr/util.h"), pointer_default(unique) ] interface messaging diff --git a/source3/librpc/idl/notify.idl b/source3/librpc/idl/notify.idl index e776d5d715..592af19eeb 100644 --- a/source3/librpc/idl/notify.idl +++ b/source3/librpc/idl/notify.idl @@ -10,6 +10,7 @@ import "file_id.idl"; */ [ + helper("../librpc/ndr/util.h"), pointer_default(unique) ] interface notify diff --git a/source3/librpc/ndr/util.c b/source3/librpc/ndr/util.c index b55b3d8c8c..d4e06df574 100644 --- a/source3/librpc/ndr/util.c +++ b/source3/librpc/ndr/util.c @@ -20,6 +20,7 @@ */ #include "includes.h" +#include "librpc/ndr/util.h" enum ndr_err_code ndr_push_server_id(struct ndr_push *ndr, int ndr_flags, const struct server_id *r) { diff --git a/source3/librpc/ndr/util.h b/source3/librpc/ndr/util.h new file mode 100644 index 0000000000..3f7be6bbaf --- /dev/null +++ b/source3/librpc/ndr/util.h @@ -0,0 +1,7 @@ + +/* The following definitions come from librpc/ndr/util.c */ + +enum ndr_err_code ndr_push_server_id(struct ndr_push *ndr, int ndr_flags, const struct server_id *r); +enum ndr_err_code ndr_pull_server_id(struct ndr_pull *ndr, int ndr_flags, struct server_id *r); +void ndr_print_server_id(struct ndr_print *ndr, const char *name, const struct server_id *r); +_PUBLIC_ void ndr_print_sockaddr_storage(struct ndr_print *ndr, const char *name, const struct sockaddr_storage *ss); -- cgit