1 |
/** |
2 |
* svsignore.h: Data structures for account information. |
3 |
* |
4 |
* Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team |
5 |
* Rights to this code are as documented in COPYING. |
6 |
* |
7 |
* |
8 |
* Portions of this file were derived from sources bearing the following license: |
9 |
* Copyright © 2005-2006 Atheme Development Group |
10 |
* Rights to this code are as documented in doc/pod/license.pod. |
11 |
* |
12 |
* $Id: svsignore.h,v 1.5 2007-09-09 20:05:51 pippijn Exp $ |
13 |
*/ |
14 |
|
15 |
#ifndef ACCOUNT_SVSIGNORE_H |
16 |
#define ACCOUNT_SVSIGNORE_H |
17 |
|
18 |
/* services ignore struct */ |
19 |
struct svsignore_t : zero_initialised |
20 |
{ |
21 |
unsigned index; |
22 |
|
23 |
char *mask; |
24 |
time_t settime; |
25 |
char *setby; |
26 |
char *reason; |
27 |
}; |
28 |
|
29 |
/* svsignore.c */ |
30 |
typedef indexing_vector<svsignore_t> svsignore_vector; |
31 |
E svsignore_vector svs_ignore_list; |
32 |
|
33 |
E svsignore_t *svsignore_find (user_t *user); |
34 |
E svsignore_t *svsignore_add (char *mask, char *reason); |
35 |
E void svsignore_delete (svsignore_t *svsignore); |
36 |
|
37 |
#endif |