1 /* datadesc - describing the data to exchange */
3 /* module's public interface exported within GRAS, but not to end user. */
5 /* Copyright (c) 2003 Olivier Aumage. */
6 /* Copyright (c) 2003, 2004 Martin Quinson. */
7 /* All rights reserved. */
9 /* This program is free software; you can redistribute it and/or modify it
10 * under the terms of the license (GNU LGPL) which comes with this package. */
12 #ifndef GRAS_DATADESC_INTERFACE_H
13 #define GRAS_DATADESC_INTERFACE_H
15 XBT_PUBLIC(gras_datadesc_type_t) gras_datadesc_by_id(long int code);
18 XBT_PUBLIC(void) gras_datadesc_type_dump(const gras_datadesc_type_t ddt);
19 XBT_PUBLIC(const char *) gras_datadesc_arch_name(int code);
21 /* compare two data type description */
23 gras_datadesc_type_cmp(const gras_datadesc_type_t d1,
24 const gras_datadesc_type_t d2);
27 XBT_PUBLIC(int) gras_datadesc_size(gras_datadesc_type_t type);
28 /* Described data exchanges: direct use */
29 XBT_PUBLIC(int) gras_datadesc_memcpy(gras_datadesc_type_t type, void *src,
31 XBT_PUBLIC(void) gras_datadesc_send(gras_socket_t sock,
32 gras_datadesc_type_t type, void *src);
33 XBT_PUBLIC(void) gras_datadesc_recv(gras_socket_t sock,
34 gras_datadesc_type_t type, int r_arch,
37 /* Described data exchanges: IDL compilation FIXME: not implemented*/
38 void gras_datadesc_gen_cpy(gras_datadesc_type_t type, void *src,
40 void gras_datadesc_gen_send(gras_socket_t sock,
41 gras_datadesc_type_t type, void *src);
42 void gras_datadesc_gen_recv(gras_socket_t sock,
43 gras_datadesc_type_t type, int r_arch,
47 #endif /* GRAS_DATADESC_INTERFACE_H */