}
/**
- * Cehck if user can access the channel
+ * Check if user can access the channel
*/
static inline int
htsp_user_access_channel(htsp_connection_t *htsp, channel_t *ch)
* @return the htsmsg_t config to be added or updated with idnode
*/
static htsmsg_t *
-serierec_convert(htsp_connection_t *htsp, htsmsg_t *in, channel_t *ch, int autorec, int add)
+htsp_serierec_convert(htsp_connection_t *htsp, htsmsg_t *in, channel_t *ch, int autorec, int add)
{
htsmsg_t *conf,*days;
uint32_t u32;
return htsp_error(htsp, N_("User does not have access"));
/* Create autorec config from htsp and add */
- dae = dvr_autorec_create_htsp(serierec_convert(htsp, in, ch, 1, 1));
+ dae = dvr_autorec_create_htsp(htsp_serierec_convert(htsp, in, ch, 1, 1));
/* create response */
out = htsmsg_create_map();
}
/* Update autorec config from htsp and save */
- dvr_autorec_update_htsp(dae, serierec_convert(htsp, in, ch, 1, 0));
+ dvr_autorec_update_htsp(dae, htsp_serierec_convert(htsp, in, ch, 1, 0));
return htsp_success();
}
return htsp_error(htsp, N_("User does not have access"));
/* Create timerec config from htsp and add */
- dte = dvr_timerec_create_htsp(serierec_convert(htsp, in, ch, 0, 1));
+ dte = dvr_timerec_create_htsp(htsp_serierec_convert(htsp, in, ch, 0, 1));
/* create response */
out = htsmsg_create_map();
}
/* Update timerec config from htsp and save */
- dvr_timerec_update_htsp(dte, serierec_convert(htsp, in, ch, 0, 0));
+ dvr_timerec_update_htsp(dte, htsp_serierec_convert(htsp, in, ch, 0, 0));
return htsp_success();
}