s4-rpc_server: Allow each interface to declare if it uses handles
[amitay/samba.git] / pidl / lib / Parse / Pidl / Samba4 / NDR / Server.pm
index fe5ca0bc5e9bb157ba0c63a2dd4bdd6733f694c9..88c7705c3c21a9f1fd8b052bb2811c620d599842 100644 (file)
@@ -193,14 +193,19 @@ static NTSTATUS $name\__op_ndr_push(struct dcesrv_call_state *dce_call, TALLOC_C
 }
 
 static const struct dcesrv_interface dcesrv\_$name\_interface = {
-       .name           = \"$name\",
-       .syntax_id  = {".print_uuid($uuid).",$if_version},
-       .bind           = $name\__op_bind,
-       .unbind         = $name\__op_unbind,
-       .ndr_pull       = $name\__op_ndr_pull,
-       .dispatch       = $name\__op_dispatch,
-       .reply          = $name\__op_reply,
-       .ndr_push       = $name\__op_ndr_push
+       .name               = \"$name\",
+       .syntax_id          = {".print_uuid($uuid).",$if_version},
+       .bind               = $name\__op_bind,
+       .unbind             = $name\__op_unbind,
+       .ndr_pull           = $name\__op_ndr_pull,
+       .dispatch           = $name\__op_dispatch,
+       .reply              = $name\__op_reply,
+       .ndr_push           = $name\__op_ndr_push,
+#ifdef DCESRV_INTERFACE_$uname\_FLAGS
+       .flags              = DCESRV_INTERFACE_$uname\_FLAGS
+#else
+       .flags              = 0
+#endif
 };
 
 ";