Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix an external ref
[simgrid.git] / src / bindings / ruby / simgrid_ruby.c
index 9e09a18..23c9d5c 100644 (file)
@@ -1,6 +1,7 @@
 /* SimGrid Ruby bindings                                                    */
 
-/* Copyright (c) 2010, the SimGrid team. All right reserved.                */
+/* Copyright (c) 2010. The SimGrid Team.
+ * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -139,7 +140,7 @@ static VALUE msg_get_clock(VALUE class) {
 extern const char*xbt_ctx_factory_to_use; /*Hack: let msg load directly the right factory */
 
 typedef VALUE(*rb_meth)(ANYARGS);
-void Init_simgrid_ruby() {
+void Init_libsimgrid() {
   xbt_ctx_factory_to_use = "ruby";
 
   // Modules
@@ -180,6 +181,9 @@ void Init_simgrid_ruby() {
   rb_define_module_function(rb_task,"listenFromHost",(rb_meth)rb_task_listen_host,3);
   rb_define_module_function(rb_task,"setPriority",(rb_meth)rb_task_set_priority,2);
   rb_define_module_function(rb_task,"cancel",(rb_meth)rb_task_cancel,1);
+  rb_define_module_function(rb_task,"hasData",(rb_meth)rb_task_has_data,1);
+  rb_define_module_function(rb_task,"setData",(rb_meth)rb_task_set_data,2);
+  rb_define_module_function(rb_task,"data",(rb_meth)rb_task_get_data,1);
 
   //Host Methods
   rb_define_module_function(rb_host,"getByName",(rb_meth)rb_host_get_by_name,1);