mirror of https://github.com/billw2/pikrellcam.git
Do not log annotates. Add .editorconfig to git
This commit is contained in:
parent
4aa9f73b83
commit
e033487914
|
@ -0,0 +1,8 @@
|
||||||
|
# This file is for unifying the coding style for different editors and IDEs
|
||||||
|
# http://EditorConfig.org
|
||||||
|
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
indent_style = tab
|
||||||
|
indent_size = 4
|
BIN
pikrellcam
BIN
pikrellcam
Binary file not shown.
|
@ -714,44 +714,45 @@ typedef struct
|
||||||
char *name;
|
char *name;
|
||||||
CommandCode code;
|
CommandCode code;
|
||||||
int n_args;
|
int n_args;
|
||||||
|
boolean do_log;
|
||||||
}
|
}
|
||||||
Command;
|
Command;
|
||||||
|
|
||||||
static Command commands[] =
|
static Command commands[] =
|
||||||
{
|
{
|
||||||
{ "record", record, 1 },
|
{ "record", record, 1, TRUE },
|
||||||
{ "record_pause", record_pause, 0 },
|
{ "record_pause", record_pause, 0, TRUE },
|
||||||
{ "pause", record_pause, 0 },
|
{ "pause", record_pause, 0, TRUE },
|
||||||
{ "still", still, 0 },
|
{ "still", still, 0, TRUE },
|
||||||
|
|
||||||
{ "tl_start", tl_start, 1 },
|
{ "tl_start", tl_start, 1, TRUE },
|
||||||
{ "tl_end", tl_end, 0 },
|
{ "tl_end", tl_end, 0, TRUE },
|
||||||
{ "tl_hold", tl_hold, 1 },
|
{ "tl_hold", tl_hold, 1, TRUE },
|
||||||
{ "tl_show_status", tl_show_status, 1 },
|
{ "tl_show_status", tl_show_status, 1, FALSE },
|
||||||
|
|
||||||
{ "motion", motion_cmd, 1 },
|
{ "motion", motion_cmd, 1, TRUE },
|
||||||
{ "motion_enable", motion_enable, 1 },
|
{ "motion_enable", motion_enable, 1, TRUE },
|
||||||
|
|
||||||
/* Above commands are redirected to abort a menu or adjustment display
|
/* Above commands are redirected to abort a menu or adjustment display
|
||||||
*/
|
*/
|
||||||
{ "display", display_cmd, 1 },
|
{ "display", display_cmd, 1, FALSE },
|
||||||
|
|
||||||
/* Below commands are not redirected to abort a menu or adjustment */
|
/* Below commands are not redirected to abort a menu or adjustment */
|
||||||
{ "tl_inform_convert", tl_inform_convert, 1 },
|
{ "tl_inform_convert", tl_inform_convert, 1, FALSE },
|
||||||
|
|
||||||
{ "still_quality", still_quality, 1 },
|
{ "still_quality", still_quality, 1, TRUE },
|
||||||
{ "video_bitrate", video_bitrate, 1 },
|
{ "video_bitrate", video_bitrate, 1, TRUE },
|
||||||
{ "video_fps", video_fps, 1 },
|
{ "video_fps", video_fps, 1, TRUE },
|
||||||
{ "video_mp4box_fps", video_mp4box_fps, 1 },
|
{ "video_mp4box_fps", video_mp4box_fps, 1, TRUE },
|
||||||
{ "inform", inform, 1 },
|
{ "inform", inform, 1, FALSE },
|
||||||
{ "save_config", save_config, 0 },
|
{ "save_config", save_config, 0, TRUE },
|
||||||
{ "archive_video", archive_video, 1 },
|
{ "archive_video", archive_video, 1, TRUE },
|
||||||
{ "archive_still", archive_still, 1 },
|
{ "archive_still", archive_still, 1, TRUE },
|
||||||
{ "delete_log", delete_log, 0 },
|
{ "delete_log", delete_log, 0, TRUE },
|
||||||
{ "fix_thumbs", fix_thumbs, 1 },
|
{ "fix_thumbs", fix_thumbs, 1, TRUE },
|
||||||
{ "annotate_string", annotate_string, 1 },
|
{ "annotate_string", annotate_string, 1, FALSE },
|
||||||
{ "upgrade", upgrade, 0 },
|
{ "upgrade", upgrade, 0, TRUE },
|
||||||
{ "quit", quit, 0 },
|
{ "quit", quit, 0, TRUE },
|
||||||
};
|
};
|
||||||
|
|
||||||
#define COMMAND_SIZE (sizeof(commands) / sizeof(Command))
|
#define COMMAND_SIZE (sizeof(commands) / sizeof(Command))
|
||||||
|
@ -783,7 +784,7 @@ command_process(char *command_line)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!cmd || (cmd->code != display_cmd && cmd->code != inform))
|
if (cmd && cmd->do_log)
|
||||||
log_printf("command_process: %s\n", command_line);
|
log_printf("command_process: %s\n", command_line);
|
||||||
if (!cmd)
|
if (!cmd)
|
||||||
{
|
{
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
|
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
#define PIKRELLCAM_VERSION "2.1.12"
|
#define PIKRELLCAM_VERSION "2.1.13"
|
||||||
|
|
||||||
|
|
||||||
//TCP Stream Server
|
//TCP Stream Server
|
||||||
|
|
Loading…
Reference in New Issue