Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
return sd_event_ref(self->loop);
}
+collecty_modules* collecty_daemon_get_modules(collecty_daemon* self) {
+ if (self->modules)
+ return collecty_modules_ref(self->modules);
+
+ return NULL;
+}
+
collecty_graphs* collecty_daemon_get_graphs(collecty_daemon* self) {
if (self->graphs)
return collecty_graphs_ref(self->graphs);
#include "ctx.h"
#include "graphs.h"
#include "module.h"
+#include "modules.h"
int collecty_daemon_create(collecty_daemon** daemon, collecty_ctx* ctx);
collecty_daemon* collecty_daemon_unref(collecty_daemon* daemon);
sd_event* collecty_daemon_loop(collecty_daemon* self);
+collecty_modules* collecty_daemon_get_modules(collecty_daemon* self);
collecty_graphs* collecty_daemon_get_graphs(collecty_daemon* self);
int collecty_daemon_run(collecty_daemon* self);