about summary refs log tree commit diff
path: root/nss/nss_db/nss_db.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-01-02 08:45:58 +0000
committerUlrich Drepper <drepper@redhat.com>2000-01-02 08:45:58 +0000
commit793bd4d9ebc5198ac292437227bec133fc6f4dfc (patch)
treefcac05d3fe6bd9e1e8ac94df7f3450929640ad12 /nss/nss_db/nss_db.h
parent8d6f1731fcd082e4f744ba9cb4bde4be7c08f1b3 (diff)
downloadglibc-793bd4d9ebc5198ac292437227bec133fc6f4dfc.tar.gz
glibc-793bd4d9ebc5198ac292437227bec133fc6f4dfc.tar.xz
glibc-793bd4d9ebc5198ac292437227bec133fc6f4dfc.zip
Update.
2000-01-02  Ulrich Drepper  <drepper@cygnus.com>

	* nss/nss_db/nss_db.h: Add definitions needed for makedb.
	* nss/nss_db/dummy-db.h: Likewise.
	* nss/makedb.c: New file.  Copied from file in db2, modified to not
	depend on being linked against libdb.
Diffstat (limited to 'nss/nss_db/nss_db.h')
-rw-r--r--nss/nss_db/nss_db.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/nss/nss_db/nss_db.h b/nss/nss_db/nss_db.h
index 8dc2a36416..dbf6ed8b54 100644
--- a/nss/nss_db/nss_db.h
+++ b/nss/nss_db/nss_db.h
@@ -24,17 +24,32 @@
 
 /* The error values kept the same values though new values were added.
    Define only those which we need.  */
+#define DB_KEYEXIST	( -3)
 #define DB_NOTFOUND	( -7)
 
+/* Flags are also unchanged.  */
+#define DB_CREATE	0x000001
+
+
+/* Similarly we have to handle the cursor object.  It is also very
+   different from version to version.  */
+typedef struct
+{
+  void *cursor;
+  int (*c_get) (void *, void *, void *, uint32_t);
+} NSS_DBC;
+
+
 /* This is the wrapper we put around the `DB' structures to provide a
    uniform interface to the higher-level functions.  */
 typedef struct
 {
   void *db;
   int (*close) (void *, uint32_t);
+  int (*cursor) (void *, void *, NSS_DBC **);
   int (*fd) (void *, int *);
   int (*get) (void *, void *, void *, void *, uint32_t);
-
+  int (*put) (void *, void *, void *, void *, uint32_t);
 } NSS_DB;