Mercurial > audlegacy-plugins
comparison src/lirc/lirc_cfg.c @ 2772:fea021087241
enable lirc reconnect by default
author | Andrew O. Shadoura <bugzilla@tut.by> |
---|---|
date | Mon, 09 Jun 2008 21:40:22 +0300 |
parents | 738914331374 |
children | 5df83337516f |
comparison
equal
deleted
inserted
replaced
2771:949d790e8e33 | 2772:fea021087241 |
---|---|
18 ConfigDb *db; | 18 ConfigDb *db; |
19 db = aud_cfg_db_open(); | 19 db = aud_cfg_db_open(); |
20 aud_cfg_db_get_int(db, "lirc", "enable_reconnect", &b_enable_reconnect); | 20 aud_cfg_db_get_int(db, "lirc", "enable_reconnect", &b_enable_reconnect); |
21 aud_cfg_db_get_int(db, "lirc", "reconnect_timeout", &reconnect_timeout); | 21 aud_cfg_db_get_int(db, "lirc", "reconnect_timeout", &reconnect_timeout); |
22 if (!aud_cfg_db_get_string(db, "aosd", "text_fonts_name_0", &aosd_font)) | 22 if (!aud_cfg_db_get_string(db, "aosd", "text_fonts_name_0", &aosd_font)) |
23 aosd_font = g_strdup("Sans 26"); | 23 aosd_font = g_strdup("Sans 26"); |
24 if (!reconnect_timeout) reconnect_timeout = 5; | 24 if (!reconnect_timeout) |
25 { | |
26 reconnect_timeout = 5; | |
27 b_enable_reconnect = 1; | |
28 } | |
25 aud_cfg_db_close(db); | 29 aud_cfg_db_close(db); |
26 } | 30 } |
27 | 31 |
28 void save_cfg(void) | 32 void save_cfg(void) |
29 { | 33 { |