diff options
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -4,6 +4,7 @@ #include <stdarg.h> #include "pipeline.h" +#include "plugins.h" PIPELINE_STAGE static int identity_stage_handle(const ptx_pipeline_ctx_t *ctx, const void *data, size_t sz) { @@ -119,5 +120,15 @@ int main(void) { ptx_pipeline_free(pl); + ptx_plugin_manager_t *mgr = ptx_plugin_manager_new(); + if (!mgr) { + fputs("Failed to allocate plugin manager\n", stderr); + return 1; + } + + ptx_plugin_manager_load_dir(mgr, "plugins"); + + ptx_plugin_manager_free(mgr); + return 0; } |
