]> arthur.barton.de Git - netatalk.git/blobdiff - include/atalk/uuid.h
Add negative UUID caching, enhance local UUID handling
[netatalk.git] / include / atalk / uuid.h
index a9432675af5dd2dac68dd0d5352676a6a0d9213e..ebaf2b851d392e9115356a8487eb878f6de60a11 100644 (file)
 typedef 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 */
@@ -46,5 +50,5 @@ extern int getnamefromuuid( const uuidp_t uuidp, char **name, uuidtype_t *type);
 extern void localuuid_from_id(unsigned char *buf, uuidtype_t type, unsigned int id);
 extern const char *uuid_bin2string(unsigned char *uuid);
 extern void uuid_string2bin( const char *uuidstring, uuidp_t uuid);
-
+extern void uuidcache_dump(void);
 #endif /* AFP_UUID_H */