ekg2
GIT master
|
#include <sys/types.h>
#include "commands.h"
#include "plugins.h"
#include "protocol.h"
#include "stuff.h"
#include "vars.h"
#include "queries.h"
Idź do kodu źródłowego tego pliku.
Struktury danych | |
struct | script |
struct | script_timer_t |
struct | script_plugin_t |
struct | script_var_t |
struct | script_query_t |
struct | script_command_t |
struct | script_watch_t |
struct | scriptlang |
Definicje | |
#define | SCRIPT_HANDLE_UNBIND -666 |
#define | MAX_ARGS QUERY_ARGS_MAX+1 |
#define | SCRIPT_FINDER(bool) |
#define | BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)])) |
#define | SCRIPT_DEFINE(x, y) |
#define | script_private_get(s) (s->priv_data) |
#define | script_private_set(s, p) (s->priv_data = p) |
#define | SCRIPT_UNBIND_HANDLER(type, args...) |
#define | SCRIPT_BIND_HEADER(x) |
#define | SCRIPT_BIND_FOOTER(y) |
#define | SCRIPT_HANDLER_HEADER(x) |
#define | SCRIPT_HANDLER_FOOTER(y, _args...) |
#define | SCRIPT_HANDLER_MULTI_FOOTER(y, _args...) |
Definicje typów | |
typedef struct script | script_t |
typedef int() | scriptlang_initialize_t() |
typedef int() | scriptlang_finalize_t() |
typedef int() | script_load_t(script_t *) |
typedef int() | script_unload_t(script_t *) |
typedef int() | script_handler_command_t(script_t *, script_command_t *, char **) |
typedef int() | script_handler_timer_t(script_t *, script_timer_t *, int) |
typedef int() | script_handler_var_t(script_t *, script_var_t *, char *) |
typedef int() | script_handler_query_t(script_t *, script_query_t *, void **) |
typedef int() | script_handler_watch_t(script_t *, script_watch_t *, int, int, int) |
typedef int() | script_free_bind_t(script_t *, void *, int, void *,...) |
typedef struct scriptlang | scriptlang_t |
Wyliczenia | |
enum | script_type_t { SCRIPT_UNKNOWNTYPE, SCRIPT_VARTYPE, SCRIPT_COMMANDTYPE, SCRIPT_QUERYTYPE, SCRIPT_TIMERTYPE, SCRIPT_WATCHTYPE, SCRIPT_PLUGINTYPE } |
Zmienne | |
script_t * | scripts |
scriptlang_t * | scriptlang |
#define BUILD_BUG_ON | ( | condition | ) | ((void)sizeof(char[1 - 2*!!(condition)])) |
#define MAX_ARGS QUERY_ARGS_MAX+1 |
#define SCRIPT_BIND_FOOTER | ( | y | ) |
#define SCRIPT_BIND_HEADER | ( | x | ) |
#define SCRIPT_DEFINE | ( | x, | |
y | |||
) |
#define SCRIPT_FINDER | ( | bool | ) |
#define SCRIPT_HANDLE_UNBIND -666 |
#define SCRIPT_HANDLER_FOOTER | ( | y, | |
_args... | |||
) |
#define SCRIPT_HANDLER_HEADER | ( | x | ) |
#define SCRIPT_HANDLER_MULTI_FOOTER | ( | y, | |
_args... | |||
) |
#define SCRIPT_UNBIND_HANDLER | ( | type, | |
args... | |||
) |
typedef int() script_free_bind_t(script_t *, void *, int, void *,...) |
typedef int() script_handler_command_t(script_t *, script_command_t *, char **) |
typedef int() script_handler_query_t(script_t *, script_query_t *, void **) |
typedef int() script_handler_timer_t(script_t *, script_timer_t *, int) |
typedef int() script_handler_var_t(script_t *, script_var_t *, char *) |
typedef int() script_handler_watch_t(script_t *, script_watch_t *, int, int, int) |
typedef int() script_load_t(script_t *) |
typedef int() script_unload_t(script_t *) |
typedef int() scriptlang_finalize_t() |
typedef int() scriptlang_initialize_t() |
typedef struct scriptlang scriptlang_t |
enum script_type_t |
script_command_t* script_command_bind | ( | scriptlang_t * | s, |
script_t * | scr, | ||
char * | command, | ||
char * | params, | ||
char * | possibilities, | ||
void * | handler | ||
) |
int script_command_unbind | ( | script_command_t * | scr_comm, |
int | free | ||
) |
script_t* script_find | ( | scriptlang_t * | s, |
char * | name | ||
) |
int script_list | ( | scriptlang_t * | s | ) |
int script_load | ( | scriptlang_t * | s, |
char * | name | ||
) |
script_plugin_t* script_plugin_init | ( | scriptlang_t * | s, |
script_t * | scr, | ||
char * | name, | ||
plugin_class_t | pclass, | ||
void * | handler | ||
) |
script_query_t* script_query_bind | ( | scriptlang_t * | s, |
script_t * | scr, | ||
char * | qname, | ||
void * | handler | ||
) |
int script_query_unbind | ( | script_query_t * | squery, |
int | from | ||
) |
script_timer_t* script_timer_bind | ( | scriptlang_t * | s, |
script_t * | scr, | ||
int | freq, | ||
void * | handler | ||
) |
int script_timer_unbind | ( | script_timer_t * | stimer, |
int | free | ||
) |
int script_unload_lang | ( | scriptlang_t * | s | ) |
int script_unload_name | ( | scriptlang_t * | s, |
char * | name | ||
) |
script_var_t* script_var_add | ( | scriptlang_t * | s, |
script_t * | scr, | ||
char * | name, | ||
char * | value, | ||
void * | handler | ||
) |
script_var_t* script_var_add_full | ( | scriptlang_t * | s, |
script_t * | scr, | ||
char * | name, | ||
int | type, | ||
char * | value, | ||
void * | handler | ||
) |
int script_var_unbind | ( | script_var_t * | data, |
int | free | ||
) |
void script_variables_free | ( | ) |
void script_variables_write | ( | ) |
script_watch_t* script_watch_add | ( | scriptlang_t * | s, |
script_t * | scr, | ||
int | fd, | ||
int | type, | ||
void * | handler, | ||
void * | data | ||
) |
int script_watch_unbind | ( | script_watch_t * | temp, |
int | free | ||
) |
int scriptlang_register | ( | scriptlang_t * | s | ) |
int scriptlang_unregister | ( | scriptlang_t * | s | ) |
int scripts_init | ( | ) |
script_t* scripts |