]>
git.ipfire.org Git - thirdparty/glibc.git/blob - nss/nss_db/dummy-db.h
600d51d9842cbd626b40ebdc83090de3e1bfc6dc
5 /* This file contains dummy definitions of the DB structure of the
6 Berkeley DB. We are only interested in the function pointers since
7 this is the interface to the database. Unfortunately the structure
8 changed over time and we have to take this into account. */
10 /* The values to select the database type are unchanged over the version.
11 Define only what we really need. */
14 /* Permission flags are also not changed. */
15 #define DB_RDONLY 0x010000
18 #define DB24_FIRST 0x000020
19 #define DB24_NEXT 0x000800
20 #define DB24_NOOVERWRITE 0x001000
23 /* This is for the db-2.x version up to 2.x.y. We use the name `db24' since
24 this is the version which was shipped with glibc 2.1. */
28 enum { dummy24
} type
;
65 int (*close
) (void *, uint32_t);
66 int (*cursor
) (void *, void *, void **);
67 int (*del
) (void *, void *, DBT
*, uint32_t);
68 int (*fd
) (void *, int *);
69 int (*get
) (void *, void *, DBT
*, DBT
*, uint32_t);
70 int (*put
) (void *, void *, DBT
*, DBT
*, uint32_t);
71 int (*stat
) (void *, void *, void *(*)(size_t), uint32_t);
72 int (*sync
) (void *, uint32_t);
88 int (*c_get
) (void *, void *, void *, uint32_t);
92 /* Flags which changed. */
93 #define DB24_TRUNCATE 0x080000
96 /* Versions for 2.7, slightly incompatible with version 2.4. */
100 enum { dummy27
} type
;
127 int (*am_close
) (void *);
128 int (*close
) (void *, uint32_t);
129 int (*cursor
) (void *, void *, void **, uint32_t);
130 int (*del
) (void *, void *, DBT
*, uint32_t);
131 int (*fd
) (void *, int *);
132 int (*get
) (void *, void *, DBT
*, DBT
*, uint32_t);
133 int (*put
) (void *, void *, DBT
*, DBT
*, uint32_t);
134 int (*stat
) (void *, void *, void *(*)(size_t), uint32_t);
135 int (*sync
) (void *, uint32_t);
159 int (*c_get
) (void *, void *, void *, uint32_t);
165 /* Flags which changed. */
166 #define DB27_TRUNCATE 0x020000
168 /* Access methods. */
171 #define DB27_NOOVERWRITE 17