X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fd7e52924d8d7d01e13459ad8a490672c8ceeacb..f00F8da2:/src/surf/surf_private.h?ds=sidebyside diff --git a/src/surf/surf_private.h b/src/surf/surf_private.h index bb7ee785a1..296fef3cd6 100644 --- a/src/surf/surf_private.h +++ b/src/surf/surf_private.h @@ -66,6 +66,13 @@ void surf_action_free(surf_action_t * action); void surf_action_state_set(surf_action_t action, e_surf_action_state_t state); void surf_action_data_set(surf_action_t action, void *data); /* cannot declare inline since we use a pointer to it */ + +void surf_action_lmm_update_index_heap(void *action, int i); /* callback for heap management shared by cpu and net models */ +void surf_action_lmm_heap_insert(xbt_heap_t heap, surf_action_lmm_t action, + double key, enum heap_action_type hat); +void surf_action_lmm_heap_remove(xbt_heap_t heap,surf_action_lmm_t action); + + FILE *surf_fopen(const char *name, const char *mode); extern tmgr_history_t history; @@ -162,6 +169,8 @@ typedef struct s_as { typedef struct s_network_element_info { AS_t rc_component; e_surf_network_element_type_t rc_type; + int id; + char *name; } s_network_element_info_t, *network_element_info_t; typedef int *network_element_t;