static int api_config_capabilities(access_t *perm, void *opaque, const char *op, htsmsg_t *args, htsmsg_t **resp) { *resp = tvheadend_capabilities_list(0); return 0; }
static int api_serverinfo ( void *opaque, const char *op, htsmsg_t *args, htsmsg_t **resp ) { *resp = htsmsg_create_map(); htsmsg_add_str(*resp, "sw_version", tvheadend_version); htsmsg_add_u32(*resp, "api_version", TVH_API_VERSION); htsmsg_add_str(*resp, "name", "Tvheadend"); if (tvheadend_webroot) htsmsg_add_str(*resp, "webroot", tvheadend_webroot); htsmsg_add_msg(*resp, "capabilities", tvheadend_capabilities_list(1)); return 0; }