]> arthur.barton.de Git - netatalk.git/blobdiff - include/atalk/uuid.h
Merge master
[netatalk.git] / include / atalk / uuid.h
index 7746768116d5d96f34ece35fa1d97eaa01b3ce0f..ba47fd09a224db3eb73c424d4bc253198216b8da 100644 (file)
 typedef const unsigned char *uuidp_t;
 typedef unsigned char atalk_uuid_t[UUID_BINSIZE];
 
-typedef enum {UUID_USER = 1, UUID_GROUP, UUID_LOCAL} uuidtype_t;
+typedef enum {UUID_USER   = 0,
+              UUID_GROUP  = 1,
+              UUID_ENOENT = 4} /* used as bit flag */
+    uuidtype_t;
+#define UUIDTYPESTR_MASK 3
 extern char *uuidtype[];
 
 /* afp_options.c needs these. defined in libatalk/ldap.c */
@@ -45,5 +49,6 @@ extern int getnamefromuuid( const unsigned char *uuid, char **name, uuidtype_t *
 extern void localuuid_from_id(unsigned char *buf, uuidtype_t type, unsigned int id);
 extern const char *uuid_bin2string(const unsigned char *uuid);
 extern void uuid_string2bin( const char *uuidstring, unsigned char *uuid);
+extern void uuidcache_dump(void);
 
 #endif /* AFP_UUID_H */