Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Added round trip time contraint to the SDP program, this parameter
[simgrid.git] / src / gras / DataDesc / datadesc_interface.h
index 921d707..b72efc0 100644 (file)
@@ -4,34 +4,40 @@
 
 /* module's public interface exported within GRAS, but not to end user.     */
 
-/* Authors: Olivier Aumage, Martin Quinson                                  */
-/* Copyright (C) 2003, 2004 the GRAS posse.                                 */
+/* Copyright (c) 2003 Olivier Aumage.                                       */
+/* Copyright (c) 2003, 2004 Martin Quinson.                                 */
+/* All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
  under the terms of the license (GNU LGPL) which comes with this package. */
* under the terms of the license (GNU LGPL) which comes with this package. */
 
 #ifndef GRAS_DATADESC_INTERFACE_H
 #define GRAS_DATADESC_INTERFACE_H
 
-void gras_datadesc_init(void);
-void gras_datadesc_exit(void);
+gras_datadesc_type_t gras_datadesc_by_id  (long int code);
+
+/* to debug */
+void gras_datadesc_type_dump(const gras_datadesc_type_t ddt);
+const char * gras_datadesc_arch_name(int code);
 
-gras_error_t gras_datadesc_by_id  (long int code,
-                                  gras_datadesc_type_t **type);
 /* compare two data type description */
 int
-gras_datadesc_type_cmp(const gras_datadesc_type_t *d1,
-                      const gras_datadesc_type_t *d2);
-
-
-/* Described data exchanges */
-gras_error_t 
-gras_datadesc_cpy(gras_datadesc_type_t *type, void *src, void **dst);
-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);
-
-
+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: 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 */