X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fcnid_dbd%2Fpack.h;h=5566bea2520f921185fb3dcdccd24d2b92c4b00e;hb=f254fd618b53e97cc5382b23709d4f3de1e70b41;hp=e94ef0d9a11a827faf2aa3b3e4145ce52df0b52b;hpb=bb18f4d45a9760f2daee860e71c80578bddf4712;p=netatalk.git diff --git a/etc/cnid_dbd/pack.h b/etc/cnid_dbd/pack.h index e94ef0d9..5566bea2 100644 --- a/etc/cnid_dbd/pack.h +++ b/etc/cnid_dbd/pack.h @@ -8,20 +8,11 @@ #define CNID_DBD_PACK_H 1 #include -#include - -#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)) +#include 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 */