]> arthur.barton.de Git - netatalk.git/blobdiff - include/atalk/uuid.h
Rework volume parsing code to ini style and rework main, config init and dsi startup
[netatalk.git] / include / atalk / uuid.h
index ddc2e3bd5e8be73f989015a748a706d0f8eaf08e..6cf872dd28ccd6bfac07ab8e2ab27de9cb406e50 100644 (file)
 
 #define UUID_BINSIZE 16
 #define UUID_STRINGSIZE 36
+#define UUID_PRINTABLE_STRING_LENGTH 37
 
 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   = 1,
+              UUID_GROUP  = 2,
+              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 */
@@ -41,8 +46,10 @@ extern char *ldap_uid_attr;
  ********************************************************/
 
 extern int getuuidfromname( const char *name, uuidtype_t type, unsigned char *uuid);
-extern int getnamefromuuid( uuidp_t uuidp, char **name, uuidtype_t *type);
+extern int getnamefromuuid( const unsigned char *uuid, char **name, uuidtype_t *type);
+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 */