From 0af54d5166bc403563b3d28ee9e8e65b4a59f25e Mon Sep 17 00:00:00 2001 From: mquinson Date: Mon, 21 Jun 2004 17:35:12 +0000 Subject: [PATCH] remove one indirection of gras_datadesc_recv to ease its semantic git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@133 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/gras/DataDesc/datadesc_interface.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/gras/DataDesc/datadesc_interface.h b/src/gras/DataDesc/datadesc_interface.h index 921d707d7f..970ee0cfb5 100644 --- a/src/gras/DataDesc/datadesc_interface.h +++ b/src/gras/DataDesc/datadesc_interface.h @@ -18,6 +18,11 @@ void gras_datadesc_exit(void); 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, @@ -31,7 +36,10 @@ gras_error_t gras_datadesc_send(gras_socket_t *sock, gras_datadesc_type_t *type, void *src); gras_error_t gras_datadesc_recv(gras_socket_t *sock, gras_datadesc_type_t *type, - int r_arch, void **dst); - + 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 */ -- 2.20.1