Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix (c) dates; win32 cross-port
[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) 2004 Olivier Aumage, Martin Quinson. All rights reserved.  */
8
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. */
11
12 #ifndef GRAS_DATADESC_INTERFACE_H
13 #define GRAS_DATADESC_INTERFACE_H
14
15 xbt_error_t gras_datadesc_by_id  (long int code,
16                                    gras_datadesc_type_t *type);
17
18 /* to debug */
19 void gras_datadesc_type_dump(const gras_datadesc_type_t ddt);
20 const char *gras_datadesc_arch_name(int code);
21
22 /* compare two data type description */
23 int
24 gras_datadesc_type_cmp(const gras_datadesc_type_t d1,
25                        const gras_datadesc_type_t d2);
26
27 /* Access function */
28 int  gras_datadesc_size(gras_datadesc_type_t type);
29 /* Described data exchanges */
30 xbt_error_t gras_datadesc_cpy(gras_datadesc_type_t type, void *src, void **dst);
31 xbt_error_t gras_datadesc_send(gras_socket_t sock, gras_datadesc_type_t type, void *src);
32 xbt_error_t gras_datadesc_recv(gras_socket_t sock, gras_datadesc_type_t type,
33                                 int r_arch, void *dst);
34
35    
36 #endif /* GRAS_DATADESC_INTERFACE_H */