Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
new function: gras_datadesc_size to allow messaging layer to malloc the needed space
[simgrid.git] / src / gras / DataDesc / datadesc_interface.h
index 921d707..26c3ae8 100644 (file)
@@ -18,12 +18,18 @@ 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,
                       const gras_datadesc_type_t *d2);
 
-
+/* 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);
@@ -31,7 +37,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 */