[PATCH] Fix dependencies in ldb subsystem
Tim Potter <tpot <at> samba.org>
2006-04-02 23:12:20 GMT
OK this isn't really a working patch, but I was wondering if anyone had
any better ideas on how to fix this problem.
Making ldb in to a library is a great idea, as it allows other
components within Samba to depend on ldb without bringing in any other
dependencies. Unfortunately this is all messed up by the static modules
outside of ldb that end up pulling in other code.
I've started to try and tease this apart and have the subsystems that
have their own special ldb modules to register them by hand. Hey jelmer
and metze, what do you think about this?
My goal is to create a swig interface to ldb within Samba, but the
static modules (wins, rootdse, etc) are getting in the way.
Tim.
Index: dsdb/samdb/samdb.c
===================================================================
--- dsdb/samdb/samdb.c (revision 14869)
+++ dsdb/samdb/samdb.c (working copy)
<at> <at> -36,6 +36,15 <at> <at>
#include "dsdb/samdb/samdb.h"
#include "ads.h"
+int objectguid_module_init(void);
+int samldb_module_init(void);
+int ldb_samba3sam_module_init(void);
+int proxy_module_init(void);
(Continue reading)