Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
We need to have this function public for ruby binding
authornavarro <navarro@caraja.(none)>
Tue, 25 Sep 2012 12:26:55 +0000 (14:26 +0200)
committernavarro <navarro@caraja.(none)>
Tue, 25 Sep 2012 12:26:55 +0000 (14:26 +0200)
include/simgrid/platf.h
src/include/simgrid/platf_interface.h

index 9734e70..574b0f9 100644 (file)
@@ -328,4 +328,8 @@ XBT_PUBLIC(void) sg_platf_ASroute_end (sg_platf_route_cbarg_t ASroute); // Final
 XBT_PUBLIC(void) sg_platf_route_add_link (const char* link_id, sg_platf_route_cbarg_t route); // Add a link to link list
 XBT_PUBLIC(void) sg_platf_ASroute_add_link (const char* link_id, sg_platf_route_cbarg_t ASroute); // Add a link to link list
 
+typedef void (*sg_platf_process_cb_t)(sg_platf_process_cbarg_t);
+XBT_PUBLIC(void) sg_platf_process_add_cb(sg_platf_process_cb_t fct);
+
+
 #endif                          /* SG_PLATF_H */
index 86514b5..a92b8ef 100644 (file)
@@ -38,8 +38,6 @@ typedef void (*sg_platf_storage_type_cb_t)(sg_platf_storage_type_cbarg_t);
 typedef void (*sg_platf_mount_cb_t)(sg_platf_mount_cbarg_t);
 typedef void (*sg_platf_mstorage_cb_t)(sg_platf_mstorage_cbarg_t);
 
-typedef void (*sg_platf_process_cb_t)(sg_platf_process_cbarg_t);
-
 void sg_platf_host_add_cb(sg_platf_host_cb_t);
 void sg_platf_host_link_add_cb(sg_platf_host_link_cb_t);
 void sg_platf_router_add_cb(sg_platf_router_cb_t);
@@ -65,8 +63,6 @@ void sg_platf_mstorage_add_cb(sg_platf_mstorage_cb_t fct);
 void sg_platf_storage_type_add_cb(sg_platf_storage_type_cb_t fct);
 void sg_platf_mount_add_cb(sg_platf_mount_cb_t fct);
 
-void sg_platf_process_add_cb(sg_platf_process_cb_t fct);
-
 /** \brief Pick the right models for CPU, net and workstation, and call their model_init_preparse
  *
  * Must be called within parsing/creating the environment (after the <config>s, if any, and before <AS> or friends such as <cluster>)