/[cvs]/eggdrop1.8/src/mod/modvals.h
ViewVC logotype

Contents of /eggdrop1.8/src/mod/modvals.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1.1.1 - (show annotations) (download) (as text) (vendor branch)
Mon Jul 26 21:11:06 2010 UTC (11 years, 2 months ago) by simple
Branch: eggheads, MAIN
CVS Tags: v1, HEAD
Branch point for: gettext
Changes since 1.1: +0 -0 lines
File MIME type: text/x-csrc
Imported Eggdrop 1.6.20

1 /*
2 * modvals.h
3 *
4 * $Id: modvals.h,v 1.32 2010/01/03 13:27:40 pseudo Exp $
5 */
6 /*
7 * Copyright (C) 1997 Robey Pointer
8 * Copyright (C) 1999 - 2010 Eggheads Development Team
9 *
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * as published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 */
24
25 #ifndef _EGG_MOD_MODVALS_H
26 #define _EGG_MOD_MODVALS_H
27
28 /* #define HOOK_GET_FLAGREC 0 */
29 /* #define HOOK_BUILD_FLAGREC 1 */
30 /* #define HOOK_SET_FLAGREC 2 */
31 #define HOOK_READ_USERFILE 3
32 #define HOOK_REHASH 4
33 #define HOOK_MINUTELY 5
34 #define HOOK_DAILY 6
35 #define HOOK_HOURLY 7
36 #define HOOK_USERFILE 8
37 #define HOOK_SECONDLY 9
38 #define HOOK_PRE_REHASH 10
39 #define HOOK_IDLE 11
40 #define HOOK_5MINUTELY 12
41 #define HOOK_LOADED 13
42 #define HOOK_BACKUP 14
43 #define HOOK_DIE 15
44 #define REAL_HOOKS 16
45 #define HOOK_SHAREOUT 105
46 #define HOOK_SHAREIN 106
47 #define HOOK_ENCRYPT_PASS 107
48 #define HOOK_QSERV 108
49 #define HOOK_ADD_MODE 109
50 #define HOOK_MATCH_NOTEREJ 110
51 #define HOOK_RFC_CASECMP 111
52 #define HOOK_DNS_HOSTBYIP 112
53 #define HOOK_DNS_IPBYHOST 113
54 #define HOOK_ENCRYPT_STRING 114
55 #define HOOK_DECRYPT_STRING 115
56
57 /* These are FIXED once they are in a release they STAY */
58 #define MODCALL_START 0
59 #define MODCALL_CLOSE 1
60 #define MODCALL_EXPMEM 2
61 #define MODCALL_REPORT 3
62 /* Filesys */
63 #define FILESYS_REMOTE_REQ 4
64 #define FILESYS_ADDFILE 5
65 #define FILESYS_INCRGOTS 6
66 #define FILESYS_ISVALID 7
67 /* Share */
68 #define SHARE_FINISH 4
69 #define SHARE_DUMP_RESYNC 5
70 /* Channels */
71 #define CHANNEL_CLEAR 15
72 /* Server */
73 #define SERVER_BOTNAME 4
74 #define SERVER_BOTUSERHOST 5
75 #define SERVER_NICKLEN 38
76 /* IRC */
77 #define IRC_RECHECK_CHANNEL 15
78 #define IRC_RECHECK_CHANNEL_MODES 17
79 #define IRC_DO_CHANNEL_PART 19
80 #define IRC_CHECK_THIS_BAN 20
81 #define IRC_CHECK_THIS_USER 21
82 /* Notes */
83 #define NOTES_CMD_NOTE 4
84 /* Console */
85 #define CONSOLE_DOSTORE 4
86
87 #ifdef MOD_USE_SHL
88 # include <dl.h>
89 #endif
90
91 #ifdef MOD_USE_DYLD
92 # include <mach-o/dyld.h>
93 #endif
94
95 #ifdef MOD_USE_LOADER
96 # include <loader.h>
97 #endif
98
99 typedef struct _module_entry {
100 struct _module_entry *next;
101 char *name; /* Name of the module (without .so) */
102 int major; /* Major version number MUST match */
103 int minor; /* Minor version number MUST be >= */
104 #ifndef STATIC
105 # ifdef MOD_USE_SHL
106 shl_t hand;
107 # endif
108 # ifdef MOD_USE_DYLD
109 NSModule hand;
110 # endif
111 # ifdef MOD_USE_LOADER
112 ldr_module_t hand;
113 # endif
114 # ifdef MOD_USE_DL
115 void *hand;
116 # endif
117 #endif /* STATIC */
118 Function *funcs;
119 #ifdef DEBUG_MEM
120 int mem_work;
121 #endif /* DEBUG_MEM */
122 } module_entry;
123
124 #endif /* _EGG_MOD_MODVALS_H */

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23