authmysql.h
上传用户:s81996212
上传日期:2007-01-04
资源大小:722k
文件大小:1k
- #ifndef authmysql_h
- #define authmysql_h
- #include "config.h"
- #include <stdlib.h>
- #include <string.h>
- #include <sys/types.h>
- #include <mysql/mysql.h>
- #include <mysql/errmsg.h>
- struct authmysqluserinfo {
- char *username;
- char *cryptpw;
- char *clearpw;
- char *home;
- char *maildir;
- uid_t uid;
- gid_t gid;
- } ;
- extern struct authmysqluserinfo *auth_mysql_getuserinfo(const char *);
- extern void auth_mysql_cleanup();
- struct authinfo;
- extern int auth_mysql_pre(const char *, const char *,
- int (*)(struct authinfo *, void *), void *arg);
- #endif