/* * Copyright © 2005-2006 Atheme Development Group * Rights to this code are as documented in doc/LICENSE. * * Data structures for account information. * * $Id: account.h,v 1.1 2007/07/19 08:24:50 pippijn Exp $ */ #ifndef ACCOUNT_H #define ACCOUNT_H /* account related hooks */ typedef struct { mychan_t *mc; sourceinfo_t *si; } hook_channel_req_t; typedef struct { sourceinfo_t *si; myuser_t *mu; mynick_t *mn; } hook_user_req_t; typedef struct { sourceinfo_t *si; const char *account; const char *email; int approved; /* Write non-zero here to disallow the registration */ } hook_user_register_check_t; typedef struct { user_t *u; mynick_t *mn; } hook_nick_enforce_t; /* pmodule.c XXX */ E bool backend_loaded; /* dbhandler.c */ E void (*db_save) (void *arg); E void (*db_load) (void); E void init_accounts (void); E void expire_check (void *arg); /* Check the database for (version) problems common to all backends */ E void db_check (void); #endif