]> jfr.im git - irc/quakenet/newserv.git/blame - control/control_db.h
BUILD: add require-all build mode
[irc/quakenet/newserv.git] / control / control_db.h
CommitLineData
3e3692bf
CP
1#ifndef __NOPERSERV_STRUCTS_H
2#define __NOPERSERV_STRUCTS_H
3
aef920fc
GB
4#include "../authext/authext.h"
5
3e3692bf
CP
6typedef unsigned long no_tableid;
7
3e3692bf
CP
8typedef struct no_autheduser {
9 unsigned newuser: 1;
7078aa50 10 authname *authname;
3e3692bf
CP
11 flag_t authlevel;
12 flag_t noticelevel;
3e3692bf
CP
13} no_autheduser;
14
7a32ca6e 15int noperserv_load_db(void);
3e3692bf
CP
16void noperserv_cleanup_db(void);
17
3e3692bf 18void noperserv_delete_autheduser(no_autheduser *au);
7078aa50
GB
19no_autheduser *noperserv_new_autheduser(unsigned long userid, char *ame);
20no_autheduser *noperserv_get_autheduser(authname *an);
3e3692bf 21void noperserv_update_autheduser(no_autheduser *au);
3e3692bf
CP
22
23unsigned long noperserv_get_autheduser_count(void);
3e3692bf
CP
24
25#endif