user-directory.c revision 5733207dc3ec10e6e5a6e0a8b30fbd1b061062b9
/* Copyright (c) 2010-2012 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "ioloop.h"
#include "array.h"
#include "hash.h"
#include "llist.h"
#include "mail-user-hash.h"
#include "mail-host.h"
#include "user-directory.h"
#define MAX_CLOCK_DRIFT_SECS 2
struct user_directory_iter {
struct user_directory *dir;
};
struct user_directory {
/* const char *username => struct user* */
struct hash_table *hash;
/* sorted by time */
char *username_hash_fmt;
unsigned int timeout_secs;
};
{
struct user_directory_iter *const *iterp;
}
}
{
}
{
}
unsigned int username_hash)
{
}
struct user *
{
else {
/* need to insert to correct position */
break;
}
else {
}
}
return user;
}
{
}
{
}
}
const char *username)
{
}
{
}
struct user_directory *
{
struct user_directory *dir;
return dir;
}
{
}
struct user_directory_iter *
{
struct user_directory_iter *iter;
return iter;
}
{
return FALSE;
return user;
}
{
struct user_directory_iter *const *iters;
unsigned int i, count;
for (i = 0; i < count; i++) {
break;
}
}
}