ekg2
GIT master
|
#include "ekg2.h"
#include "python.h"
#include "python-ekg.h"
#include "python-config.h"
#include <sys/types.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <string.h>
#include <Python.h>
#include <compile.h>
#include <node.h>
Funkcje | |
static int | python_plugin_destroy () |
int | python_load (script_t *) |
int | python_unload (script_t *) |
int | python_commands (script_t *, script_command_t *, char **) |
int | python_timers (script_t *, script_timer_t *, int) |
int | python_variable_changed (script_t *, script_var_t *, char *) |
int | python_query (script_t *, script_query_t *, void **) |
int | python_watches (script_t *, script_watch_t *, int, int, long int) |
void | python_dummy_sanity_check () |
int | python_bind_free (script_t *, void *, int type, void *,...) |
int | python_command_eval (const char *name, const char **params, session_t *session, const char *target, int quiet) |
int | python_command_run (const char *name, const char **params, session_t *session, const char *target, int quiet) |
int | python_command_load (const char *name, const char **params, session_t *session, const char *target, int quiet) |
int | python_command_unload (const char *name, const char **params, session_t *session, const char *target, int quiet) |
int | python_command_list (const char *name, const char **params, session_t *session, const char *target, int quiet) |
int | python_print_version (void *data, va_list ap) |
int | python_exec (const char *command) |
int | python_run (const char *filename) |
PyObject * | python_get_func (PyObject *module, const char *name) |
script_t * | python_find_script (PyObject *module) |
char * | python_geterror (script_t *s) |
int | python_initialize () |
int | python_finalize () |
int | python_plugin_init (int prio) |
Zmienne | |
plugin_t | python_plugin = { .name = "python", .pclass = PLUGIN_SCRIPTING , .destroy = python_plugin_destroy, .theme_init = NULL } |
scriptlang_t | python_lang = { name: "python", plugin: & python_plugin, ext: ".py" , init: python_initialize, deinit: python_finalize, script_load: python_load, script_unload: python_unload, script_free_bind: python_bind_free, script_handler_query : python_query, script_handler_command: python_commands, script_handler_timer : python_timers, script_handler_var : python_variable_changed, script_handler_watch : python_watches, } |
int python_bind_free | ( | script_t * | scr, |
void * | data, | ||
int | type, | ||
void * | priv_data, | ||
... | |||
) |
int python_command_eval | ( | const char * | name, |
const char ** | params, | ||
session_t * | session, | ||
const char * | target, | ||
int | quiet | ||
) |
execute python code
int python_command_list | ( | const char * | name, |
const char ** | params, | ||
session_t * | session, | ||
const char * | target, | ||
int | quiet | ||
) |
list loaded python scripts
int python_command_load | ( | const char * | name, |
const char ** | params, | ||
session_t * | session, | ||
const char * | target, | ||
int | quiet | ||
) |
load python script
int python_command_run | ( | const char * | name, |
const char ** | params, | ||
session_t * | session, | ||
const char * | target, | ||
int | quiet | ||
) |
run single python script
int python_command_unload | ( | const char * | name, |
const char ** | params, | ||
session_t * | session, | ||
const char * | target, | ||
int | quiet | ||
) |
unload python script
int python_commands | ( | script_t * | scr, |
script_command_t * | comm, | ||
char ** | params | ||
) |
void python_dummy_sanity_check | ( | ) |
int python_exec | ( | const char * | command | ) |
int python_finalize | ( | ) |
clean interpreter, unload modules, scripts etc.
script_t* python_find_script | ( | PyObject * | module | ) |
PyObject* python_get_func | ( | PyObject * | module, |
const char * | name | ||
) |
char* python_geterror | ( | script_t * | s | ) |
int python_initialize | ( | ) |
initialize interpreter
int python_load | ( | script_t * | s | ) |
|
static |
int python_plugin_init | ( | int | prio | ) |
inicjalizacja pluginu
int python_print_version | ( | void * | data, |
va_list | ap | ||
) |
int python_query | ( | script_t * | scr, |
script_query_t * | scr_que, | ||
void ** | args | ||
) |
python_protocol_message_query()
handle signals
int python_run | ( | const char * | filename | ) |
int python_timers | ( | script_t * | scr, |
script_timer_t * | time, | ||
int | type | ||
) |
int python_unload | ( | script_t * | s | ) |
int python_variable_changed | ( | script_t * | scr, |
script_var_t * | scr_var, | ||
char * | newval | ||
) |
int python_watches | ( | script_t * | scr, |
script_watch_t * | scr_wat, | ||
int | type, | ||
int | fd, | ||
long int | watch | ||
) |
scriptlang_t python_lang = { name: "python", plugin: & python_plugin, ext: ".py" , init: python_initialize, deinit: python_finalize, script_load: python_load, script_unload: python_unload, script_free_bind: python_bind_free, script_handler_query : python_query, script_handler_command: python_commands, script_handler_timer : python_timers, script_handler_var : python_variable_changed, script_handler_watch : python_watches, } |
plugin_t python_plugin = { .name = "python", .pclass = PLUGIN_SCRIPTING , .destroy = python_plugin_destroy, .theme_init = NULL } |