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

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

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


Revision 1.4 - (show annotations) (download) (as text)
Fri Mar 22 16:01:20 2002 UTC (17 years, 6 months ago) by ite
Branch: MAIN
Changes since 1.3: +20 -15 lines
File MIME type: text/x-csrc
* Created eggdrop's library context.
* Moved registry stuff to libeggdrop.
* Some headers vs. prototypes cleanups.

1 #ifndef _EGG_SCRIPT_H
2 #define _EGG_SCRIPT_H
3
4 #include <eggdrop/eggdrop.h>
5 #include "script_api.h"
6
7 typedef struct {
8 char *name;
9 Function callback;
10 char *syntax;
11 char *syntax_error;
12 int retval_type;
13 } script_simple_command_t;
14
15 extern int script_init(eggdrop_t *);
16
17 extern int script_link_int_table(script_int_t *table);
18 extern int script_unlink_int_table(script_int_t *table);
19 extern int script_link_str_table(script_str_t *table);
20 extern int script_unlink_str_table(script_str_t *table);
21 extern int script_create_cmd_table(script_command_t *table);
22 extern int script_delete_cmd_table(script_command_t *table);
23 extern int script_create_simple_cmd_table(script_simple_command_t *table);
24
25 extern script_var_t *script_string(char *str, int len);
26 extern script_var_t *script_int(int val);
27 extern script_var_t *script_list(int nitems, ...);
28 extern int script_list_append(script_var_t *list, script_var_t *item);
29
30
31 #endif /* _EGG_SCRIPT_H */

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23