return NULL;
}
+const char **
+idclass_get_doc (const idclass_t *idc)
+{
+ while (idc) {
+ if (idc->ic_doc)
+ return idc->ic_doc;
+ idc = idc->ic_super;
+ }
+ return NULL;
+}
+
static htsmsg_t *
idclass_get_property_groups (const idclass_t *idc, const char *lang)
{
const idclass_t *idclass_find ( const char *name );
idclass_t const **idclass_find_all(void);
idclass_t const **idclass_find_children(const char *name);
+const char **idclass_get_doc(const idclass_t *idc);
const char *idclass_get_caption ( const idclass_t *idc, const char *lang );
htsmsg_t *idclass_serialize0 (const idclass_t *idc, htsmsg_t *list, int optmask, const char *lang);
htsmsg_t *idnode_serialize0 (idnode_t *self, htsmsg_t *list, int optmask, const char *lang);
pthread_mutex_unlock(&global_lock);
return HTTP_STATUS_NOT_FOUND;
}
- doc = ic->ic_doc;
+ doc = idclass_get_doc(ic);
m = idclass_serializedoc(ic, lang);
pthread_mutex_unlock(&global_lock);
s = htsmsg_get_str(m, "caption");