Struktury danych | Definicje | Funkcje | Zmienne

Dokumentacja pliku plugins/ruby/ruby_ekg.c

#include "ekg2-config.h"
#include <ekg/debug.h>
#include <ekg/dynstuff.h>
#include <ekg/plugins.h>
#include <ekg/scripts.h>
#include <ekg/xmalloc.h>
#include <ruby.h>
#include "ruby_ekg.h"

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 ()
 PLUGIN_DEFINE (ruby, PLUGIN_SCRIPTING, ruby_theme_init)
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)
EXPORT int ruby_plugin_init (int prio)
static int ruby_plugin_destroy ()

Zmienne

static int allow_deinit = 0
scriptlang_t ruby_lang
static script_tlast_scr = NULL
static VALUE ekg2_ruby_module
static VALUE ekg2_ruby_script

Dokumentacja definicji

#define ekg2_scripts_finalize   ekg2_scripts_return_qnil
#define ekg2_scripts_init_theme   ekg2_scripts_return_qnil

Dokumentacja funkcji

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

Dokumentacja zmiennych

int allow_deinit = 0 [static]
VALUE ekg2_ruby_module [static]
VALUE ekg2_ruby_script [static]
script_t* last_scr = NULL [static]
Wartość początkowa:
 { 
        name: "ruby",
        plugin: &ruby_plugin,
        ext: ".rb",
        init: ruby_initialize,
        deinit: ruby_finalize_wrapper,
        script_load: ruby_load,
        script_unload: ruby_unload,
        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
}
 All Struktury Danych Pliki Funkcje Zmienne Definicje typów Wyliczenia Wartości wyliczeń Definicje