3 /* datadesc - data description in order to send/recv it in GRAS */
5 /* Authors: Olivier Aumage, Martin Quinson */
6 /* Copyright (C) 2003, 2004 the GRAS posse. */
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. */
11 #include "DataDesc/datadesc_private.h"
13 GRAS_LOG_NEW_DEFAULT_SUBCATEGORY(DataDesc,GRAS);
14 /* FIXME: make this machine-dependent using a trick such as UserData*/
15 gras_set_t *gras_datadesc_set_local=NULL;
20 * Initialize the datadesc module
23 gras_datadesc_init(void) {
26 VERB0("Initializing DataDesc");
28 errcode = gras_dd_typeset_create(GRAS_THISARCH,&gras_datadesc_set_local);
29 gras_assert0(errcode==no_error,
30 "Impossible to create the data set containg locally known types");
36 * Finalize the datadesc module
39 gras_datadesc_exit(void) {
40 VERB0("Exiting DataDesc");
41 gras_set_free(&gras_datadesc_set_local);
46 *** BOOTSTRAPING FUNCTIONS: known within GRAS only