X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/110275bdfe31a33027e51860ed41f199da963cef..262945d110ff9c941cf3b3400c8f0a2b8d8ab32d:/src/include/surf/surf.h diff --git a/src/include/surf/surf.h b/src/include/surf/surf.h index 4a7ebcf6f6..fc6df9fbab 100644 --- a/src/include/surf/surf.h +++ b/src/include/surf/surf.h @@ -47,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; @@ -67,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; @@ -106,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 @@ -123,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 @@ -147,7 +149,8 @@ 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_KCCFLN05(const char *filename); extern xbt_dict_t workstation_set; /*******************************************/