diff options
author | kartofen <mladenovnasko0@gmail.com> | 2022-10-17 23:04:12 +0300 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2022-10-17 23:04:12 +0300 |
commit | 7e64d0c78e8a21f2ede7eab1303758391001c0dc (patch) | |
tree | a01e44b12d66de3e4fbc5cf5ab20f439fc8d6fc8 /src/camera.h | |
parent | b1b7c92aa96af5502f276819b628b05d54f4655c (diff) |
many changes in progess
Diffstat (limited to 'src/camera.h')
-rw-r--r-- | src/camera.h | 16 |
1 files changed, 13 insertions, 3 deletions
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 |