Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Ongoing cleanup in ruby bindings. Does not compile yet, but commiting anyway because...
[simgrid.git] / src / bindings / ruby / rb_msg.h
1 #ifndef RB_MSG
2 #define RB_MSG
3 #include <stdio.h>
4 #include "msg/msg.h"
5 #include <ruby.h>
6
7 XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test,
8                              "Messages specific for this msg example");
9
10 // #include "msg/private.h"
11 // #include "simix/private.h"
12 // #include "simix/smx_context_ruby.h"
13
14 // MSG Module
15 VALUE rb_msg;
16 // MSG Classes
17 VALUE rb_task;
18 VALUE rb_host;
19
20 //init_Msg Called When The Ruby Interpreter loads this C extension
21 void Init_msg();
22
23 // Msg_Init From Ruby
24 static void msg_init(VALUE Class,VALUE args);
25
26 // Msg_Run From Ruby
27 static void msg_run(VALUE Class);
28
29 // Create Environment
30 static void msg_createEnvironment(VALUE Class,VALUE plateformFile);
31
32 // deploy Application
33 static void msg_deployApplication(VALUE Class,VALUE deploymntFile);
34
35 // Tools
36 static void msg_info(VALUE Class,VALUE msg);
37
38 //get Clock  
39 static void msg_get_clock(VALUE Class);
40
41 //pajeOutput
42 static void msg_paje_output(VALUE Class,VALUE pajeFile);
43
44 // Ruby Introspection : To instanciate a Ruby Class from its Name
45 static VALUE msg_new_ruby_instance(VALUE Class,VALUE className);
46
47 // The Same ... This Time with Args
48 static VALUE msg_new_ruby_instance_with_args(VALUE Class,VALUE className,VALUE args);
49
50 #endif