forked from oetiker/rrdtool-1.x
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrrd_datalang.c
34 lines (34 loc) · 1.68 KB
/
rrd_datalang.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*****************************************************************************
* RRDtool 1.8.0 Copyright by Tobi Oetiker, 1997-2022
*****************************************************************************
* rrd_datalang A system for passing named and typed parameters between
* the different parts of rrdtool
*
* In rrdtool there are a number of places where large and complex
* data structures have to be passed from one function to another
* eg when rrd_info returns its findings, but also when a function like
* rrd_graph get called.
*
* At the moment function calling is done with an argc/argv type interface
* it's special property is that all data is passed as strings, which can lead
* to unnecessary conversions being performed when rrdtool functions are called
* from a typed language
*
* Data returns from functions is not standardized at all, which is
* efficient in the sense that the data return interface can be tailored to
* the specific needs of the function at hand, but it also leads to
* increased probability for implementation errors as things have to be
* reinvented for each function. Also adding new functions into all the
* language bindings is quite cumbersome.
*
* Therefore I want to develop a standardized interface for passing named
* and typed data into functions and for returning data from functions to
* their callers. I am thinking about working of the code in rrd_info.c ...
*
* Does anyone have experience in this field or any pointers to read up on
* related work ? Or maybe even an existing library for this ?
*
* Cheers
* tobi / 2001-03-10
*
*****************************************************************************/