mirror of
https://github.com/Motion-Project/motion.git
synced 2026-02-04 12:01:33 -05:00
Implement micro-httpd for providing webcontrol and streams 1. Add tls support for webcontrol and streams. aka ssl/tls, https 2. Add functionality to provide streams on single port 3. Add functionality for additional authentication methods of webcontrol. 4. Add functionality for providing static images 5. Update documentation for new functionality. 6. Resolve issue with stream_preview_newline 7. Add functionality for specifying camera in webcontrol and streams via camera_id 8. Depreciated functionality to specify substream via port 9. Add functionality to specify substream via a URL 10. Revise `quit` to only be available via text (programmatic) interface 11. Added functionality for CORS header on webcontrol interface Closes #526 Closes #661 Closes #709 Closes #737 Closes #750
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_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_ */
|