Logo AND Algorithmique Numérique Distribuée

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