#include "mod/modvals.h"
Go to the source code of this file.
Data Structures | |
struct | hook_entry |
struct | _dependancy |
Defines | |
#define | call_hook(x) |
Typedefs | |
typedef struct _dependancy | dependancy |
Functions | |
void | do_module_report (int, int, char *) |
int ((int(*)(char *, Function *, int, int)) global[4])(char * | |
const char *char *char | global (char *) |
char *char *char | global (char *, char *) |
module_entry *module_entry *char | global (char *, int, int) |
Function *Function *char | global (char *, char *, int, int) |
int ((int(*)(char *)) global[7])(char *) | |
char * | mod_strdup (const char *, const char *, const char *, int) |
void * | mod_malloc (int, const char *, const char *, int) |
void * | mod_realloc (void *, int, const char *, const char *, int) |
void | mod_free (void *, const char *, const char *, int) |
void (((void(*)(int, Function)) global[172])(int, Function)) | |
void (((void(*)(int, Function)) global[173])(int, Function)) | |
void * | get_next_hook (int, void *) |
int | call_hook_cccc (int, char *, char *, char *, char *) |
Variables | |
Function | int |
struct hook_entry * | hook_list [16] |
dependancy * | dependancy_list |
#define call_hook | ( | x | ) |
do { \ register struct hook_entry *p, *pn; \ \ for (p = hook_list[x]; p; p = pn) { \ pn = p->next; \ p->func(); \ } \ } while (0)
Definition at line 58 of file modules.h.
Referenced by chanprog(), cmd_backup(), core_secondly(), kill_bot(), main(), mainloop(), rehash(), reload(), and tcl_backup().
typedef struct _dependancy dependancy |
int call_hook_cccc | ( | int | , | |
char * | , | |||
char * | , | |||
char * | , | |||
char * | ||||
) |
void do_module_report | ( | int | , | |
int | , | |||
char * | ||||
) |
Referenced by cmd_module(), cmd_status(), and core_secondly().
void* get_next_hook | ( | int | , | |
void * | ||||
) |
module_entry* module_entry* char global | ( | char * | , | |
int | , | |||
int | ||||
) |
char* char* char global | ( | char * | , | |
char * | ||||
) |
const char* char* char global | ( | char * | ) |
Definition at line 308 of file userrec.c.
00309 { 00310 struct userrec *u, *ret; 00311 struct list_type *q; 00312 int cnt, i; 00313 char host2[UHOSTLEN]; 00314 00315 if (host == NULL) 00316 return NULL; 00317 rmspace(host); 00318 if (!host[0]) 00319 return NULL; 00320 ret = check_chanlist(host); 00321 cnt = 0; 00322 if (ret != NULL) { 00323 cache_hit++; 00324 return ret; 00325 } 00326 cache_miss++; 00327 strncpyz(host2, host, sizeof host2); 00328 host = fixfrom(host); 00329 for (u = userlist; u; u = u->next) { 00330 q = get_user(&USERENTRY_HOSTS, u); 00331 for (; q; q = q->next) { 00332 i = match_useraddr(q->extra, host); 00333 if (i > cnt) { 00334 ret = u; 00335 cnt = i; 00336 } 00337 } 00338 } 00339 if (ret != NULL) { 00340 lastuser = ret; 00341 set_chanlist(host2, ret); 00342 } 00343 return ret; 00344 }
int | ( | (int(*)(char *)) | global[7] | ) |
int | ( | (int(*)(char *, Function *, int, int)) | global[4] | ) |
void mod_free | ( | void * | , | |
const char * | , | |||
const char * | , | |||
int | ||||
) |
void* mod_malloc | ( | int | , | |
const char * | , | |||
const char * | , | |||
int | ||||
) |
void* mod_realloc | ( | void * | , | |
int | , | |||
const char * | , | |||
const char * | , | |||
int | ||||
) |
char* mod_strdup | ( | const char * | , | |
const char * | , | |||
const char * | , | |||
int | ||||
) |
Referenced by egg_snprintf(), remove_channel(), and str_unescape().
Definition at line 187 of file modules.c.
Referenced by mainloop(), and tcl_modules().
struct hook_entry * hook_list[ 16 ] |