libcortex
Event loop library following a "batteries included" approach
Loading...
Searching...
No Matches
src
v4l.h
1
#ifndef _CRTX_V4L_H
2
#define _CRTX_V4L_H
3
4
#ifdef __cplusplus
5
extern
"C"
{
6
#endif
7
8
/*
9
* Mario Kicherer (dev@kicherer.org) 2016
10
*
11
*/
12
13
struct
crtx_v4l_listener
{
14
struct
crtx_listener_base
base;
15
16
char
* device_path;
17
int
fd;
18
19
struct
crtx_dict
*formats;
20
struct
v4l2_format format;
21
22
struct
crtx_dict
*controls;
23
24
struct
v4l2_event_subscription *subscriptions;
25
unsigned
int
subscription_length;
26
};
27
28
char
crtx_v4l2_event2dict(
struct
v4l2_event *ptr,
struct
crtx_dict
**dict_ptr,
struct
crtx_dict
*controls);
29
30
struct
crtx_listener_base
*crtx_new_v4l_listener(
void
*options);
31
CRTX_DECLARE_ALLOC_FUNCTION(v4l)
32
33
void
crtx_v4l_init();
34
void
crtx_v4l_finish();
35
36
#ifdef __cplusplus
37
}
38
#endif
39
40
#endif
crtx_dict
Definition
dict.h:61
crtx_listener_base
base structure of a listener
Definition
core.h:186
crtx_v4l_listener
Definition
v4l.h:13
Generated by
1.9.8