aboutsummaryrefslogtreecommitdiff
path: root/pplx_server.h
diff options
context:
space:
mode:
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