Code

rrdtool-all.git
16 years agoprepare for the release of rrdtool-1.3.2
oetiker [Sat, 6 Sep 2008 14:24:43 +0000 (14:24 +0000)]
prepare for the release of rrdtool-1.3.2

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1484 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agowe need rrd_format.h here for things to compile properly
oetiker [Sat, 6 Sep 2008 11:46:41 +0000 (11:46 +0000)]
we need rrd_format.h here for things to compile properly

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1483 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoupdated opensolaris build instructions
oetiker [Sat, 6 Sep 2008 11:43:10 +0000 (11:43 +0000)]
updated opensolaris build instructions

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1482 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoonly link build and use rrd_getopt if there is no getopt_long provided by
oetiker [Sat, 6 Sep 2008 10:43:07 +0000 (10:43 +0000)]
only link build and use rrd_getopt if there is no getopt_long provided by
by the os ... this should also fix problems for solaris 2.8 and other
non getopt_long oses who were not taken care of anymore after the intriduction of librrd.sym

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1481 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agofix for multi update - data corruption bug as reported (and patched) in #178 by kevin...
oetiker [Sat, 6 Sep 2008 10:39:29 +0000 (10:39 +0000)]
fix for multi update - data corruption bug as reported (and patched) in #178 by kevin brintnall

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1480 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agomake pod checker happy
oetiker [Sat, 6 Sep 2008 10:32:57 +0000 (10:32 +0000)]
make pod checker happy

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1479 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoinline functions are not supported in c99 ... lets remove this.
oetiker [Sat, 6 Sep 2008 08:58:18 +0000 (08:58 +0000)]
inline functions are not supported in c99 ... lets remove this.
the compiler will foture it out if they are important.

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1478 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agointroduced a persistant fontmap ... this makes our pango rendering 6 times faster...
oetiker [Thu, 4 Sep 2008 21:45:44 +0000 (21:45 +0000)]
introduced a persistant fontmap ... this makes our pango rendering 6 times faster starting from the second graph we draw.

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1477 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agonow the results actually look as they did with the old code only things are FASTER
oetiker [Sun, 31 Aug 2008 23:42:02 +0000 (23:42 +0000)]
now the results actually look as they did with the old code only things are FASTER

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1476 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoImprove performance by keeping multiple pango font descriptions. For the first invoca...
oetiker [Sun, 31 Aug 2008 22:53:49 +0000 (22:53 +0000)]
Improve performance by keeping multiple pango font descriptions. For the first invocation we are about 20% times as fast
for the second one about 4-5 times faster ...

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1475 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agotrying to improve the pango performance I added facilities to cache layout,context...
oetiker [Sun, 31 Aug 2008 10:55:24 +0000 (10:55 +0000)]
trying to improve the pango performance I added facilities to cache layout,context and more in between invocations of
the text function, unfortunately it does not seem to help all that much.

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1474 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agouse the standart info free function
oetiker [Sun, 31 Aug 2008 10:52:49 +0000 (10:52 +0000)]
use the standart info free function

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1473 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agofix handling of error conditions in rrd_tool.c ... errno is not for detection, only...
oetiker [Thu, 28 Aug 2008 05:49:02 +0000 (05:49 +0000)]
fix handling of error conditions in rrd_tool.c ... errno is not for detection, only for information AFTER detection.

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1471 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agofree the linebuffer if you don't return it!
oetiker [Thu, 28 Aug 2008 04:13:39 +0000 (04:13 +0000)]
free the linebuffer if you don't return it!

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1470 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agosome more leak plugging
oetiker [Wed, 27 Aug 2008 22:06:43 +0000 (22:06 +0000)]
some more leak plugging

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1469 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agodrop the dummy surface prior to creating the real one
oetiker [Wed, 27 Aug 2008 21:48:50 +0000 (21:48 +0000)]
drop the dummy surface prior to creating the real one

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1468 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoadded some freeing for error conditions
oetiker [Wed, 27 Aug 2008 21:46:01 +0000 (21:46 +0000)]
added some freeing for error conditions

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1467 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agofixed indentation ... gnu indent results are not realy beautifl. I might switch...
oetiker [Wed, 27 Aug 2008 21:25:43 +0000 (21:25 +0000)]
fixed indentation  ... gnu indent results are not realy beautifl. I might switch to uncrustify.

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1466 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoMany rrd_create memory leaks patched ... based on valgrind analysis by Sven Engelhard...
oetiker [Wed, 27 Aug 2008 21:25:04 +0000 (21:25 +0000)]
Many rrd_create memory leaks patched ... based on valgrind analysis by Sven Engelhardt. Thanks!

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1465 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agofix indentation
oetiker [Wed, 27 Aug 2008 21:18:46 +0000 (21:18 +0000)]
fix indentation

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1464 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoadded sparc-sun-solaris2.8 to list of broken isfinite implementations
oetiker [Wed, 27 Aug 2008 06:52:33 +0000 (06:52 +0000)]
added  sparc-sun-solaris2.8 to list of broken isfinite implementations

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1463 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoit is rb_rrd_infocall not rrd_infocall ...
oetiker [Fri, 22 Aug 2008 22:04:37 +0000 (22:04 +0000)]
it is rb_rrd_infocall not rrd_infocall ...

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1462 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoWhen in lazy mode, and the graph does not get regenerated, then there are no
oetiker [Sat, 16 Aug 2008 07:13:01 +0000 (07:13 +0000)]
When in lazy mode, and the graph does not get regenerated, then there are no
results from PRINT either. Fix for #163.

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1461 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agodocumentation updates
oetiker [Sat, 16 Aug 2008 07:11:46 +0000 (07:11 +0000)]
documentation updates

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1460 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agomake sure imageinfo only reports the filename and not the whole path. This is a regre...
oetiker [Tue, 12 Aug 2008 06:48:37 +0000 (06:48 +0000)]
make sure imageinfo only reports the filename and not the whole path. This is a regression from 1.2.x where this was implemented properly.

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1459 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoadded systembelastung
oetiker [Sat, 9 Aug 2008 15:22:22 +0000 (15:22 +0000)]
added systembelastung

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1458 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoThe attached patch converts the given string to UTF-8 using glib's
oetiker [Mon, 4 Aug 2008 20:35:45 +0000 (20:35 +0000)]
The attached patch converts the given string to UTF-8 using glib's
g_locale_to_utf8() function. This function expects the string to be
encoded as specified by the locale settings, so this will fail if e.g.
you're using some script which is encoded in some way incompatible to
the locale settings. In this case, the patch falls back to use the
original string as provided by the user as there is no way to tell how
to interpret that string. So, in this case, you will still get the old
behavior (that pango warning and messed up strings in the graph).
However, imho this is perfectly fine since it should be up to the user
to take care of a sane environment. -- Sebastian Harl

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1457 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agonewer perlapi docu suggests to use SV * instead of void for managed returns
oetiker [Tue, 29 Jul 2008 14:42:08 +0000 (14:42 +0000)]
newer perlapi docu suggests to  use SV * instead of void for managed returns

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1456 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agofixed some c++ style lines -- David Masterson
oetiker [Tue, 29 Jul 2008 05:08:46 +0000 (05:08 +0000)]
fixed some c++ style lines -- David Masterson

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1455 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agospelling fix
oetiker [Mon, 28 Jul 2008 07:23:15 +0000 (07:23 +0000)]
spelling fix

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1454 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoforward ported patch for rra cur_row randomization in rrd_restore from 1.2.28 to...
oetiker [Wed, 23 Jul 2008 15:03:43 +0000 (15:03 +0000)]
forward ported patch for rra cur_row randomization in rrd_restore from 1.2.28 to 1.3.1

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1453 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoprepare for the release of rrdtool-1.3.1
oetiker [Wed, 23 Jul 2008 13:02:26 +0000 (13:02 +0000)]
prepare for the release of rrdtool-1.3.1

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1447 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoadded support for restoring rrdtool 1.0.x files ... removed support for old HW patche...
oetiker [Wed, 23 Jul 2008 12:45:52 +0000 (12:45 +0000)]
added support for restoring rrdtool 1.0.x files ... removed support for old HW patched rrd format created by an early patched version of 1.0.x

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1446 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoFix for #167 - rrdcreate is arguably missing a check for 'step>=1' for RRAs with...
oetiker [Tue, 22 Jul 2008 15:15:44 +0000 (15:15 +0000)]
Fix for #167 - rrdcreate is arguably missing a check for 'step>=1' for RRAs with AVERAGE as a CF. I ran into this when specifying 0.6 as a step value, assuming floats were also accepted. Patch attached here. -- Bogdan

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1445 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoheader-fix
oetiker [Tue, 1 Jul 2008 06:35:54 +0000 (06:35 +0000)]
header-fix

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1444 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoimprove layout
oetiker [Tue, 1 Jul 2008 06:34:24 +0000 (06:34 +0000)]
improve layout

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1443 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoadded rrd filename to illegal update message -- he at uninett.no
oetiker [Sun, 29 Jun 2008 16:23:50 +0000 (16:23 +0000)]
added rrd filename to illegal update message -- he at uninett.no

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1441 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agorrdtool.spec fix by Anton Blanchard to build without php patch
oetiker [Sun, 29 Jun 2008 14:08:51 +0000 (14:08 +0000)]
rrdtool.spec fix by Anton Blanchard to build without php patch

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1440 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agomake sure image-with and image-height get returned even when rrdtool is called with...
oetiker [Sun, 29 Jun 2008 13:57:00 +0000 (13:57 +0000)]
make sure image-with and image-height get returned even when rrdtool is called with --lazy as reported in bug #163

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1439 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoEtwas ueberarbeitet
zaucker [Fri, 27 Jun 2008 06:08:31 +0000 (06:08 +0000)]
Etwas ueberarbeitet

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1438 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agointial
oetiker [Tue, 24 Jun 2008 15:05:41 +0000 (15:05 +0000)]
intial

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1437 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agorrdtool.fetch is returning an extra, bogus, data point. Attached is a
oetiker [Thu, 19 Jun 2008 13:18:04 +0000 (13:18 +0000)]
rrdtool.fetch is returning an extra, bogus, data point.  Attached is a
patch to correct this. - Gilad Raphaelli. Fix for #161

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1436 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoadded note on %S
oetiker [Thu, 12 Jun 2008 13:54:23 +0000 (13:54 +0000)]
added note on %S

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1435 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agomade news the same as the announcement
oetiker [Wed, 11 Jun 2008 15:49:24 +0000 (15:49 +0000)]
made news the same as the announcement

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1434 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoprepare for the release of rrdtool-1.3.0
oetiker [Tue, 10 Jun 2008 23:12:55 +0000 (23:12 +0000)]
prepare for the release of rrdtool-1.3.0

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1432 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoupdated website online
oetiker [Tue, 10 Jun 2008 23:11:40 +0000 (23:11 +0000)]
updated website online

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1431 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoadded website to trunk
oetiker [Tue, 10 Jun 2008 16:41:03 +0000 (16:41 +0000)]
added website to trunk

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1430 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agousing the 1.2 website as a basis for the new 1.3 website
oetiker [Tue, 10 Jun 2008 16:38:57 +0000 (16:38 +0000)]
using the 1.2 website as a basis for the new 1.3 website

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1429 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agooops it is 1.3.0 not 1.4.0 yet
oetiker [Tue, 10 Jun 2008 16:38:10 +0000 (16:38 +0000)]
oops it is 1.3.0 not 1.4.0 yet

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1428 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agopreparing for 1.3
oetiker [Tue, 10 Jun 2008 16:37:39 +0000 (16:37 +0000)]
preparing for 1.3

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1427 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agodocument the 'internal' functions in rrd.h but mark them as deprecated, so
oetiker [Tue, 10 Jun 2008 16:32:34 +0000 (16:32 +0000)]
document the 'internal' functions in rrd.h but mark them as deprecated, so
that anyone using them will see that they should not be doing it.

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1426 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoflip check for row_count with setting for better code logic
oetiker [Tue, 10 Jun 2008 11:16:40 +0000 (11:16 +0000)]
flip check for row_count with setting for better code logic

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1425 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agocheck row count in RRAs to be > 0 ... by Sebastian Harl
oetiker [Tue, 10 Jun 2008 09:35:03 +0000 (09:35 +0000)]
check row count in RRAs to be > 0 ... by Sebastian Harl

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1424 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agofor windows we must open files in O_BINARY mode
oetiker [Tue, 10 Jun 2008 07:18:02 +0000 (07:18 +0000)]
for windows we must open files in O_BINARY mode

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1423 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agodo NOT export lowlevel functions, since I have no intention supporting these
oetiker [Mon, 9 Jun 2008 16:10:39 +0000 (16:10 +0000)]
do NOT export lowlevel functions, since I have no intention supporting these
interfaces across versions. The symbols are in the library, so if someone
WANTS to code to them, they are free todo so, but they will have to use our
internal header files.

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1421 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoadd all lowlevel file access functions from the rrd_open interface to the export...
oetiker [Mon, 9 Jun 2008 15:49:54 +0000 (15:49 +0000)]
add all lowlevel file access functions from the rrd_open interface to the export list.

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1420 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agofixed indenting
oetiker [Mon, 9 Jun 2008 05:12:27 +0000 (05:12 +0000)]
fixed indenting

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1419 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoupdate to rpm spec from Jarod Wilson
oetiker [Mon, 9 Jun 2008 05:11:39 +0000 (05:11 +0000)]
update to rpm spec from Jarod Wilson

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1418 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoexport some more symbols from librrd
oetiker [Sun, 8 Jun 2008 21:15:32 +0000 (21:15 +0000)]
export some more symbols from librrd

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1417 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agowindows should use a windows font
oetiker [Sun, 8 Jun 2008 21:06:35 +0000 (21:06 +0000)]
windows should use a windows font

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1416 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agodrop special case windows font code ... it makes no sense with the new setup
oetiker [Sun, 8 Jun 2008 21:05:50 +0000 (21:05 +0000)]
drop special case windows font code ... it makes no sense with the new setup

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1415 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoprepare for the release of rrdtool-1.3rc9
oetiker [Sun, 8 Jun 2008 17:08:47 +0000 (17:08 +0000)]
prepare for the release of rrdtool-1.3rc9

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1413 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agofixed pango markup switch ... we still want the text to show even if no markup is...
oetiker [Sun, 8 Jun 2008 17:08:11 +0000 (17:08 +0000)]
fixed pango markup switch ... we still want the text to show even if no markup is enabled

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1412 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agorrd_freemem has to be exported as well ...
oetiker [Sun, 8 Jun 2008 16:47:22 +0000 (16:47 +0000)]
rrd_freemem has to be exported as well ...

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1411 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agofix for ticket #121 jmpbuf on aix is a problem it seems, maybe this makes it better.
oetiker [Sun, 8 Jun 2008 16:23:39 +0000 (16:23 +0000)]
fix for ticket #121 jmpbuf on aix is a problem it seems, maybe this makes it better.

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1409 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoprepare for the release of rrdtool-1.3rc8
oetiker [Sun, 8 Jun 2008 15:59:20 +0000 (15:59 +0000)]
prepare for the release of rrdtool-1.3rc8

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1407 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoprepare for the release of rrdtool-1.3rc8
oetiker [Sun, 8 Jun 2008 15:55:54 +0000 (15:55 +0000)]
prepare for the release of rrdtool-1.3rc8

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1406 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoFrom: Sebastian Harl sh tokkee.org
oetiker [Sun, 8 Jun 2008 15:55:09 +0000 (15:55 +0000)]
From: Sebastian Harl sh tokkee.org
Date: Sun, 8 Jun 2008 15:01:05 +0200
Subject: [PATCH] Cleanup the symbols exported by librrd.

Up to know librrd exported a lot of symbols, most of which are to be
regarded as private symbols. This somewhat pollutes the API as the symbols
could, in theory, be used by external software and, more importantly,
makes symbol based dependencies (as recently introduced in e.g. Debian)
somewhat harder to implement.

This patch does a somewhat large-scale cleanup of the exported symbols:

 * Introduced a librrd.sym file which contains all symbols that are to be
   exported. This file is then passed to libtool using the -export-symbols
   option which tells the linker to export the given symbols only (note:
   according to the libtool manual, this has no effect on some
   architectures - however, I assume that most architectures in use today
   do support it).

   librrd.sym contains all symbols originally defined in rrd.h sans
   LockRRD() (which has been moved to rrd_tool.h). The following functions
   have been added to rrd.h and the list of exported symbols (some of them
   have been renamed, see below):
   - rrd_info()
   - rrd_info_free()
   - rrd_info_print()
   - rrd_info_push()
   - rrd_lastupdate()
   - rrd_update_v()
   - rrd_strerror()

 * Prefixed all public functions and types with "rrd_" to avoid name
   clashes with other libraries. Also, while I was at it, I introduced
   typedefs for all custom types and prefixed the time names with "_t" to
   improve consistency:
   - enum info_type -> rrd_info_type_t
   - enum timetype -> rrd_timetype_t

   - union infoval -> rrd_infoval_t

   - struct info_t -> rrd_info_t
   - struct rrd_context -> rrd_context_t
   - struct rrd_time_value -> rrd_time_value_t

   - info_free() -> rrd_info_free()
   - info_free() -> rrd_info_free()
   - info_print() -> rrd_info_print()
   - info_push() -> rrd_info_push()
   - LockRRD() -> rrd_lock() (not public though)
   - parsetime() -> rrd_parsetime()
     (and: src/parsetime.c -> src/rrd_parsetime.c)
   - proc_start_end() -> rrd_proc_start_end()
   - set_to_DINF() -> rrd_set_to_DINF()
   - set_to_DNAN() -> rrd_set_to_DNAN()

 * Moved readfile() from rrd_open.c to rrd_cgi.c and declared it static.
   This function is used in rrd_cgi.c only.

 * rrd_lock() (f.k.a. LockRRD()) now accepts a rrd_file_t pointer instead
   of an integer to increase encapsulation.

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1405 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agodon't bother with don't need when there is neither madvise not fadvise calls
oetiker [Sat, 7 Jun 2008 14:35:03 +0000 (14:35 +0000)]
don't bother with don't need when there is neither madvise not fadvise calls

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1404 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agofix for --font bug (font names wer not being picked up at all). Bug reported by ...
oetiker [Fri, 6 Jun 2008 16:38:25 +0000 (16:38 +0000)]
fix for --font bug (font names wer not being picked up at all). Bug reported by  Dmitry B. Bigunayk

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1403 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoadded pango markup name
oetiker [Thu, 5 Jun 2008 20:56:24 +0000 (20:56 +0000)]
added pango markup name

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1402 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agofixed indenting
oetiker [Thu, 5 Jun 2008 19:59:18 +0000 (19:59 +0000)]
fixed indenting

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1401 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agodisable pango markup by default. added --pango-markup option for explicit enablement.
oetiker [Thu, 5 Jun 2008 19:59:01 +0000 (19:59 +0000)]
disable pango markup by default. added --pango-markup option for explicit enablement.

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1400 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agodisable pango markup by default. added --pango-markup option for explicit enablement.
oetiker [Thu, 5 Jun 2008 19:58:51 +0000 (19:58 +0000)]
disable pango markup by default. added --pango-markup option for explicit enablement.

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1399 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agofixed indenting
oetiker [Thu, 5 Jun 2008 19:57:25 +0000 (19:57 +0000)]
fixed indenting

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1398 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoenable new building for newer tcl versions
oetiker [Wed, 4 Jun 2008 16:18:42 +0000 (16:18 +0000)]
enable new building for newer tcl versions

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1397 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoupdated documentation of library versioning system
oetiker [Mon, 2 Jun 2008 06:46:57 +0000 (06:46 +0000)]
updated documentation of library versioning system

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1396 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoHad to reset the interface version number due to the change in the rrd_context implem...
oetiker [Mon, 2 Jun 2008 06:43:43 +0000 (06:43 +0000)]
Had to reset the interface version number due to the change in the rrd_context implementation.

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1395 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agouse DNAN instead of NAN since there seem to be issues with gcc on solaris and the...
oetiker [Mon, 2 Jun 2008 06:21:42 +0000 (06:21 +0000)]
use DNAN instead of NAN since there seem to be issues with gcc on solaris and the NAN experession (and we use DNAN everywhere else anyway).

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1394 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agointegrated gentoo bits and spell fixes by Peter Volkov
oetiker [Sun, 1 Jun 2008 21:12:26 +0000 (21:12 +0000)]
integrated gentoo bits and spell fixes by Peter Volkov

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1393 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoPatch for rrd_context system by sebastian harl, making it simpler and less error...
oetiker [Sun, 1 Jun 2008 20:44:01 +0000 (20:44 +0000)]
Patch for rrd_context system by sebastian harl, making it simpler and less error prone. Removing one buffer overflow in the process.

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1392 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoprepare for the release of rrdtool-1.3rc7
oetiker [Sat, 31 May 2008 15:58:45 +0000 (15:58 +0000)]
prepare for the release of rrdtool-1.3rc7

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1389 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoprepare for the release of rrdtool-1.3rc7
oetiker [Sat, 31 May 2008 15:57:39 +0000 (15:57 +0000)]
prepare for the release of rrdtool-1.3rc7

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1388 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoadded pkgconfig build instructions
oetiker [Sat, 31 May 2008 15:56:37 +0000 (15:56 +0000)]
added pkgconfig build instructions

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1387 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agomake sure vdef calcs only calc as far as originally requested.
oetiker [Sat, 31 May 2008 12:28:11 +0000 (12:28 +0000)]
make sure vdef calcs only calc as far as originally requested.

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1386 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agofixed maxlength for sprintf_alloc 50 was not enough ... 1024+strlen(fmt) is much...
oetiker [Tue, 27 May 2008 22:24:32 +0000 (22:24 +0000)]
fixed maxlength for sprintf_alloc 50 was not enough ... 1024+strlen(fmt) is much better. This
makes imginfo work even when there are long image paths.

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1385 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoinitial talk slides
oetiker [Mon, 26 May 2008 16:39:18 +0000 (16:39 +0000)]
initial talk slides

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1383 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoupdated todo list
oetiker [Mon, 26 May 2008 11:45:15 +0000 (11:45 +0000)]
updated todo list

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1382 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoprepare for the release of rrdtool-1.3rc6
oetiker [Mon, 26 May 2008 08:56:58 +0000 (08:56 +0000)]
prepare for the release of rrdtool-1.3rc6

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1380 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoadded notes about new grid lines
oetiker [Mon, 26 May 2008 07:46:35 +0000 (07:46 +0000)]
added notes about new grid lines

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1379 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years ago* make y-axis labels NOT run into each other (classic and alt)
oetiker [Mon, 26 May 2008 07:45:19 +0000 (07:45 +0000)]
* make y-axis labels NOT run into each other (classic and alt)
* space horizontal grid lines and lables a bit further apart for tight
  layouts.
* let horizontal lines and y axis labels run a little closer for classic grid

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1378 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agofixed calculation of space at the bottom of the graph
oetiker [Sun, 25 May 2008 21:17:30 +0000 (21:17 +0000)]
fixed calculation of space at the bottom of the graph

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1377 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoprepare for the release of rrdtool-1.3rc5
oetiker [Sun, 25 May 2008 20:02:23 +0000 (20:02 +0000)]
prepare for the release of rrdtool-1.3rc5

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1375 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agofix update compatibility with rrd-1.0.x files
oetiker [Sun, 25 May 2008 20:00:45 +0000 (20:00 +0000)]
fix update compatibility with rrd-1.0.x files

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1374 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agodroped rrd_extra.h from the distro with the python update ... must remove it from...
oetiker [Tue, 20 May 2008 22:22:27 +0000 (22:22 +0000)]
droped rrd_extra.h from the distro with the python update ... must remove it from the Makefile too

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1373 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agofixed python bindings:
oetiker [Mon, 19 May 2008 21:14:36 +0000 (21:14 +0000)]
fixed python bindings:
* info call isnnow aequivalent to rrdtool info (the same as in the perl and ruby bindings)
* graphv and updatev calls added

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1372 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years ago* document tabwidth option
oetiker [Sun, 18 May 2008 22:11:56 +0000 (22:11 +0000)]
* document tabwidth option
* fix \t -> tab expansion

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1371 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agoytr boundery checking ... this is from the GD days ... we don't need this anymore
oetiker [Sun, 18 May 2008 15:39:41 +0000 (15:39 +0000)]
ytr boundery checking ... this is from the GD days ... we don't need this anymore

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1370 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agofix indenting
oetiker [Sun, 18 May 2008 15:11:52 +0000 (15:11 +0000)]
fix indenting

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1369 a5681a0c-68f1-0310-ab6d-d61299d08faa

16 years agopdf, svg and ps formats were not being created
oetiker [Sun, 18 May 2008 15:11:42 +0000 (15:11 +0000)]
pdf, svg and ps formats were not being created

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1368 a5681a0c-68f1-0310-ab6d-d61299d08faa