ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/include/account.h
Revision: 1.2
Committed: Sat Jul 21 01:29:07 2007 UTC (16 years, 10 months ago) by pippijn
Content type: text/plain
Branch: MAIN
Changes since 1.1: +2 -2 lines
Log Message:
- moved to new documentation system
- fixed small build error

File Contents

# Content
1 /*
2 * Copyright © 2005-2006 Atheme Development Group
3 * Rights to this code are as documented in doc/pod/license.pod.
4 *
5 * Data structures for account information.
6 *
7 * $Id: account.h,v 1.1 2007-07-19 08:24:50 pippijn Exp $
8 */
9
10 #ifndef ACCOUNT_H
11 #define ACCOUNT_H
12
13 /* account related hooks */
14 typedef struct
15 {
16 mychan_t *mc;
17 sourceinfo_t *si;
18 } hook_channel_req_t;
19
20 typedef struct
21 {
22 sourceinfo_t *si;
23 myuser_t *mu;
24 mynick_t *mn;
25 } hook_user_req_t;
26
27 typedef struct
28 {
29 sourceinfo_t *si;
30 const char *account;
31 const char *email;
32 int approved; /* Write non-zero here to disallow the registration */
33 } hook_user_register_check_t;
34
35 typedef struct
36 {
37 user_t *u;
38 mynick_t *mn;
39 } hook_nick_enforce_t;
40
41 /* pmodule.c XXX */
42 E bool backend_loaded;
43
44 /* dbhandler.c */
45 E void (*db_save) (void *arg);
46 E void (*db_load) (void);
47
48 E void init_accounts (void);
49
50 E void expire_check (void *arg);
51 /* Check the database for (version) problems common to all backends */
52 E void db_check (void);
53
54 #endif