s3: give ../librpc/ndr/util.c its own header.
authorGünther Deschner <gd@samba.org>
Wed, 9 Feb 2011 23:11:38 +0000 (00:11 +0100)
committerGünther Deschner <gd@samba.org>
Thu, 10 Feb 2011 11:58:06 +0000 (12:58 +0100)
Guenther

source3/include/proto.h
source3/libads/ndr.c
source3/librpc/idl/messaging.idl
source3/librpc/idl/notify.idl
source3/librpc/ndr/util.c
source3/librpc/ndr/util.h [new file with mode: 0644]
source3/winbindd/winbindd_ndr.c

index 58585a1bfc91297efc5d5049197aafb32beda925..a4e8ad58f7919c9d1990e96f64d9f4346dcf9122 100644 (file)
@@ -1570,13 +1570,6 @@ void wins_srv_tags_free(char **list);
 struct in_addr wins_srv_ip_tag(const char *tag, struct in_addr src_ip);
 unsigned wins_srv_count_tag(const char *tag);
 
-/* 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);
-
 /* The following definitions come from libsmb/cliconnect.c  */
 
 ADS_STATUS cli_session_setup_spnego(struct cli_state *cli, const char *user, 
index 843ae3b61573dd9925108da38dc1fc8f1e11c02f..603add001a39a0f4aec39b48c525491da1b45d40 100644 (file)
@@ -22,6 +22,7 @@
 #include "includes.h"
 #include "ads.h"
 #include "../librpc/gen_ndr/ndr_netlogon.h"
+#include "librpc/ndr/util.h"
 
 void ndr_print_ads_auth_flags(struct ndr_print *ndr, const char *name, uint32_t r)
 {
index faa9a6ef0cb8f6123c247cd4c5d4788e489a3826..22c34297e481de4ff1bba96776619acc54e98cfb 100644 (file)
@@ -5,6 +5,7 @@
 */
 
 [
+  helper("../librpc/ndr/util.h"),
   pointer_default(unique)
 ]
 interface messaging
index e776d5d715e13f383d455b8c8231b215ba5135ed..592af19eeb15e8e202402d250619aafa23f927db 100644 (file)
@@ -10,6 +10,7 @@ import "file_id.idl";
 */
 
 [
+  helper("../librpc/ndr/util.h"),
   pointer_default(unique)
 ]
 interface notify
index b55b3d8c8c90328227f6d5562fd4279509207e6a..d4e06df574bdeef37f0e43f2f4f60d988389f1e1 100644 (file)
@@ -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 (file)
index 0000000..3f7be6b
--- /dev/null
@@ -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);
index 94aa7eb965bf8d67ebfe8ccd44279540c5259f7f..2f26d8d981052ddff8446862b20cca5f5b26c120 100644 (file)
@@ -21,6 +21,7 @@
 #include "winbindd.h"
 #include "../librpc/gen_ndr/ndr_netlogon.h"
 #include "../librpc/gen_ndr/ndr_security.h"
+#include "librpc/ndr/util.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_WINBIND