svn commit: samba r16820 - in branches/SOC/mkhl/samdb-map/ldb_modules: .

mkhl at samba.org mkhl at samba.org
Wed Jul 5 12:33:28 GMT 2006


Author: mkhl
Date: 2006-07-05 12:33:28 +0000 (Wed, 05 Jul 2006)
New Revision: 16820

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16820

Log:
Fix passing the ops around so none get corrupted before loading.

Martin

Modified:
   branches/SOC/mkhl/samdb-map/ldb_modules/samba3sam.c


Changeset:
Modified: branches/SOC/mkhl/samdb-map/ldb_modules/samba3sam.c
===================================================================
--- branches/SOC/mkhl/samdb-map/ldb_modules/samba3sam.c	2006-07-05 12:32:09 UTC (rev 16819)
+++ branches/SOC/mkhl/samdb-map/ldb_modules/samba3sam.c	2006-07-05 12:33:28 UTC (rev 16820)
@@ -873,11 +873,21 @@
         return ldb_next_init(module);
 }
 
+static struct ldb_module_ops samba3sam_ops = {
+	.name		   = "samba3sam",
+	.init_context	   = samba3sam_init,
+};
+
 /* the init function */
 int ldb_samba3sam_module_init(void)
 {
         struct ldb_module_ops ops = ldb_map_get_ops();
-        ops.init_context = samba3sam_init;
+	samba3sam_ops.add        = ops.add;
+	samba3sam_ops.modify     = ops.modify;
+	samba3sam_ops.del        = ops.del;
+	samba3sam_ops.rename     = ops.rename;
+	samba3sam_ops.search     = ops.search;
+	samba3sam_ops.async_wait = ops.async_wait;
 
-        return ldb_register_module(&ops);
+        return ldb_register_module(&samba3sam_ops);
 }



More information about the samba-cvs mailing list