Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use exception where appropriate instead of integer return
[simgrid.git] / src / xbt / xbt_context_private.h
index bf01c28..54155e9 100644 (file)
@@ -88,17 +88,16 @@ xbt_context_select_factory(const char* name);
 /**\r
  * This function initialize a context factory from the name specified by the parameter\r
  * name.\r
- * If successful the factory specified by the parameter factory is initialized and the\r
- * function returns 0. Otherwise the function returns the error code.\r
+ * If the factory cannot be found, an exception is raised.\r
  */\r
-int\r
+void\r
 xbt_context_init_factory_by_name(xbt_context_factory_t* factory, const char* name);\r
 \r
 \r
 /* All factories init */\r
-int xbt_ctx_thread_factory_init(xbt_context_factory_t* factory);\r
-int xbt_ctx_sysv_factory_init(xbt_context_factory_t* factory);\r
-int xbt_ctx_java_factory_init(xbt_context_factory_t* factory);\r
+void xbt_ctx_thread_factory_init(xbt_context_factory_t* factory);\r
+void xbt_ctx_sysv_factory_init(xbt_context_factory_t* factory);\r
+void xbt_ctx_java_factory_init(xbt_context_factory_t* factory);\r
 \r
 \r
 \r