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