Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add access entry defaults and make basic interface level more basic
  • Loading branch information
Glenn-1990 authored and perexg committed Oct 20, 2016
1 parent df6b66c commit cf683f5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/access.c
Expand Up @@ -1394,6 +1394,7 @@ const idclass_t access_entry_class = {
.id = "enabled",
.name = N_("Enabled"),
.desc = N_("Enable/Disable the entry."),
.def.i = 1,
.off = offsetof(access_entry_t, ae_enabled),
},
{
Expand Down Expand Up @@ -1460,7 +1461,7 @@ const idclass_t access_entry_class = {
.doc = prop_doc_themes,
.list = theme_get_ui_list,
.off = offsetof(access_entry_t, ae_theme),
.opts = PO_DOC_NLIST,
.opts = PO_DOC_NLIST | PO_ADVANCED,
},
{
.type = PT_BOOL,
Expand Down Expand Up @@ -1536,8 +1537,9 @@ const idclass_t access_entry_class = {
.id = "failed_dvr",
.name = N_("Failed DVR"),
.desc = N_("Allow/disallow access to all failed DVR entries."),
.def.i = 1,
.off = offsetof(access_entry_t, ae_failed_dvr),
.opts = PO_ADVANCED | PO_HIDDEN,
.opts = PO_EXPERT | PO_HIDDEN,
},
{
.type = PT_BOOL,
Expand All @@ -1547,7 +1549,7 @@ const idclass_t access_entry_class = {
"the HTSP client like signal strength, input source "
"etc."),
.off = offsetof(access_entry_t, ae_htsp_anonymize),
.opts = PO_ADVANCED | PO_HIDDEN,
.opts = PO_EXPERT | PO_HIDDEN,
},
{
.type = PT_STR,
Expand Down Expand Up @@ -1603,6 +1605,7 @@ const idclass_t access_entry_class = {
.name = N_("Minimal channel number"),
.desc = N_("Lowest channel number the user can access."),
.off = offsetof(access_entry_t, ae_chmin),
.opts = PO_ADVANCED,
},
{
.type = PT_S64,
Expand All @@ -1611,6 +1614,7 @@ const idclass_t access_entry_class = {
.name = N_("Maximal channel number"),
.desc = N_("Highest channel number the user can access."),
.off = offsetof(access_entry_t, ae_chmax),
.opts = PO_ADVANCED,
},
{
.type = PT_BOOL,
Expand Down Expand Up @@ -1825,6 +1829,7 @@ const idclass_t passwd_entry_class = {
.id = "enabled",
.name = N_("Enabled"),
.desc = N_("Enable/disable the entry."),
.def.i = 1,
.off = offsetof(passwd_entry_t, pw_enabled),
},
{
Expand Down

0 comments on commit cf683f5

Please sign in to comment.