X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3e6ef7fb32d89b473a637b0bf71f422cfa4241b6..9b9103db7f7aac95d28b162b7f78c6a946bba864:/src/include/surf/surf.h diff --git a/src/include/surf/surf.h b/src/include/surf/surf.h index 8459660b7d..2dbbc5d50c 100644 --- a/src/include/surf/surf.h +++ b/src/include/surf/surf.h @@ -10,6 +10,7 @@ #include "xbt/swag.h" #include "xbt/dynar.h" +#include "xbt/dict.h" /* Actions and resources are higly connected structures... */ typedef struct surf_action *surf_action_t; @@ -46,7 +47,7 @@ typedef struct surf_action { double start; /* start time */ double finish; /* finish time : this is modified during the run * and fluctuates until the task is completed */ - void *callback; /* for your convenience */ + void *data; /* for your convenience */ surf_resource_t resource_type; } s_surf_action_t; @@ -66,6 +67,8 @@ typedef struct surf_resource_public { void (*action_recycle) (surf_action_t action); void (*action_change_state) (surf_action_t action, e_surf_action_state_t state); + void (*action_set_data) (surf_action_t action, + void *data); const char *name; } s_surf_resource_public_t, *surf_resource_public_t; @@ -105,7 +108,7 @@ typedef struct surf_cpu_resource { surf_cpu_resource_extension_public_t extension_public; } s_surf_cpu_resource_t, *surf_cpu_resource_t; extern surf_cpu_resource_t surf_cpu_resource; -void surf_cpu_resource_init(const char *filename); +void surf_cpu_resource_init_Cas01(const char *filename); /* Network resource */ typedef struct surf_network_resource_extension_private @@ -122,7 +125,7 @@ typedef struct surf_network_resource { } s_surf_network_resource_t, *surf_network_resource_t; extern surf_network_resource_t surf_network_resource; -void surf_network_resource_init(const char *filename); +void surf_network_resource_init_CM02(const char *filename); /* Workstation resource */ typedef struct surf_workstation_resource_extension_private @@ -146,7 +149,9 @@ typedef struct surf_workstation_resource { } s_surf_workstation_resource_t, *surf_workstation_resource_t; extern surf_workstation_resource_t surf_workstation_resource; -void surf_workstation_resource_init(const char *filename); +void surf_workstation_resource_init_CLM03(const char *filename); +void surf_workstation_resource_init_resource_init_KCCFLN05(const char *filename); +extern xbt_dict_t workstation_set; /*******************************************/ /*** SURF Globals **************************/