Mercurial > dovecot > core-2.2
view src/auth/db-passwd-file.h @ 3863:55df57c028d4 HEAD
Added "bool" type and changed all ints that were used as booleans to bool.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 13 Jan 2006 22:25:57 +0200 |
parents | 0c10475d9968 |
children | 928229f8b3e6 |
line wrap: on
line source
#ifndef __DB_PASSWD_FILE_H #define __DB_PASSWD_FILE_H struct passwd_user { char *user_realm; /* user@realm */ const char *realm; /* NULL or points to user_realm */ uid_t uid; gid_t gid; char *home; char *mail; char *password; }; struct passwd_file { struct db_passwd_file *db; pool_t pool; char *path; time_t stamp; int fd; struct hash_table *users; }; struct db_passwd_file { struct db_passwd_file *next; int refcount; char *path; struct hash_table *files; struct passwd_file *default_file; unsigned int domain_var:1; unsigned int vars:1; unsigned int userdb:1; }; struct passwd_user * db_passwd_file_lookup(struct db_passwd_file *db, struct auth_request *request); struct db_passwd_file *db_passwd_file_parse(const char *path, bool userdb); void db_passwd_file_unref(struct db_passwd_file *db); #endif