00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef _EGG_MOD_MODVALS_H
00026 #define _EGG_MOD_MODVALS_H
00027
00028
00029
00030
00031 #define HOOK_READ_USERFILE 3
00032 #define HOOK_REHASH 4
00033 #define HOOK_MINUTELY 5
00034 #define HOOK_DAILY 6
00035 #define HOOK_HOURLY 7
00036 #define HOOK_USERFILE 8
00037 #define HOOK_SECONDLY 9
00038 #define HOOK_PRE_REHASH 10
00039 #define HOOK_IDLE 11
00040 #define HOOK_5MINUTELY 12
00041 #define HOOK_LOADED 13
00042 #define HOOK_BACKUP 14
00043 #define HOOK_DIE 15
00044 #define REAL_HOOKS 16
00045 #define HOOK_SHAREOUT 105
00046 #define HOOK_SHAREIN 106
00047 #define HOOK_ENCRYPT_PASS 107
00048 #define HOOK_QSERV 108
00049 #define HOOK_ADD_MODE 109
00050 #define HOOK_MATCH_NOTEREJ 110
00051 #define HOOK_RFC_CASECMP 111
00052 #define HOOK_DNS_HOSTBYIP 112
00053 #define HOOK_DNS_IPBYHOST 113
00054 #define HOOK_ENCRYPT_STRING 114
00055 #define HOOK_DECRYPT_STRING 115
00056
00057
00058 #define MODCALL_START 0
00059 #define MODCALL_CLOSE 1
00060 #define MODCALL_EXPMEM 2
00061 #define MODCALL_REPORT 3
00062
00063 #define FILESYS_REMOTE_REQ 4
00064 #define FILESYS_ADDFILE 5
00065 #define FILESYS_INCRGOTS 6
00066 #define FILESYS_ISVALID 7
00067
00068 #define SHARE_FINISH 4
00069 #define SHARE_DUMP_RESYNC 5
00070
00071 #define CHANNEL_CLEAR 15
00072
00073 #define SERVER_BOTNAME 4
00074 #define SERVER_BOTUSERHOST 5
00075 #define SERVER_NICKLEN 38
00076
00077 #define IRC_RECHECK_CHANNEL 15
00078 #define IRC_RECHECK_CHANNEL_MODES 17
00079 #define IRC_DO_CHANNEL_PART 19
00080 #define IRC_CHECK_THIS_BAN 20
00081 #define IRC_CHECK_THIS_USER 21
00082
00083 #define NOTES_CMD_NOTE 4
00084
00085 #define CONSOLE_DOSTORE 4
00086
00087 #ifdef MOD_USE_SHL
00088 # include <dl.h>
00089 #endif
00090
00091 #ifdef MOD_USE_DYLD
00092 # include <mach-o/dyld.h>
00093 #endif
00094
00095 #ifdef MOD_USE_LOADER
00096 # include <loader.h>
00097 #endif
00098
00099 typedef struct _module_entry {
00100 struct _module_entry *next;
00101 char *name;
00102 int major;
00103 int minor;
00104 #ifndef STATIC
00105 # ifdef MOD_USE_SHL
00106 shl_t hand;
00107 # endif
00108 # ifdef MOD_USE_DYLD
00109 NSModule hand;
00110 # endif
00111 # ifdef MOD_USE_LOADER
00112 ldr_module_t hand;
00113 # endif
00114 # ifdef MOD_USE_DL
00115 void *hand;
00116 # endif
00117 #endif
00118 Function *funcs;
00119 #ifdef DEBUG_MEM
00120 int mem_work;
00121 #endif
00122 } module_entry;
00123
00124 #endif