]> arthur.barton.de Git - netatalk.git/blobdiff - include/atalk/uuid.h
Support for using $u username variable in AFP volume definitions
[netatalk.git] / include / atalk / uuid.h
index 024ac7a0535895a38f6841f2f9cfaeebf383eb00..4c9b3c95f8ff0225b503da0ae7bf3aeaa6d8e3ac 100644 (file)
@@ -17,7 +17,7 @@
 
 #define UUID_BINSIZE 16
 
-typedef unsigned char *uuidp_t;
+typedef const unsigned char *uuidp_t;
 typedef unsigned char atalk_uuid_t[UUID_BINSIZE];
 
 typedef enum {UUID_USER   = 1,
@@ -31,11 +31,11 @@ extern char *uuidtype[];
  * Interface
  ********************************************************/
 
-extern int getuuidfromname( const char *name, uuidtype_t type, uuidp_t uuid);
-extern int getnamefromuuid( const uuidp_t uuidp, char **name, uuidtype_t *type);
-
+extern int getuuidfromname( const char *name, uuidtype_t type, unsigned char *uuid);
+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(unsigned char *uuid);
-extern void uuid_string2bin( const char *uuidstring, uuidp_t uuid);
+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 */