]> arthur.barton.de Git - netatalk.git/blobdiff - etc/cnid_dbd/pack.h
Change default FinderInfo for directories to be all 0
[netatalk.git] / etc / cnid_dbd / pack.h
index fb6984991d666e9caad2011c14abb63ad0674931..9894d49a0a32a38aa27b2549227517b404af4d10 100644 (file)
@@ -1,7 +1,6 @@
 /*
- * $Id: pack.h,v 1.5 2009-05-04 09:09:43 franklahm Exp $
- *
  * Copyright (C) Joerg Lenneis 2003
+ * Copyright (C) Frank Lahm 2010
  * All Rights Reserved.  See COPYING.
  */
 
 #include <db.h>
 #include <atalk/cnid_dbd_private.h>
 
-#define ntoh64(x)       (((uint64_t)(x) << 56) | \
-                        (((uint64_t)(x) << 40) & 0xff000000000000ULL) | \
-                        (((uint64_t)(x) << 24) & 0xff0000000000ULL) | \
-                        (((uint64_t)(x) << 8)  & 0xff00000000ULL) | \
-                        (((uint64_t)(x) >> 8)  & 0xff000000ULL) | \
-                        (((uint64_t)(x) >> 24) & 0xff0000ULL) | \
-                        (((uint64_t)(x) >> 40) & 0xff00ULL) | \
-                        ((uint64_t)(x)  >> 56))
-
 extern unsigned char *pack_cnid_data(struct cnid_dbd_rqst *);
 extern int didname(DB *dbp, const DBT *pkey, const DBT *pdata, DBT *skey);
 extern int devino(DB *dbp, const DBT *pkey, const DBT *pdata, DBT *skey);
-
+extern int idxname(DB *dbp, const DBT *pkey, const DBT *pdata, DBT *skey);
+extern void pack_setvol(const struct vol *vol);
 #endif /* CNID_DBD_PACK_H */