A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Stupid me. Using rand to generate the datatest is not very wise...
[simgrid.git]
/
include
/
datadesc.h
diff --git
a/include/datadesc.h
b/include/datadesc.h
index
3a904be
..
87557c9
100644
(file)
--- a/
include/datadesc.h
+++ b/
include/datadesc.h
@@
-52,8
+52,7
@@
typedef int (*gras_datadesc_type_cb_int_t)(void *vars,
/***********************************************
**** Search and retrieve declared datatype ****
***********************************************/
/***********************************************
**** Search and retrieve declared datatype ****
***********************************************/
-gras_error_t gras_datadesc_by_name(const char *name,
- gras_datadesc_type_t **type);
+gras_datadesc_type_t *gras_datadesc_by_name(const char *name);
/******************************************
**** Declare datadescription yourself ****
/******************************************
**** Declare datadescription yourself ****
@@
-67,10
+66,6
@@
gras_datadesc_declare_struct_append(gras_datadesc_type_t *struct_type,
const char *name,
gras_datadesc_type_t *field_type);
gras_error_t
const char *name,
gras_datadesc_type_t *field_type);
gras_error_t
-gras_datadesc_declare_struct_append_name(gras_datadesc_type_t *struct_type,
- const char *name,
- const char *field_type_name);
-gras_error_t
gras_datadesc_declare_union(const char *name,
gras_datadesc_type_cb_int_t selector,
gras_datadesc_type_t **dst);
gras_datadesc_declare_union(const char *name,
gras_datadesc_type_cb_int_t selector,
gras_datadesc_type_t **dst);
@@
-79,10
+74,6
@@
gras_datadesc_declare_union_append(gras_datadesc_type_t *union_type,
const char *name,
gras_datadesc_type_t *field_type);
gras_error_t
const char *name,
gras_datadesc_type_t *field_type);
gras_error_t
-gras_datadesc_declare_union_append_name(gras_datadesc_type_t *union_type,
- const char *name,
- const char *field_type_name);
-gras_error_t
gras_datadesc_declare_ref(const char *name,
gras_datadesc_type_t *referenced_type,
gras_datadesc_type_t **dst);
gras_datadesc_declare_ref(const char *name,
gras_datadesc_type_t *referenced_type,
gras_datadesc_type_t **dst);
@@
-111,6
+102,12
@@
void gras_datadesc_cb_set_pre (gras_datadesc_type_t *type,
void gras_datadesc_cb_set_post(gras_datadesc_type_t *type,
gras_datadesc_type_cb_void_t post);
void gras_datadesc_cb_set_post(gras_datadesc_type_t *type,
gras_datadesc_type_cb_void_t post);
+/******************************
+ * Get stuff within datadescs *
+ ******************************/
+char * gras_datadesc_get_name(gras_datadesc_type_t *ddt);
+int gras_datadesc_get_id(gras_datadesc_type_t *ddt);
+
/********************************************************
* Advanced data describing: callback persistent states *
********************************************************/
/********************************************************
* Advanced data describing: callback persistent states *
********************************************************/