/[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.2 - (show annotations) (download) (as text)
Fri Mar 22 16:01:20 2002 UTC (17 years, 6 months ago) by ite
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
File MIME type: text/x-csrc
FILE REMOVED
* Created eggdrop's library context.
* Moved registry stuff to libeggdrop.
* Some headers vs. prototypes cleanups.

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