X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1bbfe6dff09cff639aaab8fd2898678a5a630c2b..e8ebdf5454dea965597077441ee968d2f540550c:/src/gras/DataDesc/datadesc_interface.h?ds=sidebyside diff --git a/src/gras/DataDesc/datadesc_interface.h b/src/gras/DataDesc/datadesc_interface.h index 2c81d88caf..26c3ae8ceb 100644 --- a/src/gras/DataDesc/datadesc_interface.h +++ b/src/gras/DataDesc/datadesc_interface.h @@ -16,38 +16,31 @@ void gras_datadesc_init(void); void gras_datadesc_exit(void); -/* - main functions - */ +gras_error_t gras_datadesc_by_id (long int code, + gras_datadesc_type_t **type); + +/* to debug */ +void gras_datadesc_type_dump(const gras_datadesc_type_t *ddt); +const char *gras_datadesc_arch_name(int code); + /* compare two data type description */ int gras_datadesc_type_cmp(const gras_datadesc_type_t *d1, const gras_datadesc_type_t *d2); - -/* Copy a described data in memory */ +/* Access function */ +int gras_datadesc_size(gras_datadesc_type_t *type); +/* Described data exchanges */ gras_error_t gras_datadesc_cpy(gras_datadesc_type_t *type, void *src, void **dst); - -/* Send stuff */ gras_error_t gras_datadesc_send(gras_socket_t *sock, gras_datadesc_type_t *type, void *src); - -/* Receive (and convert) stuff */ gras_error_t gras_datadesc_recv(gras_socket_t *sock, gras_datadesc_type_t *type, - int r_arch, void **dst); - - -/* -- */ - -/* free a given ddt */ -void gras_ddt_free(gras_datadesc_type_t **type); - -/* declare in the given set, and retrieve afterward */ -gras_error_t gras_ddt_register(gras_datadesc_type_t *type); -gras_error_t gras_ddt_get_by_name(const char *name, - gras_datadesc_type_t **type); -gras_error_t gras_ddt_get_by_code(int code, - gras_datadesc_type_t **type); - + int r_arch, void *dst); +/* Indicate (lack of) interest in datatype */ +void gras_datadesc_ref(gras_datadesc_type_t *type); +void gras_datadesc_unref(gras_datadesc_type_t *type); + #endif /* GRAS_DATADESC_INTERFACE_H */