Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill old $Id$ command dating from CVS
[simgrid.git] / include / gras / timer.h
index f12c599..1070482 100644 (file)
@@ -1,5 +1,3 @@
-/* $Id$ */
-
 /* timer - delayed and repetitive tasks                                     */
 /* module's public interface exported to end user.                          */
 
@@ -16,7 +14,7 @@
 SG_BEGIN_DECL()
 
 /** @addtogroup GRAS_timer
- *  @brief Delayed and repetitive tasks (Communication facility)
+ *  @brief Delayed and repetitive tasks
  *
  *  This is how to have a specific function called only once after the
  *  specified amount of time or a function executed every 5 mn until it gets 
@@ -36,22 +34,20 @@ SG_BEGIN_DECL()
  * 
  *  @{
  */
+XBT_PUBLIC(void) gras_timer_delay(double delay, void_f_void_t action);
+XBT_PUBLIC(void) gras_timer_repeat(double interval, void_f_void_t action);
 
-  typedef void (*void_f_void_t)(void);
-
-  void gras_timer_delay(double delay, void_f_void_t action);
-  void gras_timer_repeat(double interval, void_f_void_t action);
+XBT_PUBLIC(void) gras_timer_cancel_delay(double interval,
+                                         void_f_void_t action);
+XBT_PUBLIC(void) gras_timer_cancel_repeat(double interval,
+                                          void_f_void_t action);
 
-  void gras_timer_cancel_delay(double interval, void_f_void_t action);
-  void gras_timer_cancel_repeat(double interval, void_f_void_t action);
+XBT_PUBLIC(void) gras_timer_cancel_delay_all(void);
+XBT_PUBLIC(void) gras_timer_cancel_repeat_all(void);
 
-  void gras_timer_cancel_delay_all(void);
-  void gras_timer_cancel_repeat_all(void);
-
-  void gras_timer_cancel_all(void);
+XBT_PUBLIC(void) gras_timer_cancel_all(void);
 
 /** @} */
 
 SG_END_DECL()
-
 #endif /* GRAS_TIMER_H */