/[dgee]/dgee/dbstore/bdb/dgBDB.h
ViewVC logotype

Diff of /dgee/dbstore/bdb/dgBDB.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by csmith, Mon May 12 20:20:43 2003 UTC revision 1.2 by csmith, Sun Sep 21 10:48:17 2003 UTC
# Line 0  Line 1 
1    /*
2     * DotGNU Execution Environment Core
3     * (c)2003 netFluid Technology Ltd - http://www.nfluid.com
4     *
5     * Berkeley DB Wrappers
6     *
7     * This program is free software; you can redistribute it and/or modify
8     * it under the terms of the GNU General Public License as published by
9     * the Free Software Foundation; either version 2 of the License, or
10     * (at your option) any later version.
11     *
12     * This program is distributed in the hope that it will be useful,
13     * but WITHOUT ANY WARRANTY; without even the implied warranty of
14     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15     * GNU General Public License for more details.
16     *
17     * You should have received a copy of the GNU General Public License
18     * along with this program; if not, write to the Free Software
19     * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
20     *
21     * $Revision$  $Date$
22     *
23     * --------------------------------------------------------------------------
24     */
25    #ifndef DG_BDB_H
26    #define DG_BDB_H
27    
28    #include <sys/types.h>
29    
30    #include <stdio.h>
31    #include <stdlib.h>
32    #include <string.h>
33    
34    #include <db.h>
35    #if ((defined DB_VERSION_MAJOR && DB_VERSION_MAJOR == 4)  && \
36         (defined DB_VERSION_MINOR && DB_VERSION_MINOR >= 1)) || \
37        (defined DB_VERSION_MAJOR && DB_VERSION_MAJOR > 4)
38    #  define WITH_BDB_TX
39    #endif
40    
41    #define BDBVERSION (DB_VERSION_MAJOR * 100) + DB_VERSION_MINOR
42    
43    #include "dbRow.h"
44    #include "dgDbError.h"
45    
46    int dgdb_store_row( dbRow *row, char *dbh, int insert, char *reserved );
47    int dgdb_read_row ( dbRow *row, char *dbh, char *reserved );
48    int dgdb_delete_row( dbRow *row, char *dbh, char *reserved );
49    int dgdb_close_db( char *dbh );
50    char * dgdb_open_db( char *tableName, int unique_key );
51    int dgdb_get_first( dbRow *row, char *dbh, dbRowItterator *ith, char *reserved );
52    int dgdb_get_next( dbRow *row, char *dbh, dbRowItterator *ith, char *reserved );
53    int dgdb_close_itterator( dbRowItterator *ith );
54    
55    int dgdb_init_dbengine( );
56    void dgdb_configure( char *dbhome );
57    
58    extern int errno;
59    
60    /* ------------------------------------------------------------------------- */
61    #endif

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26