Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
iso-c does not like , at the end of an enum.
[simgrid.git] / src / include / surf / surf.h
index c4fbe62..8f192f0 100644 (file)
@@ -60,7 +60,7 @@ typedef struct surf_resource_public {
   int (*resource_used)(void *resource_id);
 
   e_surf_action_state_t (*action_get_state)(surf_action_t action);
-  void (*action_free)(surf_action_t action);
+  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,
@@ -82,7 +82,7 @@ typedef struct surf_resource_object {
 /* Cpu resource */
 typedef enum {
   SURF_CPU_ON = 1,             /* Ready        */
-  SURF_CPU_OFF = 0,            /* Running      */
+  SURF_CPU_OFF = 0             /* Running      */
 } e_surf_cpu_state_t;
 
 typedef struct surf_cpu_resource_extension_private *surf_cpu_resource_extension_private_t;
@@ -127,5 +127,6 @@ xbt_heap_float_t surf_solve(void);  /*  update all states and returns
                                           the time elapsed since last
                                           event */
 xbt_heap_float_t surf_get_clock(void);
+void surf_finalize(void);              /* clean everything */
 
 #endif                         /* _SURF_SURF_H */