Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add an unused (for the moment) module file
[simgrid.git] / include / simix / datatypes.h
index f905acf..e69c1df 100644 (file)
@@ -70,6 +70,7 @@ typedef struct s_smx_process *smx_process_t;
 
 
 /* User create and kill process, the function must accept the folling parameters:
+ * void* process: the process created will be stored there
  * const char *name: a name for the object. It is for user-level information and can be NULL
  * xbt_main_func_t code: is a function describing the behavior of the agent
  * void *data: data a pointer to any data one may want to attach to the new object.
@@ -77,7 +78,8 @@ typedef struct s_smx_process *smx_process_t;
  * int argc, char **argv: parameters passed to code
  *
  * */
-typedef void *(*smx_creation_func_t) ( /*name */ const char *,
+typedef void (*smx_creation_func_t) ( /* process */ void *,
+                                      /*name */ const char *,
                                       /*code */ xbt_main_func_t,
                                       /*userdata */ void *,
                                       /*hostname */ char *,