Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Split the DataDesc in subfiles; implement ignored category; implement datatype compar...
[simgrid.git] / src / gras / DataDesc / ddt_remote.c
1 /* $Id$ */
2
3 /* ddt_remote - Stuff needed to get datadescs about remote hosts            */
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 #include "DataDesc/datadesc_private.h"
12
13 static void gras_free_ddt(void *ddt) {
14   gras_datadesc_type_t *type= (gras_datadesc_type_t *)ddt;
15   
16   if (type) {
17     gras_ddt_free(&type);
18   }
19 }
20
21 gras_error_t gras_ddt_register(gras_set_t           *set,
22                                gras_datadesc_type_t *type) {
23   return gras_set_add(set,
24                       (gras_set_elm_t*)type,
25                        &gras_free_ddt);
26
27 }