From 7e64d0c78e8a21f2ede7eab1303758391001c0dc Mon Sep 17 00:00:00 2001 From: kartofen Date: Mon, 17 Oct 2022 23:04:12 +0300 Subject: many changes in progess --- src/camera.h | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'src/camera.h') diff --git a/src/camera.h b/src/camera.h index aaf690c..bfc5394 100644 --- a/src/camera.h +++ b/src/camera.h @@ -1,10 +1,20 @@ #ifndef CAMERA_H #define CAMERA_H -void camera_init(char *dev_name, unsigned int x_res, unsigned int y_res); +typedef struct camera_handle { + void *handle; +} camera_handle; -char *camera_get_image(); +typedef struct camera_params { + char *device; + int x_res; + int y_res; +} camera_params; -void camera_deinit(); +void camera_init(camera_handle *handle, camera_params params); + +char *camera_get_image(camera_handle *handle); + +void camera_deinit(camera_handle *handle); #endif -- cgit v1.2.3