- void (*action_free)(surf_action_t * action); /* Call it when you're done with this action */
- void (*action_cancel)(surf_action_t action); /* remove the variables from the linear system if needed */
- void (*action_recycle)(surf_action_t action); /* More efficient than free/new */
- void (*action_change_state)(surf_action_t action, e_surf_action_state_t state);
-
- xbt_heap_float_t (*share_resources)(void); /* Share the resources to the
- actions and return the potential
- next action termination */
- void (*solve)(xbt_heap_float_t date); /* Advance time to "date" and update
- the actions' state*/
+ void (*action_free)(surf_action_t action);
+ void (*action_cancel)(surf_action_t action);
+ void (*action_recycle)(surf_action_t action);
+ void (*action_change_state)(surf_action_t action,
+ e_surf_action_state_t state);
+} s_surf_resource_public_t, *surf_resource_public_t;
+
+typedef struct surf_resource {
+ surf_resource_private_t common_private;
+ surf_resource_public_t common_public;