]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Move HDHomeRun config fields into their own group in the UI
authorKin-Wai Koo <glug71@gmail.com>
Tue, 22 Jan 2019 06:19:29 +0000 (14:19 +0800)
committerJaroslav Kysela <perex@perex.cz>
Mon, 4 Feb 2019 10:07:17 +0000 (11:07 +0100)
src/config.c

index fdd8113ac92b43235e592a339c0c76a0ccd0df87..479e56a71e1e85b21aca3f92b10c919055945975 100644 (file)
@@ -2106,9 +2106,13 @@ const idclass_t config_class = {
          .number = 5,
       },
       {
-         .name   = N_("Miscellaneous Settings"),
+         .name   = N_("HDHomeRun"),
          .number = 6,
       },
+      {
+         .name   = N_("Miscellaneous Settings"),
+         .number = 7,
+      },
       {}
   },
   .ic_properties = (const property_t[]){
@@ -2140,49 +2144,6 @@ const idclass_t config_class = {
       .opts   = PO_RDONLY | PO_HIDDEN | PO_EXPERT,
       .group  = 1
     },
-    {
-      .type   = PT_STR,
-      .id     = "hdhomerun_ip",
-      .name   = N_("HDHomerun IP Address"),
-      .desc   = N_("IP address of the HDHomerun device. This is needed if you "
-                   "plan to run TVheadend in a container and you want to stream "
-                   "from an HDHomerun without enabling host networking for "
-                   "the container."),
-      .off    = offsetof(config_t, hdhomerun_ip),
-      .opts   = PO_HIDDEN | PO_EXPERT,
-      .group  = 1
-    },
-    {
-      .type   = PT_STR,
-      .id     = "local_ip",
-      .name   = N_("Local IP Address"),
-      .desc   = N_("IP address of the HDHomerun device. This is needed if you "
-                   "plan to run TVheadend in a container and you want to stream "
-                   "from an HDHomerun without enabling host networking for "
-                   "the container."),
-      .off    = offsetof(config_t, local_ip),
-      .opts   = PO_HIDDEN | PO_EXPERT,
-      .group  = 1
-    },
-    {
-      .type   = PT_INT,
-      .id     = "local_port",
-      .name   = N_("Local Socket Port Number"),
-      .desc   = N_("Starting port number of the UDP listeners. The listeners "
-                   "listen for traffic from the HDHomerun tuners. This is "
-                   "needed if you plan to run TVheadend in a container and "
-                   "you want to stream from an HDHomerun without enabling "
-                   "host networking for the container. Set this to 0 if you "
-                   "want the port numbers to be assigned dynamically. If you "
-                   "have multiple tuners, this will be the start of the port "
-                   "range. For example, if you have 4 tuners and you set this "
-                   "to 9983, then tuner 0 will talk to port 9983, tuner 1 "
-                   "will talk to port 9984, tuner 2 will talk to port 9985, "
-                   "and tuner 3 will talk to port 9986."),
-      .off    = offsetof(config_t, local_port),
-      .opts   = PO_HIDDEN | PO_EXPERT,
-      .group  = 1
-    },
     {
       .type   = PT_STR,
       .id     = "language_ui",
@@ -2480,6 +2441,49 @@ const idclass_t config_class = {
       .opts   = PO_EXPERT,
       .group  = 5
     },
+    {
+      .type   = PT_STR,
+      .id     = "hdhomerun_ip",
+      .name   = N_("HDHomerun IP Address"),
+      .desc   = N_("IP address of the HDHomerun device. This is needed if you "
+                   "plan to run TVheadend in a container and you want to stream "
+                   "from an HDHomerun without enabling host networking for "
+                   "the container."),
+      .off    = offsetof(config_t, hdhomerun_ip),
+      .opts   = PO_HIDDEN | PO_EXPERT,
+      .group  = 6
+    },
+    {
+      .type   = PT_STR,
+      .id     = "local_ip",
+      .name   = N_("Local IP Address"),
+      .desc   = N_("IP address of the HDHomerun device. This is needed if you "
+                   "plan to run TVheadend in a container and you want to stream "
+                   "from an HDHomerun without enabling host networking for "
+                   "the container."),
+      .off    = offsetof(config_t, local_ip),
+      .opts   = PO_HIDDEN | PO_EXPERT,
+      .group  = 6
+    },
+    {
+      .type   = PT_INT,
+      .id     = "local_port",
+      .name   = N_("Local Socket Port Number"),
+      .desc   = N_("Starting port number of the UDP listeners. The listeners "
+                   "listen for traffic from the HDHomerun tuners. This is "
+                   "needed if you plan to run TVheadend in a container and "
+                   "you want to stream from an HDHomerun without enabling "
+                   "host networking for the container. Set this to 0 if you "
+                   "want the port numbers to be assigned dynamically. If you "
+                   "have multiple tuners, this will be the start of the port "
+                   "range. For example, if you have 4 tuners and you set this "
+                   "to 9983, then tuner 0 will talk to port 9983, tuner 1 "
+                   "will talk to port 9984, tuner 2 will talk to port 9985, "
+                   "and tuner 3 will talk to port 9986."),
+      .off    = offsetof(config_t, local_port),
+      .opts   = PO_HIDDEN | PO_EXPERT,
+      .group  = 6
+    },
     {
       .type   = PT_STR,
       .id     = "http_user_agent",
@@ -2487,7 +2491,7 @@ const idclass_t config_class = {
       .desc   = N_("The user agent string for the build-in HTTP client."),
       .off    = offsetof(config_t, http_user_agent),
       .opts   = PO_HIDDEN | PO_EXPERT,
-      .group  = 6,
+      .group  = 7,
     },
     {
       .type   = PT_INT,
@@ -2496,7 +2500,7 @@ const idclass_t config_class = {
       .desc   = N_("Set the number of threads for IPTV to split load "
                    "across more CPUs."),
       .off    = offsetof(config_t, iptv_tpool_count),
-      .group  = 6,
+      .group  = 7,
     },
     {
       .type   = PT_INT,
@@ -2513,7 +2517,7 @@ const idclass_t config_class = {
       .off    = offsetof(config_t, dscp),
       .list   = config_class_dscp_list,
       .opts   = PO_EXPERT | PO_DOC_NLIST,
-      .group  = 6,
+      .group  = 7,
     },
     {
       .type   = PT_U32,
@@ -2523,7 +2527,7 @@ const idclass_t config_class = {
                    "there is a delay receiving CA keys. "),
       .off    = offsetof(config_t, descrambler_buffer),
       .opts   = PO_EXPERT,
-      .group  = 6,
+      .group  = 7,
     },
     {
       .type   = PT_BOOL,
@@ -2534,7 +2538,7 @@ const idclass_t config_class = {
                    "It may cause issues with some clients / players."),
       .off    = offsetof(config_t, parser_backlog),
       .opts   = PO_EXPERT,
-      .group  = 6,
+      .group  = 7,
     },
     {
       .type   = PT_STR,
@@ -2547,7 +2551,7 @@ const idclass_t config_class = {
       .off    = offsetof(config_t, muxconf_path),
       .notify = config_muxconfpath_notify,
       .opts   = PO_ADVANCED,
-      .group  = 6,
+      .group  = 7,
     },
     {
       .type   = PT_BOOL,
@@ -2555,7 +2559,7 @@ const idclass_t config_class = {
       .name   = N_("Parse HbbTV info"),
       .desc   = N_("Parse HbbTV information from services."),
       .off    = offsetof(config_t, hbbtv),
-      .group  = 6,
+      .group  = 7,
     },
     {
       .type   = PT_BOOL,
@@ -2566,7 +2570,7 @@ const idclass_t config_class = {
                    "the system clock (normally only root)."),
       .off    = offsetof(config_t, tvhtime_update_enabled),
       .opts   = PO_EXPERT,
-      .group  = 6,
+      .group  = 7,
     },
     {
       .type   = PT_BOOL,
@@ -2578,7 +2582,7 @@ const idclass_t config_class = {
                    "performance is not that great."),
       .off    = offsetof(config_t, tvhtime_ntp_enabled),
       .opts   = PO_EXPERT,
-      .group  = 6,
+      .group  = 7,
     },
     {
       .type   = PT_U32,
@@ -2590,7 +2594,7 @@ const idclass_t config_class = {
                    "excessive oscillations on the system clock."),
       .off    = offsetof(config_t, tvhtime_tolerance),
       .opts   = PO_EXPERT,
-      .group  = 6,
+      .group  = 7,
     },
     {
       .type   = PT_STR,