Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mdhelp: convert configuration / general to mdhelp
  • Loading branch information
perexg committed Apr 6, 2016
1 parent 2438985 commit 596f711
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 4 deletions.
6 changes: 6 additions & 0 deletions docs/class/config.md
@@ -0,0 +1,6 @@
##Configuration - General

This tabs allow configuration of several general parameters that affect
the core Tvheadend functionality.

!['General' Tab Screenshot 1](docresources/configgeneraltab.png)
6 changes: 6 additions & 0 deletions docs/class/imagecache.md
@@ -0,0 +1,6 @@
##Configuration - Image Cache

This will cache any channel icons or other images (such as EPG metadata)
to be served from the local webserver. This can be useful for
multi-client systems and, generally, to reduce hits on upstream
providers.
15 changes: 15 additions & 0 deletions docs/class/satip_server.md
@@ -0,0 +1,15 @@
##Configuration - SAT>IP Server

SAT>IP Server is something like DVB network tuner. Tvheadend can
forward mpegts input streams including on-the-fly descramling to SAT\>IP
clients.

Only networks with the “SAT>IP Source” field set are exported through
the SAT>IP protocol. This field is matched through the “src” parameter
asked from the SAT>IP client. Usually (and by default) this value is 1.
For satellite tuners, this value determines the satellite source (dish).
By specification position 1 = DiseqC AA, 2 = DiseqC AB, 3 = DiseqC BA, 4
= DiseqC BB, but any numbers may be used - depends on the SAT\>IP
client. Note that if you use a similar number for multiple networks, the
first matched network containing the mux with requested parameters will
win (also for unknown mux).
1 change: 0 additions & 1 deletion src/access.c
Expand Up @@ -2051,7 +2051,6 @@ ipblock_entry_class_prefix_get(void *o)

extern const char *tvh_doc_ipblocking_class[];


const idclass_t ipblock_entry_class = {
.ic_class = "ipblocking",
.ic_caption = N_("IP blocking"),
Expand Down
3 changes: 3 additions & 0 deletions src/config.c
Expand Up @@ -1965,12 +1965,15 @@ config_muxconfpath_notify ( void *o, const char *lang )
#endif
}

extern const char *tvh_doc_config_class[];

const idclass_t config_class = {
.ic_snode = &config.idnode,
.ic_class = "config",
.ic_caption = N_("Configuration"),
.ic_event = "config",
.ic_perm_def = ACCESS_ADMIN,
.ic_doc = tvh_doc_config_class,
.ic_save = config_class_save,
.ic_groups = (const property_group_t[]) {
{
Expand Down
3 changes: 3 additions & 0 deletions src/imagecache.c
Expand Up @@ -71,12 +71,15 @@ struct imagecache_config imagecache_conf = {

static htsmsg_t *imagecache_save(idnode_t *self, char *filename, size_t fsize);

extern const char *tvh_doc_imagecache_class[];

const idclass_t imagecache_class = {
.ic_snode = (idnode_t *)&imagecache_conf,
.ic_class = "imagecache",
.ic_caption = N_("Image cache"),
.ic_event = "imagecache",
.ic_perm_def = ACCESS_ADMIN,
.ic_doc = tvh_doc_imagecache_class,
.ic_save = imagecache_save,
.ic_properties = (const property_t[]){
{
Expand Down
3 changes: 3 additions & 0 deletions src/satip/server.c
Expand Up @@ -565,12 +565,15 @@ static htsmsg_t *satip_server_class_muxcfg_list ( void *o, const char *lang )
return strtab2htsmsg(tab, 1, lang);
}

extern const char *tvh_doc_satip_server_class[];

const idclass_t satip_server_class = {
.ic_snode = (idnode_t *)&satip_server_conf,
.ic_class = "satip_server",
.ic_caption = N_("SAT>IP server"),
.ic_event = "satip_server",
.ic_perm_def = ACCESS_ADMIN,
.ic_doc = tvh_doc_satip_server_class,
.ic_changed = satip_server_class_changed,
.ic_groups = (const property_group_t[]) {
{
Expand Down
6 changes: 3 additions & 3 deletions src/webui/static/app/config.js
Expand Up @@ -57,7 +57,7 @@ tvheadend.baseconf = function(panel, index) {
window.location.reload();
},
help: function() {
new tvheadend.help(_('General Configuration'), 'config_general.html');
new tvheadend.mdhelp('class/config');
}
});

Expand Down Expand Up @@ -116,7 +116,7 @@ tvheadend.imgcacheconf = function(panel, index) {
labelWidth: 200,
tbar: [cleanButton, triggerButton],
help: function() {
new tvheadend.help(_('General Configuration'), 'config_general.html');
new tvheadend.mdhelp('class/imagecache');
}
});

Expand Down Expand Up @@ -158,7 +158,7 @@ tvheadend.satipsrvconf = function(panel, index) {
labelWidth: 250,
tbar: [discoverButton],
help: function() {
new tvheadend.help(_('SAT>IP Server Configuration'), 'config_satips.html');
new tvheadend.mdhelp('class/satip_server');
}
});
};

0 comments on commit 596f711

Please sign in to comment.