diff options
| author | Onur Gündüz <ogunduz@gmail.com> | 2026-05-30 04:07:37 +0200 |
|---|---|---|
| committer | Onur Gündüz <ogunduz@gmail.com> | 2026-06-14 08:18:59 +0200 |
| commit | ab50d908ba2eae14929a07341b1b716cde681c1c (patch) | |
| tree | 52e3f1f8cd579eb234185dc3b397ac66cda47cbf /pplx_server.h | |
| parent | 46f9e7c67134caf43a04ea5ee3b2325588647e28 (diff) | |
| download | ffwd-ab50d908ba2eae14929a07341b1b716cde681c1c.tar.gz ffwd-ab50d908ba2eae14929a07341b1b716cde681c1c.zip | |
server: implement HTTP API with libae integration
Diffstat (limited to 'pplx_server.h')
| -rw-r--r-- | pplx_server.h | 24 |
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 |
