svn commit: samba r16564 - in branches/tmp/vl-messaging/source/lib:
.
jmcd at samba.org
jmcd at samba.org
Tue Jun 27 15:14:56 GMT 2006
Author: jmcd
Date: 2006-06-27 15:14:56 +0000 (Tue, 27 Jun 2006)
New Revision: 16564
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16564
Log:
Whoops, forgot to add these two files.
Added:
branches/tmp/vl-messaging/source/lib/dbwrap.c
branches/tmp/vl-messaging/source/lib/dbwrap_msg.c
Changeset:
Added: branches/tmp/vl-messaging/source/lib/dbwrap.c
===================================================================
--- branches/tmp/vl-messaging/source/lib/dbwrap.c 2006-06-27 14:34:31 UTC (rev 16563)
+++ branches/tmp/vl-messaging/source/lib/dbwrap.c 2006-06-27 15:14:56 UTC (rev 16564)
@@ -0,0 +1,43 @@
+/*
+ Unix SMB/CIFS implementation.
+ Database interface wrapper
+ Copyright (C) Jim McDonough <jmcd at us.ibm.com> 2006
+
+ Major code contributions from Aleksey Fedoseev (fedoseev at ru.ibm.com)
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*/
+
+#include "includes.h"
+
+struct db_context *db_open(TALLOC_CTX *mem_ctx, const char *name,
+ int hash_size, int tdb_flags,
+ int open_flags, mode_t mode)
+{
+ switch((enum locking_type)lp_locking_type()) {
+ case LOCKING_TYPE_TDB:
+ return db_open_tdb(mem_ctx, name, hash_size, tdb_flags,
+ open_flags, mode);
+ case LOCKING_TYPE_FILES:
+ return db_open_file(mem_ctx, name, hash_size, tdb_flags,
+ open_flags, mode);
+ case LOCKING_TYPE_MESSAGES:
+ return db_open_msg(mem_ctx, name, hash_size, tdb_flags,
+ open_flags, mode);
+ default:
+ DEBUG(0,("Bad locking type %d\n", lp_locking_type()));
+ return NULL;
+ }
+}
Added: branches/tmp/vl-messaging/source/lib/dbwrap_msg.c
===================================================================
--- branches/tmp/vl-messaging/source/lib/dbwrap_msg.c 2006-06-27 14:34:31 UTC (rev 16563)
+++ branches/tmp/vl-messaging/source/lib/dbwrap_msg.c 2006-06-27 15:14:56 UTC (rev 16564)
@@ -0,0 +1,30 @@
+/*
+ Unix SMB/CIFS implementation.
+ Database interface using messages
+ Copyright (C) Jim McDonough <jmcd at us.ibm.com> 2006
+
+ Major code contributions from Aleksey Fedoseev (fedoseev at ru.ibm.com)
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*/
+
+#include "includes.h"
+
+struct db_context *db_open_msg(TALLOC_CTX *mem_ctx, const char *name,
+ int hash_size, int tdb_flags,
+ int open_flags, mode_t mode)
+{
+ return NULL;
+}
More information about the samba-cvs
mailing list