Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Reindent everything (possibly breaking all branches, but for the last time)
[simgrid.git] / src / gras / DataDesc / datadesc_interface.h
1 /* $Id$ */
2
3 /* datadesc - describing the data to exchange                               */
4
5 /* module's public interface exported within GRAS, but not to end user.     */
6
7 /* Copyright (c) 2003 Olivier Aumage.                                       */
8 /* Copyright (c) 2003, 2004 Martin Quinson.                                 */
9 /* All rights reserved.                                                     */
10
11 /* This program is free software; you can redistribute it and/or modify it
12  * under the terms of the license (GNU LGPL) which comes with this package. */
13
14 #ifndef GRAS_DATADESC_INTERFACE_H
15 #define GRAS_DATADESC_INTERFACE_H
16
17 XBT_PUBLIC(gras_datadesc_type_t) gras_datadesc_by_id(long int code);
18
19 /* to debug */
20 XBT_PUBLIC(void) gras_datadesc_type_dump(const gras_datadesc_type_t ddt);
21 XBT_PUBLIC(const char *) gras_datadesc_arch_name(int code);
22
23 /* compare two data type description */
24 XBT_PUBLIC(int)
25 gras_datadesc_type_cmp(const gras_datadesc_type_t d1,
26                        const gras_datadesc_type_t d2);
27
28 /* Access function */
29 XBT_PUBLIC(int) gras_datadesc_size(gras_datadesc_type_t type);
30 /* Described data exchanges: direct use */
31 XBT_PUBLIC(int) gras_datadesc_memcpy(gras_datadesc_type_t type, void *src,
32                                      void *dst);
33 XBT_PUBLIC(void) gras_datadesc_send(gras_socket_t sock,
34                                     gras_datadesc_type_t type, void *src);
35 XBT_PUBLIC(void) gras_datadesc_recv(gras_socket_t sock,
36                                     gras_datadesc_type_t type, int r_arch,
37                                     void *dst);
38
39 /* Described data exchanges: IDL compilation FIXME: not implemented*/
40      void gras_datadesc_gen_cpy(gras_datadesc_type_t type, void *src,
41                                 void **dst);
42      void gras_datadesc_gen_send(gras_socket_t sock,
43                                  gras_datadesc_type_t type, void *src);
44      void gras_datadesc_gen_recv(gras_socket_t sock,
45                                  gras_datadesc_type_t type, int r_arch,
46                                  void *dst);
47
48
49 #endif /* GRAS_DATADESC_INTERFACE_H */