Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
d6e3dc4b487e3303584067eae07ffc9de8e18a5b
[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
8 // #include "msg/private.h"
9 // #include "simix/private.h"
10 // #include "simix/smx_context_ruby.h"
11
12 // MSG Module
13 VALUE rb_msg;
14 // MSG Classes
15 VALUE rb_task;
16 VALUE rb_host;
17
18 //init_Msg Called When The Ruby Interpreter loads this C extension
19 void Init_msg();
20
21 // Msg_Init From Ruby
22 static void msg_init(VALUE Class,VALUE args);
23
24 // Msg_Run From Ruby
25 static void msg_run(VALUE Class);
26
27 // Create Environment
28 static void msg_createEnvironment(VALUE Class,VALUE plateformFile);
29
30 // deploy Application
31 static void msg_deployApplication(VALUE Class,VALUE deploymntFile);
32
33
34 // Register Function
35 static void msg_registerFunction(VALUE Class,VALUE function_name,VALUE code);
36
37 // Tools
38 static void msg_info(VALUE Class,VALUE msg);
39
40 //get Clock
41 static VALUE msg_get_clock(VALUE Class);
42
43 //pajeOutput
44 static void msg_paje_output(VALUE Class,VALUE pajeFile);
45
46
47 #endif