Lines Matching defs:uuid
30 #include <atalk/uuid.h>
72 * convert ascii string that can include dashes to binary uuid.
75 void uuid_string2bin( const char *uuidstring, uuidp_t uuid) {
96 uuid[i++] = val + c;
105 * Convert 16 byte binary uuid to neat ascii represantation including dashes.
109 const char *uuid_bin2string(unsigned char *uuid) {
122 LOG(log_debug, logtype_afpd, "uuid_bin2string{uuid}: mask: %s", uuidmask);
125 c = *uuid;
126 uuid++;
143 * uuid: pointer to uuid_t storage that the caller must provide
146 int getuuidfromname( const char *name, uuidtype_t type, uuidp_t uuid) {
154 ret = search_cachebyname(name, &mytype, uuid);
163 uuid_bin2string(uuid));
170 uuid_string2bin( uuid_string, uuid);
172 name, uuidtype[type & UUIDTYPESTR_MASK], uuid_bin2string(uuid));
186 memcpy(uuid, nulluuid, 16);
188 localuuid_from_id(uuid, UUID_USER, pwd->pw_uid);
191 name, uuidtype[type & UUIDTYPESTR_MASK], uuid_bin2string(uuid));
199 memcpy(uuid, nulluuid, 16);
201 localuuid_from_id(uuid, UUID_GROUP, grp->gr_gid);
204 name, uuidtype[type & UUIDTYPESTR_MASK], uuid_bin2string(uuid));
208 add_cachebyname(name, uuid, mytype, 0);
220 * uuidp: pointer to a uuid