mirror of
https://github.com/Motion-Project/motion.git
synced 2025-12-23 23:18:21 -05:00
* High Resolution Refactor the netcam_rtsp module and associated image variables to allow for processing a dual stream from rtsp cameras. Continue the process of segregating the functionality of the netcams into distinct modules based upon their function.
45 lines
1.0 KiB
C
45 lines
1.0 KiB
C
/*
|
|
* 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_STOP,
|
|
EVENT_TIMELAPSE,
|
|
EVENT_TIMELAPSEEND,
|
|
EVENT_STREAM,
|
|
EVENT_IMAGE_DETECTED,
|
|
EVENT_IMAGEM_DETECTED,
|
|
EVENT_IMAGE_SNAPSHOT,
|
|
EVENT_IMAGE,
|
|
EVENT_IMAGEM,
|
|
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_ */
|