]> arthur.barton.de Git - netatalk.git/blobdiff - include/atalk/uuid.h
Convert uuid_bin2string to not allocate but return pointer to static string
[netatalk.git] / include / atalk / uuid.h
index 7c28603a6c0f573e96506383f40668ba6b15cd0a..729a41fb2dca7ce1171c9333a57a0718bc7cb5bb 100644 (file)
@@ -1,5 +1,4 @@
 /*
-   $Id: uuid.h,v 1.1 2009-02-02 11:55:01 franklahm Exp $
    Copyright (c) 2008,2009 Frank Lahm <franklahm@gmail.com>
 
    This program is free software; you can redistribute it and/or modify
@@ -22,7 +21,7 @@
 typedef char *uuidp_t;
 typedef char atalk_uuid_t[UUID_BINSIZE];
 
-typedef enum {UUID_USER = 1, UUID_GROUP} uuidtype_t;
+typedef enum {UUID_USER = 1, UUID_GROUP, UUID_LOCAL} uuidtype_t;
 extern char *uuidtype[];
 
 /* afp_options.c needs these. defined in libatalk/ldap.c */
@@ -42,8 +41,8 @@ extern char *ldap_uid_attr;
  ********************************************************/
 
 extern int getuuidfromname( const char *name, uuidtype_t type, uuidp_t uuid);
-extern int getnamefromuuid( uuidp_t uuidp, char **name, uuidtype_t *type);
-extern int uuid_bin2string( uuidp_t uuidp, char **uuidstring);
+extern int getnamefromuuid( const uuidp_t uuidp, char **name, uuidtype_t *type);
+extern const char *uuid_bin2string( char *uuid);
 extern void uuid_string2bin( const char *uuidstring, uuidp_t uuid);
 
 #endif /* AFP_UUID_H */