2 * collectd - src/meta_data.h
3 * Copyright (C) 2008,2009 Florian octo Forster
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; only version 2 of the License is applicable.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 * Florian octo Forster <octo at verplant.org>
28 typedef struct meta_data_s meta_data_t;
30 meta_data_t *meta_data_create (void);
31 void meta_data_destroy (meta_data_t *md);
33 int meta_data_exists (meta_data_t *md, const char *key);
34 int meta_data_delete (meta_data_t *md, const char *key);
36 int meta_data_add_string (meta_data_t *md,
39 int meta_data_add_signed_int (meta_data_t *md,
42 int meta_data_add_unsigned_int (meta_data_t *md,
45 int meta_data_add_double (meta_data_t *md,
48 int meta_data_add_boolean (meta_data_t *md,
52 int meta_data_get_string (meta_data_t *md,
55 int meta_data_get_signed_int (meta_data_t *md,
58 int meta_data_get_unsigned_int (meta_data_t *md,
61 int meta_data_get_double (meta_data_t *md,
64 int meta_data_get_boolean (meta_data_t *md,
68 #endif /* META_DATA_H */
69 /* vim: set sw=2 sts=2 et : */