Lines Matching refs:cacheduser
30 typedef struct cacheduser {
36 struct cacheduser *prev;
37 struct cacheduser *next;
131 cacheduser_t *cacheduser = NULL;
149 cacheduser = malloc(sizeof(cacheduser_t));
150 if (!cacheduser) {
159 /* fill in the cacheduser */
160 cacheduser->name = name;
161 cacheduser->uuid = uuid;
162 cacheduser->type = type;
163 cacheduser->creationtime = time(NULL);
164 cacheduser->prev = NULL;
165 cacheduser->next = NULL;
173 namecache[hash] = cacheduser;
175 cacheduser->next = namecache[hash];
176 namecache[hash]->prev = cacheduser;
177 namecache[hash] = cacheduser;
186 if (cacheduser)
187 free(cacheduser);
303 cacheduser_t *cacheduser = NULL;
322 cacheduser = malloc(sizeof(cacheduser_t));
323 if (!cacheduser) {
332 /* fill in the cacheduser */
333 cacheduser->name = name;
334 cacheduser->type = type;
335 cacheduser->uuid = uuid;
336 cacheduser->creationtime = time(NULL);
337 cacheduser->prev = NULL;
338 cacheduser->next = NULL;
346 uuidcache[hash] = cacheduser;
348 cacheduser->next = uuidcache[hash];
349 uuidcache[hash]->prev = cacheduser;
350 uuidcache[hash] = cacheduser;
359 if (cacheduser)
360 free(cacheduser);