X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fgraph_def.h;h=ed9a24c11b28ed800466fbf94a23b8d009cdff2f;hb=a4a5b5e992da52779d9e1c8870f0c7df6b199d56;hp=456602b6004fb2f9331fe081fc0ce0c0da02cfeb;hpb=8a3753760230b270c8f4615891cba2586a661d21;p=collection4.git diff --git a/src/graph_def.h b/src/graph_def.h index 456602b..ed9a24c 100644 --- a/src/graph_def.h +++ b/src/graph_def.h @@ -1,6 +1,31 @@ +/** + * collection4 - graph_def.h + * Copyright (C) 2010 Florian octo Forster + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + * + * Authors: + * Florian octo Forster + **/ + #ifndef GRAPH_DEF_H #define GRAPH_DEF_H 1 +#include + #include "graph_types.h" #include "utils_array.h" #include "oconfig.h" @@ -25,5 +50,7 @@ int def_foreach (graph_def_t *def, def_callback_t callback, void *user_data); int def_get_rrdargs (graph_def_t *def, graph_ident_t *ident, rrd_args_t *args); +int def_to_json (const graph_def_t *def, yajl_gen handler); + /* vim: set sw=2 sts=2 et fdm=marker : */ #endif