zoneminder/src/zm_config_defines.h

563 lines
22 KiB
C
Raw Normal View History

// The file is autogenerated by zmconfgen.pl
// Do not edit this file as any changes will be overwritten
#define ZM_LANG_DEFAULT 0
#define ZM_OPT_USE_AUTH 1
#define ZM_AUTH_TYPE 2
#define ZM_AUTH_RELAY 3
#define ZM_AUTH_HASH_SECRET 4
#define ZM_AUTH_HASH_IPS 5
#define ZM_AUTH_HASH_LOGINS 6
#define ZM_DIR_EVENTS 7
#define ZM_USE_DEEP_STORAGE 8
#define ZM_DIR_IMAGES 9
#define ZM_DIR_SOUNDS 10
#define ZM_PATH_ZMS 11
#define ZM_CAN_STREAM 12
#define ZM_STREAM_METHOD 13
#define ZM_COLOUR_JPEG_FILES 14
#define ZM_ADD_JPEG_COMMENTS 15
#define ZM_JPEG_FILE_QUALITY 16
#define ZM_JPEG_ALARM_FILE_QUALITY 17
#define ZM_JPEG_IMAGE_QUALITY 18
#define ZM_JPEG_STREAM_QUALITY 19
#define ZM_MPEG_TIMED_FRAMES 20
#define ZM_MPEG_LIVE_FORMAT 21
#define ZM_MPEG_REPLAY_FORMAT 22
#define ZM_RAND_STREAM 23
#define ZM_OPT_CAMBOZOLA 24
#define ZM_PATH_CAMBOZOLA 25
#define ZM_RELOAD_CAMBOZOLA 26
#define ZM_TIMESTAMP_ON_CAPTURE 27
#define ZM_LOCAL_BGR_INVERT 28
#define ZM_Y_IMAGE_DELTAS 29
#define ZM_FAST_IMAGE_BLENDS 30
#define ZM_OPT_ADAPTIVE_SKIP 31
#define ZM_BLEND_ALARMED_IMAGES 32
#define ZM_MAX_SUSPEND_TIME 33
#define ZM_OPT_REMOTE_CAMERAS 34
#define ZM_NETCAM_REGEXPS 35
#define ZM_HTTP_VERSION 36
#define ZM_HTTP_UA 37
#define ZM_HTTP_TIMEOUT 38
#define ZM_MIN_RTP_PORT 39
#define ZM_MAX_RTP_PORT 40
#define ZM_OPT_FFMPEG 41
#define ZM_PATH_FFMPEG 42
#define ZM_FFMPEG_INPUT_OPTIONS 43
#define ZM_FFMPEG_OUTPUT_OPTIONS 44
#define ZM_FFMPEG_FORMATS 45
#define ZM_OPT_NETPBM 46
#define ZM_PATH_NETPBM 47
#define ZM_RECORD_EVENT_STATS 48
#define ZM_RECORD_DIAG_IMAGES 49
#define ZM_EXTRA_DEBUG 50
#define ZM_EXTRA_DEBUG_TARGET 51
#define ZM_EXTRA_DEBUG_LEVEL 52
#define ZM_EXTRA_DEBUG_LOG 53
#define ZM_DUMP_CORES 54
#define ZM_PATH_MAP 55
#define ZM_PATH_SOCKS 56
#define ZM_PATH_LOGS 57
#define ZM_PATH_SWAP 58
#define ZM_WEB_TITLE_PREFIX 59
#define ZM_WEB_RESIZE_CONSOLE 60
#define ZM_WEB_POPUP_ON_ALARM 61
#define ZM_OPT_X10 62
#define ZM_X10_DEVICE 63
#define ZM_X10_HOUSE_CODE 64
#define ZM_X10_DB_RELOAD_INTERVAL 65
#define ZM_WEB_SOUND_ON_ALARM 66
#define ZM_WEB_ALARM_SOUND 67
#define ZM_WEB_COMPACT_MONTAGE 68
#define ZM_OPT_FAST_DELETE 69
#define ZM_STRICT_VIDEO_CONFIG 70
#define ZM_SIGNAL_CHECK_POINTS 71
#define ZM_V4L_MULTI_BUFFER 72
#define ZM_CAPTURES_PER_FRAME 73
#define ZM_FILTER_RELOAD_DELAY 74
#define ZM_FILTER_EXECUTE_INTERVAL 75
#define ZM_OPT_UPLOAD 76
#define ZM_UPLOAD_ARCH_FORMAT 77
#define ZM_UPLOAD_ARCH_COMPRESS 78
#define ZM_UPLOAD_ARCH_ANALYSE 79
#define ZM_UPLOAD_FTP_HOST 80
#define ZM_UPLOAD_FTP_USER 81
#define ZM_UPLOAD_FTP_PASS 82
#define ZM_UPLOAD_FTP_LOC_DIR 83
#define ZM_UPLOAD_FTP_REM_DIR 84
#define ZM_UPLOAD_FTP_TIMEOUT 85
#define ZM_UPLOAD_FTP_PASSIVE 86
#define ZM_UPLOAD_FTP_DEBUG 87
#define ZM_OPT_EMAIL 88
#define ZM_EMAIL_ADDRESS 89
#define ZM_EMAIL_TEXT 90
#define ZM_EMAIL_SUBJECT 91
#define ZM_EMAIL_BODY 92
#define ZM_OPT_MESSAGE 93
#define ZM_MESSAGE_ADDRESS 94
#define ZM_MESSAGE_TEXT 95
#define ZM_MESSAGE_SUBJECT 96
#define ZM_MESSAGE_BODY 97
#define ZM_NEW_MAIL_MODULES 98
#define ZM_EMAIL_HOST 99
#define ZM_FROM_EMAIL 100
#define ZM_URL 101
#define ZM_MAX_RESTART_DELAY 102
#define ZM_WATCH_CHECK_INTERVAL 103
#define ZM_WATCH_MAX_DELAY 104
#define ZM_RUN_AUDIT 105
#define ZM_AUDIT_CHECK_INTERVAL 106
#define ZM_FORCED_ALARM_SCORE 107
#define ZM_BULK_FRAME_INTERVAL 108
#define ZM_EVENT_CLOSE_MODE 109
#define ZM_FORCE_CLOSE_EVENTS 110
#define ZM_CREATE_ANALYSIS_IMAGES 111
#define ZM_WEIGHTED_ALARM_CENTRES 112
#define ZM_EVENT_IMAGE_DIGITS 113
#define ZM_DEFAULT_ASPECT_RATIO 114
#define ZM_USER_SELF_EDIT 115
#define ZM_OPT_FRAME_SERVER 116
#define ZM_FRAME_SOCKET_SIZE 117
#define ZM_OPT_CONTROL 118
#define ZM_OPT_TRIGGERS 119
#define ZM_CHECK_FOR_UPDATES 120
#define ZM_UPDATE_CHECK_PROXY 121
#define ZM_SHM_KEY 122
#define ZM_WEB_REFRESH_METHOD 123
#define ZM_WEB_EVENT_SORT_FIELD 124
#define ZM_WEB_EVENT_SORT_ORDER 125
#define ZM_WEB_EVENTS_PER_PAGE 126
#define ZM_WEB_LIST_THUMBS 127
#define ZM_WEB_LIST_THUMB_WIDTH 128
#define ZM_WEB_LIST_THUMB_HEIGHT 129
#define ZM_WEB_USE_OBJECT_TAGS 130
#define ZM_WEB_H_REFRESH_MAIN 131
#define ZM_WEB_H_REFRESH_CYCLE 132
#define ZM_WEB_H_REFRESH_IMAGE 133
#define ZM_WEB_H_REFRESH_STATUS 134
#define ZM_WEB_H_REFRESH_EVENTS 135
#define ZM_WEB_H_DEFAULT_SCALE 136
#define ZM_WEB_H_DEFAULT_RATE 137
#define ZM_WEB_H_VIDEO_BITRATE 138
#define ZM_WEB_H_VIDEO_MAXFPS 139
#define ZM_WEB_H_SCALE_THUMBS 140
#define ZM_WEB_H_USE_STREAMS 141
#define ZM_WEB_H_EVENTS_VIEW 142
#define ZM_WEB_H_SHOW_PROGRESS 143
#define ZM_WEB_H_AJAX_TIMEOUT 144
#define ZM_WEB_M_REFRESH_MAIN 145
#define ZM_WEB_M_REFRESH_CYCLE 146
#define ZM_WEB_M_REFRESH_IMAGE 147
#define ZM_WEB_M_REFRESH_STATUS 148
#define ZM_WEB_M_REFRESH_EVENTS 149
#define ZM_WEB_M_DEFAULT_SCALE 150
#define ZM_WEB_M_DEFAULT_RATE 151
#define ZM_WEB_M_VIDEO_BITRATE 152
#define ZM_WEB_M_VIDEO_MAXFPS 153
#define ZM_WEB_M_SCALE_THUMBS 154
#define ZM_WEB_M_USE_STREAMS 155
#define ZM_WEB_M_EVENTS_VIEW 156
#define ZM_WEB_M_SHOW_PROGRESS 157
#define ZM_WEB_M_AJAX_TIMEOUT 158
#define ZM_WEB_L_REFRESH_MAIN 159
#define ZM_WEB_L_REFRESH_CYCLE 160
#define ZM_WEB_L_REFRESH_IMAGE 161
#define ZM_WEB_L_REFRESH_STATUS 162
#define ZM_WEB_L_REFRESH_EVENTS 163
#define ZM_WEB_L_DEFAULT_SCALE 164
#define ZM_WEB_L_DEFAULT_RATE 165
#define ZM_WEB_L_VIDEO_BITRATE 166
#define ZM_WEB_L_VIDEO_MAXFPS 167
#define ZM_WEB_L_SCALE_THUMBS 168
#define ZM_WEB_L_USE_STREAMS 169
#define ZM_WEB_L_EVENTS_VIEW 170
#define ZM_WEB_L_SHOW_PROGRESS 171
#define ZM_WEB_L_AJAX_TIMEOUT 172
#define ZM_WEB_P_DEFAULT_RATE 173
#define ZM_WEB_P_SCALE_THUMBS 174
#define ZM_WEB_P_AJAX_TIMEOUT 175
#define ZM_DYN_LAST_VERSION 176
#define ZM_DYN_CURR_VERSION 177
#define ZM_DYN_DB_VERSION 178
#define ZM_DYN_LAST_CHECK 179
#define ZM_DYN_NEXT_REMINDER 180
#define ZM_DYN_DONATE_REMINDER_TIME 181
#define ZM_DYN_SHOW_DONATE_REMINDER 182
#define ZM_MAX_CFG_ID 182
#define ZM_CFG_DECLARE_LIST \
const char *lang_default;\
bool opt_use_auth;\
const char *auth_type;\
const char *auth_relay;\
const char *auth_hash_secret;\
bool auth_hash_ips;\
bool auth_hash_logins;\
const char *dir_events;\
bool use_deep_storage;\
const char *dir_images;\
const char *dir_sounds;\
const char *path_zms;\
const char *can_stream;\
const char *stream_method;\
bool colour_jpeg_files;\
bool add_jpeg_comments;\
int jpeg_file_quality;\
int jpeg_alarm_file_quality;\
int jpeg_image_quality;\
int jpeg_stream_quality;\
bool mpeg_timed_frames;\
const char *mpeg_live_format;\
const char *mpeg_replay_format;\
bool rand_stream;\
bool opt_cambozola;\
const char *path_cambozola;\
int reload_cambozola;\
bool timestamp_on_capture;\
bool local_bgr_invert;\
bool y_image_deltas;\
bool fast_image_blends;\
bool opt_adaptive_skip;\
bool blend_alarmed_images;\
int max_suspend_time;\
bool opt_remote_cameras;\
bool netcam_regexps;\
const char *http_version;\
const char *http_ua;\
int http_timeout;\
int min_rtp_port;\
int max_rtp_port;\
bool opt_ffmpeg;\
const char *path_ffmpeg;\
const char *ffmpeg_input_options;\
const char *ffmpeg_output_options;\
const char *ffmpeg_formats;\
bool opt_netpbm;\
const char *path_netpbm;\
bool record_event_stats;\
bool record_diag_images;\
bool extra_debug;\
const char *extra_debug_target;\
int extra_debug_level;\
const char *extra_debug_log;\
bool dump_cores;\
const char *path_map;\
const char *path_socks;\
const char *path_logs;\
const char *path_swap;\
const char *web_title_prefix;\
bool web_resize_console;\
bool web_popup_on_alarm;\
bool opt_x10;\
const char *x10_device;\
const char *x10_house_code;\
int x10_db_reload_interval;\
bool web_sound_on_alarm;\
const char *web_alarm_sound;\
bool web_compact_montage;\
bool opt_fast_delete;\
bool strict_video_config;\
int signal_check_points;\
bool v4l_multi_buffer;\
int captures_per_frame;\
int filter_reload_delay;\
int filter_execute_interval;\
bool opt_upload;\
const char *upload_arch_format;\
bool upload_arch_compress;\
bool upload_arch_analyse;\
const char *upload_ftp_host;\
const char *upload_ftp_user;\
const char *upload_ftp_pass;\
const char *upload_ftp_loc_dir;\
const char *upload_ftp_rem_dir;\
int upload_ftp_timeout;\
bool upload_ftp_passive;\
bool upload_ftp_debug;\
bool opt_email;\
const char *email_address;\
const char *email_text;\
const char *email_subject;\
const char *email_body;\
bool opt_message;\
const char *message_address;\
const char *message_text;\
const char *message_subject;\
const char *message_body;\
bool new_mail_modules;\
const char *email_host;\
const char *from_email;\
const char *url;\
int max_restart_delay;\
int watch_check_interval;\
double watch_max_delay;\
bool run_audit;\
int audit_check_interval;\
int forced_alarm_score;\
int bulk_frame_interval;\
const char *event_close_mode;\
bool force_close_events;\
bool create_analysis_images;\
bool weighted_alarm_centres;\
int event_image_digits;\
const char *default_aspect_ratio;\
bool user_self_edit;\
bool opt_frame_server;\
int frame_socket_size;\
bool opt_control;\
bool opt_triggers;\
bool check_for_updates;\
const char *update_check_proxy;\
int shm_key;\
const char *web_refresh_method;\
const char *web_event_sort_field;\
const char *web_event_sort_order;\
int web_events_per_page;\
bool web_list_thumbs;\
int web_list_thumb_width;\
int web_list_thumb_height;\
bool web_use_object_tags;\
int web_h_refresh_main;\
int web_h_refresh_cycle;\
int web_h_refresh_image;\
int web_h_refresh_status;\
int web_h_refresh_events;\
int web_h_default_scale;\
int web_h_default_rate;\
int web_h_video_bitrate;\
int web_h_video_maxfps;\
bool web_h_scale_thumbs;\
bool web_h_use_streams;\
const char *web_h_events_view;\
bool web_h_show_progress;\
int web_h_ajax_timeout;\
int web_m_refresh_main;\
int web_m_refresh_cycle;\
int web_m_refresh_image;\
int web_m_refresh_status;\
int web_m_refresh_events;\
int web_m_default_scale;\
int web_m_default_rate;\
int web_m_video_bitrate;\
int web_m_video_maxfps;\
bool web_m_scale_thumbs;\
bool web_m_use_streams;\
const char *web_m_events_view;\
bool web_m_show_progress;\
int web_m_ajax_timeout;\
int web_l_refresh_main;\
int web_l_refresh_cycle;\
int web_l_refresh_image;\
int web_l_refresh_status;\
int web_l_refresh_events;\
int web_l_default_scale;\
int web_l_default_rate;\
int web_l_video_bitrate;\
int web_l_video_maxfps;\
bool web_l_scale_thumbs;\
bool web_l_use_streams;\
const char *web_l_events_view;\
bool web_l_show_progress;\
int web_l_ajax_timeout;\
int web_p_default_rate;\
bool web_p_scale_thumbs;\
int web_p_ajax_timeout;\
const char *dyn_last_version;\
const char *dyn_curr_version;\
const char *dyn_db_version;\
int dyn_last_check;\
const char *dyn_next_reminder;\
int dyn_donate_reminder_time;\
bool dyn_show_donate_reminder;\
#define ZM_CFG_ASSIGN_LIST \
lang_default = (const char *)config.Item( ZM_LANG_DEFAULT );\
opt_use_auth = (bool)config.Item( ZM_OPT_USE_AUTH );\
auth_type = (const char *)config.Item( ZM_AUTH_TYPE );\
auth_relay = (const char *)config.Item( ZM_AUTH_RELAY );\
auth_hash_secret = (const char *)config.Item( ZM_AUTH_HASH_SECRET );\
auth_hash_ips = (bool)config.Item( ZM_AUTH_HASH_IPS );\
auth_hash_logins = (bool)config.Item( ZM_AUTH_HASH_LOGINS );\
dir_events = (const char *)config.Item( ZM_DIR_EVENTS );\
use_deep_storage = (bool)config.Item( ZM_USE_DEEP_STORAGE );\
dir_images = (const char *)config.Item( ZM_DIR_IMAGES );\
dir_sounds = (const char *)config.Item( ZM_DIR_SOUNDS );\
path_zms = (const char *)config.Item( ZM_PATH_ZMS );\
can_stream = (const char *)config.Item( ZM_CAN_STREAM );\
stream_method = (const char *)config.Item( ZM_STREAM_METHOD );\
colour_jpeg_files = (bool)config.Item( ZM_COLOUR_JPEG_FILES );\
add_jpeg_comments = (bool)config.Item( ZM_ADD_JPEG_COMMENTS );\
jpeg_file_quality = (int)config.Item( ZM_JPEG_FILE_QUALITY );\
jpeg_alarm_file_quality = (int)config.Item( ZM_JPEG_ALARM_FILE_QUALITY );\
jpeg_image_quality = (int)config.Item( ZM_JPEG_IMAGE_QUALITY );\
jpeg_stream_quality = (int)config.Item( ZM_JPEG_STREAM_QUALITY );\
mpeg_timed_frames = (bool)config.Item( ZM_MPEG_TIMED_FRAMES );\
mpeg_live_format = (const char *)config.Item( ZM_MPEG_LIVE_FORMAT );\
mpeg_replay_format = (const char *)config.Item( ZM_MPEG_REPLAY_FORMAT );\
rand_stream = (bool)config.Item( ZM_RAND_STREAM );\
opt_cambozola = (bool)config.Item( ZM_OPT_CAMBOZOLA );\
path_cambozola = (const char *)config.Item( ZM_PATH_CAMBOZOLA );\
reload_cambozola = (int)config.Item( ZM_RELOAD_CAMBOZOLA );\
timestamp_on_capture = (bool)config.Item( ZM_TIMESTAMP_ON_CAPTURE );\
local_bgr_invert = (bool)config.Item( ZM_LOCAL_BGR_INVERT );\
y_image_deltas = (bool)config.Item( ZM_Y_IMAGE_DELTAS );\
fast_image_blends = (bool)config.Item( ZM_FAST_IMAGE_BLENDS );\
opt_adaptive_skip = (bool)config.Item( ZM_OPT_ADAPTIVE_SKIP );\
blend_alarmed_images = (bool)config.Item( ZM_BLEND_ALARMED_IMAGES );\
max_suspend_time = (int)config.Item( ZM_MAX_SUSPEND_TIME );\
opt_remote_cameras = (bool)config.Item( ZM_OPT_REMOTE_CAMERAS );\
netcam_regexps = (bool)config.Item( ZM_NETCAM_REGEXPS );\
http_version = (const char *)config.Item( ZM_HTTP_VERSION );\
http_ua = (const char *)config.Item( ZM_HTTP_UA );\
http_timeout = (int)config.Item( ZM_HTTP_TIMEOUT );\
min_rtp_port = (int)config.Item( ZM_MIN_RTP_PORT );\
max_rtp_port = (int)config.Item( ZM_MAX_RTP_PORT );\
opt_ffmpeg = (bool)config.Item( ZM_OPT_FFMPEG );\
path_ffmpeg = (const char *)config.Item( ZM_PATH_FFMPEG );\
ffmpeg_input_options = (const char *)config.Item( ZM_FFMPEG_INPUT_OPTIONS );\
ffmpeg_output_options = (const char *)config.Item( ZM_FFMPEG_OUTPUT_OPTIONS );\
ffmpeg_formats = (const char *)config.Item( ZM_FFMPEG_FORMATS );\
opt_netpbm = (bool)config.Item( ZM_OPT_NETPBM );\
path_netpbm = (const char *)config.Item( ZM_PATH_NETPBM );\
record_event_stats = (bool)config.Item( ZM_RECORD_EVENT_STATS );\
record_diag_images = (bool)config.Item( ZM_RECORD_DIAG_IMAGES );\
extra_debug = (bool)config.Item( ZM_EXTRA_DEBUG );\
extra_debug_target = (const char *)config.Item( ZM_EXTRA_DEBUG_TARGET );\
extra_debug_level = (int)config.Item( ZM_EXTRA_DEBUG_LEVEL );\
extra_debug_log = (const char *)config.Item( ZM_EXTRA_DEBUG_LOG );\
dump_cores = (bool)config.Item( ZM_DUMP_CORES );\
path_map = (const char *)config.Item( ZM_PATH_MAP );\
path_socks = (const char *)config.Item( ZM_PATH_SOCKS );\
path_logs = (const char *)config.Item( ZM_PATH_LOGS );\
path_swap = (const char *)config.Item( ZM_PATH_SWAP );\
web_title_prefix = (const char *)config.Item( ZM_WEB_TITLE_PREFIX );\
web_resize_console = (bool)config.Item( ZM_WEB_RESIZE_CONSOLE );\
web_popup_on_alarm = (bool)config.Item( ZM_WEB_POPUP_ON_ALARM );\
opt_x10 = (bool)config.Item( ZM_OPT_X10 );\
x10_device = (const char *)config.Item( ZM_X10_DEVICE );\
x10_house_code = (const char *)config.Item( ZM_X10_HOUSE_CODE );\
x10_db_reload_interval = (int)config.Item( ZM_X10_DB_RELOAD_INTERVAL );\
web_sound_on_alarm = (bool)config.Item( ZM_WEB_SOUND_ON_ALARM );\
web_alarm_sound = (const char *)config.Item( ZM_WEB_ALARM_SOUND );\
web_compact_montage = (bool)config.Item( ZM_WEB_COMPACT_MONTAGE );\
opt_fast_delete = (bool)config.Item( ZM_OPT_FAST_DELETE );\
strict_video_config = (bool)config.Item( ZM_STRICT_VIDEO_CONFIG );\
signal_check_points = (int)config.Item( ZM_SIGNAL_CHECK_POINTS );\
v4l_multi_buffer = (bool)config.Item( ZM_V4L_MULTI_BUFFER );\
captures_per_frame = (int)config.Item( ZM_CAPTURES_PER_FRAME );\
filter_reload_delay = (int)config.Item( ZM_FILTER_RELOAD_DELAY );\
filter_execute_interval = (int)config.Item( ZM_FILTER_EXECUTE_INTERVAL );\
opt_upload = (bool)config.Item( ZM_OPT_UPLOAD );\
upload_arch_format = (const char *)config.Item( ZM_UPLOAD_ARCH_FORMAT );\
upload_arch_compress = (bool)config.Item( ZM_UPLOAD_ARCH_COMPRESS );\
upload_arch_analyse = (bool)config.Item( ZM_UPLOAD_ARCH_ANALYSE );\
upload_ftp_host = (const char *)config.Item( ZM_UPLOAD_FTP_HOST );\
upload_ftp_user = (const char *)config.Item( ZM_UPLOAD_FTP_USER );\
upload_ftp_pass = (const char *)config.Item( ZM_UPLOAD_FTP_PASS );\
upload_ftp_loc_dir = (const char *)config.Item( ZM_UPLOAD_FTP_LOC_DIR );\
upload_ftp_rem_dir = (const char *)config.Item( ZM_UPLOAD_FTP_REM_DIR );\
upload_ftp_timeout = (int)config.Item( ZM_UPLOAD_FTP_TIMEOUT );\
upload_ftp_passive = (bool)config.Item( ZM_UPLOAD_FTP_PASSIVE );\
upload_ftp_debug = (bool)config.Item( ZM_UPLOAD_FTP_DEBUG );\
opt_email = (bool)config.Item( ZM_OPT_EMAIL );\
email_address = (const char *)config.Item( ZM_EMAIL_ADDRESS );\
email_text = (const char *)config.Item( ZM_EMAIL_TEXT );\
email_subject = (const char *)config.Item( ZM_EMAIL_SUBJECT );\
email_body = (const char *)config.Item( ZM_EMAIL_BODY );\
opt_message = (bool)config.Item( ZM_OPT_MESSAGE );\
message_address = (const char *)config.Item( ZM_MESSAGE_ADDRESS );\
message_text = (const char *)config.Item( ZM_MESSAGE_TEXT );\
message_subject = (const char *)config.Item( ZM_MESSAGE_SUBJECT );\
message_body = (const char *)config.Item( ZM_MESSAGE_BODY );\
new_mail_modules = (bool)config.Item( ZM_NEW_MAIL_MODULES );\
email_host = (const char *)config.Item( ZM_EMAIL_HOST );\
from_email = (const char *)config.Item( ZM_FROM_EMAIL );\
url = (const char *)config.Item( ZM_URL );\
max_restart_delay = (int)config.Item( ZM_MAX_RESTART_DELAY );\
watch_check_interval = (int)config.Item( ZM_WATCH_CHECK_INTERVAL );\
watch_max_delay = (double) config.Item( ZM_WATCH_MAX_DELAY );\
run_audit = (bool)config.Item( ZM_RUN_AUDIT );\
audit_check_interval = (int)config.Item( ZM_AUDIT_CHECK_INTERVAL );\
forced_alarm_score = (int)config.Item( ZM_FORCED_ALARM_SCORE );\
bulk_frame_interval = (int)config.Item( ZM_BULK_FRAME_INTERVAL );\
event_close_mode = (const char *)config.Item( ZM_EVENT_CLOSE_MODE );\
force_close_events = (bool)config.Item( ZM_FORCE_CLOSE_EVENTS );\
create_analysis_images = (bool)config.Item( ZM_CREATE_ANALYSIS_IMAGES );\
weighted_alarm_centres = (bool)config.Item( ZM_WEIGHTED_ALARM_CENTRES );\
event_image_digits = (int)config.Item( ZM_EVENT_IMAGE_DIGITS );\
default_aspect_ratio = (const char *)config.Item( ZM_DEFAULT_ASPECT_RATIO );\
user_self_edit = (bool)config.Item( ZM_USER_SELF_EDIT );\
opt_frame_server = (bool)config.Item( ZM_OPT_FRAME_SERVER );\
frame_socket_size = (int)config.Item( ZM_FRAME_SOCKET_SIZE );\
opt_control = (bool)config.Item( ZM_OPT_CONTROL );\
opt_triggers = (bool)config.Item( ZM_OPT_TRIGGERS );\
check_for_updates = (bool)config.Item( ZM_CHECK_FOR_UPDATES );\
update_check_proxy = (const char *)config.Item( ZM_UPDATE_CHECK_PROXY );\
shm_key = (int)config.Item( ZM_SHM_KEY );\
web_refresh_method = (const char *)config.Item( ZM_WEB_REFRESH_METHOD );\
web_event_sort_field = (const char *)config.Item( ZM_WEB_EVENT_SORT_FIELD );\
web_event_sort_order = (const char *)config.Item( ZM_WEB_EVENT_SORT_ORDER );\
web_events_per_page = (int)config.Item( ZM_WEB_EVENTS_PER_PAGE );\
web_list_thumbs = (bool)config.Item( ZM_WEB_LIST_THUMBS );\
web_list_thumb_width = (int)config.Item( ZM_WEB_LIST_THUMB_WIDTH );\
web_list_thumb_height = (int)config.Item( ZM_WEB_LIST_THUMB_HEIGHT );\
web_use_object_tags = (bool)config.Item( ZM_WEB_USE_OBJECT_TAGS );\
web_h_refresh_main = (int)config.Item( ZM_WEB_H_REFRESH_MAIN );\
web_h_refresh_cycle = (int)config.Item( ZM_WEB_H_REFRESH_CYCLE );\
web_h_refresh_image = (int)config.Item( ZM_WEB_H_REFRESH_IMAGE );\
web_h_refresh_status = (int)config.Item( ZM_WEB_H_REFRESH_STATUS );\
web_h_refresh_events = (int)config.Item( ZM_WEB_H_REFRESH_EVENTS );\
web_h_default_scale = (int)config.Item( ZM_WEB_H_DEFAULT_SCALE );\
web_h_default_rate = (int)config.Item( ZM_WEB_H_DEFAULT_RATE );\
web_h_video_bitrate = (int)config.Item( ZM_WEB_H_VIDEO_BITRATE );\
web_h_video_maxfps = (int)config.Item( ZM_WEB_H_VIDEO_MAXFPS );\
web_h_scale_thumbs = (bool)config.Item( ZM_WEB_H_SCALE_THUMBS );\
web_h_use_streams = (bool)config.Item( ZM_WEB_H_USE_STREAMS );\
web_h_events_view = (const char *)config.Item( ZM_WEB_H_EVENTS_VIEW );\
web_h_show_progress = (bool)config.Item( ZM_WEB_H_SHOW_PROGRESS );\
web_h_ajax_timeout = (int)config.Item( ZM_WEB_H_AJAX_TIMEOUT );\
web_m_refresh_main = (int)config.Item( ZM_WEB_M_REFRESH_MAIN );\
web_m_refresh_cycle = (int)config.Item( ZM_WEB_M_REFRESH_CYCLE );\
web_m_refresh_image = (int)config.Item( ZM_WEB_M_REFRESH_IMAGE );\
web_m_refresh_status = (int)config.Item( ZM_WEB_M_REFRESH_STATUS );\
web_m_refresh_events = (int)config.Item( ZM_WEB_M_REFRESH_EVENTS );\
web_m_default_scale = (int)config.Item( ZM_WEB_M_DEFAULT_SCALE );\
web_m_default_rate = (int)config.Item( ZM_WEB_M_DEFAULT_RATE );\
web_m_video_bitrate = (int)config.Item( ZM_WEB_M_VIDEO_BITRATE );\
web_m_video_maxfps = (int)config.Item( ZM_WEB_M_VIDEO_MAXFPS );\
web_m_scale_thumbs = (bool)config.Item( ZM_WEB_M_SCALE_THUMBS );\
web_m_use_streams = (bool)config.Item( ZM_WEB_M_USE_STREAMS );\
web_m_events_view = (const char *)config.Item( ZM_WEB_M_EVENTS_VIEW );\
web_m_show_progress = (bool)config.Item( ZM_WEB_M_SHOW_PROGRESS );\
web_m_ajax_timeout = (int)config.Item( ZM_WEB_M_AJAX_TIMEOUT );\
web_l_refresh_main = (int)config.Item( ZM_WEB_L_REFRESH_MAIN );\
web_l_refresh_cycle = (int)config.Item( ZM_WEB_L_REFRESH_CYCLE );\
web_l_refresh_image = (int)config.Item( ZM_WEB_L_REFRESH_IMAGE );\
web_l_refresh_status = (int)config.Item( ZM_WEB_L_REFRESH_STATUS );\
web_l_refresh_events = (int)config.Item( ZM_WEB_L_REFRESH_EVENTS );\
web_l_default_scale = (int)config.Item( ZM_WEB_L_DEFAULT_SCALE );\
web_l_default_rate = (int)config.Item( ZM_WEB_L_DEFAULT_RATE );\
web_l_video_bitrate = (int)config.Item( ZM_WEB_L_VIDEO_BITRATE );\
web_l_video_maxfps = (int)config.Item( ZM_WEB_L_VIDEO_MAXFPS );\
web_l_scale_thumbs = (bool)config.Item( ZM_WEB_L_SCALE_THUMBS );\
web_l_use_streams = (bool)config.Item( ZM_WEB_L_USE_STREAMS );\
web_l_events_view = (const char *)config.Item( ZM_WEB_L_EVENTS_VIEW );\
web_l_show_progress = (bool)config.Item( ZM_WEB_L_SHOW_PROGRESS );\
web_l_ajax_timeout = (int)config.Item( ZM_WEB_L_AJAX_TIMEOUT );\
web_p_default_rate = (int)config.Item( ZM_WEB_P_DEFAULT_RATE );\
web_p_scale_thumbs = (bool)config.Item( ZM_WEB_P_SCALE_THUMBS );\
web_p_ajax_timeout = (int)config.Item( ZM_WEB_P_AJAX_TIMEOUT );\
dyn_last_version = (const char *)config.Item( ZM_DYN_LAST_VERSION );\
dyn_curr_version = (const char *)config.Item( ZM_DYN_CURR_VERSION );\
dyn_db_version = (const char *)config.Item( ZM_DYN_DB_VERSION );\
dyn_last_check = (int)config.Item( ZM_DYN_LAST_CHECK );\
dyn_next_reminder = (const char *)config.Item( ZM_DYN_NEXT_REMINDER );\
dyn_donate_reminder_time = (int)config.Item( ZM_DYN_DONATE_REMINDER_TIME );\
dyn_show_donate_reminder = (bool)config.Item( ZM_DYN_SHOW_DONATE_REMINDER );\