]> arthur.barton.de Git - netatalk.git/blobdiff - include/atalk/cnid.h
Rewrite dbd to use CNID IPC instead of opening the db directly
[netatalk.git] / include / atalk / cnid.h
index 2d3aa062b8b601c4ac016e4aa59d5d672e8e05c6..ba0b62fad3d0d1e4149d5aeae63565e1b748e3f8 100644 (file)
@@ -69,6 +69,7 @@ struct _cnid_db {
                                 const char *, size_t, cnid_t);
     int    (*cnid_find)        (struct _cnid_db *cdb, const char *name, size_t namelen,
                                 void *buffer, size_t buflen);
+    int    (*cnid_wipe)        (struct _cnid_db *cdb);
 };
 typedef struct _cnid_db cnid_db;
 
@@ -123,6 +124,7 @@ cnid_t cnid_rebuild_add(struct _cnid_db *cdb, const struct stat *st, const cnid_
                         char *name, const size_t len, cnid_t hint);
 int    cnid_find       (struct _cnid_db *cdb, const char *name, size_t namelen,
                         void *buffer, size_t buflen);
+int    cnid_wipe       (struct _cnid_db *cdb);
 void   cnid_close      (struct _cnid_db *db);
 
 #endif