/[cvs]/eggdrop1.9/src/registry.h
ViewVC logotype

Contents of /eggdrop1.9/src/registry.h

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


Revision 1.1 - (show annotations) (download) (as text)
Sun Oct 14 04:44:36 2001 UTC (19 years ago) by stdarg
Branch: MAIN
File MIME type: text/x-csrc
Added code for tclscript.mod
Made it compile correctly with configure et al (hopefully...)
Removed stuff for encodings from tcl.c
egglib/msprintf - like sprintf but mallocs a big enough buffer for you (no overruns, no truncated data)
egglib/mstack - simple stack structure (push, pop) that grows with malloc and is accessible in array form

1 #ifndef _REGISTRY_H_
2 #define _REGISTRY_H_
3
4 #define REGISTRY_DONT_CREATE 1
5 #define REGISTRY_PREPEND 2
6 #define REGISTRY_CHAIN 4
7 #define REGISTRY_MAIN 8
8 #define REGISTRY_DEFAULT 8
9
10 #define REGISTRY_TEMP_LISTENER 1
11
12 #define REGISTRY_HALT 1
13 #define REGISTRY_SKIP_MAIN 2
14
15 typedef struct registry_entry_b {
16 char *class;
17 char *name;
18 Function callback;
19 void *client_data;
20 int nargs;
21 int flags;
22 int action;
23 void *return_value;
24 } registry_entry_t;
25
26 typedef struct registry_simple_chain_b {
27 char *name;
28 Function callback;
29 int nargs;
30 } registry_simple_chain_t;
31
32 #ifndef MAKING_MODS
33 int registry_add(registry_entry_t *entry);
34 int registry_add_table(registry_entry_t *entries);
35 int registry_add_simple_chains(registry_simple_chain_t *table);
36 int registry_remove(registry_entry_t *entry);
37 int registry_remove_table(registry_entry_t *entries);
38 int registry_lookup(const char *class, const char *name, Function *funcptr, void **handeptr);
39 int registry_unlookup(const char *class, const char *name, Function *funcptr, void **handleptr);
40 #endif /* MAKING_MODS */
41
42 #endif /* _REGISTRY_H_ */

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23