I'm trying to remove a data source from a rrd db.
I found I can do something like "rrdtool tune mydb.rrd DEL:source_name" and it works, but I want to do it from C/C++ code. I could use the system function in Linux, but I don't like the overhead.
I looked in https://oss.oetiker.ch/rrdtool/doc/librrd.en.html to see if there is something I could use, but I didn't find anything.
I also looked in the rrd source code from https://github.com/oetiker/rrdtool-1.x/tree/master/src and I found they call rrd_modify_r2() to remove sources, but this function is static, so it's not exported (as opposed to rrdc_create_r2)
So, how can I remove a source from C/C++ code ?
thanks, Catalin