Mercurial > audlegacy-plugins
comparison src/lirc/lirc_cfg.c @ 2807:f06ec6936b7e
migrated some plugins to auto_CFGID
author | Andrew O. Shadoura <bugzilla@tut.by> |
---|---|
date | Sat, 12 Jul 2008 04:00:23 +0300 |
parents | 5df83337516f |
children | 3134a0987162 |
comparison
equal
deleted
inserted
replaced
2806:9e06acde819e | 2807:f06ec6936b7e |
---|---|
15 | 15 |
16 void load_cfg(void) | 16 void load_cfg(void) |
17 { | 17 { |
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_CFGID, "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_CFGID, "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) | 24 if (!reconnect_timeout) |
25 { | 25 { |
26 reconnect_timeout = 5; | 26 reconnect_timeout = 5; |
31 | 31 |
32 void save_cfg(void) | 32 void save_cfg(void) |
33 { | 33 { |
34 ConfigDb *db; | 34 ConfigDb *db; |
35 db = aud_cfg_db_open(); | 35 db = aud_cfg_db_open(); |
36 aud_cfg_db_set_int(db, "lirc", "enable_reconnect", b_enable_reconnect); | 36 aud_cfg_db_set_int(db, LIRC_CFGID, "enable_reconnect", b_enable_reconnect); |
37 aud_cfg_db_set_int(db, "lirc", "reconnect_timeout", reconnect_timeout); | 37 aud_cfg_db_set_int(db, LIRC_CFGID, "reconnect_timeout", reconnect_timeout); |
38 aud_cfg_db_close(db); | 38 aud_cfg_db_close(db); |
39 } | 39 } |
40 | 40 |
41 void configure(void) | 41 void configure(void) |
42 { | 42 { |