aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorLibravatar bigfoot547 <[email protected]>2025-11-23 01:12:43 -0600
committerLibravatar bigfoot547 <[email protected]>2025-11-23 01:12:43 -0600
commitbc6575839f8f826b6e3537f5f88970f4444a06c5 (patch)
treea1f9973beda654b77690bcf5672335e179f0a7c3 /src/main.c
parentignore this commit (diff)
more work on plugins
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c11
1 files changed, 11 insertions, 0 deletions
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 <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;
}