src/modules.h File Reference

#include "mod/modvals.h"
Include dependency graph for modules.h:
This graph shows which files directly or indirectly include this file:

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_entryhook_list [16]
dependancydependancy_list

Define Documentation

#define call_hook (  ) 
Value:
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 Documentation

typedef struct _dependancy dependancy

Function Documentation

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().

Here is the caller graph for this function:

void* get_next_hook ( int  ,
void *   
)
Function* Function* char global ( char *  ,
char *  ,
int  ,
int   
)
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   
)
void ( ((void(*)(int, Function)) global[173])(int, Function  ) 
void ( ((void(*)(int, Function)) global[172])(int, Function  ) 

Referenced by egg_snprintf(), remove_channel(), and str_unescape().

Here is the caller graph for this function:


Variable Documentation

Definition at line 187 of file modules.c.

Referenced by mainloop(), and tcl_modules().

struct hook_entry * hook_list[ 16 ]
Function int [read]

Definition at line 39 of file modules.h.


Generated on 7 Sep 2016 for Eggdrop by  doxygen 1.6.1