]> git.itanic.dy.fi Git - rrdd/commit
plugin_manager: Load parser plugins by name
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Mon, 19 Nov 2012 19:45:39 +0000 (21:45 +0200)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Mon, 19 Nov 2012 20:10:12 +0000 (22:10 +0200)
commit456a3d1a2eb5fa3e0aa2e1d3c3ea69ed4854256e
tree223c68c24d68e927659dca31487a1d66c91f701d
parenta1ae306acfc6ff58ff7e18f4e7bca06f37e6613c
plugin_manager: Load parser plugins by name

A parser plugin is a plugin that has name "%s_parser.so", where "%s"
is the name of the parser. Implement a function that will try to find
a parser plugin by a name. If we can't find such plugin from the
global library path, try some other places as well, such as current
working directory and executable path.

In order to know the executable path, the plugin manager needs to be
initialized with the executable path. We are now doing it in the
beginning of the main function.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
main.c
plugin_manager.c
plugin_manager.h