Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add support for host failure exception to the xbt_errcat_t.
[simgrid.git] / include / xbt / ex.h
index 9a7e3c4..92c87ff 100644 (file)
@@ -242,7 +242,8 @@ typedef enum {
   system_error,   /**< a syscall did fail */
   network_error,  /**< error while sending/receiving data */
   timeout_error,  /**< not quick enough, dude */
-  thread_error    /**< error while [un]locking */
+  thread_error,    /**< error while [un]locking */
+       host_error                      /**< host failed */
 } xbt_errcat_t;
 
 XBT_PUBLIC(const char *) xbt_ex_catname(xbt_errcat_t cat);
@@ -309,12 +310,12 @@ typedef struct {
 
 /* the exception context */
 typedef ex_ctx_t *(*ex_ctx_cb_t)(void);
-XBT_PUBLIC_DATA(ex_ctx_cb_t) __xbt_ex_ctx;
+extern ex_ctx_cb_t XBT_PUBLIC_DATA __xbt_ex_ctx;
 extern ex_ctx_t *__xbt_ex_ctx_default(void);
 
 /* the termination handler */
 typedef void (*ex_term_cb_t)(xbt_ex_t *);
-XBT_PUBLIC_DATA(ex_term_cb_t) __xbt_ex_terminate;
+extern ex_term_cb_t XBT_PUBLIC_DATA __xbt_ex_terminate;
 extern void __xbt_ex_terminate_default(xbt_ex_t *e);
 
 /** @brief Introduce a block where exception may be dealed with