]> jfr.im git - irc/quakenet/newserv.git/blob - noperserv/noperserv_db.h
Add jupe support
[irc/quakenet/newserv.git] / noperserv / noperserv_db.h
1 #ifndef __NOPERSERV_STRUCTS_H
2 #define __NOPERSERV_STRUCTS_H
3
4 typedef unsigned long no_tableid;
5
6 typedef struct no_nicklist {
7 nick *nick;
8 struct no_nicklist *next;
9 } no_nicklist;
10
11 typedef struct no_autheduser {
12 unsigned newuser: 1;
13 sstring *authname;
14 flag_t authlevel;
15 flag_t noticelevel;
16 no_tableid id;
17 struct no_autheduser *next;
18 no_nicklist *nick;
19 } no_autheduser;
20
21 int noperserv_load_db(void);
22 void noperserv_cleanup_db(void);
23
24 extern no_autheduser *authedusers;
25
26 void noperserv_delete_autheduser(no_autheduser *au);
27 no_autheduser *noperserv_new_autheduser(char *authname);
28 no_autheduser *noperserv_get_autheduser(char *authname);
29 void noperserv_update_autheduser(no_autheduser *au);
30 void noperserv_add_to_autheduser(nick *np, no_autheduser *au);
31
32 unsigned long noperserv_get_autheduser_count(void);
33 unsigned long noperserv_next_autheduser_id(void);
34
35 #endif