X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/806a8ef96de0bc6fbb75cadb0fbd8f3ef824d0b8..12a9f3c05daaf0c979b9227bec595d5b12666d31:/src/gras/DataDesc/datadesc_interface.h diff --git a/src/gras/DataDesc/datadesc_interface.h b/src/gras/DataDesc/datadesc_interface.h index d4e6c014c6..36af602d5c 100644 --- a/src/gras/DataDesc/datadesc_interface.h +++ b/src/gras/DataDesc/datadesc_interface.h @@ -14,8 +14,7 @@ #ifndef GRAS_DATADESC_INTERFACE_H #define GRAS_DATADESC_INTERFACE_H -xbt_error_t gras_datadesc_by_id (long int code, - gras_datadesc_type_t *type); +gras_datadesc_type_t gras_datadesc_by_id (long int code); /* to debug */ void gras_datadesc_type_dump(const gras_datadesc_type_t ddt); @@ -28,11 +27,17 @@ gras_datadesc_type_cmp(const gras_datadesc_type_t d1, /* Access function */ int gras_datadesc_size(gras_datadesc_type_t type); -/* Described data exchanges */ -xbt_error_t gras_datadesc_cpy(gras_datadesc_type_t type, void *src, void **dst); -xbt_error_t gras_datadesc_send(gras_socket_t sock, gras_datadesc_type_t type, void *src); -xbt_error_t gras_datadesc_recv(gras_socket_t sock, gras_datadesc_type_t type, +/* Described data exchanges: direct use */ +int gras_datadesc_copy(gras_datadesc_type_t type, void *src, void *dst); +void gras_datadesc_send(gras_socket_t sock, gras_datadesc_type_t type, void *src); +void gras_datadesc_recv(gras_socket_t sock, gras_datadesc_type_t type, int r_arch, void *dst); +/* Described data exchanges: IDL compilation FIXME: not implemented*/ +void gras_datadesc_gen_cpy(gras_datadesc_type_t type, void *src, void **dst); +void gras_datadesc_gen_send(gras_socket_t sock, gras_datadesc_type_t type, void *src); +void gras_datadesc_gen_recv(gras_socket_t sock, gras_datadesc_type_t type, + int r_arch, void *dst); + #endif /* GRAS_DATADESC_INTERFACE_H */