1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#ifndef CAMERA_H #define CAMERA_H typedef void *camera_handle; typedef struct camera_params { char *device; int x_res; int y_res; } camera_params; void camera_init(camera_handle *handle, camera_params params); char *camera_get_image(camera_handle *handle); void camera_deinit(camera_handle *handle); #endif