ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/include/account.h
Revision: 1.1
Committed: Thu Jul 19 08:24:50 2007 UTC (16 years, 10 months ago) by pippijn
Content type: text/plain
Branch: MAIN
Log Message:
initial import. the most important changes since Atheme are:
- fixed many memory leaks
- fixed many bugs
- converted to C++ and use more STL containers
- added a (not very enhanced yet) perl module
- greatly improved XML-RPC speed
- added a JSON-RPC module with code from json-cpp
- added a valgrind memcheck module to operserv
- added a more object oriented base64 implementation
- added a specialised unit test framework
- improved stability
- use gettimeofday() if available
- reworked adding/removing commands
- MemoServ IGNORE DEL can now remove indices

File Contents

# Content
1 /*
2 * Copyright © 2005-2006 Atheme Development Group
3 * Rights to this code are as documented in doc/LICENSE.
4 *
5 * Data structures for account information.
6 *
7 * $Id: account.h 8423 2007-06-09 19:58:46Z jilles $
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