Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #include "mjpg_streamer.h"
00024 #define OUTPUT_PLUGIN_PREFIX " o: "
00025 #define OPRINT(...) { char _bf[1024] = {0}; snprintf(_bf, sizeof(_bf)-1, __VA_ARGS__); fprintf(stderr, "%s", OUTPUT_PLUGIN_PREFIX); fprintf(stderr, "%s", _bf); syslog(LOG_INFO, "%s", _bf); }
00026
00027
00028 typedef struct _output_parameter output_parameter;
00029 struct _output_parameter {
00030 int id;
00031 char *parameters;
00032 int argc;
00033 char *argv[MAX_PLUGIN_ARGUMENTS];
00034 struct _globals *global;
00035 };
00036
00037
00038
00039
00040 typedef struct _output output;
00041 struct _output {
00042 char *plugin;
00043 void *handle;
00044 output_parameter param;
00045
00046
00047 struct _control *out_parameters;
00048 int parametercount;
00049
00050 int (*init)(output_parameter *param, int id);
00051 int (*stop)(int);
00052 int (*run)(int);
00053 int (*cmd)(int plugin, unsigned int control_id, unsigned int group, int value);
00054 };
00055