Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Almost Done ... Still Stuckin' Wiith Some MSG Error while The Slave Should Recieve ...
[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 // Tools
34 static void msg_info(VALUE Class,VALUE msg);
35
36 //get Clock  
37 static VALUE msg_get_clock(VALUE Class);
38
39 //pajeOutput
40 static void msg_paje_output(VALUE Class,VALUE pajeFile);
41
42 // Ruby Introspection : To instanciate a Ruby Class from its Name
43 static VALUE msg_new_ruby_instance(VALUE Class,VALUE className);
44
45 // The Same ... This Time with Args
46 static VALUE msg_new_ruby_instance_with_args(VALUE Class,VALUE className,VALUE args);
47
48 #endif