From: Peter Stamfest Date: Sun, 23 Feb 2014 22:08:33 +0000 (+0100) Subject: make write_file public X-Git-Tag: v1.5.0-rc1~132^2~1^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1b730816b4ec01f6f8f85a21f82b8ef850df6e52;p=thirdparty%2Frrdtool-1.x.git make write_file public --- diff --git a/src/Makefile.am b/src/Makefile.am index f1a095b9..d4674a31 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -63,6 +63,7 @@ noinst_HEADERS = \ rrd_config_bottom.h rrd_i18n.h \ rrd_format.h rrd_tool.h rrd_xport.h rrd.h rrd_rpncalc.h \ rrd_hw.h rrd_hw_math.h rrd_hw_update.h \ + rrd_restore.h \ fnv.h rrd_graph.h \ rrd_is_thread_safe.h diff --git a/src/rrd_restore.c b/src/rrd_restore.c index 9a46d04a..1fb02e21 100644 --- a/src/rrd_restore.c +++ b/src/rrd_restore.c @@ -11,6 +11,7 @@ #include "rrd_tool.h" #include "rrd_rpncalc.h" +#include "rrd_restore.h" #include #include @@ -1120,7 +1121,7 @@ static rrd_t *parse_file( return (rrd); } /* rrd_t *parse_file */ -static int write_file( +int write_file( const char *file_name, rrd_t *rrd) { diff --git a/src/rrd_restore.h b/src/rrd_restore.h new file mode 100644 index 00000000..a6c52803 --- /dev/null +++ b/src/rrd_restore.h @@ -0,0 +1,24 @@ +/**************************************************************************** + * RRDtool 1.4.8 Copyright by Tobi Oetiker, 1997-2013 + **************************************************************************** + * rrd_restore.h + ****************************************************************************/ +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef _RRD_RESTORE_H +#define _RRD_RESTORE_H + +#include "rrd.h" + +int write_file( + const char *file_name, + rrd_t *rrd); + +#endif + + +#ifdef __cplusplus +} +#endif