aboutsummaryrefslogtreecommitdiff
path: root/pplx_server.h
diff options
context:
space:
mode:
authorOnur Gündüz <ogunduz@gmail.com>2026-05-30 04:07:37 +0200
committerOnur Gündüz <ogunduz@gmail.com>2026-06-14 08:18:59 +0200
commitab50d908ba2eae14929a07341b1b716cde681c1c (patch)
tree52e3f1f8cd579eb234185dc3b397ac66cda47cbf /pplx_server.h
parent46f9e7c67134caf43a04ea5ee3b2325588647e28 (diff)
downloadffwd-ab50d908ba2eae14929a07341b1b716cde681c1c.tar.gz
ffwd-ab50d908ba2eae14929a07341b1b716cde681c1c.zip
server: implement HTTP API with libae integration
Diffstat (limited to 'pplx_server.h')
-rw-r--r--pplx_server.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/pplx_server.h b/pplx_server.h
new file mode 100644
index 0000000..c46f4f9
--- /dev/null
+++ b/pplx_server.h
@@ -0,0 +1,24 @@
+#ifndef PPLX_SERVER_H
+#define PPLX_SERVER_H
+
+#include <stdbool.h>
+
+typedef struct {
+ const char *id;
+ const char *path;
+} pplx_server_model_spec_t;
+
+typedef struct {
+ const pplx_server_model_spec_t *models;
+ int n_models;
+ const char *host;
+ int port;
+ int batch_size;
+ int use_mlx;
+ int enable_cors;
+ const char *api_key;
+} pplx_server_config_t;
+
+int pplx_run_server(const pplx_server_config_t *cfg);
+
+#endif