modules/nickserv/list_common.h
raw| 1 | /* list_common.h - /ns list common definitions |
| 2 | * Copyright (C) 2010 Atheme Development Group |
| 3 | */ |
| 4 | |
| 5 | #ifndef NSLIST_COMMON_H |
| 6 | #define NSLIST_COMMON_H |
| 7 | |
| 8 | #include "atheme.h" |
| 9 | |
| 10 | typedef enum { |
| 11 | OPT_BOOL, |
| 12 | OPT_INT, |
| 13 | OPT_STRING, |
| 14 | OPT_FLAG, |
| 15 | OPT_AGE, |
| 16 | } list_opttype_t; |
| 17 | |
| 18 | typedef struct { |
| 19 | list_opttype_t opttype; |
| 20 | bool (*is_match)(const mynick_t *mn, const void *arg); |
| 21 | } list_param_t; |
| 22 | |
| 23 | #endif /* !NSLIST_COMMON_H */ |