6 changed files with 55 additions and 22 deletions
@ -1,10 +1,7 @@
|
||||
#ifndef _RRDTOOL_H_ |
||||
#define _RRDTOOL_H_ |
||||
|
||||
#ifdef WITH_RRD |
||||
int rrd_init(void); |
||||
int rrd_submit(const char *hostname, const char *pluginname, const char *filename, int ds_id, const char *data); |
||||
#else |
||||
#define rrd_submit(hostname, plugin, filename, ds_id, data) |
||||
#endif |
||||
|
||||
#endif /* _RRDTOOL_H_ */ |
||||
|
@ -0,0 +1,30 @@
|
||||
/***************************************************************************
|
||||
* Copyright (C) 05/2009 by Olaf Rempel * |
||||
* razzor@kopf-tisch.de * |
||||
* * |
||||
* 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 Free Software Foundation; either version 2 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 General Public License for more details. * |
||||
* * |
||||
* You should have received a copy of the GNU General Public License * |
||||
* along with this program; if not, write to the * |
||||
* Free Software Foundation, Inc., * |
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
||||
***************************************************************************/ |
||||
#include <rrdtool.h> |
||||
|
||||
int rrd_init(void) |
||||
{ |
||||
return 0; |
||||
} |
||||
|
||||
int rrd_submit(const char *hostname, const char *pluginname, const char *filename, int ds_id, const char *data) |
||||
{ |
||||
return 0; |
||||
} |
Loading…
Reference in new issue