epggrab_channel_rem(ch);
epg_channel_unlink(ch);
+ /* HTSP */
+ htsp_channel_delete(ch);
+
/* Settings */
- hts_settings_remove("channel/%s", idnode_uuid_as_str(&ch->ch_id));
+ if (delconf)
+ hts_settings_remove("channel/%s", idnode_uuid_as_str(&ch->ch_id));
/* Free memory */
RB_REMOVE(&channels, ch, ch_link);
char *regexp_escape ( const char *str );
-#ifdef PLATFORM_LINUX
+ #define SKEL_DECLARE(name, type) type *name;
+ #define SKEL_ALLOC(name) do { if (!name) name = calloc(1, sizeof(*name)); } while (0)
+ #define SKEL_USED(name) do { name = NULL; } while (0)
+ #define SKEL_FREE(name) do { free(name); name = NULL; } while (0)
+
/* glibc wrapper */
-#if !__GLIBC_PREREQ(2,8)
+#if ! ENABLE_QSORT_R
void
qsort_r(void *base, size_t nmemb, size_t size,
int (*cmp)(const void *, const void *, void *), void *aux);