1 /**
2 * collection4 - rrd_args.h
3 * Copyright (C) 2010 Florian octo Forster
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301 USA
19 *
20 * Authors:
21 * Florian octo Forster <ff at octo.it>
22 **/
24 #ifndef RRD_ARGS_H
25 #define RRD_ARGS_H
27 #include "utils_array.h"
29 struct rrd_args_s
30 {
31 str_array_t *options;
32 str_array_t *data;
33 str_array_t *calc;
34 str_array_t *areas;
35 str_array_t *lines;
37 int index;
38 char last_stack_cdef[64];
39 };
40 typedef struct rrd_args_s rrd_args_t;
42 rrd_args_t *ra_create (void);
43 void ra_destroy (rrd_args_t *ra);
45 int ra_argc (rrd_args_t *ra);
46 char **ra_argv (rrd_args_t *ra);
47 void ra_argv_free (char **argv);
49 #endif /* RRD_ARGS_H */
50 /* vim: set sw=2 sts=2 et fdm=marker : */