return RB_FIND(&channels, &skel, ch_link, ch_id_cmp);
}
+channel_t *
+channel_find_by_number ( int no )
+{
+ channel_t *ch;
+ CHANNEL_FOREACH(ch)
+ if(channel_get_number(ch) == no)
+ break;
+ return ch;
+}
+
/* **************************************************************************
* Property updating
* *************************************************************************/
channel_t *channel_find_by_id(uint32_t id);
+channel_t *channel_find_by_number(int no);
+
#define channel_find channel_find_by_uuid
int channel_set_tags_by_list ( channel_t *ch, htsmsg_t *tags );
if(nc == 2 && !strcmp(components[0], "channelid"))
ch = channel_find_by_id(atoi(components[1]));
+ else if(nc == 2 && !strcmp(components[0], "channelnumber"))
+ ch = channel_find_by_number(atoi(components[1]));
else if(nc == 2 && !strcmp(components[0], "channel"))
ch = channel_find(components[1]);
else if(nc == 2 && !strcmp(components[0], "dvrid"))
if(!strcmp(components[0], "channelid")) {
ch = channel_find_by_id(atoi(components[1]));
+ } else if(!strcmp(components[0], "channelnumber")) {
+ ch = channel_find_by_number(atoi(components[1]));
} else if(!strcmp(components[0], "channel")) {
ch = channel_find(components[1]);
} else if(!strcmp(components[0], "service")) {