Rename http_options
This commit is contained in:
parent
4d3e8835ab
commit
4ac1a8dbe5
10
cmd/main.c
10
cmd/main.c
@ -4,6 +4,7 @@
|
|||||||
#include "hw/links.h"
|
#include "hw/links.h"
|
||||||
#include "hw/v4l2.h"
|
#include "hw/v4l2.h"
|
||||||
#include "http/http.h"
|
#include "http/http.h"
|
||||||
|
#include "opts/opts.h"
|
||||||
#include "camera.h"
|
#include "camera.h"
|
||||||
|
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
@ -30,11 +31,16 @@ camera_options_t camera_options = {
|
|||||||
.allow_dma = true
|
.allow_dma = true
|
||||||
};
|
};
|
||||||
|
|
||||||
http_server_options_t http_server_options = {
|
http_server_options_t http_options = {
|
||||||
.listen_port = 9092,
|
.listen_port = 9092,
|
||||||
.maxcons = 10
|
.maxcons = 10
|
||||||
};
|
};
|
||||||
|
|
||||||
|
option_t all_options[] = {
|
||||||
|
DEFINE_OPTION(camera, width, "%d"),
|
||||||
|
{}
|
||||||
|
};
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
camera_t camera;
|
camera_t camera;
|
||||||
@ -65,7 +71,7 @@ int main(int argc, char *argv[])
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
http_fd = http_server(&http_server_options, http_methods);
|
http_fd = http_server(&http_options, http_methods);
|
||||||
if (http_fd < 0) {
|
if (http_fd < 0) {
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user