git.jasLogic.tech
- better error handling and minor changes in photobox.c
[photobox.git] / src / photobox_photo.h
1 // Copyright (C) 2019 Jaslo Ziska
2
3 #ifndef PHOTOBOX_PHOTO_H
4 #define PHOTOBOX_PHOTO_H
5
6 typedef struct pb_ph_buffer {
7 void *base;
8 unsigned long int size;
9 } pb_ph_buffer;
10
11 int pb_ph_init(void);
12 void pb_ph_uninit(void);
13 int pb_ph_capture(pb_ph_buffer *buf);
14 int pb_ph_capture_file(const char *fn);
15
16 #endif//PHOTOBOX_PHOTO_H