Lines Matching refs:uuid
27 #include <atalk/uuid.h>
33 uuidp_t uuid;
41 cacheduser_t *uuidcache[256]; /* indexed by hash of uuid */
63 "namecache{%d}: name:%s, uuid:%s, type%s: %s, cached: %s",
66 uuid_bin2string(entry->uuid),
84 "uuidcache{%d}: uuid:%s, name:%s, type%s: %s, cached: %s",
86 uuid_bin2string(entry->uuid),
112 static unsigned char hashuuid(uuidp_t uuid) {
117 index ^= uuid[i];
118 index += uuid[i];
130 uuidp_t uuid = NULL;
142 uuid = malloc(UUID_BINSIZE);
143 if (!uuid) {
157 memcpy(uuid, inuuid, UUID_BINSIZE);
161 cacheduser->uuid = uuid;
184 if (uuid)
185 free(uuid);
194 * Search cache by name and uuid type
199 * @args uuid (w) found uuid is returned here
203 int search_cachebyname(const char *name, uuidtype_t *type, uuidp_t uuid) {
235 free(entry->uuid);
239 memcpy(uuid, entry->uuid, UUID_BINSIZE);
266 ret = memcmp(entry->uuid, uuidp, UUID_BINSIZE);
283 free(entry->uuid);
302 uuidp_t uuid = NULL;
315 uuid = malloc(UUID_BINSIZE);
316 if (!uuid) {
330 memcpy(uuid, inuuid, UUID_BINSIZE);
335 cacheduser->uuid = uuid;
341 hash = hashuuid(uuid);
357 if (uuid)
358 free(uuid);