X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/762740361e42dd14f5d24d239a29a1e08895ef64..c95656c7c8741d0bf778d6432159feff56cae1b5:/src/bindings/ruby_bindings.h diff --git a/src/bindings/ruby_bindings.h b/src/bindings/ruby_bindings.h index fca1ace4b9..a1ff9257aa 100644 --- a/src/bindings/ruby_bindings.h +++ b/src/bindings/ruby_bindings.h @@ -19,14 +19,12 @@ #include "msg/msg.h" #include "msg/datatypes.h" -#include "msg/mailbox.h" /* MAX_ALIAS_NAME (FIXME: kill it)*/ #include "surf/surfxml_parse.h" #include "simix/simix.h" #include "simix/private.h" #include "xbt/sysdep.h" #include "xbt/log.h" #include "xbt/asserts.h" -//#include "rb_msg_host.h" /* Damn Ruby. They load their full config.h, which breaks since we also load ours. * So, we undef the offending defines @@ -51,7 +49,7 @@ typedef struct s_smx_ctx_ruby { }s_smx_ctx_ruby_t,*smx_ctx_ruby_t; void SIMIX_ctx_ruby_factory_init(smx_context_factory_t *factory); - +void Init_simgrid_ruby(void); /* Load the bindings */ void initRuby(void); // Mandatory to call Ruby methods from C /* *********************************************** * @@ -117,4 +115,12 @@ VALUE rb_task_source(VALUE Class,VALUE task); VALUE rb_task_listen(VALUE Class,VALUE task,VALUE alias); //Listen From Alias (=mailbox) VALUE rb_task_listen_host(VALUE Class,VALUE task,VALUE alias,VALUE host); //Listen from Host +/* Upcalls for the application handler */ +void rb_application_handler_on_start_document(void); +void rb_application_handler_on_end_document(void); +void rb_application_handler_on_begin_process(void); +void rb_application_handler_on_process_arg(void); +void rb_application_handler_on_property(void); +void rb_application_handler_on_end_process(void); + #endif /* RB_SG_BINDINGS */