s3: Remove close_fn from idmap_methods
[samba.git] / source3 / include / idmap.h
index aab41cd7d3332cfc0226cd6f43d1c1733f3db827..7b3d6decf2fe3ef977a6ebdb8201f62402fea369 100644 (file)
@@ -7,17 +7,17 @@
 
    Copyright (C) Jim McDonough <jmcd@us.ibm.com> 2003
    Copyright (C) Simo Sorce 2003
-   
+
    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 3 of the License, or (at your option) any later version.
-   
+
    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Library General Public License for more details.
-   
+
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
@@ -30,6 +30,8 @@
 
 #define SMB_IDMAP_INTERFACE_VERSION 5
 
+#include "librpc/gen_ndr/idmap.h"
+
 struct idmap_domain {
        const char *name;
        struct idmap_methods *methods;
@@ -55,9 +57,8 @@ struct idmap_methods {
 
        /* Allocate a Unix-ID. */
        NTSTATUS (*allocate_id)(struct idmap_domain *dom, struct unixid *id);
-
-       /* Called when backend is unloaded */
-       NTSTATUS (*close_fn)(struct idmap_domain *dom);
 };
 
+#include "winbindd/idmap_proto.h"
+
 #endif /* _IDMAP_H_ */