File: event.h

package info (click to toggle)
motion 3.2.9-7
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,912 kB
  • ctags: 1,533
  • sloc: ansic: 14,340; sh: 724; makefile: 216
file content (37 lines) | stat: -rw-r--r-- 1,078 bytes parent folder | download
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
/*
 *	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_

#define EVENT_FILECREATE        1
#define EVENT_MOTION            2
#define EVENT_FIRSTMOTION       4
#define EVENT_ENDMOTION         8
#define EVENT_STOP              16
#define EVENT_TIMELAPSE         32
#define EVENT_TIMELAPSEEND      64
#define EVENT_WEBCAM            128
#define EVENT_IMAGE_DETECTED    256
#define EVENT_IMAGEM_DETECTED   512
#define EVENT_IMAGE_SNAPSHOT    1024
#define EVENT_IMAGE             2048
#define EVENT_IMAGEM            8192
#define EVENT_FILECLOSE         16384
#define EVENT_DEBUG             65536
#define EVENT_CRITICAL          131072
#

typedef void(* event_handler)(struct context *, int, unsigned char *, char *, void *, struct tm *);

void event(struct context *, int, unsigned char *, char *, void *, struct tm *);
const char * imageext(struct context *);

#endif /* _INCLUDE_EVENT_H_ */