Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Interface cleanup: msgtype_by_name return the searched type (or NULL if not found)
[simgrid.git] / include / gras / messages.h
index ca644b1..ebe9059 100644 (file)
@@ -44,12 +44,9 @@ gras_error_t gras_msgtype_declare_v(const char            *name,
                                    short int              version,
                                    gras_datadesc_type_t  *payload);
 
-gras_error_t gras_msgtype_by_name (const char     *name,
-                                  gras_msgtype_t **dst);
-gras_error_t gras_msgtype_by_namev(const char      *name,
-                                  short int        version,
-                                  gras_msgtype_t **dst);
-
+gras_msgtype_t *gras_msgtype_by_name (const char     *name);
+gras_msgtype_t *gras_msgtype_by_namev(const char      *name,
+                                     short int        version);
 
 /**
  * gras_cb_t: