r67: added a destroy hook in the policy handle -> wire handle code to allow backends
[samba.git] / source4 / rpc_server / dcerpc_server.h
index 411bf400bf311935477f8191cf8147dec1e288b6..c2bbe8073af919d1a26792c3fa3c8de1d39ab9a7 100644 (file)
@@ -21,6 +21,9 @@
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
+#ifndef SAMBA_DCERPC_SERVER_H
+#define SAMBA_DCERPC_SERVER_H
+
 /* modules can use the following to determine if the interface has changed
  * please increment the version number after each interface change
  * with a comment and maybe update struct dcesrv_critical_sizes.
@@ -83,6 +86,7 @@ struct dcesrv_handle {
        struct policy_handle wire_handle;
        TALLOC_CTX *mem_ctx;
        void *data;
+       void (*destroy)(struct dcesrv_connection *, struct dcesrv_handle *);
 };
 
 /* hold the authentication state information */
@@ -183,3 +187,5 @@ struct dcesrv_critical_sizes {
        int sizeof_dcesrv_auth;
        int sizeof_dcesrv_handle;
 };
+
+#endif /* SAMBA_DCERPC_SERVER_H */