Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
new function: gras_datadesc_size to allow messaging layer to malloc the needed space
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Sat, 3 Jul 2004 07:41:19 +0000 (07:41 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Sat, 3 Jul 2004 07:41:19 +0000 (07:41 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@152 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/gras/DataDesc/datadesc.c

index 6fc86b2..f5a41d8 100644 (file)
@@ -169,6 +169,16 @@ gras_datadesc_get_id(gras_datadesc_type_t *ddt) {
   return ddt->code;
 }
 
+/**
+ * gras_datadesc_size: 
+ *
+ * Returns the size occuped by data of this type (on the current arch).
+ *
+ */
+int gras_datadesc_size(gras_datadesc_type_t *type) {
+  return type->size[GRAS_THISARCH];
+}
+
 /**
  * gras_datadesc_type_dump:
  *