X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/763a261066247a3639a8162d1e4d5a015f9654a5..e23b481e91e2c7020856a88e25cb6f4fe1358e1f:/src/bindings/ruby/simgrid_ruby.c diff --git a/src/bindings/ruby/simgrid_ruby.c b/src/bindings/ruby/simgrid_ruby.c index 9e09a1853b..23c9d5c8b6 100644 --- a/src/bindings/ruby/simgrid_ruby.c +++ b/src/bindings/ruby/simgrid_ruby.c @@ -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);