diff --git a/cmd/main.c b/cmd/main.c index 6a6109f..39d92b3 100644 --- a/cmd/main.c +++ b/cmd/main.c @@ -4,6 +4,7 @@ #include "hw/links.h" #include "hw/v4l2.h" #include "http/http.h" +#include "opts/opts.h" #include "camera.h" #include @@ -30,11 +31,16 @@ camera_options_t camera_options = { .allow_dma = true }; -http_server_options_t http_server_options = { +http_server_options_t http_options = { .listen_port = 9092, .maxcons = 10 }; +option_t all_options[] = { + DEFINE_OPTION(camera, width, "%d"), + {} +}; + int main(int argc, char *argv[]) { camera_t camera; @@ -65,7 +71,7 @@ int main(int argc, char *argv[]) goto error; } - http_fd = http_server(&http_server_options, http_methods); + http_fd = http_server(&http_options, http_methods); if (http_fd < 0) { goto error; }