diff options
| author | 2025-11-23 01:12:43 -0600 | |
|---|---|---|
| committer | 2025-11-23 01:12:43 -0600 | |
| commit | bc6575839f8f826b6e3537f5f88970f4444a06c5 (patch) | |
| tree | a1f9973beda654b77690bcf5672335e179f0a7c3 /src/main.c | |
| parent | ignore this commit (diff) | |
more work on plugins
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; } |
