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

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

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


Revision 1.5 - (hide annotations) (download) (as text)
Tue Mar 26 01:06:22 2002 UTC (17 years, 6 months ago) by ite
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +0 -0 lines
File MIME type: text/x-csrc
FILE REMOVED
* moved script API to libeggdrop (without using the bot context)
* fixed a wrong function name in perlscript
* do not use the bot context in registry for now

1 ite 1.4 #ifndef _EGG_SCRIPT_H
2     #define _EGG_SCRIPT_H
3    
4     #include <eggdrop/eggdrop.h>
5     #include "script_api.h"
6 stdarg 1.2
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 stdarg 1.1
15 ite 1.4 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 stdarg 1.3
30    
31 ite 1.4 #endif /* _EGG_SCRIPT_H */

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23