30 #define DISABLE_DEBUGLOG
33 #include <gwenhywfar/gwenhywfar.h>
34 #include <gwenhywfar/misc.h>
35 #include <gwenhywfar/debug.h>
36 #include <gwenhywfar/path.h>
37 #include <gwenhywfar/text.h>
38 #include <gwenhywfar/directory.h>
39 #include <gwenhywfar/syncio.h>
40 #include <gwenhywfar/syncio_file.h>
41 #include <gwenhywfar/syncio_memory.h>
42 #include <gwenhywfar/fslock.h>
43 #include <gwenhywfar/pathmanager.h>
54 #include <sys/types.h>
55 #ifdef HAVE_SYS_STAT_H
56 # include <sys/stat.h>
131 "Could not unregister DBIO plugin manager (%d)", rv);
147 const char *fileName) {
149 GWEN_DBIO_PLUGIN *pldbio;
162 GWEN_DBIO_PLUGIN *pldbio;
164 pldbio=(GWEN_DBIO_PLUGIN*)p;
171 GWEN_DBIO_PLUGIN *pldbio;
177 assert(pldbio->factoryFn);
178 return pldbio->factoryFn(pl);
185 GWEN_DBIO_PLUGIN *pldbio;
208 dbio->name=strdup(name);
210 dbio->descr=strdup(descr);
221 if (--(dbio->usage)==0) {
257 return dbio->importFn(dbio, sio, db, params, flags);
276 return dbio->exportFn(dbio, sio, db, params, flags);
290 if (dbio->checkFileFn)
291 return dbio->checkFileFn(dbio, fname);
354 "Plugin did not create a GWEN_DBIO");
379 "Could not apply lock to file \"%s\" (%d)",
437 "Could not remove lock on file \"%s\" (%d)",
489 "Could not apply lock to file \"%s\" (%d)",
533 "Could not remove lock on file \"%s\" (%d)",