forked from Motion-Project/motion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
event.h
44 lines (40 loc) · 1.04 KB
/
event.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
* event.h
*
* Include file for event.c
*
* Copyright Jeroen Vreeken, 2002
* This software is distributed under the GNU Public License Version 2
* see also the file 'COPYING'.
*
*/
#ifndef _INCLUDE_EVENT_H_
#define _INCLUDE_EVENT_H_
typedef enum {
EVENT_FILECREATE = 1,
EVENT_MOTION,
EVENT_FIRSTMOTION,
EVENT_ENDMOTION,
EVENT_TIMELAPSE,
EVENT_TIMELAPSEEND,
EVENT_STREAM,
EVENT_IMAGE_DETECTED,
EVENT_IMAGEM_DETECTED,
EVENT_IMAGE_SNAPSHOT,
EVENT_IMAGE,
EVENT_IMAGEM,
EVENT_IMAGE_PREVIEW,
EVENT_FILECLOSE,
EVENT_DEBUG,
EVENT_CRITICAL,
EVENT_AREA_DETECTED,
EVENT_CAMERA_LOST,
EVENT_CAMERA_FOUND,
EVENT_FFMPEG_PUT,
EVENT_LAST,
} motion_event;
typedef void(* event_handler)(struct context *, motion_event, struct image_data *,
char *, void *, struct timeval *);
void event(struct context *, motion_event, struct image_data *img_data, char *, void *, struct timeval *);
const char * imageext(struct context *);
#endif /* _INCLUDE_EVENT_H_ */