From bc6575839f8f826b6e3537f5f88970f4444a06c5 Mon Sep 17 00:00:00 2001 From: bigfoot547 Date: Sun, 23 Nov 2025 01:12:43 -0600 Subject: more work on plugins --- src/main.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 50baf66..36eeaf7 100644 --- a/src/main.c +++ b/src/main.c @@ -4,6 +4,7 @@ #include #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; } -- cgit v1.2.3-70-g09d2