summaryrefslogtreecommitdiff
path: root/pidl/lib/Parse/Pidl/Samba3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-05-13 07:53:07 +1000
committerGünther Deschner <gd@samba.org>2010-05-18 17:17:29 +0200
commitf5f184a77cfe83498d6e55f10fdf79ca37229696 (patch)
tree946b005e17cc85d4a2123653e7f113d7ebc00f24 /pidl/lib/Parse/Pidl/Samba3
parent0953087f82ddbd580e9807e0e8d780e78686c03c (diff)
downloadsamba-f5f184a77cfe83498d6e55f10fdf79ca37229696.tar.gz
samba-f5f184a77cfe83498d6e55f10fdf79ca37229696.tar.bz2
samba-f5f184a77cfe83498d6e55f10fdf79ca37229696.zip
pidl: Allow new property 'no_srv_register'.
This Samba-only property prevents pild from emitting the rpc_wbint_init function, which causes problems because it needs rpc_srv_register(). Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'pidl/lib/Parse/Pidl/Samba3')
-rw-r--r--pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm13
1 files changed, 7 insertions, 6 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm b/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
index 23a8736efa..f4dbe18bc1 100644
--- a/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
+++ b/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
@@ -313,12 +313,13 @@ sub ParseInterface($)
ParseDispatchFunction($if);
- pidl_hdr "NTSTATUS rpc_$if->{NAME}_init(void);";
- pidl "NTSTATUS rpc_$if->{NAME}_init(void)";
- pidl "{";
- pidl "\treturn rpc_srv_register(SMB_RPC_INTERFACE_VERSION, \"$if->{NAME}\", \"$if->{NAME}\", \&ndr_table_$if->{NAME}, api_$if->{NAME}_cmds, sizeof(api_$if->{NAME}_cmds) / sizeof(struct api_struct));";
- pidl "}";
-
+ if (not has_property($if, "no_srv_register")) {
+ pidl_hdr "NTSTATUS rpc_$if->{NAME}_init(void);";
+ pidl "NTSTATUS rpc_$if->{NAME}_init(void)";
+ pidl "{";
+ pidl "\treturn rpc_srv_register(SMB_RPC_INTERFACE_VERSION, \"$if->{NAME}\", \"$if->{NAME}\", \&ndr_table_$if->{NAME}, api_$if->{NAME}_cmds, sizeof(api_$if->{NAME}_cmds) / sizeof(struct api_struct));";
+ pidl "}";
+ }
pidl_hdr "#endif /* __SRV_$uif\__ */";
}