Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
timeshift: fix compilation (latest idnode changes)
  • Loading branch information
perexg committed Feb 11, 2016
1 parent 553ef4f commit 2e4e952
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions src/timeshift.c
Expand Up @@ -102,18 +102,24 @@ void timeshift_term ( void )
}

/*
* Save settings
* Changed settings
*/
static void timeshift_conf_class_save ( idnode_t *self )
static void
timeshift_conf_class_changed ( idnode_t *self )
{
htsmsg_t *m;

timeshift_fixup();
}

m = htsmsg_create_map();
/*
* Save settings
*/
static htsmsg_t *
timeshift_conf_class_save ( idnode_t *self, char *filename, size_t fsize )
{
htsmsg_t *m = htsmsg_create_map();
idnode_save(&timeshift_conf.idnode, m);
hts_settings_save(m, "timeshift/config");
htsmsg_destroy(m);
snprintf(filename, fsize, "timeshift/config");
return m;
}

/*
Expand Down Expand Up @@ -164,6 +170,7 @@ const idclass_t timeshift_conf_class = {
.ic_caption = N_("Timeshift"),
.ic_event = "timeshift",
.ic_perm_def = ACCESS_ADMIN,
.ic_changed = timeshift_conf_class_changed,
.ic_save = timeshift_conf_class_save,
.ic_properties = (const property_t[]){
{
Expand Down

0 comments on commit 2e4e952

Please sign in to comment.