| 1 |
/* entity-validation.h - entity validation |
| 2 |
* Copyright (C) 2010 Atheme Development Group |
| 3 |
*/ |
| 4 |
|
| 5 |
#ifndef ENTITY_VALIDATION_H |
| 6 |
#define ENTITY_VALIDATION_H |
| 7 |
|
| 8 |
struct entity_chanacs_validation_vtable { |
| 9 |
chanacs_t *(*match_entity)(chanacs_t *ca, myentity_t *mt); |
| 10 |
chanacs_t *(*match_user)(chanacs_t *ca, user_t *mt); |
| 11 |
|
| 12 |
bool (*can_register_channel)(myentity_t *mt); |
| 13 |
bool (*allow_foundership)(myentity_t *mt); |
| 14 |
}; |
| 15 |
|
| 16 |
E entity_chanacs_validation_vtable_t *myentity_get_chanacs_validator(myentity_t *mt); |
| 17 |
|
| 18 |
#endif |