linuxdvb: minor UI cosmetics, not sure its the best way to solve the problem.
This commit is contained in:
parent
30f073c171
commit
e689ed061f
3 changed files with 30 additions and 0 deletions
|
@ -44,6 +44,15 @@ typedef struct linuxdvb_lnb_conf
|
|||
int lnb_switch;
|
||||
} linuxdvb_lnb_conf_t;
|
||||
|
||||
static const char *
|
||||
linuxdvb_lnb_class_get_title ( idnode_t *o )
|
||||
{
|
||||
static char buf[256];
|
||||
linuxdvb_diseqc_t *ld = (linuxdvb_diseqc_t*)o;
|
||||
snprintf(buf, sizeof(buf), "LNB: %s", ld->ld_type);
|
||||
return buf;
|
||||
}
|
||||
|
||||
extern const idclass_t linuxdvb_diseqc_class;
|
||||
|
||||
const idclass_t linuxdvb_lnb_class =
|
||||
|
@ -51,6 +60,7 @@ const idclass_t linuxdvb_lnb_class =
|
|||
.ic_super = &linuxdvb_diseqc_class,
|
||||
.ic_class = "linuxdvb_lnb_basic",
|
||||
.ic_caption = "LNB",
|
||||
.ic_get_title = linuxdvb_lnb_class_get_title,
|
||||
};
|
||||
|
||||
/* **************************************************************************
|
||||
|
|
|
@ -50,12 +50,22 @@ typedef struct linuxdvb_rotor
|
|||
|
||||
} linuxdvb_rotor_t;
|
||||
|
||||
static const char *
|
||||
linuxdvb_rotor_class_get_title ( idnode_t *o )
|
||||
{
|
||||
static char buf[256];
|
||||
linuxdvb_diseqc_t *ld = (linuxdvb_diseqc_t*)o;
|
||||
snprintf(buf, sizeof(buf), "Rotor: %s", ld->ld_type);
|
||||
return buf;
|
||||
}
|
||||
|
||||
extern const idclass_t linuxdvb_diseqc_class;
|
||||
|
||||
const idclass_t linuxdvb_rotor_class = {
|
||||
.ic_super = &linuxdvb_diseqc_class,
|
||||
.ic_class = "linuxdvb_rotor",
|
||||
.ic_caption = "DiseqC Rotor",
|
||||
.ic_get_title = linuxdvb_rotor_class_get_title,
|
||||
};
|
||||
|
||||
const idclass_t linuxdvb_rotor_gotox_class =
|
||||
|
|
|
@ -65,6 +65,15 @@ linuxdvb_switch_class_toneburst_list ( void *o )
|
|||
return m;
|
||||
}
|
||||
|
||||
static const char *
|
||||
linuxdvb_switch_class_get_title ( idnode_t *o )
|
||||
{
|
||||
static char buf[256];
|
||||
linuxdvb_diseqc_t *ld = (linuxdvb_diseqc_t*)o;
|
||||
snprintf(buf, sizeof(buf), "Switch: %s", ld->ld_type);
|
||||
return buf;
|
||||
}
|
||||
|
||||
extern const idclass_t linuxdvb_diseqc_class;
|
||||
|
||||
const idclass_t linuxdvb_switch_class =
|
||||
|
@ -72,6 +81,7 @@ const idclass_t linuxdvb_switch_class =
|
|||
.ic_super = &linuxdvb_diseqc_class,
|
||||
.ic_class = "linuxdvb_switch",
|
||||
.ic_caption = "DiseqC switch",
|
||||
.ic_get_title = linuxdvb_switch_class_get_title,
|
||||
.ic_properties = (const property_t[]) {
|
||||
{
|
||||
.type = PT_INT,
|
||||
|
|
Loading…
Add table
Reference in a new issue