ekg2  GIT master
Struktury danych | Definicje | Funkcje | Zmienne
Dokumentacja pliku ruby_ekg.c
#include "ekg2.h"
#include <ekg/scripts.h>
#include <ruby.h>
#include "ruby_ekg.h"
Wykres zależności załączania dla ruby_ekg.c:

Struktury danych

struct  ruby_helper_t
 

Definicje

#define ekg2_scripts_finalize   ekg2_scripts_return_qnil
 
#define ekg2_scripts_init_theme   ekg2_scripts_return_qnil
 

Funkcje

static int ruby_initialize ()
 
static int ruby_finalize_wrapper ()
 
static int ruby_load (script_t *scr)
 
static int ruby_unload (script_t *scr)
 
static int ruby_bind_free (script_t *scr, void *data, int type, void *priv_data,...)
 
static int ruby_query (script_t *scr, script_query_t *scr_que, void *args[])
 
static int ruby_commands (script_t *scr, script_command_t *comm, char **params)
 
static int ruby_timers (script_t *scr, script_timer_t *time, int type)
 
static int ruby_variable_changed (script_t *scr, script_var_t *scr_var, char *what)
 
static int ruby_watches (script_t *scr, script_watch_t *scr_wat, int type, int fd, long int watch)
 
static int ruby_script_theme_init (script_t *scr)
 
static int ruby_theme_init ()
 
static int ruby_plugin_destroy ()
 
static VALUE ekg2_scripts_initialize (VALUE self)
 
static VALUE ekg2_scripts_return_qnil (VALUE self)
 
static VALUE ruby_command_bind (int argc, VALUE *argv, VALUE self)
 
static VALUE ruby_timer_bind (int argc, VALUE *argv, VALUE self)
 
static VALUE ruby_watch_add (int argc, VALUE *argv, VALUE self)
 
static VALUE ruby_variable_add (int argc, VALUE *argv, VALUE self)
 
static VALUE ruby_handler_bind (int argc, VALUE *argv, VALUE self)
 
void ruby_define_theme_class (VALUE module)
 
static char * ruby_geterror (const char *what)
 
static VALUE ruby_init_wrapper (VALUE arg)
 
static VALUE ruby_load_wrapper (VALUE arg)
 
static VALUE ruby_deinit_wrapper (VALUE arg)
 
static VALUE ruby_funcall_wrapper (VALUE arg)
 
static VALUE ruby_funcall (ruby_helper_t *ruby_helper)
 
 __attribute__ ((visibility("default")))
 

Zmienne

static int allow_deinit = 0
 
plugin_t ruby_plugin = { .name = "ruby", .pclass = PLUGIN_SCRIPTING , .destroy = ruby_plugin_destroy, .theme_init = ruby_theme_init }
 
scriptlang_t ruby_lang
 
static script_tlast_scr = NULL
 
static VALUE ekg2_ruby_module
 
static VALUE ekg2_ruby_script
 

Dokumentacja definicji

◆ ekg2_scripts_finalize

#define ekg2_scripts_finalize   ekg2_scripts_return_qnil

◆ ekg2_scripts_init_theme

#define ekg2_scripts_init_theme   ekg2_scripts_return_qnil

Dokumentacja funkcji

◆ __attribute__()

__attribute__ ( (visibility("default"))  )

◆ ekg2_scripts_initialize()

static VALUE ekg2_scripts_initialize ( VALUE  self)
static

◆ ekg2_scripts_return_qnil()

static VALUE ekg2_scripts_return_qnil ( VALUE  self)
static

◆ ruby_bind_free()

static int ruby_bind_free ( script_t scr,
void *  data,
int  type,
void *  priv_data,
  ... 
)
static

◆ ruby_command_bind()

static VALUE ruby_command_bind ( int  argc,
VALUE *  argv,
VALUE  self 
)
static

◆ ruby_commands()

static int ruby_commands ( script_t scr,
script_command_t comm,
char **  params 
)
static

◆ ruby_define_theme_class()

void ruby_define_theme_class ( VALUE  module)

◆ ruby_deinit_wrapper()

static VALUE ruby_deinit_wrapper ( VALUE  arg)
static

◆ ruby_finalize_wrapper()

static int ruby_finalize_wrapper ( )
static

◆ ruby_funcall()

static VALUE ruby_funcall ( ruby_helper_t ruby_helper)
static

◆ ruby_funcall_wrapper()

static VALUE ruby_funcall_wrapper ( VALUE  arg)
static

◆ ruby_geterror()

static char* ruby_geterror ( const char *  what)
static

◆ ruby_handler_bind()

static VALUE ruby_handler_bind ( int  argc,
VALUE *  argv,
VALUE  self 
)
static

◆ ruby_init_wrapper()

static VALUE ruby_init_wrapper ( VALUE  arg)
static

◆ ruby_initialize()

static int ruby_initialize ( )
static

◆ ruby_load()

static int ruby_load ( script_t scr)
static

◆ ruby_load_wrapper()

static VALUE ruby_load_wrapper ( VALUE  arg)
static

◆ ruby_plugin_destroy()

static int ruby_plugin_destroy ( )
static

◆ ruby_query()

static int ruby_query ( script_t scr,
script_query_t scr_que,
void *  args[] 
)
static

◆ ruby_script_theme_init()

static int ruby_script_theme_init ( script_t scr)
static

◆ ruby_theme_init()

static int ruby_theme_init ( )
static

◆ ruby_timer_bind()

static VALUE ruby_timer_bind ( int  argc,
VALUE *  argv,
VALUE  self 
)
static

◆ ruby_timers()

static int ruby_timers ( script_t scr,
script_timer_t time,
int  type 
)
static

◆ ruby_unload()

static int ruby_unload ( script_t scr)
static

◆ ruby_variable_add()

static VALUE ruby_variable_add ( int  argc,
VALUE *  argv,
VALUE  self 
)
static

◆ ruby_variable_changed()

static int ruby_variable_changed ( script_t scr,
script_var_t scr_var,
char *  what 
)
static

◆ ruby_watch_add()

static VALUE ruby_watch_add ( int  argc,
VALUE *  argv,
VALUE  self 
)
static

◆ ruby_watches()

static int ruby_watches ( script_t scr,
script_watch_t scr_wat,
int  type,
int  fd,
long int  watch 
)
static

Dokumentacja zmiennych

◆ allow_deinit

int allow_deinit = 0
static

◆ ekg2_ruby_module

VALUE ekg2_ruby_module
static

◆ ekg2_ruby_script

VALUE ekg2_ruby_script
static

◆ last_scr

script_t* last_scr = NULL
static

◆ ruby_lang

scriptlang_t ruby_lang
Wartość początkowa:
= {
name: "ruby",
ext: ".rb",
script_free_bind: ruby_bind_free,
script_handler_query : ruby_query,
script_handler_command: ruby_commands,
script_handler_timer : ruby_timers,
script_handler_var : ruby_variable_changed,
script_handler_watch : ruby_watches
}
int script_unload(script_t *scr)
Definition: scripts.c:254
static int ruby_commands(script_t *scr, script_command_t *comm, char **params)
Definition: ruby_ekg.c:431
static int ruby_finalize_wrapper()
Definition: ruby_ekg.c:60
static int ruby_bind_free(script_t *scr, void *data, int type, void *priv_data,...)
Definition: ruby_ekg.c:343
plugin_t ruby_plugin
Definition: ruby_ekg.c:37
static int ruby_timers(script_t *scr, script_timer_t *time, int type)
Definition: ruby_ekg.c:490
plugin_t * plugin
Definition: abort.c:25
static int ruby_query(script_t *scr, script_query_t *scr_que, void *args[])
Definition: ruby_ekg.c:376
static int ruby_watches(script_t *scr, script_watch_t *scr_wat, int type, int fd, long int watch)
Definition: ruby_ekg.c:454
static int ruby_load(script_t *scr)
Definition: ruby_ekg.c:290
const char * name
Definition: remote.c:88
static int ruby_variable_changed(script_t *scr, script_var_t *scr_var, char *what)
Definition: ruby_ekg.c:474
int script_load(scriptlang_t *s, char *tname)
Definition: scripts.c:337
static int ruby_initialize()
Definition: ruby_ekg.c:204
static int ruby_unload(script_t *scr)
Definition: ruby_ekg.c:327

◆ ruby_plugin

plugin_t ruby_plugin = { .name = "ruby", .pclass = PLUGIN_SCRIPTING , .destroy = ruby_plugin_destroy, .theme_init = ruby_theme_init }