Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7279 48e7efb5...
[simgrid.git] / src / bindings / ruby_bindings.h
index fa20109..04b93c2 100644 (file)
 #include "msg/msg.h"
 #include "msg/datatypes.h"
 
-#include "msg/mailbox.h" /* MAX_ALIAS_NAME (FIXME: kill it)*/
 #include "surf/surfxml_parse.h"
 #include "simix/simix.h"
 #include "simix/private.h"
 #include "xbt/sysdep.h"
 #include "xbt/log.h"
 #include "xbt/asserts.h"
-//#include "rb_msg_host.h"
 
 /* Damn Ruby. They load their full config.h, which breaks since we also load ours.
  * So, we undef the offending defines
@@ -39,8 +37,6 @@
 #undef _GNU_SOURCE
 #include <ruby.h>
 
-
-
 /* ********************* *
  * Context related stuff *
  * ********************* */
@@ -70,7 +66,6 @@ void  rb_process_join( VALUE ruby_process );
 void  rb_process_unschedule( VALUE ruby_process );
 void  rb_process_schedule( VALUE ruby_process );
 
-
 /* ********************************************** *
  * Function for Native Process (Bound) Management *
  *                                                *
@@ -101,11 +96,14 @@ VALUE rb_host_speed(VALUE Class,VALUE host);
 void  rb_host_set_data(VALUE Class,VALUE host,VALUE data);
 VALUE rb_host_get_data(VALUE Class,VALUE host);
 VALUE rb_host_is_avail(VALUE Class,VALUE host);
+VALUE rb_host_process(VALUE Class,VALUE process);
 
 /* Functions related to tasks */
 void rb_task_free(m_task_t tk);
 // New Method  >>> Data NULL
 VALUE rb_task_new(VALUE Class, VALUE name,VALUE comp_size,VALUE comm_size);
+void  rb_task_set_data(VALUE Class,VALUE task,VALUE data); // Data as a String
+VALUE rb_task_get_data(VALUE Class,VALUE task);
 VALUE rb_task_comp(VALUE Class,VALUE task); // Get Computation Size
 VALUE rb_task_name(VALUE Class,VALUE task);
 VALUE rb_task_execute(VALUE Class,VALUE task);
@@ -116,6 +114,8 @@ VALUE rb_task_sender(VALUE Class,VALUE task);
 VALUE rb_task_source(VALUE Class,VALUE task);
 VALUE rb_task_listen(VALUE Class,VALUE task,VALUE alias); //Listen From Alias (=mailbox)
 VALUE rb_task_listen_host(VALUE Class,VALUE task,VALUE alias,VALUE host); //Listen from Host
+void rb_task_set_priority(VALUE Class,VALUE task,VALUE priority); // Set Priority
+void rb_task_cancel(VALUE Class,VALUE task); // Cancel
 
 /* Upcalls for the application handler */
 void rb_application_handler_on_start_document(void);