X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_client.h;h=58f5473c7cf4d3becefa8dcf6a7792350df35035;hb=00d2f049a74cfd7e6d371e2c2c187f40013fbb45;hp=90b78f8df989eab0b76a509ef21dc116ccbeb25e;hpb=aff0a2728543eee1ac21f3fa02f171caae8d9362;p=rrdtool.git diff --git a/src/rrd_client.h b/src/rrd_client.h index 90b78f8..58f5473 100644 --- a/src/rrd_client.h +++ b/src/rrd_client.h @@ -1,6 +1,6 @@ /** * RRDTool - src/rrd_client.h - * Copyright (C) 2008 Florian octo Forster + * Copyright (C) 2008-2010 Florian octo Forster * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -23,7 +23,15 @@ #define __RRD_CLIENT_H 1 #ifndef WIN32 -#include +# ifdef HAVE_STDINT_H +# include +# else +# ifdef HAVE_INTTYPES_H +# include +# else +# error "you should have stdint.h or inttypes.h to compile this" +# endif +# endif #else # include typedef signed char int8_t; @@ -58,6 +66,14 @@ int rrdc_update (const char *filename, int values_num, int rrdc_flush (const char *filename); int rrdc_flush_if_daemon (const char *opt_daemon, const char *filename); +int rrdc_fetch (const char *filename, + const char *cf, + time_t *ret_start, time_t *ret_end, + unsigned long *ret_step, + unsigned long *ret_ds_num, + char ***ret_ds_names, + rrd_value_t **ret_data); + #else # define rrdc_flush_if_daemon(a,b) 0 # define rrdc_connect(a) 0