config: update to include migration of the dvb networks folder

This commit is contained in:
Adam Sutton 2014-04-04 15:31:49 +01:00
parent bb678d9359
commit 3748173605

View file

@ -473,12 +473,26 @@ config_migrate_v2 ( void )
}
}
/*
* v2 -> v3 : changes to DVB layout
*/
static void
config_migrate_v3 ( void )
{
char src[1024], dst[1024];
hts_settings_buildpath(src, sizeof(src), "input/linuxdvb/networks");
hts_settings_buildpath(dst, sizeof(dst), "input/dvb/networks");
rename(src, dst);
}
/*
* Migration table
*/
static const config_migrate_t config_migrate_table[] = {
config_migrate_v1,
config_migrate_v2
config_migrate_v2,
config_migrate_v3
};
/*