static void tvhtime_save ( void ) { htsmsg_t *m = htsmsg_create_map(); htsmsg_add_u32(m, "update_enabled", tvhtime_update_enabled); htsmsg_add_u32(m, "ntp_enabled", tvhtime_ntp_enabled); htsmsg_add_u32(m, "tolerance", tvhtime_tolerance); hts_settings_save(m, "tvhtime/config"); }
/* * Save settings */ static void timeshift_conf_class_save ( idnode_t *self ) { htsmsg_t *m; timeshift_fixup(); m = htsmsg_create_map(); idnode_save(×hift_conf.idnode, m); hts_settings_save(m, "timeshift/config"); htsmsg_destroy(m); }
/* * Save settings */ void timeshift_save ( void ) { htsmsg_t *m; m = htsmsg_create_map(); htsmsg_add_u32(m, "enabled", timeshift_enabled); htsmsg_add_u32(m, "ondemand", timeshift_ondemand); if (timeshift_path) htsmsg_add_str(m, "path", timeshift_path); htsmsg_add_u32(m, "unlimited_period", timeshift_unlimited_period); htsmsg_add_u32(m, "max_period", timeshift_max_period); htsmsg_add_u32(m, "unlimited_size", timeshift_unlimited_size); htsmsg_add_u32(m, "max_size", timeshift_max_size / 1048576); hts_settings_save(m, "timeshift/config"); }
static void iptv_service_config_save ( service_t *s ) { mpegts_mux_t *mm = ((mpegts_service_t *)s)->s_dvb_mux; htsmsg_t *c = htsmsg_create_map(); char ubuf0[UUID_HEX_SIZE]; char ubuf1[UUID_HEX_SIZE]; char ubuf2[UUID_HEX_SIZE]; service_save(s, c); hts_settings_save(c, "input/iptv/networks/%s/muxes/%s/services/%s", idnode_uuid_as_str(&mm->mm_network->mn_id, ubuf0), idnode_uuid_as_str(&mm->mm_id, ubuf1), idnode_uuid_as_str(&s->s_id, ubuf2)); htsmsg_destroy(c); }
void satip_device_save( satip_device_t *sd ) { satip_frontend_t *lfe; htsmsg_t *m, *l; m = htsmsg_create_map(); idnode_save(&sd->th_id, m); l = htsmsg_create_map(); TAILQ_FOREACH(lfe, &sd->sd_frontends, sf_link) satip_frontend_save(lfe, l); htsmsg_add_msg(m, "frontends", l); hts_settings_save(m, "input/satip/adapters/%s", idnode_uuid_as_str(&sd->th_id)); htsmsg_destroy(m); }
void tvhdhomerun_device_save( tvhdhomerun_device_t *hd ) { tvhdhomerun_frontend_t *lfe; htsmsg_t *m, *l; m = htsmsg_create_map(); idnode_save(&hd->th_id, m); l = htsmsg_create_map(); TAILQ_FOREACH(lfe, &hd->hd_frontends, hf_link) tvhdhomerun_frontend_save(lfe, l); htsmsg_add_msg(m, "frontends", l); htsmsg_add_str(m, "fe_override", hd->hd_override_type); hts_settings_save(m, "input/tvhdhomerun/adapters/%s", idnode_uuid_as_str(&hd->th_id)); htsmsg_destroy(m); }