Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
53a7df45da825e9d27e44542edfad6b812846bb9
[simgrid.git] / src / gras / DataDesc / datadesc_interface.h
1 /* $Id$ */
2
3 /* datadesc_interface - declarations visible within GRAS, but not public    */
4
5 /* Authors: Olivier Aumage, Martin Quinson                                  */
6 /* Copyright (C) 2003, 2004 the GRAS posse.                                 */
7
8 /* This program is free software; you can redistribute it and/or modify it
9    under the terms of the license (GNU LGPL) which comes with this package. */
10
11 #ifndef GRAS_DATADESC_INTERFACE_H
12 #define GRAS_DATADESC_INTERFACE_H
13
14 #include "gras_private.h"
15
16 void gras_datadesc_init(void);
17 void gras_datadesc_exit(void);
18
19
20 /* free a given ddt */
21 void gras_ddt_free(gras_datadesc_type_t **type);
22
23 /* declare in the given set, and retrieve afterward */
24 gras_error_t gras_ddt_register(gras_set_t           *set,
25                                gras_datadesc_type_t *type);
26 gras_error_t gras_ddt_get_by_name(gras_set_t            *set,
27                                   const char            *name,
28                                   gras_datadesc_type_t **type);
29
30
31 /* create a type set, and bootstrap it by declaring all basic types in it */
32 gras_error_t
33 gras_dd_typeset_create(int gras_arch,
34                        gras_set_t **set);
35
36
37 #endif /* GRAS_DATADESC_INTERFACE_H */