From 35f1ab404ef1003900206990784e0c957f03348b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Thu, 9 May 2019 12:25:27 +0200 Subject: [PATCH 01/72] elektra: create base for highlevel implementation --- .../lcdexec/specification/lcdexec-spec.ini | 305 ++ .../lcdproc/specification/lcdproc-spec.ini | 269 ++ clients/lcdvc/specification/lcdvc-spec.ini | 82 + configure.ac | 20 + readconf.py | 193 ++ server/specification/LCDd-spec.ini | 2670 +++++++++++++++++ 6 files changed, 3539 insertions(+) create mode 100644 clients/lcdexec/specification/lcdexec-spec.ini create mode 100644 clients/lcdproc/specification/lcdproc-spec.ini create mode 100644 clients/lcdvc/specification/lcdvc-spec.ini create mode 100644 readconf.py create mode 100644 server/specification/LCDd-spec.ini diff --git a/clients/lcdexec/specification/lcdexec-spec.ini b/clients/lcdexec/specification/lcdexec-spec.ini new file mode 100644 index 00000000..60c7744c --- /dev/null +++ b/clients/lcdexec/specification/lcdexec-spec.ini @@ -0,0 +1,305 @@ +[] +mountpoint = lcdexec.conf +;infos/plugins = dump validation enum range ipaddr path +infos/plugin = dump validation enum + +[lcdexec/address] +check/ipaddr = +type = string +check/type = string +default = 127.0.0.1 +description = Address of the LCDd server + +[lcdexec/port] +check/port = +type = unsigned_short +check/type = unsigned_short +default = 13666 +description = Port to attach to LCDd server + +[lcdexec/reportlevel] +type = unsigned_short +check/type = unsigned_short +check/range = 0-5 +default = 2 +description = Sets the reporting level, defaults to warnings and errors only. + +[lcdexec/reporttosyslog] +type = boolean +check/type = boolean +default = no +description = Should we report to syslog instead of stderr? + +[lcdexec/foreground] +type = boolean +check/type = boolean +default = false +description = "whether to run in foreground" + +[lcdexec/pidfile] +type = string +check/type = string +;check/path = ; does not have to exist +default = /var/run/lcdexec.pid +description = "PidFile location when running as daemon" + +[lcdexec/shell] +type = string +check/type = string +;check/path = +default = /bin/sh +description = "shell to use for executing programs; any shell that understands: -c COMMAND" + +[lcdexec/displayname] +type = string +check/type = string +default = lcdexec +description = "display name for the main menu" + +[lcdexec/menu/main] +check/reference = single +check/reference/restrict = ../menu/* +description = "reference to the main menu" +require = + +[lcdexec/menu/menu/_/displayname] +type = string +check/type = string +; default = should default to the _ part of the key +description = "name to display in the parent menu" + +[lcdexec/menu/menu/_/entry] +check/reference = recursive +check/reference/restrict/#0 = ../../../command/* +check/reference/restrict/#1 = ../../../menu/* +description = "array of references to entries (commands or sub-menus) in this menu" + +[lcdexec/menu/command/_/entry] +check/reference/restrict = + +[lcdexec/menu/command/_/parameter] +check/reference = single +check/reference/restrict/#0 = ../../../parameter/slider/* +check/reference/restrict/#1 = ../../../parameter/checkbox/* +check/reference/restrict/#2 = ../../../parameter/numeric/* +check/reference/restrict/#3 = ../../../parameter/ring/* +check/reference/restrict/#4 = ../../../parameter/alpha/* +check/reference/restrict/#5 = ../../../parameter/ip/* + +[lcdexec/menu/command/_/displayname] +type = string +check/type = string +; default = should default to the _ part of the key +description = "name to display in the menu" + +[lcdexec/menu/command/_/exec] +type = string +check/type = string +default = "" +description = "what the command should do" + +[lcdexec/menu/command/_/feedback] +type = boolean +check/type = boolean +default = no +description = "show a temporary feedback screen upon completion" + +[lcdexec/menu/parameter/slider/_/displayname] +type = string +check/type = string +; default = should default to the _ part of the key +description = "name to display in the command" + +[lcdexec/menu/parameter/slider/_/envname] +type = string +check/type = string +; default = should default to the _ part of the key, but in all-caps +description = "name of the environment variable used by the parameter" + +[lcdexec/menu/parameter/slider/_/Value] +type = long +check/type = long +default = 0 +description = "initial value of the argument" + +[lcdexec/menu/parameter/slider/_/MinValue] +type = long +check/type = long +default = 0 +description = "minimum value of the argument" + +[lcdexec/menu/parameter/slider/_/MaxValue] +type = long +check/type = long +default = 1000 +description = "maximum value of the argument" + +[lcdexec/menu/parameter/checkbox/_/displayname] +type = string +check/type = string +; default = should default to the _ part of the key +description = "name to display in the command" + +[lcdexec/menu/parameter/checkbox/_/envname] +type = string +check/type = string +; default = should default to the _ part of the key, but in all-caps +description = "name of the environment variable used by the parameter" + +[lcdexec/menu/parameter/checkbox/_/Value] +type = boolean +check/type = boolean +default = off +description = "initial value of the argument" + +[lcdexec/menu/parameter/checkbox/_/AllowGray] +type = boolean +check/type = boolean +default = no +description = whether to allow the third (gray) state + +[lcdexec/menu/parameter/checkbox/_/OffText] +type = string +check/type = string +description = text to display when in off state + +[lcdexec/menu/parameter/checkbox/_/OnText] +type = string +check/type = string +description = text to display when in on state + +[lcdexec/menu/parameter/checkbox/_/GrayText] +type = string +check/type = string +description = text to display when in gray state + +[lcdexec/menu/parameter/numeric/_/displayname] +type = string +check/type = string +; default = should default to the _ part of the key +description = "name to display in the command" + +[lcdexec/menu/parameter/numeric/_/envname] +type = string +check/type = string +; default = should default to the _ part of the key, but in all-caps +description = "name of the environment variable used by the parameter" + +[lcdexec/menu/parameter/numeric/_/value] +type = long +check/type = long +default = 0 +description = "initial value of the argument" + +[lcdexec/menu/parameter/numeric/_/minvalue] +type = long +check/type = long +default = 0 +description = "minimum value of the argument" + +[lcdexec/menu/parameter/numeric/_/maxvalue] +type = long +check/type = long +default = 1000 +description = "maximum value of the argument" + +[lcdexec/menu/parameter/numeric/_/stepsize] +type = long +check/type = long +default = 1 +description = "step size used" + +[lcdexec/menu/parameter/numeric/_/mintext] +type = string +check/type = string +; default = defaults to MinValue +description = "Text at minimal value" + +[lcdexec/menu/parameter/numeric/_/maxtext] +type = string +check/type = string +; default = defaults to MaxValue +description = "Text at maximal value" + +[lcdexec/menu/parameter/ring/_/displayname] +type = string +check/type = string +; default = should default to the _ part of the key +description = "name to display in the command" + +[lcdexec/menu/parameter/ring/_/envname] +type = string +check/type = string +; default = should default to the _ part of the key, but in all-caps +description = "name of the environment variable used by the parameter" + +[lcdexec/menu/parameter/ring/_/value] +type = long +check/type = long +default = 0 +description = "initial value of the argument" + +[lcdexec/menu/parameter/numeric/_/string/#] +type = string +check/type = string +description = "list of alternative strings to choose from" + +[lcdexec/menu/parameter/alpha/_/displayname] +type = string +check/type = string +; default = should default to the _ part of the key +description = "name to display in the command" + +[lcdexec/menu/parameter/alpha/_/envname] +type = string +check/type = string +; default = should default to the _ part of the key, but in all-caps +description = "name of the environment variable used by the parameter" + +[lcdexec/menu/parameter/alpha/_/value] +type = string +check/type = string +default = "" +description = "initial value of the argument" + +[lcdexec/menu/parameter/alpha/_/allowedchars] +type = string +check/type = string +default = ABCDEFGHIJKLMNOPQRSTUVWXYZ +description = "range of characters allowed" + +[lcdexec/menu/parameter/alpha/_/minlength] +type = long +check/type = long +default = 0 +description = "minimum length of the argument" + +[lcdexec/menu/parameter/alpha/_/maxlength] +type = long +check/type = long +default = 100 +description = "maximum length of the argument" + +[lcdexec/menu/parameter/ip/_/displayname] +type = string +check/type = string +; default = should default to the _ part of the key +description = "name to display in the command" + +[lcdexec/menu/parameter/ip/_/envname] +type = string +check/type = string +; default = should default to the _ part of the key, but in all-caps +description = "name of the environment variable used by the parameter" + +[lcdexec/menu/parameter/ip/_/value] +type = string +check/type = string +default = "" +description = "initial value of the argument" + +[lcdexec/menu/parameter/ip/_/v6] +type = boolean +check/type = boolean +default = no +description = "whether or not to use IPv6" \ No newline at end of file diff --git a/clients/lcdproc/specification/lcdproc-spec.ini b/clients/lcdproc/specification/lcdproc-spec.ini new file mode 100644 index 00000000..2b0d8bf3 --- /dev/null +++ b/clients/lcdproc/specification/lcdproc-spec.ini @@ -0,0 +1,269 @@ +[] +mountpoint = ldcproc-spec.conf +;infos/plugins = dump validation enum range network path +infos/plugins = boolean type range + +;lcdproc +;================================================== +[/lcdproc/server] +default = localhost +;check/ipaddr = +check/type = string +description = address of the LCDd server to connect to + +[/lcdproc/port] +type = unsigned_short +;check/port = +check/type = unsigned_short +default = 13666 +description = Port of the server to connect to + +[/lcdproc/reportlevel] +type = unsigned_short +check/type = unsigned_short +check/range = 0-5 +default = 2 +description = set reporting level + +[/lcdproc/reporttosyslog] +type = boolean +check/type = boolean +default = False +description = report to syslog ? + +[/lcdproc/foreground] +type = boolean +check/type = boolean +default = False +description = report to syslog ? + +[/lcdproc/pidfile] +type = string +default = /var/run/lcdproc.pid +description = "PidFile location when running as daemon [default: /var/run/lcdproc.pid]" + +[/lcdproc/delay] +type = unsigned_long +check/type = unsigned_long +;check/validation = ^([1-9]\d*|0)$ +;check/validation/match = LINE +;check/validation/message = Delay must be a positive number including 0 +default = 0 + +[/lcdproc/displayname] +type = string +check/type = string +default = LCDproc HOST +description = display name for the main menu [default: LCDproc HOST] + +;CPU +;================================================== +[/cpu/active] +type = boolean +check/type = boolean +default = True +description = Show screen + +[/cpu/showinvisible] +type = boolean +check/type = boolean +default = False + +;Iface +;================================================== +[/iface/active] +type = boolean +check/type = boolean +default = True +description = Show screen + +[/iface/interface0] +type = string +check/type = string +default = eth0 +description = Show stats for Interface0 + +[/iface/alias0] +type = string +check/type = string +default = LAN +description = Interface alias name to display [default: ] + +[/iface/interface1] +type = string +check/type = string +description = Show stats for Interface1 + +[/iface/alias1] +type = string +check/type = string +description = Interface alias name to display [default: ] + +[/iface/interface2] +type = string +check/type = string +description = Show stats for Interface2 + +[/iface/alias2] +type = string +check/type = string +description = Interface alias name to display [default: ] + +[/iface/unit] +type = enum +check/enum = byte, bit, packet +default = byte +description = Units to display [default: byte ... legal: byte, bit, packet] + +[/iface/transfer] +type = boolean +check/type = boolean +default = False +description = add screen with transferred traffic + +;Memory +;================================================== +[/memory/active] +type = boolean +check/type = boolean +default = True +description = Show screen + +;Load +;================================================== +[/load/active] +type = boolean +check/type = boolean +default = True +description = Show screen + +[/load/lowload] +type = float +check/type = float +default = 0.05 +description = Min Load Avg at which the backlight will be turned off [default: 0.05] + +[/load/highload] +type = float +check/type = float +default = 1.3 +description = Max Load Avg at which the backlight will start blinking [default: 1.3] + +;TimeDate +;================================================== +[/timedate/active] +type = boolean +check/type = boolean +default = True +description = Show screen + +[/timedate/timeformat] +type = string +check/type = string +default = "%H:%M:%S" +description = "time format [default: %H:%M:%S; legal: see strftime(3)]" + +[/timedate/dateformat] +type = string +check/type = string +default = "%x" +description = "date format [default: %x; legal: see strftime(3)]" + +;About +;================================================== +[/about/active] +type = boolean +check/type = boolean +default = True +description = Show screen + +;SMP-CPU +;================================================== +[/smp-cpu/about] +type = boolean +check/type = boolean +default = False +description = Show screen + +;OldTime +;================================================== +[/oldtime/active] +type = boolean +check/type = boolean +default = False +description = Show screen + +[/oldtime/showtitle] +type = boolean +check/type = boolean +default = True +description = "Display the title bar in two-line mode. Note that with four lines or more +the title is always shown. [default: true; legal: true, false]" + +[/oldtime/timeformat] +type = string +check/type = string +default = "%H:%M:%S" +description = "time format [default: %H:%M:%S; legal: see strftime(3)]" + +[/oldtime/dateformat] +type = string +check/type = string +default = "%x" +description = "date format [default: %x; legal: see strftime(3)]" + +;BigClock +;================================================== +[/bigclock/active] +type = boolean +check/type = boolean +default = False +description = Show screen + +;Battery +;================================================== +[/battery/active] +type = boolean +check/type = boolean +default = False +description = Show screen + +;Uptime +;================================================== +[/uptime/active] +type = boolean +check/type = boolean +default = False +description = Show screen + +;CPUGraph +;================================================== +[/cpugraph/active] +type = boolean +check/type = boolean +default = False +description = Show screen + +;ProcSize +;================================================== +[/procsize/active] +type = boolean +check/type = boolean +default = False +description = Show screen + +;Disk +;================================================== +[/disk/active] +type = boolean +check/type = boolean +default = False +description = Show screen + +;MiniClock +;================================================== +[/miniclock/active] +type = boolean +check/type = boolean +default = True +description = Show screen \ No newline at end of file diff --git a/clients/lcdvc/specification/lcdvc-spec.ini b/clients/lcdvc/specification/lcdvc-spec.ini new file mode 100644 index 00000000..4a2831a2 --- /dev/null +++ b/clients/lcdvc/specification/lcdvc-spec.ini @@ -0,0 +1,82 @@ +[] +mountpoint = lcdvc.conf +;infos/plugins = dump validation enum range ipaddr path +infos/plugin = dump validation enum + +[/lcdvc/address] +check/ipaddr = +type = string +check/type = string +default = 127.0.0.1 +description = Address of the LCDd server + +[/lcdvc/port] +check/ipaddr = +type = unsigned_short +check/type = unsigned_short +default = 13666 +description = Port to attach to LCDd server + +[/lcdvc/reportlevel] +type = unsigned_short +check/type = unsigned_short +check/range = 0-5 +default = 2 +description = Sets the reporting level, defaults to warnings and errors only. + +[/lcdvc/reporttosyslog] +type = boolean +check/type = boolean +default = no +description = Should we report to syslog instead of stderr? + +[/lcdvc/upkey] +type = string +check/type = string +default = Up +description = "Key to move the visible area of the screen upwards" + +[/lcdvc/downkey] +type = string +check/type = string +default = Down +description = "Key to move the visible area of the screen downwards" + +[/lcdvc/leftkey] +type = string +check/type = string +default = Left +description = "Key to move the visible area of the screen left" + +[/lcdvc/rightkey] +type = string +check/type = string +default = Right +description = "Key to move the visible area of the screen right" + +[/lcdvc/vcsdevice] +type = string +check/type = string +;check/path = +default = /dev/vcs +description = "vcs device to use" + +[/lcdvc/vcsadevice] +type = string +check/type = string +;check/path = +default = /dev/vcsa +description = "vcsa device to use" + +[/lcdvc/foreground] +type = boolean +check/type = boolean +default = false +description = "whether to run in foreground" + +[/lcdvc/pidfile] +type = string +check/type = string +;check/path = ; does not have to exist +default = /var/run/lcdvc.pid +description = "PidFile location when running as daemon" \ No newline at end of file diff --git a/configure.ac b/configure.ac index 98a2fb1c..fc2aeb0c 100644 --- a/configure.ac +++ b/configure.ac @@ -67,6 +67,16 @@ dnl (the spaces before $CFLAGS and -O are significant) fi fi +dnl Driver path +if test "x$prefix" = "xNONE" ; then + prefix="/usr/local" +fi +if test "x$exec_prefix" = "xNONE" ; then + exec_prefix=$prefix +fi +libdir="$exec_prefix/lib" +AC_DEFINE_UNQUOTED([DRIVER_LIB_PATH], ["$libdir/$PACKAGE"], [The default path for drivers.]) + dnl Checks for programs used in building AC_PROG_CC AC_PROG_CC_STDC @@ -76,6 +86,16 @@ AC_PROG_RANLIB AM_PROG_CC_C_O AC_PATH_PROG([XMLTO], [xmlto], [no]) +dnl elektra +ifdef([PKG_CHECK_MODULES], + [PKG_CHECK_MODULES([ELEKTRA], [elektra],,)], + [AC_MSG_ERROR([pkg-config not (fully) installed, but needed to find Elektra])]) +AC_SUBST([ELEKTRA_CFLAGS]) +AC_SUBST([ELEKTRA_LIBS]) + +CFLAGS="$ELEKTRA_CFLAGS $CFLAGS" +LIBS="$ELEKTRA_LIBS $LIBS" + dnl Avoid unused static function warnings CFLAGS="-Wall $CFLAGS" AX_CFLAGS_GCC_OPTION(-Wno-unused-function) diff --git a/readconf.py b/readconf.py new file mode 100644 index 00000000..81d88c7d --- /dev/null +++ b/readconf.py @@ -0,0 +1,193 @@ +#!env python3 + +import sys +import configparser +from typing import Dict, IO +from subprocess import run +import argparse +import os +import collections + +def read_lcdd(file: IO): + class ConfigParserMultiValues(collections.OrderedDict): + def __setitem__(self, key, value): + if key in self and isinstance(value, list): + self[key].extend(value) + else: + super().__setitem__(key, value) + + @staticmethod + def getlist(value): + return value.split(os.linesep) + + config = configparser.RawConfigParser(strict=False, empty_lines_in_values=False, dict_type=ConfigParserMultiValues, converters={"list": ConfigParserMultiValues.getlist}) + config.read_file(file) + + base_key = "/sw/lcdproc/lcdd/#0/current/" + + kdb_config = {} + for section in config.sections(): + if section == "server": + section_key = "server/" + elif section == "menu": + section_key = "menu/" + else: + section_key = "driver/" + section.lower() + "/" + + for key in config[section]: + kdb_key = base_key + section_key + key.lower() + + if (section == "server" and key.lower() in ["hello", "goodbye"]) or \ + (section.lower() == "hd44780" and key.lower() == "backlight") or \ + (section.lower() == "linux_input" and key.lower() == "key"): + kdb_config[kdb_key] = config[section].getlist(key) + elif section == "server" and key.lower() == "driver": + kdb_config[kdb_key] = [base_key+"driver/"+d for d in config[section].getlist(key)] + else: + kdb_config[kdb_key] = config[section][key] + + return kdb_config + + +def read_lcdproc(file: IO): + config = configparser.RawConfigParser() + config.read_file(file) + + base_key = "/sw/lcdproc/lcdproc/#0/current/" + + kdb_config = {} + for section in config.sections(): + if section == "lcdproc": + section_key = "general/" + else: + section_key = "screenmode/" + section.lower() + "/" + + for key in config[section]: + kdb_key = base_key + section_key + key.lower() + kdb_config[kdb_key] = config[section][key] + + return kdb_config + + +def read_lcdexec(file: IO): + class ConfigParserMultiValues(collections.OrderedDict): + + def __setitem__(self, key, value): + if key in self and isinstance(value, list): + self[key].extend(value) + else: + super().__setitem__(key, value) + + @staticmethod + def getlist(value): + return value.split(os.linesep) + + config = configparser.ConfigParser(strict=False, empty_lines_in_values=False, dict_type=ConfigParserMultiValues, converters={ + "list": ConfigParserMultiValues.getlist}) + config.read_file(file) + + base_key = "/sw/lcdproc/lcdexec/#0/current/" + + kdb_config = {} + if "lcdexec" in config.sections(): + for key in config["lcdexec"]: + kdb_key = base_key + "general/" + key.lower() + kdb_config[kdb_key] = config["lcdexec"][key] + + def read_param(param: str, param_key: str): + for key in config[param]: + kdb_config[param_key+key.lower()] = config[param][key] + + def read_command(section: str, command_key: str): + if "DisplayName" in config[section]: + kdb_config[command_key+"displayname"] = config[section]["DisplayName"] + + kdb_config[command_key+"exec"] = config[section]["Exec"] + if "Feedback" in config[section]: + kdb_config[command_key+"feedback"] = config[section]["Feedback"] + if "Parameter" in config[section]: + params = config.getlist(section, "Parameter") + + kdb_config[command_key+"param"] = "#"+str(len(params)-1) + for index, param in enumerate(params): + param_key = base_key+"menu/param/"+config[param]["Type"].lower()+"/"+param.lower() + kdb_config[command_key+"param/#"+str(index)] = param_key + read_param(param, param_key+"/") + + def read_menu_entries(section: str, menu_key: str): + entries = config.getlist(section, "Entry") + kdb_config[menu_key+"entry"] = "#"+str(len(entries)-1) + for index, entry in enumerate(entries): + if "Exec" in config[entry]: + entry_key = base_key+"menu/command/"+entry.lower() + read_command(entry, entry_key+"/") + else: + entry_key = base_key+"menu/menu/"+entry.lower() + read_menu(entry, entry_key+"/") + kdb_config[base_key+"menu/menu/main/entry/#"+str(index)] = entry_key + + def read_menu(section: str, menu_key: str): + if "DisplayName" in config[section]: + kdb_config[menu_key+"displayname"] = config[section]["DisplayName"] + + read_menu_entries(section, menu_key) + + if "MainMenu" in config.sections(): + kdb_config[base_key+"menu/main"] = base_key+"menu/menu/main" + read_menu_entries("MainMenu", base_key+"menu/menu/main/") + + return kdb_config + + +def read_lcdvc(file: IO): + config = configparser.RawConfigParser() + config.read_file(file) + + base_key = "/sw/lcdproc/lcdvc/#0/current/" + + kdb_config = {} + for section in config.sections(): + for key in config[section]: + kdb_key = base_key + key.lower() + kdb_config[kdb_key] = config[section][key] + + return kdb_config + + +def write_to_kdb(kdb_config): + def write_value(key, value): + if value.startswith('"') and value.endswith('"'): + value = value[1:-1] + cmd = ["kdb", "set", "--", f"{key}", f"{value}"] + print("$", " ".join(cmd)) + run(cmd) + + for key, value in kdb_config.items(): + if isinstance(value, list): + write_value(key, f"#{len(value) - 1}") + for index,item in enumerate(value): + write_value(f"{key}/#{index}", item) + else: + write_value(key, value) + + +parser = argparse.ArgumentParser() +parser.add_argument("mode") +parser.add_argument("file", type=argparse.FileType('r', encoding="UTF-8")) + +args = parser.parse_args() +mode = args.mode.lower() + +if mode == "lcdd": + kdb_config = read_lcdd(args.file) +elif mode == "lcdproc": + kdb_config = read_lcdproc(args.file) +elif mode == "lcdvc": + kdb_config = read_lcdvc(args.file) +elif mode == "lcdexec": + kdb_config = read_lcdexec(args.file) +else: + print("unknown mode") + exit(1) + +write_to_kdb(kdb_config) diff --git a/server/specification/LCDd-spec.ini b/server/specification/LCDd-spec.ini new file mode 100644 index 00000000..ce46850f --- /dev/null +++ b/server/specification/LCDd-spec.ini @@ -0,0 +1,2670 @@ +[] +mountpoint = LCDd.conf +;infos/plugins = dump validation enum range ipaddr path network type +infos/plugins = dump validation enum + +;Until the max plugin error is not fixed, some specifications will be left commented out + +;============================================================================= +;============================================================================= + +;Affecting all subsettings, eg curses/Contrast, CFontz/Contrast, etc. +;------------------------------------ + +[/_/contrast] +type = unsigned_short +check/type = unsigned_short +check/range = 0-1000 +description = Set the initial contrast + +[/_/brightness] +type = unsigned_short +check/type = unsigned_short +check/range = 0-1000 + +[/_/offbrightness] +type = unsigned_short +check/type = unsigned_short +check/range = 0-1000 + +[/_/reboot] +type = boolean +check/type = boolean +default = no +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +;Server +;---------------------------------------- +[/server/driverpath] +type = string +check/type = string +check/validation = .*[\/]$ +check/validation/match = LINE +check/validation/message = The path has to contain a backslack (/) at the end +default = server/drivers/ +description = Select the LCD size + + +[/server/driver] +type = string +check/type = string +default = curses +description = "Tells the server to load the given drivers. Multiple lines can be given. +The name of the driver is case sensitive and determines the section +where to look for further configuration options of the specific driver +as well as the name of the dynamic driver module to load at runtime. +The latter one can be changed by giving a File= directive in the +driver specific section. + +The following drivers are supported: + bayrad, CFontz, CFontzPacket, curses, CwLnx, ea65, EyeboxOne, futaba, + g15, glcd, glcdlib, glk, hd44780, icp_a106, imon, imonlcd,, IOWarrior, + irman, joy, lb216, lcdm001, lcterm, linux_input, lirc, lis, MD8800, + mdm166a, ms6931, mtc_s16209x, MtxOrb, mx5000, NoritakeVFD, + Olimex_MOD_LCD1x9, picolcd, pyramid, rawserial, sdeclcd, sed1330, + sed1520, serialPOS, serialVFD, shuttleVFD, sli, stv5730, svga, t6963, + text, tyan, ula200, vlsys_m428, xosd, yard2LCD" + +[/server/bind] +type = string +;check/ipaddr = +check/type = string +default = 127.0.0.1 +description = Tells the driver to bind to the given interface + +[/server/port] +type = unsigned_short +;check/port/listen = +check/type = unsigned_short +default = 13666 +description = Listen on this specified port. [default: 13666] + +[/server/reportlevel] +type = unsigned_short +check/type = unsigned_short +check/range = 0-5 +default = 2 +description = TSets the reporting level, defaults to warnings and errors only. + +[/server/reporttosyslog] +type = boolean +check/type = boolean +default = no +description = Should we report to syslog instead of stderr? + +[/server/user] +type = string +check/type = string +default = nobody +description = "ser to run as. LCDd will drop its root privileges and run as this user instead. [default: nobody]" + +[/server/foreground] +type = boolean +check/type = boolean +default = no +description = The server will stay in the foreground if set to yes + +[/server/hello] +type = string +check/type = string +default = builtin +description = "Hello message: each entry represents a display line; default: builtin" + +[/server/goodbye] +type = string +check/type = string +default = builtin +description = "GoodBye message: each entry represents a display line; default: builtin" + +[/server/frameinterval] +type = unsigned_long +check/type = unsigned_long +check/validation = [1-9]\d* +check/validation/match = LINE +check/validation/message = FrameInterval must be a positive number +default = 125000 +description = "Sets the interval in microseconds for updating the display [default: 125000 meaning 8Hz]" + +[/server/waittime] +type = unsigned_long +check/type = unsigned_long +check/validation = [1-9]\d* +check/validation/match = LINE +check/validation/message = WaitTime must be a positive number +default = 4 +description = Sets the default time in seconds to displays a screen + +[/server/autorotate] +type = boolean +check/type = boolean +default = on +description = If set to no, LCDd will start with screen rotation disabled. This has the\ +same effect as if the ToggleRotateKey had been pressed. Rotation will start\ +if the ToggleRotateKey is pressed. Note that this setting does not turn off\ +priority sorting of screens + +[/server/serverscreen] +type = enum +check/enum = off, on, blank +default = on +description = If yes, the the serverscreen will be rotated as a usual info screen. If no,\ +it will be a background screen, only visible when no other screens are\ +active. The special value 'blank' is similar to no, but only a blank screen\ +is displayed. + +[/server/backlight] +type = enum +check/enum = off, on, open +default = open +description = Set master backlight setting. If set to 'open' a client may control the\ +backlight for its own screens (only) + +[/server/heartbeat] +type = enum +check/enum = off, on, open +default = open +description = Set master heartbeat setting. If set to 'open' a client may control the +heartbeat for its own screens (only) + +[/server/togglerotatekey] +type = string +check/type = string +default = Enter +description = "The '...Key=' lines define what the server does with keypresses that +don't go to any client. The ToggleRotateKey stops rotation of screens, while +the PrevScreenKey and NextScreenKey go back / forward one screen (even if +rotation is disabled. +Assign the key string returned by the driver to the ...Key setting." + +[/server/prevscreenkey] +type = string +check/type = string +default = Left +description = "The '...Key=' lines define what the server does with keypresses that +don't go to any client. The ToggleRotateKey stops rotation of screens, while +the PrevScreenKey and NextScreenKey go back / forward one screen (even if +rotation is disabled. +Assign the key string returned by the driver to the ...Key setting." + +[/server/nextscreenkey] +type = string +check/type = string +default = Right +description = "The '...Key=' lines define what the server does with keypresses that +don't go to any client. The ToggleRotateKey stops rotation of screens, while +the PrevScreenKey and NextScreenKey go back / forward one screen (even if +rotation is disabled. +Assign the key string returned by the driver to the ...Key setting." + +[/server/scrollupkey] +type = string +check/type = string +default = Up +description = "The '...Key=' lines define what the server does with keypresses that +don't go to any client. The ToggleRotateKey stops rotation of screens, while +the PrevScreenKey and NextScreenKey go back / forward one screen (even if +rotation is disabled. +Assign the key string returned by the driver to the ...Key setting." + +[/server/scrolldownkey] +type = string +check/type = string +default = Down +description = "The '...Key=' lines define what the server does with keypresses that +don't go to any client. The ToggleRotateKey stops rotation of screens, while +the PrevScreenKey and NextScreenKey go back / forward one screen (even if +rotation is disabled. +Assign the key string returned by the driver to the ...Key setting." + + +;Menu +;================================================== +[/menu/permissivegoto] +type = boolean +check/type = boolean +default = false +description = If true the server allows transitions between different client`s menus + +[/menu/menukey] +type = string +check/type = string +default = Escape +description = "Up to six keys are supported. The MenuKey (to enter and exit the menu), the +EnterKey (to select values) and at least one movement keys are required." + +[/menu/enterkey] +type = string +check/type = string +default = Enter +description = "Up to six keys are supported. The MenuKey (to enter and exit the menu), the +EnterKey (to select values) and at least one movement keys are required." + +[/menu/upkey] +type = string +check/type = string +default = Up +description = "Up to six keys are supported. The MenuKey (to enter and exit the menu), the +EnterKey (to select values) and at least one movement keys are required." + +[/menu/downkey] +type = string +check/type = string +default = Down +description = "Up to six keys are supported. The MenuKey (to enter and exit the menu), the +EnterKey (to select values) and at least one movement keys are required." + +[/menu/leftkey] +type = string +check/type = string +default = Left +description = "Up to six keys are supported. The MenuKey (to enter and exit the menu), the +EnterKey (to select values) and at least one movement keys are required." + +[/menu/rightkey] +type = string +check/type = string +default = Right +description = "Up to six keys are supported. The MenuKey (to enter and exit the menu), the +EnterKey (to select values) and at least one movement keys are required." + + + +;bayrad +;================================================== +[/bayrad/device] +type = string +check/type = string +;check/path = +default = /dev/lcd +description = Select the output device to use + +[/bayrad/speed] +type = unsigned_short +check/type = unsigned_short +check/range = 1200, 2400, 9600, 19200 +default = 9600 +description = Set the communication speed + +;CFontz +;================================================== +[/cfontz/device] +type = string +check/type = string +;check/path = +default = /dev/lcd +description = Select the output device to use + +[/cfontz/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 20x4 +description = Select the LCD size + +[/cfontz/contrast] +default = 350 + +[/cfontz/brightness] +default = 1000 +description = Set the initial brightness + +[/cfontz/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +description = Set the initial off-brightness.\ +This value is used when the display is normally\ +switched off in case LCDd is inactive + +[/cfontz/speed] +type = unsigned_short +check/type = unsigned_short +check/range = 1200, 2400, 9600, 19200, 115200 +default = 9600 +description = Set the communication speed + +[/cfontz/newfirmware] +type = boolean +check/type = boolean +default = no +description = "Set the firmware version (New means >= 2.0)" + +[/cfontz/reboot] +default = no + +;CFontzPacket +;================================================== +[/cfontzpacket/model] +type = enum +check/type = enum +check/enum = 533, 631, 633, 635 +default = 633 +description = Select the LCD model + +[/cfontzpacket/device] +type = string +check/type = string +;check/path = +default = /dev/lcd +;description = Select the output device to use + +[/cfontzpacket/contrast] +default = 350 + +[/cfontzpacket/brightness] +default = 1000 +description = Set the initial brightness + +[/cfontzpacket/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +description = Set the initial off-brightness.\ +This value is used when the display is normally\ +switched off in case LCDd is inactive + +[/cfontzpacket/reboot] +default = no + +[/cfontzpacket/usb] +type = boolean +check/type = boolean +default = no +description = Enable the USB flag if the device is connected to an USB port. For serial ports leave it disabled. + +[/cfontzpacket/oldfirmware] +type = boolean +check/type = boolean +default = no +description = Very old 633 firmware versions do not support partial screen updates using\ +'Send Data to LCD' command (31). For those devices it may be necessary to\ +enable this flag + +[/cfontzpacket/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 20x4 +description = Override the LCD size known for the selected model. Usually setting this value should not be necessary. + +[/cfontzpacket/speed] +type = unsigned_short +check/type = unsigned_short +check/range = 19200, 115200 +default = 115200 +description = Override the default communication speed known for the selected model. Default value depends on model. + +;curses +;================================================== +[/curses/foreground] +type = enum +check/type = enum +check/enum = red, black, green, yellow, blue, magenta, cyan, white +default = blue +description = Color settings + +[/curses/background] +type = enum +check/type = enum +check/enum = red, black, green, yellow, blue, magenta, cyan, white +default = cyan +description = background color when "backlight" is off + +[/curses/backlight] +type = enum +check/type = enum +check/enum = red, black, green, yellow, blue, magenta, cyan, white +default = red +description = background color when "backlight" is on + +[/curses/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 20x4 +description = display size + +[/curses/topleftx] +type = unsigned_short +check/type = unsigned_short +check/validation = ([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Must be a positive number +default = 7 +description = What position (X,Y) to start the left top corner at... + +[/curses/toplefty] +type = unsigned_short +check/type = unsigned_short +check/validation = ([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Must be a positive number +default = 7 +description = What position (X,Y) to start the left top corner at... + +[/curses/useacs] +type = boolean +check/type = boolean +default = no +description = use ASC symbols for icons & bars + +[/curses/drawborder] +type = boolean +check/type = boolean +default = yes +description = draw Border + +;CwLnx +;================================================== +[/cwlnx/model] +type = enum +check/type = enum +check/enum = 12232, 12832, 1602 +default = 12232 +description = Select the LCD model + +[/cwlnx/device] +type = string +check/type = string +;check/path = +default = /dev/lcd +description = Select the output device to use + +[/cwlnx/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 20x4 +description = "Select the LCD size. Default depends on model: \n12232: 20x4 \n12832: 21x4 \n1602: 16x2" + +[/cwlnx/speed] +type = unsigned_short +check/type = unsigned_short +check/range = 9600, 19200 +default = 19200 +description = Set the communication speed + +[/cwlnx/reboot] +default = no + +[/cwlnx/keypad] +type = boolean +check/type = boolean +default = yes +description = If you have a keypad connected. Keypad layout is currently not configureable from the config file. + +[/cwlnx/keymap_a] +type = string +check/type = string +default = Up +description = "If you have a non-standard keypad you can associate any keystrings to keys. +There are 6 input keys in the CwLnx hardware that generate characters +from 'A' to 'F'.\n +The built-in default mapping hardcoded in the driver. +You can leave those unchanged if you have a standard keypad. +You can change it if you want to report other keystrings or have a non +standard keypad." + +[/cwlnx/keymap_b] +type = string +check/type = string +default = Down +description = "If you have a non-standard keypad you can associate any keystrings to keys. +There are 6 input keys in the CwLnx hardware that generate characters +from 'A' to 'F'.\n +The built-in default mapping hardcoded in the driver. +You can leave those unchanged if you have a standard keypad. +You can change it if you want to report other keystrings or have a non +standard keypad." + +[/cwlnx/keymap_c] +type = string +check/type = string +default = Left +description = "If you have a non-standard keypad you can associate any keystrings to keys. +There are 6 input keys in the CwLnx hardware that generate characters +from 'A' to 'F'.\n +The built-in default mapping hardcoded in the driver. +You can leave those unchanged if you have a standard keypad. +You can change it if you want to report other keystrings or have a non +standard keypad." + +[/cwlnx/keymap_d] +type = string +check/type = string +default = Right +description = "If you have a non-standard keypad you can associate any keystrings to keys. +There are 6 input keys in the CwLnx hardware that generate characters +from 'A' to 'F'.\n +The built-in default mapping hardcoded in the driver. +You can leave those unchanged if you have a standard keypad. +You can change it if you want to report other keystrings or have a non +standard keypad." + +[/cwlnx/keymap_e] +type = string +check/type = string +default = Enter +description = "If you have a non-standard keypad you can associate any keystrings to keys. +There are 6 input keys in the CwLnx hardware that generate characters +from 'A' to 'F'.\n +The built-in default mapping hardcoded in the driver. +You can leave those unchanged if you have a standard keypad. +You can change it if you want to report other keystrings or have a non +standard keypad." + +[/cwlnx/keymap_f] +type = string +check/type = string +default = Escape +description = "If you have a non-standard keypad you can associate any keystrings to keys. +There are 6 input keys in the CwLnx hardware that generate characters +from 'A' to 'F'.\n +The built-in default mapping hardcoded in the driver. +You can leave those unchanged if you have a standard keypad. +You can change it if you want to report other keystrings or have a non +standard keypad." + + +[/cwlnx/keypad_test_mode] +type = boolean +check/type = boolean +default = no +description = permits one to test keypad assignment + +;ea65 +;================================================== +[/ea65/brightness] +default = 500 +description = "As the VFD is self luminescent we don't have a backlight +But we can use the backlight functions to control the front LEDs +Brightness 0 to 299 -> LEDs off +Brightness 300 to 699 -> LEDs half bright +Brightness 700 to 1000 -> LEDs full bright" + +[/ea65/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +description = OffBrightness is the the value used for the 'backlight off' state + +;EyeboxOne +;================================================== +[/eyeboxone/device] +type = string +check/type = string +;check/path = +default = /dev/ttyS1 +description = Select the output device to use + +[/eyeboxone/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 20x4 +description = Set the display size + +[/eyeboxone/backlight] +type = boolean +check/type = boolean +default = yes +description = Switch on the backlight? + +[/eyeboxone/cursor] +type = boolean +check/type = boolean +default = no +description = Switch on the cursor? + +[/eyeboxone/speed] +type = unsigned_short +check/type = unsigned_short +check/range = 1200, 2400, 9600, 19200 +default = 19200 +description = Set the communication speed + +[/eyeboxone/leftkey] +type = string +check/type = string +default = D +description = "Enter Key is a \r character, so it's hardcoded in the driver" + +[/eyeboxone/rightkey] +type = string +check/type = string +default = C +description = "Enter Key is a \r character, so it's hardcoded in the driver" + +[/eyeboxone/upkey] +type = string +check/type = string +default = A +description = "Enter Key is a \r character, so it's hardcoded in the driver" + +[/eyeboxone/downkey] +type = string +check/type = string +default = B +description = "Enter Key is a \r character, so it's hardcoded in the driver" + +[/eyeboxone/escapekey] +type = string +check/type = string +default = P +description = "Enter Key is a \r character, so it's hardcoded in the driver" + + +[/eyeboxone/keypad_test_mode] +type = boolean +check/type = boolean +default = no +description = "You can find out which key of your display sends which +character by setting keypad_test_mode to yes and running +LCDd. LCDd will output all characters it receives. +Afterwards you can modify the settings above and set +keypad_set_mode to no again." + +;g15 +;================================================== +[/g15/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 20x5 +description = Display size (currently unused) + +;glcd +;================================================== +[/glcd/connectiontype] +type = enum +check/type = enum +check/enum = t6963, png, serdisplib, glcd2usb, x11, picolcdgfx, xyz +default = t6963 +description = Select what type of connection. See documentation for types. + +[/glcd/size] +type = string +check/type = string +check/validation = (640|[1-9]|[1-9][0-9]|[1-5][0-9][0-9]|6[0-3][0-9])x(480|[1-9]|[1-9][0-9]|[1-3][0-9][0-9]|4[0-7][0-9]) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. legal: 1x1 - 640x480 +default = 128x64 +description = Width and height of the display in pixel. The supported sizes may depend on the ConnectionType + +[/glcd/cellsize] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 6x8 +description = Width and height of a character cell in pixels. This value is only used \ +the driver has been compiled with FreeType and it is enabled. Otherwise the\ +default 6x8 cell is used. + +[/glcd/useft2] +type = boolean +check/type = boolean +default = yes +description = If LCDproc has been compiled with FreeType 2 support this option can be used\ +to turn if off intentionally. + +[/glcd/normal_font] +type = string +check/type = string +;check/path = +default = /usr/local/lib/X11/fonts/TTF/andalemo.ttf +description = Path to font file to use for FreeType rendering. This font must be monospace\ +and should contain some special Unicode characters like arrows (Andale Mono\ +is recommended and can be fetched at http://corefonts.sf.net). + +[/glcd/fonthasicons] +type = boolean +check/type = boolean +default = yes +description = Some fonts miss the Unicode characters used to represent icons. In this case\ +the built-in 5x8 font can used if this option is turned off. + +[/glcd/contrast] +default = 600 + +[/glcd/brightness] +default = 800 + +[/glcd/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 100 + +[/glcd/keyrepeatdelay] +type = unsigned_short +check/type = unsigned_short +check/range = 0-3000 +default = 500 +description = Time (ms) from first key report to first repeat. Set to 0 to disable repeated key reports. + +[/glcd/keymap_a] +type = string +check/type = string +default = Up +description = "Assign key strings to keys. There may be up to 16 keys numbered 'A' to 'Z'. +By default keys 'A' to 'F' are assigned Up, Down, Left, Right, Enter, Escape." + +[/glcd/keymap_b] +type = string +check/type = string +default = Down +description = "Assign key strings to keys. There may be up to 16 keys numbered 'A' to 'Z'. +By default keys 'A' to 'F' are assigned Up, Down, Left, Right, Enter, Escape." + +[/glcd/keymap_c] +type = string +check/type = string +default = Left +description = "Assign key strings to keys. There may be up to 16 keys numbered 'A' to 'Z'. +By default keys 'A' to 'F' are assigned Up, Down, Left, Right, Enter, Escape." + +[/glcd/keymap_d] +type = string +check/type = string +default = Right +description = "Assign key strings to keys. There may be up to 16 keys numbered 'A' to 'Z'. +By default keys 'A' to 'F' are assigned Up, Down, Left, Right, Enter, Escape." + +[/glcd/keymap_e] +type = string +check/type = string +default = Enter +description = "Assign key strings to keys. There may be up to 16 keys numbered 'A' to 'Z'. +By default keys 'A' to 'F' are assigned Up, Down, Left, Right, Enter, Escape." + +[/glcd/keymap_f] +type = string +check/type = string +default = Escape +description = "Assign key strings to keys. There may be up to 16 keys numbered 'A' to 'Z'. +By default keys 'A' to 'F' are assigned Up, Down, Left, Right, Enter, Escape." + +[/glcd/keyrepeatinterval] +type = unsigned_short +check/type = unsigned_short +check/range = 0-3000 +default = 500 +description = Time (ms) between repeated key reports. Ignored if KeyRepeatDelay is disabled (set to zero). + +[/glcd/port] +type = string +check/type = string +check/validation = 0x([2-3][0-9A-F]{2}|400) +check/validation/match = LINE +check/validation/message = Not a valid port declaration. legal: 0x200 - 0x400 +default = 0x378 +description = Parallel port to use + +[/glcd/bidirectional] +type = boolean +check/type = boolean +default = yes +description = Use LPT port in bi-directional mode. This should work on most LPT port\ +and is required for proper timing! + +[/glcd/delaybus] +type = boolean +check/type = boolean +default = no +description = Insert additional delays into reads / writes. + +[/glcd/serdisp_name] +type = string +check/type = string +default = t6963 +description = Name of the underlying serdisplib driver, e.g. ctinclud. See +serdisplib documentation for details. + +[/glcd/serdisp_device] +type = string +check/type = string +;check/path = +default = /dev/ppi0 +description = The display device to use, e.g. serraw:/dev/ttyS0,\ +parport:/dev/parport0 or USB:07c0/1501 + + +;TODO: Are quotes really required now when switching to libelektra? +[/glcd/serdisp_options] +type = string +check/type = string +default = "INVERT=1" +description = "Options string to pass to serdisplib during initialization. Use +this to set any display related options (e.g. wiring). The display size is +always set based on the Size configured above! By default, no options are +set. +Important: The value must be quoted as it contains equal signs!" + +[/glcd/x11_pixelsize] +type = string +check/type = string +check/validation = \d+\+\d+ +check/validation/match = LINE +default = 3+1 +check/validation/message = [number]+[number] has to be provided, eg: 3+1 or 5+2 +description = "Each LCD dot is drawn in the X window as a filled rectangle of this size + plus a gap between each filled rectangle. A PixelSize of 3+1 + would draw a 3x3 filled rectangle with a gap of 1 pixel to the right and + bottom, effectively using a 4x4 area of the window. Default is 3+1." + +[/glcd/x11_pixelcolor] +type = string +check/type = string +check/validation = 0x[0-9A-F]{6} +check/validation/match = LINE +check/validation/message = Colors are in RRGGBB format prefixed with "0x" +default = 0x000000 +description = The color of each dot at full contrast. + +[/glcd/x11_backlightcolor] +type = string +check/type = string +check/validation = 0x[0-9A-F]{6} +check/validation/match = LINE +check/validation/message = Colors are in RRGGBB format prefixed with "0x" +default = 0x80FF80 +description = The color of the backlight as full brightness. + +[/glcd/x11_border] +type = unsigned_long +check/type = unsigned_long +check/validation = ^([1-9]\d*|0)$ +check/validation/match = LINE +check/validation/message = Must be a positive number +default = 20 +description = Adds a border (empty space) around the LCD portion of X11 window. + +[/glcd/x11_inverted] +type = boolean +check/type = boolean +default = no +description = Inverts the pixels. + +[/glcd/picolcdgfx_keytimeout] +type = string +check/type = string +check/validation = ([1-9][0-9]*) +check/validation/match = LINE +check/validation/message = Number must be any positive integer >0 +default = 125 +description = Time in ms for usb_read to wait on a key press. + +[/glcd/picolcdgfx_inverted] +type = boolean +check/type = boolean +default = no +description = Inverts the pixels. + +;glcdlib +;================================================== +[/glcdlib/driver] +type = string +check/type = string +default = image +description = " +Specify which graphical display supported by graphlcd-base to use. + Legal values for GRAPHLCD-DRIVER are + specified in graphlcd's configuration file /etc/graphlcd.conf. + For graphlcd 0.13 they comprise avrctl, framebuffer, gu140x32f, gu256x64-372, + gu256x64C-3xx0, hd61830, image, ks0108, noritake800, sed1330, sed1520, serdisp, simlcd, t6963c +" + +[/glcdlib/CharEncoding] +type = string +check/type = string +default = iso8859-2 +description = "character encoding to use" + +[/glcdlib/useft2] +type = boolean +check/type = boolean +default = yes +description = "no=use graphlcd bitmap fonts (they have only one size / font file) +yes=use fonts supported by FreeType2 (needs Freetype2 support in +libglcdprocdriver and its dependants)" + +[/glcdlib/textresolution] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 16x4 +description = "Text resolution in fixed width characters. +(if it won't fit according to available physical pixel resolution +and the minimum available font face size in pixels, then +'DebugBorder' will automatically be turned on)" + +[/glcdlib/fontfile] +type = string +check/type = string +;check/path = +default = /usr/share/fonts/corefonts/courbd.ttf +description = "path to font file to use" + +[/glcdlib/minfontfacesize] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 7x12 +description = "path to font file to use" + +[/glcdlib/contrast] +default = 50 + +[/glcdlib/brightness] +default = 50 + +[/glcdlib/backlight] +type = boolean +check/type = boolean +default = no + +[/glcdlib/upsidedown] +type = boolean +check/type = boolean +default = no + +[/glcdlib/invert] +type = boolean +check/type = boolean +default = no + +[/glcdlib/showdebugframe] +type = boolean +check/type = boolean +default = no + +[/glcdlib/showbigborder] +type = boolean +check/type = boolean +default = no + +[/glcdlib/showthinborder] +type = boolean +check/type = boolean +default = yes + +[/glcdlib/pixelshiftx] +type = short +check/type = short +check/validation = ([0-9]+) +check/validation/match = LINE +check/validation/message = Must be a positive number +default = 0 + +[/glcdlib/pixelshifty] +type = short +check/type = short +check/validation = ([0-9]+) +check/validation/match = LINE +check/validation/message = Must be a positive number +default = 2 + +;glk +;================================================== +[/glk/device] +type = string +check/type = string +;check/path = +default = /dev/lcd +description = "select the serial device to use" + +[/glk/contrast] +default = 500 + +[/glk/speed] +type = unsigned_short +check/type = unsigned_short +check/range = 9600, 19200, 38400, 57600, 115200 +default = 19200 +description = set the serial port speed + +;hd44780 +;================================================== +[/hd44780/connectiontype] +type = enum +check/type = enum +check/enum = 4bit, 8bit, winamp, lcm162, serialLpt, picanlcd, lcdserializer, \ +los-panel, vdr-lcd, vdr-wakeup, ezio, pertelian, lis2, mplay, usblcd, bwctusb, \ +lcd2usb, usbtiny, uss720, USB-4-all, ftdi, i2c, piplate, spi, pifacecad, ethlcd, \ +raspberrypi, gpio +default = 4bit +description = "Select what type of connection. See documentation for available types: + https://github.com/lcdproc/lcdproc/blob/master/docs/lcdproc-user/drivers/hd44780.docbook" + +[/hd44780/model] +type = enum +check/type = enum +check/enum = standard, extended, winstar_oled, pt6314_vfd +default = standard +description = "Select model if have non-standard one which require extra initialization or handling or + just want extra features it offers. + Available: standard (default), extended, winstar_oled, pt6314_vfd + - standard is default, use for LCDs not mentioned below. + - extended, hd66712, ks0073: allows use 4-line 'extended' mode, + same as deprecated now option ExtendedMode=yes + - winstar_oled, weh00xxyya: changes initialization for WINSTAR's WEH00xxyyA displays + and allows handling brightness + - pt6314_vfd: allows handling brightness on PTC's PT6314 VFDs + This option should be independent of connection type." + +[/hd44780/port] +type = string +check/type = string +check/validation = 0x[0-9A-F]{3} +check/validation/match = LINE +check/validation/message = Port must begin with "0x", followed by 3 Hexadezimal values, eg. 0x3BC +default = 0x378 +description = I/O address of the LPT port. Usual values are: 0x278, 0x378 and 0x3BC.\ + For I2C connections this sets the slave address (usually 0x20). + +[/hd44780/device] +type = string +check/type = string +;check/path = +default = /dev/lcd +description = "Device of the serial, I2C, or SPI interface" + +[/hd44780/speed] +type = unsigned_long +check/type = unsigned_long +default = 0 +description = "Bitrate of the serial port (0 for interface default)" + +[/hd44780/keypad] +type = boolean +check/type = boolean +default = no +description = "If you have a keypad connected. +You may also need to configure the keypad layout further on in this file." + +[/hd44780/contrast] +default = 800 + +[/hd44780/brightness] +default = 800 + +[/hd44780/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 300 + +[/hd44780/backlight] +type = enum +check/type = enum +check/enum = none, external, internal, internalCmds +default = yes +description = "Specify if you have a switchable backlight and if yes, can select method for turning it on/off: +# +- none - no switchable backlight is available. For compability also boolean + 0, n, no, off and false are aliases. +- external - use external pin or any other method defined with ConnectionType backlight + handling. For backward compability also this value is chosen for boolean + TRUE values: 1, y, yes, on and true. +- internal - means that backlight is handled using internal commands according + to selected display model (with Model option). Depending on model, + Brightness and OffBrightness options can be taken into account. +- internalCmds - means that commands for turning on and off backlight are given + with extra options BacklightOnCmd and BacklightOffCmd, which would be treated + as catch up (last resort) for other types of displays which have similar features. +# +You can provide multiple occurences of this option to use more than one method. +Default is model specific: Winstar OLED and PT6314 VFD enables internal backlight mode, +for others it is set to none." + +[/hd44780/backlightcmdon] +type = string +check/type = string +check/validation = 0x[0-9A-F]{4} +check/validation/match = LINE +check/validation/message = 4 bytes can be encoded, as integer number in big-endian order (0x0000-0xFFFF) +default = 0x1223 +description = "Commands for enabling internal backlight for use with Backlight=internalCmds. +Up to 4 bytes can be encoded, as integer number in big-endian order. +# +NOTE: this is advanced option, if command contains bits other than only brighness handling, +they must be set accordingly to not disrupt display state. If for example 'FUNCTION SET' command +is used for this purpose, bits of interface length (4-bit / 8-bit) must be set according to +selected ConnectionType." + +[/hd44780/backlightcmdoff] +type = string +check/type = string +check/validation = 0x[0-9A-F]{4} +check/validation/match = LINE +check/validation/message = 4 bytes can be encoded, as integer number in big-endian order (0x0000-0xFFFF) +default = 0x1234 +description = "Commands for disabling internal backlight for use with Backlight=internalCmds. +Up to 4 bytes can be encoded, as integer number in big-endian order." + +[/hd44780/outputport] +type = boolean +check/type = boolean +default = no +description = If you have the additional output port ("bargraph") and you want to\ +be able to control it with the lcdproc OUTPUT command + +[/hd44780/lastline] +type = boolean +check/type = boolean +default = yes +description = "Specifies if the last line is pixel addressable (yes) or it controls an +underline effect (no)." + +[/hd44780/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 20x4 +description = Specifies the size of the LCD.\ +In case of multiple combined displays, this should be the total size. + +[/hd44780/vspan] +type = string +check/type = string +check/validation = ^[1-9][0-9]*(,[1-9][0-9]*)*$ +check/validation/match = LINE +check/validation/message = Declarations must look like this: 2,2 or 2,2,1 +description = "For multiple combined displays: how many lines does each display have. +Vspan=2,2 means both displays have 2 lines." + +[/hd44780/extendedmode] +type = boolean +check/type = boolean +default = no +description = "If you have an HD66712, a KS0073 or another controller with 'extended mode', +set this flag to get into 4-line mode. On displays with just two lines, do +not set this flag. +As an additional restriction, controllers with and without extended mode +AND 4 lines cannot be mixed for those connection types that support more +than one display! +NOTE: This option is deprecated in favour of choosing Model=extended option." + +[/hd44780/lineaddress] +type = string +check/type = string +check/validation = 0x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a line Address. eg. 0x20, 0x10 +default = 0x20 +description = In extended mode, on some controllers like the ST7036 (in 3 line mode)\ +the next line in DDRAM won`t start 0x20 higher. + +[/hd44780/charmap] +type = enum +check/type = enum +check/enum = hd44780_default, hd44780_euro, ea_ks0073,\ +sed1278f_0b, hd44780_koi8_r, hd44780_cp1251, hd44780_8859_5, upd16314,\ +weh001602a_1 +default = hd44780_default +description = "Character map to to map ISO-8859-1 to the LCD's character set. (hd44780_koi8_r, hd44780_cp1251, hd44780_8859_5, upd16314 and weh001602a_1 +are possible if compiled with additional charmaps)" + +[/hd44780/fontbank] +type = unsigned_short +check/type = unsigned_short +check/enum = 0, 1, 2, 3 +default = 0 +description = "Font bank to be used for some displays such as the WINSTAR WEH001602A +0: English/Japanese (default) +1: Western Europe I +2: English/Rusian +3: Western Europe II" + +[/hd44780/delaymult] +type = unsigned_short +check/type = unsigned_short +check/range = 1, 2, 4, 8, 16 +default = 1 +description = "If your display is slow and cannot keep up with the flow of data from +LCDd, garbage can appear on the LCDd. Set this delay factor to 2 or 4 +to increase the delays." + +[/hd44780/keepalivedisplay] +type = unsigned_short +check/type = unsigned_short +check/range = 0-10 +default = 0 +description = "Some displays (e.g. vdr-wakeup) need a message from the driver to that it +is still alive. When set to a value bigger then null the character in the +upper left corner is updated every seconds." + +[/hd44780/refreshdisplay] +type = unsigned_short +check/type = unsigned_short +check/range = 0-20 +default = 0 +description = "If you experience occasional garbage on your display you can use this +option as workaround. If set to a value bigger than null it forces a +full screen refresh seconds." + +[/hd44780/delaybus] +type = boolean +check/type = boolean +default = true +description = "You can reduce the inserted delays by setting this to false. +On fast PCs it is possible your LCD does not respond correctly." + +[/hd44780/keymatrix_4_1] +type = string +check/type = string +default = Enter +description = "If you have a keypad you can assign keystrings to the keys. See +documentation for used terms and how to wire it. For example to give directly connected +key 4 the string 'Enter', use: + KeyDirect_4=Enter For matrix keys use the +X and Y coordinates of the key: + KeyMatrix_1_3=Enter" + +[/hd44780/keymatrix_4_2] +type = string +check/type = string +default = Up +description = "If you have a keypad you can assign keystrings to the keys. See +documentation for used terms and how to wire it. For example to give directly connected +key 4 the string 'Enter', use: + KeyDirect_4=Enter For matrix keys use the +X and Y coordinates of the key: + KeyMatrix_1_3=Enter" + +[/hd44780/keymatrix_4_3] +type = string +check/type = string +default = Down +description = "If you have a keypad you can assign keystrings to the keys. See +documentation for used terms and how to wire it. For example to give directly connected +key 4 the string 'Enter', use: + KeyDirect_4=Enter For matrix keys use the +X and Y coordinates of the key: + KeyMatrix_1_3=Enter" + +[/hd44780/keymatrix_4_4] +type = string +check/type = string +default = Escape +description = "If you have a keypad you can assign keystrings to the keys. See +documentation for used terms and how to wire it. For example to give directly connected +key 4 the string 'Enter', use: + KeyDirect_4=Enter For matrix keys use the +X and Y coordinates of the key: + KeyMatrix_1_3=Enter" + + +;icp_a106 +;================================================== +[/icp_a106/device] +type = string +check/type = string +;check/path = +default = /dev/lcd +description = "Device of the serial, I2C, or SPI interface" + +[/icp_a106/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 20x2 +description = Display dimensions + +;IOWarrior +;================================================== +[/iowarrior/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 20x4 +description = Display dimensions + +[/iowarrior/serialnumber] +type = any +check/type = any +default = 00000674 +description = serial number. Must be exactly as listed by usbview\ +(if not given, the 1st IOWarrior found gets used) + +[/iowarrior/extendedmode] +type = boolean +check/type = boolean +default = no +description = "If you have an HD66712, a KS0073 or another 'almost HD44780-compatible', +set this flag to get into extended mode (4-line linear)." + +[/iowarrior/lastline] +type = boolean +check/type = boolean +default = yes +description = "Specifies if the last line is pixel addressable (yes) or it controls an +underline effect (no)." + +;imon +;================================================== +[/imon/device] +type = string +check/type = string +;check/path = +default = /dev/lcd0 +description = "select the device to use" + +[/imon/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 16x2 +description = Display dimensions + +[/imon/charmap] +type = enum +check/type = enum +check/enum = hd44780_euro, upd16314, hd44780_koi8_r,\ +hd44780_cp1251, hd44780_8859_5, upd16314, hd44780_koi8_r,\ +hd44780_cp1251, hd44780_8859_5, none +default = none +description = "Character map to to map ISO-8859-1 to the displays character set. (upd16314, hd44780_koi8_r, +hd44780_cp1251, hd44780_8859_5 are possible if compiled with additional +charmaps)" + +;imonlcd +;================================================== +[/imonlcd/protocol] +type = string +check/type = string +check/enum = 0, 1 +default = 0 +description = "Specify which iMon protocol should be used +Choose 0 for 15c2:ffdc device, +Choose 1 for 15c2:0038 device" + +[/imonlcd/onexit] +type = unsigned_short +check/type = unsigned_short +check/range = 0-2 +default = 1 +description = "Set the exit behavior +0 means leave shutdown message, +1 means show the big clock, +2 means blank device" + +[/imonlcd/device] +type = string +check/type = string +;check/path = +default = /dev/lcd0 +description = "select the output device to use" + +[/imonlcd/contrast] +default = 200 + +[/imonlcd/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 96x16 +description = Specify the size of the display in pixels + +[/imonlcd/backlight] +type = boolean +check/type = boolean +default = on +description = "Set the backlight state" + +[/imonlcd/discmode] +type = enum +check/type = enum +check/enum = 0, 1 +default = 0 +description = "Set the disc mode +0 => spin the 'slim' disc - two disc segments, +1 => their complement spinning;" + +;IrMan +;================================================== +[/irman/device] +type = string +check/type = string +;check/path = +default = /dev/irman +description = "select the device to use" + +[/irman/config] +type = string +check/type = string +;check/path = +default = /etc/irman.cfg +description = "Select the configuration file to use" + +;irtrans +;================================================== +[/irtrans/backlight] +type = boolean +check/type = boolean +default = no +description = "Does the device have a backlight?" + +[/irtrans/hostname] +type = string +check/type = string +default = localhost +description = "IRTrans device to connect to" + +[/irtrans/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 16x2 +description = Specify the size of the display in pixels + +;joy +;================================================== +[/joy/device] +type = string +check/type = string +;check/path = +default = /dev/js0 +description = "Select the input device to use" + +[/joy/map_axis1neg] +type = string +check/type = string +default = Left +description = "set the axis map" + +[/joy/map_axis1pos] +type = string +check/type = string +default = Right +description = "set the axis map" + +[/joy/map_axis2neg] +type = string +check/type = string +default = Up +description = "set the axis map" + +[/joy/map_axis2pos] +type = string +check/type = string +default = Down +description = "set the axis map" + +[/joy/map_button1] +type = string +check/type = string +default = Enter +description = "set the button map" + +[/joy/map_button2] +type = string +check/type = string +default = Escape +description = "set the button map" + +;lb216 +;================================================== +[/lb216/device] +type = string +check/type = string +;check/path = +default = /dev/lcd +description = "Select the input device to use" + +[/lb216/brightness] +check/range = 0 - 255 +default = 200 + +[/lb216/speed] +type = unsigned_short +check/type = unsigned_short +check/range = 2400, 9600 +default = 9600 +description = Set the communication speed + +[/lb216/reboot] +default = no + +;lcdm001 +;================================================== +[/lcdm001/device] +type = string +check/type = string +;check/path = +default = /dev/ttyS1 +description = "select the device to use" + +[/lcdm001/pausekey] +type = string +check/type = string +default = LeftKey +description = "Normal Context: Pause/Continue +Menu Context: Enter/select" + +[/lcdm001/backkey] +type = string +check/type = string +default = UpKey +description = "Normal Context: Back(Go to previous screen) +Menu Context: Up/Left" + +[/lcdm001/forwardkey] +type = string +check/type = string +default = DownKey +description = "Normal Context: Forward(Go to next screen) +Menu Context: Down/Right" + +[/lcdm001/mainmenukey] +type = string +check/type = string +default = RightKey +description = "Normal Context: Open main menu +Menu Context: Exit/Cancel" + + +;lcterm +;================================================== +[/lcterm/device] +type = string +check/type = string +;check/path = +default = /dev/ttyS1 +description = "select the device to use" + +[/lcterm/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 16x2 +description = Specify the size of the display in pixels + +;linux_input +;================================================== +[/linux_input/device] +type = string +check/type = string +;check/path = +default = /dev/input/event0 +description = "select the device to use" + +[/linux_input/key/_/] +type = string +check/type = string +description = "specify a non-default key map, eg.: +/linux_input/key/#01 = 1 +/linux_input/key/#28 = Enter" + +;lirc +;================================================== +[/lirc/lircrc] +type = string +check/type = string +;check/path = +default = ~/.lircrc +description = "select the device to use" + +[lirc/prog] +type = string +check/type = string +default = lcdd +description = "Must be the same as in your lircrc" + +;lis +;================================================== +[/lis/brightness] +default = 1000 +description = "Set the initial brightness +0-250 = 25%, 251-500 = 50%, 501-750 = 75%, 751-1000 = 100%" + +[/lis/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 16x2 +description = Columns by lines + +[/lis/vendorid] +type = string +check/type = string +check/validation = 0x([0-9A-F]{4}) +check/validation/match = LINE +check/validation/message = Not a valid size VendorID: 0x0000-0xFFFF is allowed +default = 0x0403 +description = USB Vendor ID. Change only if testing a compatible device. + +[/lis/productid] +type = string +check/type = string +check/validation = 0x([0-9A-F]{4}) +check/validation/match = LINE +check/validation/message = Not a valid size ProductID: 0x0000-0xFFFF is allowed +default = 0x6001 +description = USB Product ID. Change only if testing a compatible device. + +[/lis/backlight] +type = Lastline +check/type = Lastline +default = yes +description = "Specifies if the last line is pixel addressable (yes) or it only controls an +underline effect (no)" + +;MD8800 +;================================================== +[/md8800/device] +type = string +check/type = string +;check/path = +default = /dev/ttyS1 +description = "select the device to use" + +[/md8800/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 16x2 +description = display size + +[/md8800/brightness] +default = 1000 + +[/md8800/offbrightness] +default = 0 +description = "Set the initial off-brightness +This value is used when the display is normally +switched off in case LCDd is inactive" + +;mdm166a +;================================================== +[/mdm166a/clock] +type = enum +check/type = enum +check/enum = no, small, big +default = no +description = "Show self-running clock after LCDd shutdown" + +[/mdm166a/dimming] +type = boolean +check/type = boolean +default = no +description = "Dim display, no dimming gives full brightness" + +[/mdm166a/offdimming] +type = boolean +check/type = boolean +default = no +description = "Dim display in case LCDd is inactive" + +;ms6931 +;================================================== +[/ms6931/device] +type = string +check/type = string +;check/path = +default = /dev/ttyS1 +description = "select the device to use" + +[/ms6931/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 16x2 +description = display size + +;mtc_s16209x +;================================================== +[/mtc_s16209x/device] +type = string +check/type = string +;check/path = +default = /dev/lcd +description = "Select the output device to use" + +[/mtc_s16209x/brightness] +check/range = 0 - 255 +default = 200 + +[/mtc_s16209x/reboot] +default = no + +;MtxOrb +;================================================== +[/mtxorb/device] +type = string +check/type = string +;check/path = +default = /dev/ttyS0 +description = "Select the output device to use" + +[/mtxorb/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 20x4 +description = display size + +[/mtxorb/type] +type = enum +check/type = enum +check/enum = lcd, lkd, vfd, vkd +default = lcd +description = "Set the display type" + +[/mtxorb/contrast] +default = 480 +description = "Set the initial contrast. +NOTE: The driver will ignore this if the display +is a vfd or vkd as they don't have this feature" + +[/mtxorb/hasadjustablebacklight] +type = boolean +check/type = boolean +default = no +description = "Some old displays do not have an adjustable backlight but only can +switch the backlight on/off. If you experience randomly appearing block +characters, try setting this to false." + +[/mtxorb/brightness] +default = 1000 + +[/mtxorb/offbrightness] +default = 0 +description = "Set the initial off-brightness +This value is used when the display is normally +switched off in case LCDd is inactive" + +[/mtxorb/speed] +type = unsigned_short +check/type = unsigned_short +check/range = 1200, 2400, 9600, 19200 +default = 19200 +description = Set the communication + +[/mtxorb/keymap_a] +type = string +check/type = string +description = "By default no keys are mapped, meaning the keypad is not used at all." + +[/mtxorb/keymap_b] +type = string +check/type = string +description = "By default no keys are mapped, meaning the keypad is not used at all." + +[/mtxorb/keymap_c] +type = string +check/type = string +description = "By default no keys are mapped, meaning the keypad is not used at all." + +[/mtxorb/keymap_d] +type = string +check/type = string +description = "By default no keys are mapped, meaning the keypad is not used at all." + +[/mtxorb/keymap_e] +type = string +check/type = string +description = "By default no keys are mapped, meaning the keypad is not used at all." + +[/mtxorb/keymap_f] +type = string +check/type = string +description = "By default no keys are mapped, meaning the keypad is not used at all." + +;mx5000 +;================================================== +[/mx5000/device] +type = string +check/type = string +;check/path = +default = /dev/hiddev0 +description = "Select the output device to use" + +[/mx5000/waitafterrefresh] +type = unsigned_long +check/type = unsigned_long +check/validation = [1-9]\d* +check/validation/match = LINE +check/validation/message = WaitAfterRefresh must be a positive number +default = 1000 +description = Time to wait in ms after the refresh screen has been sent + +;NoritakeVFD +;================================================== +[/noritakevfd/device] +type = string +check/type = string +;check/path = +default = /dev/lcd +description = "device where the VFD is. Usual values are /dev/ttyS0 and /dev/ttyS1" + +[/noritakevfd/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 20x4 +description = display size + +[/noritakevfd/brightness] +default = 1000 + +[/noritakevfd/offbrightness] +default = 0 +description = "Set the initial off-brightness. +This value is used when the display is normally +switched off in case LCDd is inactive" + +[/noritakevfd/speed] +type = unsigned_long +check/type = unsigned_long +check/range = 1200, 2400, 9600, 19200, 115200 +default = 19200 +description = set the serial port speed + +[/noritakevfd/parity] +type = unsigned_long +check/type = unsigned_long +check/range = 0-2 +default = 0 +description = "Set serial data parity +Meaning: 0(=none), 1(=odd), 2(=even)" + +[/noritakevfd/reboot] +default = no + +;Olimex_MOD_LCD1x9 +;================================================== +[/olimex_mod_lcd1x9/device] +type = string +check/type = string +;check/path = +default = /dev/i2c-0 +description = "device file of the i2c controller" + +;picolcd +;================================================== +[/picolcd/keytimeout] +type = unsigned_short +check/type = unsigned_short +check/range = 0-1000 +default = 500 +description = "KeyTimeout is only used if the picoLCD driver is built with libusb-0.1. When +built with libusb-1.0 key and IR data is input asynchronously so there is no +need to wait for the USB data. +KeyTimeout is the time in ms that LCDd spends waiting for a key press before +cycling through other duties. Higher values make LCDd use less CPU time and +make key presses more detectable. Lower values make LCDd more responsive +but a little prone to missing key presses. 500 (.5 second) is the default +and a balanced value." + +[/picolcd/keyrepeatdelay] +type = unsigned_short +check/type = unsigned_short +check/range = 0-3000 +default = 300 +description = "Key auto repeat is only available if the picoLCD driver is built with +libusb-1.0. Use KeyRepeatDelay and KeyRepeatInterval to configure key auto +repeat. +# +Key auto repeat delay (time in ms from first key report to first repeat). Use +zero to disable auto repeat." + +[/picolcd/keyrepeatinterval] +type = unsigned_short +check/type = unsigned_short +check/range = 0-3000 +default = 200 +description = "Key auto repeat interval (time in ms between repeat reports). Only used if +KeyRepeatDelay is not zero." + +[/picolcd/backlight] +type = boolean +check/type = boolean +default = on +description = Sets the initial state of the backlight upon start-up. + +[/picolcd/brightness] +default = 1000 +description = "Set the initial brightness [default: 1000; legal: 0 - 1000]. Works only +with the 20x4 device" + +[/picolcd/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +description = "Set the brightness while the backlight is 'off'. +Works only with the 20x4 device." + +[/picolcd/contrast] +default = 1000 + +[/picolcd/linklights] +type = boolean +check/type = boolean +default = off +description = Link the key lights to the backlight? + +[/picolcd/keylights] +type = boolean +check/type = boolean +default = on +description = Light the keys? + +[/picolcd/key0light] +type = boolean +check/type = boolean +default = on +description = "If Keylights is on, the you can unlight specific keys below: +Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. +There is no LED for the +/- keys. This is a handy way to indicate to users +which keys are disabled." + +[/picolcd/key1light] +type = boolean +check/type = boolean +default = on +description = "If Keylights is on, the you can unlight specific keys below: +Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. +There is no LED for the +/- keys. This is a handy way to indicate to users +which keys are disabled." + +[/picolcd/key2light] +type = boolean +check/type = boolean +default = on +description = "If Keylights is on, the you can unlight specific keys below: +Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. +There is no LED for the +/- keys. This is a handy way to indicate to users +which keys are disabled." + +[/picolcd/key3light] +type = boolean +check/type = boolean +default = on +description = "If Keylights is on, the you can unlight specific keys below: +Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. +There is no LED for the +/- keys. This is a handy way to indicate to users +which keys are disabled." + +[/picolcd/key4light] +type = boolean +check/type = boolean +default = on +description = "If Keylights is on, the you can unlight specific keys below: +Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. +There is no LED for the +/- keys. This is a handy way to indicate to users +which keys are disabled." + +[/picolcd/key5light] +type = boolean +check/type = boolean +default = on +description = "If Keylights is on, the you can unlight specific keys below: +Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. +There is no LED for the +/- keys. This is a handy way to indicate to users +which keys are disabled." + +[/picolcd/lirchost] +;check/ipaddr = +type = string +check/type = string +default = 127.0.0.1 +description = Host name or IP address of the LIRC instance that is to receive IR codes\ +If not set, or set to an empty value, IR support is disabled. + +[/picolcd/lircport] +; PORT +check/; PORT +type = unsigned_short +default = 8765 +description = UDP port on which LIRC is listening + +[/picolcd/lirctime_us] +type = boolean +check/type = boolean +default = off +description = "UDP data time unit for LIRC +On: times sent in microseconds (requires LIRC UDP driver that accepts this). +Off: times sent in 'jiffies' (1/16384s) (supported by standard LIRC UDP driver)." + +[/picolcd/lircflushthreshold] +type = unsigned_long +check/type = unsigned_long +check/validation = [1-9]\d{3,} +check/validation/match = LINE +check/validation/message = LircFlushThreshold must be a positive number >1000 +default = 1000 +description = "Threshold in microseconds of the gap that triggers flushing the IR data +to lirc [default: 8000; legal: 1000 - ] +If LircTime_us is on values greater than 32.767ms will disable the flush +If LircTime_us is off values greater than 1.999938s will disable the flush" + + +;pyramid +;================================================== +[/pyramid/device] +type = string +check/type = string +;check/path = +default = /dev/lcd +description = "device to connect to" + +;rawserial +;================================================== +[/rawserial/device] +type = string +check/type = string +;check/path = +default = /dev/cuaU0 +description = "Select the output device to use" + +[/rawserial/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 40x4 +description = "Specifies the size of the LCD. If this driver is loaded as a secondary driver +it always adopts to the size of the primary driver. If loaded as the only +(or primary) driver, the size can be set." + +[/rawserial/updaterate] +type = float +check/type = float +default = 1 +description = "How often to dump the LCD contents out the port, in Hertz (times per second) +1 = once per second, 4 is 4 times per second, 0.1 is once every 10 seconds. +[default: 1; legal: 0.0005 - 10]" + +[/rawserial/speed] +type = unsigned_long +check/type = unsigned_long +default = 9600 +description = "Serial port baudrate [default: 9600]" + +;sed1330 +;================================================== + +[/sed1330/port] +type = string +check/type = string +check/validation = 0x([0-9A-F]{3}) +check/validation/match = LINE +check/validation/message = Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC +default = 0x378 +description = Port where the LPT is. Common values are 0x278, 0x378 and 0x3BC + +[/sed1330/type] +type = enum +check/type = enum +check/enum = G321D, G121C, G242C, G191D, G2446, SP14Q002 +default = G321D +description = "Type of LCD module. +Note: Currently only tested with G321D & SP14Q002." + +[/sed1330/cellsize] +type = string +check/type = string +check/validation =[6-8]x([1-9][0-6]|[1-9]) +check/validation/match = LINE +check/validation/message = Width x Height of a character cell in pixels [legal: 6x7 - 8x16] +default = 6x10 +description = Width x Height of a character cell in pixels + +[/sed1330/connectiontype] +type = enum +check/type = enum +check/enum = classic, bitshaker +default = classic +description = "Select what type of connection" + +;sed1520 +;================================================== +[/sed1520/port] +type = string +check/type = string +check/validation = 0x([0-9A-F]{3}) +check/validation/match = LINE +check/validation/message = Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC +default = 0x378 +description = Port where the LPT is. Usual values are 0x278, 0x378 and 0x3BC + +[/sed1520/interfacetype] +type = unsigned_short +check/type = unsigned_short +check/range = 68, 80 +default = 80 +description = "Select the interface type (wiring) for the display. Supported values are +68 for 68-style connection (RESET level high) and 80 for 80-style connection +(RESET level low)" + +[/sed1520/delaymult] +type = unsigned_short +check/type = unsigned_short +check/range = 0-1000 +default = 1 +description = "On fast machines it may be necessary to slow down transfer to the display. +If this value is set to zero, delay is disabled. Any value greater than +zero slows down each write by one microsecond." + +[/sed1520/haveinverter] +type = boolean +check/type = boolean +default = yes +description = "The original wiring used an inverter to drive the control lines. If you do +not use an inverter set haveInverter to no." + +[/sed1520/invertedmapping] +type = boolean +check/type = boolean +default = no +description = "On some displays column data in memory is mapped to segment lines from right +to left. This is called inverted mapping (not to be confused with +'haveInverter' from above)." + +[/sed1520/usehardreset] +type = boolean +check/type = boolean +default = no +description = "At least one display is reported (Everbouquet MG1203D) that requires sending +three times 0xFF before a reset during initialization." + +;serialPOS +;================================================== +[/serialpos/device] +type = string +check/type = string +;check/path = +default = /dev/ttyS0 +description = "Device to use in serial mode" + +[/serialpos/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 16x2 +description = "Specifies the size of the display in characters." + +[/serialpos/cellsize] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 5x8 +description = "Specifies the cell size of each character cell on the display in characters." + +[/serialpos/custom_chars] +type = unsigned_long +check/type = unsigned_long +check/validation = ^([1-9]\d*|0)$ +check/validation/match = LINE +check/validation/message = Must be any positive number including 0 +default = 0 +description = "Specifies the number of custom characters supported by the display. +Custom characters are only used for the rendering of horizontal bars +and vertical bars. For displays whose cell character cell widths are +lower than the number of custom characters supported, +then custom characters will be used to render the horizontal bars. +For more information look at: https://github.com/lcdproc/lcdproc/blob/master/docs/lcdproc-user/drivers/serialPOS.docbook" + +[/serialpos/type] +type = enum +check/type = enum +check/enum = AEDEX, CD5220, Epson, Emax, LogicControls, Ultimate +default = AEDEX +description = "Set the communication protocol to use with the POS display." + +[/serialpos/speed] +type = unsigned_short +check/type = unsigned_short +check/range = 1200, 2400, 4800, 9600, 19200, 115200 +default = 9600 +description = communication baud rate with the display + +;serialVFD +;================================================== +[/serialvfd/type] +type = unsigned_short +check/type = unsigned_short +check/enum = 0, 1, 2, 3, 4, 5, 6, 7, 8 +default = 0 +description = "Specifies the displaytype.[default: 0] +0 NEC (FIPC8367 based) VFDs. +1 KD Rev 2.1. +2 Noritake VFDs (*). +3 Futaba VFDs +4 IEE S03601-95B +5 IEE S03601-96-080 (*) +6 Futaba NA202SD08FA (allmost IEE compatible) +7 Samsung 20S207DA4 and 20S207DA6 +8 Nixdorf BA6x / VT100 +(* most should work, not tested yet.)" + +[/serialvfd/use_parallel] +type = boolean +check/type = boolean +default = no +description = "'no' if display connected serial, 'yes' if connected parallel. +I.e. serial by default" + +[/serialvfd/custom-characters] +type = unsigned_long +check/type = unsigned_long +check/validation = ^([1-9]\d*|0)$ +check/validation/match = LINE +check/validation/message = Must be any positive number including 0 +default = 0 +description = "Number of Custom-Characters. default is display type dependent" + +[/serialvfd/port] +type = string +check/type = string +check/validation = 0x([0-9A-F]{3}) +check/validation/match = LINE +check/validation/message = Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC +default = 0x378 +description = Portaddress where the LPT is. Used in parallel mode only. Usual values are 0x278, 0x378 and 0x3BC. + +[/serialvfd/portwait] +type = unsigned_short +check/type = unsigned_short +check/range = 0-255 +default = 2 +description = Set parallel port timing delay (us). Used in parallel mode only. + +[/serialvfd/device] +type = string +check/type = string +;check/path = +default = /dev/ttyS1 +description = "Device to use in serial mode. Usual values are /dev/ttyS0 and /dev/ttyS1" + +[/serialvfd/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 20x2 +description = "Specifies the size of the VFD." + +[/serialvfd/brightness] +default = 1000 +description = Set the initial brightness. (4 steps 0-250, 251-500, 501-750, 751-1000) + +[/serialvfd/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +description = "Set the initial off-brightness +This value is used when the display is normally +switched off in case LCDd is inactive +(4 steps 0-250, 251-500, 501-750, 751-1000)" + +[/serialvfd/speed] +type = unsigned_short +check/type = unsigned_short +check/range = 1200, 2400, 9600, 19200, 115200 +default = 9600 +description = set the serial port speed + +[/serialvfd/iso_8859_1] +type = boolean +check/type = boolean +default = yes +description = "enable ISO 8859 1 compatibility" + +;stv5730 +;================================================== +[/stv5730/port] +type = string +check/type = string +check/validation = 0x([0-9A-F]{3}) +check/validation/match = LINE +check/validation/message = Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC +default = 0x378 +description = Port the device is connected to + +;SureElec +;================================================== +[/sureelec/device] +type = string +check/type = string +;check/path = +default = /dev/ttyUSB0 +description = "Port the device is connected to (by default first USB serial port)" + +[/sureelec/edition] +type = unsigned_short +check/type = unsigned_short +check/range = 1-3 +default = 2 +description = Edition level of the device (can be 1, 2 or 3) + +[/sureelec/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 16x2 +description = "set display size +Note: The size can be obtained directly from device for edition 2 & 3." + +[/sureelec/contrast] +default = 480 +description = Set the initial contrast + +[/sureelec/brightness] +default = 480 +description = Set the initial brightness + +[/sureelec/offbrightness] +check/range = 1-1000 +default = 100 +description = "Set the initial off-brightness +This value is used when the display is normally +switched off in case LCDd is inactive" + +;svga +;================================================== +[/svga/mode] +type = string +check/type = string +default = G320x240x256 +description = "svgalib mode to use [default: G320x240x256 ] +legal values are supported svgalib modes. See man7 pages for allowed values" + + + +[/svga/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 20x4 +description = "set display size" + +[/svga/contrast] +default = 500 +description = "Set the initial contrast [default: 500; legal: 0 - 1000] +Can be set but does not change anything internally" + +[/svga/brightness] +check/range = 1-1000 +default = 1000 +description = Set the initial brightness + +[/svga/offbrightness] +check/range = 1-1000 +default = 500 +description = "Set the initial off-brightness +This value is used when the display is normally +switched off in case LCDd is inactive" + +;text +;================================================== +[/text/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 20x4 +description = "set display size" + +;t6963 +;================================================== +[/t6963/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 128x64 +description = "set display size in pixels" + +[/t6963/port] +type = string +check/type = string +check/validation = 0x([2-3][0-9A-F]{2}|400) +check/validation/match = LINE +check/validation/message = Not a valid port declaration. legal: 0x200 - 0x400 +default = 0x378 +description = Parallel port to use + +[/t6963/bidirectional] +type = boolean +check/type = boolean +default = yes +description = "Use LPT port in bi-directional mode. This should work on most LPT port and +is required for proper timing!" + +[/t6963/delaybus] +type = boolean +check/type = boolean +default = no +description = "Insert additional delays into reads / writes." + +[/t6963/cleargraphic] +type = boolean +check/type = boolean +default = no +description = "Clear graphic memory on start-up." + +;tyan +;================================================== +[/tyan/device] +type = string +check/type = string +;check/path = +default = /dev/lcd +description = "Select the output device to use" + +[/tyan/speed] +type = unsigned_short +check/type = unsigned_short +check/range = 4800, 9600 +default = 9600 +description = Set the communication speed + +[/tyan/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 16x2 +description = "set display size" + + +;ula200 +;================================================== +[/ula200/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 20x4 +description = "Select the LCD size" + +[/ula200/keymap_a] +type = string +check/type = string +default = Up +description = "If you have a non standard keypad you can associate any keystrings to keys. +There are 6 input key in the CwLnx hardware that generate characters +from 'A' to 'F'. +# +You can leave those unchanged if you have a standard keypad. +You can change it if you want to report other keystrings or have a non +standard keypad." + +[/ula200/keymap_b] +type = string +check/type = string +default = Down +description = "If you have a non standard keypad you can associate any keystrings to keys. +There are 6 input key in the CwLnx hardware that generate characters +from 'A' to 'F'. +# +You can leave those unchanged if you have a standard keypad. +You can change it if you want to report other keystrings or have a non +standard keypad." + +[/ula200/keymap_c] +type = string +check/type = string +default = Left +description = "If you have a non standard keypad you can associate any keystrings to keys. +There are 6 input key in the CwLnx hardware that generate characters +from 'A' to 'F'. +# +You can leave those unchanged if you have a standard keypad. +You can change it if you want to report other keystrings or have a non +standard keypad." + +[/ula200/keymap_d] +type = string +check/type = string +default = Right +description = "If you have a non standard keypad you can associate any keystrings to keys. +There are 6 input key in the CwLnx hardware that generate characters +from 'A' to 'F'. +# +You can leave those unchanged if you have a standard keypad. +You can change it if you want to report other keystrings or have a non +standard keypad." + +[/ula200/keymap_e] +type = string +check/type = string +default = Enter +description = "If you have a non standard keypad you can associate any keystrings to keys. +There are 6 input key in the CwLnx hardware that generate characters +from 'A' to 'F'. +# +You can leave those unchanged if you have a standard keypad. +You can change it if you want to report other keystrings or have a non +standard keypad." + +[/ula200/keymap_f] +type = string +check/type = string +default = Escape +description = "If you have a non standard keypad you can associate any keystrings to keys. +There are 6 input key in the CwLnx hardware that generate characters +from 'A' to 'F'. +# +You can leave those unchanged if you have a standard keypad. +You can change it if you want to report other keystrings or have a non +standard keypad." + + +;sli +;================================================== +[/sli/device] +type = string +check/type = string +;check/path = +default = /dev/lcd +description = "Select the output device to use" + +[/sli/speed] +type = unsigned_short +check/type = unsigned_short +check/range = 1200, 2400, 9600, 19200, 38400, 57600, 115200 +default = 19200 +description = Set the communication speed + +;vlsys_m428 +;================================================== +[/vlsys_m428/device] +type = string +check/type = string +;check/path = +default = /dev/ttyUSB0 +description = "Select the output device to use" + +;xosd +;================================================== +[/xosd/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 20x4 +description = "set display size" + +[/xosd/offset] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid offset declaration. Examples: 200x200 +default = 0x0 +description = "Offset in pixels from the top-left corner of the monitor [default: 0x0]" + +[/xosd/Font] +type = string +check/type = string +default = "-*-terminus-*-r-*-*-*-320-*-*-*-*-*" +description = "X font to use, in XLFD format, as given by 'xfontsel'" + +;yard2LCD +;================================================== +[/yard2lcd/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 20x4 +description = "set display size" \ No newline at end of file From 65c3cdd9a2e58699d90a86eacb989a94dc4781cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Thu, 9 May 2019 12:30:16 +0200 Subject: [PATCH 02/72] lcdvc: add command line options to spec --- clients/lcdvc/specification/lcdvc-spec.ini | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/clients/lcdvc/specification/lcdvc-spec.ini b/clients/lcdvc/specification/lcdvc-spec.ini index 4a2831a2..8c325255 100644 --- a/clients/lcdvc/specification/lcdvc-spec.ini +++ b/clients/lcdvc/specification/lcdvc-spec.ini @@ -9,6 +9,8 @@ type = string check/type = string default = 127.0.0.1 description = Address of the LCDd server +opt=a +opt/long=address [/lcdvc/port] check/ipaddr = @@ -16,6 +18,8 @@ type = unsigned_short check/type = unsigned_short default = 13666 description = Port to attach to LCDd server +opt=p +opt/long=port [/lcdvc/reportlevel] type = unsigned_short @@ -23,12 +27,17 @@ check/type = unsigned_short check/range = 0-5 default = 2 description = Sets the reporting level, defaults to warnings and errors only. +opt=r +opt/long=report-level [/lcdvc/reporttosyslog] type = boolean check/type = boolean default = no description = Should we report to syslog instead of stderr? +opt=s +opt/long=report-to-syslog +opt/arg=none [/lcdvc/upkey] type = string @@ -73,6 +82,9 @@ type = boolean check/type = boolean default = false description = "whether to run in foreground" +opt=f +opt/long=foreground +opt/arg=none [/lcdvc/pidfile] type = string From 13e21c176c228219b43bec81332e18ef63fd964b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Fri, 10 May 2019 17:42:29 +0200 Subject: [PATCH 03/72] lcdvc: elektrify with codegen --- clients/lcdvc/Makefile.am | 9 +- clients/lcdvc/lcdvc.c | 175 +++++---------------- clients/lcdvc/specification/lcdvc-spec.ini | 8 +- configure.ac | 4 +- 4 files changed, 57 insertions(+), 139 deletions(-) diff --git a/clients/lcdvc/Makefile.am b/clients/lcdvc/Makefile.am index bc5c4f60..b57d7d63 100644 --- a/clients/lcdvc/Makefile.am +++ b/clients/lcdvc/Makefile.am @@ -1,10 +1,13 @@ ## Process this file with automake to produce Makefile.in - sysconf_DATA = lcdvc.conf bin_PROGRAMS = lcdvc lcdvc_SOURCES = lcdvc.c lcdvc.h lcd_link.c lcd_link.h vc_link.c vc_link.h +nodist_lcdvc_SOURCES = elektragen.c elektragen.h +lcdvc.$(OBJEXT): elektragen.c elektragen.h + +CLEANFILES = elektragen.c elektragen.h lcdvc_LDADD = ../../shared/libLCDstuff.a @@ -20,4 +23,8 @@ AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/shared -DSYSCONFDIR=\"$(sysconfdir EXTRA_DIST = $(sysconf_DATA) +KDB ?= kdb +elektragen.c elektragen.h: specification/lcdvc-spec.ini + $(KDB) gen -F ni=specification/lcdvc-spec.ini elektra "spec/sw/lcdproc/lcdvc/#0/current" elektragen initFn=loadConfiguration specloadFn=doSpecloadCheck helpFn=printHelpMessage + ## EOF diff --git a/clients/lcdvc/lcdvc.c b/clients/lcdvc/lcdvc.c index 2ae28757..6ababad0 100644 --- a/clients/lcdvc/lcdvc.c +++ b/clients/lcdvc/lcdvc.c @@ -31,32 +31,14 @@ #include "vc_link.h" #include "lcdvc.h" -#if !defined(SYSCONFDIR) -# define SYSCONFDIR "/etc" -#endif -#if !defined(PIDFILEDIR) -# define PIDFILEDIR "/var/run" -#endif - -#define DEFAULT_CONFIGFILE SYSCONFDIR "/lcdvc.conf" -#define DEFAULT_PIDFILE PIDFILEDIR "/lcdvc.pid" - +#include "elektragen.h" -char *help_text = +char * help_prefix = "lcdvc - LCDproc virtual console\n" "\n" "Copyright (c) 2002, Joris Robijn, 2006-2008 Peter Marschall.\n" "This program is released under the terms of the GNU General Public License.\n" -"\n" -"Usage: lcdvc []\n" -" where are:\n" -" -c Specify configuration file ["DEFAULT_CONFIGFILE"]\n" -" -a
DNS name or IP address of the LCDd server [localhost]\n" -" -p port of the LCDd server [13666]\n" -" -f Run in foreground\n" -" -r Set reporting level (0-5) [2: errors and warnings]\n" -" -s <0|1> Report to syslog (1) or stderr (0, default)\n" -" -h Show this help\n"; +"\n"; /* Variables set by config */ int foreground = FALSE; @@ -68,7 +50,6 @@ char *keys[4]; /* Other global variables */ char *progname = "lcdvc"; -char *configfile = UNSET_STR; char *pidfile = NULL; int pidfile_written = FALSE; @@ -77,24 +58,19 @@ int Quit = 0; /**< indicate end of main loop */ /* Function prototypes */ static void exit_program(int val); static int process_command_line(int argc, char **argv); -static int process_configfile(char *configfile); +static int process_config (); static int main_loop(void); int main(int argc, char **argv) { + // only returns, if not in specload mode + doSpecloadCheck (argc, argv); + int e = 0; struct sigaction sa; - CHAIN( e, process_command_line( argc, argv )); - if (strcmp( configfile, UNSET_STR ) == 0) { - configfile = DEFAULT_CONFIGFILE; - } - CHAIN( e, process_configfile( configfile )); - if (report_dest == UNSET_INT || report_level == UNSET_INT) { - report_dest = RPT_DEST_STDERR; - report_level = RPT_ERR; - } + CHAIN( e, process_config ()); set_reporting( progname, report_level, report_dest ); CHAIN( e, open_vcs() ); @@ -152,115 +128,50 @@ static void exit_program(int val) exit(val); } - -static int process_command_line(int argc, char **argv) +static void on_fatal_error(ElektraError * error) // TODO: finalize method { - int c; - int error = 0; - - /* No error output from getopt */ - opterr = 0; - - while ((c = getopt(argc, argv, "hc:a:p:fr:s:")) > 0) { - char *end; - int temp_int; - - switch (c) { - case 'h': - fprintf(stderr, "%s", help_text); - exit(EXIT_SUCCESS); - /* NOTREACHED */ - case 'c': - configfile = strdup(optarg); - break; - case 'a': - address = strdup(optarg); - break; - case 'p': - temp_int = strtol(optarg, &end, 0); - if ((*optarg != '\0') && (*end == '\0') && - (temp_int > 0) && (temp_int <= 0xFFFF)) { - port = temp_int; - } else { - report(RPT_ERR, "Illegal port value %s", optarg); - error = -1; - } - break; - case 'f': - foreground = TRUE; - break; - case 'r': - temp_int = strtol(optarg, &end, 0); - if ((*optarg != '\0') && (*end == '\0') && (temp_int >= 0)) { - report_level = temp_int; - } else { - report(RPT_ERR, "Illegal report level value %s", optarg); - error = -1; - } - break; - case 's': - temp_int = strtol(optarg, &end, 0); - if ((*optarg != '\0') && (*end == '\0') && (temp_int >= 0)) { - report_dest = (temp_int ? RPT_DEST_SYSLOG : RPT_DEST_STDERR); - } else { - report(RPT_ERR, "Illegal log destination value %s", optarg); - error = -1; - } - break; - case ':': - report(RPT_ERR, "Missing option argument for %c", optopt); - error = -1; - break; - case '?': - default: - report(RPT_ERR, "Unknown option: %c", optopt); - error = -1; - break; - } - } - return error; + fprintf(stderr, "ERROR: %s\n", elektraErrorDescription(error)); + exit(EXIT_FAILURE); } - -static int process_configfile(char *configfile) +static int process_config() { - if (strcmp(configfile, UNSET_STR) == 0) { - configfile = DEFAULT_CONFIGFILE; - } - if (config_read_file( configfile ) < 0) { - report( RPT_WARNING, "Could not read config file: %s", configfile); + ElektraError * error = NULL; + Elektra * elektra = NULL; + int rc = loadConfiguration(&elektra, &error); + + if (rc == -1) + { + fprintf(stderr, "An error occurred while initializing elektra: %s", elektraErrorDescription(error)); + elektraErrorReset(&error); + return EXIT_FAILURE; } - if (strcmp(address, UNSET_STR ) == 0) { - address = strdup(config_get_string( progname, "Address", 0, "localhost")); - } - if (port == UNSET_INT) { - port = config_get_int(progname, "Port", 0, 13666); - } - if (report_level == UNSET_INT ) { - report_level = config_get_int(progname, "ReportLevel", 0, RPT_WARNING); - } - if (report_dest == UNSET_INT) { - if (config_get_bool(progname, "ReportToSyslog", 0, 0)) { - report_dest = RPT_DEST_SYSLOG; - } else { - report_dest = RPT_DEST_STDERR; - } - } - if (foreground != TRUE) { - foreground = config_get_bool(progname, "Foreground", 0, FALSE); - } - if (pidfile == NULL) { - pidfile = strdup(config_get_string(progname, "PidFile", 0, DEFAULT_PIDFILE)); + if (rc == 1) + { + // help mode + printHelpMessage(NULL, help_prefix); + return EXIT_SUCCESS; } - vcs_device = strdup(config_get_string(progname, "vcsDevice", 0, "/dev/vcs")); - vcsa_device = strdup(config_get_string(progname, "vcsaDevice", 0, "/dev/vcsa")); + elektraFatalErrorHandler(elektra, on_fatal_error); + + address = strdup(elektraGet(elektra, ELEKTRA_TAG_LCDVC_ADDRESS)); + port = elektraGet(elektra, ELEKTRA_TAG_LCDVC_PORT); + report_level = elektraGet(elektra, ELEKTRA_TAG_LCDVC_REPORTLEVEL); + report_dest = elektraGet(elektra, ELEKTRA_TAG_LCDVC_REPORTTOSYSLOG) ? RPT_DEST_SYSLOG : RPT_DEST_STDERR; + foreground = elektraGet(elektra, ELEKTRA_TAG_LCDVC_FOREGROUND); + pidfile = strdup(elektraGet(elektra, ELEKTRA_TAG_LCDVC_PIDFILE)); + + vcs_device = strdup(elektraGet(elektra, ELEKTRA_TAG_LCDVC_VCSDEVICE)); + vcsa_device = strdup(elektraGet(elektra, ELEKTRA_TAG_LCDVC_VCSADEVICE)); + + keys[0] = strdup(elektraGet(elektra, ELEKTRA_TAG_LCDVC_UPKEY)); + keys[1] = strdup(elektraGet(elektra, ELEKTRA_TAG_LCDVC_DOWNKEY)); + keys[2] = strdup(elektraGet(elektra, ELEKTRA_TAG_LCDVC_LEFTKEY)); + keys[3] = strdup(elektraGet(elektra, ELEKTRA_TAG_LCDVC_RIGHTKEY)); - keys[0] = strdup(config_get_string( progname, "UpKey", 0, "Up")); - keys[1] = strdup(config_get_string( progname, "DownKey", 0, "Down")); - keys[2] = strdup(config_get_string( progname, "LeftKey", 0, "Left")); - keys[3] = strdup(config_get_string( progname, "RightKey", 0, "Right")); + elektraClose(elektra); return 0; } diff --git a/clients/lcdvc/specification/lcdvc-spec.ini b/clients/lcdvc/specification/lcdvc-spec.ini index 8c325255..986fb5eb 100644 --- a/clients/lcdvc/specification/lcdvc-spec.ini +++ b/clients/lcdvc/specification/lcdvc-spec.ini @@ -1,7 +1,7 @@ [] mountpoint = lcdvc.conf -;infos/plugins = dump validation enum range ipaddr path -infos/plugin = dump validation enum +;infos/plugins = dump validation tpoe range ipaddr path +infos/plugin = dump validation type [/lcdvc/address] check/ipaddr = @@ -33,7 +33,7 @@ opt/long=report-level [/lcdvc/reporttosyslog] type = boolean check/type = boolean -default = no +default = 0 ; TODO: fix description = Should we report to syslog instead of stderr? opt=s opt/long=report-to-syslog @@ -80,7 +80,7 @@ description = "vcsa device to use" [/lcdvc/foreground] type = boolean check/type = boolean -default = false +default = 0 ; TODO: fix description = "whether to run in foreground" opt=f opt/long=foreground diff --git a/configure.ac b/configure.ac index fc2aeb0c..690bf978 100644 --- a/configure.ac +++ b/configure.ac @@ -88,13 +88,13 @@ AC_PATH_PROG([XMLTO], [xmlto], [no]) dnl elektra ifdef([PKG_CHECK_MODULES], - [PKG_CHECK_MODULES([ELEKTRA], [elektra],,)], + [PKG_CHECK_MODULES([ELEKTRA], [elektra-codegen], [ELEKTRA_LIBDIR=`pkg-config --variable=libdir elektra-codegen`],)], [AC_MSG_ERROR([pkg-config not (fully) installed, but needed to find Elektra])]) AC_SUBST([ELEKTRA_CFLAGS]) AC_SUBST([ELEKTRA_LIBS]) CFLAGS="$ELEKTRA_CFLAGS $CFLAGS" -LIBS="$ELEKTRA_LIBS $LIBS" +LIBS="$ELEKTRA_LIBS $LIBS -Wl,-rpath $ELEKTRA_LIBDIR" dnl Avoid unused static function warnings CFLAGS="-Wall $CFLAGS" From 0f0f625efcc27c669012f6a3bf7f9b00e6177706 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Fri, 10 May 2019 20:22:08 +0200 Subject: [PATCH 04/72] lcdproc: elektrify lcdproc client using codegen --- clients/lcdproc/Makefile.am | 10 +- clients/lcdproc/batt.c | 3 +- clients/lcdproc/batt.h | 2 +- clients/lcdproc/chrono.c | 29 ++- clients/lcdproc/chrono.h | 10 +- clients/lcdproc/cpu.c | 6 +- clients/lcdproc/cpu.h | 4 +- clients/lcdproc/cpu_smp.c | 3 +- clients/lcdproc/cpu_smp.h | 2 +- clients/lcdproc/disk.c | 3 +- clients/lcdproc/disk.h | 2 +- clients/lcdproc/iface.c | 135 ++++++----- clients/lcdproc/iface.h | 6 +- clients/lcdproc/load.c | 7 +- clients/lcdproc/load.h | 2 +- clients/lcdproc/main.c | 220 +++++++----------- clients/lcdproc/main.h | 10 +- clients/lcdproc/mem.c | 6 +- clients/lcdproc/mem.h | 4 +- clients/lcdproc/mode.c | 7 +- clients/lcdproc/mode.h | 4 +- .../lcdproc/specification/lcdproc-spec.ini | 186 ++++++++------- 22 files changed, 319 insertions(+), 342 deletions(-) diff --git a/clients/lcdproc/Makefile.am b/clients/lcdproc/Makefile.am index 1141367c..68da36e5 100644 --- a/clients/lcdproc/Makefile.am +++ b/clients/lcdproc/Makefile.am @@ -1,10 +1,13 @@ ## Process this file with automake to produce Makefile.in - sysconf_DATA = lcdproc.conf bin_PROGRAMS = lcdproc lcdproc_SOURCES = main.c main.h mode.c mode.h batt.c batt.h chrono.c chrono.h cpu.c cpu.h cpu_smp.c cpu_smp.h disk.c disk.h load.c load.h mem.c mem.h eyebox.c eyebox.h machine.h machine_Linux.c machine_OpenBSD.c machine_FreeBSD.c machine_NetBSD.c machine_Darwin.c machine_SunOS.c util.c util.h iface.c iface.h +nodist_lcdproc_SOURCES = elektragen.c elektragen.h +lcdproc.$(OBJEXT): elektragen.c elektragen.h + +CLEANFILES = elektragen.c elektragen.h lcdproc_LDADD = ../../shared/libLCDstuff.a @@ -14,7 +17,10 @@ endif AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/shared -DSYSCONFDIR=\"$(sysconfdir)\" -DPIDFILEDIR=\"$(pidfiledir)\" - EXTRA_DIST = $(sysconf_DATA) +KDB ?= kdb +elektragen.c elektragen.h: specification/lcdproc-spec.ini + $(KDB) gen -F ni=specification/lcdproc-spec.ini elektra "spec/sw/lcdproc/lcdproc/#0/current" elektragen initFn=loadConfiguration specloadFn=doSpecloadCheck helpFn=printHelpMessage + ## EOF diff --git a/clients/lcdproc/batt.c b/clients/lcdproc/batt.c index 83dea90d..adf6b831 100644 --- a/clients/lcdproc/batt.c +++ b/clients/lcdproc/batt.c @@ -98,10 +98,11 @@ battery_status(int status) * \param rep Time since last screen update * \param display 1 if screen is visible or data should be updated * \param flags_ptr Mode flags + * \param elektra Elektra instance holding the configuration * \return Always 0 */ int -battery_screen(int rep, int display, int *flags_ptr) +battery_screen(int rep, int display, int *flags_ptr, Elektra * elektra) { int acstat = 0, battstat = 0, percent = 0; int gauge_wid = lcd_wid - 2; diff --git a/clients/lcdproc/batt.h b/clients/lcdproc/batt.h index baec58bb..a5cc6bd1 100644 --- a/clients/lcdproc/batt.h +++ b/clients/lcdproc/batt.h @@ -1,6 +1,6 @@ #ifndef BATT_H #define BATT_H -int battery_screen(int rep, int display, int *flags_ptr); +int battery_screen(int rep, int display, int *flags_ptr, Elektra * elektra); #endif diff --git a/clients/lcdproc/chrono.c b/clients/lcdproc/chrono.c index 99150c2c..908b74ae 100644 --- a/clients/lcdproc/chrono.c +++ b/clients/lcdproc/chrono.c @@ -66,10 +66,11 @@ static char *tickTime(char *time, int heartbeat); * \param rep Time since last screen update * \param display 1 if screen is visible or data should be updated * \param flags_ptr Mode flags + * \param elektra Elektra instance holding the configuration * \return Always 0 */ int -time_screen(int rep, int display, int *flags_ptr) +time_screen(int rep, int display, int *flags_ptr, Elektra * elektra) { char now[40]; char today[40]; @@ -86,8 +87,8 @@ time_screen(int rep, int display, int *flags_ptr) *flags_ptr |= INITIALIZED; /* get config values */ - timeFormat = config_get_string("TimeDate", "TimeFormat", 0, "%H:%M:%S"); - dateFormat = config_get_string("TimeDate", "DateFormat", 0, "%b %d %Y"); + timeFormat = elektraGet(elektra, ELEKTRA_TAG_TIMEDATE_TIMEFORMAT); + dateFormat = elektraGet(elektra, ELEKTRA_TAG_TIMEDATE_DATEFORMAT); sock_send_string(sock, "screen_add T\n"); sock_printf(sock, "screen_set T -name {Time Screen: %s}\n", get_hostname()); @@ -186,10 +187,11 @@ time_screen(int rep, int display, int *flags_ptr) * \param rep Time since last screen update * \param display 1 if screen is visible or data should be updated * \param flags_ptr Mode flags + * \param elektra Elektra instance holding the configuration * \return Always 0 */ int -clock_screen(int rep, int display, int *flags_ptr) +clock_screen(int rep, int display, int *flags_ptr, Elektra * elektra) { char now[40]; char today[40]; @@ -207,9 +209,9 @@ clock_screen(int rep, int display, int *flags_ptr) *flags_ptr |= INITIALIZED; /* get config values */ - timeFormat = config_get_string("OldTime", "TimeFormat", 0, "%H:%M:%S"); - dateFormat = config_get_string("OldTime", "DateFormat", 0, "%b %d %Y"); - showTitle = config_get_bool("OldTime", "ShowTitle", 0, 1); + timeFormat = elektraGet(elektra, ELEKTRA_TAG_OLDTIME_TIMEFORMAT); + dateFormat = elektraGet(elektra, ELEKTRA_TAG_OLDTIME_DATEFORMAT); + showTitle = elektraGet(elektra, ELEKTRA_TAG_OLDTIME_SHOWTITLE); sock_send_string(sock, "screen_add O\n"); sock_printf(sock, "screen_set O -name {Old Clock Screen: %s}\n", get_hostname()); @@ -297,10 +299,11 @@ clock_screen(int rep, int display, int *flags_ptr) * \param rep Time since last screen update * \param display 1 if screen is visible or data should be updated * \param flags_ptr Mode flags + * \param elektra Elektra instance holding the configuration * \return Always 0 */ int -uptime_screen(int rep, int display, int *flags_ptr) +uptime_screen(int rep, int display, int *flags_ptr, Elektra * elektra) { int xoffs; int days, hour, min, sec; @@ -389,10 +392,11 @@ uptime_screen(int rep, int display, int *flags_ptr) * \param rep Time since last screen update * \param display 1 if screen is visible or data should be updated * \param flags_ptr Mode flags + * \param elektra Elektra instance holding the configuration * \return Always 0 */ int -big_clock_screen(int rep, int display, int *flags_ptr) +big_clock_screen(int rep, int display, int *flags_ptr, Elektra * elektra) { time_t thetime; struct tm *rtime; @@ -405,7 +409,7 @@ big_clock_screen(int rep, int display, int *flags_ptr) int digits = (lcd_wid >= 20) ? 6 : 4; int xoffs = 0; - int showSecs = config_get_bool("BigClock", "showSecs", 0, 1); + int showSecs = elektraGet(elektra, ELEKTRA_TAG_BIGCLOCK_SHOWSECS); if (!showSecs) { digits = 4; } @@ -480,10 +484,11 @@ big_clock_screen(int rep, int display, int *flags_ptr) * \param rep Time since last screen update * \param display 1 if screen is visible or data should be updated * \param flags_ptr Mode flags + * \param elektra Elektra instance holding the configuration * \return Always 0 */ int -mini_clock_screen(int rep, int display, int *flags_ptr) +mini_clock_screen(int rep, int display, int *flags_ptr, Elektra * elektra) { char now[40]; time_t thetime; @@ -499,7 +504,7 @@ mini_clock_screen(int rep, int display, int *flags_ptr) *flags_ptr |= INITIALIZED; /* get config values */ - timeFormat = config_get_string("MiniClock", "TimeFormat", 0, "%H:%M"); + timeFormat = elektraGet(elektra, ELEKTRA_TAG_MINICLOCK_TIMEFORMAT); sock_send_string(sock, "screen_add N\n"); sock_send_string(sock, "screen_set N -name {Mini Clock Screen} -heartbeat off\n"); diff --git a/clients/lcdproc/chrono.h b/clients/lcdproc/chrono.h index 2732c173..d870b890 100644 --- a/clients/lcdproc/chrono.h +++ b/clients/lcdproc/chrono.h @@ -1,10 +1,10 @@ #ifndef CHRONO_H #define CHRONO_H -int clock_screen(int rep, int display, int *flags_ptr); -int uptime_screen(int rep, int display, int *flags_ptr); -int time_screen(int rep, int display, int *flags_ptr); -int big_clock_screen(int rep, int display, int *flags_ptr); -int mini_clock_screen(int rep, int display, int *flags_ptr); +int clock_screen(int rep, int display, int *flags_ptr, Elektra * elektra); +int uptime_screen(int rep, int display, int *flags_ptr, Elektra * elektra); +int time_screen(int rep, int display, int *flags_ptr, Elektra * elektra); +int big_clock_screen(int rep, int display, int *flags_ptr, Elektra * elektra); +int mini_clock_screen(int rep, int display, int *flags_ptr, Elektra * elektra); #endif diff --git a/clients/lcdproc/cpu.c b/clients/lcdproc/cpu.c index 5576ab2d..7157d690 100644 --- a/clients/lcdproc/cpu.c +++ b/clients/lcdproc/cpu.c @@ -45,10 +45,11 @@ * \param rep Time since last screen update * \param display 1 if screen is visible or data should be updated * \param flags_ptr Mode flags + * \param elektra Elektra instance holding the configuration * \return Always 0 */ int -cpu_screen(int rep, int display, int *flags_ptr) +cpu_screen(int rep, int display, int *flags_ptr, Elektra * elektra) { #undef CPU_BUF_SIZE #define CPU_BUF_SIZE 4 @@ -190,10 +191,11 @@ cpu_screen(int rep, int display, int *flags_ptr) * \param rep Time since last screen update * \param display 1 if screen is visible or data should be updated * \param flags_ptr Mode flags + * \param elektra Elektra instance holding the configuration * \return Always 0 */ int -cpu_graph_screen(int rep, int display, int *flags_ptr) +cpu_graph_screen(int rep, int display, int *flags_ptr, Elektra * elektra) { #undef CPU_BUF_SIZE #define CPU_BUF_SIZE 2 diff --git a/clients/lcdproc/cpu.h b/clients/lcdproc/cpu.h index 961c5dd9..1398d43c 100644 --- a/clients/lcdproc/cpu.h +++ b/clients/lcdproc/cpu.h @@ -1,7 +1,7 @@ #ifndef CPU_H #define CPU_H -int cpu_screen(int rep, int display, int *flags_ptr); -int cpu_graph_screen(int rep, int display, int *flags_ptr); +int cpu_screen(int rep, int display, int *flags_ptr, Elektra * elektra); +int cpu_graph_screen(int rep, int display, int *flags_ptr, Elektra * elektra); #endif diff --git a/clients/lcdproc/cpu_smp.c b/clients/lcdproc/cpu_smp.c index c5f362c9..11c8e5eb 100644 --- a/clients/lcdproc/cpu_smp.c +++ b/clients/lcdproc/cpu_smp.c @@ -48,10 +48,11 @@ * \param rep Time since last screen update * \param display 1 if screen is visible or data should be updated * \param flags_ptr Mode flags + * \param elektra Elektra instance holding the configuration * \return Always 0 */ int -cpu_smp_screen (int rep, int display, int *flags_ptr) +cpu_smp_screen (int rep, int display, int *flags_ptr, Elektra * elektra) { #undef CPU_BUF_SIZE #define CPU_BUF_SIZE 4 diff --git a/clients/lcdproc/cpu_smp.h b/clients/lcdproc/cpu_smp.h index 2a66c770..b4592d1c 100644 --- a/clients/lcdproc/cpu_smp.h +++ b/clients/lcdproc/cpu_smp.h @@ -1,6 +1,6 @@ #ifndef CPU_SMP_H #define CPU_SMP_H -int cpu_smp_screen(int rep, int display, int *flags_ptr); +int cpu_smp_screen(int rep, int display, int *flags_ptr, Elektra * elektra); #endif diff --git a/clients/lcdproc/disk.c b/clients/lcdproc/disk.c index 4d776aee..77aeb790 100644 --- a/clients/lcdproc/disk.c +++ b/clients/lcdproc/disk.c @@ -49,10 +49,11 @@ * \param rep Time since last screen update * \param display 1 if screen is visible or data should be updated * \param flags_ptr Mode flags + * \param elektra Elektra instance holding the configuration * \return Always 0 */ int -disk_screen(int rep, int display, int *flags_ptr) +disk_screen(int rep, int display, int *flags_ptr, Elektra * elektra) { mounts_type mnt[256]; int count = 0; diff --git a/clients/lcdproc/disk.h b/clients/lcdproc/disk.h index e934b531..21ef6afb 100644 --- a/clients/lcdproc/disk.h +++ b/clients/lcdproc/disk.h @@ -1,6 +1,6 @@ #ifndef DISK_H #define DISK_H -int disk_screen(int rep, int display, int *flags_ptr); +int disk_screen(int rep, int display, int *flags_ptr, Elektra * elektra); #endif diff --git a/clients/lcdproc/iface.c b/clients/lcdproc/iface.c index 40e50cb7..af44a2ef 100644 --- a/clients/lcdproc/iface.c +++ b/clients/lcdproc/iface.c @@ -34,18 +34,32 @@ static int iface_count = 0; /* number of interfaces */ -static char unit_label[10] = "B"; /* default unit label is Bytes */ +static IfaceUnit unit = IFACE_UNIT_BYTE; /* default unit label is Bytes */ static int transfer_screen = 0; /* by default, transfer screen is not shown */ +static inline char * +unit_label(IfaceUnit unit) +{ + switch (unit) + { + case IFACE_UNIT_BYTE: + return "B"; + case IFACE_UNIT_BIT: + return "b"; + case IFACE_UNIT_PACKET: + return "pkt"; + default: + return NULL; + } +} + /** Reads and parses configuration file. * \return 0 on success, -1 on error */ static int -iface_process_configfile(void) +iface_process_config(Elektra * elektra) { - const char *unit; - debug(RPT_DEBUG, "%s()", __FUNCTION__); /* Read config settings */ @@ -54,42 +68,19 @@ iface_process_configfile(void) sprintf(iface_label, "Interface%i", iface_count); debug(RPT_DEBUG, "Label %s count %i", iface_label, iface_count); - iface[iface_count].name = strdup(config_get_string("Iface", iface_label, 0, "")); - if (iface[iface_count].name == NULL) { - report(RPT_CRIT, "malloc failure"); - return -1; - } - if (*iface[iface_count].name == '\0') - break; + iface[iface_count].name = strdup(elektraGetV(elektra, ELEKTRA_TAG_IFACE_INTERFACE_NAME, iface_count)); + sprintf(iface_label, "Alias%i", iface_count); - iface[iface_count].alias = strdup(config_get_string("Iface", iface_label, 0, iface[iface_count].name)); - if (iface[iface_count].alias == NULL) - /* - * make alias the same as the interface name in case - * strdup() failed - */ + iface[iface_count].alias = strdup(elektraGetV(elektra, ELEKTRA_TAG_IFACE_INTERFACE_ALIAS, iface_count)); + if (strlen(iface[iface_count].alias) == 0) iface[iface_count].alias = iface[iface_count].name; + debug(RPT_DEBUG, "Interface %i: %s alias %s", iface_count, iface[iface_count].name, iface[iface_count].alias); } - unit = config_get_string("Iface", "Unit", 0, "byte"); - if ((strcasecmp(unit, "byte") == 0) || - (strcasecmp(unit, "bytes") == 0)) - strncpy(unit_label, "B", sizeof(unit_label)); - else if ((strcasecmp(unit, "bit") == 0) || - (strcasecmp(unit, "bits") == 0)) - strncpy(unit_label, "b", sizeof(unit_label)); - else if ((strcasecmp(unit, "packet") == 0) || - (strcasecmp(unit, "packets") == 0)) - strncpy(unit_label, "pkt", sizeof(unit_label)); - else { - report(RPT_ERR, "illegal Unit value: %s", unit); - return -1; - } - unit_label[sizeof(unit_label) - 1] = '\0'; - - transfer_screen = config_get_bool("Iface", "Transfer", 0, 0); + unit = elektraGet(elektra, ELEKTRA_TAG_IFACE_UNIT); + transfer_screen = elektraGet(elektra, ELEKTRA_TAG_IFACE_TRANSFER); return 0; } @@ -113,10 +104,11 @@ iface_process_configfile(void) * \param rep Time since last screen update * \param display 1 if screen is visible or data should be updated * \param flags_ptr Mode flags + * \param elektra Elektra instance holding the configuration * \return Always 0 */ int -iface_screen(int rep, int display, int *flags_ptr) +iface_screen(int rep, int display, int *flags_ptr, Elektra * elektra) { /* interval since last update */ unsigned int interval = difftime(time(NULL), iface[0].last_online); @@ -129,7 +121,7 @@ iface_screen(int rep, int display, int *flags_ptr) *flags_ptr |= INITIALIZED; /* get configuration options */ - iface_process_configfile(); + iface_process_config(elektra); /* set initial speed screen with widgets */ initialize_speed_screen(); @@ -198,16 +190,19 @@ initialize_speed_screen(void) /* multi-interfaces mode: one line per interface */ else { /* Set title */ - if (strstr(unit_label, "B")) { + switch (unit) + { + case IFACE_UNIT_BIT: + sock_printf(sock, "widget_set I title {Net Load (bits)}\n"); + break; + case IFACE_UNIT_BYTE: sock_printf(sock, "widget_set I title {Net Load (bytes)}\n"); - } - else { - if (strstr(unit_label, "b")) { - sock_printf(sock, "widget_set I title {Net Load (bits)}\n"); - } - else { - sock_printf(sock, "widget_set I title {Net Load (packets)}\n"); - } + break; + case IFACE_UNIT_PACKET: + sock_printf(sock, "widget_set I title {Net Load (packets)}\n"); + break; + default: + break; } /* frame from (2, left) to (width, height) that is iface_count lines high */ @@ -238,16 +233,16 @@ initialize_speed_screen(void) * to binary multiples (1024 bytes = 1 KiB). */ void -format_value (char *buff, double value, char *unit) +format_value (char *buff, double value, IfaceUnit unit) { char *mag; /* Convert bytes to bits, if necessary */ - if (strstr(unit, "b")) + if (unit == IFACE_UNIT_BIT) value *= 8; /* If units are bytes, then divide by 2^10, otherwise by 10^3 */ - mag = convert_double(&value, (strstr(unit, "B")) ? 1024 : 1000, 1.0f); + mag = convert_double(&value, (unit == IFACE_UNIT_BYTE) ? 1024 : 1000, 1.0f); /*- * Formatting rules: @@ -255,9 +250,9 @@ format_value (char *buff, double value, char *unit) * - otherwise format with 3 precision */ if (mag[0] == 0) - sprintf(buff, "%8ld %s", (long) value, unit); + sprintf(buff, "%8ld %s", (long) value, unit_label(unit)); else - sprintf(buff, "%7.3f %s%s", value, mag, unit); + sprintf(buff, "%7.3f %s%s", value, mag, unit_label(unit)); } @@ -272,14 +267,14 @@ format_value (char *buff, double value, char *unit) * to binary multiples (1024 bytes = 1 KiB). */ void -format_value_multi_interface(char *buff, double value, char *unit) +format_value_multi_interface(char *buff, double value, IfaceUnit unit) { char *mag; - if (strstr(unit, "b")) + if (unit == IFACE_UNIT_BIT) value *= 8; - mag = convert_double(&value, (strstr(unit, "B")) ? 1024 : 1000, 1.0f); + mag = convert_double(&value, (unit == IFACE_UNIT_BYTE) ? 1024 : 1000, 1.0f); /*- * Formatting rules: @@ -351,33 +346,33 @@ actualize_speed_screen(IfaceInfo *iface, unsigned int interval, int index) if ((iface_count == 1) && ( lcd_hgt >= 4)) { if (iface->status == up) { /* Calculate and actualize download speed */ - if (strstr(unit_label, "pkt")) { + if (unit == IFACE_UNIT_PACKET) { rc_speed = (iface->rc_pkt - iface->rc_pkt_old) / interval; - sprintf(speed, "%8ld %s", (long) rc_speed, unit_label); + sprintf(speed, "%8ld %s", (long) rc_speed, unit_label(unit)); } else { rc_speed = (iface->rc_byte - iface->rc_byte_old) / interval; - format_value(speed, rc_speed, unit_label); + format_value(speed, rc_speed, unit); } sock_printf(sock, "widget_set I dl 1 2 {DL: %*s/s}\n", lcd_wid - 6, speed); /* Calculate and actualize upload speed */ - if (strstr(unit_label, "pkt")) { + if (unit == IFACE_UNIT_PACKET) { tr_speed = (iface->tr_pkt - iface->tr_pkt_old) / interval; - sprintf(speed, "%8ld %s", (long)tr_speed, unit_label); + sprintf(speed, "%8ld %s", (long)tr_speed, unit_label(unit)); } else { tr_speed = (iface->tr_byte - iface->tr_byte_old) / interval; - format_value(speed, tr_speed, unit_label); + format_value(speed, tr_speed, unit); } sock_printf(sock, "widget_set I ul 1 3 {UL: %*s/s}\n", lcd_wid - 6, speed); /* Calculate and actualize total speed */ - if (strstr(unit_label, "pkt")) { - sprintf(speed, "%7ld %s", (long)(rc_speed + tr_speed), unit_label); + if (unit == IFACE_UNIT_PACKET) { + sprintf(speed, "%7ld %s", (long)(rc_speed + tr_speed), unit_label(unit)); } else { - format_value(speed, rc_speed + tr_speed, unit_label); + format_value(speed, rc_speed + tr_speed, unit); } sock_printf(sock, "widget_set I total 1 4 {Total: %*s/s}\n", lcd_wid - 9, speed); } @@ -393,7 +388,7 @@ actualize_speed_screen(IfaceInfo *iface, unsigned int interval, int index) char speed1[20]; /* buffer to store the formated speed string */ if (iface->status == up) { - if (strstr(unit_label, "pkt")) { + if (unit == IFACE_UNIT_PACKET) { rc_speed = (iface->rc_pkt - iface->rc_pkt_old) / interval; tr_speed = (iface->tr_pkt - iface->tr_pkt_old) / interval; } @@ -401,8 +396,8 @@ actualize_speed_screen(IfaceInfo *iface, unsigned int interval, int index) rc_speed = (iface->rc_byte - iface->rc_byte_old) / interval; tr_speed = (iface->tr_byte - iface->tr_byte_old) / interval; } - format_value_multi_interface(speed, rc_speed, unit_label); - format_value_multi_interface(speed1, tr_speed, unit_label); + format_value_multi_interface(speed, rc_speed, unit); + format_value_multi_interface(speed1, tr_speed, unit); if (lcd_wid > 16) sock_printf(sock, "widget_set I i%1d 1 %1d {%5.5s U:%.4s D:%.4s}\n", index, index+1, iface->alias, speed1, speed); @@ -478,15 +473,15 @@ actualize_transfer_screen(IfaceInfo *iface, int index) if ((iface_count == 1) && (lcd_hgt >= 4)) { if (iface->status == up) { /* download traffic */ - format_value(transfer, iface->rc_byte, "B"); + format_value(transfer, iface->rc_byte, IFACE_UNIT_BYTE); sock_printf(sock, "widget_set NT dl 1 2 {DL: %*s}\n", lcd_wid - 4, transfer); /* upload traffic */ - format_value(transfer, iface->tr_byte, "B"); + format_value(transfer, iface->tr_byte, IFACE_UNIT_BYTE); sock_printf(sock, "widget_set NT ul 1 3 {UL: %*s}\n", lcd_wid - 4, transfer); /* total traffic */ - format_value(transfer, iface->rc_byte + iface->tr_byte, "B"); + format_value(transfer, iface->rc_byte + iface->tr_byte, IFACE_UNIT_BYTE); sock_printf(sock, "widget_set NT total 1 4 {Total: %*s}\n", lcd_wid - 7, transfer); } else { @@ -501,8 +496,8 @@ actualize_transfer_screen(IfaceInfo *iface, int index) char transfer1[20]; /* buffer to store the formated traffic string */ if (iface->status == up) { - format_value_multi_interface(transfer, iface->rc_byte, "B"); - format_value_multi_interface(transfer1, iface->tr_byte, "B"); + format_value_multi_interface(transfer, iface->rc_byte, IFACE_UNIT_BYTE); + format_value_multi_interface(transfer1, iface->tr_byte, IFACE_UNIT_BYTE); if (lcd_wid > 16) sock_printf(sock, "widget_set NT i%1d 1 %1d {%5.5s U:%.4s D:%.4s}\n", index, index+1, iface->alias, transfer1, transfer); diff --git a/clients/lcdproc/iface.h b/clients/lcdproc/iface.h index cc6dbaaf..3d53da74 100644 --- a/clients/lcdproc/iface.h +++ b/clients/lcdproc/iface.h @@ -21,7 +21,7 @@ IfaceInfo iface[MAX_INTERFACES]; /* interface info */ /** Update screen content */ -int iface_screen(int rep, int display, int *flags_ptr); +int iface_screen(int rep, int display, int *flags_ptr, Elektra * elektra); /** read interface stats from /proc/net/dev */ int get_iface_stats(IfaceInfo *interface); /** send initial commands to server to add the speed screen */ @@ -31,10 +31,10 @@ void initialize_transfer_screen(void); /** format the time in ASCII */ void get_time_string(char *buff, time_t last_online); /** format value, scaling value and adding proper suffixes */ -void format_value(char *buff, double value, char *unit); +void format_value(char *buff, double value, IfaceUnit unit); /** format value, scaling value and adding proper suffixes (for multi-interface * mode) */ -void format_value_multi_interface(char *buff, double value, char *unit); +void format_value_multi_interface(char *buff, double value, IfaceUnit unit); /** actualize widgets values in speed screen */ void actualize_speed_screen(IfaceInfo *iface, unsigned int interval, int index); /** actualize widgets values in transfer screen */ diff --git a/clients/lcdproc/load.c b/clients/lcdproc/load.c index d807def2..520185fa 100644 --- a/clients/lcdproc/load.c +++ b/clients/lcdproc/load.c @@ -44,10 +44,11 @@ * \param rep Time since last screen update * \param display 1 if screen is visible or data should be updated * \param flags_ptr Mode flags + * \param elektra Elektra instance holding the configuration * \return The backlight state */ int -xload_screen(int rep, int display, int *flags_ptr) +xload_screen(int rep, int display, int *flags_ptr, Elektra * elektra) { static int gauge_hgt = 0; static double loads[LCD_MAX_WIDTH]; @@ -61,8 +62,8 @@ xload_screen(int rep, int display, int *flags_ptr) *flags_ptr |= INITIALIZED; /* get config values */ - lowLoad = config_get_float("Load", "LowLoad", 0, LOAD_MIN); - highLoad = config_get_float("Load", "HighLoad", 0, LOAD_MAX); + lowLoad = elektraGet(elektra, ELEKTRA_TAG_LOAD_LOWLOAD); + highLoad = elektraGet(elektra, ELEKTRA_TAG_LOAD_HIGHLOAD); gauge_hgt = (lcd_hgt > 2) ? (lcd_hgt - 1) : lcd_hgt; memset(loads, '\0', sizeof(double) * LCD_MAX_WIDTH); diff --git a/clients/lcdproc/load.h b/clients/lcdproc/load.h index 93bbe647..25b30447 100644 --- a/clients/lcdproc/load.h +++ b/clients/lcdproc/load.h @@ -8,6 +8,6 @@ #define LOAD_MIN 0.05 #endif -int xload_screen(int rep, int display, int *flags_ptr); +int xload_screen(int rep, int display, int *flags_ptr, Elektra * elektra); #endif diff --git a/clients/lcdproc/main.c b/clients/lcdproc/main.c index 416f8e77..411e40a0 100644 --- a/clients/lcdproc/main.c +++ b/clients/lcdproc/main.c @@ -73,9 +73,16 @@ static struct utsname unamebuf; static void HelpScreen(int exit_state); static void exit_program(int val); static void main_loop(void); -static int process_configfile(char *cfgfile); +static int process_config(); +static const char * help_prefix = + "lcdproc - LCDproc system status information viewer\n" + "\n" + "Copyright (c) 1999-2017 Selene Scriven, William Ferrell, and misc. contributors.\n" + "This program is released under the terms of the GNU General Public License.\n" + "\n"; + #define TIME_UNIT 125000 /**< 1/8th second is a single time unit. */ #if !defined(SYSCONFDIR) @@ -98,21 +105,21 @@ ScreenMode sequence[] = { /* flags default ACTIVE will run by default */ /* longname which on off inv timer flags */ - { "CPU", 'C', 1, 2, 0, 0xffff, ACTIVE, cpu_screen }, // [C]PU - { "Iface", 'I', 1, 2, 0, 0xffff, 0, iface_screen }, // [I]face - { "Memory", 'M', 4, 16, 0, 0xffff, ACTIVE, mem_screen }, // [M]emory - { "Load", 'L', 64, 128, 1, 0xffff, ACTIVE, xload_screen }, // [L]oad (load histogram) - { "TimeDate", 'T', 4, 64, 0, 0xffff, ACTIVE, time_screen }, // [T]ime/Date - { "About", 'A', 999, 9999, 0, 0xffff, ACTIVE, credit_screen }, // [A]bout (credits) - { "SMP-CPU", 'P', 1, 2, 0, 0xffff, 0, cpu_smp_screen }, // CPU_SM[P] - { "OldTime", 'O', 4, 64, 0, 0xffff, 0, clock_screen }, // [O]ld Timescreen - { "BigClock", 'K', 4, 64, 0, 0xffff, 0, big_clock_screen }, // big cloc[K] - { "Uptime", 'U', 4, 128, 0, 0xffff, 0, uptime_screen }, // Old [U]ptime Screen - { "Battery", 'B', 32, 256, 1, 0xffff, 0, battery_screen }, // [B]attery Status - { "CPUGraph", 'G', 1, 2, 0, 0xffff, 0, cpu_graph_screen }, // CPU histogram [G]raph - { "ProcSize", 'S', 16, 256, 1, 0xffff, 0, mem_top_screen }, // [S]ize of biggest processes - { "Disk", 'D', 256, 256, 1, 0xffff, 0, disk_screen }, // [D]isk stats - { "MiniClock", 'N', 4, 64, 0, 0xffff, 0, mini_clock_screen }, // Mi[n]i clock + { "CPU", 'C', 1, 2, 0, 0xffff, ACTIVE, cpu_screen, ELEKTRA_GET(ELEKTRA_TAG_CPU_ACTIVE) }, // [C]PU + { "Iface", 'I', 1, 2, 0, 0xffff, 0, iface_screen, ELEKTRA_GET(ELEKTRA_TAG_IFACE_ACTIVE) }, // [I]face + { "Memory", 'M', 4, 16, 0, 0xffff, ACTIVE, mem_screen, ELEKTRA_GET(ELEKTRA_TAG_MEMORY_ACTIVE) }, // [M]emory + { "Load", 'L', 64, 128, 1, 0xffff, ACTIVE, xload_screen, ELEKTRA_GET(ELEKTRA_TAG_LOAD_ACTIVE) }, // [L]oad (load histogram) + { "TimeDate", 'T', 4, 64, 0, 0xffff, ACTIVE, time_screen, ELEKTRA_GET(ELEKTRA_TAG_TIMEDATE_ACTIVE) }, // [T]ime/Date + { "About", 'A', 999, 9999, 0, 0xffff, ACTIVE, credit_screen, ELEKTRA_GET(ELEKTRA_TAG_ABOUT_ACTIVE) }, // [A]bout (credits) + { "SMP-CPU", 'P', 1, 2, 0, 0xffff, 0, cpu_smp_screen, ELEKTRA_GET(ELEKTRA_TAG_SMPCPU_ACTIVE) }, // CPU_SM[P] + { "OldTime", 'O', 4, 64, 0, 0xffff, 0, clock_screen, ELEKTRA_GET(ELEKTRA_TAG_OLDTIME_ACTIVE) }, // [O]ld Timescreen + { "BigClock", 'K', 4, 64, 0, 0xffff, 0, big_clock_screen, ELEKTRA_GET(ELEKTRA_TAG_BIGCLOCK_ACTIVE) }, // big cloc[K] + { "Uptime", 'U', 4, 128, 0, 0xffff, 0, uptime_screen, ELEKTRA_GET(ELEKTRA_TAG_UPTIME_ACTIVE) }, // Old [U]ptime Screen + { "Battery", 'B', 32, 256, 1, 0xffff, 0, battery_screen, ELEKTRA_GET(ELEKTRA_TAG_BATTERY_ACTIVE) }, // [B]attery Status + { "CPUGraph", 'G', 1, 2, 0, 0xffff, 0, cpu_graph_screen, ELEKTRA_GET(ELEKTRA_TAG_CPUGRAPH_ACTIVE) }, // CPU histogram [G]raph + { "ProcSize", 'S', 16, 256, 1, 0xffff, 0, mem_top_screen, ELEKTRA_GET(ELEKTRA_TAG_PROCSIZE_ACTIVE) }, // [S]ize of biggest processes + { "Disk", 'D', 256, 256, 1, 0xffff, 0, disk_screen, ELEKTRA_GET(ELEKTRA_TAG_DISK_ACTIVE) }, // [D]isk stats + { "MiniClock", 'N', 4, 64, 0, 0xffff, 0, mini_clock_screen, ELEKTRA_GET(ELEKTRA_TAG_MINICLOCK_ACTIVE) }, // Mi[n]i clock { NULL, 0, 0, 0, 0, 0, 0, NULL}, // No more.. all done. }; @@ -130,6 +137,8 @@ char *pidfile = NULL; int pidfile_written = FALSE; char *displayname = NULL; /**< display name for the main menu */ +static Elektra * elektra = NULL; + /** Returns the network name of this machine */ const char * get_hostname(void) @@ -210,10 +219,11 @@ clear_modes(void) int -main(int argc, char **argv) +main(int argc, const char **argv) { + doSpecloadCheck (argc, argv); + int cfgresult; - int c; /* set locale for cwdate & time formatting in chrono.c */ setlocale(LC_TIME, ""); @@ -231,60 +241,9 @@ main(int argc, char **argv) signal(SIGPIPE, exit_program); /* write to closed socket */ signal(SIGKILL, exit_program); /* kill -9 [cannot be trapped; but ...] */ - /* No error output from getopt */ - opterr = 0; - - /* get options from command line */ - while ((c = getopt(argc, argv, "s:p:e:c:fhv")) > 0) { - char *end; - - switch (c) { - /* c is for config file */ - case 'c': - configfile = optarg; - break; - /* s is for server */ - case 's': - server = optarg; - break; - /* p is for port */ - case 'p': - port = strtol(optarg, &end, 0); - if ((*optarg == '\0') || (*end != '\0') || - (port <= 0) || (port >= 0xFFFF)) { - fprintf(stderr, "Illegal port value %s\n", optarg); - exit(EXIT_FAILURE); - } - break; - case 'e': - islow = strtol(optarg, &end, 0); - if ((*optarg == '\0') || (*end != '\0') || (islow < 0)) { - fprintf(stderr, "Illegal delay value %s\n", optarg); - exit(EXIT_FAILURE); - } - break; - case 'f': - foreground = TRUE; - break; - case 'h': - HelpScreen(EXIT_SUCCESS); - break; - case 'v': - fprintf(stderr, "LCDproc %s\n", version); - exit(EXIT_SUCCESS); - break; - /* otherwise... Get help! */ - case '?': /* unknown option or missing argument */ - /* FALLTHROUGH */ - default: - HelpScreen(EXIT_FAILURE); - break; - } - } - /* Read config file */ - cfgresult = process_configfile(configfile); - if (cfgresult < 0) { + cfgresult = process_config(); + if (cfgresult != 0) { fprintf(stderr, "Error reading config file\n"); exit(EXIT_FAILURE); } @@ -298,21 +257,22 @@ main(int argc, char **argv) /* Set reporting settings */ set_reporting("lcdproc", report_level, report_dest); - /* parse non-option arguments: modes to add/delete */ - if (argc > max(optind, 1)) { + + // TODO /* parse non-option arguments: modes to add/delete */ + /*if (argc > max(optind, 1)) { int i; - /* + / * * if no config file was read, ignore hard coded default * modes - */ + * / if (cfgresult == 0) clear_modes(); - /* turn additional options on or off (using ! as prefix) */ + / * turn additional options on or off (using ! as prefix) * / for (i = max(optind, 1); i < argc; i++) { int state = (*argv[i] == '!') ? 0 : 1; - char *name = (state) ? argv[i] : argv[i] + 1; + const char *name = (state) ? argv[i] : argv[i] + 1; int shortname = (strlen(name) == 1) ? name[0] : '\0'; int found = set_mode(shortname, name, state); @@ -321,10 +281,7 @@ main(int argc, char **argv) return (EXIT_FAILURE); } } - } - - if (server == NULL) - server = DEFAULT_SERVER; + }*/ /* Connect to the server... */ sock = sock_connect(server, port); @@ -377,96 +334,73 @@ main(int argc, char **argv) return EXIT_SUCCESS; } +static void on_fatal_error(ElektraError * error) // TODO: finalize method +{ + fprintf(stderr, "ERROR: %s\n", elektraErrorDescription(error)); + exit(EXIT_FAILURE); +} /** * Reads and parses configuration file. * \param configfile The configfile to read or NULL for the default config. - * \retval 1 if configfile was read, - * \retval 0 if default configfile doesn't exist - * \retval <0 on error + * \retval 0 on success + * \retval !=0 on error */ static int -process_configfile(char *configfile) +process_config() { - int k; - const char *tmp; + ElektraError * error = NULL; + int rc = loadConfiguration(&elektra, &error); - debug(RPT_DEBUG, "%s(%s)", __FUNCTION__, (configfile) ? configfile : ""); - - /* Read config settings */ - - if (configfile == NULL) { - struct stat statbuf; - - /* - * if default config file does not exist, do not consider - * this an error and continue - */ - if ((lstat(DEFAULT_CONFIGFILE, &statbuf) == -1) && (errno = ENOENT)) - return 0; - - configfile = DEFAULT_CONFIGFILE; - } - - if (config_read_file(configfile) != 0) { - report(RPT_CRIT, "Could not read config file: %s", configfile); + if (rc == -1) + { + fprintf(stderr, "An error occurred while initializing elektra: %s", elektraErrorDescription(error)); + elektraErrorReset(&error); return -1; } - if (server == NULL) { - server = strdup(config_get_string(progname, "Server", 0, DEFAULT_SERVER)); - } - if (port == UNSET_INT) { - port = config_get_int(progname, "Port", 0, LCDPORT); + if (rc == 1) + { + // help mode + printHelpMessage(NULL, help_prefix); + return 0; } - if (report_level == UNSET_INT) { - report_level = config_get_int(progname, "ReportLevel", 0, RPT_WARNING); - } - if (report_dest == UNSET_INT) { - if (config_get_bool(progname, "ReportToSyslog", 0, 0)) { - report_dest = RPT_DEST_SYSLOG; - } - else { - report_dest = RPT_DEST_STDERR; - } - } - if (foreground != TRUE) { - foreground = config_get_bool(progname, "Foreground", 0, FALSE); - } - if (pidfile == NULL) { - pidfile = strdup(config_get_string(progname, "PidFile", 0, DEFAULT_PIDFILE)); - } - if (islow < 0) { - islow = config_get_int(progname, "Delay", 0, -1); - } + elektraFatalErrorHandler(elektra, on_fatal_error); - if ((tmp = config_get_string(progname, "DisplayName", 0, NULL)) != NULL) - displayname = strdup(tmp); + server = strdup(elektraGet(elektra, ELEKTRA_TAG_LCDPROC_SERVER)); + port = elektraGet(elektra, ELEKTRA_TAG_LCDPROC_PORT); + report_level = elektraGet(elektra, ELEKTRA_TAG_LCDPROC_REPORTLEVEL); + report_dest = elektraGet(elektra, ELEKTRA_TAG_LCDPROC_REPORTTOSYSLOG) ? RPT_DEST_SYSLOG : RPT_DEST_STDERR; + foreground = elektraGet(elektra, ELEKTRA_TAG_LCDPROC_FOREGROUND); + pidfile = strdup(elektraGet(elektra, ELEKTRA_TAG_LCDPROC_PIDFILE)); + islow = elektraGet(elektra, ELEKTRA_TAG_LCDPROC_DELAY); + displayname = strdup(elektraGet(elektra, ELEKTRA_TAG_LCDPROC_DISPLAYNAME)); /* * check for config file variables to override all the sequence * defaults */ - for (k = 0; sequence[k].which != 0; k++) { + for (int k = 0; sequence[k].which != 0; k++) { if (sequence[k].longname != NULL) { - sequence[k].on_time = config_get_int(sequence[k].longname, "OnTime", 0, sequence[k].on_time); - sequence[k].off_time = config_get_int(sequence[k].longname, "OffTime", 0, sequence[k].off_time); - sequence[k].show_invisible = config_get_bool(sequence[k].longname, "ShowInvisible", 0, sequence[k].show_invisible); - if (config_get_bool(sequence[k].longname, "Active", 0, sequence[k].flags & ACTIVE)) + // TODO: sequence[k].on_time = config_get_int(sequence[k].longname, "OnTime", 0, sequence[k].on_time); + // TODO: sequence[k].off_time = config_get_int(sequence[k].longname, "OffTime", 0, sequence[k].off_time); + // TODO: sequence[k].show_invisible = config_get_bool(sequence[k].longname, "ShowInvisible", 0, sequence[k].show_invisible); + if (sequence[k].is_active(elektra)) sequence[k].flags |= ACTIVE; else sequence[k].flags &= (~ACTIVE); } } - return 1; + return 0; } /** Print help screen and exit */ void HelpScreen(int exit_state) { + // TODO: screen arg fprintf(stderr, "lcdproc - LCDproc system status information viewer\n" "\n" @@ -522,6 +456,10 @@ exit_program(int val) mode_close(); if ((foreground != TRUE) && (pidfile != NULL) && (pidfile_written == TRUE)) unlink(pidfile); + if (elektra != NULL) { + elektraClose(elektra); + } + exit(val); } @@ -705,14 +643,14 @@ main_loop(void) if (sequence[i].timer >= sequence[i].on_time) { sequence[i].timer = 0; /* Now, update the screen... */ - update_screen(&sequence[i], 1); + update_screen(&sequence[i], 1, elektra); } } else { if (sequence[i].timer >= sequence[i].off_time) { sequence[i].timer = 0; /* Now, update the screen... */ - update_screen(&sequence[i], sequence[i].show_invisible); + update_screen(&sequence[i], sequence[i].show_invisible, elektra); } } if (islow > 0) diff --git a/clients/lcdproc/main.h b/clients/lcdproc/main.h index c7f427f8..f75dacfd 100644 --- a/clients/lcdproc/main.h +++ b/clients/lcdproc/main.h @@ -14,6 +14,13 @@ #include "shared/defines.h" +#ifdef DEBUG +#include "elektragen.h" +#define DEBUG 1 // FIXME: fix debug stuff +#else +#include "elektragen.h" +#endif + #ifndef TRUE # define TRUE 1 #endif @@ -53,7 +60,8 @@ typedef struct _screen_mode int show_invisible; /**< Send stats while not visible? */ int timer; /**< Time since last update */ int flags; /**< See mode flags defines */ - int (*func)(int,int,int *); /**< Pointer to init / update function */ + int (*func)(int,int,int *, Elektra *); /**< Pointer to init / update function */ + kdb_boolean_t (*is_active)(Elektra *); /**< Pointer to elektraGet function for active key */ } ScreenMode; /* mode flags */ diff --git a/clients/lcdproc/mem.c b/clients/lcdproc/mem.c index 187d421c..8bd00504 100644 --- a/clients/lcdproc/mem.c +++ b/clients/lcdproc/mem.c @@ -46,10 +46,11 @@ * \param rep Time since last screen update * \param display 1 if screen is visible or data should be updated * \param flags_ptr Mode flags + * \param elektra Elektra instance holding the configuration * \return Always 0 */ int -mem_screen(int rep, int display, int *flags_ptr) +mem_screen(int rep, int display, int *flags_ptr, Elektra * elektra) { const char *title_sep = "####################################################################################################"; static int which_title = 0; @@ -240,10 +241,11 @@ sort_procs(void *a, void *b) * \param rep Time since last screen update * \param display 1 if screen is visible or data should be updated * \param flags_ptr Mode flags + * \param elektra Elektra instance holding the configuration * \return Always 0 */ int -mem_top_screen(int rep, int display, int *flags_ptr) +mem_top_screen(int rep, int display, int *flags_ptr, Elektra * elektra) { LinkedList *procs; int i; diff --git a/clients/lcdproc/mem.h b/clients/lcdproc/mem.h index 20bf6d2d..af06cb6d 100644 --- a/clients/lcdproc/mem.h +++ b/clients/lcdproc/mem.h @@ -1,7 +1,7 @@ #ifndef MEM_H #define MEM_H -int mem_screen(int rep, int display, int *flags_ptr); -int mem_top_screen(int rep, int display, int *flags_ptr); +int mem_screen(int rep, int display, int *flags_ptr, Elektra * elektra); +int mem_top_screen(int rep, int display, int *flags_ptr, Elektra * elektra); #endif diff --git a/clients/lcdproc/mode.c b/clients/lcdproc/mode.c index db83808c..feee953f 100644 --- a/clients/lcdproc/mode.c +++ b/clients/lcdproc/mode.c @@ -58,10 +58,11 @@ mode_close(void) * * \param m The screen mode * \param display Flag whether to update screen even if not visible. + * \param elektra Elektra instace holding configuration * \return Backlight state */ int -update_screen(ScreenMode *m, int display) +update_screen(ScreenMode *m, int display, Elektra * elektra) { static int status = -1; int old_status = status; @@ -71,7 +72,7 @@ update_screen(ScreenMode *m, int display) /* Save the initialized flag (may be modified by m->func) */ int init_flag = (m->flags & INITIALIZED); #endif - status = m->func(m->timer, display, &(m->flags)); + status = m->func(m->timer, display, &(m->flags), elektra); #ifdef LCDPROC_EYEBOXONE /* Eyebox Init */ if (init_flag == 0) @@ -103,7 +104,7 @@ update_screen(ScreenMode *m, int display) * \return Always 0 */ int -credit_screen(int rep, int display, int *flags_ptr) +credit_screen(int rep, int display, int *flags_ptr, Elektra * elektra) { /* * List of persons who contributed to LCDproc. Keep in sync with diff --git a/clients/lcdproc/mode.h b/clients/lcdproc/mode.h index 0b183907..8750f5cb 100644 --- a/clients/lcdproc/mode.h +++ b/clients/lcdproc/mode.h @@ -3,7 +3,7 @@ int mode_init(void); void mode_close(void); -int update_screen(ScreenMode *m, int display); -int credit_screen(int rep, int display, int *flags_ptr); +int update_screen(ScreenMode *m, int display, Elektra * elektra); +int credit_screen(int rep, int display, int *flags_ptr, Elektra * elektra); #endif diff --git a/clients/lcdproc/specification/lcdproc-spec.ini b/clients/lcdproc/specification/lcdproc-spec.ini index 2b0d8bf3..e3ae0709 100644 --- a/clients/lcdproc/specification/lcdproc-spec.ini +++ b/clients/lcdproc/specification/lcdproc-spec.ini @@ -1,149 +1,153 @@ [] mountpoint = ldcproc-spec.conf -;infos/plugins = dump validation enum range network path -infos/plugins = boolean type range +;infos/plugins = dump validation type range network path +infos/plugins = ini type range ;lcdproc ;================================================== -[/lcdproc/server] +[lcdproc/server] +type = string +check/type = string default = localhost ;check/ipaddr = -check/type = string description = address of the LCDd server to connect to +opt = s +opt/long = server -[/lcdproc/port] +[lcdproc/port] type = unsigned_short ;check/port = check/type = unsigned_short default = 13666 description = Port of the server to connect to +opt = p +opt/long = port -[/lcdproc/reportlevel] +[lcdproc/reportlevel] type = unsigned_short check/type = unsigned_short check/range = 0-5 default = 2 description = set reporting level -[/lcdproc/reporttosyslog] +[lcdproc/reporttosyslog] type = boolean check/type = boolean -default = False +default = 0 ; TODO: fix description = report to syslog ? -[/lcdproc/foreground] +[lcdproc/foreground] type = boolean check/type = boolean -default = False +default = 0 ; TODO: fix description = report to syslog ? +opt = f +opt/long = foreground -[/lcdproc/pidfile] +[lcdproc/pidfile] type = string default = /var/run/lcdproc.pid description = "PidFile location when running as daemon [default: /var/run/lcdproc.pid]" -[/lcdproc/delay] +[lcdproc/delay] type = unsigned_long check/type = unsigned_long -;check/validation = ^([1-9]\d*|0)$ -;check/validation/match = LINE -;check/validation/message = Delay must be a positive number including 0 +description = slow down initial announcement of screens (in 1/100s) default = 0 +opt = e +opt = delay -[/lcdproc/displayname] +[lcdproc/displayname] type = string check/type = string default = LCDproc HOST description = display name for the main menu [default: LCDproc HOST] +[lcdproc/printversion] +type = boolean +default = 0 +description = print version information and exit +opt = v +opt/long = version + ;CPU ;================================================== -[/cpu/active] +[cpu/active] type = boolean check/type = boolean -default = True +default = 1 ; TODO: fix description = Show screen -[/cpu/showinvisible] +[cpu/showinvisible] type = boolean check/type = boolean -default = False +default = 0 ; TODO: fix ;Iface ;================================================== -[/iface/active] +[iface/active] type = boolean check/type = boolean -default = True +default = 1 ; TODO: fix description = Show screen -[/iface/interface0] +[iface/interface] type = string -check/type = string -default = eth0 -description = Show stats for Interface0 - -[/iface/alias0] -type = string -check/type = string -default = LAN -description = Interface alias name to display [default: ] +check/type = any +default = "" +array = #2 -[/iface/interface1] +[iface/interface/#/name] type = string check/type = string -description = Show stats for Interface1 +default = "" +description = Interface name -[/iface/alias1] +[iface/interface/#/alias] type = string check/type = string -description = Interface alias name to display [default: ] +default = "" +description = Interface alias name to display -[/iface/interface2] -type = string -check/type = string -description = Show stats for Interface2 - -[/iface/alias2] -type = string -check/type = string -description = Interface alias name to display [default: ] - -[/iface/unit] +[iface/unit] type = enum -check/enum = byte, bit, packet +check/enum = #2 +check/enum/#0 = byte +check/enum/#1 = bit +check/enum/#2 = packet +gen/enum/type = IfaceUnit default = byte description = Units to display [default: byte ... legal: byte, bit, packet] -[/iface/transfer] +[iface/transfer] type = boolean check/type = boolean -default = False +default = 0 ; TODO: fix description = add screen with transferred traffic ;Memory ;================================================== -[/memory/active] +[memory/active] type = boolean check/type = boolean -default = True +default = 1 ; TODO: fix description = Show screen ;Load ;================================================== -[/load/active] +[load/active] type = boolean check/type = boolean -default = True +default = 1 ; TODO: fix description = Show screen -[/load/lowload] +[load/lowload] type = float check/type = float default = 0.05 description = Min Load Avg at which the backlight will be turned off [default: 0.05] -[/load/highload] +[load/highload] type = float check/type = float default = 1.3 @@ -151,19 +155,19 @@ description = Max Load Avg at which the backlight will start blinking [default: ;TimeDate ;================================================== -[/timedate/active] +[timedate/active] type = boolean check/type = boolean -default = True +default = 1 ; TODO: fix description = Show screen -[/timedate/timeformat] +[timedate/timeformat] type = string check/type = string default = "%H:%M:%S" description = "time format [default: %H:%M:%S; legal: see strftime(3)]" -[/timedate/dateformat] +[timedate/dateformat] type = string check/type = string default = "%x" @@ -171,42 +175,42 @@ description = "date format [default: %x; legal: see strftime(3)]" ;About ;================================================== -[/about/active] +[about/active] type = boolean check/type = boolean -default = True +default = 1 ; TODO: fix description = Show screen ;SMP-CPU ;================================================== -[/smp-cpu/about] +[smpcpu/active] type = boolean check/type = boolean -default = False +default = 0 ; TODO: fix description = Show screen ;OldTime ;================================================== -[/oldtime/active] +[oldtime/active] type = boolean check/type = boolean -default = False +default = 0 ; TODO: fix description = Show screen -[/oldtime/showtitle] +[oldtime/showtitle] type = boolean check/type = boolean -default = True +default = 1 ; TODO: fix description = "Display the title bar in two-line mode. Note that with four lines or more the title is always shown. [default: true; legal: true, false]" -[/oldtime/timeformat] +[oldtime/timeformat] type = string check/type = string default = "%H:%M:%S" description = "time format [default: %H:%M:%S; legal: see strftime(3)]" -[/oldtime/dateformat] +[oldtime/dateformat] type = string check/type = string default = "%x" @@ -214,56 +218,68 @@ description = "date format [default: %x; legal: see strftime(3)]" ;BigClock ;================================================== -[/bigclock/active] +[bigclock/active] type = boolean check/type = boolean -default = False +default = 0 ; TODO: fix description = Show screen +[bigclock/showsecs] +type = boolean +check/type = boolean +default = 1 ; TODO: fix +description = Show seconds + ;Battery ;================================================== -[/battery/active] +[battery/active] type = boolean check/type = boolean -default = False +default = 0 ; TODO: fix description = Show screen ;Uptime ;================================================== -[/uptime/active] +[uptime/active] type = boolean check/type = boolean -default = False +default = 0 ; TODO: fix description = Show screen ;CPUGraph ;================================================== -[/cpugraph/active] +[cpugraph/active] type = boolean check/type = boolean -default = False +default = 0 ; TODO: fix description = Show screen ;ProcSize ;================================================== -[/procsize/active] +[procsize/active] type = boolean check/type = boolean -default = False +default = 0 ; TODO: fix description = Show screen ;Disk ;================================================== -[/disk/active] +[disk/active] type = boolean check/type = boolean -default = False +default = 0 ; TODO: fix description = Show screen ;MiniClock ;================================================== -[/miniclock/active] +[miniclock/active] type = boolean check/type = boolean -default = True -description = Show screen \ No newline at end of file +default = 1 ; TODO: fix +description = Show screen + +[miniclock/timeformat] +type = string +check/type = string +default = "%H:%M" +description = "time format [default: %H:%M; legal: see strftime(3)]" \ No newline at end of file From 8cea575586925caea845d03887156ee12a0971fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Wed, 15 May 2019 01:44:31 +0200 Subject: [PATCH 05/72] lcdd: elektrify server core with code-gen --- lcdd_spec.ini | Bin 0 -> 8 bytes server/Makefile.am | 8 + server/driver.c | 107 +- server/driver.h | 2 +- server/drivers.c | 34 +- server/drivers.h | 2 +- server/drivers/CFontz.c | 2 +- server/drivers/CFontz.h | 4 +- server/drivers/CFontzPacket.c | 2 +- server/drivers/CFontzPacket.h | 4 +- server/drivers/CwLnx.c | 2 +- server/drivers/CwLnx.h | 4 +- server/drivers/EyeboxOne.c | 2 +- server/drivers/EyeboxOne.h | 4 +- server/drivers/IOWarrior.c | 2 +- server/drivers/IOWarrior.h | 4 +- server/drivers/MD8800.c | 6 +- server/drivers/MD8800.h | 6 +- server/drivers/MtxOrb.c | 2 +- server/drivers/MtxOrb.h | 4 +- server/drivers/NoritakeVFD.c | 2 +- server/drivers/NoritakeVFD.h | 4 +- server/drivers/Olimex_MOD_LCD1x9.c | 2 +- server/drivers/Olimex_MOD_LCD1x9.h | 4 +- server/drivers/SureElec.h | 4 +- server/drivers/bayrad.c | 2 +- server/drivers/bayrad.h | 4 +- server/drivers/curses_drv.c | 9 +- server/drivers/curses_drv.h | 4 +- server/drivers/debug.c | 2 +- server/drivers/debug.h | 4 +- server/drivers/ea65.c | 2 +- server/drivers/ea65.h | 4 +- server/drivers/futaba.c | 2 +- server/drivers/futaba.h | 3 +- server/drivers/g15.c | 2 +- server/drivers/g15.h | 3 +- server/drivers/glcd-drivers.h | 14 +- server/drivers/glcd-glcd2usb.c | 2 +- server/drivers/glcd-picolcdgfx.c | 2 +- server/drivers/glcd-png.c | 2 +- server/drivers/glcd-render.c | 2 +- server/drivers/glcd-render.h | 4 +- server/drivers/glcd-serdisp.c | 2 +- server/drivers/glcd-t6963.c | 2 +- server/drivers/glcd-x11.c | 2 +- server/drivers/glcd_drv.c | 2 +- server/drivers/glcd_drv.h | 4 +- server/drivers/glcdlib.c | 2 +- server/drivers/glcdlib.h | 3 +- server/drivers/glk.c | 2 +- server/drivers/glk.h | 4 +- server/drivers/hd44780.c | 2 +- server/drivers/hd44780.h | 4 +- server/drivers/i2500vfd.c | 2 +- server/drivers/i2500vfd.h | 4 +- server/drivers/icp_a106.c | 2 +- server/drivers/icp_a106.h | 4 +- server/drivers/imon.c | 2 +- server/drivers/imon.h | 4 +- server/drivers/imonlcd.c | 6 +- server/drivers/imonlcd.h | 4 +- server/drivers/irmanin.c | 2 +- server/drivers/irmanin.h | 4 +- server/drivers/irtrans.c | 2 +- server/drivers/irtrans.h | 4 +- server/drivers/joy.c | 2 +- server/drivers/joy.h | 4 +- server/drivers/lb216.c | 2 +- server/drivers/lb216.h | 4 +- server/drivers/lcd.h | 8 +- server/drivers/lcdm001.c | 2 +- server/drivers/lcdm001.h | 4 +- server/drivers/lcterm.c | 2 +- server/drivers/lcterm.h | 4 +- server/drivers/linux_input.c | 2 +- server/drivers/linux_input.h | 4 +- server/drivers/lircin.c | 2 +- server/drivers/lircin.h | 4 +- server/drivers/lis.c | 2 +- server/drivers/lis.h | 4 +- server/drivers/mdm166a.c | 2 +- server/drivers/mdm166a.h | 4 +- server/drivers/ms6931.c | 2 +- server/drivers/mtc_s16209x.c | 2 +- server/drivers/mtc_s16209x.h | 4 +- server/drivers/picolcd.c | 2 +- server/drivers/picolcd.h | 3 +- server/drivers/pylcd.c | 14 +- server/drivers/pylcd.h | 4 +- server/drivers/rawserial.c | 2 +- server/drivers/rawserial.h | 4 +- server/drivers/sdeclcd.c | 2 +- server/drivers/sed1330.h | 4 +- server/drivers/sed1520.h | 4 +- server/drivers/serialVFD.c | 2 +- server/drivers/serialVFD.h | 4 +- server/drivers/shuttleVFD.c | 2 +- server/drivers/shuttleVFD.h | 4 +- server/drivers/stv5730.c | 2 +- server/drivers/stv5730.h | 4 +- server/drivers/svgalib_drv.c | 2 +- server/drivers/svgalib_drv.h | 4 +- server/drivers/t6963.c | 2 +- server/drivers/t6963.h | 4 +- server/drivers/text.c | 2 +- server/drivers/text.h | 4 +- server/drivers/ula200.c | 2 +- server/drivers/ula200.h | 4 +- server/drivers/vlsys_m428.c | 2 +- server/drivers/vlsys_m428.h | 4 +- server/drivers/wirz-sli.c | 2 +- server/drivers/wirz-sli.h | 4 +- server/drivers/xosdlib_drv.c | 2 +- server/drivers/xosdlib_drv.h | 3 +- server/drivers/yard2LCD.c | 2 +- server/drivers/yard2LCD.h | 4 +- server/elektragen.c | 19422 ++++++++++++++ server/elektragen.h | 36230 +++++++++++++++++++++++++++ server/input.c | 13 +- server/input.h | 4 +- server/main.c | 404 +- server/main.h | 1 - server/menuscreens.c | 42 +- server/menuscreens.h | 4 +- server/serverscreens.c | 24 +- server/serverscreens.h | 6 +- server/specification/LCDd-spec.ini | 3539 ++- 128 files changed, 58971 insertions(+), 1239 deletions(-) create mode 100644 lcdd_spec.ini create mode 100644 server/elektragen.c create mode 100644 server/elektragen.h diff --git a/lcdd_spec.ini b/lcdd_spec.ini new file mode 100644 index 0000000000000000000000000000000000000000..476aa7a088354af212a5abcdeb6b58fff1f55ef7 GIT binary patch literal 8 PcmZ?uc5z~0U|<3O2O$9& literal 0 HcmV?d00001 diff --git a/server/Makefile.am b/server/Makefile.am index 849ab926..a5d04b7e 100644 --- a/server/Makefile.am +++ b/server/Makefile.am @@ -5,6 +5,10 @@ SUBDIRS=drivers commands sbin_PROGRAMS=LCDd LCDd_SOURCES= client.c client.h clients.c clients.h input.c input.h main.c main.h menuitem.c menuitem.h menu.c menu.h menuscreens.c menuscreens.h parse.c parse.h render.c render.h screen.c screen.h screenlist.c screenlist.h serverscreens.c serverscreens.h sock.c sock.h widget.c widget.h drivers.c drivers.h driver.c driver.h +nodist_LCDd_SOURCES = elektragen.c elektragen.h +LCDd.$(OBJEXT): elektragen.c elektragen.h + +CLEANFILES = elektragen.c elektragen.h LDADD = ../shared/libLCDstuff.a commands/libLCDcommands.a @LIBPTHREAD_LIBS@ @@ -14,4 +18,8 @@ endif AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/shared -DSYSCONFDIR=\"$(sysconfdir)\" +KDB ?= kdb +elektragen.c elektragen.h: specification/LCDd-spec.ini + $(KDB) gen -F ni=specification/LCDd-spec.ini elektra "spec/sw/lcdproc/lcdd/#0/current" elektragen initFn=loadConfiguration specloadFn=doSpecloadCheck helpFn=printHelpMessage + ## EOF diff --git a/server/driver.c b/server/driver.c index bf971c7b..80f4144f 100644 --- a/server/driver.c +++ b/server/driver.c @@ -33,6 +33,10 @@ #include "drivers/lcd.h" /* lcd.h is used for the driver API definition */ +#include +#include +#include "elektragen.h" + /** property / method symbols in a Driver structure */ typedef struct driver_symbols { @@ -91,46 +95,77 @@ static int driver_store_private_ptr(Driver *driver, void *private_data); * \return Pointer to the freshly created driver; \c NULL on error. */ Driver * -driver_load(const char *name, const char *filename) +driver_load(Elektra * elektra, const char * driverpath, kdb_long_long_t index) { - Driver *driver = NULL; - int res; - - report(RPT_DEBUG, "%s(name=\"%.40s\", filename=\"%.80s\")", - __FUNCTION__, name, filename); + report(RPT_DEBUG, "%s(driverpath=\"%.40s\", index=\"%.80s\")", + __FUNCTION__, driverpath, index); /* fail on wrong / missing parameters */ - if ((name == NULL) || (filename == NULL)) + if (elektra == NULL || driverpath == NULL || index < 0) { return NULL; + } - /* Allocate memory for new driver struct */ - driver = calloc(1, sizeof(Driver)); - if (driver == NULL) { - report(RPT_ERR, "%s: error allocating driver", __FUNCTION__); + /* resolve reference */ + char * buf = malloc(sizeof("server/drivers/") + ELEKTRA_MAX_ARRAY_SIZE); + strcpy(buf, "server/drivers/"); + elektraWriteArrayNumber(&buf[sizeof("server/drivers/") - 1], index); + + const char * filekey = elektraFindReference(elektra, buf); + free(buf); + + size_t len_filekey = strlen(filekey); + buf = malloc(strlen(filekey) + sizeof("/file")); + strcpy(buf, filekey); + strcpy(&buf[len_filekey], "/file"); + + /* construct full path for module file */ + const char * file = elektraGetString(elektra, buf); + free(buf); + + size_t len_driverpath = strlen(driverpath); + size_t len_file = strlen(file); + + char * filename = malloc(len_driverpath + len_file + sizeof(MODULE_EXTENSION)); + if (filename == NULL) { + report(RPT_ERR, "%s: error allocating driver filename", __FUNCTION__); return NULL; } - /* And store its name and filename */ - driver->name = malloc(strlen(name) + 1); - if (driver->name == NULL) { - report(RPT_ERR, "%s: error allocating driver name", __FUNCTION__); - free(driver); - return NULL; + strcpy(filename, driverpath); + strcpy(&filename[len_driverpath], file); + strcpy(&filename[len_driverpath + len_file], MODULE_EXTENSION); + + /* extract name for passing to driver */ + const char * reference = elektraGetV(elektra, ELEKTRA_TAG_SERVER_DRIVERS, index); + const char * index_start = strrchr(reference, '#') - 1; + const char * name_start = index_start - 1; + while (*name_start != '/') { + --name_start; } - strcpy(driver->name, name); + ++name_start; - driver->filename = malloc(strlen(filename) + 1); - if (driver->filename == NULL) { - report(RPT_ERR, "%s: error allocating driver filename", __FUNCTION__); - free(driver->name); - free(driver); + size_t len_name = index_start - name_start; + char * name = malloc(len_name + 1); + strncpy(name, name_start, len_name); + + Driver *driver = NULL; + int res; + + /* Allocate memory for new driver struct */ + driver = calloc(1, sizeof(Driver)); + if (driver == NULL) { + report(RPT_ERR, "%s: error allocating driver", __FUNCTION__); return NULL; } - strcpy(driver->filename, filename); + + /* And store its name, index and filename */ + driver->name = name; + driver->index = index; + driver->filename = filename; /* Load and bind the driver module and locate the symbols */ if (driver_bind_module(driver) < 0) { - report(RPT_ERR, "Driver [%.40s] binding failed", name); + report(RPT_ERR, "Driver [%.40s] binding failed", reference); free(driver->name); free(driver->filename); free(driver); @@ -139,7 +174,7 @@ driver_load(const char *name, const char *filename) /* Check module version */ if (strcmp(*(driver->api_version), API_VERSION) != 0) { - report(RPT_ERR, "Driver [%.40s] is of an incompatible version", name); + report(RPT_ERR, "Driver [%.40s] is of an incompatible version", reference); driver_unbind_module(driver); free(driver->name); free(driver->filename); @@ -149,12 +184,12 @@ driver_load(const char *name, const char *filename) /* Call the init function */ debug(RPT_DEBUG, "%s: Calling driver [%.40s] init function", - __FUNCTION__, driver->name); + __FUNCTION__, reference); - res = driver->init(driver); + res = driver->init(driver, elektra); if (res < 0) { report(RPT_ERR, "Driver [%.40s] init failed, return code %d", - driver->name, res); + reference, res); /* Driver load failed, driver should not be added to list * Free driver structure again */ @@ -165,7 +200,7 @@ driver_load(const char *name, const char *filename) return NULL; } - debug(RPT_NOTICE, "Driver [%.40s] loaded", driver->name); + debug(RPT_NOTICE, "Driver [%.40s] loaded", reference); return driver; } @@ -179,7 +214,7 @@ driver_load(const char *name, const char *filename) int driver_unload(Driver *driver) { - debug(RPT_NOTICE, "Closing driver [%.40s]", driver->name); + debug(RPT_NOTICE, "Closing driver [%.40s, #"ELEKTRA_LONG_LONG_F"]", driver->name, driver->index); /* close the driver, if its \c close method is [already] defined */ if (driver->close != NULL) @@ -213,7 +248,7 @@ driver_bind_module(Driver *driver) int i; int missing_symbols = 0; - debug(RPT_DEBUG, "%s(driver=[%.40s])", __FUNCTION__, driver->name); + debug(RPT_DEBUG, "%s(driver=[%.40s, #"ELEKTRA_LONG_LONG_F"])", __FUNCTION__, driver->index); /* Load the module */ driver->module_handle = dlopen(driver->filename, RTLD_NOW); @@ -268,14 +303,6 @@ driver_bind_module(Driver *driver) /* Add our exported functions */ - /* Config file functions */ - driver->config_get_bool = config_get_bool; - driver->config_get_int = config_get_int; - driver->config_get_float = config_get_float; - driver->config_get_string = config_get_string; - driver->config_has_section = config_has_section; - driver->config_has_key = config_has_key; - /* Driver private data */ driver->store_private_ptr = driver_store_private_ptr; diff --git a/server/driver.h b/server/driver.h index 18471298..394cf7ee 100644 --- a/server/driver.h +++ b/server/driver.h @@ -23,7 +23,7 @@ #include "shared/defines.h" Driver * -driver_load(const char *name, const char *filename); +driver_load(Elektra * elektra, const char * driverpath, kdb_long_long_t index); int driver_unload(Driver *driver); diff --git a/server/drivers.c b/server/drivers.c index 91a1d8ee..7ad61684 100644 --- a/server/drivers.c +++ b/server/drivers.c @@ -23,7 +23,10 @@ #include "shared/LL.h" #include "shared/report.h" -#include "shared/configfile.h" + +#include "elektragen.h" +#include +#include #include "driver.h" #include "drivers.h" @@ -39,20 +42,17 @@ DisplayProps *display_props = NULL; /**< properties of the display */ /** * Load driver based on "DriverPath" config setting and section name or * "File" configuration setting in the driver's section. - * \param name Driver section name. + * \param reference Driver configuration reference. * \retval <0 error. * \retval 0 OK * \retval 2 OK, driver needs to run in the foreground. */ int -drivers_load_driver(const char *name) +drivers_load_driver(Elektra * elektra, kdb_long_long_t index) { Driver *driver; - const char *s; - char *driverpath; - char *filename; - debug(RPT_DEBUG, "%s(name=\"%.40s\")", __FUNCTION__, name); + debug(RPT_DEBUG, "%s(index=\"%.40s\")", __FUNCTION__, index); /* First driver ? */ if (!loaded_drivers) { @@ -65,27 +65,13 @@ drivers_load_driver(const char *name) } /* Retrieve data from config file */ - s = config_get_string("server", "DriverPath", 0, ""); - driverpath = alloca(strlen(s) + 1); - strcpy(driverpath, s); - - s = config_get_string(name, "File", 0, NULL); - if (s) { - filename = alloca(strlen(driverpath) + strlen(s) + 1); - strcpy(filename, driverpath); - strcat(filename, s); - } else { - filename = alloca(strlen(driverpath) + strlen(name) + strlen(MODULE_EXTENSION) + 1); - strcpy(filename, driverpath); - strcat(filename, name); - strcat(filename, MODULE_EXTENSION); - } + const char * driverpath = elektraGet(elektra, ELEKTRA_TAG_SERVER_DRIVERPATH); /* Load the module */ - driver = driver_load(name, filename); + driver = driver_load(elektra, driverpath, index); if (driver == NULL) { /* It failed. The message has already been given by driver_load() */ - report(RPT_INFO, "Module %.40s could not be loaded", filename); + report(RPT_INFO, "Driver #"ELEKTRA_LONG_LONG_F" could not be loaded", index); return -1; } diff --git a/server/drivers.h b/server/drivers.h index c2efe705..78790334 100644 --- a/server/drivers.h +++ b/server/drivers.h @@ -23,7 +23,7 @@ typedef struct DisplayProps { extern DisplayProps *display_props; int -drivers_load_driver(const char *name); +drivers_load_driver(Elektra * elektra, kdb_long_long_t index); void drivers_unload_all(void); diff --git a/server/drivers/CFontz.c b/server/drivers/CFontz.c index 8c5ec9b6..9f176593 100644 --- a/server/drivers/CFontz.c +++ b/server/drivers/CFontz.c @@ -100,7 +100,7 @@ static void CFontz_raw_chr(Driver *drvthis, int x, int y, unsigned char c); * \retval <0 Error. */ MODULE_EXPORT int -CFontz_init(Driver *drvthis) +CFontz_init(Driver *drvthis, Elektra * elektra) { struct termios portset; int tmp, w, h; diff --git a/server/drivers/CFontz.h b/server/drivers/CFontz.h index 6c957423..ad6f72cd 100644 --- a/server/drivers/CFontz.h +++ b/server/drivers/CFontz.h @@ -1,6 +1,8 @@ #ifndef CFONTZ_H #define CFONTZ_H +#include + #define DEFAULT_CELL_WIDTH 6 #define DEFAULT_CELL_HEIGHT 8 #define DEFAULT_CONTRAST 560 @@ -41,7 +43,7 @@ #define CFONTZ_Show_Information_Screen 0x1F -MODULE_EXPORT int CFontz_init(Driver *drvthis); +MODULE_EXPORT int CFontz_init(Driver *drvthis, Elektra * elektra); MODULE_EXPORT void CFontz_close(Driver *drvthis); MODULE_EXPORT int CFontz_width(Driver *drvthis); MODULE_EXPORT int CFontz_height(Driver *drvthis); diff --git a/server/drivers/CFontzPacket.c b/server/drivers/CFontzPacket.c index af48644d..4a4aac4e 100644 --- a/server/drivers/CFontzPacket.c +++ b/server/drivers/CFontzPacket.c @@ -122,7 +122,7 @@ static void CFontzPacket_raw_chr (Driver *drvthis, int x, int y, unsigned char c * \retval <0 Error. */ MODULE_EXPORT int -CFontzPacket_init (Driver *drvthis) +CFontzPacket_init (Driver *drvthis, Elektra * elektra) { struct termios portset; int tmp, w, h, i; diff --git a/server/drivers/CFontzPacket.h b/server/drivers/CFontzPacket.h index 58b7bfaa..a401dd74 100644 --- a/server/drivers/CFontzPacket.h +++ b/server/drivers/CFontzPacket.h @@ -1,6 +1,8 @@ #ifndef CFONTZPACKET_H #define CFONTZPACKET_H +#include + #define DEFAULT_CELL_HEIGHT 8 #define DEFAULT_CONTRAST 560 #define DEFAULT_DEVICE "/dev/lcd" @@ -22,7 +24,7 @@ typedef struct CFA_Model { int flags; /**< Bitmap of display features, see CFA_HAS_* above */ } CFA_Model; -MODULE_EXPORT int CFontzPacket_init (Driver *drvthis); +MODULE_EXPORT int CFontzPacket_init (Driver *drvthis, Elektra * elektra); MODULE_EXPORT void CFontzPacket_close (Driver *drvthis); MODULE_EXPORT int CFontzPacket_width (Driver *drvthis); MODULE_EXPORT int CFontzPacket_height (Driver *drvthis); diff --git a/server/drivers/CwLnx.c b/server/drivers/CwLnx.c index 1c0a8d1d..8fcac698 100644 --- a/server/drivers/CwLnx.c +++ b/server/drivers/CwLnx.c @@ -438,7 +438,7 @@ static void CwLnx_reboot(int fd) * \retval <0 Error. */ MODULE_EXPORT int -CwLnx_init(Driver *drvthis) +CwLnx_init(Driver *drvthis, Elektra * elektra) { char device[200] = DEFAULT_DEVICE; int speed = DEFAULT_SPEED; diff --git a/server/drivers/CwLnx.h b/server/drivers/CwLnx.h index af458d75..e9ff69e9 100644 --- a/server/drivers/CwLnx.h +++ b/server/drivers/CwLnx.h @@ -22,6 +22,8 @@ #ifndef CWLNX_H #define CWLNX_H +#include + #define DEFAULT_DEVICE "/dev/lcd" #define DEFAULT_BACKLIGHT 1 #define DEFAULT_BRIGHTNESS 700 @@ -47,7 +49,7 @@ #define DEFAULT_SIZE DEFAULT_SIZE_12232 -MODULE_EXPORT int CwLnx_init(Driver *drvthis); +MODULE_EXPORT int CwLnx_init(Driver *drvthis, Elektra * elektra); MODULE_EXPORT void CwLnx_close(Driver *drvthis); MODULE_EXPORT int CwLnx_width(Driver *drvthis); MODULE_EXPORT int CwLnx_height(Driver *drvthis); diff --git a/server/drivers/EyeboxOne.c b/server/drivers/EyeboxOne.c index fe448e3b..4b4754fd 100644 --- a/server/drivers/EyeboxOne.c +++ b/server/drivers/EyeboxOne.c @@ -126,7 +126,7 @@ EyeboxOne_parse_keypad_setting (Driver *drvthis, char * keyname, char default_va * Called to initialize driver settings */ MODULE_EXPORT int -EyeboxOne_init (Driver *drvthis) +EyeboxOne_init (Driver *drvthis, Elektra * elektra) { struct termios portset; diff --git a/server/drivers/EyeboxOne.h b/server/drivers/EyeboxOne.h index 4810a577..4c1baf50 100644 --- a/server/drivers/EyeboxOne.h +++ b/server/drivers/EyeboxOne.h @@ -1,7 +1,9 @@ #ifndef EYEBOXONE_H #define EYEBOXONE_H -MODULE_EXPORT int EyeboxOne_init (Driver *drvthis); +#include + +MODULE_EXPORT int EyeboxOne_init (Driver *drvthis, Elektra * elektra); MODULE_EXPORT void EyeboxOne_close (Driver *drvthis); MODULE_EXPORT int EyeboxOne_width (Driver *drvthis); MODULE_EXPORT int EyeboxOne_height (Driver *drvthis); diff --git a/server/drivers/IOWarrior.c b/server/drivers/IOWarrior.c index ca23c2b8..5ea3c4cc 100644 --- a/server/drivers/IOWarrior.c +++ b/server/drivers/IOWarrior.c @@ -236,7 +236,7 @@ static int iowled_on_off(PrivateData *p, unsigned int pattern) * \retval <0 Error. */ MODULE_EXPORT int -IOWarrior_init(Driver *drvthis) +IOWarrior_init(Driver *drvthis, Elektra * elektra) { char serial[LCD_MAX_WIDTH+1] = DEFAULT_SERIALNO; char size[LCD_MAX_WIDTH+1] = DEFAULT_SIZE; diff --git a/server/drivers/IOWarrior.h b/server/drivers/IOWarrior.h index 511cf2f0..6b42a975 100644 --- a/server/drivers/IOWarrior.h +++ b/server/drivers/IOWarrior.h @@ -27,6 +27,8 @@ #ifndef IOWARRIOR_H #define IOWARRIOR_H +#include + #define DEFAULT_SERIALNO "" #define DEFAULT_SIZE "20x4" #define DEFAULT_BACKLIGHT 1 @@ -116,7 +118,7 @@ MODULE_EXPORT int supports_multiple = 1; MODULE_EXPORT char *symbol_prefix = "IOWarrior_"; /* API: functions for the server core */ -MODULE_EXPORT int IOWarrior_init(Driver *drvthis); +MODULE_EXPORT int IOWarrior_init(Driver *drvthis, Elektra * elektra); MODULE_EXPORT void IOWarrior_close(Driver *drvthis); MODULE_EXPORT int IOWarrior_width(Driver *drvthis); MODULE_EXPORT int IOWarrior_height(Driver *drvthis); diff --git a/server/drivers/MD8800.c b/server/drivers/MD8800.c index a5b958cc..e23cc659 100644 --- a/server/drivers/MD8800.c +++ b/server/drivers/MD8800.c @@ -3,7 +3,7 @@ */ /* - Copyright (C) 2006 Stefan Herdler in collaboration with Martin Møller. + Copyright (C) 2006 Stefan Herdler in collaboration with Martin M�ller. This source Code is based on the NoritakeVFD, the serialVFD and the CFontzPacket Driver of this package. @@ -28,7 +28,7 @@ ============================================================================== Known hardware-commands of the MD8800 display - discovered by Martin Møller (listed in octal notation): + discovered by Martin M�ller (listed in octal notation): \33\0abcdef (abcdef can be anything, it seems) - set clock, I think. The mapping is: bb:aa dd.cc.eeff @@ -224,7 +224,7 @@ MODULE_EXPORT char *symbol_prefix = "MD8800_"; // Opens com port and sets baud correctly... // MODULE_EXPORT int -MD8800_init (Driver *drvthis) +MD8800_init (Driver *drvthis, Elektra * elektra) { struct termios portset; int tmp, w, h; diff --git a/server/drivers/MD8800.h b/server/drivers/MD8800.h index 5f9701a9..ba13c17a 100644 --- a/server/drivers/MD8800.h +++ b/server/drivers/MD8800.h @@ -1,6 +1,6 @@ /* This is the LCDproc driver for the VFD of the Medion MD8800 PC - Copyright (C) 2006 Stefan Herdler in collaboration with Martin Møller. + Copyright (C) 2006 Stefan Herdler in collaboration with Martin M�ller. This source Code is based on the NoritakeVFD, the serialVFD and the CFontzPacket Driver of this package. @@ -23,13 +23,15 @@ #ifndef MD8800_H #define MD8800_H +#include + #define DEFAULT_CELL_WIDTH 5 #define DEFAULT_CELL_HEIGHT 7 #define DEFAULT_DEVICE "/dev/ttyS1" #define DEFAULT_SPEED 9600 #define DEFAULT_SIZE "16x2" -MODULE_EXPORT int MD8800_init (Driver *drvthis); +MODULE_EXPORT int MD8800_init (Driver *drvthis, Elektra * elektra); MODULE_EXPORT void MD8800_close (Driver *drvthis); MODULE_EXPORT int MD8800_width (Driver *drvthis); MODULE_EXPORT int MD8800_height (Driver *drvthis); diff --git a/server/drivers/MtxOrb.c b/server/drivers/MtxOrb.c index 80fc76be..f0de94b0 100644 --- a/server/drivers/MtxOrb.c +++ b/server/drivers/MtxOrb.c @@ -213,7 +213,7 @@ static void MtxOrb_cursor_goto(Driver *drvthis, int x, int y); * \retval <0 Error. */ MODULE_EXPORT int -MtxOrb_init (Driver *drvthis) +MtxOrb_init (Driver *drvthis, Elektra * elektra) { struct termios portset; diff --git a/server/drivers/MtxOrb.h b/server/drivers/MtxOrb.h index 216a4ae5..7241733c 100644 --- a/server/drivers/MtxOrb.h +++ b/server/drivers/MtxOrb.h @@ -1,6 +1,8 @@ #ifndef MTXORB_H #define MTXORB_H +#include + #define DEFAULT_CONTRAST 480 #define DEFAULT_ADJ_BACKLIGHT 1 #define DEFAULT_BRIGHTNESS 1000 @@ -20,7 +22,7 @@ typedef struct MtxOrbModule { int flags; } MtxOrbModuleEntry; -MODULE_EXPORT int MtxOrb_init (Driver *drvthis); +MODULE_EXPORT int MtxOrb_init (Driver *drvthis, Elektra * elektra); MODULE_EXPORT void MtxOrb_close (Driver *drvthis); MODULE_EXPORT int MtxOrb_width (Driver *drvthis); MODULE_EXPORT int MtxOrb_height (Driver *drvthis); diff --git a/server/drivers/NoritakeVFD.c b/server/drivers/NoritakeVFD.c index b847a387..743656d2 100644 --- a/server/drivers/NoritakeVFD.c +++ b/server/drivers/NoritakeVFD.c @@ -107,7 +107,7 @@ static void NoritakeVFD_cursor_goto (Driver *drvthis, int x, int y); * \retval <0 Error. */ MODULE_EXPORT int -NoritakeVFD_init (Driver *drvthis) +NoritakeVFD_init (Driver *drvthis, Elektra * elektra) { struct termios portset; int tmp, w, h; diff --git a/server/drivers/NoritakeVFD.h b/server/drivers/NoritakeVFD.h index f5957801..4bec01bd 100644 --- a/server/drivers/NoritakeVFD.h +++ b/server/drivers/NoritakeVFD.h @@ -22,6 +22,8 @@ #ifndef NORITAKEVFD_H #define NORITAKEVFD_H +#include + #define DEFAULT_CELL_WIDTH 5 #define DEFAULT_CELL_HEIGHT 7 #define DEFAULT_DEVICE "/dev/lcd" @@ -31,7 +33,7 @@ #define DEFAULT_SIZE "20x4" #define DEFAULT_PARITY 0 -MODULE_EXPORT int NoritakeVFD_init (Driver *drvthis); +MODULE_EXPORT int NoritakeVFD_init (Driver *drvthis, Elektra * elektra); MODULE_EXPORT void NoritakeVFD_close (Driver *drvthis); MODULE_EXPORT int NoritakeVFD_width (Driver *drvthis); MODULE_EXPORT int NoritakeVFD_height (Driver *drvthis); diff --git a/server/drivers/Olimex_MOD_LCD1x9.c b/server/drivers/Olimex_MOD_LCD1x9.c index 8aeed349..12781eb8 100644 --- a/server/drivers/Olimex_MOD_LCD1x9.c +++ b/server/drivers/Olimex_MOD_LCD1x9.c @@ -58,7 +58,7 @@ MODULE_EXPORT char *symbol_prefix = "olimex1x9_"; * \retval <0 Error. */ MODULE_EXPORT int -olimex1x9_init (Driver *drvthis) +olimex1x9_init (Driver *drvthis, Elektra * elektra) { PrivateData *p; const char *configvalue; diff --git a/server/drivers/Olimex_MOD_LCD1x9.h b/server/drivers/Olimex_MOD_LCD1x9.h index 87d5c66e..8f14a5d0 100644 --- a/server/drivers/Olimex_MOD_LCD1x9.h +++ b/server/drivers/Olimex_MOD_LCD1x9.h @@ -1,7 +1,9 @@ #ifndef OLIMEX_LCD1x9_H #define OLIMEX_LCD1x9_H -MODULE_EXPORT int olimex1x9_init (Driver *drvthis); +#include + +MODULE_EXPORT int olimex1x9_init (Driver *drvthis, Elektra * elektra); MODULE_EXPORT void olimex1x9_close (Driver *drvthis); MODULE_EXPORT int olimex1x9_width (Driver *drvthis); MODULE_EXPORT int olimex1x9_height (Driver *drvthis); diff --git a/server/drivers/SureElec.h b/server/drivers/SureElec.h index 7e1d3bf2..2729ceb3 100644 --- a/server/drivers/SureElec.h +++ b/server/drivers/SureElec.h @@ -4,6 +4,8 @@ #ifndef SUREELEC_H #define SUREELEC_H +#include + #define DEFAULT_DEVICE "/dev/ttyUSB0" #define DEFAULT_SPEED 9600 #define DEFAULT_LINEWRAP 1 @@ -26,7 +28,7 @@ #define NUM_CC 8 -MODULE_EXPORT int SureElec_init (Driver *drvthis); +MODULE_EXPORT int SureElec_init (Driver *drvthis, Elektra * elektra); MODULE_EXPORT void SureElec_close (Driver *drvthis); MODULE_EXPORT int SureElec_width (Driver *drvthis); MODULE_EXPORT int SureElec_height (Driver *drvthis); diff --git a/server/drivers/bayrad.c b/server/drivers/bayrad.c index d0f0dcd1..d011b4f0 100644 --- a/server/drivers/bayrad.c +++ b/server/drivers/bayrad.c @@ -70,7 +70,7 @@ MODULE_EXPORT char *symbol_prefix = "bayrad_"; * \retval <0 Error. */ MODULE_EXPORT int -bayrad_init(Driver *drvthis) +bayrad_init(Driver *drvthis, Elektra * elektra) { PrivateData *p; struct termios portset; diff --git a/server/drivers/bayrad.h b/server/drivers/bayrad.h index 44ec2c58..a4109e3c 100644 --- a/server/drivers/bayrad.h +++ b/server/drivers/bayrad.h @@ -8,7 +8,9 @@ #ifndef _BAYRAD_H #define _BAYRAD_H -MODULE_EXPORT int bayrad_init(Driver *drvthis); +#include + +MODULE_EXPORT int bayrad_init(Driver *drvthis, Elektra * elektra); MODULE_EXPORT void bayrad_close(Driver *drvthis); MODULE_EXPORT int bayrad_width(Driver *drvthis); MODULE_EXPORT int bayrad_height(Driver *drvthis); diff --git a/server/drivers/curses_drv.c b/server/drivers/curses_drv.c index ed04e8c2..44140b20 100644 --- a/server/drivers/curses_drv.c +++ b/server/drivers/curses_drv.c @@ -49,6 +49,11 @@ Different implementations of (n)curses available on: #include "config.h" #endif +#include "lcd.h" +#include "curses_drv.h" + +#define ELEKTRA_KEY_END 0 + #include #include #include @@ -61,8 +66,6 @@ Different implementations of (n)curses available on: #include #endif -#include "lcd.h" -#include "curses_drv.h" #include "shared/report.h" // ACS_S9 and ACS_S1 are defined as part of XSI Curses standard, Issue 4. @@ -142,7 +145,7 @@ static void curses_restore_screen (Driver *drvthis); * \retval <0 Error. */ MODULE_EXPORT int -curses_init (Driver *drvthis) +curses_init (Driver *drvthis, Elektra * elektra) { PrivateData *p; char buf[256]; diff --git a/server/drivers/curses_drv.h b/server/drivers/curses_drv.h index 54c04a1a..437c8472 100644 --- a/server/drivers/curses_drv.h +++ b/server/drivers/curses_drv.h @@ -1,7 +1,9 @@ #ifndef LCD_CURSES_H #define LCD_CURSES_H -MODULE_EXPORT int curses_init (Driver *drvthis); +#include + +MODULE_EXPORT int curses_init (Driver *drvthis, Elektra * elektra); MODULE_EXPORT void curses_close (Driver *drvthis); MODULE_EXPORT int curses_width (Driver *drvthis); MODULE_EXPORT int curses_height (Driver *drvthis); diff --git a/server/drivers/debug.c b/server/drivers/debug.c index aaf652ff..827167f6 100644 --- a/server/drivers/debug.c +++ b/server/drivers/debug.c @@ -71,7 +71,7 @@ MODULE_EXPORT char *symbol_prefix = "debug_"; * \retval <0 Error. */ MODULE_EXPORT int -debug_init(Driver *drvthis) +debug_init(Driver *drvthis, Elektra * elektra) { PrivateData *p; diff --git a/server/drivers/debug.h b/server/drivers/debug.h index a4eeb00e..593eb773 100644 --- a/server/drivers/debug.h +++ b/server/drivers/debug.h @@ -1,7 +1,9 @@ #ifndef LCD_DEBUG_H #define LCD_DEBUG_H -MODULE_EXPORT int debug_init (Driver *drvthis); +#include + +MODULE_EXPORT int debug_init (Driver *drvthis, Elektra * elektra); MODULE_EXPORT void debug_close (Driver *drvthis); MODULE_EXPORT int debug_width (Driver *drvthis); MODULE_EXPORT int debug_height (Driver *drvthis); diff --git a/server/drivers/ea65.c b/server/drivers/ea65.c index 44c27dec..e2a07de1 100644 --- a/server/drivers/ea65.c +++ b/server/drivers/ea65.c @@ -68,7 +68,7 @@ MODULE_EXPORT char *symbol_prefix = "EA65_"; * \retval <0 Error. */ MODULE_EXPORT int -EA65_init (Driver *drvthis) +EA65_init (Driver *drvthis, Elektra * elektra) { struct termios portset; /* device is fixed */ diff --git a/server/drivers/ea65.h b/server/drivers/ea65.h index c3d764c4..327a7c50 100644 --- a/server/drivers/ea65.h +++ b/server/drivers/ea65.h @@ -1,10 +1,12 @@ #ifndef EA65_H #define EA65_H +#include + #define DEFAULT_BRIGHTNESS 500 #define DEFAULT_OFFBRIGHTNESS 0 -MODULE_EXPORT int EA65_init (Driver *drvthis); +MODULE_EXPORT int EA65_init (Driver *drvthis, Elektra * elektra); MODULE_EXPORT void EA65_close (Driver *drvthis); MODULE_EXPORT int EA65_width (Driver *drvthis); MODULE_EXPORT int EA65_height (Driver *drvthis); diff --git a/server/drivers/futaba.c b/server/drivers/futaba.c index 6edeb0ad..3c53558e 100644 --- a/server/drivers/futaba.c +++ b/server/drivers/futaba.c @@ -491,7 +491,7 @@ futaba_shutdown(Driver *drvthis) * \return 0 on success, -1 on error. */ MODULE_EXPORT int -futaba_init(Driver *drvthis) +futaba_init(Driver *drvthis, Elektra * elektra) { PrivateData *p; diff --git a/server/drivers/futaba.h b/server/drivers/futaba.h index 0febe852..2ef20b60 100644 --- a/server/drivers/futaba.h +++ b/server/drivers/futaba.h @@ -23,6 +23,7 @@ #define USB_CLOSE_DEVICE usb_close #define USB_CONTROL_TRANSFER usb_control_msg #endif +#include /* DEFINITIONS----------------------------------- */ #define FUTABA_REPORT_LENGTH 64 @@ -91,7 +92,7 @@ int futaba_set_icon(Driver *drvthis); void futaba_shutdown(Driver *drvthis); -MODULE_EXPORT int futaba_init(Driver *drvthis); +MODULE_EXPORT int futaba_init(Driver *drvthis, Elektra * elektra); MODULE_EXPORT void futaba_close(Driver *drvthis); MODULE_EXPORT int futaba_width(Driver *drvthis); MODULE_EXPORT int futaba_height(Driver *drvthis); diff --git a/server/drivers/g15.c b/server/drivers/g15.c index c2a66d65..8f57ab08 100644 --- a/server/drivers/g15.c +++ b/server/drivers/g15.c @@ -55,7 +55,7 @@ MODULE_EXPORT char *symbol_prefix = "g15_"; // Find the proper usb device and initialize it // -MODULE_EXPORT int g15_init (Driver *drvthis) +MODULE_EXPORT int g15_init (Driver *drvthis, Elektra * elektra) { PrivateData *p; diff --git a/server/drivers/g15.h b/server/drivers/g15.h index 599f1772..1d56ff2e 100644 --- a/server/drivers/g15.h +++ b/server/drivers/g15.h @@ -25,6 +25,7 @@ #include #include #include "lcd.h" +#include /** private data for the \c g15 driver */ typedef struct g15_private_data { @@ -72,7 +73,7 @@ typedef struct g15_private_data { extern short g15_bignum_data[11][G15_BIGNUM_LEN]; -MODULE_EXPORT int g15_init (Driver *drvthis); +MODULE_EXPORT int g15_init (Driver *drvthis, Elektra * elektra); MODULE_EXPORT void g15_close (Driver *drvthis); MODULE_EXPORT int g15_width (Driver *drvthis); MODULE_EXPORT int g15_height (Driver *drvthis); diff --git a/server/drivers/glcd-drivers.h b/server/drivers/glcd-drivers.h index 93f71505..58c037c5 100644 --- a/server/drivers/glcd-drivers.h +++ b/server/drivers/glcd-drivers.h @@ -12,22 +12,24 @@ # include "config.h" #endif +#include + /* Include prototypes for initialization functions below */ #ifdef HAVE_PCSTYLE_LPT_CONTROL -int glcd_t6963_init(Driver *drvthis); +int glcd_t6963_init(Driver *drvthis, Elektra * elektra); #endif #ifdef HAVE_LIBPNG -int glcd_png_init(Driver *drvthis); +int glcd_png_init(Driver *drvthis, Elektra * elektra); #endif #ifdef HAVE_SERDISPLIB -int glcd_serdisp_init(Driver *drvthis); +int glcd_serdisp_init(Driver *drvthis, Elektra * elektra); #endif #ifdef HAVE_LIBUSB -int glcd2usb_init(Driver *drvthis); -int glcd_picolcdgfx_init(Driver *drvthis); +int glcd2usb_init(Driver *drvthis, Elektra * elektra); +int glcd_picolcdgfx_init(Driver *drvthis, Elektra * elektra); #endif #ifdef HAVE_LIBX11 -int glcd_x11_init(Driver *drvthis); +int glcd_x11_init(Driver *drvthis, Elektra * elektra); #endif /* symbolic names for connection types */ diff --git a/server/drivers/glcd-glcd2usb.c b/server/drivers/glcd-glcd2usb.c index 0a3e024a..d0651ade 100644 --- a/server/drivers/glcd-glcd2usb.c +++ b/server/drivers/glcd-glcd2usb.c @@ -337,7 +337,7 @@ glcd2usb_poll_keys(PrivateData *p) * API: Initialize glcd2usb connection type. */ int -glcd2usb_init(Driver *drvthis) +glcd2usb_init(Driver *drvthis, Elektra * elektra) { PrivateData *p = (PrivateData *)drvthis->private_data; CT_glcd2usb_data *ctd; diff --git a/server/drivers/glcd-picolcdgfx.c b/server/drivers/glcd-picolcdgfx.c index 33611712..612175ba 100644 --- a/server/drivers/glcd-picolcdgfx.c +++ b/server/drivers/glcd-picolcdgfx.c @@ -88,7 +88,7 @@ picolcdgfx_write(usb_dev_handle * lcd, unsigned char *data, int size) * \retval <0 Error. */ int -glcd_picolcdgfx_init(Driver *drvthis) +glcd_picolcdgfx_init(Driver *drvthis, Elektra * elektra) { PrivateData *p = (PrivateData *) drvthis->private_data; CT_picolcdgfx_data *ct_data; diff --git a/server/drivers/glcd-png.c b/server/drivers/glcd-png.c index 916f1fb4..3ca9dee7 100644 --- a/server/drivers/glcd-png.c +++ b/server/drivers/glcd-png.c @@ -44,7 +44,7 @@ typedef struct glcd_png_data { * \retval <0 Error. */ int -glcd_png_init(Driver *drvthis) +glcd_png_init(Driver *drvthis, Elektra * elektra) { PrivateData *p = (PrivateData *)drvthis->private_data; CT_png_data *ct_data; diff --git a/server/drivers/glcd-render.c b/server/drivers/glcd-render.c index b11f00b2..4232ecf5 100644 --- a/server/drivers/glcd-render.c +++ b/server/drivers/glcd-render.c @@ -53,7 +53,7 @@ static int icon2unicode(int icon); * \note This function must be implemented, even if not compiled with Freetype! */ int -glcd_render_init(Driver *drvthis) +glcd_render_init(Driver *drvthis, Elektra * elektra) { PrivateData *p = drvthis->private_data; p->cellwidth = GLCD_DEFAULT_CELLWIDTH; diff --git a/server/drivers/glcd-render.h b/server/drivers/glcd-render.h index 2085a276..9d0712fb 100644 --- a/server/drivers/glcd-render.h +++ b/server/drivers/glcd-render.h @@ -1,7 +1,9 @@ #ifndef GLCD_RENDER_H #define GLCD_RENDER_H -int glcd_render_init(Driver *drvthis); +#include + +int glcd_render_init(Driver *drvthis, Elektra * elektra); void glcd_render_close(Driver *drvthis); void glcd_render_char(Driver *drvthis, int x, int y, unsigned char c); int glcd_render_icon(Driver *drvthis, int x, int y, int icon); diff --git a/server/drivers/glcd-serdisp.c b/server/drivers/glcd-serdisp.c index ce1716f3..cd37b26c 100644 --- a/server/drivers/glcd-serdisp.c +++ b/server/drivers/glcd-serdisp.c @@ -57,7 +57,7 @@ typedef struct glcd_serdisp_data { * \retval <0 Error. */ int -glcd_serdisp_init(Driver *drvthis) +glcd_serdisp_init(Driver *drvthis, Elektra * elektra) { PrivateData *p = (PrivateData *)drvthis->private_data; CT_serdisp_data *ct_data; diff --git a/server/drivers/glcd-t6963.c b/server/drivers/glcd-t6963.c index d97d1b89..2b144780 100644 --- a/server/drivers/glcd-t6963.c +++ b/server/drivers/glcd-t6963.c @@ -46,7 +46,7 @@ typedef struct glcd_t6963_data { * \retval <0 Error. */ int -glcd_t6963_init(Driver *drvthis) +glcd_t6963_init(Driver *drvthis, Elektra * elektra) { PrivateData *p = (PrivateData *)drvthis->private_data; T6963_port *port_config; diff --git a/server/drivers/glcd-x11.c b/server/drivers/glcd-x11.c index 7e8727fe..1bd710d3 100755 --- a/server/drivers/glcd-x11.c +++ b/server/drivers/glcd-x11.c @@ -155,7 +155,7 @@ x11w_adj_contrast_brightness(unsigned long *pfgc, unsigned long *pbgc, int contr * \retval <0 Error. */ int -glcd_x11_init(Driver *drvthis) +glcd_x11_init(Driver *drvthis, Elektra * elektra) { PrivateData *p = (PrivateData *) drvthis->private_data; CT_x11_data *ct_data; diff --git a/server/drivers/glcd_drv.c b/server/drivers/glcd_drv.c index cce71250..12cddfb5 100644 --- a/server/drivers/glcd_drv.c +++ b/server/drivers/glcd_drv.c @@ -69,7 +69,7 @@ static char *defaultKeyMap[GLCD_KEYPAD_MAX] = {"Up", "Down", "Left", "Right", "E * \retval <0 Error. */ MODULE_EXPORT int -glcd_init(Driver *drvthis) +glcd_init(Driver *drvthis, Elektra * elektra) { PrivateData *p; int i; diff --git a/server/drivers/glcd_drv.h b/server/drivers/glcd_drv.h index be3717d0..9067a060 100644 --- a/server/drivers/glcd_drv.h +++ b/server/drivers/glcd_drv.h @@ -1,7 +1,9 @@ #ifndef GLCD_DRV_H #define GLCD_DRV_H -MODULE_EXPORT int glcd_init(Driver *drvthis); +#include + +MODULE_EXPORT int glcd_init(Driver *drvthis, Elektra * elektra); MODULE_EXPORT void glcd_close(Driver *drvthis); MODULE_EXPORT int glcd_width(Driver *drvthis); MODULE_EXPORT int glcd_height(Driver *drvthis); diff --git a/server/drivers/glcdlib.c b/server/drivers/glcdlib.c index 900bf7ee..f6415275 100644 --- a/server/drivers/glcdlib.c +++ b/server/drivers/glcdlib.c @@ -50,7 +50,7 @@ MODULE_EXPORT int supports_multiple = 0; MODULE_EXPORT char *symbol_prefix = "glcdlib_"; -MODULE_EXPORT int glcdlib_init (Driver *drvthis) +MODULE_EXPORT int glcdlib_init (Driver *drvthis, Elektra * elektra) { glcdlibPD * pPD; diff --git a/server/drivers/glcdlib.h b/server/drivers/glcdlib.h index 7799e9cb..4b48a67c 100644 --- a/server/drivers/glcdlib.h +++ b/server/drivers/glcdlib.h @@ -16,6 +16,7 @@ #define GLCDLIBLCDPROCDRIVER_H #include "lcd.h" +#include @@ -27,7 +28,7 @@ typedef unsigned char u8; // **************************************************************************************** -MODULE_EXPORT int glcdlib_init (Driver *drvthis); +MODULE_EXPORT int glcdlib_init (Driver *drvthis, Elektra * elektra); MODULE_EXPORT void glcdlib_close (Driver *drvthis); MODULE_EXPORT int glcdlib_width (Driver *drvthis); MODULE_EXPORT int glcdlib_height (Driver *drvthis); diff --git a/server/drivers/glk.c b/server/drivers/glk.c index 668a0f6f..5329ab21 100644 --- a/server/drivers/glk.c +++ b/server/drivers/glk.c @@ -91,7 +91,7 @@ MODULE_EXPORT char *symbol_prefix = "glk_"; * \retval <0 Error. */ MODULE_EXPORT int -glk_init(Driver *drvthis) +glk_init(Driver *drvthis, Elektra * elektra) { PrivateData *p; int i; diff --git a/server/drivers/glk.h b/server/drivers/glk.h index a182e1a2..3e5f0063 100644 --- a/server/drivers/glk.h +++ b/server/drivers/glk.h @@ -1,7 +1,9 @@ #ifndef GLK_H #define GLK_H -MODULE_EXPORT int glk_init(Driver *drvthis); +#include + +MODULE_EXPORT int glk_init(Driver *drvthis, Elektra * elektra); MODULE_EXPORT void glk_close(Driver *drvthis); MODULE_EXPORT int glk_width(Driver *drvthis); MODULE_EXPORT int glk_height(Driver *drvthis); diff --git a/server/drivers/hd44780.c b/server/drivers/hd44780.c index ba708b0e..92fa6380 100644 --- a/server/drivers/hd44780.c +++ b/server/drivers/hd44780.c @@ -300,7 +300,7 @@ static void report_backlight_type(int report_level, int backlight_type) * \retval <0 Error. */ MODULE_EXPORT int -HD44780_init(Driver *drvthis) +HD44780_init(Driver *drvthis, Elektra * elektra) { /* TODO: single point of return */ char buf[40]; diff --git a/server/drivers/hd44780.h b/server/drivers/hd44780.h index 6d6d20ef..7959170d 100644 --- a/server/drivers/hd44780.h +++ b/server/drivers/hd44780.h @@ -17,7 +17,9 @@ #ifndef HD44780_H #define HD44780_H -MODULE_EXPORT int HD44780_init(Driver *drvthis); +#include + +MODULE_EXPORT int HD44780_init(Driver *drvthis, Elektra * elektra); MODULE_EXPORT void HD44780_close(Driver *drvthis); MODULE_EXPORT int HD44780_width(Driver *drvthis); MODULE_EXPORT int HD44780_height(Driver *drvthis); diff --git a/server/drivers/i2500vfd.c b/server/drivers/i2500vfd.c index 46ba19b7..d029e259 100644 --- a/server/drivers/i2500vfd.c +++ b/server/drivers/i2500vfd.c @@ -101,7 +101,7 @@ drawchar2fb (Driver *drvthis, int x, int y, unsigned char z) // This initialises the stuff. // MODULE_EXPORT int -i2500vfd_init (Driver *drvthis) +i2500vfd_init (Driver *drvthis, Elektra * elektra) { PrivateData *p; int i; diff --git a/server/drivers/i2500vfd.h b/server/drivers/i2500vfd.h index c63ebb18..e9652cd6 100644 --- a/server/drivers/i2500vfd.h +++ b/server/drivers/i2500vfd.h @@ -1,7 +1,9 @@ #ifndef I2500VFD_H #define I2500VFD_H -MODULE_EXPORT int i2500vfd_init (Driver *drvthis); +#include + +MODULE_EXPORT int i2500vfd_init (Driver *drvthis, Elektra * elektra); MODULE_EXPORT void i2500vfd_close (Driver *drvthis); MODULE_EXPORT int i2500vfd_width (Driver *drvthis); MODULE_EXPORT int i2500vfd_height (Driver *drvthis); diff --git a/server/drivers/icp_a106.c b/server/drivers/icp_a106.c index 184864d3..2a5cc68f 100644 --- a/server/drivers/icp_a106.c +++ b/server/drivers/icp_a106.c @@ -90,7 +90,7 @@ MODULE_EXPORT char *symbol_prefix = "icp_a106_"; * \retval <0 Error. */ MODULE_EXPORT int -icp_a106_init(Driver *drvthis) +icp_a106_init(Driver *drvthis, Elektra * elektra) { char device[200]; int speed = B1200; diff --git a/server/drivers/icp_a106.h b/server/drivers/icp_a106.h index 5a4218df..bc9bd49c 100644 --- a/server/drivers/icp_a106.h +++ b/server/drivers/icp_a106.h @@ -31,7 +31,9 @@ #ifndef ICP_A106_H #define ICP_A106_H -MODULE_EXPORT int icp_a106_init(Driver *drvthis); +#include + +MODULE_EXPORT int icp_a106_init(Driver *drvthis, Elektra * elektra); MODULE_EXPORT void icp_a106_close(Driver *drvthis); MODULE_EXPORT int icp_a106_width(Driver *drvthis); MODULE_EXPORT int icp_a106_height(Driver *drvthis); diff --git a/server/drivers/imon.c b/server/drivers/imon.c index 42eca447..74273a6a 100644 --- a/server/drivers/imon.c +++ b/server/drivers/imon.c @@ -131,7 +131,7 @@ static char * imon_charmaps[] = { * \retval <0 Error. */ MODULE_EXPORT int -imon_init(Driver *drvthis) +imon_init(Driver *drvthis, Elektra * elektra) { PrivateData *p = NULL; char buf[256]; diff --git a/server/drivers/imon.h b/server/drivers/imon.h index 1c2994c4..0c817be9 100644 --- a/server/drivers/imon.h +++ b/server/drivers/imon.h @@ -26,7 +26,9 @@ #ifndef IMON_H #define IMON_H -MODULE_EXPORT int imon_init(Driver *drvthis); +#include + +MODULE_EXPORT int imon_init(Driver *drvthis, Elektra * elektra); MODULE_EXPORT void imon_close(Driver *drvthis); MODULE_EXPORT int imon_width(Driver *drvthis); MODULE_EXPORT int imon_height(Driver *drvthis); diff --git a/server/drivers/imonlcd.c b/server/drivers/imonlcd.c index 9241ab83..c1802472 100644 --- a/server/drivers/imonlcd.c +++ b/server/drivers/imonlcd.c @@ -231,7 +231,7 @@ typedef struct imonlcd_private_data { /* prototypes for driver internal functions */ -static void imonlcd_display_init(Driver *drvthis); +static void imonlcd_display_init(Driver *drvthis, Elektra * elektra); static void draw_bigchar(imon_bigfont *font, int ch, int x, int y, PrivateData *p); static void setLineLength(int topLine, int botLine, int topProgress, int botProgress, PrivateData *p); static void setBuiltinProgressBars(int topLine, int botLine, int topProgress, int botProgress, PrivateData *p); @@ -246,7 +246,7 @@ static int send_packet(PrivateData *p); * \retval <0 Error. */ MODULE_EXPORT int -imonlcd_init(Driver *drvthis) +imonlcd_init(Driver *drvthis, Elektra * elektra) { PrivateData *p = NULL; char buf[256]; @@ -413,7 +413,7 @@ imonlcd_init(Driver *drvthis) * \param drvthis Pointer to driver structure. */ static void -imonlcd_display_init(Driver *drvthis) +imonlcd_display_init(Driver *drvthis, Elektra * elektra) { PrivateData *p = drvthis->private_data; diff --git a/server/drivers/imonlcd.h b/server/drivers/imonlcd.h index 3d9ba011..a174bfe6 100644 --- a/server/drivers/imonlcd.h +++ b/server/drivers/imonlcd.h @@ -16,8 +16,10 @@ #ifndef IMONLCD_H #define IMONLCD_H +#include + /* mandatory functions (necessary for all drivers) */ -MODULE_EXPORT int imonlcd_init (Driver *drvthis); +MODULE_EXPORT int imonlcd_init (Driver *drvthis, Elektra * elektra); MODULE_EXPORT void imonlcd_close (Driver *drvthis); /* essential output functions (necessary for output drivers) */ diff --git a/server/drivers/irmanin.c b/server/drivers/irmanin.c index 7ef09064..187488d1 100644 --- a/server/drivers/irmanin.c +++ b/server/drivers/irmanin.c @@ -72,7 +72,7 @@ MODULE_EXPORT char *symbol_prefix = "irmanin_"; * \retval <0 Error. */ MODULE_EXPORT int -irmanin_init (Driver *drvthis) +irmanin_init (Driver *drvthis, Elektra * elektra) { PrivateData *p; char *ptrdevice = NULL; diff --git a/server/drivers/irmanin.h b/server/drivers/irmanin.h index 76a08879..9f1e6e42 100644 --- a/server/drivers/irmanin.h +++ b/server/drivers/irmanin.h @@ -1,7 +1,9 @@ #ifndef LCD_IRMANIN__H #define LCD_IRMANIN_H -MODULE_EXPORT int irmanin_init (Driver *drvthis); +#include + +MODULE_EXPORT int irmanin_init (Driver *drvthis, Elektra * elektra); MODULE_EXPORT void irmanin_close (Driver *drvthis); MODULE_EXPORT const char *irmanin_get_key (Driver *drvthis); diff --git a/server/drivers/irtrans.c b/server/drivers/irtrans.c index 38939b5d..4e02a55e 100644 --- a/server/drivers/irtrans.c +++ b/server/drivers/irtrans.c @@ -85,7 +85,7 @@ int InitClientSocket(char host[], SOCKET *sock, unsigned long id); int SendCommand(Driver *drvthis, LCDCOMMAND *com, STATUSBUFFER *stat); -MODULE_EXPORT int irtrans_init(Driver *drvthis) +MODULE_EXPORT int irtrans_init(Driver *drvthis, Elektra * elektra) { PrivateData *p; char buf[256]; diff --git a/server/drivers/irtrans.h b/server/drivers/irtrans.h index 78cb2a08..e8923ff6 100644 --- a/server/drivers/irtrans.h +++ b/server/drivers/irtrans.h @@ -31,7 +31,9 @@ #ifndef LCD_TEXT_H #define LCD_TEXT_H -MODULE_EXPORT int irtrans_init(Driver *drvthis); +#include + +MODULE_EXPORT int irtrans_init(Driver *drvthis, Elektra * elektra); MODULE_EXPORT void irtrans_close(Driver *drvthis); MODULE_EXPORT int irtrans_width(Driver *drvthis); MODULE_EXPORT int irtrans_height(Driver *drvthis); diff --git a/server/drivers/joy.c b/server/drivers/joy.c index ade7f5de..11f48334 100644 --- a/server/drivers/joy.c +++ b/server/drivers/joy.c @@ -75,7 +75,7 @@ MODULE_EXPORT char *symbol_prefix = "joy_"; * \retval <0 Error. */ MODULE_EXPORT int -joy_init (Driver *drvthis) +joy_init (Driver *drvthis, Elektra * elektra) { PrivateData *p; int i; diff --git a/server/drivers/joy.h b/server/drivers/joy.h index e964ea07..929ea574 100644 --- a/server/drivers/joy.h +++ b/server/drivers/joy.h @@ -1,9 +1,11 @@ #ifndef LCD_JOY_H #define LCD_JOY_H +#include + #include "lcd.h" -MODULE_EXPORT int joy_init (Driver *drvthis); +MODULE_EXPORT int joy_init (Driver *drvthis, Elektra * elektra); MODULE_EXPORT void joy_close (Driver *drvthis); MODULE_EXPORT const char *joy_get_key (Driver *drvthis); diff --git a/server/drivers/lb216.c b/server/drivers/lb216.c index c02abc64..f709528d 100644 --- a/server/drivers/lb216.c +++ b/server/drivers/lb216.c @@ -69,7 +69,7 @@ MODULE_EXPORT char *symbol_prefix = "LB216_"; // Opens com port and sets baud correctly... // MODULE_EXPORT int -LB216_init(Driver *drvthis) +LB216_init(Driver *drvthis, Elektra * elektra) { PrivateData *p; struct termios portset; diff --git a/server/drivers/lb216.h b/server/drivers/lb216.h index df95908c..2ef2d14e 100644 --- a/server/drivers/lb216.h +++ b/server/drivers/lb216.h @@ -1,7 +1,9 @@ #ifndef LB216_H #define LB216_H -MODULE_EXPORT int LB216_init(Driver *drvthis); +#include + +MODULE_EXPORT int LB216_init(Driver *drvthis, Elektra * elektra); MODULE_EXPORT void LB216_close(Driver *drvthis); MODULE_EXPORT int LB216_width (Driver *drvthis); MODULE_EXPORT int LB216_height (Driver *drvthis); diff --git a/server/drivers/lcd.h b/server/drivers/lcd.h index a4ad6d48..e5aa2256 100644 --- a/server/drivers/lcd.h +++ b/server/drivers/lcd.h @@ -30,6 +30,7 @@ #define LCD_H #include +#include /* Maximum supported sizes */ #define LCD_MAX_WIDTH 256 @@ -139,7 +140,7 @@ typedef struct lcd_logical_driver { /* The driver loader will look for symbols with these names ! */ /* mandatory functions (necessary for all drivers) */ - int (*init) (struct lcd_logical_driver *drvthis); + int (*init) (struct lcd_logical_driver *drvthis, Elektra * elektra); void (*close) (struct lcd_logical_driver *drvthis); /* essential output functions (necessary for output drivers) */ @@ -183,6 +184,7 @@ typedef struct lcd_logical_driver { /******** Variables in server core available for drivers ********/ char *name; /* Name of this driver */ + kdb_long_long_t index; /* Index of this driver's config */ char *filename; /* Filename of the shared module */ MODULE_HANDLE module_handle; /* The handle of the loaded shared module @@ -198,9 +200,7 @@ typedef struct lcd_logical_driver { int (*store_private_ptr) (struct lcd_logical_driver * driver, void * private_data); /* Store the driver's private data */ - /* Configfile functions */ - /* See configfile.h for descriptions and usage. */ - + /* TODO: remove; all unset just here to avoid compile errors */ short (*config_get_bool) (const char *sectionname, const char *keyname, int skip, short default_value); long int (*config_get_int) (const char *sectionname, const char *keyname, int skip, long int default_value); double (*config_get_float) (const char *sectionname, const char *keyname, int skip, double default_value); diff --git a/server/drivers/lcdm001.c b/server/drivers/lcdm001.c index 388899ed..b4b16c6c 100644 --- a/server/drivers/lcdm001.c +++ b/server/drivers/lcdm001.c @@ -137,7 +137,7 @@ lcdm001_cursorblink(Driver *drvthis, int on) * API: Set up any device-specific stuff. */ MODULE_EXPORT int -lcdm001_init (Driver *drvthis) +lcdm001_init (Driver *drvthis, Elektra * elektra) { PrivateData *p; struct termios portset; diff --git a/server/drivers/lcdm001.h b/server/drivers/lcdm001.h index e30be399..02edf057 100644 --- a/server/drivers/lcdm001.h +++ b/server/drivers/lcdm001.h @@ -24,7 +24,9 @@ #ifndef LCDM001_H #define LCDM001_H -MODULE_EXPORT int lcdm001_init (Driver *drvthis); +#include + +MODULE_EXPORT int lcdm001_init (Driver *drvthis, Elektra * elektra); MODULE_EXPORT void lcdm001_close (Driver *drvthis); MODULE_EXPORT int lcdm001_width (Driver *drvthis); MODULE_EXPORT int lcdm001_height (Driver *drvthis); diff --git a/server/drivers/lcterm.c b/server/drivers/lcterm.c index d000bcc6..5fd92e07 100644 --- a/server/drivers/lcterm.c +++ b/server/drivers/lcterm.c @@ -73,7 +73,7 @@ MODULE_EXPORT char *symbol_prefix = "lcterm_"; * \retval <0 Error. */ MODULE_EXPORT int -lcterm_init (Driver *drvthis) +lcterm_init (Driver *drvthis, Elektra * elektra) { char device[200]; int speed=B9600; diff --git a/server/drivers/lcterm.h b/server/drivers/lcterm.h index ef9dd3ca..675b921b 100644 --- a/server/drivers/lcterm.h +++ b/server/drivers/lcterm.h @@ -26,7 +26,9 @@ #ifndef LCTERM_H #define LCTERM_H -MODULE_EXPORT int lcterm_init (Driver *drvthis); +#include + +MODULE_EXPORT int lcterm_init (Driver *drvthis, Elektra * elektra); MODULE_EXPORT void lcterm_close (Driver *drvthis); MODULE_EXPORT int lcterm_width (Driver *drvthis); MODULE_EXPORT int lcterm_height (Driver *drvthis); diff --git a/server/drivers/linux_input.c b/server/drivers/linux_input.c index 60ca5a94..1f8c3e87 100644 --- a/server/drivers/linux_input.c +++ b/server/drivers/linux_input.c @@ -85,7 +85,7 @@ MODULE_EXPORT char *symbol_prefix = "linuxInput_"; * \retval <0 Error. */ MODULE_EXPORT int -linuxInput_init (Driver *drvthis) +linuxInput_init (Driver *drvthis, Elektra * elektra) { PrivateData *p; const char *s; diff --git a/server/drivers/linux_input.h b/server/drivers/linux_input.h index 8477f58d..4cf800f8 100644 --- a/server/drivers/linux_input.h +++ b/server/drivers/linux_input.h @@ -3,7 +3,9 @@ #include "lcd.h" -MODULE_EXPORT int linuxInput_init (Driver *drvthis); +#include + +MODULE_EXPORT int linuxInput_init (Driver *drvthis, Elektra * elektra); MODULE_EXPORT void linuxInput_close (Driver *drvthis); MODULE_EXPORT const char *linuxInput_get_key (Driver *drvthis); diff --git a/server/drivers/lircin.c b/server/drivers/lircin.c index 9a55f3d4..c5ee81ff 100644 --- a/server/drivers/lircin.c +++ b/server/drivers/lircin.c @@ -71,7 +71,7 @@ MODULE_EXPORT char *symbol_prefix = "lircin_"; * \retval <0 Error. */ MODULE_EXPORT int -lircin_init (Driver *drvthis) +lircin_init (Driver *drvthis, Elektra * elektra) { char s[256] = ""; diff --git a/server/drivers/lircin.h b/server/drivers/lircin.h index 3299c3b1..34783294 100644 --- a/server/drivers/lircin.h +++ b/server/drivers/lircin.h @@ -21,7 +21,9 @@ #ifndef LCD_LIRCIN_H #define LCD_LIRCIN_H -MODULE_EXPORT int lircin_init (Driver *drvthis); +#include + +MODULE_EXPORT int lircin_init (Driver *drvthis, Elektra * elektra); MODULE_EXPORT void lircin_close (Driver *drvthis); MODULE_EXPORT const char * lircin_get_key (Driver *drvthis); diff --git a/server/drivers/lis.c b/server/drivers/lis.c index 4478bdba..60dd36d4 100644 --- a/server/drivers/lis.c +++ b/server/drivers/lis.c @@ -336,7 +336,7 @@ lis_get_brightness(Driver *drvthis, int state) * API: Init the driver and display */ MODULE_EXPORT int -lis_init(Driver *drvthis) +lis_init(Driver *drvthis, Elektra * elektra) { PrivateData *p; int err; diff --git a/server/drivers/lis.h b/server/drivers/lis.h index 6638d7d1..b948a79a 100644 --- a/server/drivers/lis.h +++ b/server/drivers/lis.h @@ -11,6 +11,8 @@ #ifndef LIS_H #define LIS_H +#include + /*----------------------------- Constants ---------------------------------*/ #define DISPLAY_VENDOR_ID 0x0403 @@ -76,7 +78,7 @@ typedef struct lis_private_data { } PrivateData; -MODULE_EXPORT int lis_init(Driver *drvthis); +MODULE_EXPORT int lis_init(Driver *drvthis, Elektra * elektra); MODULE_EXPORT void lis_close(Driver *drvthis); MODULE_EXPORT int lis_width(Driver *drvthis); MODULE_EXPORT int lis_height(Driver *drvthis); diff --git a/server/drivers/mdm166a.c b/server/drivers/mdm166a.c index 0cd0f6e1..b4732a2a 100644 --- a/server/drivers/mdm166a.c +++ b/server/drivers/mdm166a.c @@ -130,7 +130,7 @@ drawchar2fb(Driver *drvthis, int x, int y, unsigned char z) * \retval <0 Error. */ MODULE_EXPORT int -mdm166a_init(Driver *drvthis) +mdm166a_init(Driver *drvthis, Elektra * elektra) { char clock[256] = DEFAULT_CLOCK; PrivateData *p; diff --git a/server/drivers/mdm166a.h b/server/drivers/mdm166a.h index 9cd856ad..7fe79e91 100644 --- a/server/drivers/mdm166a.h +++ b/server/drivers/mdm166a.h @@ -1,7 +1,9 @@ #ifndef MDM166A_H #define MDM166A_H -MODULE_EXPORT int mdm166a_init (Driver *drvthis); +#include + +MODULE_EXPORT int mdm166a_init (Driver *drvthis, Elektra * elektra); MODULE_EXPORT void mdm166a_close (Driver *drvthis); MODULE_EXPORT int mdm166a_width (Driver *drvthis); MODULE_EXPORT int mdm166a_height (Driver *drvthis); diff --git a/server/drivers/ms6931.c b/server/drivers/ms6931.c index a96a31c2..f7902e7d 100644 --- a/server/drivers/ms6931.c +++ b/server/drivers/ms6931.c @@ -154,7 +154,7 @@ ms6931_draw_frame (Driver *drvthis, unsigned char *dat) // Opens com port and sets baud correctly... // MODULE_EXPORT int -ms6931_init (Driver *drvthis) +ms6931_init (Driver *drvthis, Elektra * elektra) { PrivateData *p; struct termios portset; diff --git a/server/drivers/mtc_s16209x.c b/server/drivers/mtc_s16209x.c index d972cd48..d8ac4298 100644 --- a/server/drivers/mtc_s16209x.c +++ b/server/drivers/mtc_s16209x.c @@ -113,7 +113,7 @@ MODULE_EXPORT char *symbol_prefix = "MTC_S16209X_"; // Opens com port and sets baud correctly... // MODULE_EXPORT int -MTC_S16209X_init (Driver *drvthis) +MTC_S16209X_init (Driver *drvthis, Elektra * elektra) { PrivateData *p; struct termios portset; diff --git a/server/drivers/mtc_s16209x.h b/server/drivers/mtc_s16209x.h index 7f4ddee7..b2196233 100644 --- a/server/drivers/mtc_s16209x.h +++ b/server/drivers/mtc_s16209x.h @@ -38,7 +38,9 @@ #ifndef MTC_S16209X_H #define MTC_S16209X_H -MODULE_EXPORT int MTC_S16209X_init(Driver *drvthis); +#include + +MODULE_EXPORT int MTC_S16209X_init(Driver *drvthis, Elektra * elektra); MODULE_EXPORT void MTC_S16209X_close(Driver *drvthis); MODULE_EXPORT int MTC_S16209X_width (Driver *drvthis); MODULE_EXPORT int MTC_S16209X_height (Driver *drvthis); diff --git a/server/drivers/picolcd.c b/server/drivers/picolcd.c index 401f5935..163cef74 100644 --- a/server/drivers/picolcd.c +++ b/server/drivers/picolcd.c @@ -242,7 +242,7 @@ MODULE_EXPORT char *symbol_prefix = "picoLCD_"; * \retval <0 Error. */ MODULE_EXPORT int -picoLCD_init(Driver *drvthis) +picoLCD_init(Driver *drvthis, Elektra * elektra) { PrivateData *p; #ifdef HAVE_LIBUSB_1_0 diff --git a/server/drivers/picolcd.h b/server/drivers/picolcd.h index 2d7293e5..f5ac9b72 100644 --- a/server/drivers/picolcd.h +++ b/server/drivers/picolcd.h @@ -21,6 +21,7 @@ # include # define USB_DEVICE_HANDLE usb_dev_handle #endif +#include /* 12 keys plus a 0 placeholder */ #define KEYPAD_MAX 13 @@ -74,7 +75,7 @@ typedef struct _picolcd_device { } picolcd_device; -MODULE_EXPORT int picoLCD_init(Driver *drvthis); +MODULE_EXPORT int picoLCD_init(Driver *drvthis, Elektra * elektra); MODULE_EXPORT void picoLCD_close(Driver *drvthis); MODULE_EXPORT int picoLCD_width(Driver *drvthis); MODULE_EXPORT int picoLCD_height(Driver *drvthis); diff --git a/server/drivers/pylcd.c b/server/drivers/pylcd.c index faed66b2..bb93b848 100644 --- a/server/drivers/pylcd.c +++ b/server/drivers/pylcd.c @@ -290,7 +290,7 @@ initTTY(Driver *drvthis, int FD) * \retval <0 Error. */ MODULE_EXPORT int -pyramid_init(Driver *drvthis) +pyramid_init(Driver *drvthis, Elektra * elektra) { char buffer[MAXCOUNT]; int i; @@ -469,22 +469,22 @@ pyramid_flush(Driver *drvthis) */ for (i = 1; i < 33; i++) { switch ((unsigned char)mesg[i]) { - case 0xe4: /* ä */ + case 0xe4: /* � */ mesg[i] = 0xe1; break; - case 0xf6: /* ö */ + case 0xf6: /* � */ mesg[i] = 0xef; break; - case 0xfc: /* ü */ + case 0xfc: /* � */ mesg[i] = 0xf5; break; - case 0xdf: /* ß */ + case 0xdf: /* � */ mesg[i] = 0xe2; break; - case 0xb7: /* · */ + case 0xb7: /* � */ mesg[i] = 0xa5; break; - case 0xb0: /* ° */ + case 0xb0: /* � */ mesg[i] = 0xdf; break; } diff --git a/server/drivers/pylcd.h b/server/drivers/pylcd.h index 05725d61..46899b24 100644 --- a/server/drivers/pylcd.h +++ b/server/drivers/pylcd.h @@ -25,6 +25,8 @@ #ifndef PYLCD_H #define PYLCD_H +#include + #define MAXCOUNT 10 /* Size of read buffer including NUL */ /* Display properties */ @@ -70,7 +72,7 @@ typedef struct pyramid_private_data { } PrivateData; -MODULE_EXPORT int pyramid_init(Driver *drvthis); +MODULE_EXPORT int pyramid_init(Driver *drvthis, Elektra * elektra); MODULE_EXPORT void pyramid_close(Driver *drvthis); MODULE_EXPORT int pyramid_width(Driver *drvthis); MODULE_EXPORT int pyramid_height(Driver *drvthis); diff --git a/server/drivers/rawserial.c b/server/drivers/rawserial.c index 7f8e1fdd..0e930aff 100644 --- a/server/drivers/rawserial.c +++ b/server/drivers/rawserial.c @@ -83,7 +83,7 @@ MODULE_EXPORT char *symbol_prefix = "rawserial_"; * \retval <0 Error. */ MODULE_EXPORT int -rawserial_init(Driver *drvthis) +rawserial_init(Driver *drvthis, Elektra * elektra) { PrivateData *p; char buf[256]; diff --git a/server/drivers/rawserial.h b/server/drivers/rawserial.h index 66fd27c1..5ff48c7e 100644 --- a/server/drivers/rawserial.h +++ b/server/drivers/rawserial.h @@ -1,6 +1,8 @@ #ifndef LCD_rawserial_H #define LCD_rawserial_H +#include + #define DEFAULT_DEVICE "/dev/cuaU0" #define DISPLAY_DEFAULT_SIZE "40x4" @@ -9,7 +11,7 @@ #define DEFAULT_UPDATE_RATE 1.0 #define SECOND_GRANULARITY 1000 -MODULE_EXPORT int rawserial_init(Driver *drvthis); +MODULE_EXPORT int rawserial_init(Driver *drvthis, Elektra * elektra); MODULE_EXPORT void rawserial_close(Driver *drvthis); MODULE_EXPORT int rawserial_width(Driver *drvthis); MODULE_EXPORT int rawserial_height(Driver *drvthis); diff --git a/server/drivers/sdeclcd.c b/server/drivers/sdeclcd.c index 93e1ce2a..b69b61bd 100644 --- a/server/drivers/sdeclcd.c +++ b/server/drivers/sdeclcd.c @@ -220,7 +220,7 @@ sdec_init() * API: Initialize the driver. */ MODULE_EXPORT int -sdeclcd_init(Driver *drvthis) +sdeclcd_init(Driver *drvthis, Elektra * elektra) { PrivateData *p; int i, j; diff --git a/server/drivers/sed1330.h b/server/drivers/sed1330.h index 47e83530..6598994b 100644 --- a/server/drivers/sed1330.h +++ b/server/drivers/sed1330.h @@ -5,7 +5,9 @@ #ifndef SED1330_H #define SED1330_H -MODULE_EXPORT int sed1330_init(Driver *drvthis); +#include + +MODULE_EXPORT int sed1330_init(Driver *drvthis, Elektra * elektra); MODULE_EXPORT void sed1330_close(Driver *drvthis); MODULE_EXPORT int sed1330_width(Driver *drvthis); MODULE_EXPORT int sed1330_height(Driver *drvthis); diff --git a/server/drivers/sed1520.h b/server/drivers/sed1520.h index c791b3c7..2fd9bdf6 100644 --- a/server/drivers/sed1520.h +++ b/server/drivers/sed1520.h @@ -1,6 +1,8 @@ #ifndef SED1520_H #define SED1520_H +#include + /* Commands for SED1520 */ #define DISP_OFF 0xAE #define DISP_ON 0xAF @@ -15,7 +17,7 @@ #define DUTY_1_32 0xA9 #define SOFT_RESET 0xE2 -MODULE_EXPORT int sed1520_init (Driver *drvthis); +MODULE_EXPORT int sed1520_init (Driver *drvthis, Elektra * elektra); MODULE_EXPORT void sed1520_close (Driver *drvthis); MODULE_EXPORT int sed1520_width (Driver *drvthis); MODULE_EXPORT int sed1520_height (Driver *drvthis); diff --git a/server/drivers/serialVFD.c b/server/drivers/serialVFD.c index 44ade9b4..4c019d1b 100644 --- a/server/drivers/serialVFD.c +++ b/server/drivers/serialVFD.c @@ -89,7 +89,7 @@ static void serialVFD_hw_write (Driver *drvthis, int i); * \retval <0 Error. */ MODULE_EXPORT int -serialVFD_init (Driver *drvthis) +serialVFD_init (Driver *drvthis, Elektra * elektra) { int tmp, w, h; char size[200] = DEFAULT_SIZE; diff --git a/server/drivers/serialVFD.h b/server/drivers/serialVFD.h index d8713909..71b2ecf8 100644 --- a/server/drivers/serialVFD.h +++ b/server/drivers/serialVFD.h @@ -26,6 +26,8 @@ #ifndef SERIALVFD_H #define SERIALVFD_H +#include + #define DEFAULT_CELL_WIDTH 5 #define DEFAULT_CELL_HEIGHT 7 #define DEFAULT_DEVICE "/dev/lcd" @@ -39,7 +41,7 @@ #define DEFAULT_LPTPORT 0x378 -MODULE_EXPORT int serialVFD_init (Driver *drvthis); +MODULE_EXPORT int serialVFD_init (Driver *drvthis, Elektra * elektra); MODULE_EXPORT void serialVFD_close (Driver *drvthis); MODULE_EXPORT int serialVFD_width (Driver *drvthis); MODULE_EXPORT int serialVFD_height (Driver *drvthis); diff --git a/server/drivers/shuttleVFD.c b/server/drivers/shuttleVFD.c index 2498cc3e..1134338f 100644 --- a/server/drivers/shuttleVFD.c +++ b/server/drivers/shuttleVFD.c @@ -94,7 +94,7 @@ static void send_packet(Driver *drvthis, char* packet) * \retval 0 Success. * \retval <0 Error. */ -MODULE_EXPORT int shuttleVFD_init(Driver *drvthis) +MODULE_EXPORT int shuttleVFD_init(Driver *drvthis, Elektra * elektra) { PrivateData *p; struct usb_bus *bus; diff --git a/server/drivers/shuttleVFD.h b/server/drivers/shuttleVFD.h index 45fd9726..702210af 100644 --- a/server/drivers/shuttleVFD.h +++ b/server/drivers/shuttleVFD.h @@ -26,8 +26,10 @@ #ifndef SHUTTLE_VFD_H #define SHUTTLE_VFD_H +#include + // mandatory functions (necessary for all drivers) -MODULE_EXPORT int shuttleVFD_init(Driver *drvthis); +MODULE_EXPORT int shuttleVFD_init(Driver *drvthis, Elektra * elektra); MODULE_EXPORT void shuttleVFD_close(Driver *drvthis); // essential output functions (necessary for output drivers) diff --git a/server/drivers/stv5730.c b/server/drivers/stv5730.c index e3163abe..1eeb1c72 100644 --- a/server/drivers/stv5730.c +++ b/server/drivers/stv5730.c @@ -282,7 +282,7 @@ stv5730_drawchar2fb (Driver *drvthis, int x, int y, unsigned char z) // a command line argument. // MODULE_EXPORT int -stv5730_init (Driver *drvthis) +stv5730_init (Driver *drvthis, Elektra * elektra) { PrivateData *p; int i; diff --git a/server/drivers/stv5730.h b/server/drivers/stv5730.h index 743a5fed..daa54cdc 100644 --- a/server/drivers/stv5730.h +++ b/server/drivers/stv5730.h @@ -1,7 +1,9 @@ #ifndef STV5730_H #define STV5730_H -MODULE_EXPORT int stv5730_init (Driver *drvthis); +#include + +MODULE_EXPORT int stv5730_init (Driver *drvthis, Elektra * elektra); MODULE_EXPORT void stv5730_close (Driver *drvthis); MODULE_EXPORT int stv5730_width (Driver *drvthis); MODULE_EXPORT int stv5730_height (Driver *drvthis); diff --git a/server/drivers/svgalib_drv.c b/server/drivers/svgalib_drv.c index d2166fcd..045ed3d5 100644 --- a/server/drivers/svgalib_drv.c +++ b/server/drivers/svgalib_drv.c @@ -219,7 +219,7 @@ MODULE_EXPORT char *symbol_prefix = "svga_"; * Init driver */ MODULE_EXPORT int -svga_init (Driver *drvthis) +svga_init (Driver *drvthis, Elektra * elektra) { char modestr[LCD_MAX_WIDTH+1] = DEFAULT_MODESTR; char size[LCD_MAX_WIDTH+1] = DEFAULT_SIZE; diff --git a/server/drivers/svgalib_drv.h b/server/drivers/svgalib_drv.h index ab11f18d..d47e2941 100644 --- a/server/drivers/svgalib_drv.h +++ b/server/drivers/svgalib_drv.h @@ -1,6 +1,8 @@ #ifndef LCD_SVGALIB_H #define LCD_SVGALIB_H +#include + #define DEFAULT_MODESTR "G320x200x256" #define DEFAULT_SIZE "20x4" #define DEFAULT_CONTRAST 500 @@ -27,7 +29,7 @@ typedef struct svga_private_data { } PrivateData; -MODULE_EXPORT int svga_init (Driver *drvthis); +MODULE_EXPORT int svga_init (Driver *drvthis, Elektra * elektra); MODULE_EXPORT void svga_close (Driver *drvthis); MODULE_EXPORT int svga_width (Driver *drvthis); MODULE_EXPORT int svga_height (Driver *drvthis); diff --git a/server/drivers/t6963.c b/server/drivers/t6963.c index 1ceaf20f..22d8635f 100644 --- a/server/drivers/t6963.c +++ b/server/drivers/t6963.c @@ -62,7 +62,7 @@ MODULE_EXPORT char *symbol_prefix = "t6963_"; * API: Initialize the driver. */ MODULE_EXPORT int -t6963_init(Driver *drvthis) +t6963_init(Driver *drvthis, Elektra * elektra) { PrivateData *p; int w, h; diff --git a/server/drivers/t6963.h b/server/drivers/t6963.h index 885cdd85..a6758a2f 100644 --- a/server/drivers/t6963.h +++ b/server/drivers/t6963.h @@ -11,8 +11,10 @@ #ifndef T6963_H #define T6963_H +#include + /* API functions */ -MODULE_EXPORT int t6963_init (Driver *drvthis); +MODULE_EXPORT int t6963_init (Driver *drvthis, Elektra * elektra); MODULE_EXPORT void t6963_close (Driver *drvthis); MODULE_EXPORT int t6963_width (Driver *drvthis); MODULE_EXPORT int t6963_height (Driver *drvthis); diff --git a/server/drivers/text.c b/server/drivers/text.c index 2b6a8698..95291cb1 100644 --- a/server/drivers/text.c +++ b/server/drivers/text.c @@ -56,7 +56,7 @@ MODULE_EXPORT char *symbol_prefix = "text_"; * \retval <0 Error. */ MODULE_EXPORT int -text_init (Driver *drvthis) +text_init (Driver *drvthis, Elektra * elektra) { PrivateData *p; char buf[256]; diff --git a/server/drivers/text.h b/server/drivers/text.h index 01a3fe46..88ddf071 100644 --- a/server/drivers/text.h +++ b/server/drivers/text.h @@ -1,7 +1,9 @@ #ifndef LCD_TEXT_H #define LCD_TEXT_H -MODULE_EXPORT int text_init (Driver *drvthis); +#include + +MODULE_EXPORT int text_init (Driver *drvthis, Elektra * elektra); MODULE_EXPORT void text_close (Driver *drvthis); MODULE_EXPORT int text_width (Driver *drvthis); MODULE_EXPORT int text_height (Driver *drvthis); diff --git a/server/drivers/ula200.c b/server/drivers/ula200.c index a9483ea7..53a8566a 100644 --- a/server/drivers/ula200.c +++ b/server/drivers/ula200.c @@ -544,7 +544,7 @@ ula200_load_custom_chars(Driver *drvthis) * \retval <0 Error. */ MODULE_EXPORT int -ula200_init(Driver *drvthis) +ula200_init(Driver *drvthis, Elektra * elektra) { PrivateData *p; int err, i; diff --git a/server/drivers/ula200.h b/server/drivers/ula200.h index 47639708..d8ea92b7 100644 --- a/server/drivers/ula200.h +++ b/server/drivers/ula200.h @@ -23,7 +23,9 @@ #ifndef ULA200_H #define ULA200_H -MODULE_EXPORT int ula200_init(Driver *drvthis); +#include + +MODULE_EXPORT int ula200_init(Driver *drvthis, Elektra * elektra); MODULE_EXPORT void ula200_close (Driver *drvthis); MODULE_EXPORT int ula200_width (Driver *drvthis); MODULE_EXPORT int ula200_height (Driver *drvthis); diff --git a/server/drivers/vlsys_m428.c b/server/drivers/vlsys_m428.c index f57a385f..a2eff31e 100644 --- a/server/drivers/vlsys_m428.c +++ b/server/drivers/vlsys_m428.c @@ -261,7 +261,7 @@ initialise_display(PrivateData *p) * \retval <0 Error. */ MODULE_EXPORT int -vlsys_m428_init(Driver *drvthis) +vlsys_m428_init(Driver *drvthis, Elektra * elektra) { PrivateData *p = NULL; char path[PATH_SIZE]; /* device path (serial port) */ diff --git a/server/drivers/vlsys_m428.h b/server/drivers/vlsys_m428.h index 5c0c1c57..b3fa9892 100644 --- a/server/drivers/vlsys_m428.h +++ b/server/drivers/vlsys_m428.h @@ -13,7 +13,9 @@ #ifndef VLSYS_M428_H #define VLSYS_M428_H -MODULE_EXPORT int vlsys_m428_init(Driver *drvthis); +#include + +MODULE_EXPORT int vlsys_m428_init(Driver *drvthis, Elektra * elektra); MODULE_EXPORT void vlsys_m428_close(Driver *drvthis); MODULE_EXPORT int vlsys_m428_width(Driver *drvthis); diff --git a/server/drivers/wirz-sli.c b/server/drivers/wirz-sli.c index be688891..e12edd2d 100644 --- a/server/drivers/wirz-sli.c +++ b/server/drivers/wirz-sli.c @@ -52,7 +52,7 @@ MODULE_EXPORT char *symbol_prefix = "sli_"; // Opens com port and sets baud correctly... // MODULE_EXPORT int -sli_init (Driver *drvthis) +sli_init (Driver *drvthis, Elektra * elektra) { PrivateData *p; struct termios portset; diff --git a/server/drivers/wirz-sli.h b/server/drivers/wirz-sli.h index 559e1a37..fa63f727 100644 --- a/server/drivers/wirz-sli.h +++ b/server/drivers/wirz-sli.h @@ -7,7 +7,9 @@ #ifndef SLI_H #define SLI_H -MODULE_EXPORT int sli_init (Driver *drvthis); +#include + +MODULE_EXPORT int sli_init (Driver *drvthis, Elektra * elektra); MODULE_EXPORT void sli_close (Driver *drvthis); MODULE_EXPORT int sli_width (Driver *drvthis); MODULE_EXPORT int sli_height (Driver *drvthis); diff --git a/server/drivers/xosdlib_drv.c b/server/drivers/xosdlib_drv.c index edd0fe3a..8f678530 100644 --- a/server/drivers/xosdlib_drv.c +++ b/server/drivers/xosdlib_drv.c @@ -61,7 +61,7 @@ MODULE_EXPORT char *symbol_prefix = "xosdlib_drv_"; * \retval <0 Error. */ MODULE_EXPORT int -xosdlib_drv_init (Driver *drvthis) +xosdlib_drv_init (Driver *drvthis, Elektra * elektra) { const char *size; const char *offset; diff --git a/server/drivers/xosdlib_drv.h b/server/drivers/xosdlib_drv.h index 16bf9033..3a088213 100644 --- a/server/drivers/xosdlib_drv.h +++ b/server/drivers/xosdlib_drv.h @@ -2,6 +2,7 @@ #define LCD_XOSDLIB_H #include +#include #define DEFAULT_FONT "fixed" #define DEFAULT_SIZE "20x4" @@ -34,7 +35,7 @@ typedef struct xosd_private_data { } PrivateData; -MODULE_EXPORT int xosdlib_drv_init (Driver *drvthis); +MODULE_EXPORT int xosdlib_drv_init (Driver *drvthis, Elektra * elektra); MODULE_EXPORT void xosdlib_drv_close (Driver *drvthis); MODULE_EXPORT int xosdlib_drv_width (Driver *drvthis); MODULE_EXPORT int xosdlib_drv_height (Driver *drvthis); diff --git a/server/drivers/yard2LCD.c b/server/drivers/yard2LCD.c index c95fc453..f93b0a69 100644 --- a/server/drivers/yard2LCD.c +++ b/server/drivers/yard2LCD.c @@ -257,7 +257,7 @@ yard_hwWriteCGRam(Driver *drvthis, unsigned char numChar, unsigned char *data) * Inits settings and connection */ MODULE_EXPORT int -yard_init(Driver *drvthis) +yard_init(Driver *drvthis, Elektra * elektra) { debug(RPT_DEBUG, "%s: Event 08 - Enter yard_init",drvthis->name); struct sockaddr_un srvAddr; diff --git a/server/drivers/yard2LCD.h b/server/drivers/yard2LCD.h index b10a3032..4eb7f41a 100644 --- a/server/drivers/yard2LCD.h +++ b/server/drivers/yard2LCD.h @@ -20,6 +20,8 @@ #ifndef yard2LCD_H #define yard2LCD_H +#include + #define MAX_YARDDATA_SIZE 40 #define DEFAULT_SOCK_PATH "/tmp/lcdserver" #define DEFAULT_OFF_BRIGHTNESS 100 @@ -37,7 +39,7 @@ #define NUM_CUSTOMCHARS 8 -MODULE_EXPORT int yard_init (Driver *drvthis); +MODULE_EXPORT int yard_init (Driver *drvthis, Elektra * elektra); MODULE_EXPORT void yard_close (Driver *drvthis); MODULE_EXPORT int yard_width (Driver *drvthis); MODULE_EXPORT int yard_height (Driver *drvthis); diff --git a/server/elektragen.c b/server/elektragen.c new file mode 100644 index 00000000..0033449c --- /dev/null +++ b/server/elektragen.c @@ -0,0 +1,19422 @@ +// clang-format off + + +// clang-format on +/** + * @file + * + * This file was automatically generated using `kdb gen elektra`. + * Any changes will be overwritten, when the file is regenerated. + * + * @copyright BSD Zero Clause License + * + * Copyright (C) 2019 Elektra Initiative (https://libelektra.org) + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH + * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND + * FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, + * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM + * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR + * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + * PERFORMANCE OF THIS SOFTWARE. + */ + +#include "elektragen.h" + + + +#include +#include +#include + +#include +#include +#include + +#include + +static Key * helpKey = NULL; + + +/** + * Initializes an instance of Elektra for the application '/sw/lcdproc/lcdd/#0/current'. + * + * This can be invoked as many times as you want, however it is not a cheap operation, + * so you should try to reuse the Elektra handle as much as possible. + * + * @param elektra A reference to where the Elektra instance shall be stored. + * Has to be disposed of with elektraClose(). + * @param error A reference to an ElektraError pointer. Will be passed to elektraOpen(). + * + * @retval 0 on success, @p elektra will be set, @p error will be unchanged + * @retval -1 on error, @p elektra will be unchanged, @p error will be set + * @retval 1 specload mode, exit as soon as possible and must DO NOT write anything to stdout, + * @p elektra and @p error are both unchanged + * @retval 2 help mode, '-h' or '--help' was specified call printHelpMessage and exit + * @p elektra and @p error are both unchanged + * IMPORTANT: there will be memory leaks, if you don't call printHelpMessage !! + * + * @see elektraOpen + */// +int loadConfiguration (Elektra ** elektra, ElektraError ** error) +{ + KeySet * defaults = ksNew (595, + keyNew("", KEY_META, "infos/plugins", "ini validation type", KEY_META, "mountpoint", "LCDd.conf", KEY_END), + keyNew ("/bayrad/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a bayrad driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "BayradDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/bayrad/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/bayrad/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/bayrad/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/bayrad/#/file", KEY_VALUE, "bayrad", KEY_META, "default", "bayrad", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/bayrad/#/offbrightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/bayrad/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/bayrad/#/speed", KEY_VALUE, "9600", KEY_META, "check/range", "1200, 2400, 9600, 19200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/cfontz/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a CFontz driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "CFontzDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/cfontz/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/cfontz/#/contrast", KEY_VALUE, "350", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "350", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/cfontz/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/cfontz/#/file", KEY_VALUE, "CFontz", KEY_META, "default", "CFontz", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/cfontz/#/newfirmware", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Set the firmware version (New means >= 2.0)", KEY_META, "type", "boolean", KEY_END), + keyNew ("/cfontz/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness. This value is used when the display is normally switched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/cfontz/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/cfontz/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Select the LCD size", KEY_META, "type", "string", KEY_END), + keyNew ("/cfontz/#/speed", KEY_VALUE, "9600", KEY_META, "check/range", "1200, 2400, 9600, 19200, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/cfontzpacket/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a CFontzPacket driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "CFontzPacketDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/cfontzpacket/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/cfontzpacket/#/contrast", KEY_VALUE, "350", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "350", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/cfontzpacket/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "type", "string", KEY_END), + keyNew ("/cfontzpacket/#/file", KEY_VALUE, "CFontzPacket", KEY_META, "default", "CFontzPacket", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/cfontzpacket/#/model", KEY_VALUE, "633", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "533", KEY_META, "check/enum/#1", "631", KEY_META, "check/enum/#2", "633", KEY_META, "check/enum/#3", "635", KEY_META, "check/type", "enum", KEY_META, "default", "633", KEY_META, "description", "Select the LCD model", KEY_META, "gen/enum/type", "CFontzPacketModel", KEY_META, "type", "enum", KEY_END), + keyNew ("/cfontzpacket/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness. This value is used when the display is normally switched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/cfontzpacket/#/oldfirmware", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Very old 633 firmware versions do not support partial screen updates using \'Send Data to LCD\' command (31). For those devices it may be necessary to enable this flag", KEY_META, "type", "boolean", KEY_END), + keyNew ("/cfontzpacket/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/cfontzpacket/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Override the LCD size known for the selected model. Usually setting this value should not be necessary.", KEY_META, "type", "string", KEY_END), + keyNew ("/cfontzpacket/#/speed", KEY_VALUE, "115200", KEY_META, "check/range", "19200, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "115200", KEY_META, "description", "Override the default communication speed known for the selected model. Default value depends on model.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/cfontzpacket/#/usb", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Enable the USB flag if the device is connected to an USB port. For serial ports leave it disabled.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/curses/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a curses driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "CursesDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/curses/#/background", KEY_VALUE, "cyan", KEY_META, "check/enum", "#7", KEY_META, "check/enum/#0", "red", KEY_META, "check/enum/#1", "black", KEY_META, "check/enum/#2", "green", KEY_META, "check/enum/#3", "yellow", KEY_META, "check/enum/#4", "blue", KEY_META, "check/enum/#5", "magenta", KEY_META, "check/enum/#6", "cyan", KEY_META, "check/enum/#7", "white", KEY_META, "check/type", "enum", KEY_META, "default", "cyan", KEY_META, "description", "background color when \"backlight\" is off", KEY_META, "gen/enum/type", "CursesColor", KEY_META, "type", "enum", KEY_END), + keyNew ("/curses/#/backlight", KEY_VALUE, "red", KEY_META, "check/enum", "#7", KEY_META, "check/enum/#0", "red", KEY_META, "check/enum/#1", "black", KEY_META, "check/enum/#2", "green", KEY_META, "check/enum/#3", "yellow", KEY_META, "check/enum/#4", "blue", KEY_META, "check/enum/#5", "magenta", KEY_META, "check/enum/#6", "cyan", KEY_META, "check/enum/#7", "white", KEY_META, "check/type", "enum", KEY_META, "default", "red", KEY_META, "description", "background color when \"backlight\" is on", KEY_META, "gen/enum/type", "CursesColor", KEY_META, "type", "enum", KEY_END), + keyNew ("/curses/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/curses/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/curses/#/drawborder", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "draw Border", KEY_META, "type", "boolean", KEY_END), + keyNew ("/curses/#/file", KEY_VALUE, "curses", KEY_META, "default", "curses", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/curses/#/foreground", KEY_VALUE, "blue", KEY_META, "check/enum", "#7", KEY_META, "check/enum/#0", "red", KEY_META, "check/enum/#1", "black", KEY_META, "check/enum/#2", "green", KEY_META, "check/enum/#3", "yellow", KEY_META, "check/enum/#4", "blue", KEY_META, "check/enum/#5", "magenta", KEY_META, "check/enum/#6", "cyan", KEY_META, "check/enum/#7", "white", KEY_META, "check/type", "enum", KEY_META, "default", "blue", KEY_META, "description", "Color settings", KEY_META, "gen/enum/type", "CursesColor", KEY_META, "type", "enum", KEY_END), + keyNew ("/curses/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/curses/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/curses/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), + keyNew ("/curses/#/topleftx", KEY_VALUE, "7", KEY_META, "check/type", "unsigned_short", KEY_META, "check/validation", "([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "7", KEY_META, "description", "What position (X,Y) to start the left top corner at...", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/curses/#/toplefty", KEY_VALUE, "7", KEY_META, "check/type", "unsigned_short", KEY_META, "check/validation", "([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "7", KEY_META, "description", "What position (X,Y) to start the left top corner at...", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/curses/#/useacs", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "use ASC symbols for icons & bars", KEY_META, "type", "boolean", KEY_END), + keyNew ("/cwlnx/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a CwLnx driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "CwLnxDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/cwlnx/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/cwlnx/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/cwlnx/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/cwlnx/#/file", KEY_VALUE, "CwLnx", KEY_META, "default", "CwLnx", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/cwlnx/#/keymap_a", KEY_VALUE, "Up", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("/cwlnx/#/keymap_b", KEY_VALUE, "Down", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("/cwlnx/#/keymap_c", KEY_VALUE, "Left", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("/cwlnx/#/keymap_d", KEY_VALUE, "Right", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("/cwlnx/#/keymap_e", KEY_VALUE, "Enter", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("/cwlnx/#/keymap_f", KEY_VALUE, "Escape", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("/cwlnx/#/keypad", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If you have a keypad connected. Keypad layout is currently not configureable from the config file.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/cwlnx/#/keypad_test_mode", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "permits one to test keypad assignment", KEY_META, "type", "boolean", KEY_END), + keyNew ("/cwlnx/#/model", KEY_VALUE, "12232", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "12232", KEY_META, "check/enum/#1", "12832", KEY_META, "check/enum/#2", "1602", KEY_META, "check/type", "enum", KEY_META, "default", "12232", KEY_META, "description", "Select the LCD model", KEY_META, "gen/enum/type", "CwLnxModel", KEY_META, "type", "enum", KEY_END), + keyNew ("/cwlnx/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/cwlnx/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/cwlnx/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Select the LCD size. Default depends on model: \n12232: 20x4 \n12832: 21x4 \n1602: 16x2", KEY_META, "type", "string", KEY_END), + keyNew ("/cwlnx/#/speed", KEY_VALUE, "19200", KEY_META, "check/range", "9600, 19200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/ea65/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a ea65 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Ea65DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/ea65/#/brightness", KEY_VALUE, "500", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "As the VFD is self luminescent we don\'t have a backlight\nBut we can use the backlight functions to control the front LEDs\nBrightness 0 to 299 -> LEDs off\nBrightness 300 to 699 -> LEDs half bright\nBrightness 700 to 1000 -> LEDs full bright", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/ea65/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/ea65/#/file", KEY_VALUE, "ea65", KEY_META, "default", "ea65", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/ea65/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "OffBrightness is the the value used for the \'backlight off\' state", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/ea65/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/eyeboxone/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a EyeboxOne driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "EyeboxOneDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/eyeboxone/#/backlight", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Switch on the backlight\?", KEY_META, "type", "boolean", KEY_END), + keyNew ("/eyeboxone/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/eyeboxone/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/eyeboxone/#/cursor", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Switch on the cursor\?", KEY_META, "type", "boolean", KEY_END), + keyNew ("/eyeboxone/#/device", KEY_VALUE, "/dev/ttyS1", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/eyeboxone/#/downkey", KEY_VALUE, "B", KEY_META, "check/type", "string", KEY_META, "default", "B", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), + keyNew ("/eyeboxone/#/escapekey", KEY_VALUE, "P", KEY_META, "check/type", "string", KEY_META, "default", "P", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), + keyNew ("/eyeboxone/#/file", KEY_VALUE, "EyeboxOne", KEY_META, "default", "EyeboxOne", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/eyeboxone/#/keypad_test_mode", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "You can find out which key of your display sends which\ncharacter by setting keypad_test_mode to yes and running\nLCDd. LCDd will output all characters it receives.\nAfterwards you can modify the settings above and set\nkeypad_set_mode to no again.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/eyeboxone/#/leftkey", KEY_VALUE, "D", KEY_META, "check/type", "string", KEY_META, "default", "D", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), + keyNew ("/eyeboxone/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/eyeboxone/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/eyeboxone/#/rightkey", KEY_VALUE, "C", KEY_META, "check/type", "string", KEY_META, "default", "C", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), + keyNew ("/eyeboxone/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Set the display size", KEY_META, "type", "string", KEY_END), + keyNew ("/eyeboxone/#/speed", KEY_VALUE, "19200", KEY_META, "check/range", "1200, 2400, 9600, 19200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/eyeboxone/#/upkey", KEY_VALUE, "A", KEY_META, "check/type", "string", KEY_META, "default", "A", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), + keyNew ("/futaba/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a futaba driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "FutabaDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/futaba/#/file", KEY_VALUE, "futaba", KEY_META, "default", "futaba", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/g15/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a g15 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "G15DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/g15/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/g15/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/g15/#/file", KEY_VALUE, "g15", KEY_META, "default", "g15", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/g15/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/g15/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/g15/#/size", KEY_VALUE, "20x5", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x5", KEY_META, "description", "Display size (currently unused)", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a glcd driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "GlcdDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/glcd/#/bidirectional", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Use LPT port in bi-directional mode. This should work on most LPT port and is required for proper timing!", KEY_META, "type", "boolean", KEY_END), + keyNew ("/glcd/#/brightness", KEY_VALUE, "800", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "800", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/glcd/#/cellsize", KEY_VALUE, "6x8", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "6x8", KEY_META, "description", "Width and height of a character cell in pixels. This value is only used the driver has been compiled with FreeType and it is enabled. Otherwise the default 6x8 cell is used.", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#/connectiontype", KEY_VALUE, "t6963", KEY_META, "check/enum", "#6", KEY_META, "check/enum/#0", "t6963", KEY_META, "check/enum/#1", "png", KEY_META, "check/enum/#2", "serdisplib", KEY_META, "check/enum/#3", "glcd2usb", KEY_META, "check/enum/#4", "x11", KEY_META, "check/enum/#5", "picolcdgfx", KEY_META, "check/enum/#6", "xyz", KEY_META, "check/type", "enum", KEY_META, "default", "t6963", KEY_META, "description", "Select what type of connection. See documentation for types.", KEY_META, "gen/enum/type", "GlcdConnectionType", KEY_META, "type", "enum", KEY_END), + keyNew ("/glcd/#/contrast", KEY_VALUE, "600", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "600", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/glcd/#/delaybus", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Insert additional delays into reads / writes.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/glcd/#/file", KEY_VALUE, "glcd", KEY_META, "default", "glcd", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#/fonthasicons", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Some fonts miss the Unicode characters used to represent icons. In this case the built-in 5x8 font can used if this option is turned off.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/glcd/#/keymap_a", KEY_VALUE, "Up", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#/keymap_b", KEY_VALUE, "Down", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#/keymap_c", KEY_VALUE, "Left", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#/keymap_d", KEY_VALUE, "Right", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#/keymap_e", KEY_VALUE, "Enter", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#/keymap_f", KEY_VALUE, "Escape", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#/keyrepeatdelay", KEY_VALUE, "500", KEY_META, "check/range", "0-3000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "Time (ms) from first key report to first repeat. Set to 0 to disable repeated key reports.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/glcd/#/keyrepeatinterval", KEY_VALUE, "500", KEY_META, "check/range", "0-3000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "Time (ms) between repeated key reports. Ignored if KeyRepeatDelay is disabled (set to zero).", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/glcd/#/normal_font", KEY_VALUE, "/usr/local/lib/X11/fonts/TTF/andalemo.ttf", KEY_META, "check/type", "string", KEY_META, "default", "/usr/local/lib/X11/fonts/TTF/andalemo.ttf", KEY_META, "description", "Path to font file to use for FreeType rendering. This font must be monospace and should contain some special Unicode characters like arrows (Andale Mono is recommended and can be fetched at http://corefonts.sf.net).", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#/offbrightness", KEY_VALUE, "100", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "100", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/glcd/#/picolcdgfx_inverted", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Inverts the pixels.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/glcd/#/picolcdgfx_keytimeout", KEY_VALUE, "125", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9][0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Number must be any positive integer >0", KEY_META, "default", "125", KEY_META, "description", "Time in ms for usb_read to wait on a key press.", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#/port", KEY_VALUE, "0x378", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([2-3][0-9A-F]{2}|400)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. legal: 0x200 - 0x400", KEY_META, "default", "0x378", KEY_META, "description", "Parallel port to use", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/glcd/#/serdisp_device", KEY_VALUE, "/dev/ppi0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ppi0", KEY_META, "description", "The display device to use, e.g. serraw:/dev/ttyS0, parport:/dev/parport0 or USB:07c0/1501", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#/serdisp_name", KEY_VALUE, "t6963", KEY_META, "check/type", "string", KEY_META, "default", "t6963", KEY_META, "description", "Name of the underlying serdisplib driver, e.g. ctinclud. See", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#/serdisp_options", KEY_VALUE, "INVERT=1", KEY_META, "check/type", "string", KEY_META, "default", "INVERT=1", KEY_META, "description", "Options string to pass to serdisplib during initialization. Use\nthis to set any display related options (e.g. wiring). The display size is\nalways set based on the Size configured above! By default, no options are\nset.\nImportant: The value must be quoted as it contains equal signs!", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#/size", KEY_VALUE, "128x64", KEY_META, "check/type", "string", KEY_META, "check/validation", "(640|[1-9]|[1-9][0-9]|[1-5][0-9][0-9]|6[0-3][0-9])x(480|[1-9]|[1-9][0-9]|[1-3][0-9][0-9]|4[0-7][0-9])", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. legal: 1x1 - 640x480", KEY_META, "default", "128x64", KEY_META, "description", "Width and height of the display in pixel. The supported sizes may depend on the ConnectionType", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#/useft2", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If LCDproc has been compiled with FreeType 2 support this option can be used to turn if off intentionally.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/glcd/#/x11_backlightcolor", KEY_VALUE, "0x80FF80", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{6}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Colors are in RRGGBB format prefixed with \"0x\"", KEY_META, "default", "0x80FF80", KEY_META, "description", "The color of the backlight as full brightness.", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#/x11_border", KEY_VALUE, "20", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "^([1-9]\\d*|0)$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "20", KEY_META, "description", "Adds a border (empty space) around the LCD portion of X11 window.", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("/glcd/#/x11_inverted", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Inverts the pixels.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/glcd/#/x11_pixelcolor", KEY_VALUE, "0x000000", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{6}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Colors are in RRGGBB format prefixed with \"0x\"", KEY_META, "default", "0x000000", KEY_META, "description", "The color of each dot at full contrast.", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#/x11_pixelsize", KEY_VALUE, "3+1", KEY_META, "check/type", "string", KEY_META, "check/validation", "\\d+\\+\\d+", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "[number]+[number] has to be provided, eg: 3+1 or 5+2", KEY_META, "default", "3+1", KEY_META, "description", "Each LCD dot is drawn in the X window as a filled rectangle of this size\n plus a gap between each filled rectangle. A PixelSize of 3+1\n would draw a 3x3 filled rectangle with a gap of 1 pixel to the right and\n bottom, effectively using a 4x4 area of the window. Default is 3+1.", KEY_META, "type", "string", KEY_END), + keyNew ("/glcdlib/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a glcdlib driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "GlcdlibDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/glcdlib/#/CharEncoding", KEY_VALUE, "iso8859-2", KEY_META, "check/type", "string", KEY_META, "default", "iso8859-2", KEY_META, "description", "character encoding to use", KEY_META, "type", "string", KEY_END), + keyNew ("/glcdlib/#/backlight", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), + keyNew ("/glcdlib/#/brightness", KEY_VALUE, "50", KEY_META, "check/range", "0-100", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "50", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/glcdlib/#/contrast", KEY_VALUE, "50", KEY_META, "check/range", "0-100", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "50", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/glcdlib/#/driver", KEY_VALUE, "image", KEY_META, "check/type", "string", KEY_META, "default", "image", KEY_META, "description", "\nSpecify which graphical display supported by graphlcd-base to use.\n Legal values for GRAPHLCD-DRIVER are\n specified in graphlcd\'s configuration file /etc/graphlcd.conf.\n For graphlcd 0.13 they comprise avrctl, framebuffer, gu140x32f, gu256x64-372, \n gu256x64C-3xx0, hd61830, image, ks0108, noritake800, sed1330, sed1520, serdisp, simlcd, t6963c\n", KEY_META, "type", "string", KEY_END), + keyNew ("/glcdlib/#/file", KEY_VALUE, "glcdlib", KEY_META, "default", "glcdlib", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/glcdlib/#/fontfile", KEY_VALUE, "/usr/share/fonts/corefonts/courbd.ttf", KEY_META, "check/type", "string", KEY_META, "default", "/usr/share/fonts/corefonts/courbd.ttf", KEY_META, "description", "path to font file to use", KEY_META, "type", "string", KEY_END), + keyNew ("/glcdlib/#/invert", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), + keyNew ("/glcdlib/#/minfontfacesize", KEY_VALUE, "7x12", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "7x12", KEY_META, "description", "path to font file to use", KEY_META, "type", "string", KEY_END), + keyNew ("/glcdlib/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/glcdlib/#/pixelshiftx", KEY_VALUE, "0", KEY_META, "check/type", "short", KEY_META, "check/validation", "([0-9]+)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "0", KEY_META, "type", "short", KEY_END), + keyNew ("/glcdlib/#/pixelshifty", KEY_VALUE, "2", KEY_META, "check/type", "short", KEY_META, "check/validation", "([0-9]+)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "2", KEY_META, "type", "short", KEY_END), + keyNew ("/glcdlib/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/glcdlib/#/showbigborder", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), + keyNew ("/glcdlib/#/showdebugframe", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), + keyNew ("/glcdlib/#/showthinborder", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "type", "boolean", KEY_END), + keyNew ("/glcdlib/#/textresolution", KEY_VALUE, "16x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x4", KEY_META, "description", "Text resolution in fixed width characters.\n(if it won\'t fit according to available physical pixel resolution\nand the minimum available font face size in pixels, then\n\'DebugBorder\' will automatically be turned on)", KEY_META, "type", "string", KEY_END), + keyNew ("/glcdlib/#/upsidedown", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), + keyNew ("/glcdlib/#/useft2", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "no=use graphlcd bitmap fonts (they have only one size / font file)\nyes=use fonts supported by FreeType2 (needs Freetype2 support in\nlibglcdprocdriver and its dependants)", KEY_META, "type", "boolean", KEY_END), + keyNew ("/glk/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a glk driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "GlkDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/glk/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/glk/#/contrast", KEY_VALUE, "500", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/glk/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "select the serial device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/glk/#/file", KEY_VALUE, "glk", KEY_META, "default", "glk", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/glk/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/glk/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/glk/#/speed", KEY_VALUE, "19200", KEY_META, "check/range", "9600, 19200, 38400, 57600, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "set the serial port speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/hd44780/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a hd44780 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Hd44780DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/hd44780/#/backlight", KEY_VALUE, "none", KEY_META, "check/enum", "#8", KEY_META, "check/enum/#0", "none", KEY_META, "check/enum/#1", "external", KEY_META, "check/enum/#2", "internal", KEY_META, "check/enum/#3", "internalCmds", KEY_META, "check/type", "enum", KEY_META, "default", "none", KEY_META, "description", "Specify if you have a switchable backlight and if yes, can select method for turning it on/off:\n#\n- none - no switchable backlight is available.\n- external - use external pin or any other method defined with ConnectionType backlight\n handling.\n- internal - means that backlight is handled using internal commands according\n to selected display model (with Model option). Depending on model,\n Brightness and OffBrightness options can be taken into account.\n- internalCmds - means that commands for turning on and off backlight are given\n with extra options BacklightOnCmd and BacklightOffCmd, which would be treated\n as catch up (last resort) for other types of displays which have similar features.\n#\nYou can provide multiple occurences of this option to use more than one method.\nDefault is model specific: Winstar OLED and PT6314 VFD enables internal backlight mode,\nfor others it is set to none.", KEY_META, "gen/enum/type", "HD44780Backlight", KEY_META, "type", "enum", KEY_END), + keyNew ("/hd44780/#/backlightcmdoff", KEY_VALUE, "0x1234", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{4}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "4 bytes can be encoded, as integer number in big-endian order (0x0000-0xFFFF)", KEY_META, "default", "0x1234", KEY_META, "description", "Commands for disabling internal backlight for use with Backlight=internalCmds.\nUp to 4 bytes can be encoded, as integer number in big-endian order.", KEY_META, "type", "string", KEY_END), + keyNew ("/hd44780/#/backlightcmdon", KEY_VALUE, "0x1223", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{4}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "4 bytes can be encoded, as integer number in big-endian order (0x0000-0xFFFF)", KEY_META, "default", "0x1223", KEY_META, "description", "Commands for enabling internal backlight for use with Backlight=internalCmds.\nUp to 4 bytes can be encoded, as integer number in big-endian order.\n#\nNOTE: this is advanced option, if command contains bits other than only brighness handling,\nthey must be set accordingly to not disrupt display state. If for example \'FUNCTION SET\' command\nis used for this purpose, bits of interface length (4-bit / 8-bit) must be set according to\nselected ConnectionType.", KEY_META, "type", "string", KEY_END), + keyNew ("/hd44780/#/brightness", KEY_VALUE, "800", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "800", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/hd44780/#/charmap", KEY_VALUE, "hd44780_default", KEY_META, "check/enum", "#7", KEY_META, "check/enum/#0", "hd44780_default", KEY_META, "check/enum/#1", "hd44780_euro", KEY_META, "check/enum/#2", "ea_ks0073", KEY_META, "check/enum/#3", "sed1278f_0b", KEY_META, "check/enum/#4", "hd44780_koi8_r", KEY_META, "check/enum/#5", "hd44780_cp1251", KEY_META, "check/enum/#6", "hd44780_8859_5", KEY_META, "check/enum/#7", "upd16314", KEY_META, "check/type", "enum", KEY_META, "default", "hd44780_default", KEY_META, "description", "Character map to to map ISO-8859-1 to the LCD\'s character set. (hd44780_koi8_r, hd44780_cp1251, hd44780_8859_5, upd16314 and weh001602a_1\nare possible if compiled with additional charmaps)", KEY_META, "gen/enum/type", "HD44780Charmap", KEY_META, "type", "enum", KEY_END), + keyNew ("/hd44780/#/connectiontype", KEY_VALUE, "4bit", KEY_META, "check/enum", "#_27", KEY_META, "check/enum/#0", "4bit", KEY_META, "check/enum/#1", "8bit", KEY_META, "check/enum/#2", "winamp", KEY_META, "check/enum/#3", "lcm162", KEY_META, "check/enum/#4", "serialLpt", KEY_META, "check/enum/#5", "picanlcd", KEY_META, "check/enum/#6", "lcdserializer", KEY_META, "check/enum/#7", "los-panel", KEY_META, "check/enum/#8", "vdr-lcd", KEY_META, "check/enum/#9", "vdr-wakeup", KEY_META, "check/enum/#_10", "ezio", KEY_META, "check/enum/#_11", "pertelian", KEY_META, "check/enum/#_12", "lis2", KEY_META, "check/enum/#_13", "mplay", KEY_META, "check/enum/#_14", "usblcd", KEY_META, "check/enum/#_15", "bwctusb", KEY_META, "check/enum/#_16", "lcd2usb", KEY_META, "check/enum/#_17", "usbtiny", KEY_META, "check/enum/#_18", "uss720", KEY_META, "check/enum/#_19", "USB-4-all", KEY_META, "check/enum/#_20", "ftdi", KEY_META, "check/enum/#_21", "i2c", KEY_META, "check/enum/#_22", "piplate", KEY_META, "check/enum/#_23", "spi", KEY_META, "check/enum/#_24", "pifacecad", KEY_META, "check/enum/#_25", "ethlcd", KEY_META, "check/enum/#_26", "raspberrypi", KEY_META, "check/enum/#_27", "gpio", KEY_META, "check/type", "enum", KEY_META, "default", "4bit", KEY_META, "description", "Select what type of connection. See documentation for available types:\n https://github.com/lcdproc/lcdproc/blob/master/docs/lcdproc-user/drivers/hd44780.docbook", KEY_META, "gen/enum/type", "HD44780ConnectionType", KEY_META, "type", "enum", KEY_END), + keyNew ("/hd44780/#/contrast", KEY_VALUE, "800", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "800", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/hd44780/#/delaybus", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "You can reduce the inserted delays by setting this to false.\nOn fast PCs it is possible your LCD does not respond correctly.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/hd44780/#/delaymult", KEY_VALUE, "1", KEY_META, "check/range", "1, 2, 4, 8, 16", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1", KEY_META, "description", "If your display is slow and cannot keep up with the flow of data from\nLCDd, garbage can appear on the LCDd. Set this delay factor to 2 or 4\nto increase the delays.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/hd44780/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Device of the serial, I2C, or SPI interface", KEY_META, "type", "string", KEY_END), + keyNew ("/hd44780/#/extendedmode", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If you have an HD66712, a KS0073 or another controller with \'extended mode\',\nset this flag to get into 4-line mode. On displays with just two lines, do\nnot set this flag.\nAs an additional restriction, controllers with and without extended mode\nAND 4 lines cannot be mixed for those connection types that support more\nthan one display!\nNOTE: This option is deprecated in favour of choosing Model=extended option.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/hd44780/#/file", KEY_VALUE, "hd44780", KEY_META, "default", "hd44780", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/hd44780/#/fontbank", KEY_VALUE, "0", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "0", KEY_META, "check/enum/#1", "1", KEY_META, "check/enum/#2", "2", KEY_META, "check/enum/#3", "3", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Font bank to be used for some displays such as the WINSTAR WEH001602A\n0: English/Japanese (default)\n1: Western Europe I\n2: English/Rusian\n3: Western Europe II", KEY_META, "gen/enum/type", "HD44780Fontbank", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/hd44780/#/keepalivedisplay", KEY_VALUE, "0", KEY_META, "check/range", "0-10", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Some displays (e.g. vdr-wakeup) need a message from the driver to that it\nis still alive. When set to a value bigger then null the character in the\nupper left corner is updated every seconds.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/hd44780/#/keymatrix_4_1", KEY_VALUE, "Enter", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "If you have a keypad you can assign keystrings to the keys. See\ndocumentation for used terms and how to wire it. For example to give directly connected\nkey 4 the string \'Enter\', use:\n KeyDirect_4=Enter For matrix keys use the\nX and Y coordinates of the key: \n KeyMatrix_1_3=Enter", KEY_META, "type", "string", KEY_END), + keyNew ("/hd44780/#/keymatrix_4_2", KEY_VALUE, "Up", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "If you have a keypad you can assign keystrings to the keys. See\ndocumentation for used terms and how to wire it. For example to give directly connected\nkey 4 the string \'Enter\', use:\n KeyDirect_4=Enter For matrix keys use the\nX and Y coordinates of the key: \n KeyMatrix_1_3=Enter", KEY_META, "type", "string", KEY_END), + keyNew ("/hd44780/#/keymatrix_4_3", KEY_VALUE, "Down", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "If you have a keypad you can assign keystrings to the keys. See\ndocumentation for used terms and how to wire it. For example to give directly connected\nkey 4 the string \'Enter\', use:\n KeyDirect_4=Enter For matrix keys use the\nX and Y coordinates of the key: \n KeyMatrix_1_3=Enter", KEY_META, "type", "string", KEY_END), + keyNew ("/hd44780/#/keymatrix_4_4", KEY_VALUE, "Escape", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "If you have a keypad you can assign keystrings to the keys. See\ndocumentation for used terms and how to wire it. For example to give directly connected\nkey 4 the string \'Enter\', use:\n KeyDirect_4=Enter For matrix keys use the\nX and Y coordinates of the key: \n KeyMatrix_1_3=Enter", KEY_META, "type", "string", KEY_END), + keyNew ("/hd44780/#/keypad", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If you have a keypad connected.\nYou may also need to configure the keypad layout further on in this file.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/hd44780/#/lastline", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Specifies if the last line is pixel addressable (yes) or it controls an\nunderline effect (no).", KEY_META, "type", "boolean", KEY_END), + keyNew ("/hd44780/#/lineaddress", KEY_VALUE, "0x20", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a line Address. eg. 0x20, 0x10", KEY_META, "default", "0x20", KEY_META, "description", "In extended mode, on some controllers like the ST7036 (in 3 line mode) the next line in DDRAM won`t start 0x20 higher.", KEY_META, "type", "string", KEY_END), + keyNew ("/hd44780/#/model", KEY_VALUE, "standard", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "standard", KEY_META, "check/enum/#1", "extended", KEY_META, "check/enum/#2", "winstar_oled", KEY_META, "check/enum/#3", "pt6314_vfd", KEY_META, "check/type", "enum", KEY_META, "default", "standard", KEY_META, "description", "Select model if have non-standard one which require extra initialization or handling or\n just want extra features it offers.\n Available: standard (default), extended, winstar_oled, pt6314_vfd\n - standard is default, use for LCDs not mentioned below.\n - extended, hd66712, ks0073: allows use 4-line \'extended\' mode,\n same as deprecated now option ExtendedMode=yes\n - winstar_oled, weh00xxyya: changes initialization for WINSTAR\'s WEH00xxyyA displays\n and allows handling brightness\n - pt6314_vfd: allows handling brightness on PTC\'s PT6314 VFDs\n This option should be independent of connection type.", KEY_META, "type", "enum", KEY_END), + keyNew ("/hd44780/#/offbrightness", KEY_VALUE, "300", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "300", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/hd44780/#/outputport", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If you have the additional output port (\"bargraph\") and you want to be able to control it with the lcdproc OUTPUT command", KEY_META, "type", "boolean", KEY_END), + keyNew ("/hd44780/#/port", KEY_VALUE, "0x378", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{3}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Port must begin with \"0x\", followed by 3 Hexadezimal values, eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "I/O address of the LPT port. Usual values are: 0x278, 0x378 and 0x3BC. For I2C connections this sets the slave address (usually 0x20).", KEY_META, "type", "string", KEY_END), + keyNew ("/hd44780/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/hd44780/#/refreshdisplay", KEY_VALUE, "0", KEY_META, "check/range", "0-20", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "If you experience occasional garbage on your display you can use this\noption as workaround. If set to a value bigger than null it forces a\nfull screen refresh seconds.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/hd44780/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Specifies the size of the LCD. In case of multiple combined displays, this should be the total size.", KEY_META, "type", "string", KEY_END), + keyNew ("/hd44780/#/speed", KEY_VALUE, "0", KEY_META, "check/type", "unsigned_long", KEY_META, "default", "0", KEY_META, "description", "Bitrate of the serial port (0 for interface default)", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("/hd44780/#/vspan", KEY_META, "check/type", "string", KEY_META, "check/validation", "^([1-9][0-9]*(,[1-9][0-9]*)*)\?$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Declarations must look like this: 2,2 or 2,2,1", KEY_META, "default", "", KEY_META, "description", "For multiple combined displays: how many lines does each display have.\nVspan=2,2 means both displays have 2 lines.", KEY_META, "type", "string", KEY_END), + keyNew ("/icp_a106/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a icp_a106 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Icp_a106DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/icp_a106/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/icp_a106/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/icp_a106/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Device of the serial, I2C, or SPI interface", KEY_META, "type", "string", KEY_END), + keyNew ("/icp_a106/#/file", KEY_VALUE, "icp_a106", KEY_META, "default", "icp_a106", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/icp_a106/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/icp_a106/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/icp_a106/#/size", KEY_VALUE, "20x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x2", KEY_META, "description", "Display dimensions", KEY_META, "type", "string", KEY_END), + keyNew ("/imon/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a imon driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "ImonDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/imon/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/imon/#/charmap", KEY_VALUE, "none", KEY_META, "check/enum", "#5", KEY_META, "check/enum/#0", "hd44780_euro", KEY_META, "check/enum/#1", "upd16314", KEY_META, "check/enum/#2", "hd44780_koi8_r", KEY_META, "check/enum/#3", "hd44780_cp1251", KEY_META, "check/enum/#4", "hd44780_8859_5", KEY_META, "check/enum/#5", "none", KEY_META, "check/type", "enum", KEY_META, "default", "none", KEY_META, "description", "Character map to to map ISO-8859-1 to the displays character set. (upd16314, hd44780_koi8_r,\nhd44780_cp1251, hd44780_8859_5 are possible if compiled with additional\ncharmaps)", KEY_META, "gen/enum/type", "IMonCharmap", KEY_META, "type", "enum", KEY_END), + keyNew ("/imon/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/imon/#/device", KEY_VALUE, "/dev/lcd0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd0", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/imon/#/file", KEY_VALUE, "imon", KEY_META, "default", "imon", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/imon/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/imon/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/imon/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Display dimensions", KEY_META, "type", "string", KEY_END), + keyNew ("/imonlcd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a imonlcd driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "ImonlcdDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/imonlcd/#/backlight", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Set the backlight state", KEY_META, "type", "boolean", KEY_END), + keyNew ("/imonlcd/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/imonlcd/#/contrast", KEY_VALUE, "200", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "200", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/imonlcd/#/device", KEY_VALUE, "/dev/lcd0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd0", KEY_META, "description", "select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/imonlcd/#/discmode", KEY_VALUE, "0", KEY_META, "check/enum", "#1", KEY_META, "check/enum/#0", "0", KEY_META, "check/enum/#1", "1", KEY_META, "check/type", "enum", KEY_META, "default", "0", KEY_META, "description", "Set the disc mode\n0 => spin the \'slim\' disc - two disc segments,\n1 => their complement spinning;", KEY_META, "gen/enum/type", "IMonLCDDiscMode", KEY_META, "type", "enum", KEY_END), + keyNew ("/imonlcd/#/file", KEY_VALUE, "imonlcd", KEY_META, "default", "imonlcd", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/imonlcd/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/imonlcd/#/onexit", KEY_VALUE, "1", KEY_META, "check/range", "0-2", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1", KEY_META, "description", "Set the exit behavior\n0 means leave shutdown message,\n1 means show the big clock,\n2 means blank device", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/imonlcd/#/protocol", KEY_VALUE, "0", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "15c2:ffdc", KEY_META, "check/enum/#1", "15c2:0038", KEY_META, "check/enum/#2", "0", KEY_META, "check/enum/#3", "1", KEY_META, "check/type", "string", KEY_META, "default", "0", KEY_META, "description", "Specify which iMon protocol should be used\nChoose 0 for 15c2:ffdc device,\nChoose 1 for 15c2:0038 device", KEY_META, "gen/enum/#2/value", "0", KEY_META, "gen/enum/#3/value", "1", KEY_META, "gen/enum/type", "IMonLCDProtocol", KEY_META, "type", "string", KEY_END), + keyNew ("/imonlcd/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/imonlcd/#/size", KEY_VALUE, "96x16", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "96x16", KEY_META, "description", "Specify the size of the display in pixels", KEY_META, "type", "string", KEY_END), + keyNew ("/iowarrior/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a IOWarrior driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "IOWarriorDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/iowarrior/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/iowarrior/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/iowarrior/#/extendedmode", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If you have an HD66712, a KS0073 or another \'almost HD44780-compatible\',\nset this flag to get into extended mode (4-line linear).", KEY_META, "type", "boolean", KEY_END), + keyNew ("/iowarrior/#/file", KEY_VALUE, "IOWarrior", KEY_META, "default", "IOWarrior", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/iowarrior/#/lastline", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Specifies if the last line is pixel addressable (yes) or it controls an\nunderline effect (no).", KEY_META, "type", "boolean", KEY_END), + keyNew ("/iowarrior/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/iowarrior/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/iowarrior/#/serialnumber", KEY_VALUE, "00000674", KEY_META, "check/type", "any", KEY_META, "default", "00000674", KEY_META, "description", "serial number. Must be exactly as listed by usbview (if not given, the 1st IOWarrior found gets used)", KEY_META, "type", "string", KEY_END), + keyNew ("/iowarrior/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Display dimensions", KEY_META, "type", "string", KEY_END), + keyNew ("/irman/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a IrMan driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "IrManDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/irman/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/irman/#/config", KEY_VALUE, "/etc/irman.cfg", KEY_META, "check/type", "string", KEY_META, "default", "/etc/irman.cfg", KEY_META, "description", "Select the configuration file to use", KEY_META, "type", "string", KEY_END), + keyNew ("/irman/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/irman/#/device", KEY_VALUE, "/dev/irman", KEY_META, "check/type", "string", KEY_META, "default", "/dev/irman", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/irman/#/file", KEY_VALUE, "IrMan", KEY_META, "default", "IrMan", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/irman/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/irman/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/irtrans/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a irtrans driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "IrtransDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/irtrans/#/backlight", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Does the device have a backlight\?", KEY_META, "type", "boolean", KEY_END), + keyNew ("/irtrans/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/irtrans/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/irtrans/#/file", KEY_VALUE, "irtrans", KEY_META, "default", "irtrans", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/irtrans/#/hostname", KEY_VALUE, "localhost", KEY_META, "check/type", "string", KEY_META, "default", "localhost", KEY_META, "description", "IRTrans device to connect to", KEY_META, "type", "string", KEY_END), + keyNew ("/irtrans/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/irtrans/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/irtrans/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Specify the size of the display in pixels", KEY_META, "type", "string", KEY_END), + keyNew ("/joy/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a joy driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "JoyDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/joy/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/joy/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/joy/#/device", KEY_VALUE, "/dev/js0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/js0", KEY_META, "description", "Select the input device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/joy/#/file", KEY_VALUE, "joy", KEY_META, "default", "joy", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/joy/#/map_axis1neg", KEY_VALUE, "Left", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "set the axis map", KEY_META, "type", "string", KEY_END), + keyNew ("/joy/#/map_axis1pos", KEY_VALUE, "Right", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "set the axis map", KEY_META, "type", "string", KEY_END), + keyNew ("/joy/#/map_axis2neg", KEY_VALUE, "Up", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "set the axis map", KEY_META, "type", "string", KEY_END), + keyNew ("/joy/#/map_axis2pos", KEY_VALUE, "Down", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "set the axis map", KEY_META, "type", "string", KEY_END), + keyNew ("/joy/#/map_button1", KEY_VALUE, "Enter", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "set the button map", KEY_META, "type", "string", KEY_END), + keyNew ("/joy/#/map_button2", KEY_VALUE, "Escape", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "set the button map", KEY_META, "type", "string", KEY_END), + keyNew ("/joy/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/joy/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/lb216/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lb216 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Lb216DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/lb216/#/brightness", KEY_VALUE, "200", KEY_META, "check/range", "0-255", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "200", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/lb216/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/lb216/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the input device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/lb216/#/file", KEY_VALUE, "lb216", KEY_META, "default", "lb216", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/lb216/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/lb216/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/lb216/#/speed", KEY_VALUE, "9600", KEY_META, "check/range", "2400, 9600", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/lcdm001/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lcdm001 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Lcdm001DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/lcdm001/#/backkey", KEY_VALUE, "UpKey", KEY_META, "check/type", "string", KEY_META, "default", "UpKey", KEY_META, "description", "Normal Context: Back(Go to previous screen) \nMenu Context: Up/Left", KEY_META, "type", "string", KEY_END), + keyNew ("/lcdm001/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/lcdm001/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/lcdm001/#/device", KEY_VALUE, "/dev/ttyS1", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/lcdm001/#/file", KEY_VALUE, "lcdm001", KEY_META, "default", "lcdm001", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/lcdm001/#/forwardkey", KEY_VALUE, "DownKey", KEY_META, "check/type", "string", KEY_META, "default", "DownKey", KEY_META, "description", "Normal Context: Forward(Go to next screen) \nMenu Context: Down/Right", KEY_META, "type", "string", KEY_END), + keyNew ("/lcdm001/#/mainmenukey", KEY_VALUE, "RightKey", KEY_META, "check/type", "string", KEY_META, "default", "RightKey", KEY_META, "description", "Normal Context: Open main menu \nMenu Context: Exit/Cancel", KEY_META, "type", "string", KEY_END), + keyNew ("/lcdm001/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/lcdm001/#/pausekey", KEY_VALUE, "LeftKey", KEY_META, "check/type", "string", KEY_META, "default", "LeftKey", KEY_META, "description", "Normal Context: Pause/Continue \nMenu Context: Enter/select", KEY_META, "type", "string", KEY_END), + keyNew ("/lcdm001/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/lcterm/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lcterm driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "LctermDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/lcterm/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/lcterm/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/lcterm/#/device", KEY_VALUE, "/dev/ttyS1", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/lcterm/#/file", KEY_VALUE, "lcterm", KEY_META, "default", "lcterm", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/lcterm/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/lcterm/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/lcterm/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Specify the size of the display in pixels", KEY_META, "type", "string", KEY_END), + keyNew ("/linux_input/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a linux_input driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Linux_inputDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/linux_input/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/linux_input/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/linux_input/#/device", KEY_VALUE, "/dev/input/event0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/input/event0", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/linux_input/#/file", KEY_VALUE, "linux_input", KEY_META, "default", "linux_input", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/linux_input/#/key/_", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "specify a non-default key map, eg.: \n/linux_input/key/#01 = 1\n/linux_input/key/#28 = Enter", KEY_META, "type", "string", KEY_END), + keyNew ("/linux_input/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/linux_input/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/lirc/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lirc driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "LircDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/lirc/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/lirc/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/lirc/#/file", KEY_VALUE, "lirc", KEY_META, "default", "lirc", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/lirc/#/lircrc", KEY_VALUE, "~/.lircrc", KEY_META, "check/type", "string", KEY_META, "default", "~/.lircrc", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/lirc/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/lirc/#/prog", KEY_VALUE, "lcdd", KEY_META, "check/type", "string", KEY_META, "default", "lcdd", KEY_META, "description", "Must be the same as in your lircrc", KEY_META, "type", "string", KEY_END), + keyNew ("/lirc/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/lis/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lis driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "LisDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/lis/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness\n0-250 = 25%, 251-500 = 50%, 501-750 = 75%, 751-1000 = 100%", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/lis/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/lis/#/file", KEY_VALUE, "lis", KEY_META, "default", "lis", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/lis/#/lastline", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Specifies if the last line is pixel addressable (yes) or it only controls an\nunderline effect (no)", KEY_META, "type", "boolean", KEY_END), + keyNew ("/lis/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/lis/#/productid", KEY_VALUE, "0x6001", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{4})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size ProductID: 0x0000-0xFFFF is allowed", KEY_META, "default", "0x6001", KEY_META, "description", "USB Product ID. Change only if testing a compatible device.", KEY_META, "type", "string", KEY_END), + keyNew ("/lis/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/lis/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Columns by lines", KEY_META, "type", "string", KEY_END), + keyNew ("/lis/#/vendorid", KEY_VALUE, "0x0403", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{4})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size VendorID: 0x0000-0xFFFF is allowed", KEY_META, "default", "0x0403", KEY_META, "description", "USB Vendor ID. Change only if testing a compatible device.", KEY_META, "type", "string", KEY_END), + keyNew ("/md8800/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a MD8800 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "MD8800DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/md8800/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/md8800/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/md8800/#/device", KEY_VALUE, "/dev/ttyS1", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/md8800/#/file", KEY_VALUE, "MD8800", KEY_META, "default", "MD8800", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/md8800/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/md8800/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/md8800/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), + keyNew ("/mdm166a/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a mdm166a driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Mdm166aDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/mdm166a/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/mdm166a/#/clock", KEY_VALUE, "no", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "no", KEY_META, "check/enum/#1", "small", KEY_META, "check/enum/#2", "big", KEY_META, "check/type", "enum", KEY_META, "default", "no", KEY_META, "description", "Show self-running clock after LCDd shutdown", KEY_META, "type", "enum", KEY_END), + keyNew ("/mdm166a/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/mdm166a/#/dimming", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Dim display, no dimming gives full brightness", KEY_META, "type", "boolean", KEY_END), + keyNew ("/mdm166a/#/file", KEY_VALUE, "mdm166a", KEY_META, "default", "mdm166a", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/mdm166a/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/mdm166a/#/offdimming", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Dim display in case LCDd is inactive", KEY_META, "type", "boolean", KEY_END), + keyNew ("/mdm166a/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/menu/downkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), + keyNew ("/menu/enterkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), + keyNew ("/menu/leftkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), + keyNew ("/menu/menukey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), + keyNew ("/menu/permissivegoto", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If true the server allows transitions between different client`s menus", KEY_META, "type", "boolean", KEY_END), + keyNew ("/menu/rightkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), + keyNew ("/menu/upkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), + keyNew ("/ms6931/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a ms6931 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Ms6931DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/ms6931/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/ms6931/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/ms6931/#/device", KEY_VALUE, "/dev/ttyS1", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/ms6931/#/file", KEY_VALUE, "ms6931", KEY_META, "default", "ms6931", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/ms6931/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/ms6931/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/ms6931/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), + keyNew ("/mtc_s16209x/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a mtc_s16209x driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Mtc_s16209xDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/mtc_s16209x/#/brightness", KEY_VALUE, "200", KEY_META, "check/range", "0-255", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "200", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/mtc_s16209x/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/mtc_s16209x/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/mtc_s16209x/#/file", KEY_VALUE, "mtc_s16209x", KEY_META, "default", "mtc_s16209x", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/mtc_s16209x/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/mtc_s16209x/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/mtxorb/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a MtxOrb driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "MtxOrbDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/mtxorb/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/mtxorb/#/contrast", KEY_VALUE, "480", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "480", KEY_META, "description", "Set the initial contrast\nNOTE: The driver will ignore this if the display\nis a vfd or vkd as they don\'t have this feature", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/mtxorb/#/device", KEY_VALUE, "/dev/ttyS0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS0", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/mtxorb/#/file", KEY_VALUE, "MtxOrb", KEY_META, "default", "MtxOrb", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/mtxorb/#/hasadjustablebacklight", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Some old displays do not have an adjustable backlight but only can\nswitch the backlight on/off. If you experience randomly appearing block\ncharacters, try setting this to false.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/mtxorb/#/keymap_a", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), + keyNew ("/mtxorb/#/keymap_b", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), + keyNew ("/mtxorb/#/keymap_c", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), + keyNew ("/mtxorb/#/keymap_d", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), + keyNew ("/mtxorb/#/keymap_e", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), + keyNew ("/mtxorb/#/keymap_f", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), + keyNew ("/mtxorb/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/mtxorb/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/mtxorb/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), + keyNew ("/mtxorb/#/speed", KEY_VALUE, "19200", KEY_META, "check/range", "1200, 2400, 9600, 19200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "Set the communication", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/mtxorb/#/type", KEY_VALUE, "lcd", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "lcd lkd, vfd, vkd", KEY_META, "check/enum/#1", "lkd", KEY_META, "check/enum/#2", "vfd", KEY_META, "check/enum/#3", "vkd", KEY_META, "check/type", "enum", KEY_META, "default", "lcd", KEY_META, "description", "Set the display type", KEY_META, "type", "enum", KEY_END), + keyNew ("/mx5000/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a mx5000 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Mx5000DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/mx5000/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/mx5000/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/mx5000/#/device", KEY_VALUE, "/dev/hiddev0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/hiddev0", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/mx5000/#/file", KEY_VALUE, "mx5000", KEY_META, "default", "mx5000", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/mx5000/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/mx5000/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/mx5000/#/waitafterrefresh", KEY_VALUE, "1000", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "[1-9]\\d*", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "WaitAfterRefresh must be a positive number", KEY_META, "default", "1000", KEY_META, "description", "Time to wait in ms after the refresh screen has been sent", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("/noritakevfd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a NoritakeVFD driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "NoritakeVFDDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/noritakevfd/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/noritakevfd/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/noritakevfd/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "device where the VFD is. Usual values are /dev/ttyS0 and /dev/ttyS1", KEY_META, "type", "string", KEY_END), + keyNew ("/noritakevfd/#/file", KEY_VALUE, "NoritakeVFD", KEY_META, "default", "NoritakeVFD", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/noritakevfd/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/noritakevfd/#/parity", KEY_VALUE, "0", KEY_META, "check/range", "0-2", KEY_META, "check/type", "unsigned_long", KEY_META, "default", "0", KEY_META, "description", "Set serial data parity\nMeaning: 0(=none), 1(=odd), 2(=even)", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("/noritakevfd/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/noritakevfd/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), + keyNew ("/noritakevfd/#/speed", KEY_VALUE, "19200", KEY_META, "check/range", "1200, 2400, 9600, 19200, 115200", KEY_META, "check/type", "unsigned_long", KEY_META, "default", "19200", KEY_META, "description", "set the serial port speed", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("/olimex_mod_lcd1x9/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a Olimex_MOD_LCD1x9 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Olimex_MOD_LCD1x9DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/olimex_mod_lcd1x9/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/olimex_mod_lcd1x9/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/olimex_mod_lcd1x9/#/device", KEY_VALUE, "/dev/i2c-0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/i2c-0", KEY_META, "description", "device file of the i2c controller", KEY_META, "type", "string", KEY_END), + keyNew ("/olimex_mod_lcd1x9/#/file", KEY_VALUE, "Olimex_MOD_LCD1x9", KEY_META, "default", "Olimex_MOD_LCD1x9", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/olimex_mod_lcd1x9/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/olimex_mod_lcd1x9/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/picolcd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a picolcd driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "PicolcdDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/picolcd/#/backlight", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Sets the initial state of the backlight upon start-up.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/picolcd/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness [default: 1000; legal: 0 - 1000]. Works only\nwith the 20x4 device", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/picolcd/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/picolcd/#/file", KEY_VALUE, "picolcd", KEY_META, "default", "picolcd", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/picolcd/#/key0light", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/picolcd/#/key1light", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/picolcd/#/key2light", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/picolcd/#/key3light", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/picolcd/#/key4light", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/picolcd/#/key5light", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/picolcd/#/keylights", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Light the keys\?", KEY_META, "type", "boolean", KEY_END), + keyNew ("/picolcd/#/keyrepeatdelay", KEY_VALUE, "300", KEY_META, "check/range", "0-3000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "300", KEY_META, "description", "Key auto repeat is only available if the picoLCD driver is built with\nlibusb-1.0. Use KeyRepeatDelay and KeyRepeatInterval to configure key auto\nrepeat.\n#\nKey auto repeat delay (time in ms from first key report to first repeat). Use\nzero to disable auto repeat.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/picolcd/#/keyrepeatinterval", KEY_VALUE, "200", KEY_META, "check/range", "0-3000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "200", KEY_META, "description", "Key auto repeat interval (time in ms between repeat reports). Only used if\nKeyRepeatDelay is not zero.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/picolcd/#/keytimeout", KEY_VALUE, "500", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "KeyTimeout is only used if the picoLCD driver is built with libusb-0.1. When\nbuilt with libusb-1.0 key and IR data is input asynchronously so there is no\nneed to wait for the USB data.\nKeyTimeout is the time in ms that LCDd spends waiting for a key press before\ncycling through other duties. Higher values make LCDd use less CPU time and\nmake key presses more detectable. Lower values make LCDd more responsive\nbut a little prone to missing key presses. 500 (.5 second) is the default\nand a balanced value.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/picolcd/#/linklights", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Link the key lights to the backlight\?", KEY_META, "type", "boolean", KEY_END), + keyNew ("/picolcd/#/lircflushthreshold", KEY_VALUE, "1000", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "[1-9]\\d{3,}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "LircFlushThreshold must be a positive number >1000", KEY_META, "default", "1000", KEY_META, "description", "Threshold in microseconds of the gap that triggers flushing the IR data\nto lirc [default: 8000; legal: 1000 - ]\nIf LircTime_us is on values greater than 32.767ms will disable the flush\nIf LircTime_us is off values greater than 1.999938s will disable the flush", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("/picolcd/#/lirchost", KEY_VALUE, "127.0.0.1", KEY_META, "check/type", "string", KEY_META, "default", "127.0.0.1", KEY_META, "description", "Host name or IP address of the LIRC instance that is to receive IR codes If not set, or set to an empty value, IR support is disabled.", KEY_META, "type", "string", KEY_END), + keyNew ("/picolcd/#/lircport", KEY_VALUE, "8765", KEY_META, "default", "8765", KEY_META, "description", "UDP port on which LIRC is listening", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/picolcd/#/lirctime_us", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "UDP data time unit for LIRC\nOn: times sent in microseconds (requires LIRC UDP driver that accepts this).\nOff: times sent in \'jiffies\' (1/16384s) (supported by standard LIRC UDP driver).", KEY_META, "type", "boolean", KEY_END), + keyNew ("/picolcd/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the brightness while the backlight is \'off\'.\nWorks only with the 20x4 device.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/picolcd/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/pyramid/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a pyramid driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "PyramidDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/pyramid/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/pyramid/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/pyramid/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "device to connect to", KEY_META, "type", "string", KEY_END), + keyNew ("/pyramid/#/file", KEY_VALUE, "pyramid", KEY_META, "default", "pyramid", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/pyramid/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/pyramid/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/rawserial/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a rawserial driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "RawserialDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/rawserial/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/rawserial/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/rawserial/#/device", KEY_VALUE, "/dev/cuaU0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/cuaU0", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/rawserial/#/file", KEY_VALUE, "rawserial", KEY_META, "default", "rawserial", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/rawserial/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/rawserial/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/rawserial/#/size", KEY_VALUE, "40x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "40x4", KEY_META, "description", "Specifies the size of the LCD. If this driver is loaded as a secondary driver\nit always adopts to the size of the primary driver. If loaded as the only\n(or primary) driver, the size can be set.", KEY_META, "type", "string", KEY_END), + keyNew ("/rawserial/#/speed", KEY_VALUE, "9600", KEY_META, "check/type", "unsigned_long", KEY_META, "default", "9600", KEY_META, "description", "Serial port baudrate [default: 9600]", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("/rawserial/#/updaterate", KEY_VALUE, "1", KEY_META, "check/type", "float", KEY_META, "default", "1", KEY_META, "description", "How often to dump the LCD contents out the port, in Hertz (times per second)\n1 = once per second, 4 is 4 times per second, 0.1 is once every 10 seconds.\n[default: 1; legal: 0.0005 - 10]", KEY_META, "type", "float", KEY_END), + keyNew ("/sed1330/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a sed1330 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Sed1330DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/sed1330/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/sed1330/#/cellsize", KEY_VALUE, "6x10", KEY_META, "check/type", "string", KEY_META, "check/validation", "[6-8]x([1-9][0-6]|[1-9])", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Width x Height of a character cell in pixels [legal: 6x7 - 8x16]", KEY_META, "default", "6x10", KEY_META, "description", "Width x Height of a character cell in pixels", KEY_META, "type", "string", KEY_END), + keyNew ("/sed1330/#/connectiontype", KEY_VALUE, "classic", KEY_META, "check/enum", "#1", KEY_META, "check/enum/#0", "classic", KEY_META, "check/enum/#1", "bitshaker", KEY_META, "check/type", "enum", KEY_META, "default", "classic", KEY_META, "description", "Select what type of connection", KEY_META, "type", "enum", KEY_END), + keyNew ("/sed1330/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/sed1330/#/file", KEY_VALUE, "sed1330", KEY_META, "default", "sed1330", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/sed1330/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/sed1330/#/port", KEY_VALUE, "0x378", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{3})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "Port where the LPT is. Common values are 0x278, 0x378 and 0x3BC", KEY_META, "type", "string", KEY_END), + keyNew ("/sed1330/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/sed1330/#/type", KEY_VALUE, "G321D", KEY_META, "check/enum", "#5", KEY_META, "check/enum/#0", "G321D", KEY_META, "check/enum/#1", "G121C", KEY_META, "check/enum/#2", "G242C", KEY_META, "check/enum/#3", "G191D", KEY_META, "check/enum/#4", "G2446", KEY_META, "check/enum/#5", "SP14Q002", KEY_META, "check/type", "enum", KEY_META, "default", "G321D", KEY_META, "description", "Type of LCD module.\nNote: Currently only tested with G321D & SP14Q002.", KEY_META, "type", "enum", KEY_END), + keyNew ("/sed1520/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a sed1520 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Sed1520DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/sed1520/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/sed1520/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/sed1520/#/delaymult", KEY_VALUE, "1", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1", KEY_META, "description", "On fast machines it may be necessary to slow down transfer to the display.\nIf this value is set to zero, delay is disabled. Any value greater than\nzero slows down each write by one microsecond.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/sed1520/#/file", KEY_VALUE, "sed1520", KEY_META, "default", "sed1520", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/sed1520/#/haveinverter", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "The original wiring used an inverter to drive the control lines. If you do\nnot use an inverter set haveInverter to no.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/sed1520/#/interfacetype", KEY_VALUE, "80", KEY_META, "check/range", "68, 80", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "80", KEY_META, "description", "Select the interface type (wiring) for the display. Supported values are\n68 for 68-style connection (RESET level high) and 80 for 80-style connection\n(RESET level low)", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/sed1520/#/invertedmapping", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "On some displays column data in memory is mapped to segment lines from right\nto left. This is called inverted mapping (not to be confused with\n\'haveInverter\' from above).", KEY_META, "type", "boolean", KEY_END), + keyNew ("/sed1520/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/sed1520/#/port", KEY_VALUE, "0x378", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{3})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "Port where the LPT is. Usual values are 0x278, 0x378 and 0x3BC", KEY_META, "type", "string", KEY_END), + keyNew ("/sed1520/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/sed1520/#/usehardreset", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "At least one display is reported (Everbouquet MG1203D) that requires sending\nthree times 0xFF before a reset during initialization.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/serialpos/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a serialPOS driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SerialPOSDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/serialpos/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/serialpos/#/cellsize", KEY_VALUE, "5x8", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "5x8", KEY_META, "description", "Specifies the cell size of each character cell on the display in characters.", KEY_META, "type", "string", KEY_END), + keyNew ("/serialpos/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/serialpos/#/custom_chars", KEY_VALUE, "0", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "^([1-9]\\d*|0)$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be any positive number including 0", KEY_META, "default", "0", KEY_META, "description", "Specifies the number of custom characters supported by the display.\nCustom characters are only used for the rendering of horizontal bars\nand vertical bars. For displays whose cell character cell widths are\nlower than the number of custom characters supported,\nthen custom characters will be used to render the horizontal bars.\nFor more information look at: https://github.com/lcdproc/lcdproc/blob/master/docs/lcdproc-user/drivers/serialPOS.docbook", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("/serialpos/#/device", KEY_VALUE, "/dev/ttyS0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS0", KEY_META, "description", "Device to use in serial mode", KEY_META, "type", "string", KEY_END), + keyNew ("/serialpos/#/file", KEY_VALUE, "serialPOS", KEY_META, "default", "serialPOS", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/serialpos/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/serialpos/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/serialpos/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Specifies the size of the display in characters.", KEY_META, "type", "string", KEY_END), + keyNew ("/serialpos/#/speed", KEY_VALUE, "9600", KEY_META, "check/range", "1200, 2400, 4800, 9600, 19200, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "communication baud rate with the display", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/serialpos/#/type", KEY_VALUE, "AEDEX", KEY_META, "check/enum", "#5", KEY_META, "check/enum/#0", "AEDEX", KEY_META, "check/enum/#1", "CD5220", KEY_META, "check/enum/#2", "Epson", KEY_META, "check/enum/#3", "Emax", KEY_META, "check/enum/#4", "LogicControls", KEY_META, "check/enum/#5", "Ultimate", KEY_META, "check/type", "enum", KEY_META, "default", "AEDEX", KEY_META, "description", "Set the communication protocol to use with the POS display.", KEY_META, "type", "enum", KEY_END), + keyNew ("/serialvfd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a serialVFD driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SerialVFDDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/serialvfd/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness. (4 steps 0-250, 251-500, 501-750, 751-1000)", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/serialvfd/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/serialvfd/#/custom-characters", KEY_VALUE, "0", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "^([1-9]\\d*|0)$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be any positive number including 0", KEY_META, "default", "0", KEY_META, "description", "Number of Custom-Characters. default is display type dependent", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("/serialvfd/#/device", KEY_VALUE, "/dev/ttyS1", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "Device to use in serial mode. Usual values are /dev/ttyS0 and /dev/ttyS1", KEY_META, "type", "string", KEY_END), + keyNew ("/serialvfd/#/file", KEY_VALUE, "serialVFD", KEY_META, "default", "serialVFD", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/serialvfd/#/iso_8859_1", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "enable ISO 8859 1 compatibility", KEY_META, "type", "boolean", KEY_END), + keyNew ("/serialvfd/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive\n(4 steps 0-250, 251-500, 501-750, 751-1000)", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/serialvfd/#/port", KEY_VALUE, "0x378", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{3})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "Portaddress where the LPT is. Used in parallel mode only. Usual values are 0x278, 0x378 and 0x3BC.", KEY_META, "type", "string", KEY_END), + keyNew ("/serialvfd/#/portwait", KEY_VALUE, "2", KEY_META, "check/range", "0-255", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "2", KEY_META, "description", "Set parallel port timing delay (us). Used in parallel mode only.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/serialvfd/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/serialvfd/#/size", KEY_VALUE, "20x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x2", KEY_META, "description", "Specifies the size of the VFD.", KEY_META, "type", "string", KEY_END), + keyNew ("/serialvfd/#/speed", KEY_VALUE, "9600", KEY_META, "check/range", "1200, 2400, 9600, 19200, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "set the serial port speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/serialvfd/#/type", KEY_VALUE, "0", KEY_META, "check/enum", "#_17", KEY_META, "check/enum/#0", "nec_fipc8367", KEY_META, "check/enum/#1", "kd_rev_2_1", KEY_META, "check/enum/#2", "noritake_vfd", KEY_META, "check/enum/#3", "futaba_vfd", KEY_META, "check/enum/#4", "iee_s03601-95b", KEY_META, "check/enum/#5", "iee_s03601-96-080", KEY_META, "check/enum/#6", "futaba_na202sd08fa", KEY_META, "check/enum/#7", "samsung_20s207da4/20s207da6", KEY_META, "check/enum/#8", "nixdorf_ba6x/vt100", KEY_META, "check/enum/#_10", "1", KEY_META, "check/enum/#_11", "2", KEY_META, "check/enum/#_12", "3", KEY_META, "check/enum/#_13", "4", KEY_META, "check/enum/#_14", "5", KEY_META, "check/enum/#_15", "6", KEY_META, "check/enum/#_16", "7", KEY_META, "check/enum/#_17", "8", KEY_META, "check/enum/#_9", "0", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Specifies the displaytype.[default: 0]\n0 NEC (FIPC8367 based) VFDs.\n1 KD Rev 2.1.\n2 Noritake VFDs (*).\n3 Futaba VFDs\n4 IEE S03601-95B\n5 IEE S03601-96-080 (*)\n6 Futaba NA202SD08FA (allmost IEE compatible)\n7 Samsung 20S207DA4 and 20S207DA6\n8 Nixdorf BA6x / VT100\n(* most should work, not tested yet.)", KEY_META, "gen/enum/type", "SerialVFDType", KEY_META, "gen/enum/value", "8", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/serialvfd/#/use_parallel", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "\'no\' if display connected serial, \'yes\' if connected parallel.\nI.e. serial by default", KEY_META, "type", "boolean", KEY_END), + keyNew ("/server/autorotate", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If set to no, LCDd will start with screen rotation disabled. This has the same effect as if the ToggleRotateKey had been pressed. Rotation will start if the ToggleRotateKey is pressed. Note that this setting does not turn off priority sorting of screens", KEY_META, "type", "boolean", KEY_END), + keyNew ("/server/backlight", KEY_VALUE, "open", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "off", KEY_META, "check/enum/#1", "on", KEY_META, "check/enum/#2", "open", KEY_META, "default", "open", KEY_META, "description", "Set master backlight setting. If set to \'open\' a client may control the backlight for its own screens (only)", KEY_META, "type", "enum", KEY_END), + keyNew ("/server/bind", KEY_VALUE, "127.0.0.1", KEY_META, "check/type", "string", KEY_META, "default", "127.0.0.1", KEY_META, "description", "Tells the driver to bind to the given interface", KEY_META, "opt", "a", KEY_META, "opt/long", "address", KEY_META, "type", "string", KEY_END), + keyNew ("/server/driverpath", KEY_VALUE, "server/drivers/", KEY_META, "check/type", "string", KEY_META, "check/validation", ".*[\\/]$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "The path has to contain a backslack (/) at the end", KEY_META, "default", "server/drivers/", KEY_META, "description", "Select the LCD size", KEY_META, "type", "string", KEY_END), + keyNew ("/server/drivers/#", KEY_META, "check/reference/restrict", "#_52", KEY_META, "check/reference/restrict/#0", "@/bayrad/#", KEY_META, "check/reference/restrict/#1", "@/cfontz/#", KEY_META, "check/reference/restrict/#2", "@/cfontzpacket/#", KEY_META, "check/reference/restrict/#3", "@/curses/#", KEY_META, "check/reference/restrict/#4", "@/cwlnx/#", KEY_META, "check/reference/restrict/#5", "@/ea65/#", KEY_META, "check/reference/restrict/#6", "@/eyeboxone/#", KEY_META, "check/reference/restrict/#7", "@/futaba/#", KEY_META, "check/reference/restrict/#8", "@/g15/#", KEY_META, "check/reference/restrict/#9", "@/glcd/#", KEY_META, "check/reference/restrict/#_10", "@/glcdlib/#", KEY_META, "check/reference/restrict/#_11", "@/glk/#", KEY_META, "check/reference/restrict/#_12", "@/hd44780/#", KEY_META, "check/reference/restrict/#_13", "@/icp_a106/#", KEY_META, "check/reference/restrict/#_14", "@/imon/#", KEY_META, "check/reference/restrict/#_15", "@/imonlcd/#", KEY_META, "check/reference/restrict/#_16", "@/iowarrior/#", KEY_META, "check/reference/restrict/#_17", "@/irman/#", KEY_META, "check/reference/restrict/#_18", "@/joy/#", KEY_META, "check/reference/restrict/#_19", "@/lb216/#", KEY_META, "check/reference/restrict/#_20", "@/lcdm001/#", KEY_META, "check/reference/restrict/#_21", "@/lcterm/#", KEY_META, "check/reference/restrict/#_22", "@/linux_input/#", KEY_META, "check/reference/restrict/#_23", "@/lirc/#", KEY_META, "check/reference/restrict/#_24", "@/lis/#", KEY_META, "check/reference/restrict/#_25", "@/md8800/#", KEY_META, "check/reference/restrict/#_26", "@/mdm166a/#", KEY_META, "check/reference/restrict/#_27", "@/ms6931/#", KEY_META, "check/reference/restrict/#_28", "@/mtc_s16209x/#", KEY_META, "check/reference/restrict/#_29", "@/mtxorb/#", KEY_META, "check/reference/restrict/#_30", "@/mx5000/#", KEY_META, "check/reference/restrict/#_31", "@/noritakevfd/#", KEY_META, "check/reference/restrict/#_32", "@/olimex_mod_lcd1x9/#", KEY_META, "check/reference/restrict/#_33", "@/picolcd/#", KEY_META, "check/reference/restrict/#_34", "@/pyramid/#", KEY_META, "check/reference/restrict/#_35", "@/rawserial/#", KEY_META, "check/reference/restrict/#_36", "@/sdeclcd/#", KEY_META, "check/reference/restrict/#_37", "@/sed1330/#", KEY_META, "check/reference/restrict/#_38", "@/sed1520/#", KEY_META, "check/reference/restrict/#_39", "@/serialpos/#", KEY_META, "check/reference/restrict/#_40", "@/serialvfd/#", KEY_META, "check/reference/restrict/#_41", "@/shuttlevfd/#", KEY_META, "check/reference/restrict/#_42", "@/sli/#", KEY_META, "check/reference/restrict/#_43", "@/stv5730/#", KEY_META, "check/reference/restrict/#_44", "@/svga/#", KEY_META, "check/reference/restrict/#_45", "@/t6963/#", KEY_META, "check/reference/restrict/#_46", "@/text/#", KEY_META, "check/reference/restrict/#_47", "@/tyan/#", KEY_META, "check/reference/restrict/#_48", "@/ula200/#", KEY_META, "check/reference/restrict/#_49", "@/vlsys_m428/#", KEY_META, "check/reference/restrict/#_50", "@/xosd/#", KEY_META, "check/reference/restrict/#_51", "@/yard2lcd/#", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "Tells the server to load a driver.\nThe given value is a reference the configuration of the driver, e.g. @/curses/#0", KEY_META, "type", "string", KEY_END), + keyNew ("/server/foreground", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "The server will stay in the foreground if set to yes", KEY_META, "opt", "f", KEY_META, "opt/arg", "none", KEY_META, "opt/long", "foreground", KEY_META, "type", "boolean", KEY_END), + keyNew ("/server/frameinterval", KEY_VALUE, "125000", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "[1-9]\\d*", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "FrameInterval must be a positive number", KEY_META, "default", "125000", KEY_META, "description", "Sets the interval in microseconds for updating the display [default: 125000 meaning 8Hz]", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("/server/goodbye/#", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "GoodBye message: each entry represents a display line", KEY_META, "type", "string", KEY_END), + keyNew ("/server/heartbeat", KEY_VALUE, "open", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "off", KEY_META, "check/enum/#1", "on", KEY_META, "check/enum/#2", "open", KEY_META, "default", "open", KEY_META, "description", "Set master heartbeat setting. If set to \'open\' a client may control the", KEY_META, "type", "enum", KEY_END), + keyNew ("/server/hello/#", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "Hello message: each entry represents a display line", KEY_META, "type", "string", KEY_END), + keyNew ("/server/nextscreenkey", KEY_VALUE, "Right", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), + keyNew ("/server/port", KEY_VALUE, "13666", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "13666", KEY_META, "description", "Listen on this specified port. [default: 13666]", KEY_META, "opt", "p", KEY_META, "opt/long", "port", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/server/prevscreenkey", KEY_VALUE, "Left", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), + keyNew ("/server/reportlevel", KEY_VALUE, "2", KEY_META, "check/range", "0-5", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "2", KEY_META, "description", "TSets the reporting level, defaults to warnings and errors only.", KEY_META, "opt", "r", KEY_META, "opt/long", "report-level", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/server/reporttosyslog", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Should we report to syslog instead of stderr\?", KEY_META, "opt", "s", KEY_META, "opt/arg", "none", KEY_META, "opt/long", "report-to-syslog", KEY_META, "type", "boolean", KEY_END), + keyNew ("/server/scrolldownkey", KEY_VALUE, "Down", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), + keyNew ("/server/scrollupkey", KEY_VALUE, "Up", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), + keyNew ("/server/serverscreen", KEY_VALUE, "on", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "off", KEY_META, "check/enum/#1", "on", KEY_META, "check/enum/#2", "blank", KEY_META, "default", "on", KEY_META, "description", "If yes, the the serverscreen will be rotated as a usual info screen. If no, it will be a background screen, only visible when no other screens are active. The special value \'blank\' is similar to no, but only a blank screen is displayed.", KEY_META, "opt", "i", KEY_META, "opt/long", "rotate-server-screen", KEY_META, "type", "enum", KEY_END), + keyNew ("/server/titlespeed", KEY_VALUE, "10", KEY_META, "check/range", "0-10", KEY_META, "default", "10", KEY_META, "description", "title scrolling speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/server/togglerotatekey", KEY_VALUE, "Enter", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), + keyNew ("/server/user", KEY_VALUE, "nobody", KEY_META, "check/type", "string", KEY_META, "default", "nobody", KEY_META, "description", "set to run as. LCDd will drop its root privileges and run as this user instead. [default: nobody]", KEY_META, "opt", "u", KEY_META, "opt/long", "user", KEY_META, "type", "string", KEY_END), + keyNew ("/server/waittime", KEY_VALUE, "4", KEY_META, "check/type", "float", KEY_META, "default", "4", KEY_META, "description", "Sets the default time in seconds to displays a screen", KEY_META, "opt", "w", KEY_META, "opt/long", "wait-time", KEY_META, "type", "float", KEY_END), + keyNew ("/sli/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a sli driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SliDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/sli/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/sli/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/sli/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/sli/#/file", KEY_VALUE, "sli", KEY_META, "default", "sli", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/sli/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/sli/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/sli/#/speed", KEY_VALUE, "19200", KEY_META, "check/range", "1200, 2400, 9600, 19200, 38400, 57600, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/stv5730/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a stv5730 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Stv5730DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/stv5730/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/stv5730/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/stv5730/#/file", KEY_VALUE, "stv5730", KEY_META, "default", "stv5730", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/stv5730/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/stv5730/#/port", KEY_VALUE, "0x378", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{3})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "Port the device is connected to", KEY_META, "type", "string", KEY_END), + keyNew ("/stv5730/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/sureelec/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a SureElec driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SureElecDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/sureelec/#/brightness", KEY_VALUE, "480", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "480", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/sureelec/#/contrast", KEY_VALUE, "480", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "480", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/sureelec/#/device", KEY_VALUE, "/dev/ttyUSB0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyUSB0", KEY_META, "description", "Port the device is connected to (by default first USB serial port)", KEY_META, "type", "string", KEY_END), + keyNew ("/sureelec/#/edition", KEY_VALUE, "2", KEY_META, "check/range", "1-3", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "2", KEY_META, "description", "Edition level of the device (can be 1, 2 or 3)", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/sureelec/#/file", KEY_VALUE, "SureElec", KEY_META, "default", "SureElec", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/sureelec/#/offbrightness", KEY_VALUE, "480", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "480", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/sureelec/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/sureelec/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "set display size\nNote: The size can be obtained directly from device for edition 2 & 3.", KEY_META, "type", "string", KEY_END), + keyNew ("/svga/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a svga driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SvgaDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/svga/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "1-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/svga/#/contrast", KEY_VALUE, "500", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/svga/#/file", KEY_VALUE, "svga", KEY_META, "default", "svga", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/svga/#/mode", KEY_VALUE, "G320x240x256", KEY_META, "check/type", "string", KEY_META, "default", "G320x240x256", KEY_META, "description", "svgalib mode to use [default: G320x240x256 ]\nlegal values are supported svgalib modes. See man7 pages for allowed values", KEY_META, "type", "string", KEY_END), + keyNew ("/svga/#/offbrightness", KEY_VALUE, "500", KEY_META, "check/range", "1-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/svga/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/svga/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), + keyNew ("/t6963/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a t6963 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "T6963DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/t6963/#/bidirectional", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Use LPT port in bi-directional mode. This should work on most LPT port and\nis required for proper timing!", KEY_META, "type", "boolean", KEY_END), + keyNew ("/t6963/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/t6963/#/cleargraphic", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Clear graphic memory on start-up.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/t6963/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/t6963/#/delaybus", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Insert additional delays into reads / writes.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/t6963/#/file", KEY_VALUE, "t6963", KEY_META, "default", "t6963", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/t6963/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/t6963/#/port", KEY_VALUE, "0x378", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([2-3][0-9A-F]{2}|400)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. legal: 0x200 - 0x400", KEY_META, "default", "0x378", KEY_META, "description", "Parallel port to use", KEY_META, "type", "string", KEY_END), + keyNew ("/t6963/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/t6963/#/size", KEY_VALUE, "128x64", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "128x64", KEY_META, "description", "set display size in pixels", KEY_META, "type", "string", KEY_END), + keyNew ("/text/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a text driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "TextDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/text/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/text/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/text/#/file", KEY_VALUE, "text", KEY_META, "default", "text", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/text/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/text/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/text/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), + keyNew ("/tyan/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a tyan driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "TyanDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/tyan/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/tyan/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/tyan/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/tyan/#/file", KEY_VALUE, "tyan", KEY_META, "default", "tyan", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/tyan/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/tyan/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/tyan/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), + keyNew ("/tyan/#/speed", KEY_VALUE, "9600", KEY_META, "check/range", "4800, 9600", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/ula200/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a ula200 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Ula200DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/ula200/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/ula200/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/ula200/#/file", KEY_VALUE, "ula200", KEY_META, "default", "ula200", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/ula200/#/keymap_a", KEY_VALUE, "Up", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("/ula200/#/keymap_b", KEY_VALUE, "Down", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("/ula200/#/keymap_c", KEY_VALUE, "Left", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("/ula200/#/keymap_d", KEY_VALUE, "Right", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("/ula200/#/keymap_e", KEY_VALUE, "Enter", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("/ula200/#/keymap_f", KEY_VALUE, "Escape", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("/ula200/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/ula200/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/ula200/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Select the LCD size", KEY_META, "type", "string", KEY_END), + keyNew ("/vlsys_m428/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a vlsys_m428 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Vlsys_m428DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/vlsys_m428/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/vlsys_m428/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/vlsys_m428/#/device", KEY_VALUE, "/dev/ttyUSB0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyUSB0", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/vlsys_m428/#/file", KEY_VALUE, "vlsys_m428", KEY_META, "default", "vlsys_m428", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/vlsys_m428/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/vlsys_m428/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/xosd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a xosd driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "XosdDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/xosd/#/Font", KEY_VALUE, "-*-terminus-*-r-*-*-*-320-*-*-*-*-*", KEY_META, "check/type", "string", KEY_META, "default", "-*-terminus-*-r-*-*-*-320-*-*-*-*-*", KEY_META, "description", "X font to use, in XLFD format, as given by \'xfontsel\'", KEY_META, "type", "string", KEY_END), + keyNew ("/xosd/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/xosd/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/xosd/#/file", KEY_VALUE, "xosd", KEY_META, "default", "xosd", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/xosd/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/xosd/#/offset", KEY_VALUE, "0x0", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid offset declaration. Examples: 200x200", KEY_META, "default", "0x0", KEY_META, "description", "Offset in pixels from the top-left corner of the monitor [default: 0x0]", KEY_META, "type", "string", KEY_END), + keyNew ("/xosd/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/xosd/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), + keyNew ("/yard2lcd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a yard2LCD driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Yard2LCDDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/yard2lcd/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/yard2lcd/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/yard2lcd/#/file", KEY_VALUE, "yard2LCD", KEY_META, "default", "yard2LCD", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/yard2lcd/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/yard2lcd/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/yard2lcd/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), + KS_END); +; + Elektra * e = elektraOpen ("/sw/lcdproc/lcdd/#0/current", defaults, error); + + if (e == NULL) + { + return -1; + } + + KeySet * contract = ksNew (1, + keyNew ("system/elektra/ensure/plugins/global/gopts", KEY_VALUE, "mounted", KEY_END), + KS_END); +; + + ElektraError * err = NULL; + elektraEnsure (e, contract, &err); + + if (err != NULL) + { + *error = err; + return -1; + } + + helpKey = elektraHelpKey (e); + if (helpKey != NULL) + { + elektraClose (e); + return 2; + } + + KeySet * defaultContext = ksNew (0, + KS_END); +; + ksAppend (elektraContext (e), defaultContext); + ksDel (defaultContext); + + *elektra = e; + return 0; +} + +/** + * Checks whether specload mode was invoked and if so, sends the specification over stdout + * in the format expected by specload. + * + * You MUST not output anything to stdout before invoking this function. Ideally invoking this + * is the first thing you do in your main()-function. + * + * This function will ONLY RETURN, if specload mode was NOT invoked. Otherwise it will call `exit()`. + * + * @param argc pass the value of argc from main + * @param argv pass the value of argv from main + */ +void doSpecloadCheck (int argc, const char ** argv) +{ + if (argc != 2 || strcmp (argv[1], "--elektra-spec") != 0) + { + return; + } + + KeySet * spec = ksNew (648, + keyNew ("spec/sw/lcdproc/lcdd/#0/current", KEY_META, "infos/plugins", "ini validation type", KEY_META, "mountpoint", "LCDd.conf", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/bayrad", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/bayrad/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a bayrad driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "BayradDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/bayrad/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/bayrad/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/bayrad/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/bayrad/#/file", KEY_META, "default", "bayrad", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/bayrad/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/bayrad/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/bayrad/#/speed", KEY_META, "check/range", "1200, 2400, 9600, 19200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a CFontz driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "CFontzDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "350", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/file", KEY_META, "default", "CFontz", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/newfirmware", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Set the firmware version (New means >= 2.0)", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness. This value is used when the display is normally switched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Select the LCD size", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/speed", KEY_META, "check/range", "1200, 2400, 9600, 19200, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a CFontzPacket driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "CFontzPacketDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "350", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/file", KEY_META, "default", "CFontzPacket", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/model", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "533", KEY_META, "check/enum/#1", "631", KEY_META, "check/enum/#2", "633", KEY_META, "check/enum/#3", "635", KEY_META, "check/type", "enum", KEY_META, "default", "633", KEY_META, "description", "Select the LCD model", KEY_META, "gen/enum/type", "CFontzPacketModel", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness. This value is used when the display is normally switched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/oldfirmware", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Very old 633 firmware versions do not support partial screen updates using \'Send Data to LCD\' command (31). For those devices it may be necessary to enable this flag", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Override the LCD size known for the selected model. Usually setting this value should not be necessary.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/speed", KEY_META, "check/range", "19200, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "115200", KEY_META, "description", "Override the default communication speed known for the selected model. Default value depends on model.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/usb", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Enable the USB flag if the device is connected to an USB port. For serial ports leave it disabled.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a curses driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "CursesDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/background", KEY_META, "check/enum", "#7", KEY_META, "check/enum/#0", "red", KEY_META, "check/enum/#1", "black", KEY_META, "check/enum/#2", "green", KEY_META, "check/enum/#3", "yellow", KEY_META, "check/enum/#4", "blue", KEY_META, "check/enum/#5", "magenta", KEY_META, "check/enum/#6", "cyan", KEY_META, "check/enum/#7", "white", KEY_META, "check/type", "enum", KEY_META, "default", "cyan", KEY_META, "description", "background color when \"backlight\" is off", KEY_META, "gen/enum/type", "CursesColor", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/backlight", KEY_META, "check/enum", "#7", KEY_META, "check/enum/#0", "red", KEY_META, "check/enum/#1", "black", KEY_META, "check/enum/#2", "green", KEY_META, "check/enum/#3", "yellow", KEY_META, "check/enum/#4", "blue", KEY_META, "check/enum/#5", "magenta", KEY_META, "check/enum/#6", "cyan", KEY_META, "check/enum/#7", "white", KEY_META, "check/type", "enum", KEY_META, "default", "red", KEY_META, "description", "background color when \"backlight\" is on", KEY_META, "gen/enum/type", "CursesColor", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/drawborder", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "draw Border", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/file", KEY_META, "default", "curses", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/foreground", KEY_META, "check/enum", "#7", KEY_META, "check/enum/#0", "red", KEY_META, "check/enum/#1", "black", KEY_META, "check/enum/#2", "green", KEY_META, "check/enum/#3", "yellow", KEY_META, "check/enum/#4", "blue", KEY_META, "check/enum/#5", "magenta", KEY_META, "check/enum/#6", "cyan", KEY_META, "check/enum/#7", "white", KEY_META, "check/type", "enum", KEY_META, "default", "blue", KEY_META, "description", "Color settings", KEY_META, "gen/enum/type", "CursesColor", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/topleftx", KEY_META, "check/type", "unsigned_short", KEY_META, "check/validation", "([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "7", KEY_META, "description", "What position (X,Y) to start the left top corner at...", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/toplefty", KEY_META, "check/type", "unsigned_short", KEY_META, "check/validation", "([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "7", KEY_META, "description", "What position (X,Y) to start the left top corner at...", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/useacs", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "use ASC symbols for icons & bars", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a CwLnx driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "CwLnxDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/file", KEY_META, "default", "CwLnx", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/keymap_a", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/keymap_b", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/keymap_c", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/keymap_d", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/keymap_e", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/keymap_f", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/keypad", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If you have a keypad connected. Keypad layout is currently not configureable from the config file.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/keypad_test_mode", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "permits one to test keypad assignment", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/model", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "12232", KEY_META, "check/enum/#1", "12832", KEY_META, "check/enum/#2", "1602", KEY_META, "check/type", "enum", KEY_META, "default", "12232", KEY_META, "description", "Select the LCD model", KEY_META, "gen/enum/type", "CwLnxModel", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Select the LCD size. Default depends on model: \n12232: 20x4 \n12832: 21x4 \n1602: 16x2", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/speed", KEY_META, "check/range", "9600, 19200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ea65", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ea65/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a ea65 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Ea65DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ea65/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "As the VFD is self luminescent we don\'t have a backlight\nBut we can use the backlight functions to control the front LEDs\nBrightness 0 to 299 -> LEDs off\nBrightness 300 to 699 -> LEDs half bright\nBrightness 700 to 1000 -> LEDs full bright", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ea65/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ea65/#/file", KEY_META, "default", "ea65", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ea65/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "OffBrightness is the the value used for the \'backlight off\' state", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ea65/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a EyeboxOne driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "EyeboxOneDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/backlight", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Switch on the backlight\?", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/cursor", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Switch on the cursor\?", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/downkey", KEY_META, "check/type", "string", KEY_META, "default", "B", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/escapekey", KEY_META, "check/type", "string", KEY_META, "default", "P", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/file", KEY_META, "default", "EyeboxOne", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/keypad_test_mode", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "You can find out which key of your display sends which\ncharacter by setting keypad_test_mode to yes and running\nLCDd. LCDd will output all characters it receives.\nAfterwards you can modify the settings above and set\nkeypad_set_mode to no again.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/leftkey", KEY_META, "check/type", "string", KEY_META, "default", "D", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/rightkey", KEY_META, "check/type", "string", KEY_META, "default", "C", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Set the display size", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/speed", KEY_META, "check/range", "1200, 2400, 9600, 19200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/upkey", KEY_META, "check/type", "string", KEY_META, "default", "A", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/futaba", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/futaba/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a futaba driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "FutabaDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/futaba/#/file", KEY_META, "default", "futaba", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/g15", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/g15/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a g15 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "G15DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/g15/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/g15/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/g15/#/file", KEY_META, "default", "g15", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/g15/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/g15/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/g15/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x5", KEY_META, "description", "Display size (currently unused)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a glcd driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "GlcdDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/bidirectional", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Use LPT port in bi-directional mode. This should work on most LPT port and is required for proper timing!", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "800", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/cellsize", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "6x8", KEY_META, "description", "Width and height of a character cell in pixels. This value is only used the driver has been compiled with FreeType and it is enabled. Otherwise the default 6x8 cell is used.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/connectiontype", KEY_META, "check/enum", "#6", KEY_META, "check/enum/#0", "t6963", KEY_META, "check/enum/#1", "png", KEY_META, "check/enum/#2", "serdisplib", KEY_META, "check/enum/#3", "glcd2usb", KEY_META, "check/enum/#4", "x11", KEY_META, "check/enum/#5", "picolcdgfx", KEY_META, "check/enum/#6", "xyz", KEY_META, "check/type", "enum", KEY_META, "default", "t6963", KEY_META, "description", "Select what type of connection. See documentation for types.", KEY_META, "gen/enum/type", "GlcdConnectionType", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "600", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/delaybus", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Insert additional delays into reads / writes.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/file", KEY_META, "default", "glcd", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/fonthasicons", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Some fonts miss the Unicode characters used to represent icons. In this case the built-in 5x8 font can used if this option is turned off.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/keymap_a", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/keymap_b", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/keymap_c", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/keymap_d", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/keymap_e", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/keymap_f", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/keyrepeatdelay", KEY_META, "check/range", "0-3000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "Time (ms) from first key report to first repeat. Set to 0 to disable repeated key reports.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/keyrepeatinterval", KEY_META, "check/range", "0-3000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "Time (ms) between repeated key reports. Ignored if KeyRepeatDelay is disabled (set to zero).", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/normal_font", KEY_META, "check/type", "string", KEY_META, "default", "/usr/local/lib/X11/fonts/TTF/andalemo.ttf", KEY_META, "description", "Path to font file to use for FreeType rendering. This font must be monospace and should contain some special Unicode characters like arrows (Andale Mono is recommended and can be fetched at http://corefonts.sf.net).", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "100", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/picolcdgfx_inverted", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Inverts the pixels.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/picolcdgfx_keytimeout", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9][0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Number must be any positive integer >0", KEY_META, "default", "125", KEY_META, "description", "Time in ms for usb_read to wait on a key press.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/port", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([2-3][0-9A-F]{2}|400)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. legal: 0x200 - 0x400", KEY_META, "default", "0x378", KEY_META, "description", "Parallel port to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/serdisp_device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ppi0", KEY_META, "description", "The display device to use, e.g. serraw:/dev/ttyS0, parport:/dev/parport0 or USB:07c0/1501", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/serdisp_name", KEY_META, "check/type", "string", KEY_META, "default", "t6963", KEY_META, "description", "Name of the underlying serdisplib driver, e.g. ctinclud. See", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/serdisp_options", KEY_META, "check/type", "string", KEY_META, "default", "INVERT=1", KEY_META, "description", "Options string to pass to serdisplib during initialization. Use\nthis to set any display related options (e.g. wiring). The display size is\nalways set based on the Size configured above! By default, no options are\nset.\nImportant: The value must be quoted as it contains equal signs!", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "(640|[1-9]|[1-9][0-9]|[1-5][0-9][0-9]|6[0-3][0-9])x(480|[1-9]|[1-9][0-9]|[1-3][0-9][0-9]|4[0-7][0-9])", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. legal: 1x1 - 640x480", KEY_META, "default", "128x64", KEY_META, "description", "Width and height of the display in pixel. The supported sizes may depend on the ConnectionType", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/useft2", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If LCDproc has been compiled with FreeType 2 support this option can be used to turn if off intentionally.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/x11_backlightcolor", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{6}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Colors are in RRGGBB format prefixed with \"0x\"", KEY_META, "default", "0x80FF80", KEY_META, "description", "The color of the backlight as full brightness.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/x11_border", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "^([1-9]\\d*|0)$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "20", KEY_META, "description", "Adds a border (empty space) around the LCD portion of X11 window.", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/x11_inverted", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Inverts the pixels.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/x11_pixelcolor", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{6}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Colors are in RRGGBB format prefixed with \"0x\"", KEY_META, "default", "0x000000", KEY_META, "description", "The color of each dot at full contrast.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/x11_pixelsize", KEY_META, "check/type", "string", KEY_META, "check/validation", "\\d+\\+\\d+", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "[number]+[number] has to be provided, eg: 3+1 or 5+2", KEY_META, "default", "3+1", KEY_META, "description", "Each LCD dot is drawn in the X window as a filled rectangle of this size\n plus a gap between each filled rectangle. A PixelSize of 3+1\n would draw a 3x3 filled rectangle with a gap of 1 pixel to the right and\n bottom, effectively using a 4x4 area of the window. Default is 3+1.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a glcdlib driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "GlcdlibDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/CharEncoding", KEY_META, "check/type", "string", KEY_META, "default", "iso8859-2", KEY_META, "description", "character encoding to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/backlight", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/brightness", KEY_META, "check/range", "0-100", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "50", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/contrast", KEY_META, "check/range", "0-100", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "50", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/driver", KEY_META, "check/type", "string", KEY_META, "default", "image", KEY_META, "description", "\nSpecify which graphical display supported by graphlcd-base to use.\n Legal values for GRAPHLCD-DRIVER are\n specified in graphlcd\'s configuration file /etc/graphlcd.conf.\n For graphlcd 0.13 they comprise avrctl, framebuffer, gu140x32f, gu256x64-372, \n gu256x64C-3xx0, hd61830, image, ks0108, noritake800, sed1330, sed1520, serdisp, simlcd, t6963c\n", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/file", KEY_META, "default", "glcdlib", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/fontfile", KEY_META, "check/type", "string", KEY_META, "default", "/usr/share/fonts/corefonts/courbd.ttf", KEY_META, "description", "path to font file to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/invert", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/minfontfacesize", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "7x12", KEY_META, "description", "path to font file to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/pixelshiftx", KEY_META, "check/type", "short", KEY_META, "check/validation", "([0-9]+)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "0", KEY_META, "type", "short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/pixelshifty", KEY_META, "check/type", "short", KEY_META, "check/validation", "([0-9]+)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "2", KEY_META, "type", "short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/showbigborder", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/showdebugframe", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/showthinborder", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/textresolution", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x4", KEY_META, "description", "Text resolution in fixed width characters.\n(if it won\'t fit according to available physical pixel resolution\nand the minimum available font face size in pixels, then\n\'DebugBorder\' will automatically be turned on)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/upsidedown", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/useft2", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "no=use graphlcd bitmap fonts (they have only one size / font file)\nyes=use fonts supported by FreeType2 (needs Freetype2 support in\nlibglcdprocdriver and its dependants)", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glk", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glk/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a glk driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "GlkDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glk/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glk/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glk/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "select the serial device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glk/#/file", KEY_META, "default", "glk", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glk/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glk/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glk/#/speed", KEY_META, "check/range", "9600, 19200, 38400, 57600, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "set the serial port speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a hd44780 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Hd44780DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/backlight", KEY_META, "check/enum", "#8", KEY_META, "check/enum/#0", "none", KEY_META, "check/enum/#1", "external", KEY_META, "check/enum/#2", "internal", KEY_META, "check/enum/#3", "internalCmds", KEY_META, "check/type", "enum", KEY_META, "default", "none", KEY_META, "description", "Specify if you have a switchable backlight and if yes, can select method for turning it on/off:\n#\n- none - no switchable backlight is available.\n- external - use external pin or any other method defined with ConnectionType backlight\n handling.\n- internal - means that backlight is handled using internal commands according\n to selected display model (with Model option). Depending on model,\n Brightness and OffBrightness options can be taken into account.\n- internalCmds - means that commands for turning on and off backlight are given\n with extra options BacklightOnCmd and BacklightOffCmd, which would be treated\n as catch up (last resort) for other types of displays which have similar features.\n#\nYou can provide multiple occurences of this option to use more than one method.\nDefault is model specific: Winstar OLED and PT6314 VFD enables internal backlight mode,\nfor others it is set to none.", KEY_META, "gen/enum/type", "HD44780Backlight", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/backlightcmdoff", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{4}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "4 bytes can be encoded, as integer number in big-endian order (0x0000-0xFFFF)", KEY_META, "default", "0x1234", KEY_META, "description", "Commands for disabling internal backlight for use with Backlight=internalCmds.\nUp to 4 bytes can be encoded, as integer number in big-endian order.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/backlightcmdon", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{4}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "4 bytes can be encoded, as integer number in big-endian order (0x0000-0xFFFF)", KEY_META, "default", "0x1223", KEY_META, "description", "Commands for enabling internal backlight for use with Backlight=internalCmds.\nUp to 4 bytes can be encoded, as integer number in big-endian order.\n#\nNOTE: this is advanced option, if command contains bits other than only brighness handling,\nthey must be set accordingly to not disrupt display state. If for example \'FUNCTION SET\' command\nis used for this purpose, bits of interface length (4-bit / 8-bit) must be set according to\nselected ConnectionType.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "800", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/charmap", KEY_META, "check/enum", "#7", KEY_META, "check/enum/#0", "hd44780_default", KEY_META, "check/enum/#1", "hd44780_euro", KEY_META, "check/enum/#2", "ea_ks0073", KEY_META, "check/enum/#3", "sed1278f_0b", KEY_META, "check/enum/#4", "hd44780_koi8_r", KEY_META, "check/enum/#5", "hd44780_cp1251", KEY_META, "check/enum/#6", "hd44780_8859_5", KEY_META, "check/enum/#7", "upd16314", KEY_META, "check/type", "enum", KEY_META, "default", "hd44780_default", KEY_META, "description", "Character map to to map ISO-8859-1 to the LCD\'s character set. (hd44780_koi8_r, hd44780_cp1251, hd44780_8859_5, upd16314 and weh001602a_1\nare possible if compiled with additional charmaps)", KEY_META, "gen/enum/type", "HD44780Charmap", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/connectiontype", KEY_META, "check/enum", "#_27", KEY_META, "check/enum/#0", "4bit", KEY_META, "check/enum/#1", "8bit", KEY_META, "check/enum/#2", "winamp", KEY_META, "check/enum/#3", "lcm162", KEY_META, "check/enum/#4", "serialLpt", KEY_META, "check/enum/#5", "picanlcd", KEY_META, "check/enum/#6", "lcdserializer", KEY_META, "check/enum/#7", "los-panel", KEY_META, "check/enum/#8", "vdr-lcd", KEY_META, "check/enum/#9", "vdr-wakeup", KEY_META, "check/enum/#_10", "ezio", KEY_META, "check/enum/#_11", "pertelian", KEY_META, "check/enum/#_12", "lis2", KEY_META, "check/enum/#_13", "mplay", KEY_META, "check/enum/#_14", "usblcd", KEY_META, "check/enum/#_15", "bwctusb", KEY_META, "check/enum/#_16", "lcd2usb", KEY_META, "check/enum/#_17", "usbtiny", KEY_META, "check/enum/#_18", "uss720", KEY_META, "check/enum/#_19", "USB-4-all", KEY_META, "check/enum/#_20", "ftdi", KEY_META, "check/enum/#_21", "i2c", KEY_META, "check/enum/#_22", "piplate", KEY_META, "check/enum/#_23", "spi", KEY_META, "check/enum/#_24", "pifacecad", KEY_META, "check/enum/#_25", "ethlcd", KEY_META, "check/enum/#_26", "raspberrypi", KEY_META, "check/enum/#_27", "gpio", KEY_META, "check/type", "enum", KEY_META, "default", "4bit", KEY_META, "description", "Select what type of connection. See documentation for available types:\n https://github.com/lcdproc/lcdproc/blob/master/docs/lcdproc-user/drivers/hd44780.docbook", KEY_META, "gen/enum/type", "HD44780ConnectionType", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "800", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/delaybus", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "You can reduce the inserted delays by setting this to false.\nOn fast PCs it is possible your LCD does not respond correctly.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/delaymult", KEY_META, "check/range", "1, 2, 4, 8, 16", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1", KEY_META, "description", "If your display is slow and cannot keep up with the flow of data from\nLCDd, garbage can appear on the LCDd. Set this delay factor to 2 or 4\nto increase the delays.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Device of the serial, I2C, or SPI interface", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/extendedmode", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If you have an HD66712, a KS0073 or another controller with \'extended mode\',\nset this flag to get into 4-line mode. On displays with just two lines, do\nnot set this flag.\nAs an additional restriction, controllers with and without extended mode\nAND 4 lines cannot be mixed for those connection types that support more\nthan one display!\nNOTE: This option is deprecated in favour of choosing Model=extended option.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/file", KEY_META, "default", "hd44780", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/fontbank", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "0", KEY_META, "check/enum/#1", "1", KEY_META, "check/enum/#2", "2", KEY_META, "check/enum/#3", "3", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Font bank to be used for some displays such as the WINSTAR WEH001602A\n0: English/Japanese (default)\n1: Western Europe I\n2: English/Rusian\n3: Western Europe II", KEY_META, "gen/enum/type", "HD44780Fontbank", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/keepalivedisplay", KEY_META, "check/range", "0-10", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Some displays (e.g. vdr-wakeup) need a message from the driver to that it\nis still alive. When set to a value bigger then null the character in the\nupper left corner is updated every seconds.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/keymatrix_4_1", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "If you have a keypad you can assign keystrings to the keys. See\ndocumentation for used terms and how to wire it. For example to give directly connected\nkey 4 the string \'Enter\', use:\n KeyDirect_4=Enter For matrix keys use the\nX and Y coordinates of the key: \n KeyMatrix_1_3=Enter", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/keymatrix_4_2", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "If you have a keypad you can assign keystrings to the keys. See\ndocumentation for used terms and how to wire it. For example to give directly connected\nkey 4 the string \'Enter\', use:\n KeyDirect_4=Enter For matrix keys use the\nX and Y coordinates of the key: \n KeyMatrix_1_3=Enter", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/keymatrix_4_3", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "If you have a keypad you can assign keystrings to the keys. See\ndocumentation for used terms and how to wire it. For example to give directly connected\nkey 4 the string \'Enter\', use:\n KeyDirect_4=Enter For matrix keys use the\nX and Y coordinates of the key: \n KeyMatrix_1_3=Enter", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/keymatrix_4_4", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "If you have a keypad you can assign keystrings to the keys. See\ndocumentation for used terms and how to wire it. For example to give directly connected\nkey 4 the string \'Enter\', use:\n KeyDirect_4=Enter For matrix keys use the\nX and Y coordinates of the key: \n KeyMatrix_1_3=Enter", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/keypad", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If you have a keypad connected.\nYou may also need to configure the keypad layout further on in this file.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/lastline", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Specifies if the last line is pixel addressable (yes) or it controls an\nunderline effect (no).", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/lineaddress", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a line Address. eg. 0x20, 0x10", KEY_META, "default", "0x20", KEY_META, "description", "In extended mode, on some controllers like the ST7036 (in 3 line mode) the next line in DDRAM won`t start 0x20 higher.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/model", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "standard", KEY_META, "check/enum/#1", "extended", KEY_META, "check/enum/#2", "winstar_oled", KEY_META, "check/enum/#3", "pt6314_vfd", KEY_META, "check/type", "enum", KEY_META, "default", "standard", KEY_META, "description", "Select model if have non-standard one which require extra initialization or handling or\n just want extra features it offers.\n Available: standard (default), extended, winstar_oled, pt6314_vfd\n - standard is default, use for LCDs not mentioned below.\n - extended, hd66712, ks0073: allows use 4-line \'extended\' mode,\n same as deprecated now option ExtendedMode=yes\n - winstar_oled, weh00xxyya: changes initialization for WINSTAR\'s WEH00xxyyA displays\n and allows handling brightness\n - pt6314_vfd: allows handling brightness on PTC\'s PT6314 VFDs\n This option should be independent of connection type.", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "300", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/outputport", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If you have the additional output port (\"bargraph\") and you want to be able to control it with the lcdproc OUTPUT command", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/port", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{3}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Port must begin with \"0x\", followed by 3 Hexadezimal values, eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "I/O address of the LPT port. Usual values are: 0x278, 0x378 and 0x3BC. For I2C connections this sets the slave address (usually 0x20).", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/refreshdisplay", KEY_META, "check/range", "0-20", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "If you experience occasional garbage on your display you can use this\noption as workaround. If set to a value bigger than null it forces a\nfull screen refresh seconds.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Specifies the size of the LCD. In case of multiple combined displays, this should be the total size.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/speed", KEY_META, "check/type", "unsigned_long", KEY_META, "default", "0", KEY_META, "description", "Bitrate of the serial port (0 for interface default)", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/vspan", KEY_META, "check/type", "string", KEY_META, "check/validation", "^([1-9][0-9]*(,[1-9][0-9]*)*)\?$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Declarations must look like this: 2,2 or 2,2,1", KEY_META, "default", "", KEY_META, "description", "For multiple combined displays: how many lines does each display have.\nVspan=2,2 means both displays have 2 lines.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a icp_a106 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Icp_a106DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Device of the serial, I2C, or SPI interface", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106/#/file", KEY_META, "default", "icp_a106", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x2", KEY_META, "description", "Display dimensions", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a imon driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "ImonDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#/charmap", KEY_META, "check/enum", "#5", KEY_META, "check/enum/#0", "hd44780_euro", KEY_META, "check/enum/#1", "upd16314", KEY_META, "check/enum/#2", "hd44780_koi8_r", KEY_META, "check/enum/#3", "hd44780_cp1251", KEY_META, "check/enum/#4", "hd44780_8859_5", KEY_META, "check/enum/#5", "none", KEY_META, "check/type", "enum", KEY_META, "default", "none", KEY_META, "description", "Character map to to map ISO-8859-1 to the displays character set. (upd16314, hd44780_koi8_r,\nhd44780_cp1251, hd44780_8859_5 are possible if compiled with additional\ncharmaps)", KEY_META, "gen/enum/type", "IMonCharmap", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd0", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#/file", KEY_META, "default", "imon", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Display dimensions", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a imonlcd driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "ImonlcdDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/backlight", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Set the backlight state", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "200", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd0", KEY_META, "description", "select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/discmode", KEY_META, "check/enum", "#1", KEY_META, "check/enum/#0", "0", KEY_META, "check/enum/#1", "1", KEY_META, "check/type", "enum", KEY_META, "default", "0", KEY_META, "description", "Set the disc mode\n0 => spin the \'slim\' disc - two disc segments,\n1 => their complement spinning;", KEY_META, "gen/enum/type", "IMonLCDDiscMode", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/file", KEY_META, "default", "imonlcd", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/onexit", KEY_META, "check/range", "0-2", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1", KEY_META, "description", "Set the exit behavior\n0 means leave shutdown message,\n1 means show the big clock,\n2 means blank device", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/protocol", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "15c2:ffdc", KEY_META, "check/enum/#1", "15c2:0038", KEY_META, "check/enum/#2", "0", KEY_META, "check/enum/#3", "1", KEY_META, "check/type", "string", KEY_META, "default", "0", KEY_META, "description", "Specify which iMon protocol should be used\nChoose 0 for 15c2:ffdc device,\nChoose 1 for 15c2:0038 device", KEY_META, "gen/enum/#2/value", "0", KEY_META, "gen/enum/#3/value", "1", KEY_META, "gen/enum/type", "IMonLCDProtocol", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "96x16", KEY_META, "description", "Specify the size of the display in pixels", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a IOWarrior driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "IOWarriorDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/extendedmode", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If you have an HD66712, a KS0073 or another \'almost HD44780-compatible\',\nset this flag to get into extended mode (4-line linear).", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/file", KEY_META, "default", "IOWarrior", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/lastline", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Specifies if the last line is pixel addressable (yes) or it controls an\nunderline effect (no).", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/serialnumber", KEY_META, "check/type", "any", KEY_META, "default", "00000674", KEY_META, "description", "serial number. Must be exactly as listed by usbview (if not given, the 1st IOWarrior found gets used)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Display dimensions", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a IrMan driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "IrManDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman/#/config", KEY_META, "check/type", "string", KEY_META, "default", "/etc/irman.cfg", KEY_META, "description", "Select the configuration file to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/irman", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman/#/file", KEY_META, "default", "IrMan", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a irtrans driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "IrtransDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#/backlight", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Does the device have a backlight\?", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#/file", KEY_META, "default", "irtrans", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#/hostname", KEY_META, "check/type", "string", KEY_META, "default", "localhost", KEY_META, "description", "IRTrans device to connect to", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Specify the size of the display in pixels", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a joy driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "JoyDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/js0", KEY_META, "description", "Select the input device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/file", KEY_META, "default", "joy", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/map_axis1neg", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "set the axis map", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/map_axis1pos", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "set the axis map", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/map_axis2neg", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "set the axis map", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/map_axis2pos", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "set the axis map", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/map_button1", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "set the button map", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/map_button2", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "set the button map", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lb216", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lb216/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lb216 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Lb216DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lb216/#/brightness", KEY_META, "check/range", "0-255", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "200", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lb216/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lb216/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the input device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lb216/#/file", KEY_META, "default", "lb216", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lb216/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lb216/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lb216/#/speed", KEY_META, "check/range", "2400, 9600", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lcdm001 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Lcdm001DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#/backkey", KEY_META, "check/type", "string", KEY_META, "default", "UpKey", KEY_META, "description", "Normal Context: Back(Go to previous screen) \nMenu Context: Up/Left", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#/file", KEY_META, "default", "lcdm001", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#/forwardkey", KEY_META, "check/type", "string", KEY_META, "default", "DownKey", KEY_META, "description", "Normal Context: Forward(Go to next screen) \nMenu Context: Down/Right", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#/mainmenukey", KEY_META, "check/type", "string", KEY_META, "default", "RightKey", KEY_META, "description", "Normal Context: Open main menu \nMenu Context: Exit/Cancel", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#/pausekey", KEY_META, "check/type", "string", KEY_META, "default", "LeftKey", KEY_META, "description", "Normal Context: Pause/Continue \nMenu Context: Enter/select", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lcterm driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "LctermDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm/#/file", KEY_META, "default", "lcterm", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Specify the size of the display in pixels", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a linux_input driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Linux_inputDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/input/event0", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input/#/file", KEY_META, "default", "linux_input", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input/#/key/_", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "specify a non-default key map, eg.: \n/linux_input/key/#01 = 1\n/linux_input/key/#28 = Enter", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lirc driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "LircDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc/#/file", KEY_META, "default", "lirc", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc/#/lircrc", KEY_META, "check/type", "string", KEY_META, "default", "~/.lircrc", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc/#/prog", KEY_META, "check/type", "string", KEY_META, "default", "lcdd", KEY_META, "description", "Must be the same as in your lircrc", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lis driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "LisDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness\n0-250 = 25%, 251-500 = 50%, 501-750 = 75%, 751-1000 = 100%", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/file", KEY_META, "default", "lis", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/lastline", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Specifies if the last line is pixel addressable (yes) or it only controls an\nunderline effect (no)", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/productid", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{4})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size ProductID: 0x0000-0xFFFF is allowed", KEY_META, "default", "0x6001", KEY_META, "description", "USB Product ID. Change only if testing a compatible device.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Columns by lines", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/vendorid", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{4})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size VendorID: 0x0000-0xFFFF is allowed", KEY_META, "default", "0x0403", KEY_META, "description", "USB Vendor ID. Change only if testing a compatible device.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a MD8800 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "MD8800DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800/#/file", KEY_META, "default", "MD8800", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a mdm166a driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Mdm166aDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#/clock", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "no", KEY_META, "check/enum/#1", "small", KEY_META, "check/enum/#2", "big", KEY_META, "check/type", "enum", KEY_META, "default", "no", KEY_META, "description", "Show self-running clock after LCDd shutdown", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#/dimming", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Dim display, no dimming gives full brightness", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#/file", KEY_META, "default", "mdm166a", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#/offdimming", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Dim display in case LCDd is inactive", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/menu/downkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/menu/enterkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/menu/leftkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/menu/menukey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/menu/permissivegoto", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If true the server allows transitions between different client`s menus", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/menu/rightkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/menu/upkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a ms6931 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Ms6931DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931/#/file", KEY_META, "default", "ms6931", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtc_s16209x", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtc_s16209x/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a mtc_s16209x driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Mtc_s16209xDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtc_s16209x/#/brightness", KEY_META, "check/range", "0-255", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "200", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtc_s16209x/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtc_s16209x/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtc_s16209x/#/file", KEY_META, "default", "mtc_s16209x", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtc_s16209x/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtc_s16209x/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a MtxOrb driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "MtxOrbDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "480", KEY_META, "description", "Set the initial contrast\nNOTE: The driver will ignore this if the display\nis a vfd or vkd as they don\'t have this feature", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS0", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/file", KEY_META, "default", "MtxOrb", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/hasadjustablebacklight", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Some old displays do not have an adjustable backlight but only can\nswitch the backlight on/off. If you experience randomly appearing block\ncharacters, try setting this to false.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/keymap_a", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/keymap_b", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/keymap_c", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/keymap_d", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/keymap_e", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/keymap_f", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/speed", KEY_META, "check/range", "1200, 2400, 9600, 19200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "Set the communication", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/type", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "lcd lkd, vfd, vkd", KEY_META, "check/enum/#1", "lkd", KEY_META, "check/enum/#2", "vfd", KEY_META, "check/enum/#3", "vkd", KEY_META, "check/type", "enum", KEY_META, "default", "lcd", KEY_META, "description", "Set the display type", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a mx5000 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Mx5000DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/hiddev0", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000/#/file", KEY_META, "default", "mx5000", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000/#/waitafterrefresh", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "[1-9]\\d*", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "WaitAfterRefresh must be a positive number", KEY_META, "default", "1000", KEY_META, "description", "Time to wait in ms after the refresh screen has been sent", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a NoritakeVFD driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "NoritakeVFDDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "device where the VFD is. Usual values are /dev/ttyS0 and /dev/ttyS1", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/file", KEY_META, "default", "NoritakeVFD", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/parity", KEY_META, "check/range", "0-2", KEY_META, "check/type", "unsigned_long", KEY_META, "default", "0", KEY_META, "description", "Set serial data parity\nMeaning: 0(=none), 1(=odd), 2(=even)", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/speed", KEY_META, "check/range", "1200, 2400, 9600, 19200, 115200", KEY_META, "check/type", "unsigned_long", KEY_META, "default", "19200", KEY_META, "description", "set the serial port speed", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/olimex_mod_lcd1x9", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/olimex_mod_lcd1x9/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a Olimex_MOD_LCD1x9 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Olimex_MOD_LCD1x9DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/olimex_mod_lcd1x9/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/olimex_mod_lcd1x9/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/olimex_mod_lcd1x9/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/i2c-0", KEY_META, "description", "device file of the i2c controller", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/olimex_mod_lcd1x9/#/file", KEY_META, "default", "Olimex_MOD_LCD1x9", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/olimex_mod_lcd1x9/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/olimex_mod_lcd1x9/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a picolcd driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "PicolcdDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/backlight", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Sets the initial state of the backlight upon start-up.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness [default: 1000; legal: 0 - 1000]. Works only\nwith the 20x4 device", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/file", KEY_META, "default", "picolcd", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/key0light", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/key1light", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/key2light", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/key3light", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/key4light", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/key5light", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/keylights", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Light the keys\?", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/keyrepeatdelay", KEY_META, "check/range", "0-3000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "300", KEY_META, "description", "Key auto repeat is only available if the picoLCD driver is built with\nlibusb-1.0. Use KeyRepeatDelay and KeyRepeatInterval to configure key auto\nrepeat.\n#\nKey auto repeat delay (time in ms from first key report to first repeat). Use\nzero to disable auto repeat.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/keyrepeatinterval", KEY_META, "check/range", "0-3000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "200", KEY_META, "description", "Key auto repeat interval (time in ms between repeat reports). Only used if\nKeyRepeatDelay is not zero.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/keytimeout", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "KeyTimeout is only used if the picoLCD driver is built with libusb-0.1. When\nbuilt with libusb-1.0 key and IR data is input asynchronously so there is no\nneed to wait for the USB data.\nKeyTimeout is the time in ms that LCDd spends waiting for a key press before\ncycling through other duties. Higher values make LCDd use less CPU time and\nmake key presses more detectable. Lower values make LCDd more responsive\nbut a little prone to missing key presses. 500 (.5 second) is the default\nand a balanced value.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/linklights", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Link the key lights to the backlight\?", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/lircflushthreshold", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "[1-9]\\d{3,}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "LircFlushThreshold must be a positive number >1000", KEY_META, "default", "1000", KEY_META, "description", "Threshold in microseconds of the gap that triggers flushing the IR data\nto lirc [default: 8000; legal: 1000 - ]\nIf LircTime_us is on values greater than 32.767ms will disable the flush\nIf LircTime_us is off values greater than 1.999938s will disable the flush", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/lirchost", KEY_META, "check/type", "string", KEY_META, "default", "127.0.0.1", KEY_META, "description", "Host name or IP address of the LIRC instance that is to receive IR codes If not set, or set to an empty value, IR support is disabled.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/lircport", KEY_META, "default", "8765", KEY_META, "description", "UDP port on which LIRC is listening", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/lirctime_us", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "UDP data time unit for LIRC\nOn: times sent in microseconds (requires LIRC UDP driver that accepts this).\nOff: times sent in \'jiffies\' (1/16384s) (supported by standard LIRC UDP driver).", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the brightness while the backlight is \'off\'.\nWorks only with the 20x4 device.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/pyramid", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/pyramid/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a pyramid driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "PyramidDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/pyramid/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/pyramid/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/pyramid/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "device to connect to", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/pyramid/#/file", KEY_META, "default", "pyramid", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/pyramid/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/pyramid/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a rawserial driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "RawserialDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/cuaU0", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/file", KEY_META, "default", "rawserial", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "40x4", KEY_META, "description", "Specifies the size of the LCD. If this driver is loaded as a secondary driver\nit always adopts to the size of the primary driver. If loaded as the only\n(or primary) driver, the size can be set.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/speed", KEY_META, "check/type", "unsigned_long", KEY_META, "default", "9600", KEY_META, "description", "Serial port baudrate [default: 9600]", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/updaterate", KEY_META, "check/type", "float", KEY_META, "default", "1", KEY_META, "description", "How often to dump the LCD contents out the port, in Hertz (times per second)\n1 = once per second, 4 is 4 times per second, 0.1 is once every 10 seconds.\n[default: 1; legal: 0.0005 - 10]", KEY_META, "type", "float", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a sed1330 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Sed1330DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/cellsize", KEY_META, "check/type", "string", KEY_META, "check/validation", "[6-8]x([1-9][0-6]|[1-9])", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Width x Height of a character cell in pixels [legal: 6x7 - 8x16]", KEY_META, "default", "6x10", KEY_META, "description", "Width x Height of a character cell in pixels", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/connectiontype", KEY_META, "check/enum", "#1", KEY_META, "check/enum/#0", "classic", KEY_META, "check/enum/#1", "bitshaker", KEY_META, "check/type", "enum", KEY_META, "default", "classic", KEY_META, "description", "Select what type of connection", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/file", KEY_META, "default", "sed1330", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/port", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{3})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "Port where the LPT is. Common values are 0x278, 0x378 and 0x3BC", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/type", KEY_META, "check/enum", "#5", KEY_META, "check/enum/#0", "G321D", KEY_META, "check/enum/#1", "G121C", KEY_META, "check/enum/#2", "G242C", KEY_META, "check/enum/#3", "G191D", KEY_META, "check/enum/#4", "G2446", KEY_META, "check/enum/#5", "SP14Q002", KEY_META, "check/type", "enum", KEY_META, "default", "G321D", KEY_META, "description", "Type of LCD module.\nNote: Currently only tested with G321D & SP14Q002.", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a sed1520 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Sed1520DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/delaymult", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1", KEY_META, "description", "On fast machines it may be necessary to slow down transfer to the display.\nIf this value is set to zero, delay is disabled. Any value greater than\nzero slows down each write by one microsecond.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/file", KEY_META, "default", "sed1520", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/haveinverter", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "The original wiring used an inverter to drive the control lines. If you do\nnot use an inverter set haveInverter to no.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/interfacetype", KEY_META, "check/range", "68, 80", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "80", KEY_META, "description", "Select the interface type (wiring) for the display. Supported values are\n68 for 68-style connection (RESET level high) and 80 for 80-style connection\n(RESET level low)", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/invertedmapping", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "On some displays column data in memory is mapped to segment lines from right\nto left. This is called inverted mapping (not to be confused with\n\'haveInverter\' from above).", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/port", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{3})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "Port where the LPT is. Usual values are 0x278, 0x378 and 0x3BC", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/usehardreset", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "At least one display is reported (Everbouquet MG1203D) that requires sending\nthree times 0xFF before a reset during initialization.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a serialPOS driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SerialPOSDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/cellsize", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "5x8", KEY_META, "description", "Specifies the cell size of each character cell on the display in characters.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/custom_chars", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "^([1-9]\\d*|0)$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be any positive number including 0", KEY_META, "default", "0", KEY_META, "description", "Specifies the number of custom characters supported by the display.\nCustom characters are only used for the rendering of horizontal bars\nand vertical bars. For displays whose cell character cell widths are\nlower than the number of custom characters supported,\nthen custom characters will be used to render the horizontal bars.\nFor more information look at: https://github.com/lcdproc/lcdproc/blob/master/docs/lcdproc-user/drivers/serialPOS.docbook", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS0", KEY_META, "description", "Device to use in serial mode", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/file", KEY_META, "default", "serialPOS", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Specifies the size of the display in characters.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/speed", KEY_META, "check/range", "1200, 2400, 4800, 9600, 19200, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "communication baud rate with the display", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/type", KEY_META, "check/enum", "#5", KEY_META, "check/enum/#0", "AEDEX", KEY_META, "check/enum/#1", "CD5220", KEY_META, "check/enum/#2", "Epson", KEY_META, "check/enum/#3", "Emax", KEY_META, "check/enum/#4", "LogicControls", KEY_META, "check/enum/#5", "Ultimate", KEY_META, "check/type", "enum", KEY_META, "default", "AEDEX", KEY_META, "description", "Set the communication protocol to use with the POS display.", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a serialVFD driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SerialVFDDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness. (4 steps 0-250, 251-500, 501-750, 751-1000)", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/custom-characters", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "^([1-9]\\d*|0)$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be any positive number including 0", KEY_META, "default", "0", KEY_META, "description", "Number of Custom-Characters. default is display type dependent", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "Device to use in serial mode. Usual values are /dev/ttyS0 and /dev/ttyS1", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/file", KEY_META, "default", "serialVFD", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/iso_8859_1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "enable ISO 8859 1 compatibility", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive\n(4 steps 0-250, 251-500, 501-750, 751-1000)", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/port", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{3})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "Portaddress where the LPT is. Used in parallel mode only. Usual values are 0x278, 0x378 and 0x3BC.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/portwait", KEY_META, "check/range", "0-255", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "2", KEY_META, "description", "Set parallel port timing delay (us). Used in parallel mode only.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x2", KEY_META, "description", "Specifies the size of the VFD.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/speed", KEY_META, "check/range", "1200, 2400, 9600, 19200, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "set the serial port speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/type", KEY_META, "check/enum", "#_17", KEY_META, "check/enum/#0", "nec_fipc8367", KEY_META, "check/enum/#1", "kd_rev_2_1", KEY_META, "check/enum/#2", "noritake_vfd", KEY_META, "check/enum/#3", "futaba_vfd", KEY_META, "check/enum/#4", "iee_s03601-95b", KEY_META, "check/enum/#5", "iee_s03601-96-080", KEY_META, "check/enum/#6", "futaba_na202sd08fa", KEY_META, "check/enum/#7", "samsung_20s207da4/20s207da6", KEY_META, "check/enum/#8", "nixdorf_ba6x/vt100", KEY_META, "check/enum/#_10", "1", KEY_META, "check/enum/#_11", "2", KEY_META, "check/enum/#_12", "3", KEY_META, "check/enum/#_13", "4", KEY_META, "check/enum/#_14", "5", KEY_META, "check/enum/#_15", "6", KEY_META, "check/enum/#_16", "7", KEY_META, "check/enum/#_17", "8", KEY_META, "check/enum/#_9", "0", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Specifies the displaytype.[default: 0]\n0 NEC (FIPC8367 based) VFDs.\n1 KD Rev 2.1.\n2 Noritake VFDs (*).\n3 Futaba VFDs\n4 IEE S03601-95B\n5 IEE S03601-96-080 (*)\n6 Futaba NA202SD08FA (allmost IEE compatible)\n7 Samsung 20S207DA4 and 20S207DA6\n8 Nixdorf BA6x / VT100\n(* most should work, not tested yet.)", KEY_META, "gen/enum/type", "SerialVFDType", KEY_META, "gen/enum/value", "8", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/use_parallel", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "\'no\' if display connected serial, \'yes\' if connected parallel.\nI.e. serial by default", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/autorotate", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If set to no, LCDd will start with screen rotation disabled. This has the same effect as if the ToggleRotateKey had been pressed. Rotation will start if the ToggleRotateKey is pressed. Note that this setting does not turn off priority sorting of screens", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/backlight", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "off", KEY_META, "check/enum/#1", "on", KEY_META, "check/enum/#2", "open", KEY_META, "default", "open", KEY_META, "description", "Set master backlight setting. If set to \'open\' a client may control the backlight for its own screens (only)", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/bind", KEY_META, "check/type", "string", KEY_META, "default", "127.0.0.1", KEY_META, "description", "Tells the driver to bind to the given interface", KEY_META, "opt", "a", KEY_META, "opt/long", "address", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/driverpath", KEY_META, "check/type", "string", KEY_META, "check/validation", ".*[\\/]$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "The path has to contain a backslack (/) at the end", KEY_META, "default", "server/drivers/", KEY_META, "description", "Select the LCD size", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/drivers", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/drivers/#", KEY_META, "check/reference/restrict", "#_52", KEY_META, "check/reference/restrict/#0", "@/bayrad/#", KEY_META, "check/reference/restrict/#1", "@/cfontz/#", KEY_META, "check/reference/restrict/#2", "@/cfontzpacket/#", KEY_META, "check/reference/restrict/#3", "@/curses/#", KEY_META, "check/reference/restrict/#4", "@/cwlnx/#", KEY_META, "check/reference/restrict/#5", "@/ea65/#", KEY_META, "check/reference/restrict/#6", "@/eyeboxone/#", KEY_META, "check/reference/restrict/#7", "@/futaba/#", KEY_META, "check/reference/restrict/#8", "@/g15/#", KEY_META, "check/reference/restrict/#9", "@/glcd/#", KEY_META, "check/reference/restrict/#_10", "@/glcdlib/#", KEY_META, "check/reference/restrict/#_11", "@/glk/#", KEY_META, "check/reference/restrict/#_12", "@/hd44780/#", KEY_META, "check/reference/restrict/#_13", "@/icp_a106/#", KEY_META, "check/reference/restrict/#_14", "@/imon/#", KEY_META, "check/reference/restrict/#_15", "@/imonlcd/#", KEY_META, "check/reference/restrict/#_16", "@/iowarrior/#", KEY_META, "check/reference/restrict/#_17", "@/irman/#", KEY_META, "check/reference/restrict/#_18", "@/joy/#", KEY_META, "check/reference/restrict/#_19", "@/lb216/#", KEY_META, "check/reference/restrict/#_20", "@/lcdm001/#", KEY_META, "check/reference/restrict/#_21", "@/lcterm/#", KEY_META, "check/reference/restrict/#_22", "@/linux_input/#", KEY_META, "check/reference/restrict/#_23", "@/lirc/#", KEY_META, "check/reference/restrict/#_24", "@/lis/#", KEY_META, "check/reference/restrict/#_25", "@/md8800/#", KEY_META, "check/reference/restrict/#_26", "@/mdm166a/#", KEY_META, "check/reference/restrict/#_27", "@/ms6931/#", KEY_META, "check/reference/restrict/#_28", "@/mtc_s16209x/#", KEY_META, "check/reference/restrict/#_29", "@/mtxorb/#", KEY_META, "check/reference/restrict/#_30", "@/mx5000/#", KEY_META, "check/reference/restrict/#_31", "@/noritakevfd/#", KEY_META, "check/reference/restrict/#_32", "@/olimex_mod_lcd1x9/#", KEY_META, "check/reference/restrict/#_33", "@/picolcd/#", KEY_META, "check/reference/restrict/#_34", "@/pyramid/#", KEY_META, "check/reference/restrict/#_35", "@/rawserial/#", KEY_META, "check/reference/restrict/#_36", "@/sdeclcd/#", KEY_META, "check/reference/restrict/#_37", "@/sed1330/#", KEY_META, "check/reference/restrict/#_38", "@/sed1520/#", KEY_META, "check/reference/restrict/#_39", "@/serialpos/#", KEY_META, "check/reference/restrict/#_40", "@/serialvfd/#", KEY_META, "check/reference/restrict/#_41", "@/shuttlevfd/#", KEY_META, "check/reference/restrict/#_42", "@/sli/#", KEY_META, "check/reference/restrict/#_43", "@/stv5730/#", KEY_META, "check/reference/restrict/#_44", "@/svga/#", KEY_META, "check/reference/restrict/#_45", "@/t6963/#", KEY_META, "check/reference/restrict/#_46", "@/text/#", KEY_META, "check/reference/restrict/#_47", "@/tyan/#", KEY_META, "check/reference/restrict/#_48", "@/ula200/#", KEY_META, "check/reference/restrict/#_49", "@/vlsys_m428/#", KEY_META, "check/reference/restrict/#_50", "@/xosd/#", KEY_META, "check/reference/restrict/#_51", "@/yard2lcd/#", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "Tells the server to load a driver.\nThe given value is a reference the configuration of the driver, e.g. @/curses/#0", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/foreground", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "The server will stay in the foreground if set to yes", KEY_META, "opt", "f", KEY_META, "opt/arg", "none", KEY_META, "opt/long", "foreground", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/frameinterval", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "[1-9]\\d*", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "FrameInterval must be a positive number", KEY_META, "default", "125000", KEY_META, "description", "Sets the interval in microseconds for updating the display [default: 125000 meaning 8Hz]", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/goodbye/#", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "GoodBye message: each entry represents a display line", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/heartbeat", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "off", KEY_META, "check/enum/#1", "on", KEY_META, "check/enum/#2", "open", KEY_META, "default", "open", KEY_META, "description", "Set master heartbeat setting. If set to \'open\' a client may control the", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/hello/#", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "Hello message: each entry represents a display line", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/nextscreenkey", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/port", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "13666", KEY_META, "description", "Listen on this specified port. [default: 13666]", KEY_META, "opt", "p", KEY_META, "opt/long", "port", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/prevscreenkey", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/reportlevel", KEY_META, "check/range", "0-5", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "2", KEY_META, "description", "TSets the reporting level, defaults to warnings and errors only.", KEY_META, "opt", "r", KEY_META, "opt/long", "report-level", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/reporttosyslog", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Should we report to syslog instead of stderr\?", KEY_META, "opt", "s", KEY_META, "opt/arg", "none", KEY_META, "opt/long", "report-to-syslog", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/scrolldownkey", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/scrollupkey", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/serverscreen", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "off", KEY_META, "check/enum/#1", "on", KEY_META, "check/enum/#2", "blank", KEY_META, "default", "on", KEY_META, "description", "If yes, the the serverscreen will be rotated as a usual info screen. If no, it will be a background screen, only visible when no other screens are active. The special value \'blank\' is similar to no, but only a blank screen is displayed.", KEY_META, "opt", "i", KEY_META, "opt/long", "rotate-server-screen", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/titlespeed", KEY_META, "check/range", "0-10", KEY_META, "default", "10", KEY_META, "description", "title scrolling speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/togglerotatekey", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/user", KEY_META, "check/type", "string", KEY_META, "default", "nobody", KEY_META, "description", "set to run as. LCDd will drop its root privileges and run as this user instead. [default: nobody]", KEY_META, "opt", "u", KEY_META, "opt/long", "user", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/waittime", KEY_META, "check/type", "float", KEY_META, "default", "4", KEY_META, "description", "Sets the default time in seconds to displays a screen", KEY_META, "opt", "w", KEY_META, "opt/long", "wait-time", KEY_META, "type", "float", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a sli driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SliDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli/#/file", KEY_META, "default", "sli", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli/#/speed", KEY_META, "check/range", "1200, 2400, 9600, 19200, 38400, 57600, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/stv5730", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/stv5730/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a stv5730 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Stv5730DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/stv5730/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/stv5730/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/stv5730/#/file", KEY_META, "default", "stv5730", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/stv5730/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/stv5730/#/port", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{3})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "Port the device is connected to", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/stv5730/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a SureElec driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SureElecDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "480", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "480", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyUSB0", KEY_META, "description", "Port the device is connected to (by default first USB serial port)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#/edition", KEY_META, "check/range", "1-3", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "2", KEY_META, "description", "Edition level of the device (can be 1, 2 or 3)", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#/file", KEY_META, "default", "SureElec", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "480", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "set display size\nNote: The size can be obtained directly from device for edition 2 & 3.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a svga driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SvgaDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga/#/brightness", KEY_META, "check/range", "1-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga/#/file", KEY_META, "default", "svga", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga/#/mode", KEY_META, "check/type", "string", KEY_META, "default", "G320x240x256", KEY_META, "description", "svgalib mode to use [default: G320x240x256 ]\nlegal values are supported svgalib modes. See man7 pages for allowed values", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga/#/offbrightness", KEY_META, "check/range", "1-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a t6963 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "T6963DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/bidirectional", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Use LPT port in bi-directional mode. This should work on most LPT port and\nis required for proper timing!", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/cleargraphic", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Clear graphic memory on start-up.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/delaybus", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Insert additional delays into reads / writes.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/file", KEY_META, "default", "t6963", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/port", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([2-3][0-9A-F]{2}|400)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. legal: 0x200 - 0x400", KEY_META, "default", "0x378", KEY_META, "description", "Parallel port to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "128x64", KEY_META, "description", "set display size in pixels", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/text", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/text/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a text driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "TextDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/text/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/text/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/text/#/file", KEY_META, "default", "text", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/text/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/text/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/text/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a tyan driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "TyanDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#/file", KEY_META, "default", "tyan", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#/speed", KEY_META, "check/range", "4800, 9600", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a ula200 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Ula200DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/file", KEY_META, "default", "ula200", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/keymap_a", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/keymap_b", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/keymap_c", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/keymap_d", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/keymap_e", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/keymap_f", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Select the LCD size", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/vlsys_m428", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/vlsys_m428/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a vlsys_m428 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Vlsys_m428DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/vlsys_m428/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/vlsys_m428/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/vlsys_m428/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyUSB0", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/vlsys_m428/#/file", KEY_META, "default", "vlsys_m428", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/vlsys_m428/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/vlsys_m428/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a xosd driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "XosdDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#/Font", KEY_META, "check/type", "string", KEY_META, "default", "-*-terminus-*-r-*-*-*-320-*-*-*-*-*", KEY_META, "description", "X font to use, in XLFD format, as given by \'xfontsel\'", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#/file", KEY_META, "default", "xosd", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#/offset", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid offset declaration. Examples: 200x200", KEY_META, "default", "0x0", KEY_META, "description", "Offset in pixels from the top-left corner of the monitor [default: 0x0]", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/yard2lcd", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/yard2lcd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a yard2LCD driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Yard2LCDDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/yard2lcd/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/yard2lcd/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/yard2lcd/#/file", KEY_META, "default", "yard2LCD", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/yard2lcd/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/yard2lcd/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/yard2lcd/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), + KS_END); +; + + Key * parentKey = keyNew ("spec/sw/lcdproc/lcdd/#0/current", KEY_END); + + KeySet * specloadConf = ksNew (1, keyNew ("system/sendspec", KEY_END), KS_END); + ElektraInvokeHandle * specload = elektraInvokeOpen ("specload", specloadConf, parentKey); + + int result = elektraInvoke2Args (specload, "sendspec", spec, parentKey); + + elektraInvokeClose (specload, parentKey); + keyDel (parentKey); + ksDel (specloadConf); + ksDel (spec); + + exit (result == ELEKTRA_PLUGIN_STATUS_SUCCESS ? EXIT_SUCCESS : EXIT_FAILURE); +} + +/** + * Extracts the help message from the @p errorKey used in elektraGetOpts(). + * + * @param errorKey The same Key as passed to elektraGetOpts() as errorKey. + * @param usage If this is not NULL, it will be used instead of the default usage line. + * @param prefix If this is not NULL, it will be inserted between the usage line and the options list. + * + * @return The full help message extracted from @p errorKey, or NULL if no help message was found. + * The returned string has to be freed with elektraFree(). + */ + +/** + * Outputs the help message to stdout + * + * @param usage If this is not NULL, it will be used instead of the default usage line. + * @param prefix If this is not NULL, it will be inserted between the usage line and the options list. + */ +void printHelpMessage (const char * usage, const char * prefix) +{ + if (helpKey == NULL) + { + return; + } + + char * help = elektraGetOptsHelpMessage (helpKey, usage, prefix); + printf ("%s", help); + elektraFree (help); + keyDel (helpKey); + helpKey = NULL; +} + +// clang-format off + +// clang-format on + +// ------------------------- +// Enum conversion functions +// ------------------------- + +ELEKTRA_KEY_TO_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + + if (strcmp (string, "533") == 0) + { + *variable = C_FONTZ_PACKET_MODEL_533; + return 1; + } + if (strcmp (string, "631") == 0) + { + *variable = C_FONTZ_PACKET_MODEL_631; + return 1; + } + if (strcmp (string, "633") == 0) + { + *variable = C_FONTZ_PACKET_MODEL_633; + return 1; + } + if (strcmp (string, "635") == 0) + { + *variable = C_FONTZ_PACKET_MODEL_635; + return 1; + } + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel) +{ + switch (value) + { + case C_FONTZ_PACKET_MODEL_533: + return elektraStrDup ("533"); + case C_FONTZ_PACKET_MODEL_631: + return elektraStrDup ("631"); + case C_FONTZ_PACKET_MODEL_633: + return elektraStrDup ("633"); + case C_FONTZ_PACKET_MODEL_635: + return elektraStrDup ("635"); + } + + // should be unreachable + return ""; +} +ELEKTRA_KEY_TO_SIGNATURE (CursesColor, EnumCursesColor) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + + if (strcmp (string, "red") == 0) + { + *variable = CURSES_COLOR_RED; + return 1; + } + if (strcmp (string, "black") == 0) + { + *variable = CURSES_COLOR_BLACK; + return 1; + } + if (strcmp (string, "green") == 0) + { + *variable = CURSES_COLOR_GREEN; + return 1; + } + if (strcmp (string, "yellow") == 0) + { + *variable = CURSES_COLOR_YELLOW; + return 1; + } + if (strcmp (string, "blue") == 0) + { + *variable = CURSES_COLOR_BLUE; + return 1; + } + if (strcmp (string, "magenta") == 0) + { + *variable = CURSES_COLOR_MAGENTA; + return 1; + } + if (strcmp (string, "cyan") == 0) + { + *variable = CURSES_COLOR_CYAN; + return 1; + } + if (strcmp (string, "white") == 0) + { + *variable = CURSES_COLOR_WHITE; + return 1; + } + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (CursesColor, EnumCursesColor) +{ + switch (value) + { + case CURSES_COLOR_RED: + return elektraStrDup ("red"); + case CURSES_COLOR_BLACK: + return elektraStrDup ("black"); + case CURSES_COLOR_GREEN: + return elektraStrDup ("green"); + case CURSES_COLOR_YELLOW: + return elektraStrDup ("yellow"); + case CURSES_COLOR_BLUE: + return elektraStrDup ("blue"); + case CURSES_COLOR_MAGENTA: + return elektraStrDup ("magenta"); + case CURSES_COLOR_CYAN: + return elektraStrDup ("cyan"); + case CURSES_COLOR_WHITE: + return elektraStrDup ("white"); + } + + // should be unreachable + return ""; +} +ELEKTRA_KEY_TO_SIGNATURE (CwLnxModel, EnumCwLnxModel) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + + if (strcmp (string, "12232") == 0) + { + *variable = CW_LNX_MODEL_12232; + return 1; + } + if (strcmp (string, "12832") == 0) + { + *variable = CW_LNX_MODEL_12832; + return 1; + } + if (strcmp (string, "1602") == 0) + { + *variable = CW_LNX_MODEL_1602; + return 1; + } + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (CwLnxModel, EnumCwLnxModel) +{ + switch (value) + { + case CW_LNX_MODEL_12232: + return elektraStrDup ("12232"); + case CW_LNX_MODEL_12832: + return elektraStrDup ("12832"); + case CW_LNX_MODEL_1602: + return elektraStrDup ("1602"); + } + + // should be unreachable + return ""; +} +ELEKTRA_KEY_TO_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + + if (strcmp (string, "t6963") == 0) + { + *variable = GLCD_CONNECTION_TYPE_T6963; + return 1; + } + if (strcmp (string, "png") == 0) + { + *variable = GLCD_CONNECTION_TYPE_PNG; + return 1; + } + if (strcmp (string, "serdisplib") == 0) + { + *variable = GLCD_CONNECTION_TYPE_SERDISPLIB; + return 1; + } + if (strcmp (string, "glcd2usb") == 0) + { + *variable = GLCD_CONNECTION_TYPE_GLCD2USB; + return 1; + } + if (strcmp (string, "x11") == 0) + { + *variable = GLCD_CONNECTION_TYPE_X11; + return 1; + } + if (strcmp (string, "picolcdgfx") == 0) + { + *variable = GLCD_CONNECTION_TYPE_PICOLCDGFX; + return 1; + } + if (strcmp (string, "xyz") == 0) + { + *variable = GLCD_CONNECTION_TYPE_XYZ; + return 1; + } + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType) +{ + switch (value) + { + case GLCD_CONNECTION_TYPE_T6963: + return elektraStrDup ("t6963"); + case GLCD_CONNECTION_TYPE_PNG: + return elektraStrDup ("png"); + case GLCD_CONNECTION_TYPE_SERDISPLIB: + return elektraStrDup ("serdisplib"); + case GLCD_CONNECTION_TYPE_GLCD2USB: + return elektraStrDup ("glcd2usb"); + case GLCD_CONNECTION_TYPE_X11: + return elektraStrDup ("x11"); + case GLCD_CONNECTION_TYPE_PICOLCDGFX: + return elektraStrDup ("picolcdgfx"); + case GLCD_CONNECTION_TYPE_XYZ: + return elektraStrDup ("xyz"); + } + + // should be unreachable + return ""; +} +ELEKTRA_KEY_TO_SIGNATURE (HD44780Backlight, EnumHD44780Backlight) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + + if (strcmp (string, "none") == 0) + { + *variable = H_D44780_BACKLIGHT_NONE; + return 1; + } + if (strcmp (string, "external") == 0) + { + *variable = H_D44780_BACKLIGHT_EXTERNAL; + return 1; + } + if (strcmp (string, "internal") == 0) + { + *variable = H_D44780_BACKLIGHT_INTERNAL; + return 1; + } + if (strcmp (string, "internalCmds") == 0) + { + *variable = H_D44780_BACKLIGHT_INTERNAL_CMDS; + return 1; + } + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (HD44780Backlight, EnumHD44780Backlight) +{ + switch (value) + { + case H_D44780_BACKLIGHT_NONE: + return elektraStrDup ("none"); + case H_D44780_BACKLIGHT_EXTERNAL: + return elektraStrDup ("external"); + case H_D44780_BACKLIGHT_INTERNAL: + return elektraStrDup ("internal"); + case H_D44780_BACKLIGHT_INTERNAL_CMDS: + return elektraStrDup ("internalCmds"); + } + + // should be unreachable + return ""; +} +ELEKTRA_KEY_TO_SIGNATURE (HD44780Charmap, EnumHD44780Charmap) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + + if (strcmp (string, "hd44780_default") == 0) + { + *variable = H_D44780_CHARMAP_HD44780_DEFAULT; + return 1; + } + if (strcmp (string, "hd44780_euro") == 0) + { + *variable = H_D44780_CHARMAP_HD44780_EURO; + return 1; + } + if (strcmp (string, "ea_ks0073") == 0) + { + *variable = H_D44780_CHARMAP_EA_KS0073; + return 1; + } + if (strcmp (string, "sed1278f_0b") == 0) + { + *variable = H_D44780_CHARMAP_SED1278F_0B; + return 1; + } + if (strcmp (string, "hd44780_koi8_r") == 0) + { + *variable = H_D44780_CHARMAP_HD44780_KOI8_R; + return 1; + } + if (strcmp (string, "hd44780_cp1251") == 0) + { + *variable = H_D44780_CHARMAP_HD44780_CP1251; + return 1; + } + if (strcmp (string, "hd44780_8859_5") == 0) + { + *variable = H_D44780_CHARMAP_HD44780_8859_5; + return 1; + } + if (strcmp (string, "upd16314") == 0) + { + *variable = H_D44780_CHARMAP_UPD16314; + return 1; + } + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (HD44780Charmap, EnumHD44780Charmap) +{ + switch (value) + { + case H_D44780_CHARMAP_HD44780_DEFAULT: + return elektraStrDup ("hd44780_default"); + case H_D44780_CHARMAP_HD44780_EURO: + return elektraStrDup ("hd44780_euro"); + case H_D44780_CHARMAP_EA_KS0073: + return elektraStrDup ("ea_ks0073"); + case H_D44780_CHARMAP_SED1278F_0B: + return elektraStrDup ("sed1278f_0b"); + case H_D44780_CHARMAP_HD44780_KOI8_R: + return elektraStrDup ("hd44780_koi8_r"); + case H_D44780_CHARMAP_HD44780_CP1251: + return elektraStrDup ("hd44780_cp1251"); + case H_D44780_CHARMAP_HD44780_8859_5: + return elektraStrDup ("hd44780_8859_5"); + case H_D44780_CHARMAP_UPD16314: + return elektraStrDup ("upd16314"); + } + + // should be unreachable + return ""; +} +ELEKTRA_KEY_TO_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + + if (strcmp (string, "4bit") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_4BIT; + return 1; + } + if (strcmp (string, "8bit") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_8BIT; + return 1; + } + if (strcmp (string, "winamp") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_WINAMP; + return 1; + } + if (strcmp (string, "lcm162") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_LCM162; + return 1; + } + if (strcmp (string, "serialLpt") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_SERIAL_LPT; + return 1; + } + if (strcmp (string, "picanlcd") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_PICANLCD; + return 1; + } + if (strcmp (string, "lcdserializer") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_LCDSERIALIZER; + return 1; + } + if (strcmp (string, "los-panel") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_LOS_PANEL; + return 1; + } + if (strcmp (string, "vdr-lcd") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_VDR_LCD; + return 1; + } + if (strcmp (string, "vdr-wakeup") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_VDR_WAKEUP; + return 1; + } + if (strcmp (string, "ezio") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_EZIO; + return 1; + } + if (strcmp (string, "pertelian") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_PERTELIAN; + return 1; + } + if (strcmp (string, "lis2") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_LIS2; + return 1; + } + if (strcmp (string, "mplay") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_MPLAY; + return 1; + } + if (strcmp (string, "usblcd") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_USBLCD; + return 1; + } + if (strcmp (string, "bwctusb") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_BWCTUSB; + return 1; + } + if (strcmp (string, "lcd2usb") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_LCD2USB; + return 1; + } + if (strcmp (string, "usbtiny") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_USBTINY; + return 1; + } + if (strcmp (string, "uss720") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_USS720; + return 1; + } + if (strcmp (string, "USB-4-all") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_U_S_B_4_ALL; + return 1; + } + if (strcmp (string, "ftdi") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_FTDI; + return 1; + } + if (strcmp (string, "i2c") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_I2C; + return 1; + } + if (strcmp (string, "piplate") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_PIPLATE; + return 1; + } + if (strcmp (string, "spi") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_SPI; + return 1; + } + if (strcmp (string, "pifacecad") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_PIFACECAD; + return 1; + } + if (strcmp (string, "ethlcd") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_ETHLCD; + return 1; + } + if (strcmp (string, "raspberrypi") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_RASPBERRYPI; + return 1; + } + if (strcmp (string, "gpio") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_GPIO; + return 1; + } + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType) +{ + switch (value) + { + case H_D44780_CONNECTION_TYPE_4BIT: + return elektraStrDup ("4bit"); + case H_D44780_CONNECTION_TYPE_8BIT: + return elektraStrDup ("8bit"); + case H_D44780_CONNECTION_TYPE_WINAMP: + return elektraStrDup ("winamp"); + case H_D44780_CONNECTION_TYPE_LCM162: + return elektraStrDup ("lcm162"); + case H_D44780_CONNECTION_TYPE_SERIAL_LPT: + return elektraStrDup ("serialLpt"); + case H_D44780_CONNECTION_TYPE_PICANLCD: + return elektraStrDup ("picanlcd"); + case H_D44780_CONNECTION_TYPE_LCDSERIALIZER: + return elektraStrDup ("lcdserializer"); + case H_D44780_CONNECTION_TYPE_LOS_PANEL: + return elektraStrDup ("los-panel"); + case H_D44780_CONNECTION_TYPE_VDR_LCD: + return elektraStrDup ("vdr-lcd"); + case H_D44780_CONNECTION_TYPE_VDR_WAKEUP: + return elektraStrDup ("vdr-wakeup"); + case H_D44780_CONNECTION_TYPE_EZIO: + return elektraStrDup ("ezio"); + case H_D44780_CONNECTION_TYPE_PERTELIAN: + return elektraStrDup ("pertelian"); + case H_D44780_CONNECTION_TYPE_LIS2: + return elektraStrDup ("lis2"); + case H_D44780_CONNECTION_TYPE_MPLAY: + return elektraStrDup ("mplay"); + case H_D44780_CONNECTION_TYPE_USBLCD: + return elektraStrDup ("usblcd"); + case H_D44780_CONNECTION_TYPE_BWCTUSB: + return elektraStrDup ("bwctusb"); + case H_D44780_CONNECTION_TYPE_LCD2USB: + return elektraStrDup ("lcd2usb"); + case H_D44780_CONNECTION_TYPE_USBTINY: + return elektraStrDup ("usbtiny"); + case H_D44780_CONNECTION_TYPE_USS720: + return elektraStrDup ("uss720"); + case H_D44780_CONNECTION_TYPE_U_S_B_4_ALL: + return elektraStrDup ("USB-4-all"); + case H_D44780_CONNECTION_TYPE_FTDI: + return elektraStrDup ("ftdi"); + case H_D44780_CONNECTION_TYPE_I2C: + return elektraStrDup ("i2c"); + case H_D44780_CONNECTION_TYPE_PIPLATE: + return elektraStrDup ("piplate"); + case H_D44780_CONNECTION_TYPE_SPI: + return elektraStrDup ("spi"); + case H_D44780_CONNECTION_TYPE_PIFACECAD: + return elektraStrDup ("pifacecad"); + case H_D44780_CONNECTION_TYPE_ETHLCD: + return elektraStrDup ("ethlcd"); + case H_D44780_CONNECTION_TYPE_RASPBERRYPI: + return elektraStrDup ("raspberrypi"); + case H_D44780_CONNECTION_TYPE_GPIO: + return elektraStrDup ("gpio"); + } + + // should be unreachable + return ""; +} +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + switch (string[0]) +{ +case 'e': +*variable = ELEKTRA_ENUM_HD44780_MODEL_EXTENDED; +return 1; +case 'p': +*variable = ELEKTRA_ENUM_HD44780_MODEL_PT6314_VFD; +return 1; +case 's': +*variable = ELEKTRA_ENUM_HD44780_MODEL_STANDARD; +return 1; +case 'w': +*variable = ELEKTRA_ENUM_HD44780_MODEL_WINSTAR_OLED; +return 1; +} + + + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model) +{ + switch (value) + { + case ELEKTRA_ENUM_HD44780_MODEL_STANDARD: + return elektraStrDup ("standard"); + case ELEKTRA_ENUM_HD44780_MODEL_EXTENDED: + return elektraStrDup ("extended"); + case ELEKTRA_ENUM_HD44780_MODEL_WINSTAR_OLED: + return elektraStrDup ("winstar_oled"); + case ELEKTRA_ENUM_HD44780_MODEL_PT6314_VFD: + return elektraStrDup ("pt6314_vfd"); + } + + // should be unreachable + return ""; +} +ELEKTRA_KEY_TO_SIGNATURE (IMonCharmap, EnumIMonCharmap) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + + if (strcmp (string, "hd44780_euro") == 0) + { + *variable = I_MON_CHARMAP_HD44780_EURO; + return 1; + } + if (strcmp (string, "upd16314") == 0) + { + *variable = I_MON_CHARMAP_UPD16314; + return 1; + } + if (strcmp (string, "hd44780_koi8_r") == 0) + { + *variable = I_MON_CHARMAP_HD44780_KOI8_R; + return 1; + } + if (strcmp (string, "hd44780_cp1251") == 0) + { + *variable = I_MON_CHARMAP_HD44780_CP1251; + return 1; + } + if (strcmp (string, "hd44780_8859_5") == 0) + { + *variable = I_MON_CHARMAP_HD44780_8859_5; + return 1; + } + if (strcmp (string, "none") == 0) + { + *variable = I_MON_CHARMAP_NONE; + return 1; + } + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (IMonCharmap, EnumIMonCharmap) +{ + switch (value) + { + case I_MON_CHARMAP_HD44780_EURO: + return elektraStrDup ("hd44780_euro"); + case I_MON_CHARMAP_UPD16314: + return elektraStrDup ("upd16314"); + case I_MON_CHARMAP_HD44780_KOI8_R: + return elektraStrDup ("hd44780_koi8_r"); + case I_MON_CHARMAP_HD44780_CP1251: + return elektraStrDup ("hd44780_cp1251"); + case I_MON_CHARMAP_HD44780_8859_5: + return elektraStrDup ("hd44780_8859_5"); + case I_MON_CHARMAP_NONE: + return elektraStrDup ("none"); + } + + // should be unreachable + return ""; +} +ELEKTRA_KEY_TO_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + switch (string[0]) +{ +case '0': +*variable = I_MON_L_C_D_DISC_MODE_0; +return 1; +case '1': +*variable = I_MON_L_C_D_DISC_MODE_1; +return 1; +} + + + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode) +{ + switch (value) + { + case I_MON_L_C_D_DISC_MODE_0: + return elektraStrDup ("0"); + case I_MON_L_C_D_DISC_MODE_1: + return elektraStrDup ("1"); + } + + // should be unreachable + return ""; +} +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + switch (string[0]) +{ +case 'b': +*variable = ELEKTRA_ENUM_MDM166A_CLOCK_BIG; +return 1; +case 'n': +*variable = ELEKTRA_ENUM_MDM166A_CLOCK_NO; +return 1; +case 's': +*variable = ELEKTRA_ENUM_MDM166A_CLOCK_SMALL; +return 1; +} + + + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock) +{ + switch (value) + { + case ELEKTRA_ENUM_MDM166A_CLOCK_NO: + return elektraStrDup ("no"); + case ELEKTRA_ENUM_MDM166A_CLOCK_SMALL: + return elektraStrDup ("small"); + case ELEKTRA_ENUM_MDM166A_CLOCK_BIG: + return elektraStrDup ("big"); + } + + // should be unreachable + return ""; +} +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + + if (strcmp (string, "lcd lkd, vfd, vkd") == 0) + { + *variable = ELEKTRA_ENUM_MTXORB_TYPE_LCD_LKD__VFD__VKD; + return 1; + } + if (strcmp (string, "lkd") == 0) + { + *variable = ELEKTRA_ENUM_MTXORB_TYPE_LKD; + return 1; + } + if (strcmp (string, "vfd") == 0) + { + *variable = ELEKTRA_ENUM_MTXORB_TYPE_VFD; + return 1; + } + if (strcmp (string, "vkd") == 0) + { + *variable = ELEKTRA_ENUM_MTXORB_TYPE_VKD; + return 1; + } + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType) +{ + switch (value) + { + case ELEKTRA_ENUM_MTXORB_TYPE_LCD_LKD__VFD__VKD: + return elektraStrDup ("lcd lkd, vfd, vkd"); + case ELEKTRA_ENUM_MTXORB_TYPE_LKD: + return elektraStrDup ("lkd"); + case ELEKTRA_ENUM_MTXORB_TYPE_VFD: + return elektraStrDup ("vfd"); + case ELEKTRA_ENUM_MTXORB_TYPE_VKD: + return elektraStrDup ("vkd"); + } + + // should be unreachable + return ""; +} +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + switch (string[0]) +{ +case 'b': +*variable = ELEKTRA_ENUM_SED1330_CONNECTIONTYPE_BITSHAKER; +return 1; +case 'c': +*variable = ELEKTRA_ENUM_SED1330_CONNECTIONTYPE_CLASSIC; +return 1; +} + + + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype) +{ + switch (value) + { + case ELEKTRA_ENUM_SED1330_CONNECTIONTYPE_CLASSIC: + return elektraStrDup ("classic"); + case ELEKTRA_ENUM_SED1330_CONNECTIONTYPE_BITSHAKER: + return elektraStrDup ("bitshaker"); + } + + // should be unreachable + return ""; +} +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + + if (strcmp (string, "G321D") == 0) + { + *variable = ELEKTRA_ENUM_SED1330_TYPE_G321_D; + return 1; + } + if (strcmp (string, "G121C") == 0) + { + *variable = ELEKTRA_ENUM_SED1330_TYPE_G121_C; + return 1; + } + if (strcmp (string, "G242C") == 0) + { + *variable = ELEKTRA_ENUM_SED1330_TYPE_G242_C; + return 1; + } + if (strcmp (string, "G191D") == 0) + { + *variable = ELEKTRA_ENUM_SED1330_TYPE_G191_D; + return 1; + } + if (strcmp (string, "G2446") == 0) + { + *variable = ELEKTRA_ENUM_SED1330_TYPE_G2446; + return 1; + } + if (strcmp (string, "SP14Q002") == 0) + { + *variable = ELEKTRA_ENUM_SED1330_TYPE_S_P14_Q002; + return 1; + } + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type) +{ + switch (value) + { + case ELEKTRA_ENUM_SED1330_TYPE_G321_D: + return elektraStrDup ("G321D"); + case ELEKTRA_ENUM_SED1330_TYPE_G121_C: + return elektraStrDup ("G121C"); + case ELEKTRA_ENUM_SED1330_TYPE_G242_C: + return elektraStrDup ("G242C"); + case ELEKTRA_ENUM_SED1330_TYPE_G191_D: + return elektraStrDup ("G191D"); + case ELEKTRA_ENUM_SED1330_TYPE_G2446: + return elektraStrDup ("G2446"); + case ELEKTRA_ENUM_SED1330_TYPE_S_P14_Q002: + return elektraStrDup ("SP14Q002"); + } + + // should be unreachable + return ""; +} +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + + if (strcmp (string, "AEDEX") == 0) + { + *variable = ELEKTRA_ENUM_SERIALPOS_TYPE_A_E_D_E_X; + return 1; + } + if (strcmp (string, "CD5220") == 0) + { + *variable = ELEKTRA_ENUM_SERIALPOS_TYPE_C_D5220; + return 1; + } + if (strcmp (string, "Epson") == 0) + { + *variable = ELEKTRA_ENUM_SERIALPOS_TYPE_EPSON; + return 1; + } + if (strcmp (string, "Emax") == 0) + { + *variable = ELEKTRA_ENUM_SERIALPOS_TYPE_EMAX; + return 1; + } + if (strcmp (string, "LogicControls") == 0) + { + *variable = ELEKTRA_ENUM_SERIALPOS_TYPE_LOGIC_CONTROLS; + return 1; + } + if (strcmp (string, "Ultimate") == 0) + { + *variable = ELEKTRA_ENUM_SERIALPOS_TYPE_ULTIMATE; + return 1; + } + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType) +{ + switch (value) + { + case ELEKTRA_ENUM_SERIALPOS_TYPE_A_E_D_E_X: + return elektraStrDup ("AEDEX"); + case ELEKTRA_ENUM_SERIALPOS_TYPE_C_D5220: + return elektraStrDup ("CD5220"); + case ELEKTRA_ENUM_SERIALPOS_TYPE_EPSON: + return elektraStrDup ("Epson"); + case ELEKTRA_ENUM_SERIALPOS_TYPE_EMAX: + return elektraStrDup ("Emax"); + case ELEKTRA_ENUM_SERIALPOS_TYPE_LOGIC_CONTROLS: + return elektraStrDup ("LogicControls"); + case ELEKTRA_ENUM_SERIALPOS_TYPE_ULTIMATE: + return elektraStrDup ("Ultimate"); + } + + // should be unreachable + return ""; +} +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + + if (strcmp (string, "off") == 0) + { + *variable = ELEKTRA_ENUM_SERVER_BACKLIGHT_OFF; + return 1; + } + if (strcmp (string, "on") == 0) + { + *variable = ELEKTRA_ENUM_SERVER_BACKLIGHT_ON; + return 1; + } + if (strcmp (string, "open") == 0) + { + *variable = ELEKTRA_ENUM_SERVER_BACKLIGHT_OPEN; + return 1; + } + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight) +{ + switch (value) + { + case ELEKTRA_ENUM_SERVER_BACKLIGHT_OFF: + return elektraStrDup ("off"); + case ELEKTRA_ENUM_SERVER_BACKLIGHT_ON: + return elektraStrDup ("on"); + case ELEKTRA_ENUM_SERVER_BACKLIGHT_OPEN: + return elektraStrDup ("open"); + } + + // should be unreachable + return ""; +} +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + + if (strcmp (string, "off") == 0) + { + *variable = ELEKTRA_ENUM_SERVER_HEARTBEAT_OFF; + return 1; + } + if (strcmp (string, "on") == 0) + { + *variable = ELEKTRA_ENUM_SERVER_HEARTBEAT_ON; + return 1; + } + if (strcmp (string, "open") == 0) + { + *variable = ELEKTRA_ENUM_SERVER_HEARTBEAT_OPEN; + return 1; + } + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat) +{ + switch (value) + { + case ELEKTRA_ENUM_SERVER_HEARTBEAT_OFF: + return elektraStrDup ("off"); + case ELEKTRA_ENUM_SERVER_HEARTBEAT_ON: + return elektraStrDup ("on"); + case ELEKTRA_ENUM_SERVER_HEARTBEAT_OPEN: + return elektraStrDup ("open"); + } + + // should be unreachable + return ""; +} +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + + if (strcmp (string, "off") == 0) + { + *variable = ELEKTRA_ENUM_SERVER_SERVERSCREEN_OFF; + return 1; + } + if (strcmp (string, "on") == 0) + { + *variable = ELEKTRA_ENUM_SERVER_SERVERSCREEN_ON; + return 1; + } + if (strcmp (string, "blank") == 0) + { + *variable = ELEKTRA_ENUM_SERVER_SERVERSCREEN_BLANK; + return 1; + } + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen) +{ + switch (value) + { + case ELEKTRA_ENUM_SERVER_SERVERSCREEN_OFF: + return elektraStrDup ("off"); + case ELEKTRA_ENUM_SERVER_SERVERSCREEN_ON: + return elektraStrDup ("on"); + case ELEKTRA_ENUM_SERVER_SERVERSCREEN_BLANK: + return elektraStrDup ("blank"); + } + + // should be unreachable + return ""; +} + +// ------------------------- +// Enum accessor functions +// ------------------------- + +ELEKTRA_GET_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel) +{ + CFontzPacketModel result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumCFontzPacketModel) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (CFontzPacketModel) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel) +{ + CFontzPacketModel result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumCFontzPacketModel) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (CFontzPacketModel) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel) +{ + char * string = ELEKTRA_TO_STRING (EnumCFontzPacketModel) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel) +{ + char * string = ELEKTRA_TO_STRING (EnumCFontzPacketModel) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} +ELEKTRA_GET_SIGNATURE (CursesColor, EnumCursesColor) +{ + CursesColor result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumCursesColor) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (CursesColor) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (CursesColor, EnumCursesColor) +{ + CursesColor result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumCursesColor) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (CursesColor) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (CursesColor, EnumCursesColor) +{ + char * string = ELEKTRA_TO_STRING (EnumCursesColor) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (CursesColor, EnumCursesColor) +{ + char * string = ELEKTRA_TO_STRING (EnumCursesColor) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} +ELEKTRA_GET_SIGNATURE (CwLnxModel, EnumCwLnxModel) +{ + CwLnxModel result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumCwLnxModel) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (CwLnxModel) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (CwLnxModel, EnumCwLnxModel) +{ + CwLnxModel result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumCwLnxModel) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (CwLnxModel) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (CwLnxModel, EnumCwLnxModel) +{ + char * string = ELEKTRA_TO_STRING (EnumCwLnxModel) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (CwLnxModel, EnumCwLnxModel) +{ + char * string = ELEKTRA_TO_STRING (EnumCwLnxModel) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} +ELEKTRA_GET_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType) +{ + GlcdConnectionType result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumGlcdConnectionType) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (GlcdConnectionType) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType) +{ + GlcdConnectionType result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumGlcdConnectionType) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (GlcdConnectionType) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType) +{ + char * string = ELEKTRA_TO_STRING (EnumGlcdConnectionType) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType) +{ + char * string = ELEKTRA_TO_STRING (EnumGlcdConnectionType) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} +ELEKTRA_GET_SIGNATURE (HD44780Backlight, EnumHD44780Backlight) +{ + HD44780Backlight result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumHD44780Backlight) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (HD44780Backlight) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (HD44780Backlight, EnumHD44780Backlight) +{ + HD44780Backlight result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumHD44780Backlight) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (HD44780Backlight) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (HD44780Backlight, EnumHD44780Backlight) +{ + char * string = ELEKTRA_TO_STRING (EnumHD44780Backlight) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (HD44780Backlight, EnumHD44780Backlight) +{ + char * string = ELEKTRA_TO_STRING (EnumHD44780Backlight) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} +ELEKTRA_GET_SIGNATURE (HD44780Charmap, EnumHD44780Charmap) +{ + HD44780Charmap result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumHD44780Charmap) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (HD44780Charmap) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (HD44780Charmap, EnumHD44780Charmap) +{ + HD44780Charmap result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumHD44780Charmap) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (HD44780Charmap) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (HD44780Charmap, EnumHD44780Charmap) +{ + char * string = ELEKTRA_TO_STRING (EnumHD44780Charmap) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (HD44780Charmap, EnumHD44780Charmap) +{ + char * string = ELEKTRA_TO_STRING (EnumHD44780Charmap) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} +ELEKTRA_GET_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType) +{ + HD44780ConnectionType result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumHD44780ConnectionType) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (HD44780ConnectionType) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType) +{ + HD44780ConnectionType result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumHD44780ConnectionType) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (HD44780ConnectionType) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType) +{ + char * string = ELEKTRA_TO_STRING (EnumHD44780ConnectionType) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType) +{ + char * string = ELEKTRA_TO_STRING (EnumHD44780ConnectionType) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} +ELEKTRA_GET_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model) +{ + ElektraEnumHd44780Model result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumHd44780Model) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumHd44780Model) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model) +{ + ElektraEnumHd44780Model result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumHd44780Model) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumHd44780Model) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model) +{ + char * string = ELEKTRA_TO_STRING (EnumHd44780Model) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model) +{ + char * string = ELEKTRA_TO_STRING (EnumHd44780Model) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} +ELEKTRA_GET_SIGNATURE (IMonCharmap, EnumIMonCharmap) +{ + IMonCharmap result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumIMonCharmap) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (IMonCharmap) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (IMonCharmap, EnumIMonCharmap) +{ + IMonCharmap result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumIMonCharmap) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (IMonCharmap) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (IMonCharmap, EnumIMonCharmap) +{ + char * string = ELEKTRA_TO_STRING (EnumIMonCharmap) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (IMonCharmap, EnumIMonCharmap) +{ + char * string = ELEKTRA_TO_STRING (EnumIMonCharmap) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} +ELEKTRA_GET_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode) +{ + IMonLCDDiscMode result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumIMonLCDDiscMode) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (IMonLCDDiscMode) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode) +{ + IMonLCDDiscMode result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumIMonLCDDiscMode) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (IMonLCDDiscMode) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode) +{ + char * string = ELEKTRA_TO_STRING (EnumIMonLCDDiscMode) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode) +{ + char * string = ELEKTRA_TO_STRING (EnumIMonLCDDiscMode) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} +ELEKTRA_GET_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock) +{ + ElektraEnumMdm166aClock result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumMdm166aClock) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumMdm166aClock) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock) +{ + ElektraEnumMdm166aClock result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumMdm166aClock) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumMdm166aClock) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock) +{ + char * string = ELEKTRA_TO_STRING (EnumMdm166aClock) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock) +{ + char * string = ELEKTRA_TO_STRING (EnumMdm166aClock) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} +ELEKTRA_GET_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType) +{ + ElektraEnumMtxorbType result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumMtxorbType) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumMtxorbType) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType) +{ + ElektraEnumMtxorbType result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumMtxorbType) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumMtxorbType) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType) +{ + char * string = ELEKTRA_TO_STRING (EnumMtxorbType) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType) +{ + char * string = ELEKTRA_TO_STRING (EnumMtxorbType) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} +ELEKTRA_GET_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype) +{ + ElektraEnumSed1330Connectiontype result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumSed1330Connectiontype) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumSed1330Connectiontype) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype) +{ + ElektraEnumSed1330Connectiontype result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumSed1330Connectiontype) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumSed1330Connectiontype) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype) +{ + char * string = ELEKTRA_TO_STRING (EnumSed1330Connectiontype) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype) +{ + char * string = ELEKTRA_TO_STRING (EnumSed1330Connectiontype) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} +ELEKTRA_GET_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type) +{ + ElektraEnumSed1330Type result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumSed1330Type) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumSed1330Type) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type) +{ + ElektraEnumSed1330Type result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumSed1330Type) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumSed1330Type) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type) +{ + char * string = ELEKTRA_TO_STRING (EnumSed1330Type) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type) +{ + char * string = ELEKTRA_TO_STRING (EnumSed1330Type) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} +ELEKTRA_GET_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType) +{ + ElektraEnumSerialposType result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumSerialposType) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumSerialposType) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType) +{ + ElektraEnumSerialposType result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumSerialposType) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumSerialposType) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType) +{ + char * string = ELEKTRA_TO_STRING (EnumSerialposType) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType) +{ + char * string = ELEKTRA_TO_STRING (EnumSerialposType) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} +ELEKTRA_GET_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight) +{ + ElektraEnumServerBacklight result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumServerBacklight) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumServerBacklight) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight) +{ + ElektraEnumServerBacklight result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumServerBacklight) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumServerBacklight) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight) +{ + char * string = ELEKTRA_TO_STRING (EnumServerBacklight) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight) +{ + char * string = ELEKTRA_TO_STRING (EnumServerBacklight) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} +ELEKTRA_GET_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat) +{ + ElektraEnumServerHeartbeat result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumServerHeartbeat) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumServerHeartbeat) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat) +{ + ElektraEnumServerHeartbeat result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumServerHeartbeat) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumServerHeartbeat) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat) +{ + char * string = ELEKTRA_TO_STRING (EnumServerHeartbeat) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat) +{ + char * string = ELEKTRA_TO_STRING (EnumServerHeartbeat) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} +ELEKTRA_GET_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen) +{ + ElektraEnumServerServerscreen result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumServerServerscreen) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumServerServerscreen) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen) +{ + ElektraEnumServerServerscreen result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumServerServerscreen) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumServerServerscreen) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen) +{ + char * string = ELEKTRA_TO_STRING (EnumServerServerscreen) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen) +{ + char * string = ELEKTRA_TO_STRING (EnumServerServerscreen) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + + +// clang-format off + +// clang-format on + +// ------------------------- +// Struct accessor functions +// ------------------------- + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (BayradDriverConfig, StructBayradDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "speed", 14); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (BayradDriverConfig, StructBayradDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "speed", 14); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const BayradDriverConfig *, StructBayradDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const BayradDriverConfig *, StructBayradDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (CFontzDriverConfig, StructCFontzDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "newfirmware", 14); + + + result->newfirmware = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 14); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (CFontzDriverConfig, StructCFontzDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "newfirmware", 14); + + + result->newfirmware = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 14); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const CFontzDriverConfig *, StructCFontzDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "newfirmware", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->newfirmware, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const CFontzDriverConfig *, StructCFontzDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "newfirmware", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->newfirmware, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (CFontzPacketDriverConfig, StructCFontzPacketDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "model", 14); + + + result->model = ELEKTRA_GET (EnumCFontzPacketModel) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "oldfirmware", 14); + + + result->oldfirmware = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 14); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "usb", 14); + + + result->usb = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (CFontzPacketDriverConfig, StructCFontzPacketDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "model", 14); + + + result->model = ELEKTRA_GET (EnumCFontzPacketModel) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "oldfirmware", 14); + + + result->oldfirmware = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 14); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "usb", 14); + + + result->usb = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const CFontzPacketDriverConfig *, StructCFontzPacketDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "model", 14); + + ELEKTRA_SET (EnumCFontzPacketModel) (elektra, field, value->model, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "oldfirmware", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->oldfirmware, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "usb", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->usb, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const CFontzPacketDriverConfig *, StructCFontzPacketDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "model", 14); + + ELEKTRA_SET (EnumCFontzPacketModel) (elektra, field, value->model, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "oldfirmware", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->oldfirmware, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "usb", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->usb, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (CursesDriverConfig, StructCursesDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "background", 14); + + + result->background = ELEKTRA_GET (EnumCursesColor) (elektra, field); + + strncpy (&field[nameLen], "backlight", 14); + + + result->backlight = ELEKTRA_GET (EnumCursesColor) (elektra, field); + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "drawborder", 14); + + + result->drawborder = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "foreground", 14); + + + result->foreground = ELEKTRA_GET (EnumCursesColor) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "topleftx", 14); + + + result->topleftx = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "toplefty", 14); + + + result->toplefty = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "useacs", 14); + + + result->useacs = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (CursesDriverConfig, StructCursesDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "background", 14); + + + result->background = ELEKTRA_GET (EnumCursesColor) (elektra, field); + + strncpy (&field[nameLen], "backlight", 14); + + + result->backlight = ELEKTRA_GET (EnumCursesColor) (elektra, field); + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "drawborder", 14); + + + result->drawborder = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "foreground", 14); + + + result->foreground = ELEKTRA_GET (EnumCursesColor) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "topleftx", 14); + + + result->topleftx = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "toplefty", 14); + + + result->toplefty = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "useacs", 14); + + + result->useacs = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const CursesDriverConfig *, StructCursesDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "background", 14); + + ELEKTRA_SET (EnumCursesColor) (elektra, field, value->background, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "backlight", 14); + + ELEKTRA_SET (EnumCursesColor) (elektra, field, value->backlight, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "drawborder", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->drawborder, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "foreground", 14); + + ELEKTRA_SET (EnumCursesColor) (elektra, field, value->foreground, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "topleftx", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->topleftx, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "toplefty", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->toplefty, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "useacs", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->useacs, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const CursesDriverConfig *, StructCursesDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "background", 14); + + ELEKTRA_SET (EnumCursesColor) (elektra, field, value->background, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "backlight", 14); + + ELEKTRA_SET (EnumCursesColor) (elektra, field, value->backlight, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "drawborder", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->drawborder, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "foreground", 14); + + ELEKTRA_SET (EnumCursesColor) (elektra, field, value->foreground, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "topleftx", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->topleftx, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "toplefty", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->toplefty, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "useacs", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->useacs, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (CwLnxDriverConfig, StructCwLnxDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 17 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 17); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 17); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 17); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 17); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_a", 17); + + + result->keymapA = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_b", 17); + + + result->keymapB = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_c", 17); + + + result->keymapC = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_d", 17); + + + result->keymapD = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_e", 17); + + + result->keymapE = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_f", 17); + + + result->keymapF = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keypad", 17); + + + result->keypad = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "keypad_test_mode", 17); + + + result->keypadTestMode = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "model", 17); + + + result->model = ELEKTRA_GET (EnumCwLnxModel) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 17); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 17); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 17); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 17); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (CwLnxDriverConfig, StructCwLnxDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 17 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 17); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 17); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 17); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 17); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_a", 17); + + + result->keymapA = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_b", 17); + + + result->keymapB = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_c", 17); + + + result->keymapC = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_d", 17); + + + result->keymapD = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_e", 17); + + + result->keymapE = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_f", 17); + + + result->keymapF = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keypad", 17); + + + result->keypad = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "keypad_test_mode", 17); + + + result->keypadTestMode = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "model", 17); + + + result->model = ELEKTRA_GET (EnumCwLnxModel) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 17); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 17); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 17); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 17); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const CwLnxDriverConfig *, StructCwLnxDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 17 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 17); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 17); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_a", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymapA, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_b", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymapB, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_c", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymapC, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_d", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymapD, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_e", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymapE, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_f", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymapF, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keypad", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->keypad, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keypad_test_mode", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->keypadTestMode, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "model", 17); + + ELEKTRA_SET (EnumCwLnxModel) (elektra, field, value->model, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 17); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const CwLnxDriverConfig *, StructCwLnxDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 17 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 17); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 17); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_a", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymapA, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_b", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymapB, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_c", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymapC, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_d", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymapD, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_e", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymapE, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_f", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymapF, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keypad", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->keypad, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keypad_test_mode", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->keypadTestMode, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "model", 17); + + ELEKTRA_SET (EnumCwLnxModel) (elektra, field, value->model, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 17); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Ea65DriverConfig, StructEa65DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Ea65DriverConfig, StructEa65DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const Ea65DriverConfig *, StructEa65DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Ea65DriverConfig *, StructEa65DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (EyeboxOneDriverConfig, StructEyeboxOneDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 17 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 17); + + + result->backlight = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "brightness", 17); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 17); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "cursor", 17); + + + result->cursor = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "device", 17); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "downkey", 17); + + + result->downkey = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "escapekey", 17); + + + result->escapekey = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 17); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keypad_test_mode", 17); + + + result->keypadTestMode = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "leftkey", 17); + + + result->leftkey = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 17); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 17); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "rightkey", 17); + + + result->rightkey = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "size", 17); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 17); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "upkey", 17); + + + result->upkey = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (EyeboxOneDriverConfig, StructEyeboxOneDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 17 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 17); + + + result->backlight = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "brightness", 17); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 17); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "cursor", 17); + + + result->cursor = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "device", 17); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "downkey", 17); + + + result->downkey = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "escapekey", 17); + + + result->escapekey = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 17); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keypad_test_mode", 17); + + + result->keypadTestMode = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "leftkey", 17); + + + result->leftkey = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 17); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 17); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "rightkey", 17); + + + result->rightkey = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "size", 17); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 17); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "upkey", 17); + + + result->upkey = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const EyeboxOneDriverConfig *, StructEyeboxOneDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 17 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "cursor", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->cursor, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 17); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "downkey", 17); + + ELEKTRA_SET (String) (elektra, field, value->downkey, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "escapekey", 17); + + ELEKTRA_SET (String) (elektra, field, value->escapekey, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 17); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keypad_test_mode", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->keypadTestMode, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "leftkey", 17); + + ELEKTRA_SET (String) (elektra, field, value->leftkey, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "rightkey", 17); + + ELEKTRA_SET (String) (elektra, field, value->rightkey, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 17); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "upkey", 17); + + ELEKTRA_SET (String) (elektra, field, value->upkey, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const EyeboxOneDriverConfig *, StructEyeboxOneDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 17 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "cursor", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->cursor, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 17); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "downkey", 17); + + ELEKTRA_SET (String) (elektra, field, value->downkey, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "escapekey", 17); + + ELEKTRA_SET (String) (elektra, field, value->escapekey, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 17); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keypad_test_mode", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->keypadTestMode, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "leftkey", 17); + + ELEKTRA_SET (String) (elektra, field, value->leftkey, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "rightkey", 17); + + ELEKTRA_SET (String) (elektra, field, value->rightkey, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 17); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "upkey", 17); + + ELEKTRA_SET (String) (elektra, field, value->upkey, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (FutabaDriverConfig, StructFutabaDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 5 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "file", 5); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (FutabaDriverConfig, StructFutabaDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 5 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "file", 5); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const FutabaDriverConfig *, StructFutabaDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 5 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "file", 5); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const FutabaDriverConfig *, StructFutabaDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 5 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "file", 5); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (G15DriverConfig, StructG15DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (G15DriverConfig, StructG15DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const G15DriverConfig *, StructG15DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const G15DriverConfig *, StructG15DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (GlcdDriverConfig, StructGlcdDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 22 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "bidirectional", 22); + + + result->bidirectional = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "brightness", 22); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "cellsize", 22); + + + result->cellsize = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "connectiontype", 22); + + + result->connectiontype = ELEKTRA_GET (EnumGlcdConnectionType) (elektra, field); + + strncpy (&field[nameLen], "contrast", 22); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "delaybus", 22); + + + result->delaybus = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "file", 22); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "fonthasicons", 22); + + + result->fonthasicons = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "keymap_a", 22); + + + result->keymapA = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_b", 22); + + + result->keymapB = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_c", 22); + + + result->keymapC = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_d", 22); + + + result->keymapD = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_e", 22); + + + result->keymapE = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_f", 22); + + + result->keymapF = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keyrepeatdelay", 22); + + + result->keyrepeatdelay = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "keyrepeatinterval", 22); + + + result->keyrepeatinterval = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "normal_font", 22); + + + result->normalFont = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 22); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "picolcdgfx_inverted", 22); + + + result->picolcdgfxInverted = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "picolcdgfx_keytimeout", 22); + + + result->picolcdgfxKeytimeout = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "port", 22); + + + result->port = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 22); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "serdisp_device", 22); + + + result->serdispDevice = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "serdisp_name", 22); + + + result->serdispName = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "serdisp_options", 22); + + + result->serdispOptions = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "size", 22); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "useft2", 22); + + + result->useft2 = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "x11_backlightcolor", 22); + + + result->x11Backlightcolor = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "x11_border", 22); + + + result->x11Border = ELEKTRA_GET (UnsignedLong) (elektra, field); + + strncpy (&field[nameLen], "x11_inverted", 22); + + + result->x11Inverted = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "x11_pixelcolor", 22); + + + result->x11Pixelcolor = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "x11_pixelsize", 22); + + + result->x11Pixelsize = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (GlcdDriverConfig, StructGlcdDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 22 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "bidirectional", 22); + + + result->bidirectional = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "brightness", 22); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "cellsize", 22); + + + result->cellsize = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "connectiontype", 22); + + + result->connectiontype = ELEKTRA_GET (EnumGlcdConnectionType) (elektra, field); + + strncpy (&field[nameLen], "contrast", 22); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "delaybus", 22); + + + result->delaybus = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "file", 22); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "fonthasicons", 22); + + + result->fonthasicons = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "keymap_a", 22); + + + result->keymapA = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_b", 22); + + + result->keymapB = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_c", 22); + + + result->keymapC = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_d", 22); + + + result->keymapD = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_e", 22); + + + result->keymapE = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_f", 22); + + + result->keymapF = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keyrepeatdelay", 22); + + + result->keyrepeatdelay = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "keyrepeatinterval", 22); + + + result->keyrepeatinterval = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "normal_font", 22); + + + result->normalFont = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 22); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "picolcdgfx_inverted", 22); + + + result->picolcdgfxInverted = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "picolcdgfx_keytimeout", 22); + + + result->picolcdgfxKeytimeout = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "port", 22); + + + result->port = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 22); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "serdisp_device", 22); + + + result->serdispDevice = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "serdisp_name", 22); + + + result->serdispName = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "serdisp_options", 22); + + + result->serdispOptions = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "size", 22); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "useft2", 22); + + + result->useft2 = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "x11_backlightcolor", 22); + + + result->x11Backlightcolor = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "x11_border", 22); + + + result->x11Border = ELEKTRA_GET (UnsignedLong) (elektra, field); + + strncpy (&field[nameLen], "x11_inverted", 22); + + + result->x11Inverted = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "x11_pixelcolor", 22); + + + result->x11Pixelcolor = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "x11_pixelsize", 22); + + + result->x11Pixelsize = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const GlcdDriverConfig *, StructGlcdDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 22 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "bidirectional", 22); + + ELEKTRA_SET (Boolean) (elektra, field, value->bidirectional, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 22); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "cellsize", 22); + + ELEKTRA_SET (String) (elektra, field, value->cellsize, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "connectiontype", 22); + + ELEKTRA_SET (EnumGlcdConnectionType) (elektra, field, value->connectiontype, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 22); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "delaybus", 22); + + ELEKTRA_SET (Boolean) (elektra, field, value->delaybus, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 22); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "fonthasicons", 22); + + ELEKTRA_SET (Boolean) (elektra, field, value->fonthasicons, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_a", 22); + + ELEKTRA_SET (String) (elektra, field, value->keymapA, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_b", 22); + + ELEKTRA_SET (String) (elektra, field, value->keymapB, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_c", 22); + + ELEKTRA_SET (String) (elektra, field, value->keymapC, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_d", 22); + + ELEKTRA_SET (String) (elektra, field, value->keymapD, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_e", 22); + + ELEKTRA_SET (String) (elektra, field, value->keymapE, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_f", 22); + + ELEKTRA_SET (String) (elektra, field, value->keymapF, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keyrepeatdelay", 22); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->keyrepeatdelay, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keyrepeatinterval", 22); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->keyrepeatinterval, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "normal_font", 22); + + ELEKTRA_SET (String) (elektra, field, value->normalFont, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 22); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "picolcdgfx_inverted", 22); + + ELEKTRA_SET (Boolean) (elektra, field, value->picolcdgfxInverted, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "picolcdgfx_keytimeout", 22); + + ELEKTRA_SET (String) (elektra, field, value->picolcdgfxKeytimeout, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "port", 22); + + ELEKTRA_SET (String) (elektra, field, value->port, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 22); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "serdisp_device", 22); + + ELEKTRA_SET (String) (elektra, field, value->serdispDevice, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "serdisp_name", 22); + + ELEKTRA_SET (String) (elektra, field, value->serdispName, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "serdisp_options", 22); + + ELEKTRA_SET (String) (elektra, field, value->serdispOptions, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 22); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "useft2", 22); + + ELEKTRA_SET (Boolean) (elektra, field, value->useft2, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "x11_backlightcolor", 22); + + ELEKTRA_SET (String) (elektra, field, value->x11Backlightcolor, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "x11_border", 22); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->x11Border, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "x11_inverted", 22); + + ELEKTRA_SET (Boolean) (elektra, field, value->x11Inverted, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "x11_pixelcolor", 22); + + ELEKTRA_SET (String) (elektra, field, value->x11Pixelcolor, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "x11_pixelsize", 22); + + ELEKTRA_SET (String) (elektra, field, value->x11Pixelsize, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const GlcdDriverConfig *, StructGlcdDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 22 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "bidirectional", 22); + + ELEKTRA_SET (Boolean) (elektra, field, value->bidirectional, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 22); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "cellsize", 22); + + ELEKTRA_SET (String) (elektra, field, value->cellsize, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "connectiontype", 22); + + ELEKTRA_SET (EnumGlcdConnectionType) (elektra, field, value->connectiontype, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 22); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "delaybus", 22); + + ELEKTRA_SET (Boolean) (elektra, field, value->delaybus, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 22); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "fonthasicons", 22); + + ELEKTRA_SET (Boolean) (elektra, field, value->fonthasicons, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_a", 22); + + ELEKTRA_SET (String) (elektra, field, value->keymapA, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_b", 22); + + ELEKTRA_SET (String) (elektra, field, value->keymapB, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_c", 22); + + ELEKTRA_SET (String) (elektra, field, value->keymapC, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_d", 22); + + ELEKTRA_SET (String) (elektra, field, value->keymapD, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_e", 22); + + ELEKTRA_SET (String) (elektra, field, value->keymapE, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_f", 22); + + ELEKTRA_SET (String) (elektra, field, value->keymapF, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keyrepeatdelay", 22); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->keyrepeatdelay, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keyrepeatinterval", 22); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->keyrepeatinterval, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "normal_font", 22); + + ELEKTRA_SET (String) (elektra, field, value->normalFont, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 22); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "picolcdgfx_inverted", 22); + + ELEKTRA_SET (Boolean) (elektra, field, value->picolcdgfxInverted, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "picolcdgfx_keytimeout", 22); + + ELEKTRA_SET (String) (elektra, field, value->picolcdgfxKeytimeout, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "port", 22); + + ELEKTRA_SET (String) (elektra, field, value->port, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 22); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "serdisp_device", 22); + + ELEKTRA_SET (String) (elektra, field, value->serdispDevice, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "serdisp_name", 22); + + ELEKTRA_SET (String) (elektra, field, value->serdispName, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "serdisp_options", 22); + + ELEKTRA_SET (String) (elektra, field, value->serdispOptions, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 22); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "useft2", 22); + + ELEKTRA_SET (Boolean) (elektra, field, value->useft2, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "x11_backlightcolor", 22); + + ELEKTRA_SET (String) (elektra, field, value->x11Backlightcolor, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "x11_border", 22); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->x11Border, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "x11_inverted", 22); + + ELEKTRA_SET (Boolean) (elektra, field, value->x11Inverted, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "x11_pixelcolor", 22); + + ELEKTRA_SET (String) (elektra, field, value->x11Pixelcolor, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "x11_pixelsize", 22); + + ELEKTRA_SET (String) (elektra, field, value->x11Pixelsize, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (GlcdlibDriverConfig, StructGlcdlibDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 16 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "CharEncoding", 16); + + + result->CharEncoding = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "backlight", 16); + + + result->backlight = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "brightness", 16); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 16); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "driver", 16); + + + result->driver = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 16); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "fontfile", 16); + + + result->fontfile = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "invert", 16); + + + result->invert = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "minfontfacesize", 16); + + + result->minfontfacesize = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 16); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "pixelshiftx", 16); + + + result->pixelshiftx = ELEKTRA_GET (Short) (elektra, field); + + strncpy (&field[nameLen], "pixelshifty", 16); + + + result->pixelshifty = ELEKTRA_GET (Short) (elektra, field); + + strncpy (&field[nameLen], "reboot", 16); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "showbigborder", 16); + + + result->showbigborder = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "showdebugframe", 16); + + + result->showdebugframe = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "showthinborder", 16); + + + result->showthinborder = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "textresolution", 16); + + + result->textresolution = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "upsidedown", 16); + + + result->upsidedown = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "useft2", 16); + + + result->useft2 = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (GlcdlibDriverConfig, StructGlcdlibDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 16 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "CharEncoding", 16); + + + result->CharEncoding = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "backlight", 16); + + + result->backlight = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "brightness", 16); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 16); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "driver", 16); + + + result->driver = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 16); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "fontfile", 16); + + + result->fontfile = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "invert", 16); + + + result->invert = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "minfontfacesize", 16); + + + result->minfontfacesize = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 16); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "pixelshiftx", 16); + + + result->pixelshiftx = ELEKTRA_GET (Short) (elektra, field); + + strncpy (&field[nameLen], "pixelshifty", 16); + + + result->pixelshifty = ELEKTRA_GET (Short) (elektra, field); + + strncpy (&field[nameLen], "reboot", 16); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "showbigborder", 16); + + + result->showbigborder = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "showdebugframe", 16); + + + result->showdebugframe = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "showthinborder", 16); + + + result->showthinborder = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "textresolution", 16); + + + result->textresolution = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "upsidedown", 16); + + + result->upsidedown = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "useft2", 16); + + + result->useft2 = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const GlcdlibDriverConfig *, StructGlcdlibDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 16 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "CharEncoding", 16); + + ELEKTRA_SET (String) (elektra, field, value->CharEncoding, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "backlight", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 16); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 16); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "driver", 16); + + ELEKTRA_SET (String) (elektra, field, value->driver, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 16); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "fontfile", 16); + + ELEKTRA_SET (String) (elektra, field, value->fontfile, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "invert", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->invert, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "minfontfacesize", 16); + + ELEKTRA_SET (String) (elektra, field, value->minfontfacesize, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 16); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "pixelshiftx", 16); + + ELEKTRA_SET (Short) (elektra, field, value->pixelshiftx, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "pixelshifty", 16); + + ELEKTRA_SET (Short) (elektra, field, value->pixelshifty, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "showbigborder", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->showbigborder, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "showdebugframe", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->showdebugframe, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "showthinborder", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->showthinborder, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "textresolution", 16); + + ELEKTRA_SET (String) (elektra, field, value->textresolution, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "upsidedown", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->upsidedown, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "useft2", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->useft2, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const GlcdlibDriverConfig *, StructGlcdlibDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 16 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "CharEncoding", 16); + + ELEKTRA_SET (String) (elektra, field, value->CharEncoding, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "backlight", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 16); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 16); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "driver", 16); + + ELEKTRA_SET (String) (elektra, field, value->driver, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 16); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "fontfile", 16); + + ELEKTRA_SET (String) (elektra, field, value->fontfile, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "invert", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->invert, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "minfontfacesize", 16); + + ELEKTRA_SET (String) (elektra, field, value->minfontfacesize, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 16); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "pixelshiftx", 16); + + ELEKTRA_SET (Short) (elektra, field, value->pixelshiftx, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "pixelshifty", 16); + + ELEKTRA_SET (Short) (elektra, field, value->pixelshifty, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "showbigborder", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->showbigborder, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "showdebugframe", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->showdebugframe, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "showthinborder", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->showthinborder, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "textresolution", 16); + + ELEKTRA_SET (String) (elektra, field, value->textresolution, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "upsidedown", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->upsidedown, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "useft2", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->useft2, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (GlkDriverConfig, StructGlkDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "speed", 14); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (GlkDriverConfig, StructGlkDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "speed", 14); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const GlkDriverConfig *, StructGlkDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const GlkDriverConfig *, StructGlkDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Hd44780DriverConfig, StructHd44780DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 17 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 17); + + + result->backlight = ELEKTRA_GET (EnumHD44780Backlight) (elektra, field); + + strncpy (&field[nameLen], "backlightcmdoff", 17); + + + result->backlightcmdoff = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "backlightcmdon", 17); + + + result->backlightcmdon = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "brightness", 17); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "charmap", 17); + + + result->charmap = ELEKTRA_GET (EnumHD44780Charmap) (elektra, field); + + strncpy (&field[nameLen], "connectiontype", 17); + + + result->connectiontype = ELEKTRA_GET (EnumHD44780ConnectionType) (elektra, field); + + strncpy (&field[nameLen], "contrast", 17); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "delaybus", 17); + + + result->delaybus = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "delaymult", 17); + + + result->delaymult = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 17); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "extendedmode", 17); + + + result->extendedmode = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "file", 17); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "fontbank", 17); + + + result->fontbank = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "keepalivedisplay", 17); + + + result->keepalivedisplay = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "keymatrix_4_1", 17); + + + result->keymatrix41 = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymatrix_4_2", 17); + + + result->keymatrix42 = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymatrix_4_3", 17); + + + result->keymatrix43 = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymatrix_4_4", 17); + + + result->keymatrix44 = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keypad", 17); + + + result->keypad = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "lastline", 17); + + + result->lastline = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "lineaddress", 17); + + + result->lineaddress = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "model", 17); + + + result->model = ELEKTRA_GET (EnumHd44780Model) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 17); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "outputport", 17); + + + result->outputport = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "port", 17); + + + result->port = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 17); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "refreshdisplay", 17); + + + result->refreshdisplay = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "size", 17); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 17); + + + result->speed = ELEKTRA_GET (UnsignedLong) (elektra, field); + + strncpy (&field[nameLen], "vspan", 17); + + + result->vspan = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Hd44780DriverConfig, StructHd44780DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 17 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 17); + + + result->backlight = ELEKTRA_GET (EnumHD44780Backlight) (elektra, field); + + strncpy (&field[nameLen], "backlightcmdoff", 17); + + + result->backlightcmdoff = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "backlightcmdon", 17); + + + result->backlightcmdon = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "brightness", 17); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "charmap", 17); + + + result->charmap = ELEKTRA_GET (EnumHD44780Charmap) (elektra, field); + + strncpy (&field[nameLen], "connectiontype", 17); + + + result->connectiontype = ELEKTRA_GET (EnumHD44780ConnectionType) (elektra, field); + + strncpy (&field[nameLen], "contrast", 17); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "delaybus", 17); + + + result->delaybus = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "delaymult", 17); + + + result->delaymult = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 17); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "extendedmode", 17); + + + result->extendedmode = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "file", 17); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "fontbank", 17); + + + result->fontbank = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "keepalivedisplay", 17); + + + result->keepalivedisplay = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "keymatrix_4_1", 17); + + + result->keymatrix41 = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymatrix_4_2", 17); + + + result->keymatrix42 = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymatrix_4_3", 17); + + + result->keymatrix43 = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymatrix_4_4", 17); + + + result->keymatrix44 = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keypad", 17); + + + result->keypad = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "lastline", 17); + + + result->lastline = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "lineaddress", 17); + + + result->lineaddress = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "model", 17); + + + result->model = ELEKTRA_GET (EnumHd44780Model) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 17); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "outputport", 17); + + + result->outputport = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "port", 17); + + + result->port = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 17); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "refreshdisplay", 17); + + + result->refreshdisplay = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "size", 17); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 17); + + + result->speed = ELEKTRA_GET (UnsignedLong) (elektra, field); + + strncpy (&field[nameLen], "vspan", 17); + + + result->vspan = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const Hd44780DriverConfig *, StructHd44780DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 17 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 17); + + ELEKTRA_SET (EnumHD44780Backlight) (elektra, field, value->backlight, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "backlightcmdoff", 17); + + ELEKTRA_SET (String) (elektra, field, value->backlightcmdoff, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "backlightcmdon", 17); + + ELEKTRA_SET (String) (elektra, field, value->backlightcmdon, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "charmap", 17); + + ELEKTRA_SET (EnumHD44780Charmap) (elektra, field, value->charmap, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "connectiontype", 17); + + ELEKTRA_SET (EnumHD44780ConnectionType) (elektra, field, value->connectiontype, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "delaybus", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->delaybus, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "delaymult", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->delaymult, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 17); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "extendedmode", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->extendedmode, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 17); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "fontbank", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->fontbank, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keepalivedisplay", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->keepalivedisplay, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymatrix_4_1", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymatrix41, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymatrix_4_2", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymatrix42, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymatrix_4_3", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymatrix43, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymatrix_4_4", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymatrix44, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keypad", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->keypad, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lastline", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->lastline, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lineaddress", 17); + + ELEKTRA_SET (String) (elektra, field, value->lineaddress, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "model", 17); + + ELEKTRA_SET (EnumHd44780Model) (elektra, field, value->model, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "outputport", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->outputport, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "port", 17); + + ELEKTRA_SET (String) (elektra, field, value->port, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "refreshdisplay", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->refreshdisplay, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 17); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 17); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "vspan", 17); + + ELEKTRA_SET (String) (elektra, field, value->vspan, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Hd44780DriverConfig *, StructHd44780DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 17 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 17); + + ELEKTRA_SET (EnumHD44780Backlight) (elektra, field, value->backlight, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "backlightcmdoff", 17); + + ELEKTRA_SET (String) (elektra, field, value->backlightcmdoff, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "backlightcmdon", 17); + + ELEKTRA_SET (String) (elektra, field, value->backlightcmdon, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "charmap", 17); + + ELEKTRA_SET (EnumHD44780Charmap) (elektra, field, value->charmap, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "connectiontype", 17); + + ELEKTRA_SET (EnumHD44780ConnectionType) (elektra, field, value->connectiontype, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "delaybus", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->delaybus, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "delaymult", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->delaymult, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 17); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "extendedmode", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->extendedmode, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 17); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "fontbank", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->fontbank, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keepalivedisplay", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->keepalivedisplay, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymatrix_4_1", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymatrix41, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymatrix_4_2", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymatrix42, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymatrix_4_3", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymatrix43, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymatrix_4_4", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymatrix44, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keypad", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->keypad, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lastline", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->lastline, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lineaddress", 17); + + ELEKTRA_SET (String) (elektra, field, value->lineaddress, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "model", 17); + + ELEKTRA_SET (EnumHd44780Model) (elektra, field, value->model, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "outputport", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->outputport, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "port", 17); + + ELEKTRA_SET (String) (elektra, field, value->port, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "refreshdisplay", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->refreshdisplay, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 17); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 17); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "vspan", 17); + + ELEKTRA_SET (String) (elektra, field, value->vspan, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Icp_a106DriverConfig, StructIcp_a106DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Icp_a106DriverConfig, StructIcp_a106DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const Icp_a106DriverConfig *, StructIcp_a106DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Icp_a106DriverConfig *, StructIcp_a106DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (ImonDriverConfig, StructImonDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "charmap", 14); + + + result->charmap = ELEKTRA_GET (EnumIMonCharmap) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (ImonDriverConfig, StructImonDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "charmap", 14); + + + result->charmap = ELEKTRA_GET (EnumIMonCharmap) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const ImonDriverConfig *, StructImonDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "charmap", 14); + + ELEKTRA_SET (EnumIMonCharmap) (elektra, field, value->charmap, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const ImonDriverConfig *, StructImonDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "charmap", 14); + + ELEKTRA_SET (EnumIMonCharmap) (elektra, field, value->charmap, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (ImonlcdDriverConfig, StructImonlcdDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 14); + + + result->backlight = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "discmode", 14); + + + result->discmode = ELEKTRA_GET (EnumIMonLCDDiscMode) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "onexit", 14); + + + result->onexit = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "protocol", 14); + + + result->protocol = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (ImonlcdDriverConfig, StructImonlcdDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 14); + + + result->backlight = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "discmode", 14); + + + result->discmode = ELEKTRA_GET (EnumIMonLCDDiscMode) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "onexit", 14); + + + result->onexit = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "protocol", 14); + + + result->protocol = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const ImonlcdDriverConfig *, StructImonlcdDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "discmode", 14); + + ELEKTRA_SET (EnumIMonLCDDiscMode) (elektra, field, value->discmode, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "onexit", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->onexit, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "protocol", 14); + + ELEKTRA_SET (String) (elektra, field, value->protocol, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const ImonlcdDriverConfig *, StructImonlcdDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "discmode", 14); + + ELEKTRA_SET (EnumIMonLCDDiscMode) (elektra, field, value->discmode, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "onexit", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->onexit, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "protocol", 14); + + ELEKTRA_SET (String) (elektra, field, value->protocol, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (IOWarriorDriverConfig, StructIOWarriorDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "extendedmode", 14); + + + result->extendedmode = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "lastline", 14); + + + result->lastline = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "serialnumber", 14); + + + result->serialnumber = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (IOWarriorDriverConfig, StructIOWarriorDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "extendedmode", 14); + + + result->extendedmode = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "lastline", 14); + + + result->lastline = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "serialnumber", 14); + + + result->serialnumber = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const IOWarriorDriverConfig *, StructIOWarriorDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "extendedmode", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->extendedmode, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lastline", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->lastline, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "serialnumber", 14); + + ELEKTRA_SET (String) (elektra, field, value->serialnumber, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const IOWarriorDriverConfig *, StructIOWarriorDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "extendedmode", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->extendedmode, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lastline", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->lastline, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "serialnumber", 14); + + ELEKTRA_SET (String) (elektra, field, value->serialnumber, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (IrManDriverConfig, StructIrManDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "config", 14); + + + result->config = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (IrManDriverConfig, StructIrManDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "config", 14); + + + result->config = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const IrManDriverConfig *, StructIrManDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "config", 14); + + ELEKTRA_SET (String) (elektra, field, value->config, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const IrManDriverConfig *, StructIrManDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "config", 14); + + ELEKTRA_SET (String) (elektra, field, value->config, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (IrtransDriverConfig, StructIrtransDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 14); + + + result->backlight = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "hostname", 14); + + + result->hostname = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (IrtransDriverConfig, StructIrtransDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 14); + + + result->backlight = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "hostname", 14); + + + result->hostname = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const IrtransDriverConfig *, StructIrtransDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "hostname", 14); + + ELEKTRA_SET (String) (elektra, field, value->hostname, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const IrtransDriverConfig *, StructIrtransDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "hostname", 14); + + ELEKTRA_SET (String) (elektra, field, value->hostname, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (JoyDriverConfig, StructJoyDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "map_axis1neg", 14); + + + result->mapAxis1neg = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "map_axis1pos", 14); + + + result->mapAxis1pos = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "map_axis2neg", 14); + + + result->mapAxis2neg = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "map_axis2pos", 14); + + + result->mapAxis2pos = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "map_button1", 14); + + + result->mapButton1 = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "map_button2", 14); + + + result->mapButton2 = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (JoyDriverConfig, StructJoyDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "map_axis1neg", 14); + + + result->mapAxis1neg = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "map_axis1pos", 14); + + + result->mapAxis1pos = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "map_axis2neg", 14); + + + result->mapAxis2neg = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "map_axis2pos", 14); + + + result->mapAxis2pos = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "map_button1", 14); + + + result->mapButton1 = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "map_button2", 14); + + + result->mapButton2 = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const JoyDriverConfig *, StructJoyDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "map_axis1neg", 14); + + ELEKTRA_SET (String) (elektra, field, value->mapAxis1neg, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "map_axis1pos", 14); + + ELEKTRA_SET (String) (elektra, field, value->mapAxis1pos, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "map_axis2neg", 14); + + ELEKTRA_SET (String) (elektra, field, value->mapAxis2neg, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "map_axis2pos", 14); + + ELEKTRA_SET (String) (elektra, field, value->mapAxis2pos, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "map_button1", 14); + + ELEKTRA_SET (String) (elektra, field, value->mapButton1, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "map_button2", 14); + + ELEKTRA_SET (String) (elektra, field, value->mapButton2, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const JoyDriverConfig *, StructJoyDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "map_axis1neg", 14); + + ELEKTRA_SET (String) (elektra, field, value->mapAxis1neg, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "map_axis1pos", 14); + + ELEKTRA_SET (String) (elektra, field, value->mapAxis1pos, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "map_axis2neg", 14); + + ELEKTRA_SET (String) (elektra, field, value->mapAxis2neg, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "map_axis2pos", 14); + + ELEKTRA_SET (String) (elektra, field, value->mapAxis2pos, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "map_button1", 14); + + ELEKTRA_SET (String) (elektra, field, value->mapButton1, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "map_button2", 14); + + ELEKTRA_SET (String) (elektra, field, value->mapButton2, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Lb216DriverConfig, StructLb216DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "speed", 14); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Lb216DriverConfig, StructLb216DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "speed", 14); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const Lb216DriverConfig *, StructLb216DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Lb216DriverConfig *, StructLb216DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Lcdm001DriverConfig, StructLcdm001DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backkey", 14); + + + result->backkey = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "forwardkey", 14); + + + result->forwardkey = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "mainmenukey", 14); + + + result->mainmenukey = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "pausekey", 14); + + + result->pausekey = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Lcdm001DriverConfig, StructLcdm001DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backkey", 14); + + + result->backkey = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "forwardkey", 14); + + + result->forwardkey = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "mainmenukey", 14); + + + result->mainmenukey = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "pausekey", 14); + + + result->pausekey = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const Lcdm001DriverConfig *, StructLcdm001DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backkey", 14); + + ELEKTRA_SET (String) (elektra, field, value->backkey, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "forwardkey", 14); + + ELEKTRA_SET (String) (elektra, field, value->forwardkey, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "mainmenukey", 14); + + ELEKTRA_SET (String) (elektra, field, value->mainmenukey, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "pausekey", 14); + + ELEKTRA_SET (String) (elektra, field, value->pausekey, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Lcdm001DriverConfig *, StructLcdm001DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backkey", 14); + + ELEKTRA_SET (String) (elektra, field, value->backkey, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "forwardkey", 14); + + ELEKTRA_SET (String) (elektra, field, value->forwardkey, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "mainmenukey", 14); + + ELEKTRA_SET (String) (elektra, field, value->mainmenukey, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "pausekey", 14); + + ELEKTRA_SET (String) (elektra, field, value->pausekey, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (LctermDriverConfig, StructLctermDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (LctermDriverConfig, StructLctermDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const LctermDriverConfig *, StructLctermDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const LctermDriverConfig *, StructLctermDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Linux_inputDriverConfig, StructLinux_inputDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Linux_inputDriverConfig, StructLinux_inputDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const Linux_inputDriverConfig *, StructLinux_inputDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Linux_inputDriverConfig *, StructLinux_inputDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (LircDriverConfig, StructLircDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "lircrc", 14); + + + result->lircrc = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "prog", 14); + + + result->prog = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (LircDriverConfig, StructLircDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "lircrc", 14); + + + result->lircrc = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "prog", 14); + + + result->prog = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const LircDriverConfig *, StructLircDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lircrc", 14); + + ELEKTRA_SET (String) (elektra, field, value->lircrc, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "prog", 14); + + ELEKTRA_SET (String) (elektra, field, value->prog, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const LircDriverConfig *, StructLircDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lircrc", 14); + + ELEKTRA_SET (String) (elektra, field, value->lircrc, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "prog", 14); + + ELEKTRA_SET (String) (elektra, field, value->prog, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (LisDriverConfig, StructLisDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "lastline", 14); + + + result->lastline = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "productid", 14); + + + result->productid = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "vendorid", 14); + + + result->vendorid = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (LisDriverConfig, StructLisDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "lastline", 14); + + + result->lastline = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "productid", 14); + + + result->productid = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "vendorid", 14); + + + result->vendorid = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const LisDriverConfig *, StructLisDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lastline", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->lastline, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "productid", 14); + + ELEKTRA_SET (String) (elektra, field, value->productid, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "vendorid", 14); + + ELEKTRA_SET (String) (elektra, field, value->vendorid, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const LisDriverConfig *, StructLisDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lastline", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->lastline, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "productid", 14); + + ELEKTRA_SET (String) (elektra, field, value->productid, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "vendorid", 14); + + ELEKTRA_SET (String) (elektra, field, value->vendorid, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (MD8800DriverConfig, StructMD8800DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (MD8800DriverConfig, StructMD8800DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const MD8800DriverConfig *, StructMD8800DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const MD8800DriverConfig *, StructMD8800DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Mdm166aDriverConfig, StructMdm166aDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "clock", 14); + + + result->clock = ELEKTRA_GET (EnumMdm166aClock) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "dimming", 14); + + + result->dimming = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "offdimming", 14); + + + result->offdimming = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Mdm166aDriverConfig, StructMdm166aDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "clock", 14); + + + result->clock = ELEKTRA_GET (EnumMdm166aClock) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "dimming", 14); + + + result->dimming = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "offdimming", 14); + + + result->offdimming = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const Mdm166aDriverConfig *, StructMdm166aDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "clock", 14); + + ELEKTRA_SET (EnumMdm166aClock) (elektra, field, value->clock, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "dimming", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->dimming, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offdimming", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->offdimming, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Mdm166aDriverConfig *, StructMdm166aDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "clock", 14); + + ELEKTRA_SET (EnumMdm166aClock) (elektra, field, value->clock, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "dimming", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->dimming, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offdimming", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->offdimming, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Ms6931DriverConfig, StructMs6931DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Ms6931DriverConfig, StructMs6931DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const Ms6931DriverConfig *, StructMs6931DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Ms6931DriverConfig *, StructMs6931DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Mtc_s16209xDriverConfig, StructMtc_s16209xDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Mtc_s16209xDriverConfig, StructMtc_s16209xDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const Mtc_s16209xDriverConfig *, StructMtc_s16209xDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Mtc_s16209xDriverConfig *, StructMtc_s16209xDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (MtxOrbDriverConfig, StructMtxOrbDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 23 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 23); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 23); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 23); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 23); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "hasadjustablebacklight", 23); + + + result->hasadjustablebacklight = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "keymap_a", 23); + + + result->keymapA = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_b", 23); + + + result->keymapB = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_c", 23); + + + result->keymapC = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_d", 23); + + + result->keymapD = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_e", 23); + + + result->keymapE = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_f", 23); + + + result->keymapF = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 23); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 23); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 23); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 23); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "type", 23); + + + result->type = ELEKTRA_GET (EnumMtxorbType) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (MtxOrbDriverConfig, StructMtxOrbDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 23 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 23); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 23); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 23); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 23); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "hasadjustablebacklight", 23); + + + result->hasadjustablebacklight = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "keymap_a", 23); + + + result->keymapA = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_b", 23); + + + result->keymapB = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_c", 23); + + + result->keymapC = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_d", 23); + + + result->keymapD = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_e", 23); + + + result->keymapE = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_f", 23); + + + result->keymapF = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 23); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 23); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 23); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 23); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "type", 23); + + + result->type = ELEKTRA_GET (EnumMtxorbType) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const MtxOrbDriverConfig *, StructMtxOrbDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 23 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 23); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 23); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 23); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 23); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "hasadjustablebacklight", 23); + + ELEKTRA_SET (Boolean) (elektra, field, value->hasadjustablebacklight, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_a", 23); + + ELEKTRA_SET (String) (elektra, field, value->keymapA, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_b", 23); + + ELEKTRA_SET (String) (elektra, field, value->keymapB, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_c", 23); + + ELEKTRA_SET (String) (elektra, field, value->keymapC, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_d", 23); + + ELEKTRA_SET (String) (elektra, field, value->keymapD, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_e", 23); + + ELEKTRA_SET (String) (elektra, field, value->keymapE, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_f", 23); + + ELEKTRA_SET (String) (elektra, field, value->keymapF, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 23); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 23); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 23); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 23); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "type", 23); + + ELEKTRA_SET (EnumMtxorbType) (elektra, field, value->type, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const MtxOrbDriverConfig *, StructMtxOrbDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 23 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 23); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 23); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 23); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 23); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "hasadjustablebacklight", 23); + + ELEKTRA_SET (Boolean) (elektra, field, value->hasadjustablebacklight, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_a", 23); + + ELEKTRA_SET (String) (elektra, field, value->keymapA, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_b", 23); + + ELEKTRA_SET (String) (elektra, field, value->keymapB, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_c", 23); + + ELEKTRA_SET (String) (elektra, field, value->keymapC, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_d", 23); + + ELEKTRA_SET (String) (elektra, field, value->keymapD, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_e", 23); + + ELEKTRA_SET (String) (elektra, field, value->keymapE, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_f", 23); + + ELEKTRA_SET (String) (elektra, field, value->keymapF, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 23); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 23); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 23); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 23); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "type", 23); + + ELEKTRA_SET (EnumMtxorbType) (elektra, field, value->type, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Mx5000DriverConfig, StructMx5000DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 17 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 17); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 17); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 17); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 17); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 17); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 17); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "waitafterrefresh", 17); + + + result->waitafterrefresh = ELEKTRA_GET (UnsignedLong) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Mx5000DriverConfig, StructMx5000DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 17 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 17); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 17); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 17); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 17); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 17); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 17); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "waitafterrefresh", 17); + + + result->waitafterrefresh = ELEKTRA_GET (UnsignedLong) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const Mx5000DriverConfig *, StructMx5000DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 17 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 17); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 17); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "waitafterrefresh", 17); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->waitafterrefresh, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Mx5000DriverConfig *, StructMx5000DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 17 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 17); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 17); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "waitafterrefresh", 17); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->waitafterrefresh, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (NoritakeVFDDriverConfig, StructNoritakeVFDDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "parity", 14); + + + result->parity = ELEKTRA_GET (UnsignedLong) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 14); + + + result->speed = ELEKTRA_GET (UnsignedLong) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (NoritakeVFDDriverConfig, StructNoritakeVFDDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "parity", 14); + + + result->parity = ELEKTRA_GET (UnsignedLong) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 14); + + + result->speed = ELEKTRA_GET (UnsignedLong) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const NoritakeVFDDriverConfig *, StructNoritakeVFDDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "parity", 14); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->parity, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 14); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const NoritakeVFDDriverConfig *, StructNoritakeVFDDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "parity", 14); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->parity, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 14); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Olimex_MOD_LCD1x9DriverConfig, StructOlimex_MOD_LCD1x9DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Olimex_MOD_LCD1x9DriverConfig, StructOlimex_MOD_LCD1x9DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const Olimex_MOD_LCD1x9DriverConfig *, StructOlimex_MOD_LCD1x9DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Olimex_MOD_LCD1x9DriverConfig *, StructOlimex_MOD_LCD1x9DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (PicolcdDriverConfig, StructPicolcdDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 19 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 19); + + + result->backlight = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "brightness", 19); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 19); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 19); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "key0light", 19); + + + result->key0light = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "key1light", 19); + + + result->key1light = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "key2light", 19); + + + result->key2light = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "key3light", 19); + + + result->key3light = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "key4light", 19); + + + result->key4light = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "key5light", 19); + + + result->key5light = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "keylights", 19); + + + result->keylights = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "keyrepeatdelay", 19); + + + result->keyrepeatdelay = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "keyrepeatinterval", 19); + + + result->keyrepeatinterval = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "keytimeout", 19); + + + result->keytimeout = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "linklights", 19); + + + result->linklights = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "lircflushthreshold", 19); + + + result->lircflushthreshold = ELEKTRA_GET (UnsignedLong) (elektra, field); + + strncpy (&field[nameLen], "lirchost", 19); + + + result->lirchost = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "lircport", 19); + + + result->lircport = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "lirctime_us", 19); + + + result->lirctimeUs = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 19); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 19); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (PicolcdDriverConfig, StructPicolcdDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 19 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 19); + + + result->backlight = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "brightness", 19); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 19); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 19); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "key0light", 19); + + + result->key0light = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "key1light", 19); + + + result->key1light = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "key2light", 19); + + + result->key2light = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "key3light", 19); + + + result->key3light = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "key4light", 19); + + + result->key4light = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "key5light", 19); + + + result->key5light = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "keylights", 19); + + + result->keylights = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "keyrepeatdelay", 19); + + + result->keyrepeatdelay = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "keyrepeatinterval", 19); + + + result->keyrepeatinterval = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "keytimeout", 19); + + + result->keytimeout = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "linklights", 19); + + + result->linklights = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "lircflushthreshold", 19); + + + result->lircflushthreshold = ELEKTRA_GET (UnsignedLong) (elektra, field); + + strncpy (&field[nameLen], "lirchost", 19); + + + result->lirchost = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "lircport", 19); + + + result->lircport = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "lirctime_us", 19); + + + result->lirctimeUs = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 19); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 19); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const PicolcdDriverConfig *, StructPicolcdDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 19 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 19); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 19); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 19); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "key0light", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->key0light, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "key1light", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->key1light, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "key2light", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->key2light, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "key3light", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->key3light, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "key4light", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->key4light, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "key5light", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->key5light, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keylights", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->keylights, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keyrepeatdelay", 19); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->keyrepeatdelay, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keyrepeatinterval", 19); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->keyrepeatinterval, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keytimeout", 19); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->keytimeout, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "linklights", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->linklights, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lircflushthreshold", 19); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->lircflushthreshold, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lirchost", 19); + + ELEKTRA_SET (String) (elektra, field, value->lirchost, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lircport", 19); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->lircport, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lirctime_us", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->lirctimeUs, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 19); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const PicolcdDriverConfig *, StructPicolcdDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 19 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 19); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 19); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 19); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "key0light", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->key0light, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "key1light", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->key1light, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "key2light", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->key2light, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "key3light", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->key3light, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "key4light", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->key4light, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "key5light", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->key5light, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keylights", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->keylights, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keyrepeatdelay", 19); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->keyrepeatdelay, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keyrepeatinterval", 19); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->keyrepeatinterval, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keytimeout", 19); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->keytimeout, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "linklights", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->linklights, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lircflushthreshold", 19); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->lircflushthreshold, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lirchost", 19); + + ELEKTRA_SET (String) (elektra, field, value->lirchost, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lircport", 19); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->lircport, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lirctime_us", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->lirctimeUs, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 19); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (PyramidDriverConfig, StructPyramidDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (PyramidDriverConfig, StructPyramidDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const PyramidDriverConfig *, StructPyramidDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const PyramidDriverConfig *, StructPyramidDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (RawserialDriverConfig, StructRawserialDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 14); + + + result->speed = ELEKTRA_GET (UnsignedLong) (elektra, field); + + strncpy (&field[nameLen], "updaterate", 14); + + + result->updaterate = ELEKTRA_GET (Float) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (RawserialDriverConfig, StructRawserialDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 14); + + + result->speed = ELEKTRA_GET (UnsignedLong) (elektra, field); + + strncpy (&field[nameLen], "updaterate", 14); + + + result->updaterate = ELEKTRA_GET (Float) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const RawserialDriverConfig *, StructRawserialDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 14); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "updaterate", 14); + + ELEKTRA_SET (Float) (elektra, field, value->updaterate, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const RawserialDriverConfig *, StructRawserialDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 14); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "updaterate", 14); + + ELEKTRA_SET (Float) (elektra, field, value->updaterate, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Sed1330DriverConfig, StructSed1330DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 15 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 15); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "cellsize", 15); + + + result->cellsize = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "connectiontype", 15); + + + result->connectiontype = ELEKTRA_GET (EnumSed1330Connectiontype) (elektra, field); + + strncpy (&field[nameLen], "contrast", 15); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 15); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 15); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "port", 15); + + + result->port = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 15); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "type", 15); + + + result->type = ELEKTRA_GET (EnumSed1330Type) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Sed1330DriverConfig, StructSed1330DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 15 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 15); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "cellsize", 15); + + + result->cellsize = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "connectiontype", 15); + + + result->connectiontype = ELEKTRA_GET (EnumSed1330Connectiontype) (elektra, field); + + strncpy (&field[nameLen], "contrast", 15); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 15); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 15); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "port", 15); + + + result->port = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 15); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "type", 15); + + + result->type = ELEKTRA_GET (EnumSed1330Type) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const Sed1330DriverConfig *, StructSed1330DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 15 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 15); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "cellsize", 15); + + ELEKTRA_SET (String) (elektra, field, value->cellsize, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "connectiontype", 15); + + ELEKTRA_SET (EnumSed1330Connectiontype) (elektra, field, value->connectiontype, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 15); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 15); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 15); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "port", 15); + + ELEKTRA_SET (String) (elektra, field, value->port, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 15); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "type", 15); + + ELEKTRA_SET (EnumSed1330Type) (elektra, field, value->type, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Sed1330DriverConfig *, StructSed1330DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 15 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 15); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "cellsize", 15); + + ELEKTRA_SET (String) (elektra, field, value->cellsize, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "connectiontype", 15); + + ELEKTRA_SET (EnumSed1330Connectiontype) (elektra, field, value->connectiontype, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 15); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 15); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 15); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "port", 15); + + ELEKTRA_SET (String) (elektra, field, value->port, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 15); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "type", 15); + + ELEKTRA_SET (EnumSed1330Type) (elektra, field, value->type, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Sed1520DriverConfig, StructSed1520DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 16 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 16); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 16); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "delaymult", 16); + + + result->delaymult = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 16); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "haveinverter", 16); + + + result->haveinverter = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "interfacetype", 16); + + + result->interfacetype = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "invertedmapping", 16); + + + result->invertedmapping = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 16); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "port", 16); + + + result->port = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 16); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "usehardreset", 16); + + + result->usehardreset = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Sed1520DriverConfig, StructSed1520DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 16 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 16); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 16); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "delaymult", 16); + + + result->delaymult = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 16); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "haveinverter", 16); + + + result->haveinverter = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "interfacetype", 16); + + + result->interfacetype = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "invertedmapping", 16); + + + result->invertedmapping = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 16); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "port", 16); + + + result->port = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 16); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "usehardreset", 16); + + + result->usehardreset = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const Sed1520DriverConfig *, StructSed1520DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 16 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 16); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 16); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "delaymult", 16); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->delaymult, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 16); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "haveinverter", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->haveinverter, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "interfacetype", 16); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->interfacetype, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "invertedmapping", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->invertedmapping, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 16); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "port", 16); + + ELEKTRA_SET (String) (elektra, field, value->port, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "usehardreset", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->usehardreset, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Sed1520DriverConfig *, StructSed1520DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 16 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 16); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 16); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "delaymult", 16); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->delaymult, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 16); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "haveinverter", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->haveinverter, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "interfacetype", 16); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->interfacetype, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "invertedmapping", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->invertedmapping, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 16); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "port", 16); + + ELEKTRA_SET (String) (elektra, field, value->port, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "usehardreset", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->usehardreset, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (SerialPOSDriverConfig, StructSerialPOSDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "cellsize", 14); + + + result->cellsize = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "custom_chars", 14); + + + result->customChars = ELEKTRA_GET (UnsignedLong) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 14); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "type", 14); + + + result->type = ELEKTRA_GET (EnumSerialposType) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SerialPOSDriverConfig, StructSerialPOSDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "cellsize", 14); + + + result->cellsize = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "custom_chars", 14); + + + result->customChars = ELEKTRA_GET (UnsignedLong) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 14); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "type", 14); + + + result->type = ELEKTRA_GET (EnumSerialposType) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const SerialPOSDriverConfig *, StructSerialPOSDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "cellsize", 14); + + ELEKTRA_SET (String) (elektra, field, value->cellsize, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "custom_chars", 14); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->customChars, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "type", 14); + + ELEKTRA_SET (EnumSerialposType) (elektra, field, value->type, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SerialPOSDriverConfig *, StructSerialPOSDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "cellsize", 14); + + ELEKTRA_SET (String) (elektra, field, value->cellsize, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "custom_chars", 14); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->customChars, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "type", 14); + + ELEKTRA_SET (EnumSerialposType) (elektra, field, value->type, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (SerialVFDDriverConfig, StructSerialVFDDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 18 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 18); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 18); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "custom-characters", 18); + + + result->custom_characters = ELEKTRA_GET (UnsignedLong) (elektra, field); + + strncpy (&field[nameLen], "device", 18); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 18); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "iso_8859_1", 18); + + + result->iso88591 = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 18); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "port", 18); + + + result->port = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "portwait", 18); + + + result->portwait = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 18); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 18); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 18); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "type", 18); + + + result->type = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "use_parallel", 18); + + + result->useParallel = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SerialVFDDriverConfig, StructSerialVFDDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 18 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 18); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 18); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "custom-characters", 18); + + + result->custom_characters = ELEKTRA_GET (UnsignedLong) (elektra, field); + + strncpy (&field[nameLen], "device", 18); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 18); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "iso_8859_1", 18); + + + result->iso88591 = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 18); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "port", 18); + + + result->port = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "portwait", 18); + + + result->portwait = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 18); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 18); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 18); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "type", 18); + + + result->type = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "use_parallel", 18); + + + result->useParallel = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const SerialVFDDriverConfig *, StructSerialVFDDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 18 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 18); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 18); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "custom-characters", 18); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->custom_characters, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 18); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 18); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "iso_8859_1", 18); + + ELEKTRA_SET (Boolean) (elektra, field, value->iso88591, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 18); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "port", 18); + + ELEKTRA_SET (String) (elektra, field, value->port, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "portwait", 18); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->portwait, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 18); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 18); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 18); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "type", 18); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->type, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "use_parallel", 18); + + ELEKTRA_SET (Boolean) (elektra, field, value->useParallel, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SerialVFDDriverConfig *, StructSerialVFDDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 18 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 18); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 18); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "custom-characters", 18); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->custom_characters, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 18); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 18); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "iso_8859_1", 18); + + ELEKTRA_SET (Boolean) (elektra, field, value->iso88591, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 18); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "port", 18); + + ELEKTRA_SET (String) (elektra, field, value->port, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "portwait", 18); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->portwait, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 18); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 18); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 18); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "type", 18); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->type, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "use_parallel", 18); + + ELEKTRA_SET (Boolean) (elektra, field, value->useParallel, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (SliDriverConfig, StructSliDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "speed", 14); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SliDriverConfig, StructSliDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "speed", 14); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const SliDriverConfig *, StructSliDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SliDriverConfig *, StructSliDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Stv5730DriverConfig, StructStv5730DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "port", 14); + + + result->port = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Stv5730DriverConfig, StructStv5730DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "port", 14); + + + result->port = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const Stv5730DriverConfig *, StructStv5730DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "port", 14); + + ELEKTRA_SET (String) (elektra, field, value->port, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Stv5730DriverConfig *, StructStv5730DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "port", 14); + + ELEKTRA_SET (String) (elektra, field, value->port, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (SureElecDriverConfig, StructSureElecDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "edition", 14); + + + result->edition = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SureElecDriverConfig, StructSureElecDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "edition", 14); + + + result->edition = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const SureElecDriverConfig *, StructSureElecDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "edition", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->edition, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SureElecDriverConfig *, StructSureElecDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "edition", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->edition, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (SvgaDriverConfig, StructSvgaDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "mode", 14); + + + result->mode = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SvgaDriverConfig, StructSvgaDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "mode", 14); + + + result->mode = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const SvgaDriverConfig *, StructSvgaDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "mode", 14); + + ELEKTRA_SET (String) (elektra, field, value->mode, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SvgaDriverConfig *, StructSvgaDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "mode", 14); + + ELEKTRA_SET (String) (elektra, field, value->mode, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (T6963DriverConfig, StructT6963DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "bidirectional", 14); + + + result->bidirectional = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "cleargraphic", 14); + + + result->cleargraphic = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "delaybus", 14); + + + result->delaybus = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "port", 14); + + + result->port = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (T6963DriverConfig, StructT6963DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "bidirectional", 14); + + + result->bidirectional = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "cleargraphic", 14); + + + result->cleargraphic = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "delaybus", 14); + + + result->delaybus = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "port", 14); + + + result->port = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const T6963DriverConfig *, StructT6963DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "bidirectional", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->bidirectional, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "cleargraphic", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->cleargraphic, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "delaybus", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->delaybus, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "port", 14); + + ELEKTRA_SET (String) (elektra, field, value->port, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const T6963DriverConfig *, StructT6963DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "bidirectional", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->bidirectional, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "cleargraphic", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->cleargraphic, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "delaybus", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->delaybus, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "port", 14); + + ELEKTRA_SET (String) (elektra, field, value->port, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (TextDriverConfig, StructTextDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (TextDriverConfig, StructTextDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const TextDriverConfig *, StructTextDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const TextDriverConfig *, StructTextDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (TyanDriverConfig, StructTyanDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 14); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (TyanDriverConfig, StructTyanDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 14); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const TyanDriverConfig *, StructTyanDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const TyanDriverConfig *, StructTyanDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Ula200DriverConfig, StructUla200DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_a", 14); + + + result->keymapA = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_b", 14); + + + result->keymapB = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_c", 14); + + + result->keymapC = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_d", 14); + + + result->keymapD = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_e", 14); + + + result->keymapE = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_f", 14); + + + result->keymapF = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Ula200DriverConfig, StructUla200DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_a", 14); + + + result->keymapA = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_b", 14); + + + result->keymapB = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_c", 14); + + + result->keymapC = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_d", 14); + + + result->keymapD = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_e", 14); + + + result->keymapE = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_f", 14); + + + result->keymapF = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const Ula200DriverConfig *, StructUla200DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_a", 14); + + ELEKTRA_SET (String) (elektra, field, value->keymapA, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_b", 14); + + ELEKTRA_SET (String) (elektra, field, value->keymapB, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_c", 14); + + ELEKTRA_SET (String) (elektra, field, value->keymapC, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_d", 14); + + ELEKTRA_SET (String) (elektra, field, value->keymapD, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_e", 14); + + ELEKTRA_SET (String) (elektra, field, value->keymapE, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_f", 14); + + ELEKTRA_SET (String) (elektra, field, value->keymapF, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Ula200DriverConfig *, StructUla200DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_a", 14); + + ELEKTRA_SET (String) (elektra, field, value->keymapA, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_b", 14); + + ELEKTRA_SET (String) (elektra, field, value->keymapB, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_c", 14); + + ELEKTRA_SET (String) (elektra, field, value->keymapC, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_d", 14); + + ELEKTRA_SET (String) (elektra, field, value->keymapD, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_e", 14); + + ELEKTRA_SET (String) (elektra, field, value->keymapE, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_f", 14); + + ELEKTRA_SET (String) (elektra, field, value->keymapF, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Vlsys_m428DriverConfig, StructVlsys_m428DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Vlsys_m428DriverConfig, StructVlsys_m428DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const Vlsys_m428DriverConfig *, StructVlsys_m428DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Vlsys_m428DriverConfig *, StructVlsys_m428DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (XosdDriverConfig, StructXosdDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "Font", 14); + + + result->Font = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "offset", 14); + + + result->offset = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (XosdDriverConfig, StructXosdDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "Font", 14); + + + result->Font = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "offset", 14); + + + result->offset = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const XosdDriverConfig *, StructXosdDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "Font", 14); + + ELEKTRA_SET (String) (elektra, field, value->Font, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offset", 14); + + ELEKTRA_SET (String) (elektra, field, value->offset, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const XosdDriverConfig *, StructXosdDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "Font", 14); + + ELEKTRA_SET (String) (elektra, field, value->Font, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offset", 14); + + ELEKTRA_SET (String) (elektra, field, value->offset, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Yard2LCDDriverConfig, StructYard2LCDDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Yard2LCDDriverConfig, StructYard2LCDDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const Yard2LCDDriverConfig *, StructYard2LCDDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Yard2LCDDriverConfig *, StructYard2LCDDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + diff --git a/server/elektragen.h b/server/elektragen.h new file mode 100644 index 00000000..635a1974 --- /dev/null +++ b/server/elektragen.h @@ -0,0 +1,36230 @@ +// clang-format off + + +// clang-format on +/** + * @file + * + * This file was automatically generated using `kdb gen elektra`. + * Any changes will be overwritten, when the file is regenerated. + * + * @copyright BSD Zero Clause License + * + * Copyright (C) 2019 Elektra Initiative (https://libelektra.org) + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH + * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND + * FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, + * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM + * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR + * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + * PERFORMANCE OF THIS SOFTWARE. + */ + + +#ifndef ELEKTRAGEN_H +#define ELEKTRAGEN_H + +#ifdef __cplusplus +extern "C" { +#endif + +#include + +#include +#include + + + +#define ELEKTRA_CONTEXT_SET(contextTag) elektraSetContextualValue##contextTag + +// clang-format off + +// clang-format on + +typedef enum +{ + C_FONTZ_PACKET_MODEL_533 = 0, + C_FONTZ_PACKET_MODEL_631 = 1, + C_FONTZ_PACKET_MODEL_633 = 2, + C_FONTZ_PACKET_MODEL_635 = 3, +} CFontzPacketModel; + +typedef enum +{ + CURSES_COLOR_RED = 0, + CURSES_COLOR_BLACK = 1, + CURSES_COLOR_GREEN = 2, + CURSES_COLOR_YELLOW = 3, + CURSES_COLOR_BLUE = 4, + CURSES_COLOR_MAGENTA = 5, + CURSES_COLOR_CYAN = 6, + CURSES_COLOR_WHITE = 7, +} CursesColor; + +typedef enum +{ + CW_LNX_MODEL_12232 = 0, + CW_LNX_MODEL_12832 = 1, + CW_LNX_MODEL_1602 = 2, +} CwLnxModel; + +typedef enum +{ + GLCD_CONNECTION_TYPE_T6963 = 0, + GLCD_CONNECTION_TYPE_PNG = 1, + GLCD_CONNECTION_TYPE_SERDISPLIB = 2, + GLCD_CONNECTION_TYPE_GLCD2USB = 3, + GLCD_CONNECTION_TYPE_X11 = 4, + GLCD_CONNECTION_TYPE_PICOLCDGFX = 5, + GLCD_CONNECTION_TYPE_XYZ = 6, +} GlcdConnectionType; + +typedef enum +{ + H_D44780_BACKLIGHT_NONE = 0, + H_D44780_BACKLIGHT_EXTERNAL = 1, + H_D44780_BACKLIGHT_INTERNAL = 2, + H_D44780_BACKLIGHT_INTERNAL_CMDS = 3, +} HD44780Backlight; + +typedef enum +{ + H_D44780_CHARMAP_HD44780_DEFAULT = 0, + H_D44780_CHARMAP_HD44780_EURO = 1, + H_D44780_CHARMAP_EA_KS0073 = 2, + H_D44780_CHARMAP_SED1278F_0B = 3, + H_D44780_CHARMAP_HD44780_KOI8_R = 4, + H_D44780_CHARMAP_HD44780_CP1251 = 5, + H_D44780_CHARMAP_HD44780_8859_5 = 6, + H_D44780_CHARMAP_UPD16314 = 7, +} HD44780Charmap; + +typedef enum +{ + H_D44780_CONNECTION_TYPE_4BIT = 0, + H_D44780_CONNECTION_TYPE_8BIT = 1, + H_D44780_CONNECTION_TYPE_WINAMP = 2, + H_D44780_CONNECTION_TYPE_LCM162 = 3, + H_D44780_CONNECTION_TYPE_SERIAL_LPT = 4, + H_D44780_CONNECTION_TYPE_PICANLCD = 5, + H_D44780_CONNECTION_TYPE_LCDSERIALIZER = 6, + H_D44780_CONNECTION_TYPE_LOS_PANEL = 7, + H_D44780_CONNECTION_TYPE_VDR_LCD = 8, + H_D44780_CONNECTION_TYPE_VDR_WAKEUP = 9, + H_D44780_CONNECTION_TYPE_EZIO = 10, + H_D44780_CONNECTION_TYPE_PERTELIAN = 11, + H_D44780_CONNECTION_TYPE_LIS2 = 12, + H_D44780_CONNECTION_TYPE_MPLAY = 13, + H_D44780_CONNECTION_TYPE_USBLCD = 14, + H_D44780_CONNECTION_TYPE_BWCTUSB = 15, + H_D44780_CONNECTION_TYPE_LCD2USB = 16, + H_D44780_CONNECTION_TYPE_USBTINY = 17, + H_D44780_CONNECTION_TYPE_USS720 = 18, + H_D44780_CONNECTION_TYPE_U_S_B_4_ALL = 19, + H_D44780_CONNECTION_TYPE_FTDI = 20, + H_D44780_CONNECTION_TYPE_I2C = 21, + H_D44780_CONNECTION_TYPE_PIPLATE = 22, + H_D44780_CONNECTION_TYPE_SPI = 23, + H_D44780_CONNECTION_TYPE_PIFACECAD = 24, + H_D44780_CONNECTION_TYPE_ETHLCD = 25, + H_D44780_CONNECTION_TYPE_RASPBERRYPI = 26, + H_D44780_CONNECTION_TYPE_GPIO = 27, +} HD44780ConnectionType; + +typedef enum +{ + ELEKTRA_ENUM_HD44780_MODEL_STANDARD = 0, + ELEKTRA_ENUM_HD44780_MODEL_EXTENDED = 1, + ELEKTRA_ENUM_HD44780_MODEL_WINSTAR_OLED = 2, + ELEKTRA_ENUM_HD44780_MODEL_PT6314_VFD = 3, +} ElektraEnumHd44780Model; + +typedef enum +{ + I_MON_CHARMAP_HD44780_EURO = 0, + I_MON_CHARMAP_UPD16314 = 1, + I_MON_CHARMAP_HD44780_KOI8_R = 2, + I_MON_CHARMAP_HD44780_CP1251 = 3, + I_MON_CHARMAP_HD44780_8859_5 = 4, + I_MON_CHARMAP_NONE = 5, +} IMonCharmap; + +typedef enum +{ + I_MON_L_C_D_DISC_MODE_0 = 0, + I_MON_L_C_D_DISC_MODE_1 = 1, +} IMonLCDDiscMode; + +typedef enum +{ + ELEKTRA_ENUM_MDM166A_CLOCK_NO = 0, + ELEKTRA_ENUM_MDM166A_CLOCK_SMALL = 1, + ELEKTRA_ENUM_MDM166A_CLOCK_BIG = 2, +} ElektraEnumMdm166aClock; + +typedef enum +{ + ELEKTRA_ENUM_MTXORB_TYPE_LCD_LKD__VFD__VKD = 0, + ELEKTRA_ENUM_MTXORB_TYPE_LKD = 1, + ELEKTRA_ENUM_MTXORB_TYPE_VFD = 2, + ELEKTRA_ENUM_MTXORB_TYPE_VKD = 3, +} ElektraEnumMtxorbType; + +typedef enum +{ + ELEKTRA_ENUM_SED1330_CONNECTIONTYPE_CLASSIC = 0, + ELEKTRA_ENUM_SED1330_CONNECTIONTYPE_BITSHAKER = 1, +} ElektraEnumSed1330Connectiontype; + +typedef enum +{ + ELEKTRA_ENUM_SED1330_TYPE_G321_D = 0, + ELEKTRA_ENUM_SED1330_TYPE_G121_C = 1, + ELEKTRA_ENUM_SED1330_TYPE_G242_C = 2, + ELEKTRA_ENUM_SED1330_TYPE_G191_D = 3, + ELEKTRA_ENUM_SED1330_TYPE_G2446 = 4, + ELEKTRA_ENUM_SED1330_TYPE_S_P14_Q002 = 5, +} ElektraEnumSed1330Type; + +typedef enum +{ + ELEKTRA_ENUM_SERIALPOS_TYPE_A_E_D_E_X = 0, + ELEKTRA_ENUM_SERIALPOS_TYPE_C_D5220 = 1, + ELEKTRA_ENUM_SERIALPOS_TYPE_EPSON = 2, + ELEKTRA_ENUM_SERIALPOS_TYPE_EMAX = 3, + ELEKTRA_ENUM_SERIALPOS_TYPE_LOGIC_CONTROLS = 4, + ELEKTRA_ENUM_SERIALPOS_TYPE_ULTIMATE = 5, +} ElektraEnumSerialposType; + +typedef enum +{ + ELEKTRA_ENUM_SERVER_BACKLIGHT_OFF = 0, + ELEKTRA_ENUM_SERVER_BACKLIGHT_ON = 1, + ELEKTRA_ENUM_SERVER_BACKLIGHT_OPEN = 2, +} ElektraEnumServerBacklight; + +typedef enum +{ + ELEKTRA_ENUM_SERVER_HEARTBEAT_OFF = 0, + ELEKTRA_ENUM_SERVER_HEARTBEAT_ON = 1, + ELEKTRA_ENUM_SERVER_HEARTBEAT_OPEN = 2, +} ElektraEnumServerHeartbeat; + +typedef enum +{ + ELEKTRA_ENUM_SERVER_SERVERSCREEN_OFF = 0, + ELEKTRA_ENUM_SERVER_SERVERSCREEN_ON = 1, + ELEKTRA_ENUM_SERVER_SERVERSCREEN_BLANK = 2, +} ElektraEnumServerServerscreen; + + +ELEKTRA_KEY_TO_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel); +ELEKTRA_TO_STRING_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel); + +ELEKTRA_GET_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel); +ELEKTRA_SET_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel); + +ELEKTRA_KEY_TO_SIGNATURE (CursesColor, EnumCursesColor); +ELEKTRA_TO_STRING_SIGNATURE (CursesColor, EnumCursesColor); + +ELEKTRA_GET_SIGNATURE (CursesColor, EnumCursesColor); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (CursesColor, EnumCursesColor); +ELEKTRA_SET_SIGNATURE (CursesColor, EnumCursesColor); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (CursesColor, EnumCursesColor); + +ELEKTRA_KEY_TO_SIGNATURE (CwLnxModel, EnumCwLnxModel); +ELEKTRA_TO_STRING_SIGNATURE (CwLnxModel, EnumCwLnxModel); + +ELEKTRA_GET_SIGNATURE (CwLnxModel, EnumCwLnxModel); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (CwLnxModel, EnumCwLnxModel); +ELEKTRA_SET_SIGNATURE (CwLnxModel, EnumCwLnxModel); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (CwLnxModel, EnumCwLnxModel); + +ELEKTRA_KEY_TO_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType); +ELEKTRA_TO_STRING_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType); + +ELEKTRA_GET_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType); +ELEKTRA_SET_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType); + +ELEKTRA_KEY_TO_SIGNATURE (HD44780Backlight, EnumHD44780Backlight); +ELEKTRA_TO_STRING_SIGNATURE (HD44780Backlight, EnumHD44780Backlight); + +ELEKTRA_GET_SIGNATURE (HD44780Backlight, EnumHD44780Backlight); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (HD44780Backlight, EnumHD44780Backlight); +ELEKTRA_SET_SIGNATURE (HD44780Backlight, EnumHD44780Backlight); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (HD44780Backlight, EnumHD44780Backlight); + +ELEKTRA_KEY_TO_SIGNATURE (HD44780Charmap, EnumHD44780Charmap); +ELEKTRA_TO_STRING_SIGNATURE (HD44780Charmap, EnumHD44780Charmap); + +ELEKTRA_GET_SIGNATURE (HD44780Charmap, EnumHD44780Charmap); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (HD44780Charmap, EnumHD44780Charmap); +ELEKTRA_SET_SIGNATURE (HD44780Charmap, EnumHD44780Charmap); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (HD44780Charmap, EnumHD44780Charmap); + +ELEKTRA_KEY_TO_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType); +ELEKTRA_TO_STRING_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType); + +ELEKTRA_GET_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType); +ELEKTRA_SET_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType); + +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model); +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model); + +ELEKTRA_GET_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model); +ELEKTRA_SET_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model); + +ELEKTRA_KEY_TO_SIGNATURE (IMonCharmap, EnumIMonCharmap); +ELEKTRA_TO_STRING_SIGNATURE (IMonCharmap, EnumIMonCharmap); + +ELEKTRA_GET_SIGNATURE (IMonCharmap, EnumIMonCharmap); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (IMonCharmap, EnumIMonCharmap); +ELEKTRA_SET_SIGNATURE (IMonCharmap, EnumIMonCharmap); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (IMonCharmap, EnumIMonCharmap); + +ELEKTRA_KEY_TO_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode); +ELEKTRA_TO_STRING_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode); + +ELEKTRA_GET_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode); +ELEKTRA_SET_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode); + +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock); +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock); + +ELEKTRA_GET_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock); +ELEKTRA_SET_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock); + +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType); +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType); + +ELEKTRA_GET_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType); +ELEKTRA_SET_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType); + +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype); +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype); + +ELEKTRA_GET_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype); +ELEKTRA_SET_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype); + +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type); +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type); + +ELEKTRA_GET_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type); +ELEKTRA_SET_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type); + +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType); +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType); + +ELEKTRA_GET_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType); +ELEKTRA_SET_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType); + +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight); +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight); + +ELEKTRA_GET_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight); +ELEKTRA_SET_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight); + +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat); +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat); + +ELEKTRA_GET_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat); +ELEKTRA_SET_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat); + +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen); +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen); + +ELEKTRA_GET_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen); +ELEKTRA_SET_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen); + + + +// clang-format off + +// clang-format on + +#define ELEKTRA_STRUCT_FREE(typeName) ELEKTRA_CONCAT (elektraFree, typeName) +#define ELEKTRA_STRUCT_FREE_SIGNATURE(cType, typeName) void ELEKTRA_STRUCT_FREE (typeName) (cType * ptr) + +typedef struct BayradDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + kdb_unsigned_short_t speed; + +} BayradDriverConfig; + +typedef struct CFontzDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_boolean_t newfirmware; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * size; + + + kdb_unsigned_short_t speed; + +} CFontzDriverConfig; + +typedef struct CFontzPacketDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + CFontzPacketModel model; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t oldfirmware; + + + kdb_boolean_t reboot; + + + const char * size; + + + kdb_unsigned_short_t speed; + + + kdb_boolean_t usb; + +} CFontzPacketDriverConfig; + +typedef struct CursesDriverConfig +{ + + CursesColor background; + + + CursesColor backlight; + + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + kdb_boolean_t drawborder; + + + const char * file; + + + CursesColor foreground; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * size; + + + kdb_unsigned_short_t topleftx; + + + kdb_unsigned_short_t toplefty; + + + kdb_boolean_t useacs; + +} CursesDriverConfig; + +typedef struct CwLnxDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + const char * keymapA; + + + const char * keymapB; + + + const char * keymapC; + + + const char * keymapD; + + + const char * keymapE; + + + const char * keymapF; + + + kdb_boolean_t keypad; + + + kdb_boolean_t keypadTestMode; + + + CwLnxModel model; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * size; + + + kdb_unsigned_short_t speed; + +} CwLnxDriverConfig; + +typedef struct Ea65DriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + +} Ea65DriverConfig; + +typedef struct EyeboxOneDriverConfig +{ + + kdb_boolean_t backlight; + + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + kdb_boolean_t cursor; + + + const char * device; + + + const char * downkey; + + + const char * escapekey; + + + const char * file; + + + kdb_boolean_t keypadTestMode; + + + const char * leftkey; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * rightkey; + + + const char * size; + + + kdb_unsigned_short_t speed; + + + const char * upkey; + +} EyeboxOneDriverConfig; + +typedef struct FutabaDriverConfig +{ + + const char * file; + +} FutabaDriverConfig; + +typedef struct G15DriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * size; + +} G15DriverConfig; + +typedef struct GlcdDriverConfig +{ + + kdb_boolean_t bidirectional; + + + kdb_unsigned_short_t brightness; + + + const char * cellsize; + + + GlcdConnectionType connectiontype; + + + kdb_unsigned_short_t contrast; + + + kdb_boolean_t delaybus; + + + const char * file; + + + kdb_boolean_t fonthasicons; + + + const char * keymapA; + + + const char * keymapB; + + + const char * keymapC; + + + const char * keymapD; + + + const char * keymapE; + + + const char * keymapF; + + + kdb_unsigned_short_t keyrepeatdelay; + + + kdb_unsigned_short_t keyrepeatinterval; + + + const char * normalFont; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t picolcdgfxInverted; + + + const char * picolcdgfxKeytimeout; + + + const char * port; + + + kdb_boolean_t reboot; + + + const char * serdispDevice; + + + const char * serdispName; + + + const char * serdispOptions; + + + const char * size; + + + kdb_boolean_t useft2; + + + const char * x11Backlightcolor; + + + kdb_unsigned_long_t x11Border; + + + kdb_boolean_t x11Inverted; + + + const char * x11Pixelcolor; + + + const char * x11Pixelsize; + +} GlcdDriverConfig; + +typedef struct GlcdlibDriverConfig +{ + + const char * CharEncoding; + + + kdb_boolean_t backlight; + + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * driver; + + + const char * file; + + + const char * fontfile; + + + kdb_boolean_t invert; + + + const char * minfontfacesize; + + + kdb_unsigned_short_t offbrightness; + + + kdb_short_t pixelshiftx; + + + kdb_short_t pixelshifty; + + + kdb_boolean_t reboot; + + + kdb_boolean_t showbigborder; + + + kdb_boolean_t showdebugframe; + + + kdb_boolean_t showthinborder; + + + const char * textresolution; + + + kdb_boolean_t upsidedown; + + + kdb_boolean_t useft2; + +} GlcdlibDriverConfig; + +typedef struct GlkDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + kdb_unsigned_short_t speed; + +} GlkDriverConfig; + +typedef struct Hd44780DriverConfig +{ + + HD44780Backlight backlight; + + + const char * backlightcmdoff; + + + const char * backlightcmdon; + + + kdb_unsigned_short_t brightness; + + + HD44780Charmap charmap; + + + HD44780ConnectionType connectiontype; + + + kdb_unsigned_short_t contrast; + + + kdb_boolean_t delaybus; + + + kdb_unsigned_short_t delaymult; + + + const char * device; + + + kdb_boolean_t extendedmode; + + + const char * file; + + + kdb_unsigned_short_t fontbank; + + + kdb_unsigned_short_t keepalivedisplay; + + + const char * keymatrix41; + + + const char * keymatrix42; + + + const char * keymatrix43; + + + const char * keymatrix44; + + + kdb_boolean_t keypad; + + + kdb_boolean_t lastline; + + + const char * lineaddress; + + + ElektraEnumHd44780Model model; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t outputport; + + + const char * port; + + + kdb_boolean_t reboot; + + + kdb_unsigned_short_t refreshdisplay; + + + const char * size; + + + kdb_unsigned_long_t speed; + + + const char * vspan; + +} Hd44780DriverConfig; + +typedef struct Icp_a106DriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * size; + +} Icp_a106DriverConfig; + +typedef struct ImonDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + IMonCharmap charmap; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * size; + +} ImonDriverConfig; + +typedef struct ImonlcdDriverConfig +{ + + kdb_boolean_t backlight; + + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + IMonLCDDiscMode discmode; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_unsigned_short_t onexit; + + + const char * protocol; + + + kdb_boolean_t reboot; + + + const char * size; + +} ImonlcdDriverConfig; + +typedef struct IOWarriorDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + kdb_boolean_t extendedmode; + + + const char * file; + + + kdb_boolean_t lastline; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * serialnumber; + + + const char * size; + +} IOWarriorDriverConfig; + +typedef struct IrManDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + const char * config; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + +} IrManDriverConfig; + +typedef struct IrtransDriverConfig +{ + + kdb_boolean_t backlight; + + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * file; + + + const char * hostname; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * size; + +} IrtransDriverConfig; + +typedef struct JoyDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + const char * mapAxis1neg; + + + const char * mapAxis1pos; + + + const char * mapAxis2neg; + + + const char * mapAxis2pos; + + + const char * mapButton1; + + + const char * mapButton2; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + +} JoyDriverConfig; + +typedef struct Lb216DriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + kdb_unsigned_short_t speed; + +} Lb216DriverConfig; + +typedef struct Lcdm001DriverConfig +{ + + const char * backkey; + + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + const char * forwardkey; + + + const char * mainmenukey; + + + kdb_unsigned_short_t offbrightness; + + + const char * pausekey; + + + kdb_boolean_t reboot; + +} Lcdm001DriverConfig; + +typedef struct LctermDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * size; + +} LctermDriverConfig; + +typedef struct Linux_inputDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + +} Linux_inputDriverConfig; + +typedef struct LircDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * file; + + + const char * lircrc; + + + kdb_unsigned_short_t offbrightness; + + + const char * prog; + + + kdb_boolean_t reboot; + +} LircDriverConfig; + +typedef struct LisDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * file; + + + kdb_boolean_t lastline; + + + kdb_unsigned_short_t offbrightness; + + + const char * productid; + + + kdb_boolean_t reboot; + + + const char * size; + + + const char * vendorid; + +} LisDriverConfig; + +typedef struct MD8800DriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * size; + +} MD8800DriverConfig; + +typedef struct Mdm166aDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + ElektraEnumMdm166aClock clock; + + + kdb_unsigned_short_t contrast; + + + kdb_boolean_t dimming; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t offdimming; + + + kdb_boolean_t reboot; + +} Mdm166aDriverConfig; + +typedef struct Ms6931DriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * size; + +} Ms6931DriverConfig; + +typedef struct Mtc_s16209xDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + +} Mtc_s16209xDriverConfig; + +typedef struct MtxOrbDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_boolean_t hasadjustablebacklight; + + + const char * keymapA; + + + const char * keymapB; + + + const char * keymapC; + + + const char * keymapD; + + + const char * keymapE; + + + const char * keymapF; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * size; + + + kdb_unsigned_short_t speed; + + + ElektraEnumMtxorbType type; + +} MtxOrbDriverConfig; + +typedef struct Mx5000DriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + kdb_unsigned_long_t waitafterrefresh; + +} Mx5000DriverConfig; + +typedef struct NoritakeVFDDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_unsigned_long_t parity; + + + kdb_boolean_t reboot; + + + const char * size; + + + kdb_unsigned_long_t speed; + +} NoritakeVFDDriverConfig; + +typedef struct Olimex_MOD_LCD1x9DriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + +} Olimex_MOD_LCD1x9DriverConfig; + +typedef struct PicolcdDriverConfig +{ + + kdb_boolean_t backlight; + + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * file; + + + kdb_boolean_t key0light; + + + kdb_boolean_t key1light; + + + kdb_boolean_t key2light; + + + kdb_boolean_t key3light; + + + kdb_boolean_t key4light; + + + kdb_boolean_t key5light; + + + kdb_boolean_t keylights; + + + kdb_unsigned_short_t keyrepeatdelay; + + + kdb_unsigned_short_t keyrepeatinterval; + + + kdb_unsigned_short_t keytimeout; + + + kdb_boolean_t linklights; + + + kdb_unsigned_long_t lircflushthreshold; + + + const char * lirchost; + + + kdb_unsigned_short_t lircport; + + + kdb_boolean_t lirctimeUs; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + +} PicolcdDriverConfig; + +typedef struct PyramidDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + +} PyramidDriverConfig; + +typedef struct RawserialDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * size; + + + kdb_unsigned_long_t speed; + + + kdb_float_t updaterate; + +} RawserialDriverConfig; + +typedef struct Sed1330DriverConfig +{ + + kdb_unsigned_short_t brightness; + + + const char * cellsize; + + + ElektraEnumSed1330Connectiontype connectiontype; + + + kdb_unsigned_short_t contrast; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + const char * port; + + + kdb_boolean_t reboot; + + + ElektraEnumSed1330Type type; + +} Sed1330DriverConfig; + +typedef struct Sed1520DriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + kdb_unsigned_short_t delaymult; + + + const char * file; + + + kdb_boolean_t haveinverter; + + + kdb_unsigned_short_t interfacetype; + + + kdb_boolean_t invertedmapping; + + + kdb_unsigned_short_t offbrightness; + + + const char * port; + + + kdb_boolean_t reboot; + + + kdb_boolean_t usehardreset; + +} Sed1520DriverConfig; + +typedef struct SerialPOSDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + const char * cellsize; + + + kdb_unsigned_short_t contrast; + + + kdb_unsigned_long_t customChars; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * size; + + + kdb_unsigned_short_t speed; + + + ElektraEnumSerialposType type; + +} SerialPOSDriverConfig; + +typedef struct SerialVFDDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + kdb_unsigned_long_t custom_characters; + + + const char * device; + + + const char * file; + + + kdb_boolean_t iso88591; + + + kdb_unsigned_short_t offbrightness; + + + const char * port; + + + kdb_unsigned_short_t portwait; + + + kdb_boolean_t reboot; + + + const char * size; + + + kdb_unsigned_short_t speed; + + + kdb_unsigned_short_t type; + + + kdb_boolean_t useParallel; + +} SerialVFDDriverConfig; + +typedef struct SliDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + kdb_unsigned_short_t speed; + +} SliDriverConfig; + +typedef struct Stv5730DriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + const char * port; + + + kdb_boolean_t reboot; + +} Stv5730DriverConfig; + +typedef struct SureElecDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + kdb_unsigned_short_t edition; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * size; + +} SureElecDriverConfig; + +typedef struct SvgaDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * file; + + + const char * mode; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * size; + +} SvgaDriverConfig; + +typedef struct T6963DriverConfig +{ + + kdb_boolean_t bidirectional; + + + kdb_unsigned_short_t brightness; + + + kdb_boolean_t cleargraphic; + + + kdb_unsigned_short_t contrast; + + + kdb_boolean_t delaybus; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + const char * port; + + + kdb_boolean_t reboot; + + + const char * size; + +} T6963DriverConfig; + +typedef struct TextDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * size; + +} TextDriverConfig; + +typedef struct TyanDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * size; + + + kdb_unsigned_short_t speed; + +} TyanDriverConfig; + +typedef struct Ula200DriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * file; + + + const char * keymapA; + + + const char * keymapB; + + + const char * keymapC; + + + const char * keymapD; + + + const char * keymapE; + + + const char * keymapF; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * size; + +} Ula200DriverConfig; + +typedef struct Vlsys_m428DriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + +} Vlsys_m428DriverConfig; + +typedef struct XosdDriverConfig +{ + + const char * Font; + + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + const char * offset; + + + kdb_boolean_t reboot; + + + const char * size; + +} XosdDriverConfig; + +typedef struct Yard2LCDDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * size; + +} Yard2LCDDriverConfig; + + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (BayradDriverConfig, StructBayradDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (BayradDriverConfig, StructBayradDriverConfig); +ELEKTRA_SET_SIGNATURE (const BayradDriverConfig *, StructBayradDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const BayradDriverConfig *, StructBayradDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (CFontzDriverConfig, StructCFontzDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (CFontzDriverConfig, StructCFontzDriverConfig); +ELEKTRA_SET_SIGNATURE (const CFontzDriverConfig *, StructCFontzDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const CFontzDriverConfig *, StructCFontzDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (CFontzPacketDriverConfig, StructCFontzPacketDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (CFontzPacketDriverConfig, StructCFontzPacketDriverConfig); +ELEKTRA_SET_SIGNATURE (const CFontzPacketDriverConfig *, StructCFontzPacketDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const CFontzPacketDriverConfig *, StructCFontzPacketDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (CursesDriverConfig, StructCursesDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (CursesDriverConfig, StructCursesDriverConfig); +ELEKTRA_SET_SIGNATURE (const CursesDriverConfig *, StructCursesDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const CursesDriverConfig *, StructCursesDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (CwLnxDriverConfig, StructCwLnxDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (CwLnxDriverConfig, StructCwLnxDriverConfig); +ELEKTRA_SET_SIGNATURE (const CwLnxDriverConfig *, StructCwLnxDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const CwLnxDriverConfig *, StructCwLnxDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Ea65DriverConfig, StructEa65DriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Ea65DriverConfig, StructEa65DriverConfig); +ELEKTRA_SET_SIGNATURE (const Ea65DriverConfig *, StructEa65DriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Ea65DriverConfig *, StructEa65DriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (EyeboxOneDriverConfig, StructEyeboxOneDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (EyeboxOneDriverConfig, StructEyeboxOneDriverConfig); +ELEKTRA_SET_SIGNATURE (const EyeboxOneDriverConfig *, StructEyeboxOneDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const EyeboxOneDriverConfig *, StructEyeboxOneDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (FutabaDriverConfig, StructFutabaDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (FutabaDriverConfig, StructFutabaDriverConfig); +ELEKTRA_SET_SIGNATURE (const FutabaDriverConfig *, StructFutabaDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const FutabaDriverConfig *, StructFutabaDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (G15DriverConfig, StructG15DriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (G15DriverConfig, StructG15DriverConfig); +ELEKTRA_SET_SIGNATURE (const G15DriverConfig *, StructG15DriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const G15DriverConfig *, StructG15DriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (GlcdDriverConfig, StructGlcdDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (GlcdDriverConfig, StructGlcdDriverConfig); +ELEKTRA_SET_SIGNATURE (const GlcdDriverConfig *, StructGlcdDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const GlcdDriverConfig *, StructGlcdDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (GlcdlibDriverConfig, StructGlcdlibDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (GlcdlibDriverConfig, StructGlcdlibDriverConfig); +ELEKTRA_SET_SIGNATURE (const GlcdlibDriverConfig *, StructGlcdlibDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const GlcdlibDriverConfig *, StructGlcdlibDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (GlkDriverConfig, StructGlkDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (GlkDriverConfig, StructGlkDriverConfig); +ELEKTRA_SET_SIGNATURE (const GlkDriverConfig *, StructGlkDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const GlkDriverConfig *, StructGlkDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Hd44780DriverConfig, StructHd44780DriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Hd44780DriverConfig, StructHd44780DriverConfig); +ELEKTRA_SET_SIGNATURE (const Hd44780DriverConfig *, StructHd44780DriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Hd44780DriverConfig *, StructHd44780DriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Icp_a106DriverConfig, StructIcp_a106DriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Icp_a106DriverConfig, StructIcp_a106DriverConfig); +ELEKTRA_SET_SIGNATURE (const Icp_a106DriverConfig *, StructIcp_a106DriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Icp_a106DriverConfig *, StructIcp_a106DriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (ImonDriverConfig, StructImonDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (ImonDriverConfig, StructImonDriverConfig); +ELEKTRA_SET_SIGNATURE (const ImonDriverConfig *, StructImonDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const ImonDriverConfig *, StructImonDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (ImonlcdDriverConfig, StructImonlcdDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (ImonlcdDriverConfig, StructImonlcdDriverConfig); +ELEKTRA_SET_SIGNATURE (const ImonlcdDriverConfig *, StructImonlcdDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const ImonlcdDriverConfig *, StructImonlcdDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (IOWarriorDriverConfig, StructIOWarriorDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (IOWarriorDriverConfig, StructIOWarriorDriverConfig); +ELEKTRA_SET_SIGNATURE (const IOWarriorDriverConfig *, StructIOWarriorDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const IOWarriorDriverConfig *, StructIOWarriorDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (IrManDriverConfig, StructIrManDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (IrManDriverConfig, StructIrManDriverConfig); +ELEKTRA_SET_SIGNATURE (const IrManDriverConfig *, StructIrManDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const IrManDriverConfig *, StructIrManDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (IrtransDriverConfig, StructIrtransDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (IrtransDriverConfig, StructIrtransDriverConfig); +ELEKTRA_SET_SIGNATURE (const IrtransDriverConfig *, StructIrtransDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const IrtransDriverConfig *, StructIrtransDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (JoyDriverConfig, StructJoyDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (JoyDriverConfig, StructJoyDriverConfig); +ELEKTRA_SET_SIGNATURE (const JoyDriverConfig *, StructJoyDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const JoyDriverConfig *, StructJoyDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Lb216DriverConfig, StructLb216DriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Lb216DriverConfig, StructLb216DriverConfig); +ELEKTRA_SET_SIGNATURE (const Lb216DriverConfig *, StructLb216DriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Lb216DriverConfig *, StructLb216DriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Lcdm001DriverConfig, StructLcdm001DriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Lcdm001DriverConfig, StructLcdm001DriverConfig); +ELEKTRA_SET_SIGNATURE (const Lcdm001DriverConfig *, StructLcdm001DriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Lcdm001DriverConfig *, StructLcdm001DriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (LctermDriverConfig, StructLctermDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (LctermDriverConfig, StructLctermDriverConfig); +ELEKTRA_SET_SIGNATURE (const LctermDriverConfig *, StructLctermDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const LctermDriverConfig *, StructLctermDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Linux_inputDriverConfig, StructLinux_inputDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Linux_inputDriverConfig, StructLinux_inputDriverConfig); +ELEKTRA_SET_SIGNATURE (const Linux_inputDriverConfig *, StructLinux_inputDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Linux_inputDriverConfig *, StructLinux_inputDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (LircDriverConfig, StructLircDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (LircDriverConfig, StructLircDriverConfig); +ELEKTRA_SET_SIGNATURE (const LircDriverConfig *, StructLircDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const LircDriverConfig *, StructLircDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (LisDriverConfig, StructLisDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (LisDriverConfig, StructLisDriverConfig); +ELEKTRA_SET_SIGNATURE (const LisDriverConfig *, StructLisDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const LisDriverConfig *, StructLisDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (MD8800DriverConfig, StructMD8800DriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (MD8800DriverConfig, StructMD8800DriverConfig); +ELEKTRA_SET_SIGNATURE (const MD8800DriverConfig *, StructMD8800DriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const MD8800DriverConfig *, StructMD8800DriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Mdm166aDriverConfig, StructMdm166aDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Mdm166aDriverConfig, StructMdm166aDriverConfig); +ELEKTRA_SET_SIGNATURE (const Mdm166aDriverConfig *, StructMdm166aDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Mdm166aDriverConfig *, StructMdm166aDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Ms6931DriverConfig, StructMs6931DriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Ms6931DriverConfig, StructMs6931DriverConfig); +ELEKTRA_SET_SIGNATURE (const Ms6931DriverConfig *, StructMs6931DriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Ms6931DriverConfig *, StructMs6931DriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Mtc_s16209xDriverConfig, StructMtc_s16209xDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Mtc_s16209xDriverConfig, StructMtc_s16209xDriverConfig); +ELEKTRA_SET_SIGNATURE (const Mtc_s16209xDriverConfig *, StructMtc_s16209xDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Mtc_s16209xDriverConfig *, StructMtc_s16209xDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (MtxOrbDriverConfig, StructMtxOrbDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (MtxOrbDriverConfig, StructMtxOrbDriverConfig); +ELEKTRA_SET_SIGNATURE (const MtxOrbDriverConfig *, StructMtxOrbDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const MtxOrbDriverConfig *, StructMtxOrbDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Mx5000DriverConfig, StructMx5000DriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Mx5000DriverConfig, StructMx5000DriverConfig); +ELEKTRA_SET_SIGNATURE (const Mx5000DriverConfig *, StructMx5000DriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Mx5000DriverConfig *, StructMx5000DriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (NoritakeVFDDriverConfig, StructNoritakeVFDDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (NoritakeVFDDriverConfig, StructNoritakeVFDDriverConfig); +ELEKTRA_SET_SIGNATURE (const NoritakeVFDDriverConfig *, StructNoritakeVFDDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const NoritakeVFDDriverConfig *, StructNoritakeVFDDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Olimex_MOD_LCD1x9DriverConfig, StructOlimex_MOD_LCD1x9DriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Olimex_MOD_LCD1x9DriverConfig, StructOlimex_MOD_LCD1x9DriverConfig); +ELEKTRA_SET_SIGNATURE (const Olimex_MOD_LCD1x9DriverConfig *, StructOlimex_MOD_LCD1x9DriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Olimex_MOD_LCD1x9DriverConfig *, StructOlimex_MOD_LCD1x9DriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (PicolcdDriverConfig, StructPicolcdDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (PicolcdDriverConfig, StructPicolcdDriverConfig); +ELEKTRA_SET_SIGNATURE (const PicolcdDriverConfig *, StructPicolcdDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const PicolcdDriverConfig *, StructPicolcdDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (PyramidDriverConfig, StructPyramidDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (PyramidDriverConfig, StructPyramidDriverConfig); +ELEKTRA_SET_SIGNATURE (const PyramidDriverConfig *, StructPyramidDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const PyramidDriverConfig *, StructPyramidDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (RawserialDriverConfig, StructRawserialDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (RawserialDriverConfig, StructRawserialDriverConfig); +ELEKTRA_SET_SIGNATURE (const RawserialDriverConfig *, StructRawserialDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const RawserialDriverConfig *, StructRawserialDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Sed1330DriverConfig, StructSed1330DriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Sed1330DriverConfig, StructSed1330DriverConfig); +ELEKTRA_SET_SIGNATURE (const Sed1330DriverConfig *, StructSed1330DriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Sed1330DriverConfig *, StructSed1330DriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Sed1520DriverConfig, StructSed1520DriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Sed1520DriverConfig, StructSed1520DriverConfig); +ELEKTRA_SET_SIGNATURE (const Sed1520DriverConfig *, StructSed1520DriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Sed1520DriverConfig *, StructSed1520DriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (SerialPOSDriverConfig, StructSerialPOSDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SerialPOSDriverConfig, StructSerialPOSDriverConfig); +ELEKTRA_SET_SIGNATURE (const SerialPOSDriverConfig *, StructSerialPOSDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SerialPOSDriverConfig *, StructSerialPOSDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (SerialVFDDriverConfig, StructSerialVFDDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SerialVFDDriverConfig, StructSerialVFDDriverConfig); +ELEKTRA_SET_SIGNATURE (const SerialVFDDriverConfig *, StructSerialVFDDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SerialVFDDriverConfig *, StructSerialVFDDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (SliDriverConfig, StructSliDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SliDriverConfig, StructSliDriverConfig); +ELEKTRA_SET_SIGNATURE (const SliDriverConfig *, StructSliDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SliDriverConfig *, StructSliDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Stv5730DriverConfig, StructStv5730DriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Stv5730DriverConfig, StructStv5730DriverConfig); +ELEKTRA_SET_SIGNATURE (const Stv5730DriverConfig *, StructStv5730DriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Stv5730DriverConfig *, StructStv5730DriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (SureElecDriverConfig, StructSureElecDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SureElecDriverConfig, StructSureElecDriverConfig); +ELEKTRA_SET_SIGNATURE (const SureElecDriverConfig *, StructSureElecDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SureElecDriverConfig *, StructSureElecDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (SvgaDriverConfig, StructSvgaDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SvgaDriverConfig, StructSvgaDriverConfig); +ELEKTRA_SET_SIGNATURE (const SvgaDriverConfig *, StructSvgaDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SvgaDriverConfig *, StructSvgaDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (T6963DriverConfig, StructT6963DriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (T6963DriverConfig, StructT6963DriverConfig); +ELEKTRA_SET_SIGNATURE (const T6963DriverConfig *, StructT6963DriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const T6963DriverConfig *, StructT6963DriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (TextDriverConfig, StructTextDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (TextDriverConfig, StructTextDriverConfig); +ELEKTRA_SET_SIGNATURE (const TextDriverConfig *, StructTextDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const TextDriverConfig *, StructTextDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (TyanDriverConfig, StructTyanDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (TyanDriverConfig, StructTyanDriverConfig); +ELEKTRA_SET_SIGNATURE (const TyanDriverConfig *, StructTyanDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const TyanDriverConfig *, StructTyanDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Ula200DriverConfig, StructUla200DriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Ula200DriverConfig, StructUla200DriverConfig); +ELEKTRA_SET_SIGNATURE (const Ula200DriverConfig *, StructUla200DriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Ula200DriverConfig *, StructUla200DriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Vlsys_m428DriverConfig, StructVlsys_m428DriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Vlsys_m428DriverConfig, StructVlsys_m428DriverConfig); +ELEKTRA_SET_SIGNATURE (const Vlsys_m428DriverConfig *, StructVlsys_m428DriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Vlsys_m428DriverConfig *, StructVlsys_m428DriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (XosdDriverConfig, StructXosdDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (XosdDriverConfig, StructXosdDriverConfig); +ELEKTRA_SET_SIGNATURE (const XosdDriverConfig *, StructXosdDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const XosdDriverConfig *, StructXosdDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Yard2LCDDriverConfig, StructYard2LCDDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Yard2LCDDriverConfig, StructYard2LCDDriverConfig); +ELEKTRA_SET_SIGNATURE (const Yard2LCDDriverConfig *, StructYard2LCDDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Yard2LCDDriverConfig *, StructYard2LCDDriverConfig); + + + +// clang-format off + +// clang-format on + +// clang-format off + +/** +* Tag name for 'bayrad/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_BAYRAD Bayrad + +/** +* Tag name for 'bayrad/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_BAYRAD_BRIGHTNESS BayradBrightness + +/** +* Tag name for 'bayrad/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_BAYRAD_CONTRAST BayradContrast + +/** +* Tag name for 'bayrad/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_BAYRAD_DEVICE BayradDevice + +/** +* Tag name for 'bayrad/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_BAYRAD_FILE BayradFile + +/** +* Tag name for 'bayrad/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_BAYRAD_OFFBRIGHTNESS BayradOffbrightness + +/** +* Tag name for 'bayrad/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_BAYRAD_REBOOT BayradReboot + +/** +* Tag name for 'bayrad/#/speed' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_BAYRAD_SPEED BayradSpeed + +/** +* Tag name for 'cfontz/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZ Cfontz + +/** +* Tag name for 'cfontz/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZ_BRIGHTNESS CfontzBrightness + +/** +* Tag name for 'cfontz/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZ_CONTRAST CfontzContrast + +/** +* Tag name for 'cfontz/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZ_DEVICE CfontzDevice + +/** +* Tag name for 'cfontz/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZ_FILE CfontzFile + +/** +* Tag name for 'cfontz/#/newfirmware' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZ_NEWFIRMWARE CfontzNewfirmware + +/** +* Tag name for 'cfontz/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZ_OFFBRIGHTNESS CfontzOffbrightness + +/** +* Tag name for 'cfontz/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZ_REBOOT CfontzReboot + +/** +* Tag name for 'cfontz/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZ_SIZE CfontzSize + +/** +* Tag name for 'cfontz/#/speed' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZ_SPEED CfontzSpeed + +/** +* Tag name for 'cfontzpacket/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZPACKET Cfontzpacket + +/** +* Tag name for 'cfontzpacket/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZPACKET_BRIGHTNESS CfontzpacketBrightness + +/** +* Tag name for 'cfontzpacket/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZPACKET_CONTRAST CfontzpacketContrast + +/** +* Tag name for 'cfontzpacket/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZPACKET_DEVICE CfontzpacketDevice + +/** +* Tag name for 'cfontzpacket/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZPACKET_FILE CfontzpacketFile + +/** +* Tag name for 'cfontzpacket/#/model' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZPACKET_MODEL CfontzpacketModel + +/** +* Tag name for 'cfontzpacket/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZPACKET_OFFBRIGHTNESS CfontzpacketOffbrightness + +/** +* Tag name for 'cfontzpacket/#/oldfirmware' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZPACKET_OLDFIRMWARE CfontzpacketOldfirmware + +/** +* Tag name for 'cfontzpacket/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZPACKET_REBOOT CfontzpacketReboot + +/** +* Tag name for 'cfontzpacket/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZPACKET_SIZE CfontzpacketSize + +/** +* Tag name for 'cfontzpacket/#/speed' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZPACKET_SPEED CfontzpacketSpeed + +/** +* Tag name for 'cfontzpacket/#/usb' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZPACKET_USB CfontzpacketUsb + +/** +* Tag name for 'curses/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CURSES Curses + +/** +* Tag name for 'curses/#/background' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CURSES_BACKGROUND CursesBackground + +/** +* Tag name for 'curses/#/backlight' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CURSES_BACKLIGHT CursesBacklight + +/** +* Tag name for 'curses/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CURSES_BRIGHTNESS CursesBrightness + +/** +* Tag name for 'curses/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CURSES_CONTRAST CursesContrast + +/** +* Tag name for 'curses/#/drawborder' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CURSES_DRAWBORDER CursesDrawborder + +/** +* Tag name for 'curses/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CURSES_FILE CursesFile + +/** +* Tag name for 'curses/#/foreground' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CURSES_FOREGROUND CursesForeground + +/** +* Tag name for 'curses/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CURSES_OFFBRIGHTNESS CursesOffbrightness + +/** +* Tag name for 'curses/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CURSES_REBOOT CursesReboot + +/** +* Tag name for 'curses/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CURSES_SIZE CursesSize + +/** +* Tag name for 'curses/#/topleftx' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CURSES_TOPLEFTX CursesTopleftx + +/** +* Tag name for 'curses/#/toplefty' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CURSES_TOPLEFTY CursesToplefty + +/** +* Tag name for 'curses/#/useacs' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CURSES_USEACS CursesUseacs + +/** +* Tag name for 'cwlnx/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CWLNX Cwlnx + +/** +* Tag name for 'cwlnx/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CWLNX_BRIGHTNESS CwlnxBrightness + +/** +* Tag name for 'cwlnx/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CWLNX_CONTRAST CwlnxContrast + +/** +* Tag name for 'cwlnx/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CWLNX_DEVICE CwlnxDevice + +/** +* Tag name for 'cwlnx/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CWLNX_FILE CwlnxFile + +/** +* Tag name for 'cwlnx/#/keymap_a' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CWLNX_KEYMAP_A CwlnxKeymapA + +/** +* Tag name for 'cwlnx/#/keymap_b' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CWLNX_KEYMAP_B CwlnxKeymapB + +/** +* Tag name for 'cwlnx/#/keymap_c' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CWLNX_KEYMAP_C CwlnxKeymapC + +/** +* Tag name for 'cwlnx/#/keymap_d' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CWLNX_KEYMAP_D CwlnxKeymapD + +/** +* Tag name for 'cwlnx/#/keymap_e' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CWLNX_KEYMAP_E CwlnxKeymapE + +/** +* Tag name for 'cwlnx/#/keymap_f' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CWLNX_KEYMAP_F CwlnxKeymapF + +/** +* Tag name for 'cwlnx/#/keypad' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CWLNX_KEYPAD CwlnxKeypad + +/** +* Tag name for 'cwlnx/#/keypad_test_mode' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CWLNX_KEYPAD_TEST_MODE CwlnxKeypadTestMode + +/** +* Tag name for 'cwlnx/#/model' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CWLNX_MODEL CwlnxModel + +/** +* Tag name for 'cwlnx/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CWLNX_OFFBRIGHTNESS CwlnxOffbrightness + +/** +* Tag name for 'cwlnx/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CWLNX_REBOOT CwlnxReboot + +/** +* Tag name for 'cwlnx/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CWLNX_SIZE CwlnxSize + +/** +* Tag name for 'cwlnx/#/speed' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CWLNX_SPEED CwlnxSpeed + +/** +* Tag name for 'ea65/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EA65 Ea65 + +/** +* Tag name for 'ea65/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EA65_BRIGHTNESS Ea65Brightness + +/** +* Tag name for 'ea65/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EA65_CONTRAST Ea65Contrast + +/** +* Tag name for 'ea65/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EA65_FILE Ea65File + +/** +* Tag name for 'ea65/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EA65_OFFBRIGHTNESS Ea65Offbrightness + +/** +* Tag name for 'ea65/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EA65_REBOOT Ea65Reboot + +/** +* Tag name for 'eyeboxone/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EYEBOXONE Eyeboxone + +/** +* Tag name for 'eyeboxone/#/backlight' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EYEBOXONE_BACKLIGHT EyeboxoneBacklight + +/** +* Tag name for 'eyeboxone/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EYEBOXONE_BRIGHTNESS EyeboxoneBrightness + +/** +* Tag name for 'eyeboxone/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EYEBOXONE_CONTRAST EyeboxoneContrast + +/** +* Tag name for 'eyeboxone/#/cursor' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EYEBOXONE_CURSOR EyeboxoneCursor + +/** +* Tag name for 'eyeboxone/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EYEBOXONE_DEVICE EyeboxoneDevice + +/** +* Tag name for 'eyeboxone/#/downkey' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EYEBOXONE_DOWNKEY EyeboxoneDownkey + +/** +* Tag name for 'eyeboxone/#/escapekey' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EYEBOXONE_ESCAPEKEY EyeboxoneEscapekey + +/** +* Tag name for 'eyeboxone/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EYEBOXONE_FILE EyeboxoneFile + +/** +* Tag name for 'eyeboxone/#/keypad_test_mode' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EYEBOXONE_KEYPAD_TEST_MODE EyeboxoneKeypadTestMode + +/** +* Tag name for 'eyeboxone/#/leftkey' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EYEBOXONE_LEFTKEY EyeboxoneLeftkey + +/** +* Tag name for 'eyeboxone/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EYEBOXONE_OFFBRIGHTNESS EyeboxoneOffbrightness + +/** +* Tag name for 'eyeboxone/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EYEBOXONE_REBOOT EyeboxoneReboot + +/** +* Tag name for 'eyeboxone/#/rightkey' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EYEBOXONE_RIGHTKEY EyeboxoneRightkey + +/** +* Tag name for 'eyeboxone/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EYEBOXONE_SIZE EyeboxoneSize + +/** +* Tag name for 'eyeboxone/#/speed' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EYEBOXONE_SPEED EyeboxoneSpeed + +/** +* Tag name for 'eyeboxone/#/upkey' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EYEBOXONE_UPKEY EyeboxoneUpkey + +/** +* Tag name for 'futaba/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_FUTABA Futaba + +/** +* Tag name for 'futaba/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_FUTABA_FILE FutabaFile + +/** +* Tag name for 'g15/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_G15 G15 + +/** +* Tag name for 'g15/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_G15_BRIGHTNESS G15Brightness + +/** +* Tag name for 'g15/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_G15_CONTRAST G15Contrast + +/** +* Tag name for 'g15/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_G15_FILE G15File + +/** +* Tag name for 'g15/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_G15_OFFBRIGHTNESS G15Offbrightness + +/** +* Tag name for 'g15/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_G15_REBOOT G15Reboot + +/** +* Tag name for 'g15/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_G15_SIZE G15Size + +/** +* Tag name for 'glcd/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD Glcd + +/** +* Tag name for 'glcd/#/bidirectional' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_BIDIRECTIONAL GlcdBidirectional + +/** +* Tag name for 'glcd/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_BRIGHTNESS GlcdBrightness + +/** +* Tag name for 'glcd/#/cellsize' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_CELLSIZE GlcdCellsize + +/** +* Tag name for 'glcd/#/connectiontype' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_CONNECTIONTYPE GlcdConnectiontype + +/** +* Tag name for 'glcd/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_CONTRAST GlcdContrast + +/** +* Tag name for 'glcd/#/delaybus' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_DELAYBUS GlcdDelaybus + +/** +* Tag name for 'glcd/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_FILE GlcdFile + +/** +* Tag name for 'glcd/#/fonthasicons' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_FONTHASICONS GlcdFonthasicons + +/** +* Tag name for 'glcd/#/keymap_a' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_KEYMAP_A GlcdKeymapA + +/** +* Tag name for 'glcd/#/keymap_b' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_KEYMAP_B GlcdKeymapB + +/** +* Tag name for 'glcd/#/keymap_c' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_KEYMAP_C GlcdKeymapC + +/** +* Tag name for 'glcd/#/keymap_d' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_KEYMAP_D GlcdKeymapD + +/** +* Tag name for 'glcd/#/keymap_e' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_KEYMAP_E GlcdKeymapE + +/** +* Tag name for 'glcd/#/keymap_f' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_KEYMAP_F GlcdKeymapF + +/** +* Tag name for 'glcd/#/keyrepeatdelay' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_KEYREPEATDELAY GlcdKeyrepeatdelay + +/** +* Tag name for 'glcd/#/keyrepeatinterval' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_KEYREPEATINTERVAL GlcdKeyrepeatinterval + +/** +* Tag name for 'glcd/#/normal_font' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_NORMAL_FONT GlcdNormalFont + +/** +* Tag name for 'glcd/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_OFFBRIGHTNESS GlcdOffbrightness + +/** +* Tag name for 'glcd/#/picolcdgfx_inverted' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_PICOLCDGFX_INVERTED GlcdPicolcdgfxInverted + +/** +* Tag name for 'glcd/#/picolcdgfx_keytimeout' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_PICOLCDGFX_KEYTIMEOUT GlcdPicolcdgfxKeytimeout + +/** +* Tag name for 'glcd/#/port' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_PORT GlcdPort + +/** +* Tag name for 'glcd/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_REBOOT GlcdReboot + +/** +* Tag name for 'glcd/#/serdisp_device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_SERDISP_DEVICE GlcdSerdispDevice + +/** +* Tag name for 'glcd/#/serdisp_name' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_SERDISP_NAME GlcdSerdispName + +/** +* Tag name for 'glcd/#/serdisp_options' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_SERDISP_OPTIONS GlcdSerdispOptions + +/** +* Tag name for 'glcd/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_SIZE GlcdSize + +/** +* Tag name for 'glcd/#/useft2' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_USEFT2 GlcdUseft2 + +/** +* Tag name for 'glcd/#/x11_backlightcolor' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_X11_BACKLIGHTCOLOR GlcdX11Backlightcolor + +/** +* Tag name for 'glcd/#/x11_border' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_X11_BORDER GlcdX11Border + +/** +* Tag name for 'glcd/#/x11_inverted' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_X11_INVERTED GlcdX11Inverted + +/** +* Tag name for 'glcd/#/x11_pixelcolor' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_X11_PIXELCOLOR GlcdX11Pixelcolor + +/** +* Tag name for 'glcd/#/x11_pixelsize' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_X11_PIXELSIZE GlcdX11Pixelsize + +/** +* Tag name for 'glcdlib/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB Glcdlib + +/** +* Tag name for 'glcdlib/#/CharEncoding' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_CHARENCODING GlcdlibCharEncoding + +/** +* Tag name for 'glcdlib/#/backlight' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_BACKLIGHT GlcdlibBacklight + +/** +* Tag name for 'glcdlib/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_BRIGHTNESS GlcdlibBrightness + +/** +* Tag name for 'glcdlib/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_CONTRAST GlcdlibContrast + +/** +* Tag name for 'glcdlib/#/driver' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_DRIVER GlcdlibDriver + +/** +* Tag name for 'glcdlib/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_FILE GlcdlibFile + +/** +* Tag name for 'glcdlib/#/fontfile' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_FONTFILE GlcdlibFontfile + +/** +* Tag name for 'glcdlib/#/invert' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_INVERT GlcdlibInvert + +/** +* Tag name for 'glcdlib/#/minfontfacesize' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_MINFONTFACESIZE GlcdlibMinfontfacesize + +/** +* Tag name for 'glcdlib/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_OFFBRIGHTNESS GlcdlibOffbrightness + +/** +* Tag name for 'glcdlib/#/pixelshiftx' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_PIXELSHIFTX GlcdlibPixelshiftx + +/** +* Tag name for 'glcdlib/#/pixelshifty' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_PIXELSHIFTY GlcdlibPixelshifty + +/** +* Tag name for 'glcdlib/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_REBOOT GlcdlibReboot + +/** +* Tag name for 'glcdlib/#/showbigborder' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_SHOWBIGBORDER GlcdlibShowbigborder + +/** +* Tag name for 'glcdlib/#/showdebugframe' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_SHOWDEBUGFRAME GlcdlibShowdebugframe + +/** +* Tag name for 'glcdlib/#/showthinborder' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_SHOWTHINBORDER GlcdlibShowthinborder + +/** +* Tag name for 'glcdlib/#/textresolution' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_TEXTRESOLUTION GlcdlibTextresolution + +/** +* Tag name for 'glcdlib/#/upsidedown' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_UPSIDEDOWN GlcdlibUpsidedown + +/** +* Tag name for 'glcdlib/#/useft2' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_USEFT2 GlcdlibUseft2 + +/** +* Tag name for 'glk/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLK Glk + +/** +* Tag name for 'glk/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLK_BRIGHTNESS GlkBrightness + +/** +* Tag name for 'glk/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLK_CONTRAST GlkContrast + +/** +* Tag name for 'glk/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLK_DEVICE GlkDevice + +/** +* Tag name for 'glk/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLK_FILE GlkFile + +/** +* Tag name for 'glk/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLK_OFFBRIGHTNESS GlkOffbrightness + +/** +* Tag name for 'glk/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLK_REBOOT GlkReboot + +/** +* Tag name for 'glk/#/speed' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLK_SPEED GlkSpeed + +/** +* Tag name for 'hd44780/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780 Hd44780 + +/** +* Tag name for 'hd44780/#/backlight' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_BACKLIGHT Hd44780Backlight + +/** +* Tag name for 'hd44780/#/backlightcmdoff' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_BACKLIGHTCMDOFF Hd44780Backlightcmdoff + +/** +* Tag name for 'hd44780/#/backlightcmdon' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_BACKLIGHTCMDON Hd44780Backlightcmdon + +/** +* Tag name for 'hd44780/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_BRIGHTNESS Hd44780Brightness + +/** +* Tag name for 'hd44780/#/charmap' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_CHARMAP Hd44780Charmap + +/** +* Tag name for 'hd44780/#/connectiontype' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_CONNECTIONTYPE Hd44780Connectiontype + +/** +* Tag name for 'hd44780/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_CONTRAST Hd44780Contrast + +/** +* Tag name for 'hd44780/#/delaybus' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_DELAYBUS Hd44780Delaybus + +/** +* Tag name for 'hd44780/#/delaymult' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_DELAYMULT Hd44780Delaymult + +/** +* Tag name for 'hd44780/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_DEVICE Hd44780Device + +/** +* Tag name for 'hd44780/#/extendedmode' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_EXTENDEDMODE Hd44780Extendedmode + +/** +* Tag name for 'hd44780/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_FILE Hd44780File + +/** +* Tag name for 'hd44780/#/fontbank' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_FONTBANK Hd44780Fontbank + +/** +* Tag name for 'hd44780/#/keepalivedisplay' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_KEEPALIVEDISPLAY Hd44780Keepalivedisplay + +/** +* Tag name for 'hd44780/#/keymatrix_4_1' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_KEYMATRIX_4_1 Hd44780Keymatrix41 + +/** +* Tag name for 'hd44780/#/keymatrix_4_2' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_KEYMATRIX_4_2 Hd44780Keymatrix42 + +/** +* Tag name for 'hd44780/#/keymatrix_4_3' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_KEYMATRIX_4_3 Hd44780Keymatrix43 + +/** +* Tag name for 'hd44780/#/keymatrix_4_4' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_KEYMATRIX_4_4 Hd44780Keymatrix44 + +/** +* Tag name for 'hd44780/#/keypad' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_KEYPAD Hd44780Keypad + +/** +* Tag name for 'hd44780/#/lastline' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_LASTLINE Hd44780Lastline + +/** +* Tag name for 'hd44780/#/lineaddress' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_LINEADDRESS Hd44780Lineaddress + +/** +* Tag name for 'hd44780/#/model' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_MODEL Hd44780Model + +/** +* Tag name for 'hd44780/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_OFFBRIGHTNESS Hd44780Offbrightness + +/** +* Tag name for 'hd44780/#/outputport' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_OUTPUTPORT Hd44780Outputport + +/** +* Tag name for 'hd44780/#/port' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_PORT Hd44780Port + +/** +* Tag name for 'hd44780/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_REBOOT Hd44780Reboot + +/** +* Tag name for 'hd44780/#/refreshdisplay' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_REFRESHDISPLAY Hd44780Refreshdisplay + +/** +* Tag name for 'hd44780/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_SIZE Hd44780Size + +/** +* Tag name for 'hd44780/#/speed' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_SPEED Hd44780Speed + +/** +* Tag name for 'hd44780/#/vspan' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_VSPAN Hd44780Vspan + +/** +* Tag name for 'icp_a106/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ICP_A106 IcpA106 + +/** +* Tag name for 'icp_a106/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ICP_A106_BRIGHTNESS IcpA106Brightness + +/** +* Tag name for 'icp_a106/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ICP_A106_CONTRAST IcpA106Contrast + +/** +* Tag name for 'icp_a106/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ICP_A106_DEVICE IcpA106Device + +/** +* Tag name for 'icp_a106/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ICP_A106_FILE IcpA106File + +/** +* Tag name for 'icp_a106/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ICP_A106_OFFBRIGHTNESS IcpA106Offbrightness + +/** +* Tag name for 'icp_a106/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ICP_A106_REBOOT IcpA106Reboot + +/** +* Tag name for 'icp_a106/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ICP_A106_SIZE IcpA106Size + +/** +* Tag name for 'imon/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMON Imon + +/** +* Tag name for 'imon/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMON_BRIGHTNESS ImonBrightness + +/** +* Tag name for 'imon/#/charmap' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMON_CHARMAP ImonCharmap + +/** +* Tag name for 'imon/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMON_CONTRAST ImonContrast + +/** +* Tag name for 'imon/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMON_DEVICE ImonDevice + +/** +* Tag name for 'imon/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMON_FILE ImonFile + +/** +* Tag name for 'imon/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMON_OFFBRIGHTNESS ImonOffbrightness + +/** +* Tag name for 'imon/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMON_REBOOT ImonReboot + +/** +* Tag name for 'imon/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMON_SIZE ImonSize + +/** +* Tag name for 'imonlcd/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMONLCD Imonlcd + +/** +* Tag name for 'imonlcd/#/backlight' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMONLCD_BACKLIGHT ImonlcdBacklight + +/** +* Tag name for 'imonlcd/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMONLCD_BRIGHTNESS ImonlcdBrightness + +/** +* Tag name for 'imonlcd/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMONLCD_CONTRAST ImonlcdContrast + +/** +* Tag name for 'imonlcd/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMONLCD_DEVICE ImonlcdDevice + +/** +* Tag name for 'imonlcd/#/discmode' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMONLCD_DISCMODE ImonlcdDiscmode + +/** +* Tag name for 'imonlcd/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMONLCD_FILE ImonlcdFile + +/** +* Tag name for 'imonlcd/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMONLCD_OFFBRIGHTNESS ImonlcdOffbrightness + +/** +* Tag name for 'imonlcd/#/onexit' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMONLCD_ONEXIT ImonlcdOnexit + +/** +* Tag name for 'imonlcd/#/protocol' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMONLCD_PROTOCOL ImonlcdProtocol + +/** +* Tag name for 'imonlcd/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMONLCD_REBOOT ImonlcdReboot + +/** +* Tag name for 'imonlcd/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMONLCD_SIZE ImonlcdSize + +/** +* Tag name for 'iowarrior/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IOWARRIOR Iowarrior + +/** +* Tag name for 'iowarrior/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IOWARRIOR_BRIGHTNESS IowarriorBrightness + +/** +* Tag name for 'iowarrior/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IOWARRIOR_CONTRAST IowarriorContrast + +/** +* Tag name for 'iowarrior/#/extendedmode' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IOWARRIOR_EXTENDEDMODE IowarriorExtendedmode + +/** +* Tag name for 'iowarrior/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IOWARRIOR_FILE IowarriorFile + +/** +* Tag name for 'iowarrior/#/lastline' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IOWARRIOR_LASTLINE IowarriorLastline + +/** +* Tag name for 'iowarrior/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IOWARRIOR_OFFBRIGHTNESS IowarriorOffbrightness + +/** +* Tag name for 'iowarrior/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IOWARRIOR_REBOOT IowarriorReboot + +/** +* Tag name for 'iowarrior/#/serialnumber' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IOWARRIOR_SERIALNUMBER IowarriorSerialnumber + +/** +* Tag name for 'iowarrior/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IOWARRIOR_SIZE IowarriorSize + +/** +* Tag name for 'irman/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IRMAN Irman + +/** +* Tag name for 'irman/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IRMAN_BRIGHTNESS IrmanBrightness + +/** +* Tag name for 'irman/#/config' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IRMAN_CONFIG IrmanConfig + +/** +* Tag name for 'irman/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IRMAN_CONTRAST IrmanContrast + +/** +* Tag name for 'irman/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IRMAN_DEVICE IrmanDevice + +/** +* Tag name for 'irman/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IRMAN_FILE IrmanFile + +/** +* Tag name for 'irman/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IRMAN_OFFBRIGHTNESS IrmanOffbrightness + +/** +* Tag name for 'irman/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IRMAN_REBOOT IrmanReboot + +/** +* Tag name for 'irtrans/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IRTRANS Irtrans + +/** +* Tag name for 'irtrans/#/backlight' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IRTRANS_BACKLIGHT IrtransBacklight + +/** +* Tag name for 'irtrans/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IRTRANS_BRIGHTNESS IrtransBrightness + +/** +* Tag name for 'irtrans/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IRTRANS_CONTRAST IrtransContrast + +/** +* Tag name for 'irtrans/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IRTRANS_FILE IrtransFile + +/** +* Tag name for 'irtrans/#/hostname' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IRTRANS_HOSTNAME IrtransHostname + +/** +* Tag name for 'irtrans/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IRTRANS_OFFBRIGHTNESS IrtransOffbrightness + +/** +* Tag name for 'irtrans/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IRTRANS_REBOOT IrtransReboot + +/** +* Tag name for 'irtrans/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IRTRANS_SIZE IrtransSize + +/** +* Tag name for 'joy/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_JOY Joy + +/** +* Tag name for 'joy/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_JOY_BRIGHTNESS JoyBrightness + +/** +* Tag name for 'joy/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_JOY_CONTRAST JoyContrast + +/** +* Tag name for 'joy/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_JOY_DEVICE JoyDevice + +/** +* Tag name for 'joy/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_JOY_FILE JoyFile + +/** +* Tag name for 'joy/#/map_axis1neg' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_JOY_MAP_AXIS1NEG JoyMapAxis1neg + +/** +* Tag name for 'joy/#/map_axis1pos' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_JOY_MAP_AXIS1POS JoyMapAxis1pos + +/** +* Tag name for 'joy/#/map_axis2neg' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_JOY_MAP_AXIS2NEG JoyMapAxis2neg + +/** +* Tag name for 'joy/#/map_axis2pos' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_JOY_MAP_AXIS2POS JoyMapAxis2pos + +/** +* Tag name for 'joy/#/map_button1' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_JOY_MAP_BUTTON1 JoyMapButton1 + +/** +* Tag name for 'joy/#/map_button2' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_JOY_MAP_BUTTON2 JoyMapButton2 + +/** +* Tag name for 'joy/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_JOY_OFFBRIGHTNESS JoyOffbrightness + +/** +* Tag name for 'joy/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_JOY_REBOOT JoyReboot + +/** +* Tag name for 'lb216/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LB216 Lb216 + +/** +* Tag name for 'lb216/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LB216_BRIGHTNESS Lb216Brightness + +/** +* Tag name for 'lb216/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LB216_CONTRAST Lb216Contrast + +/** +* Tag name for 'lb216/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LB216_DEVICE Lb216Device + +/** +* Tag name for 'lb216/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LB216_FILE Lb216File + +/** +* Tag name for 'lb216/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LB216_OFFBRIGHTNESS Lb216Offbrightness + +/** +* Tag name for 'lb216/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LB216_REBOOT Lb216Reboot + +/** +* Tag name for 'lb216/#/speed' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LB216_SPEED Lb216Speed + +/** +* Tag name for 'lcdm001/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LCDM001 Lcdm001 + +/** +* Tag name for 'lcdm001/#/backkey' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LCDM001_BACKKEY Lcdm001Backkey + +/** +* Tag name for 'lcdm001/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LCDM001_BRIGHTNESS Lcdm001Brightness + +/** +* Tag name for 'lcdm001/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LCDM001_CONTRAST Lcdm001Contrast + +/** +* Tag name for 'lcdm001/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LCDM001_DEVICE Lcdm001Device + +/** +* Tag name for 'lcdm001/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LCDM001_FILE Lcdm001File + +/** +* Tag name for 'lcdm001/#/forwardkey' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LCDM001_FORWARDKEY Lcdm001Forwardkey + +/** +* Tag name for 'lcdm001/#/mainmenukey' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LCDM001_MAINMENUKEY Lcdm001Mainmenukey + +/** +* Tag name for 'lcdm001/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LCDM001_OFFBRIGHTNESS Lcdm001Offbrightness + +/** +* Tag name for 'lcdm001/#/pausekey' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LCDM001_PAUSEKEY Lcdm001Pausekey + +/** +* Tag name for 'lcdm001/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LCDM001_REBOOT Lcdm001Reboot + +/** +* Tag name for 'lcterm/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LCTERM Lcterm + +/** +* Tag name for 'lcterm/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LCTERM_BRIGHTNESS LctermBrightness + +/** +* Tag name for 'lcterm/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LCTERM_CONTRAST LctermContrast + +/** +* Tag name for 'lcterm/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LCTERM_DEVICE LctermDevice + +/** +* Tag name for 'lcterm/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LCTERM_FILE LctermFile + +/** +* Tag name for 'lcterm/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LCTERM_OFFBRIGHTNESS LctermOffbrightness + +/** +* Tag name for 'lcterm/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LCTERM_REBOOT LctermReboot + +/** +* Tag name for 'lcterm/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LCTERM_SIZE LctermSize + +/** +* Tag name for 'linux_input/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LINUX_INPUT LinuxInput + +/** +* Tag name for 'linux_input/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LINUX_INPUT_BRIGHTNESS LinuxInputBrightness + +/** +* Tag name for 'linux_input/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LINUX_INPUT_CONTRAST LinuxInputContrast + +/** +* Tag name for 'linux_input/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LINUX_INPUT_DEVICE LinuxInputDevice + +/** +* Tag name for 'linux_input/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LINUX_INPUT_FILE LinuxInputFile + +/** +* Tag name for 'linux_input/#/key/_' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* - const char * name1: Replaces occurence no. 1 of _ in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LINUX_INPUT_KEY LinuxInputKey + +/** +* Tag name for 'linux_input/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LINUX_INPUT_OFFBRIGHTNESS LinuxInputOffbrightness + +/** +* Tag name for 'linux_input/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LINUX_INPUT_REBOOT LinuxInputReboot + +/** +* Tag name for 'lirc/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIRC Lirc + +/** +* Tag name for 'lirc/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIRC_BRIGHTNESS LircBrightness + +/** +* Tag name for 'lirc/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIRC_CONTRAST LircContrast + +/** +* Tag name for 'lirc/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIRC_FILE LircFile + +/** +* Tag name for 'lirc/#/lircrc' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIRC_LIRCRC LircLircrc + +/** +* Tag name for 'lirc/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIRC_OFFBRIGHTNESS LircOffbrightness + +/** +* Tag name for 'lirc/#/prog' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIRC_PROG LircProg + +/** +* Tag name for 'lirc/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIRC_REBOOT LircReboot + +/** +* Tag name for 'lis/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIS Lis + +/** +* Tag name for 'lis/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIS_BRIGHTNESS LisBrightness + +/** +* Tag name for 'lis/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIS_CONTRAST LisContrast + +/** +* Tag name for 'lis/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIS_FILE LisFile + +/** +* Tag name for 'lis/#/lastline' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIS_LASTLINE LisLastline + +/** +* Tag name for 'lis/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIS_OFFBRIGHTNESS LisOffbrightness + +/** +* Tag name for 'lis/#/productid' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIS_PRODUCTID LisProductid + +/** +* Tag name for 'lis/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIS_REBOOT LisReboot + +/** +* Tag name for 'lis/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIS_SIZE LisSize + +/** +* Tag name for 'lis/#/vendorid' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIS_VENDORID LisVendorid + +/** +* Tag name for 'md8800/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MD8800 Md8800 + +/** +* Tag name for 'md8800/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MD8800_BRIGHTNESS Md8800Brightness + +/** +* Tag name for 'md8800/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MD8800_CONTRAST Md8800Contrast + +/** +* Tag name for 'md8800/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MD8800_DEVICE Md8800Device + +/** +* Tag name for 'md8800/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MD8800_FILE Md8800File + +/** +* Tag name for 'md8800/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MD8800_OFFBRIGHTNESS Md8800Offbrightness + +/** +* Tag name for 'md8800/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MD8800_REBOOT Md8800Reboot + +/** +* Tag name for 'md8800/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MD8800_SIZE Md8800Size + +/** +* Tag name for 'mdm166a/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MDM166A Mdm166a + +/** +* Tag name for 'mdm166a/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MDM166A_BRIGHTNESS Mdm166aBrightness + +/** +* Tag name for 'mdm166a/#/clock' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MDM166A_CLOCK Mdm166aClock + +/** +* Tag name for 'mdm166a/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MDM166A_CONTRAST Mdm166aContrast + +/** +* Tag name for 'mdm166a/#/dimming' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MDM166A_DIMMING Mdm166aDimming + +/** +* Tag name for 'mdm166a/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MDM166A_FILE Mdm166aFile + +/** +* Tag name for 'mdm166a/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MDM166A_OFFBRIGHTNESS Mdm166aOffbrightness + +/** +* Tag name for 'mdm166a/#/offdimming' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MDM166A_OFFDIMMING Mdm166aOffdimming + +/** +* Tag name for 'mdm166a/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MDM166A_REBOOT Mdm166aReboot + +/** +* Tag name for 'menu/downkey' +* +*/// +#define ELEKTRA_TAG_MENU_DOWNKEY MenuDownkey + +/** +* Tag name for 'menu/enterkey' +* +*/// +#define ELEKTRA_TAG_MENU_ENTERKEY MenuEnterkey + +/** +* Tag name for 'menu/leftkey' +* +*/// +#define ELEKTRA_TAG_MENU_LEFTKEY MenuLeftkey + +/** +* Tag name for 'menu/menukey' +* +*/// +#define ELEKTRA_TAG_MENU_MENUKEY MenuMenukey + +/** +* Tag name for 'menu/permissivegoto' +* +*/// +#define ELEKTRA_TAG_MENU_PERMISSIVEGOTO MenuPermissivegoto + +/** +* Tag name for 'menu/rightkey' +* +*/// +#define ELEKTRA_TAG_MENU_RIGHTKEY MenuRightkey + +/** +* Tag name for 'menu/upkey' +* +*/// +#define ELEKTRA_TAG_MENU_UPKEY MenuUpkey + +/** +* Tag name for 'ms6931/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MS6931 Ms6931 + +/** +* Tag name for 'ms6931/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MS6931_BRIGHTNESS Ms6931Brightness + +/** +* Tag name for 'ms6931/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MS6931_CONTRAST Ms6931Contrast + +/** +* Tag name for 'ms6931/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MS6931_DEVICE Ms6931Device + +/** +* Tag name for 'ms6931/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MS6931_FILE Ms6931File + +/** +* Tag name for 'ms6931/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MS6931_OFFBRIGHTNESS Ms6931Offbrightness + +/** +* Tag name for 'ms6931/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MS6931_REBOOT Ms6931Reboot + +/** +* Tag name for 'ms6931/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MS6931_SIZE Ms6931Size + +/** +* Tag name for 'mtc_s16209x/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTC_S16209X MtcS16209x + +/** +* Tag name for 'mtc_s16209x/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTC_S16209X_BRIGHTNESS MtcS16209xBrightness + +/** +* Tag name for 'mtc_s16209x/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTC_S16209X_CONTRAST MtcS16209xContrast + +/** +* Tag name for 'mtc_s16209x/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTC_S16209X_DEVICE MtcS16209xDevice + +/** +* Tag name for 'mtc_s16209x/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTC_S16209X_FILE MtcS16209xFile + +/** +* Tag name for 'mtc_s16209x/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTC_S16209X_OFFBRIGHTNESS MtcS16209xOffbrightness + +/** +* Tag name for 'mtc_s16209x/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTC_S16209X_REBOOT MtcS16209xReboot + +/** +* Tag name for 'mtxorb/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTXORB Mtxorb + +/** +* Tag name for 'mtxorb/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTXORB_BRIGHTNESS MtxorbBrightness + +/** +* Tag name for 'mtxorb/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTXORB_CONTRAST MtxorbContrast + +/** +* Tag name for 'mtxorb/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTXORB_DEVICE MtxorbDevice + +/** +* Tag name for 'mtxorb/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTXORB_FILE MtxorbFile + +/** +* Tag name for 'mtxorb/#/hasadjustablebacklight' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTXORB_HASADJUSTABLEBACKLIGHT MtxorbHasadjustablebacklight + +/** +* Tag name for 'mtxorb/#/keymap_a' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTXORB_KEYMAP_A MtxorbKeymapA + +/** +* Tag name for 'mtxorb/#/keymap_b' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTXORB_KEYMAP_B MtxorbKeymapB + +/** +* Tag name for 'mtxorb/#/keymap_c' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTXORB_KEYMAP_C MtxorbKeymapC + +/** +* Tag name for 'mtxorb/#/keymap_d' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTXORB_KEYMAP_D MtxorbKeymapD + +/** +* Tag name for 'mtxorb/#/keymap_e' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTXORB_KEYMAP_E MtxorbKeymapE + +/** +* Tag name for 'mtxorb/#/keymap_f' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTXORB_KEYMAP_F MtxorbKeymapF + +/** +* Tag name for 'mtxorb/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTXORB_OFFBRIGHTNESS MtxorbOffbrightness + +/** +* Tag name for 'mtxorb/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTXORB_REBOOT MtxorbReboot + +/** +* Tag name for 'mtxorb/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTXORB_SIZE MtxorbSize + +/** +* Tag name for 'mtxorb/#/speed' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTXORB_SPEED MtxorbSpeed + +/** +* Tag name for 'mtxorb/#/type' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTXORB_TYPE MtxorbType + +/** +* Tag name for 'mx5000/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MX5000 Mx5000 + +/** +* Tag name for 'mx5000/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MX5000_BRIGHTNESS Mx5000Brightness + +/** +* Tag name for 'mx5000/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MX5000_CONTRAST Mx5000Contrast + +/** +* Tag name for 'mx5000/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MX5000_DEVICE Mx5000Device + +/** +* Tag name for 'mx5000/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MX5000_FILE Mx5000File + +/** +* Tag name for 'mx5000/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MX5000_OFFBRIGHTNESS Mx5000Offbrightness + +/** +* Tag name for 'mx5000/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MX5000_REBOOT Mx5000Reboot + +/** +* Tag name for 'mx5000/#/waitafterrefresh' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MX5000_WAITAFTERREFRESH Mx5000Waitafterrefresh + +/** +* Tag name for 'noritakevfd/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_NORITAKEVFD Noritakevfd + +/** +* Tag name for 'noritakevfd/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_NORITAKEVFD_BRIGHTNESS NoritakevfdBrightness + +/** +* Tag name for 'noritakevfd/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_NORITAKEVFD_CONTRAST NoritakevfdContrast + +/** +* Tag name for 'noritakevfd/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_NORITAKEVFD_DEVICE NoritakevfdDevice + +/** +* Tag name for 'noritakevfd/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_NORITAKEVFD_FILE NoritakevfdFile + +/** +* Tag name for 'noritakevfd/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_NORITAKEVFD_OFFBRIGHTNESS NoritakevfdOffbrightness + +/** +* Tag name for 'noritakevfd/#/parity' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_NORITAKEVFD_PARITY NoritakevfdParity + +/** +* Tag name for 'noritakevfd/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_NORITAKEVFD_REBOOT NoritakevfdReboot + +/** +* Tag name for 'noritakevfd/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_NORITAKEVFD_SIZE NoritakevfdSize + +/** +* Tag name for 'noritakevfd/#/speed' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_NORITAKEVFD_SPEED NoritakevfdSpeed + +/** +* Tag name for 'olimex_mod_lcd1x9/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_OLIMEX_MOD_LCD1X9 OlimexModLcd1x9 + +/** +* Tag name for 'olimex_mod_lcd1x9/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_OLIMEX_MOD_LCD1X9_BRIGHTNESS OlimexModLcd1x9Brightness + +/** +* Tag name for 'olimex_mod_lcd1x9/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_OLIMEX_MOD_LCD1X9_CONTRAST OlimexModLcd1x9Contrast + +/** +* Tag name for 'olimex_mod_lcd1x9/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_OLIMEX_MOD_LCD1X9_DEVICE OlimexModLcd1x9Device + +/** +* Tag name for 'olimex_mod_lcd1x9/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_OLIMEX_MOD_LCD1X9_FILE OlimexModLcd1x9File + +/** +* Tag name for 'olimex_mod_lcd1x9/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_OLIMEX_MOD_LCD1X9_OFFBRIGHTNESS OlimexModLcd1x9Offbrightness + +/** +* Tag name for 'olimex_mod_lcd1x9/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_OLIMEX_MOD_LCD1X9_REBOOT OlimexModLcd1x9Reboot + +/** +* Tag name for 'picolcd/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD Picolcd + +/** +* Tag name for 'picolcd/#/backlight' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_BACKLIGHT PicolcdBacklight + +/** +* Tag name for 'picolcd/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_BRIGHTNESS PicolcdBrightness + +/** +* Tag name for 'picolcd/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_CONTRAST PicolcdContrast + +/** +* Tag name for 'picolcd/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_FILE PicolcdFile + +/** +* Tag name for 'picolcd/#/key0light' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_KEY0LIGHT PicolcdKey0light + +/** +* Tag name for 'picolcd/#/key1light' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_KEY1LIGHT PicolcdKey1light + +/** +* Tag name for 'picolcd/#/key2light' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_KEY2LIGHT PicolcdKey2light + +/** +* Tag name for 'picolcd/#/key3light' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_KEY3LIGHT PicolcdKey3light + +/** +* Tag name for 'picolcd/#/key4light' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_KEY4LIGHT PicolcdKey4light + +/** +* Tag name for 'picolcd/#/key5light' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_KEY5LIGHT PicolcdKey5light + +/** +* Tag name for 'picolcd/#/keylights' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_KEYLIGHTS PicolcdKeylights + +/** +* Tag name for 'picolcd/#/keyrepeatdelay' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_KEYREPEATDELAY PicolcdKeyrepeatdelay + +/** +* Tag name for 'picolcd/#/keyrepeatinterval' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_KEYREPEATINTERVAL PicolcdKeyrepeatinterval + +/** +* Tag name for 'picolcd/#/keytimeout' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_KEYTIMEOUT PicolcdKeytimeout + +/** +* Tag name for 'picolcd/#/linklights' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_LINKLIGHTS PicolcdLinklights + +/** +* Tag name for 'picolcd/#/lircflushthreshold' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_LIRCFLUSHTHRESHOLD PicolcdLircflushthreshold + +/** +* Tag name for 'picolcd/#/lirchost' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_LIRCHOST PicolcdLirchost + +/** +* Tag name for 'picolcd/#/lircport' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_LIRCPORT PicolcdLircport + +/** +* Tag name for 'picolcd/#/lirctime_us' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_LIRCTIME_US PicolcdLirctimeUs + +/** +* Tag name for 'picolcd/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_OFFBRIGHTNESS PicolcdOffbrightness + +/** +* Tag name for 'picolcd/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_REBOOT PicolcdReboot + +/** +* Tag name for 'pyramid/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PYRAMID Pyramid + +/** +* Tag name for 'pyramid/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PYRAMID_BRIGHTNESS PyramidBrightness + +/** +* Tag name for 'pyramid/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PYRAMID_CONTRAST PyramidContrast + +/** +* Tag name for 'pyramid/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PYRAMID_DEVICE PyramidDevice + +/** +* Tag name for 'pyramid/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PYRAMID_FILE PyramidFile + +/** +* Tag name for 'pyramid/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PYRAMID_OFFBRIGHTNESS PyramidOffbrightness + +/** +* Tag name for 'pyramid/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PYRAMID_REBOOT PyramidReboot + +/** +* Tag name for 'rawserial/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_RAWSERIAL Rawserial + +/** +* Tag name for 'rawserial/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_RAWSERIAL_BRIGHTNESS RawserialBrightness + +/** +* Tag name for 'rawserial/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_RAWSERIAL_CONTRAST RawserialContrast + +/** +* Tag name for 'rawserial/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_RAWSERIAL_DEVICE RawserialDevice + +/** +* Tag name for 'rawserial/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_RAWSERIAL_FILE RawserialFile + +/** +* Tag name for 'rawserial/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_RAWSERIAL_OFFBRIGHTNESS RawserialOffbrightness + +/** +* Tag name for 'rawserial/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_RAWSERIAL_REBOOT RawserialReboot + +/** +* Tag name for 'rawserial/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_RAWSERIAL_SIZE RawserialSize + +/** +* Tag name for 'rawserial/#/speed' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_RAWSERIAL_SPEED RawserialSpeed + +/** +* Tag name for 'rawserial/#/updaterate' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_RAWSERIAL_UPDATERATE RawserialUpdaterate + +/** +* Tag name for 'sed1330/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1330 Sed1330 + +/** +* Tag name for 'sed1330/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1330_BRIGHTNESS Sed1330Brightness + +/** +* Tag name for 'sed1330/#/cellsize' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1330_CELLSIZE Sed1330Cellsize + +/** +* Tag name for 'sed1330/#/connectiontype' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1330_CONNECTIONTYPE Sed1330Connectiontype + +/** +* Tag name for 'sed1330/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1330_CONTRAST Sed1330Contrast + +/** +* Tag name for 'sed1330/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1330_FILE Sed1330File + +/** +* Tag name for 'sed1330/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1330_OFFBRIGHTNESS Sed1330Offbrightness + +/** +* Tag name for 'sed1330/#/port' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1330_PORT Sed1330Port + +/** +* Tag name for 'sed1330/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1330_REBOOT Sed1330Reboot + +/** +* Tag name for 'sed1330/#/type' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1330_TYPE Sed1330Type + +/** +* Tag name for 'sed1520/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1520 Sed1520 + +/** +* Tag name for 'sed1520/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1520_BRIGHTNESS Sed1520Brightness + +/** +* Tag name for 'sed1520/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1520_CONTRAST Sed1520Contrast + +/** +* Tag name for 'sed1520/#/delaymult' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1520_DELAYMULT Sed1520Delaymult + +/** +* Tag name for 'sed1520/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1520_FILE Sed1520File + +/** +* Tag name for 'sed1520/#/haveinverter' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1520_HAVEINVERTER Sed1520Haveinverter + +/** +* Tag name for 'sed1520/#/interfacetype' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1520_INTERFACETYPE Sed1520Interfacetype + +/** +* Tag name for 'sed1520/#/invertedmapping' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1520_INVERTEDMAPPING Sed1520Invertedmapping + +/** +* Tag name for 'sed1520/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1520_OFFBRIGHTNESS Sed1520Offbrightness + +/** +* Tag name for 'sed1520/#/port' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1520_PORT Sed1520Port + +/** +* Tag name for 'sed1520/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1520_REBOOT Sed1520Reboot + +/** +* Tag name for 'sed1520/#/usehardreset' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1520_USEHARDRESET Sed1520Usehardreset + +/** +* Tag name for 'serialpos/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALPOS Serialpos + +/** +* Tag name for 'serialpos/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALPOS_BRIGHTNESS SerialposBrightness + +/** +* Tag name for 'serialpos/#/cellsize' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALPOS_CELLSIZE SerialposCellsize + +/** +* Tag name for 'serialpos/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALPOS_CONTRAST SerialposContrast + +/** +* Tag name for 'serialpos/#/custom_chars' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALPOS_CUSTOM_CHARS SerialposCustomChars + +/** +* Tag name for 'serialpos/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALPOS_DEVICE SerialposDevice + +/** +* Tag name for 'serialpos/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALPOS_FILE SerialposFile + +/** +* Tag name for 'serialpos/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALPOS_OFFBRIGHTNESS SerialposOffbrightness + +/** +* Tag name for 'serialpos/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALPOS_REBOOT SerialposReboot + +/** +* Tag name for 'serialpos/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALPOS_SIZE SerialposSize + +/** +* Tag name for 'serialpos/#/speed' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALPOS_SPEED SerialposSpeed + +/** +* Tag name for 'serialpos/#/type' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALPOS_TYPE SerialposType + +/** +* Tag name for 'serialvfd/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALVFD Serialvfd + +/** +* Tag name for 'serialvfd/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALVFD_BRIGHTNESS SerialvfdBrightness + +/** +* Tag name for 'serialvfd/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALVFD_CONTRAST SerialvfdContrast + +/** +* Tag name for 'serialvfd/#/custom-characters' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALVFD_CUSTOM_CHARACTERS SerialvfdCustomCharacters + +/** +* Tag name for 'serialvfd/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALVFD_DEVICE SerialvfdDevice + +/** +* Tag name for 'serialvfd/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALVFD_FILE SerialvfdFile + +/** +* Tag name for 'serialvfd/#/iso_8859_1' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALVFD_ISO_8859_1 SerialvfdIso88591 + +/** +* Tag name for 'serialvfd/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALVFD_OFFBRIGHTNESS SerialvfdOffbrightness + +/** +* Tag name for 'serialvfd/#/port' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALVFD_PORT SerialvfdPort + +/** +* Tag name for 'serialvfd/#/portwait' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALVFD_PORTWAIT SerialvfdPortwait + +/** +* Tag name for 'serialvfd/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALVFD_REBOOT SerialvfdReboot + +/** +* Tag name for 'serialvfd/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALVFD_SIZE SerialvfdSize + +/** +* Tag name for 'serialvfd/#/speed' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALVFD_SPEED SerialvfdSpeed + +/** +* Tag name for 'serialvfd/#/type' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALVFD_TYPE SerialvfdType + +/** +* Tag name for 'serialvfd/#/use_parallel' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALVFD_USE_PARALLEL SerialvfdUseParallel + +/** +* Tag name for 'server/autorotate' +* +*/// +#define ELEKTRA_TAG_SERVER_AUTOROTATE ServerAutorotate + +/** +* Tag name for 'server/backlight' +* +*/// +#define ELEKTRA_TAG_SERVER_BACKLIGHT ServerBacklight + +/** +* Tag name for 'server/bind' +* +*/// +#define ELEKTRA_TAG_SERVER_BIND ServerBind + +/** +* Tag name for 'server/driverpath' +* +*/// +#define ELEKTRA_TAG_SERVER_DRIVERPATH ServerDriverpath + +/** +* Tag name for 'server/drivers/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERVER_DRIVERS ServerDrivers + +/** +* Tag name for 'server/foreground' +* +*/// +#define ELEKTRA_TAG_SERVER_FOREGROUND ServerForeground + +/** +* Tag name for 'server/frameinterval' +* +*/// +#define ELEKTRA_TAG_SERVER_FRAMEINTERVAL ServerFrameinterval + +/** +* Tag name for 'server/goodbye/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERVER_GOODBYE ServerGoodbye + +/** +* Tag name for 'server/heartbeat' +* +*/// +#define ELEKTRA_TAG_SERVER_HEARTBEAT ServerHeartbeat + +/** +* Tag name for 'server/hello/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERVER_HELLO ServerHello + +/** +* Tag name for 'server/nextscreenkey' +* +*/// +#define ELEKTRA_TAG_SERVER_NEXTSCREENKEY ServerNextscreenkey + +/** +* Tag name for 'server/port' +* +*/// +#define ELEKTRA_TAG_SERVER_PORT ServerPort + +/** +* Tag name for 'server/prevscreenkey' +* +*/// +#define ELEKTRA_TAG_SERVER_PREVSCREENKEY ServerPrevscreenkey + +/** +* Tag name for 'server/reportlevel' +* +*/// +#define ELEKTRA_TAG_SERVER_REPORTLEVEL ServerReportlevel + +/** +* Tag name for 'server/reporttosyslog' +* +*/// +#define ELEKTRA_TAG_SERVER_REPORTTOSYSLOG ServerReporttosyslog + +/** +* Tag name for 'server/scrolldownkey' +* +*/// +#define ELEKTRA_TAG_SERVER_SCROLLDOWNKEY ServerScrolldownkey + +/** +* Tag name for 'server/scrollupkey' +* +*/// +#define ELEKTRA_TAG_SERVER_SCROLLUPKEY ServerScrollupkey + +/** +* Tag name for 'server/serverscreen' +* +*/// +#define ELEKTRA_TAG_SERVER_SERVERSCREEN ServerServerscreen + +/** +* Tag name for 'server/titlespeed' +* +*/// +#define ELEKTRA_TAG_SERVER_TITLESPEED ServerTitlespeed + +/** +* Tag name for 'server/togglerotatekey' +* +*/// +#define ELEKTRA_TAG_SERVER_TOGGLEROTATEKEY ServerTogglerotatekey + +/** +* Tag name for 'server/user' +* +*/// +#define ELEKTRA_TAG_SERVER_USER ServerUser + +/** +* Tag name for 'server/waittime' +* +*/// +#define ELEKTRA_TAG_SERVER_WAITTIME ServerWaittime + +/** +* Tag name for 'sli/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SLI Sli + +/** +* Tag name for 'sli/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SLI_BRIGHTNESS SliBrightness + +/** +* Tag name for 'sli/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SLI_CONTRAST SliContrast + +/** +* Tag name for 'sli/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SLI_DEVICE SliDevice + +/** +* Tag name for 'sli/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SLI_FILE SliFile + +/** +* Tag name for 'sli/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SLI_OFFBRIGHTNESS SliOffbrightness + +/** +* Tag name for 'sli/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SLI_REBOOT SliReboot + +/** +* Tag name for 'sli/#/speed' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SLI_SPEED SliSpeed + +/** +* Tag name for 'stv5730/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_STV5730 Stv5730 + +/** +* Tag name for 'stv5730/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_STV5730_BRIGHTNESS Stv5730Brightness + +/** +* Tag name for 'stv5730/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_STV5730_CONTRAST Stv5730Contrast + +/** +* Tag name for 'stv5730/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_STV5730_FILE Stv5730File + +/** +* Tag name for 'stv5730/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_STV5730_OFFBRIGHTNESS Stv5730Offbrightness + +/** +* Tag name for 'stv5730/#/port' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_STV5730_PORT Stv5730Port + +/** +* Tag name for 'stv5730/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_STV5730_REBOOT Stv5730Reboot + +/** +* Tag name for 'sureelec/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SUREELEC Sureelec + +/** +* Tag name for 'sureelec/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SUREELEC_BRIGHTNESS SureelecBrightness + +/** +* Tag name for 'sureelec/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SUREELEC_CONTRAST SureelecContrast + +/** +* Tag name for 'sureelec/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SUREELEC_DEVICE SureelecDevice + +/** +* Tag name for 'sureelec/#/edition' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SUREELEC_EDITION SureelecEdition + +/** +* Tag name for 'sureelec/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SUREELEC_FILE SureelecFile + +/** +* Tag name for 'sureelec/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SUREELEC_OFFBRIGHTNESS SureelecOffbrightness + +/** +* Tag name for 'sureelec/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SUREELEC_REBOOT SureelecReboot + +/** +* Tag name for 'sureelec/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SUREELEC_SIZE SureelecSize + +/** +* Tag name for 'svga/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SVGA Svga + +/** +* Tag name for 'svga/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SVGA_BRIGHTNESS SvgaBrightness + +/** +* Tag name for 'svga/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SVGA_CONTRAST SvgaContrast + +/** +* Tag name for 'svga/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SVGA_FILE SvgaFile + +/** +* Tag name for 'svga/#/mode' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SVGA_MODE SvgaMode + +/** +* Tag name for 'svga/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SVGA_OFFBRIGHTNESS SvgaOffbrightness + +/** +* Tag name for 'svga/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SVGA_REBOOT SvgaReboot + +/** +* Tag name for 'svga/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SVGA_SIZE SvgaSize + +/** +* Tag name for 't6963/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_T6963 T6963 + +/** +* Tag name for 't6963/#/bidirectional' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_T6963_BIDIRECTIONAL T6963Bidirectional + +/** +* Tag name for 't6963/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_T6963_BRIGHTNESS T6963Brightness + +/** +* Tag name for 't6963/#/cleargraphic' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_T6963_CLEARGRAPHIC T6963Cleargraphic + +/** +* Tag name for 't6963/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_T6963_CONTRAST T6963Contrast + +/** +* Tag name for 't6963/#/delaybus' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_T6963_DELAYBUS T6963Delaybus + +/** +* Tag name for 't6963/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_T6963_FILE T6963File + +/** +* Tag name for 't6963/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_T6963_OFFBRIGHTNESS T6963Offbrightness + +/** +* Tag name for 't6963/#/port' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_T6963_PORT T6963Port + +/** +* Tag name for 't6963/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_T6963_REBOOT T6963Reboot + +/** +* Tag name for 't6963/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_T6963_SIZE T6963Size + +/** +* Tag name for 'text/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_TEXT Text + +/** +* Tag name for 'text/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_TEXT_BRIGHTNESS TextBrightness + +/** +* Tag name for 'text/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_TEXT_CONTRAST TextContrast + +/** +* Tag name for 'text/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_TEXT_FILE TextFile + +/** +* Tag name for 'text/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_TEXT_OFFBRIGHTNESS TextOffbrightness + +/** +* Tag name for 'text/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_TEXT_REBOOT TextReboot + +/** +* Tag name for 'text/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_TEXT_SIZE TextSize + +/** +* Tag name for 'tyan/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_TYAN Tyan + +/** +* Tag name for 'tyan/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_TYAN_BRIGHTNESS TyanBrightness + +/** +* Tag name for 'tyan/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_TYAN_CONTRAST TyanContrast + +/** +* Tag name for 'tyan/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_TYAN_DEVICE TyanDevice + +/** +* Tag name for 'tyan/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_TYAN_FILE TyanFile + +/** +* Tag name for 'tyan/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_TYAN_OFFBRIGHTNESS TyanOffbrightness + +/** +* Tag name for 'tyan/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_TYAN_REBOOT TyanReboot + +/** +* Tag name for 'tyan/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_TYAN_SIZE TyanSize + +/** +* Tag name for 'tyan/#/speed' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_TYAN_SPEED TyanSpeed + +/** +* Tag name for 'ula200/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ULA200 Ula200 + +/** +* Tag name for 'ula200/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ULA200_BRIGHTNESS Ula200Brightness + +/** +* Tag name for 'ula200/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ULA200_CONTRAST Ula200Contrast + +/** +* Tag name for 'ula200/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ULA200_FILE Ula200File + +/** +* Tag name for 'ula200/#/keymap_a' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ULA200_KEYMAP_A Ula200KeymapA + +/** +* Tag name for 'ula200/#/keymap_b' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ULA200_KEYMAP_B Ula200KeymapB + +/** +* Tag name for 'ula200/#/keymap_c' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ULA200_KEYMAP_C Ula200KeymapC + +/** +* Tag name for 'ula200/#/keymap_d' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ULA200_KEYMAP_D Ula200KeymapD + +/** +* Tag name for 'ula200/#/keymap_e' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ULA200_KEYMAP_E Ula200KeymapE + +/** +* Tag name for 'ula200/#/keymap_f' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ULA200_KEYMAP_F Ula200KeymapF + +/** +* Tag name for 'ula200/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ULA200_OFFBRIGHTNESS Ula200Offbrightness + +/** +* Tag name for 'ula200/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ULA200_REBOOT Ula200Reboot + +/** +* Tag name for 'ula200/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ULA200_SIZE Ula200Size + +/** +* Tag name for 'vlsys_m428/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_VLSYS_M428 VlsysM428 + +/** +* Tag name for 'vlsys_m428/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_VLSYS_M428_BRIGHTNESS VlsysM428Brightness + +/** +* Tag name for 'vlsys_m428/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_VLSYS_M428_CONTRAST VlsysM428Contrast + +/** +* Tag name for 'vlsys_m428/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_VLSYS_M428_DEVICE VlsysM428Device + +/** +* Tag name for 'vlsys_m428/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_VLSYS_M428_FILE VlsysM428File + +/** +* Tag name for 'vlsys_m428/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_VLSYS_M428_OFFBRIGHTNESS VlsysM428Offbrightness + +/** +* Tag name for 'vlsys_m428/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_VLSYS_M428_REBOOT VlsysM428Reboot + +/** +* Tag name for 'xosd/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_XOSD Xosd + +/** +* Tag name for 'xosd/#/Font' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_XOSD_FONT XosdFont + +/** +* Tag name for 'xosd/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_XOSD_BRIGHTNESS XosdBrightness + +/** +* Tag name for 'xosd/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_XOSD_CONTRAST XosdContrast + +/** +* Tag name for 'xosd/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_XOSD_FILE XosdFile + +/** +* Tag name for 'xosd/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_XOSD_OFFBRIGHTNESS XosdOffbrightness + +/** +* Tag name for 'xosd/#/offset' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_XOSD_OFFSET XosdOffset + +/** +* Tag name for 'xosd/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_XOSD_REBOOT XosdReboot + +/** +* Tag name for 'xosd/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_XOSD_SIZE XosdSize + +/** +* Tag name for 'yard2lcd/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_YARD2LCD Yard2lcd + +/** +* Tag name for 'yard2lcd/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_YARD2LCD_BRIGHTNESS Yard2lcdBrightness + +/** +* Tag name for 'yard2lcd/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_YARD2LCD_CONTRAST Yard2lcdContrast + +/** +* Tag name for 'yard2lcd/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_YARD2LCD_FILE Yard2lcdFile + +/** +* Tag name for 'yard2lcd/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_YARD2LCD_OFFBRIGHTNESS Yard2lcdOffbrightness + +/** +* Tag name for 'yard2lcd/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_YARD2LCD_REBOOT Yard2lcdReboot + +/** +* Tag name for 'yard2lcd/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_YARD2LCD_SIZE Yard2lcdSize +// clang-format on + + +// clang-format off + +// clang-format on + +// clang-format off + +// clang-format on + + +// clang-format off + +// clang-format on + + + + +// clang-format off + +// clang-format on + +// local helper macros to determine the length of a 64 bit integer +#define elektra_len19(x) ((x) < 10000000000000000000ULL ? 19 : 20) +#define elektra_len18(x) ((x) < 1000000000000000000ULL ? 18 : elektra_len19 (x)) +#define elektra_len17(x) ((x) < 100000000000000000ULL ? 17 : elektra_len18 (x)) +#define elektra_len16(x) ((x) < 10000000000000000ULL ? 16 : elektra_len17 (x)) +#define elektra_len15(x) ((x) < 1000000000000000ULL ? 15 : elektra_len16 (x)) +#define elektra_len14(x) ((x) < 100000000000000ULL ? 14 : elektra_len15 (x)) +#define elektra_len13(x) ((x) < 10000000000000ULL ? 13 : elektra_len14 (x)) +#define elektra_len12(x) ((x) < 1000000000000ULL ? 12 : elektra_len13 (x)) +#define elektra_len11(x) ((x) < 100000000000ULL ? 11 : elektra_len12 (x)) +#define elektra_len10(x) ((x) < 10000000000ULL ? 10 : elektra_len11 (x)) +#define elektra_len09(x) ((x) < 1000000000ULL ? 9 : elektra_len10 (x)) +#define elektra_len08(x) ((x) < 100000000ULL ? 8 : elektra_len09 (x)) +#define elektra_len07(x) ((x) < 10000000ULL ? 7 : elektra_len08 (x)) +#define elektra_len06(x) ((x) < 1000000ULL ? 6 : elektra_len07 (x)) +#define elektra_len05(x) ((x) < 100000ULL ? 5 : elektra_len06 (x)) +#define elektra_len04(x) ((x) < 10000ULL ? 4 : elektra_len05 (x)) +#define elektra_len03(x) ((x) < 1000ULL ? 3 : elektra_len04 (x)) +#define elektra_len02(x) ((x) < 100ULL ? 2 : elektra_len03 (x)) +#define elektra_len01(x) ((x) < 10ULL ? 1 : elektra_len02 (x)) +#define elektra_len00(x) ((x) < 0ULL ? 0 : elektra_len01 (x)) +#define elektra_len(x) elektra_len00 (x) + +#define ELEKTRA_SIZE(tagName) ELEKTRA_CONCAT (elektraSize, tagName) + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'bayrad/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Bayrad) (Elektra * elektra, BayradDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("bayrad/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructBayradDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'bayrad/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'bayrad/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Bayrad) (Elektra * elektra, const BayradDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("bayrad/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructBayradDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'bayrad/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Bayrad) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "bayrad"); +} + + + +/** + * Get the value of 'bayrad/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'bayrad/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (BayradBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("bayrad/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'bayrad/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'bayrad/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (BayradBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("bayrad/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'bayrad/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'bayrad/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (BayradContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("bayrad/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'bayrad/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'bayrad/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (BayradContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("bayrad/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'bayrad/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'bayrad/#/device'. + */// +static inline const char * ELEKTRA_GET (BayradDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("bayrad/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'bayrad/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'bayrad/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (BayradDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("bayrad/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'bayrad/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'bayrad/#/file'. + */// +static inline const char * ELEKTRA_GET (BayradFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("bayrad/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'bayrad/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'bayrad/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (BayradFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("bayrad/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'bayrad/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'bayrad/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (BayradOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("bayrad/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'bayrad/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'bayrad/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (BayradOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("bayrad/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'bayrad/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'bayrad/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (BayradReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("bayrad/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'bayrad/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'bayrad/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (BayradReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("bayrad/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'bayrad/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'bayrad/#/speed'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (BayradSpeed) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("bayrad/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'bayrad/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'bayrad/#/speed'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (BayradSpeed) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("bayrad/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'cfontz/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Cfontz) (Elektra * elektra, CFontzDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructCFontzDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'cfontz/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontz/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Cfontz) (Elektra * elektra, const CFontzDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructCFontzDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'cfontz/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Cfontz) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "cfontz"); +} + + + +/** + * Get the value of 'cfontz/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontz/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (CfontzBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontz/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontz/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontz/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontz/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (CfontzContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontz/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontz/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontz/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontz/#/device'. + */// +static inline const char * ELEKTRA_GET (CfontzDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontz/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontz/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontz/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontz/#/file'. + */// +static inline const char * ELEKTRA_GET (CfontzFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontz/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontz/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontz/#/newfirmware'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontz/#/newfirmware'. + */// +static inline kdb_boolean_t ELEKTRA_GET (CfontzNewfirmware) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/newfirmware", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontz/#/newfirmware'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontz/#/newfirmware'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzNewfirmware) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/newfirmware", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontz/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontz/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (CfontzOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontz/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontz/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontz/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontz/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (CfontzReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontz/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontz/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontz/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontz/#/size'. + */// +static inline const char * ELEKTRA_GET (CfontzSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontz/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontz/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontz/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontz/#/speed'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (CfontzSpeed) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontz/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontz/#/speed'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzSpeed) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'cfontzpacket/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Cfontzpacket) (Elektra * elektra, CFontzPacketDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructCFontzPacketDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'cfontzpacket/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontzpacket/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Cfontzpacket) (Elektra * elektra, const CFontzPacketDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructCFontzPacketDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'cfontzpacket/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Cfontzpacket) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "cfontzpacket"); +} + + + +/** + * Get the value of 'cfontzpacket/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontzpacket/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (CfontzpacketBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontzpacket/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontzpacket/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzpacketBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontzpacket/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontzpacket/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (CfontzpacketContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontzpacket/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontzpacket/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzpacketContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontzpacket/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontzpacket/#/device'. + */// +static inline const char * ELEKTRA_GET (CfontzpacketDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontzpacket/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontzpacket/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzpacketDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontzpacket/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontzpacket/#/file'. + */// +static inline const char * ELEKTRA_GET (CfontzpacketFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontzpacket/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontzpacket/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzpacketFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontzpacket/#/model'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontzpacket/#/model'. + */// +static inline CFontzPacketModel ELEKTRA_GET (CfontzpacketModel) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/model", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + CFontzPacketModel result = ELEKTRA_GET (EnumCFontzPacketModel) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontzpacket/#/model'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontzpacket/#/model'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzpacketModel) (Elektra * elektra, + CFontzPacketModel value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/model", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumCFontzPacketModel) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontzpacket/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontzpacket/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (CfontzpacketOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontzpacket/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontzpacket/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzpacketOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontzpacket/#/oldfirmware'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontzpacket/#/oldfirmware'. + */// +static inline kdb_boolean_t ELEKTRA_GET (CfontzpacketOldfirmware) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/oldfirmware", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontzpacket/#/oldfirmware'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontzpacket/#/oldfirmware'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzpacketOldfirmware) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/oldfirmware", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontzpacket/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontzpacket/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (CfontzpacketReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontzpacket/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontzpacket/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzpacketReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontzpacket/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontzpacket/#/size'. + */// +static inline const char * ELEKTRA_GET (CfontzpacketSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontzpacket/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontzpacket/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzpacketSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontzpacket/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontzpacket/#/speed'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (CfontzpacketSpeed) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontzpacket/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontzpacket/#/speed'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzpacketSpeed) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontzpacket/#/usb'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontzpacket/#/usb'. + */// +static inline kdb_boolean_t ELEKTRA_GET (CfontzpacketUsb) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/usb", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontzpacket/#/usb'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontzpacket/#/usb'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzpacketUsb) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/usb", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'curses/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Curses) (Elektra * elektra, CursesDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructCursesDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'curses/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'curses/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Curses) (Elektra * elektra, const CursesDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructCursesDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'curses/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Curses) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "curses"); +} + + + +/** + * Get the value of 'curses/#/background'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'curses/#/background'. + */// +static inline CursesColor ELEKTRA_GET (CursesBackground) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/background", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + CursesColor result = ELEKTRA_GET (EnumCursesColor) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'curses/#/background'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'curses/#/background'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CursesBackground) (Elektra * elektra, + CursesColor value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/background", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumCursesColor) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'curses/#/backlight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'curses/#/backlight'. + */// +static inline CursesColor ELEKTRA_GET (CursesBacklight) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + CursesColor result = ELEKTRA_GET (EnumCursesColor) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'curses/#/backlight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'curses/#/backlight'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CursesBacklight) (Elektra * elektra, + CursesColor value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumCursesColor) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'curses/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'curses/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (CursesBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'curses/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'curses/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CursesBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'curses/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'curses/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (CursesContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'curses/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'curses/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CursesContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'curses/#/drawborder'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'curses/#/drawborder'. + */// +static inline kdb_boolean_t ELEKTRA_GET (CursesDrawborder) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/drawborder", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'curses/#/drawborder'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'curses/#/drawborder'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CursesDrawborder) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/drawborder", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'curses/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'curses/#/file'. + */// +static inline const char * ELEKTRA_GET (CursesFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'curses/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'curses/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CursesFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'curses/#/foreground'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'curses/#/foreground'. + */// +static inline CursesColor ELEKTRA_GET (CursesForeground) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/foreground", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + CursesColor result = ELEKTRA_GET (EnumCursesColor) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'curses/#/foreground'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'curses/#/foreground'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CursesForeground) (Elektra * elektra, + CursesColor value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/foreground", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumCursesColor) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'curses/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'curses/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (CursesOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'curses/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'curses/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CursesOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'curses/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'curses/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (CursesReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'curses/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'curses/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CursesReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'curses/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'curses/#/size'. + */// +static inline const char * ELEKTRA_GET (CursesSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'curses/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'curses/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CursesSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'curses/#/topleftx'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'curses/#/topleftx'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (CursesTopleftx) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/topleftx", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'curses/#/topleftx'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'curses/#/topleftx'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CursesTopleftx) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/topleftx", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'curses/#/toplefty'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'curses/#/toplefty'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (CursesToplefty) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/toplefty", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'curses/#/toplefty'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'curses/#/toplefty'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CursesToplefty) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/toplefty", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'curses/#/useacs'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'curses/#/useacs'. + */// +static inline kdb_boolean_t ELEKTRA_GET (CursesUseacs) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/useacs", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'curses/#/useacs'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'curses/#/useacs'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CursesUseacs) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/useacs", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'cwlnx/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Cwlnx) (Elektra * elektra, CwLnxDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructCwLnxDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'cwlnx/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cwlnx/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Cwlnx) (Elektra * elektra, const CwLnxDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructCwLnxDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'cwlnx/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Cwlnx) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "cwlnx"); +} + + + +/** + * Get the value of 'cwlnx/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cwlnx/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (CwlnxBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cwlnx/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cwlnx/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CwlnxBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cwlnx/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cwlnx/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (CwlnxContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cwlnx/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cwlnx/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CwlnxContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cwlnx/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cwlnx/#/device'. + */// +static inline const char * ELEKTRA_GET (CwlnxDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cwlnx/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cwlnx/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CwlnxDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cwlnx/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cwlnx/#/file'. + */// +static inline const char * ELEKTRA_GET (CwlnxFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cwlnx/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cwlnx/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CwlnxFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cwlnx/#/keymap_a'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cwlnx/#/keymap_a'. + */// +static inline const char * ELEKTRA_GET (CwlnxKeymapA) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_a", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cwlnx/#/keymap_a'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cwlnx/#/keymap_a'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CwlnxKeymapA) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_a", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cwlnx/#/keymap_b'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cwlnx/#/keymap_b'. + */// +static inline const char * ELEKTRA_GET (CwlnxKeymapB) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_b", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cwlnx/#/keymap_b'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cwlnx/#/keymap_b'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CwlnxKeymapB) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_b", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cwlnx/#/keymap_c'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cwlnx/#/keymap_c'. + */// +static inline const char * ELEKTRA_GET (CwlnxKeymapC) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_c", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cwlnx/#/keymap_c'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cwlnx/#/keymap_c'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CwlnxKeymapC) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_c", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cwlnx/#/keymap_d'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cwlnx/#/keymap_d'. + */// +static inline const char * ELEKTRA_GET (CwlnxKeymapD) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_d", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cwlnx/#/keymap_d'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cwlnx/#/keymap_d'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CwlnxKeymapD) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_d", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cwlnx/#/keymap_e'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cwlnx/#/keymap_e'. + */// +static inline const char * ELEKTRA_GET (CwlnxKeymapE) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_e", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cwlnx/#/keymap_e'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cwlnx/#/keymap_e'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CwlnxKeymapE) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_e", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cwlnx/#/keymap_f'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cwlnx/#/keymap_f'. + */// +static inline const char * ELEKTRA_GET (CwlnxKeymapF) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_f", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cwlnx/#/keymap_f'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cwlnx/#/keymap_f'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CwlnxKeymapF) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_f", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cwlnx/#/keypad'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cwlnx/#/keypad'. + */// +static inline kdb_boolean_t ELEKTRA_GET (CwlnxKeypad) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/keypad", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cwlnx/#/keypad'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cwlnx/#/keypad'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CwlnxKeypad) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/keypad", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cwlnx/#/keypad_test_mode'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cwlnx/#/keypad_test_mode'. + */// +static inline kdb_boolean_t ELEKTRA_GET (CwlnxKeypadTestMode) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/keypad_test_mode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cwlnx/#/keypad_test_mode'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cwlnx/#/keypad_test_mode'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CwlnxKeypadTestMode) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/keypad_test_mode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cwlnx/#/model'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cwlnx/#/model'. + */// +static inline CwLnxModel ELEKTRA_GET (CwlnxModel) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/model", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + CwLnxModel result = ELEKTRA_GET (EnumCwLnxModel) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cwlnx/#/model'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cwlnx/#/model'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CwlnxModel) (Elektra * elektra, + CwLnxModel value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/model", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumCwLnxModel) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cwlnx/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cwlnx/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (CwlnxOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cwlnx/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cwlnx/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CwlnxOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cwlnx/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cwlnx/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (CwlnxReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cwlnx/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cwlnx/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CwlnxReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cwlnx/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cwlnx/#/size'. + */// +static inline const char * ELEKTRA_GET (CwlnxSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cwlnx/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cwlnx/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CwlnxSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cwlnx/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cwlnx/#/speed'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (CwlnxSpeed) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cwlnx/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cwlnx/#/speed'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CwlnxSpeed) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'ea65/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Ea65) (Elektra * elektra, Ea65DriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("ea65/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructEa65DriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'ea65/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ea65/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ea65) (Elektra * elektra, const Ea65DriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ea65/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructEa65DriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'ea65/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Ea65) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "ea65"); +} + + + +/** + * Get the value of 'ea65/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ea65/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Ea65Brightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ea65/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ea65/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ea65/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ea65Brightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ea65/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ea65/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ea65/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Ea65Contrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ea65/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ea65/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ea65/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ea65Contrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ea65/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ea65/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ea65/#/file'. + */// +static inline const char * ELEKTRA_GET (Ea65File) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ea65/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ea65/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ea65/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ea65File) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ea65/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ea65/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ea65/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Ea65Offbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ea65/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ea65/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ea65/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ea65Offbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ea65/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ea65/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ea65/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Ea65Reboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ea65/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ea65/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ea65/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ea65Reboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ea65/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'eyeboxone/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Eyeboxone) (Elektra * elektra, EyeboxOneDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructEyeboxOneDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'eyeboxone/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'eyeboxone/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Eyeboxone) (Elektra * elektra, const EyeboxOneDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructEyeboxOneDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'eyeboxone/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Eyeboxone) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "eyeboxone"); +} + + + +/** + * Get the value of 'eyeboxone/#/backlight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'eyeboxone/#/backlight'. + */// +static inline kdb_boolean_t ELEKTRA_GET (EyeboxoneBacklight) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'eyeboxone/#/backlight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'eyeboxone/#/backlight'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (EyeboxoneBacklight) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'eyeboxone/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'eyeboxone/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (EyeboxoneBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'eyeboxone/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'eyeboxone/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (EyeboxoneBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'eyeboxone/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'eyeboxone/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (EyeboxoneContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'eyeboxone/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'eyeboxone/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (EyeboxoneContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'eyeboxone/#/cursor'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'eyeboxone/#/cursor'. + */// +static inline kdb_boolean_t ELEKTRA_GET (EyeboxoneCursor) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/cursor", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'eyeboxone/#/cursor'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'eyeboxone/#/cursor'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (EyeboxoneCursor) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/cursor", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'eyeboxone/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'eyeboxone/#/device'. + */// +static inline const char * ELEKTRA_GET (EyeboxoneDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'eyeboxone/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'eyeboxone/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (EyeboxoneDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'eyeboxone/#/downkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'eyeboxone/#/downkey'. + */// +static inline const char * ELEKTRA_GET (EyeboxoneDownkey) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/downkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'eyeboxone/#/downkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'eyeboxone/#/downkey'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (EyeboxoneDownkey) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/downkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'eyeboxone/#/escapekey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'eyeboxone/#/escapekey'. + */// +static inline const char * ELEKTRA_GET (EyeboxoneEscapekey) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/escapekey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'eyeboxone/#/escapekey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'eyeboxone/#/escapekey'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (EyeboxoneEscapekey) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/escapekey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'eyeboxone/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'eyeboxone/#/file'. + */// +static inline const char * ELEKTRA_GET (EyeboxoneFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'eyeboxone/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'eyeboxone/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (EyeboxoneFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'eyeboxone/#/keypad_test_mode'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'eyeboxone/#/keypad_test_mode'. + */// +static inline kdb_boolean_t ELEKTRA_GET (EyeboxoneKeypadTestMode) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/keypad_test_mode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'eyeboxone/#/keypad_test_mode'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'eyeboxone/#/keypad_test_mode'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (EyeboxoneKeypadTestMode) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/keypad_test_mode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'eyeboxone/#/leftkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'eyeboxone/#/leftkey'. + */// +static inline const char * ELEKTRA_GET (EyeboxoneLeftkey) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/leftkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'eyeboxone/#/leftkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'eyeboxone/#/leftkey'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (EyeboxoneLeftkey) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/leftkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'eyeboxone/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'eyeboxone/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (EyeboxoneOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'eyeboxone/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'eyeboxone/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (EyeboxoneOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'eyeboxone/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'eyeboxone/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (EyeboxoneReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'eyeboxone/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'eyeboxone/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (EyeboxoneReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'eyeboxone/#/rightkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'eyeboxone/#/rightkey'. + */// +static inline const char * ELEKTRA_GET (EyeboxoneRightkey) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/rightkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'eyeboxone/#/rightkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'eyeboxone/#/rightkey'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (EyeboxoneRightkey) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/rightkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'eyeboxone/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'eyeboxone/#/size'. + */// +static inline const char * ELEKTRA_GET (EyeboxoneSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'eyeboxone/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'eyeboxone/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (EyeboxoneSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'eyeboxone/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'eyeboxone/#/speed'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (EyeboxoneSpeed) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'eyeboxone/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'eyeboxone/#/speed'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (EyeboxoneSpeed) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'eyeboxone/#/upkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'eyeboxone/#/upkey'. + */// +static inline const char * ELEKTRA_GET (EyeboxoneUpkey) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/upkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'eyeboxone/#/upkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'eyeboxone/#/upkey'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (EyeboxoneUpkey) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/upkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'futaba/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Futaba) (Elektra * elektra, FutabaDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("futaba/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructFutabaDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'futaba/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'futaba/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Futaba) (Elektra * elektra, const FutabaDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("futaba/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructFutabaDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'futaba/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Futaba) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "futaba"); +} + + + +/** + * Get the value of 'futaba/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'futaba/#/file'. + */// +static inline const char * ELEKTRA_GET (FutabaFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("futaba/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'futaba/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'futaba/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (FutabaFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("futaba/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'g15/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (G15) (Elektra * elektra, G15DriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("g15/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructG15DriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'g15/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'g15/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (G15) (Elektra * elektra, const G15DriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("g15/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructG15DriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'g15/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (G15) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "g15"); +} + + + +/** + * Get the value of 'g15/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'g15/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (G15Brightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("g15/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'g15/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'g15/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (G15Brightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("g15/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'g15/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'g15/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (G15Contrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("g15/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'g15/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'g15/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (G15Contrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("g15/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'g15/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'g15/#/file'. + */// +static inline const char * ELEKTRA_GET (G15File) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("g15/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'g15/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'g15/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (G15File) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("g15/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'g15/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'g15/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (G15Offbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("g15/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'g15/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'g15/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (G15Offbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("g15/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'g15/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'g15/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (G15Reboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("g15/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'g15/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'g15/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (G15Reboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("g15/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'g15/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'g15/#/size'. + */// +static inline const char * ELEKTRA_GET (G15Size) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("g15/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'g15/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'g15/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (G15Size) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("g15/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'glcd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Glcd) (Elektra * elektra, GlcdDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructGlcdDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'glcd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Glcd) (Elektra * elektra, const GlcdDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructGlcdDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'glcd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Glcd) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "glcd"); +} + + + +/** + * Get the value of 'glcd/#/bidirectional'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/bidirectional'. + */// +static inline kdb_boolean_t ELEKTRA_GET (GlcdBidirectional) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/bidirectional", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/bidirectional'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/bidirectional'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdBidirectional) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/bidirectional", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (GlcdBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/cellsize'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/cellsize'. + */// +static inline const char * ELEKTRA_GET (GlcdCellsize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/cellsize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/cellsize'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/cellsize'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdCellsize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/cellsize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/connectiontype'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/connectiontype'. + */// +static inline GlcdConnectionType ELEKTRA_GET (GlcdConnectiontype) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/connectiontype", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + GlcdConnectionType result = ELEKTRA_GET (EnumGlcdConnectionType) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/connectiontype'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/connectiontype'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdConnectiontype) (Elektra * elektra, + GlcdConnectionType value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/connectiontype", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumGlcdConnectionType) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (GlcdContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/delaybus'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/delaybus'. + */// +static inline kdb_boolean_t ELEKTRA_GET (GlcdDelaybus) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/delaybus", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/delaybus'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/delaybus'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdDelaybus) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/delaybus", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/file'. + */// +static inline const char * ELEKTRA_GET (GlcdFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/fonthasicons'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/fonthasicons'. + */// +static inline kdb_boolean_t ELEKTRA_GET (GlcdFonthasicons) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/fonthasicons", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/fonthasicons'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/fonthasicons'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdFonthasicons) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/fonthasicons", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/keymap_a'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/keymap_a'. + */// +static inline const char * ELEKTRA_GET (GlcdKeymapA) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/keymap_a", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/keymap_a'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/keymap_a'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdKeymapA) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/keymap_a", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/keymap_b'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/keymap_b'. + */// +static inline const char * ELEKTRA_GET (GlcdKeymapB) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/keymap_b", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/keymap_b'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/keymap_b'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdKeymapB) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/keymap_b", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/keymap_c'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/keymap_c'. + */// +static inline const char * ELEKTRA_GET (GlcdKeymapC) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/keymap_c", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/keymap_c'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/keymap_c'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdKeymapC) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/keymap_c", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/keymap_d'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/keymap_d'. + */// +static inline const char * ELEKTRA_GET (GlcdKeymapD) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/keymap_d", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/keymap_d'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/keymap_d'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdKeymapD) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/keymap_d", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/keymap_e'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/keymap_e'. + */// +static inline const char * ELEKTRA_GET (GlcdKeymapE) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/keymap_e", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/keymap_e'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/keymap_e'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdKeymapE) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/keymap_e", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/keymap_f'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/keymap_f'. + */// +static inline const char * ELEKTRA_GET (GlcdKeymapF) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/keymap_f", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/keymap_f'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/keymap_f'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdKeymapF) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/keymap_f", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/keyrepeatdelay'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/keyrepeatdelay'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (GlcdKeyrepeatdelay) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/keyrepeatdelay", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/keyrepeatdelay'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/keyrepeatdelay'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdKeyrepeatdelay) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/keyrepeatdelay", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/keyrepeatinterval'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/keyrepeatinterval'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (GlcdKeyrepeatinterval) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/keyrepeatinterval", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/keyrepeatinterval'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/keyrepeatinterval'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdKeyrepeatinterval) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/keyrepeatinterval", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/normal_font'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/normal_font'. + */// +static inline const char * ELEKTRA_GET (GlcdNormalFont) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/normal_font", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/normal_font'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/normal_font'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdNormalFont) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/normal_font", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (GlcdOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/picolcdgfx_inverted'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/picolcdgfx_inverted'. + */// +static inline kdb_boolean_t ELEKTRA_GET (GlcdPicolcdgfxInverted) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/picolcdgfx_inverted", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/picolcdgfx_inverted'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/picolcdgfx_inverted'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdPicolcdgfxInverted) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/picolcdgfx_inverted", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/picolcdgfx_keytimeout'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/picolcdgfx_keytimeout'. + */// +static inline const char * ELEKTRA_GET (GlcdPicolcdgfxKeytimeout) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/picolcdgfx_keytimeout", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/picolcdgfx_keytimeout'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/picolcdgfx_keytimeout'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdPicolcdgfxKeytimeout) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/picolcdgfx_keytimeout", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/port'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/port'. + */// +static inline const char * ELEKTRA_GET (GlcdPort) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/port'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/port'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdPort) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (GlcdReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/serdisp_device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/serdisp_device'. + */// +static inline const char * ELEKTRA_GET (GlcdSerdispDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/serdisp_device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/serdisp_device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/serdisp_device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdSerdispDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/serdisp_device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/serdisp_name'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/serdisp_name'. + */// +static inline const char * ELEKTRA_GET (GlcdSerdispName) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/serdisp_name", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/serdisp_name'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/serdisp_name'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdSerdispName) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/serdisp_name", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/serdisp_options'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/serdisp_options'. + */// +static inline const char * ELEKTRA_GET (GlcdSerdispOptions) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/serdisp_options", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/serdisp_options'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/serdisp_options'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdSerdispOptions) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/serdisp_options", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/size'. + */// +static inline const char * ELEKTRA_GET (GlcdSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/useft2'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/useft2'. + */// +static inline kdb_boolean_t ELEKTRA_GET (GlcdUseft2) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/useft2", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/useft2'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/useft2'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdUseft2) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/useft2", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/x11_backlightcolor'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/x11_backlightcolor'. + */// +static inline const char * ELEKTRA_GET (GlcdX11Backlightcolor) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/x11_backlightcolor", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/x11_backlightcolor'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/x11_backlightcolor'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdX11Backlightcolor) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/x11_backlightcolor", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/x11_border'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/x11_border'. + */// +static inline kdb_unsigned_long_t ELEKTRA_GET (GlcdX11Border) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/x11_border", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/x11_border'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/x11_border'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdX11Border) (Elektra * elektra, + kdb_unsigned_long_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/x11_border", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/x11_inverted'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/x11_inverted'. + */// +static inline kdb_boolean_t ELEKTRA_GET (GlcdX11Inverted) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/x11_inverted", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/x11_inverted'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/x11_inverted'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdX11Inverted) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/x11_inverted", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/x11_pixelcolor'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/x11_pixelcolor'. + */// +static inline const char * ELEKTRA_GET (GlcdX11Pixelcolor) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/x11_pixelcolor", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/x11_pixelcolor'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/x11_pixelcolor'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdX11Pixelcolor) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/x11_pixelcolor", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/x11_pixelsize'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/x11_pixelsize'. + */// +static inline const char * ELEKTRA_GET (GlcdX11Pixelsize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/x11_pixelsize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/x11_pixelsize'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/x11_pixelsize'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdX11Pixelsize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/x11_pixelsize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'glcdlib/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Glcdlib) (Elektra * elektra, GlcdlibDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructGlcdlibDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'glcdlib/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Glcdlib) (Elektra * elektra, const GlcdlibDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructGlcdlibDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'glcdlib/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Glcdlib) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "glcdlib"); +} + + + +/** + * Get the value of 'glcdlib/#/CharEncoding'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/CharEncoding'. + */// +static inline const char * ELEKTRA_GET (GlcdlibCharEncoding) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/CharEncoding", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/CharEncoding'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/CharEncoding'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibCharEncoding) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/CharEncoding", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/backlight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/backlight'. + */// +static inline kdb_boolean_t ELEKTRA_GET (GlcdlibBacklight) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/backlight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/backlight'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibBacklight) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (GlcdlibBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (GlcdlibContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/driver'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/driver'. + */// +static inline const char * ELEKTRA_GET (GlcdlibDriver) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/driver", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/driver'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/driver'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibDriver) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/driver", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/file'. + */// +static inline const char * ELEKTRA_GET (GlcdlibFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/fontfile'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/fontfile'. + */// +static inline const char * ELEKTRA_GET (GlcdlibFontfile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/fontfile", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/fontfile'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/fontfile'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibFontfile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/fontfile", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/invert'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/invert'. + */// +static inline kdb_boolean_t ELEKTRA_GET (GlcdlibInvert) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/invert", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/invert'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/invert'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibInvert) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/invert", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/minfontfacesize'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/minfontfacesize'. + */// +static inline const char * ELEKTRA_GET (GlcdlibMinfontfacesize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/minfontfacesize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/minfontfacesize'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/minfontfacesize'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibMinfontfacesize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/minfontfacesize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (GlcdlibOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/pixelshiftx'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/pixelshiftx'. + */// +static inline kdb_short_t ELEKTRA_GET (GlcdlibPixelshiftx) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/pixelshiftx", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_short_t result = ELEKTRA_GET (Short) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/pixelshiftx'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/pixelshiftx'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibPixelshiftx) (Elektra * elektra, + kdb_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/pixelshiftx", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Short) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/pixelshifty'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/pixelshifty'. + */// +static inline kdb_short_t ELEKTRA_GET (GlcdlibPixelshifty) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/pixelshifty", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_short_t result = ELEKTRA_GET (Short) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/pixelshifty'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/pixelshifty'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibPixelshifty) (Elektra * elektra, + kdb_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/pixelshifty", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Short) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (GlcdlibReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/showbigborder'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/showbigborder'. + */// +static inline kdb_boolean_t ELEKTRA_GET (GlcdlibShowbigborder) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/showbigborder", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/showbigborder'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/showbigborder'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibShowbigborder) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/showbigborder", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/showdebugframe'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/showdebugframe'. + */// +static inline kdb_boolean_t ELEKTRA_GET (GlcdlibShowdebugframe) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/showdebugframe", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/showdebugframe'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/showdebugframe'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibShowdebugframe) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/showdebugframe", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/showthinborder'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/showthinborder'. + */// +static inline kdb_boolean_t ELEKTRA_GET (GlcdlibShowthinborder) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/showthinborder", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/showthinborder'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/showthinborder'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibShowthinborder) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/showthinborder", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/textresolution'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/textresolution'. + */// +static inline const char * ELEKTRA_GET (GlcdlibTextresolution) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/textresolution", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/textresolution'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/textresolution'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibTextresolution) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/textresolution", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/upsidedown'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/upsidedown'. + */// +static inline kdb_boolean_t ELEKTRA_GET (GlcdlibUpsidedown) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/upsidedown", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/upsidedown'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/upsidedown'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibUpsidedown) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/upsidedown", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/useft2'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/useft2'. + */// +static inline kdb_boolean_t ELEKTRA_GET (GlcdlibUseft2) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/useft2", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/useft2'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/useft2'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibUseft2) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/useft2", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'glk/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Glk) (Elektra * elektra, GlkDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("glk/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructGlkDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'glk/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glk/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Glk) (Elektra * elektra, const GlkDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glk/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructGlkDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'glk/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Glk) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "glk"); +} + + + +/** + * Get the value of 'glk/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glk/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (GlkBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glk/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glk/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glk/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlkBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glk/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glk/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glk/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (GlkContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glk/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glk/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glk/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlkContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glk/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glk/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glk/#/device'. + */// +static inline const char * ELEKTRA_GET (GlkDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glk/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glk/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glk/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlkDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glk/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glk/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glk/#/file'. + */// +static inline const char * ELEKTRA_GET (GlkFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glk/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glk/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glk/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlkFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glk/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glk/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glk/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (GlkOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glk/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glk/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glk/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlkOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glk/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glk/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glk/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (GlkReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glk/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glk/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glk/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlkReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glk/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glk/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glk/#/speed'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (GlkSpeed) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glk/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glk/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glk/#/speed'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlkSpeed) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glk/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'hd44780/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Hd44780) (Elektra * elektra, Hd44780DriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructHd44780DriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'hd44780/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780) (Elektra * elektra, const Hd44780DriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructHd44780DriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'hd44780/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Hd44780) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "hd44780"); +} + + + +/** + * Get the value of 'hd44780/#/backlight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/backlight'. + */// +static inline HD44780Backlight ELEKTRA_GET (Hd44780Backlight) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + HD44780Backlight result = ELEKTRA_GET (EnumHD44780Backlight) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/backlight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/backlight'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Backlight) (Elektra * elektra, + HD44780Backlight value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumHD44780Backlight) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/backlightcmdoff'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/backlightcmdoff'. + */// +static inline const char * ELEKTRA_GET (Hd44780Backlightcmdoff) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/backlightcmdoff", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/backlightcmdoff'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/backlightcmdoff'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Backlightcmdoff) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/backlightcmdoff", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/backlightcmdon'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/backlightcmdon'. + */// +static inline const char * ELEKTRA_GET (Hd44780Backlightcmdon) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/backlightcmdon", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/backlightcmdon'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/backlightcmdon'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Backlightcmdon) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/backlightcmdon", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Hd44780Brightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Brightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/charmap'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/charmap'. + */// +static inline HD44780Charmap ELEKTRA_GET (Hd44780Charmap) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/charmap", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + HD44780Charmap result = ELEKTRA_GET (EnumHD44780Charmap) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/charmap'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/charmap'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Charmap) (Elektra * elektra, + HD44780Charmap value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/charmap", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumHD44780Charmap) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/connectiontype'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/connectiontype'. + */// +static inline HD44780ConnectionType ELEKTRA_GET (Hd44780Connectiontype) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/connectiontype", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + HD44780ConnectionType result = ELEKTRA_GET (EnumHD44780ConnectionType) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/connectiontype'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/connectiontype'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Connectiontype) (Elektra * elektra, + HD44780ConnectionType value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/connectiontype", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumHD44780ConnectionType) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Hd44780Contrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Contrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/delaybus'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/delaybus'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Hd44780Delaybus) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/delaybus", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/delaybus'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/delaybus'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Delaybus) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/delaybus", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/delaymult'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/delaymult'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Hd44780Delaymult) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/delaymult", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/delaymult'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/delaymult'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Delaymult) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/delaymult", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/device'. + */// +static inline const char * ELEKTRA_GET (Hd44780Device) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Device) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/extendedmode'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/extendedmode'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Hd44780Extendedmode) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/extendedmode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/extendedmode'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/extendedmode'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Extendedmode) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/extendedmode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/file'. + */// +static inline const char * ELEKTRA_GET (Hd44780File) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780File) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/fontbank'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/fontbank'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Hd44780Fontbank) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/fontbank", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/fontbank'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/fontbank'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Fontbank) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/fontbank", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/keepalivedisplay'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/keepalivedisplay'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Hd44780Keepalivedisplay) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/keepalivedisplay", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/keepalivedisplay'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/keepalivedisplay'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Keepalivedisplay) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/keepalivedisplay", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/keymatrix_4_1'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/keymatrix_4_1'. + */// +static inline const char * ELEKTRA_GET (Hd44780Keymatrix41) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/keymatrix_4_1", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/keymatrix_4_1'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/keymatrix_4_1'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Keymatrix41) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/keymatrix_4_1", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/keymatrix_4_2'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/keymatrix_4_2'. + */// +static inline const char * ELEKTRA_GET (Hd44780Keymatrix42) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/keymatrix_4_2", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/keymatrix_4_2'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/keymatrix_4_2'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Keymatrix42) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/keymatrix_4_2", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/keymatrix_4_3'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/keymatrix_4_3'. + */// +static inline const char * ELEKTRA_GET (Hd44780Keymatrix43) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/keymatrix_4_3", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/keymatrix_4_3'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/keymatrix_4_3'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Keymatrix43) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/keymatrix_4_3", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/keymatrix_4_4'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/keymatrix_4_4'. + */// +static inline const char * ELEKTRA_GET (Hd44780Keymatrix44) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/keymatrix_4_4", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/keymatrix_4_4'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/keymatrix_4_4'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Keymatrix44) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/keymatrix_4_4", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/keypad'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/keypad'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Hd44780Keypad) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/keypad", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/keypad'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/keypad'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Keypad) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/keypad", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/lastline'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/lastline'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Hd44780Lastline) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/lastline", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/lastline'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/lastline'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Lastline) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/lastline", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/lineaddress'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/lineaddress'. + */// +static inline const char * ELEKTRA_GET (Hd44780Lineaddress) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/lineaddress", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/lineaddress'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/lineaddress'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Lineaddress) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/lineaddress", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/model'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/model'. + */// +static inline ElektraEnumHd44780Model ELEKTRA_GET (Hd44780Model) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/model", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ElektraEnumHd44780Model result = ELEKTRA_GET (EnumHd44780Model) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/model'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/model'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Model) (Elektra * elektra, + ElektraEnumHd44780Model value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/model", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumHd44780Model) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Hd44780Offbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Offbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/outputport'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/outputport'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Hd44780Outputport) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/outputport", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/outputport'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/outputport'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Outputport) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/outputport", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/port'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/port'. + */// +static inline const char * ELEKTRA_GET (Hd44780Port) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/port'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/port'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Port) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Hd44780Reboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Reboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/refreshdisplay'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/refreshdisplay'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Hd44780Refreshdisplay) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/refreshdisplay", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/refreshdisplay'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/refreshdisplay'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Refreshdisplay) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/refreshdisplay", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/size'. + */// +static inline const char * ELEKTRA_GET (Hd44780Size) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Size) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/speed'. + */// +static inline kdb_unsigned_long_t ELEKTRA_GET (Hd44780Speed) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/speed'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Speed) (Elektra * elektra, + kdb_unsigned_long_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/vspan'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/vspan'. + */// +static inline const char * ELEKTRA_GET (Hd44780Vspan) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/vspan", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/vspan'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/vspan'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Vspan) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/vspan", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'icp_a106/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (IcpA106) (Elektra * elektra, Icp_a106DriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("icp_a106/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructIcp_a106DriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'icp_a106/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'icp_a106/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IcpA106) (Elektra * elektra, const Icp_a106DriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("icp_a106/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructIcp_a106DriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'icp_a106/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (IcpA106) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "icp_a106"); +} + + + +/** + * Get the value of 'icp_a106/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'icp_a106/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (IcpA106Brightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("icp_a106/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'icp_a106/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'icp_a106/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IcpA106Brightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("icp_a106/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'icp_a106/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'icp_a106/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (IcpA106Contrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("icp_a106/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'icp_a106/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'icp_a106/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IcpA106Contrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("icp_a106/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'icp_a106/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'icp_a106/#/device'. + */// +static inline const char * ELEKTRA_GET (IcpA106Device) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("icp_a106/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'icp_a106/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'icp_a106/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IcpA106Device) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("icp_a106/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'icp_a106/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'icp_a106/#/file'. + */// +static inline const char * ELEKTRA_GET (IcpA106File) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("icp_a106/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'icp_a106/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'icp_a106/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IcpA106File) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("icp_a106/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'icp_a106/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'icp_a106/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (IcpA106Offbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("icp_a106/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'icp_a106/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'icp_a106/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IcpA106Offbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("icp_a106/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'icp_a106/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'icp_a106/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (IcpA106Reboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("icp_a106/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'icp_a106/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'icp_a106/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IcpA106Reboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("icp_a106/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'icp_a106/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'icp_a106/#/size'. + */// +static inline const char * ELEKTRA_GET (IcpA106Size) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("icp_a106/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'icp_a106/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'icp_a106/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IcpA106Size) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("icp_a106/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'imon/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Imon) (Elektra * elektra, ImonDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructImonDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'imon/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imon/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Imon) (Elektra * elektra, const ImonDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructImonDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'imon/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Imon) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "imon"); +} + + + +/** + * Get the value of 'imon/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imon/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (ImonBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imon/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imon/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'imon/#/charmap'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imon/#/charmap'. + */// +static inline IMonCharmap ELEKTRA_GET (ImonCharmap) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld/charmap", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + IMonCharmap result = ELEKTRA_GET (EnumIMonCharmap) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imon/#/charmap'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imon/#/charmap'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonCharmap) (Elektra * elektra, + IMonCharmap value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld/charmap", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumIMonCharmap) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'imon/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imon/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (ImonContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imon/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imon/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'imon/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imon/#/device'. + */// +static inline const char * ELEKTRA_GET (ImonDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imon/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imon/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'imon/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imon/#/file'. + */// +static inline const char * ELEKTRA_GET (ImonFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imon/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imon/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'imon/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imon/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (ImonOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imon/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imon/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'imon/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imon/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (ImonReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imon/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imon/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'imon/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imon/#/size'. + */// +static inline const char * ELEKTRA_GET (ImonSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imon/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imon/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'imonlcd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Imonlcd) (Elektra * elektra, ImonlcdDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructImonlcdDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'imonlcd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imonlcd/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Imonlcd) (Elektra * elektra, const ImonlcdDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructImonlcdDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'imonlcd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Imonlcd) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "imonlcd"); +} + + + +/** + * Get the value of 'imonlcd/#/backlight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imonlcd/#/backlight'. + */// +static inline kdb_boolean_t ELEKTRA_GET (ImonlcdBacklight) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imonlcd/#/backlight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imonlcd/#/backlight'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonlcdBacklight) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'imonlcd/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imonlcd/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (ImonlcdBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imonlcd/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imonlcd/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonlcdBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'imonlcd/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imonlcd/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (ImonlcdContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imonlcd/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imonlcd/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonlcdContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'imonlcd/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imonlcd/#/device'. + */// +static inline const char * ELEKTRA_GET (ImonlcdDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imonlcd/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imonlcd/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonlcdDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'imonlcd/#/discmode'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imonlcd/#/discmode'. + */// +static inline IMonLCDDiscMode ELEKTRA_GET (ImonlcdDiscmode) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/discmode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + IMonLCDDiscMode result = ELEKTRA_GET (EnumIMonLCDDiscMode) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imonlcd/#/discmode'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imonlcd/#/discmode'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonlcdDiscmode) (Elektra * elektra, + IMonLCDDiscMode value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/discmode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumIMonLCDDiscMode) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'imonlcd/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imonlcd/#/file'. + */// +static inline const char * ELEKTRA_GET (ImonlcdFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imonlcd/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imonlcd/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonlcdFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'imonlcd/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imonlcd/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (ImonlcdOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imonlcd/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imonlcd/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonlcdOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'imonlcd/#/onexit'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imonlcd/#/onexit'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (ImonlcdOnexit) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/onexit", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imonlcd/#/onexit'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imonlcd/#/onexit'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonlcdOnexit) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/onexit", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'imonlcd/#/protocol'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imonlcd/#/protocol'. + */// +static inline const char * ELEKTRA_GET (ImonlcdProtocol) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/protocol", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imonlcd/#/protocol'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imonlcd/#/protocol'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonlcdProtocol) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/protocol", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'imonlcd/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imonlcd/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (ImonlcdReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imonlcd/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imonlcd/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonlcdReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'imonlcd/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imonlcd/#/size'. + */// +static inline const char * ELEKTRA_GET (ImonlcdSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imonlcd/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imonlcd/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonlcdSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'iowarrior/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Iowarrior) (Elektra * elektra, IOWarriorDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructIOWarriorDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'iowarrior/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'iowarrior/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Iowarrior) (Elektra * elektra, const IOWarriorDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructIOWarriorDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'iowarrior/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Iowarrior) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "iowarrior"); +} + + + +/** + * Get the value of 'iowarrior/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'iowarrior/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (IowarriorBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'iowarrior/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'iowarrior/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IowarriorBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'iowarrior/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'iowarrior/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (IowarriorContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'iowarrior/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'iowarrior/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IowarriorContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'iowarrior/#/extendedmode'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'iowarrior/#/extendedmode'. + */// +static inline kdb_boolean_t ELEKTRA_GET (IowarriorExtendedmode) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/extendedmode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'iowarrior/#/extendedmode'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'iowarrior/#/extendedmode'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IowarriorExtendedmode) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/extendedmode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'iowarrior/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'iowarrior/#/file'. + */// +static inline const char * ELEKTRA_GET (IowarriorFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'iowarrior/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'iowarrior/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IowarriorFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'iowarrior/#/lastline'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'iowarrior/#/lastline'. + */// +static inline kdb_boolean_t ELEKTRA_GET (IowarriorLastline) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/lastline", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'iowarrior/#/lastline'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'iowarrior/#/lastline'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IowarriorLastline) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/lastline", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'iowarrior/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'iowarrior/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (IowarriorOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'iowarrior/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'iowarrior/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IowarriorOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'iowarrior/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'iowarrior/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (IowarriorReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'iowarrior/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'iowarrior/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IowarriorReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'iowarrior/#/serialnumber'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'iowarrior/#/serialnumber'. + */// +static inline const char * ELEKTRA_GET (IowarriorSerialnumber) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/serialnumber", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'iowarrior/#/serialnumber'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'iowarrior/#/serialnumber'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IowarriorSerialnumber) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/serialnumber", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'iowarrior/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'iowarrior/#/size'. + */// +static inline const char * ELEKTRA_GET (IowarriorSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'iowarrior/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'iowarrior/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IowarriorSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'irman/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Irman) (Elektra * elektra, IrManDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("irman/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructIrManDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'irman/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'irman/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Irman) (Elektra * elektra, const IrManDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("irman/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructIrManDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'irman/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Irman) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "irman"); +} + + + +/** + * Get the value of 'irman/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'irman/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (IrmanBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("irman/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'irman/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'irman/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IrmanBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("irman/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'irman/#/config'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'irman/#/config'. + */// +static inline const char * ELEKTRA_GET (IrmanConfig) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("irman/%*.*s%lld/config", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'irman/#/config'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'irman/#/config'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IrmanConfig) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("irman/%*.*s%lld/config", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'irman/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'irman/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (IrmanContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("irman/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'irman/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'irman/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IrmanContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("irman/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'irman/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'irman/#/device'. + */// +static inline const char * ELEKTRA_GET (IrmanDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("irman/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'irman/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'irman/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IrmanDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("irman/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'irman/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'irman/#/file'. + */// +static inline const char * ELEKTRA_GET (IrmanFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("irman/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'irman/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'irman/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IrmanFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("irman/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'irman/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'irman/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (IrmanOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("irman/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'irman/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'irman/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IrmanOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("irman/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'irman/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'irman/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (IrmanReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("irman/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'irman/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'irman/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IrmanReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("irman/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'irtrans/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Irtrans) (Elektra * elektra, IrtransDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructIrtransDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'irtrans/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'irtrans/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Irtrans) (Elektra * elektra, const IrtransDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructIrtransDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'irtrans/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Irtrans) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "irtrans"); +} + + + +/** + * Get the value of 'irtrans/#/backlight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'irtrans/#/backlight'. + */// +static inline kdb_boolean_t ELEKTRA_GET (IrtransBacklight) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'irtrans/#/backlight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'irtrans/#/backlight'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IrtransBacklight) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'irtrans/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'irtrans/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (IrtransBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'irtrans/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'irtrans/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IrtransBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'irtrans/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'irtrans/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (IrtransContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'irtrans/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'irtrans/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IrtransContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'irtrans/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'irtrans/#/file'. + */// +static inline const char * ELEKTRA_GET (IrtransFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'irtrans/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'irtrans/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IrtransFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'irtrans/#/hostname'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'irtrans/#/hostname'. + */// +static inline const char * ELEKTRA_GET (IrtransHostname) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld/hostname", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'irtrans/#/hostname'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'irtrans/#/hostname'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IrtransHostname) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld/hostname", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'irtrans/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'irtrans/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (IrtransOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'irtrans/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'irtrans/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IrtransOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'irtrans/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'irtrans/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (IrtransReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'irtrans/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'irtrans/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IrtransReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'irtrans/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'irtrans/#/size'. + */// +static inline const char * ELEKTRA_GET (IrtransSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'irtrans/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'irtrans/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IrtransSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'joy/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Joy) (Elektra * elektra, JoyDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructJoyDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'joy/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'joy/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Joy) (Elektra * elektra, const JoyDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructJoyDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'joy/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Joy) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "joy"); +} + + + +/** + * Get the value of 'joy/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'joy/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (JoyBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'joy/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'joy/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (JoyBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'joy/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'joy/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (JoyContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'joy/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'joy/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (JoyContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'joy/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'joy/#/device'. + */// +static inline const char * ELEKTRA_GET (JoyDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'joy/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'joy/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (JoyDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'joy/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'joy/#/file'. + */// +static inline const char * ELEKTRA_GET (JoyFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'joy/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'joy/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (JoyFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'joy/#/map_axis1neg'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'joy/#/map_axis1neg'. + */// +static inline const char * ELEKTRA_GET (JoyMapAxis1neg) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/map_axis1neg", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'joy/#/map_axis1neg'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'joy/#/map_axis1neg'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (JoyMapAxis1neg) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/map_axis1neg", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'joy/#/map_axis1pos'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'joy/#/map_axis1pos'. + */// +static inline const char * ELEKTRA_GET (JoyMapAxis1pos) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/map_axis1pos", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'joy/#/map_axis1pos'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'joy/#/map_axis1pos'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (JoyMapAxis1pos) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/map_axis1pos", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'joy/#/map_axis2neg'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'joy/#/map_axis2neg'. + */// +static inline const char * ELEKTRA_GET (JoyMapAxis2neg) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/map_axis2neg", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'joy/#/map_axis2neg'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'joy/#/map_axis2neg'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (JoyMapAxis2neg) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/map_axis2neg", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'joy/#/map_axis2pos'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'joy/#/map_axis2pos'. + */// +static inline const char * ELEKTRA_GET (JoyMapAxis2pos) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/map_axis2pos", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'joy/#/map_axis2pos'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'joy/#/map_axis2pos'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (JoyMapAxis2pos) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/map_axis2pos", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'joy/#/map_button1'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'joy/#/map_button1'. + */// +static inline const char * ELEKTRA_GET (JoyMapButton1) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/map_button1", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'joy/#/map_button1'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'joy/#/map_button1'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (JoyMapButton1) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/map_button1", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'joy/#/map_button2'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'joy/#/map_button2'. + */// +static inline const char * ELEKTRA_GET (JoyMapButton2) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/map_button2", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'joy/#/map_button2'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'joy/#/map_button2'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (JoyMapButton2) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/map_button2", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'joy/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'joy/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (JoyOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'joy/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'joy/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (JoyOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'joy/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'joy/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (JoyReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'joy/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'joy/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (JoyReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'lb216/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Lb216) (Elektra * elektra, Lb216DriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("lb216/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructLb216DriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'lb216/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lb216/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lb216) (Elektra * elektra, const Lb216DriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lb216/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructLb216DriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'lb216/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Lb216) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "lb216"); +} + + + +/** + * Get the value of 'lb216/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lb216/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Lb216Brightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lb216/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lb216/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lb216/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lb216Brightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lb216/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lb216/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lb216/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Lb216Contrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lb216/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lb216/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lb216/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lb216Contrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lb216/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lb216/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lb216/#/device'. + */// +static inline const char * ELEKTRA_GET (Lb216Device) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lb216/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lb216/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lb216/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lb216Device) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lb216/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lb216/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lb216/#/file'. + */// +static inline const char * ELEKTRA_GET (Lb216File) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lb216/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lb216/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lb216/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lb216File) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lb216/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lb216/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lb216/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Lb216Offbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lb216/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lb216/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lb216/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lb216Offbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lb216/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lb216/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lb216/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Lb216Reboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lb216/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lb216/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lb216/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lb216Reboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lb216/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lb216/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lb216/#/speed'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Lb216Speed) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lb216/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lb216/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lb216/#/speed'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lb216Speed) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lb216/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'lcdm001/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Lcdm001) (Elektra * elektra, Lcdm001DriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructLcdm001DriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'lcdm001/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lcdm001/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lcdm001) (Elektra * elektra, const Lcdm001DriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructLcdm001DriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'lcdm001/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Lcdm001) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "lcdm001"); +} + + + +/** + * Get the value of 'lcdm001/#/backkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lcdm001/#/backkey'. + */// +static inline const char * ELEKTRA_GET (Lcdm001Backkey) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld/backkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lcdm001/#/backkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lcdm001/#/backkey'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lcdm001Backkey) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld/backkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lcdm001/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lcdm001/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Lcdm001Brightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lcdm001/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lcdm001/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lcdm001Brightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lcdm001/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lcdm001/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Lcdm001Contrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lcdm001/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lcdm001/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lcdm001Contrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lcdm001/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lcdm001/#/device'. + */// +static inline const char * ELEKTRA_GET (Lcdm001Device) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lcdm001/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lcdm001/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lcdm001Device) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lcdm001/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lcdm001/#/file'. + */// +static inline const char * ELEKTRA_GET (Lcdm001File) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lcdm001/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lcdm001/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lcdm001File) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lcdm001/#/forwardkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lcdm001/#/forwardkey'. + */// +static inline const char * ELEKTRA_GET (Lcdm001Forwardkey) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld/forwardkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lcdm001/#/forwardkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lcdm001/#/forwardkey'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lcdm001Forwardkey) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld/forwardkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lcdm001/#/mainmenukey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lcdm001/#/mainmenukey'. + */// +static inline const char * ELEKTRA_GET (Lcdm001Mainmenukey) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld/mainmenukey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lcdm001/#/mainmenukey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lcdm001/#/mainmenukey'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lcdm001Mainmenukey) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld/mainmenukey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lcdm001/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lcdm001/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Lcdm001Offbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lcdm001/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lcdm001/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lcdm001Offbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lcdm001/#/pausekey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lcdm001/#/pausekey'. + */// +static inline const char * ELEKTRA_GET (Lcdm001Pausekey) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld/pausekey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lcdm001/#/pausekey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lcdm001/#/pausekey'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lcdm001Pausekey) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld/pausekey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lcdm001/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lcdm001/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Lcdm001Reboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lcdm001/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lcdm001/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lcdm001Reboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'lcterm/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Lcterm) (Elektra * elektra, LctermDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("lcterm/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructLctermDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'lcterm/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lcterm/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lcterm) (Elektra * elektra, const LctermDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lcterm/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructLctermDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'lcterm/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Lcterm) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "lcterm"); +} + + + +/** + * Get the value of 'lcterm/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lcterm/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (LctermBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lcterm/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lcterm/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lcterm/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LctermBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lcterm/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lcterm/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lcterm/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (LctermContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lcterm/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lcterm/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lcterm/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LctermContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lcterm/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lcterm/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lcterm/#/device'. + */// +static inline const char * ELEKTRA_GET (LctermDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lcterm/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lcterm/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lcterm/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LctermDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lcterm/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lcterm/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lcterm/#/file'. + */// +static inline const char * ELEKTRA_GET (LctermFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lcterm/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lcterm/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lcterm/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LctermFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lcterm/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lcterm/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lcterm/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (LctermOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lcterm/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lcterm/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lcterm/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LctermOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lcterm/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lcterm/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lcterm/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (LctermReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lcterm/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lcterm/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lcterm/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LctermReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lcterm/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lcterm/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lcterm/#/size'. + */// +static inline const char * ELEKTRA_GET (LctermSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lcterm/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lcterm/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lcterm/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LctermSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lcterm/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'linux_input/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (LinuxInput) (Elektra * elektra, Linux_inputDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("linux_input/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructLinux_inputDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'linux_input/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'linux_input/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LinuxInput) (Elektra * elektra, const Linux_inputDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("linux_input/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructLinux_inputDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'linux_input/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (LinuxInput) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "linux_input"); +} + + + +/** + * Get the value of 'linux_input/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'linux_input/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (LinuxInputBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("linux_input/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'linux_input/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'linux_input/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LinuxInputBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("linux_input/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'linux_input/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'linux_input/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (LinuxInputContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("linux_input/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'linux_input/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'linux_input/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LinuxInputContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("linux_input/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'linux_input/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'linux_input/#/device'. + */// +static inline const char * ELEKTRA_GET (LinuxInputDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("linux_input/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'linux_input/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'linux_input/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LinuxInputDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("linux_input/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'linux_input/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'linux_input/#/file'. + */// +static inline const char * ELEKTRA_GET (LinuxInputFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("linux_input/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'linux_input/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'linux_input/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LinuxInputFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("linux_input/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'linux_input/#/key/_'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param name1 Replaces occurence no. 1 of _ in the keyname. + * + * @return the value of 'linux_input/#/key/_'. + */// +static inline const char * ELEKTRA_GET (LinuxInputKey) (Elektra * elektra , + kdb_long_long_t index1 , + const char * name1 ) +{ + + + char * name = elektraFormat ("linux_input/%*.*s%lld/key/%s", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 , + name1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'linux_input/#/key/_'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'linux_input/#/key/_'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param name1 Replaces occurence no. 1 of _ in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LinuxInputKey) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, + const char * name1, ElektraError ** error) +{ + + + char * name = elektraFormat ("linux_input/%*.*s%lld/key/%s", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 , + name1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'linux_input/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'linux_input/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (LinuxInputOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("linux_input/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'linux_input/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'linux_input/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LinuxInputOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("linux_input/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'linux_input/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'linux_input/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (LinuxInputReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("linux_input/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'linux_input/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'linux_input/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LinuxInputReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("linux_input/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'lirc/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Lirc) (Elektra * elektra, LircDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("lirc/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructLircDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'lirc/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lirc/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lirc) (Elektra * elektra, const LircDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lirc/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructLircDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'lirc/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Lirc) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "lirc"); +} + + + +/** + * Get the value of 'lirc/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lirc/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (LircBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lirc/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lirc/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lirc/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LircBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lirc/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lirc/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lirc/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (LircContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lirc/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lirc/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lirc/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LircContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lirc/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lirc/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lirc/#/file'. + */// +static inline const char * ELEKTRA_GET (LircFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lirc/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lirc/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lirc/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LircFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lirc/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lirc/#/lircrc'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lirc/#/lircrc'. + */// +static inline const char * ELEKTRA_GET (LircLircrc) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lirc/%*.*s%lld/lircrc", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lirc/#/lircrc'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lirc/#/lircrc'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LircLircrc) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lirc/%*.*s%lld/lircrc", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lirc/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lirc/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (LircOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lirc/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lirc/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lirc/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LircOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lirc/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lirc/#/prog'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lirc/#/prog'. + */// +static inline const char * ELEKTRA_GET (LircProg) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lirc/%*.*s%lld/prog", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lirc/#/prog'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lirc/#/prog'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LircProg) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lirc/%*.*s%lld/prog", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lirc/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lirc/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (LircReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lirc/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lirc/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lirc/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LircReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lirc/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'lis/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Lis) (Elektra * elektra, LisDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructLisDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'lis/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lis/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lis) (Elektra * elektra, const LisDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructLisDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'lis/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Lis) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "lis"); +} + + + +/** + * Get the value of 'lis/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lis/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (LisBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lis/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lis/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LisBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lis/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lis/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (LisContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lis/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lis/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LisContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lis/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lis/#/file'. + */// +static inline const char * ELEKTRA_GET (LisFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lis/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lis/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LisFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lis/#/lastline'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lis/#/lastline'. + */// +static inline kdb_boolean_t ELEKTRA_GET (LisLastline) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/lastline", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lis/#/lastline'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lis/#/lastline'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LisLastline) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/lastline", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lis/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lis/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (LisOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lis/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lis/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LisOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lis/#/productid'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lis/#/productid'. + */// +static inline const char * ELEKTRA_GET (LisProductid) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/productid", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lis/#/productid'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lis/#/productid'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LisProductid) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/productid", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lis/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lis/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (LisReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lis/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lis/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LisReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lis/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lis/#/size'. + */// +static inline const char * ELEKTRA_GET (LisSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lis/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lis/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LisSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lis/#/vendorid'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lis/#/vendorid'. + */// +static inline const char * ELEKTRA_GET (LisVendorid) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/vendorid", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lis/#/vendorid'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lis/#/vendorid'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LisVendorid) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/vendorid", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'md8800/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Md8800) (Elektra * elektra, MD8800DriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("md8800/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructMD8800DriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'md8800/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'md8800/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Md8800) (Elektra * elektra, const MD8800DriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("md8800/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructMD8800DriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'md8800/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Md8800) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "md8800"); +} + + + +/** + * Get the value of 'md8800/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'md8800/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Md8800Brightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("md8800/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'md8800/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'md8800/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Md8800Brightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("md8800/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'md8800/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'md8800/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Md8800Contrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("md8800/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'md8800/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'md8800/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Md8800Contrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("md8800/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'md8800/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'md8800/#/device'. + */// +static inline const char * ELEKTRA_GET (Md8800Device) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("md8800/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'md8800/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'md8800/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Md8800Device) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("md8800/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'md8800/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'md8800/#/file'. + */// +static inline const char * ELEKTRA_GET (Md8800File) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("md8800/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'md8800/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'md8800/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Md8800File) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("md8800/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'md8800/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'md8800/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Md8800Offbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("md8800/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'md8800/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'md8800/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Md8800Offbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("md8800/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'md8800/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'md8800/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Md8800Reboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("md8800/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'md8800/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'md8800/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Md8800Reboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("md8800/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'md8800/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'md8800/#/size'. + */// +static inline const char * ELEKTRA_GET (Md8800Size) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("md8800/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'md8800/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'md8800/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Md8800Size) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("md8800/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'mdm166a/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Mdm166a) (Elektra * elektra, Mdm166aDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructMdm166aDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'mdm166a/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mdm166a/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mdm166a) (Elektra * elektra, const Mdm166aDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructMdm166aDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'mdm166a/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Mdm166a) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "mdm166a"); +} + + + +/** + * Get the value of 'mdm166a/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mdm166a/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Mdm166aBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mdm166a/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mdm166a/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mdm166aBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mdm166a/#/clock'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mdm166a/#/clock'. + */// +static inline ElektraEnumMdm166aClock ELEKTRA_GET (Mdm166aClock) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld/clock", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ElektraEnumMdm166aClock result = ELEKTRA_GET (EnumMdm166aClock) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mdm166a/#/clock'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mdm166a/#/clock'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mdm166aClock) (Elektra * elektra, + ElektraEnumMdm166aClock value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld/clock", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumMdm166aClock) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mdm166a/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mdm166a/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Mdm166aContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mdm166a/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mdm166a/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mdm166aContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mdm166a/#/dimming'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mdm166a/#/dimming'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Mdm166aDimming) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld/dimming", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mdm166a/#/dimming'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mdm166a/#/dimming'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mdm166aDimming) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld/dimming", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mdm166a/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mdm166a/#/file'. + */// +static inline const char * ELEKTRA_GET (Mdm166aFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mdm166a/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mdm166a/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mdm166aFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mdm166a/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mdm166a/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Mdm166aOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mdm166a/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mdm166a/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mdm166aOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mdm166a/#/offdimming'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mdm166a/#/offdimming'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Mdm166aOffdimming) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld/offdimming", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mdm166a/#/offdimming'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mdm166a/#/offdimming'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mdm166aOffdimming) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld/offdimming", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mdm166a/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mdm166a/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Mdm166aReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mdm166a/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mdm166a/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mdm166aReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'menu/downkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'menu/downkey'. + */// +static inline const char * ELEKTRA_GET (MenuDownkey) (Elektra * elektra ) +{ + + return ELEKTRA_GET (String) (elektra, "menu/downkey"); +} + + +/** + * Set the value of 'menu/downkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'menu/downkey'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MenuDownkey) (Elektra * elektra, + const char * value, ElektraError ** error) +{ + + ELEKTRA_SET (String) (elektra, "menu/downkey", value, error); +} + + + + +/** + * Get the value of 'menu/enterkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'menu/enterkey'. + */// +static inline const char * ELEKTRA_GET (MenuEnterkey) (Elektra * elektra ) +{ + + return ELEKTRA_GET (String) (elektra, "menu/enterkey"); +} + + +/** + * Set the value of 'menu/enterkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'menu/enterkey'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MenuEnterkey) (Elektra * elektra, + const char * value, ElektraError ** error) +{ + + ELEKTRA_SET (String) (elektra, "menu/enterkey", value, error); +} + + + + +/** + * Get the value of 'menu/leftkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'menu/leftkey'. + */// +static inline const char * ELEKTRA_GET (MenuLeftkey) (Elektra * elektra ) +{ + + return ELEKTRA_GET (String) (elektra, "menu/leftkey"); +} + + +/** + * Set the value of 'menu/leftkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'menu/leftkey'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MenuLeftkey) (Elektra * elektra, + const char * value, ElektraError ** error) +{ + + ELEKTRA_SET (String) (elektra, "menu/leftkey", value, error); +} + + + + +/** + * Get the value of 'menu/menukey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'menu/menukey'. + */// +static inline const char * ELEKTRA_GET (MenuMenukey) (Elektra * elektra ) +{ + + return ELEKTRA_GET (String) (elektra, "menu/menukey"); +} + + +/** + * Set the value of 'menu/menukey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'menu/menukey'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MenuMenukey) (Elektra * elektra, + const char * value, ElektraError ** error) +{ + + ELEKTRA_SET (String) (elektra, "menu/menukey", value, error); +} + + + + +/** + * Get the value of 'menu/permissivegoto'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'menu/permissivegoto'. + */// +static inline kdb_boolean_t ELEKTRA_GET (MenuPermissivegoto) (Elektra * elektra ) +{ + + return ELEKTRA_GET (Boolean) (elektra, "menu/permissivegoto"); +} + + +/** + * Set the value of 'menu/permissivegoto'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'menu/permissivegoto'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MenuPermissivegoto) (Elektra * elektra, + kdb_boolean_t value, ElektraError ** error) +{ + + ELEKTRA_SET (Boolean) (elektra, "menu/permissivegoto", value, error); +} + + + + +/** + * Get the value of 'menu/rightkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'menu/rightkey'. + */// +static inline const char * ELEKTRA_GET (MenuRightkey) (Elektra * elektra ) +{ + + return ELEKTRA_GET (String) (elektra, "menu/rightkey"); +} + + +/** + * Set the value of 'menu/rightkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'menu/rightkey'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MenuRightkey) (Elektra * elektra, + const char * value, ElektraError ** error) +{ + + ELEKTRA_SET (String) (elektra, "menu/rightkey", value, error); +} + + + + +/** + * Get the value of 'menu/upkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'menu/upkey'. + */// +static inline const char * ELEKTRA_GET (MenuUpkey) (Elektra * elektra ) +{ + + return ELEKTRA_GET (String) (elektra, "menu/upkey"); +} + + +/** + * Set the value of 'menu/upkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'menu/upkey'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MenuUpkey) (Elektra * elektra, + const char * value, ElektraError ** error) +{ + + ELEKTRA_SET (String) (elektra, "menu/upkey", value, error); +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'ms6931/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Ms6931) (Elektra * elektra, Ms6931DriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("ms6931/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructMs6931DriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'ms6931/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ms6931/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ms6931) (Elektra * elektra, const Ms6931DriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ms6931/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructMs6931DriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'ms6931/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Ms6931) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "ms6931"); +} + + + +/** + * Get the value of 'ms6931/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ms6931/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Ms6931Brightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ms6931/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ms6931/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ms6931/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ms6931Brightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ms6931/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ms6931/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ms6931/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Ms6931Contrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ms6931/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ms6931/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ms6931/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ms6931Contrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ms6931/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ms6931/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ms6931/#/device'. + */// +static inline const char * ELEKTRA_GET (Ms6931Device) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ms6931/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ms6931/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ms6931/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ms6931Device) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ms6931/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ms6931/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ms6931/#/file'. + */// +static inline const char * ELEKTRA_GET (Ms6931File) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ms6931/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ms6931/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ms6931/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ms6931File) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ms6931/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ms6931/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ms6931/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Ms6931Offbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ms6931/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ms6931/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ms6931/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ms6931Offbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ms6931/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ms6931/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ms6931/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Ms6931Reboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ms6931/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ms6931/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ms6931/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ms6931Reboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ms6931/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ms6931/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ms6931/#/size'. + */// +static inline const char * ELEKTRA_GET (Ms6931Size) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ms6931/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ms6931/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ms6931/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ms6931Size) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ms6931/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'mtc_s16209x/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (MtcS16209x) (Elektra * elektra, Mtc_s16209xDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("mtc_s16209x/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructMtc_s16209xDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'mtc_s16209x/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtc_s16209x/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtcS16209x) (Elektra * elektra, const Mtc_s16209xDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtc_s16209x/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructMtc_s16209xDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'mtc_s16209x/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (MtcS16209x) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "mtc_s16209x"); +} + + + +/** + * Get the value of 'mtc_s16209x/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtc_s16209x/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (MtcS16209xBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtc_s16209x/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtc_s16209x/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtcS16209xBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtc_s16209x/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtc_s16209x/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (MtcS16209xContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtc_s16209x/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtc_s16209x/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtcS16209xContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtc_s16209x/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtc_s16209x/#/device'. + */// +static inline const char * ELEKTRA_GET (MtcS16209xDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtc_s16209x/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtc_s16209x/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtcS16209xDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtc_s16209x/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtc_s16209x/#/file'. + */// +static inline const char * ELEKTRA_GET (MtcS16209xFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtc_s16209x/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtc_s16209x/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtcS16209xFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtc_s16209x/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtc_s16209x/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (MtcS16209xOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtc_s16209x/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtc_s16209x/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtcS16209xOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtc_s16209x/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtc_s16209x/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (MtcS16209xReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtc_s16209x/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtc_s16209x/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtcS16209xReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'mtxorb/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Mtxorb) (Elektra * elektra, MtxOrbDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructMtxOrbDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'mtxorb/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtxorb/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mtxorb) (Elektra * elektra, const MtxOrbDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructMtxOrbDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'mtxorb/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Mtxorb) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "mtxorb"); +} + + + +/** + * Get the value of 'mtxorb/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtxorb/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (MtxorbBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtxorb/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtxorb/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtxorbBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtxorb/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtxorb/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (MtxorbContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtxorb/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtxorb/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtxorbContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtxorb/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtxorb/#/device'. + */// +static inline const char * ELEKTRA_GET (MtxorbDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtxorb/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtxorb/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtxorbDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtxorb/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtxorb/#/file'. + */// +static inline const char * ELEKTRA_GET (MtxorbFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtxorb/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtxorb/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtxorbFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtxorb/#/hasadjustablebacklight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtxorb/#/hasadjustablebacklight'. + */// +static inline kdb_boolean_t ELEKTRA_GET (MtxorbHasadjustablebacklight) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/hasadjustablebacklight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtxorb/#/hasadjustablebacklight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtxorb/#/hasadjustablebacklight'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtxorbHasadjustablebacklight) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/hasadjustablebacklight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtxorb/#/keymap_a'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtxorb/#/keymap_a'. + */// +static inline const char * ELEKTRA_GET (MtxorbKeymapA) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_a", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtxorb/#/keymap_a'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtxorb/#/keymap_a'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtxorbKeymapA) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_a", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtxorb/#/keymap_b'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtxorb/#/keymap_b'. + */// +static inline const char * ELEKTRA_GET (MtxorbKeymapB) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_b", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtxorb/#/keymap_b'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtxorb/#/keymap_b'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtxorbKeymapB) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_b", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtxorb/#/keymap_c'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtxorb/#/keymap_c'. + */// +static inline const char * ELEKTRA_GET (MtxorbKeymapC) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_c", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtxorb/#/keymap_c'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtxorb/#/keymap_c'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtxorbKeymapC) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_c", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtxorb/#/keymap_d'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtxorb/#/keymap_d'. + */// +static inline const char * ELEKTRA_GET (MtxorbKeymapD) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_d", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtxorb/#/keymap_d'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtxorb/#/keymap_d'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtxorbKeymapD) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_d", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtxorb/#/keymap_e'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtxorb/#/keymap_e'. + */// +static inline const char * ELEKTRA_GET (MtxorbKeymapE) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_e", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtxorb/#/keymap_e'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtxorb/#/keymap_e'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtxorbKeymapE) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_e", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtxorb/#/keymap_f'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtxorb/#/keymap_f'. + */// +static inline const char * ELEKTRA_GET (MtxorbKeymapF) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_f", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtxorb/#/keymap_f'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtxorb/#/keymap_f'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtxorbKeymapF) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_f", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtxorb/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtxorb/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (MtxorbOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtxorb/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtxorb/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtxorbOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtxorb/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtxorb/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (MtxorbReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtxorb/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtxorb/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtxorbReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtxorb/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtxorb/#/size'. + */// +static inline const char * ELEKTRA_GET (MtxorbSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtxorb/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtxorb/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtxorbSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtxorb/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtxorb/#/speed'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (MtxorbSpeed) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtxorb/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtxorb/#/speed'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtxorbSpeed) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtxorb/#/type'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtxorb/#/type'. + */// +static inline ElektraEnumMtxorbType ELEKTRA_GET (MtxorbType) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/type", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ElektraEnumMtxorbType result = ELEKTRA_GET (EnumMtxorbType) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtxorb/#/type'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtxorb/#/type'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtxorbType) (Elektra * elektra, + ElektraEnumMtxorbType value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/type", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumMtxorbType) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'mx5000/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Mx5000) (Elektra * elektra, Mx5000DriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("mx5000/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructMx5000DriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'mx5000/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mx5000/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mx5000) (Elektra * elektra, const Mx5000DriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mx5000/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructMx5000DriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'mx5000/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Mx5000) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "mx5000"); +} + + + +/** + * Get the value of 'mx5000/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mx5000/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Mx5000Brightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mx5000/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mx5000/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mx5000/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mx5000Brightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mx5000/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mx5000/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mx5000/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Mx5000Contrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mx5000/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mx5000/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mx5000/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mx5000Contrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mx5000/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mx5000/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mx5000/#/device'. + */// +static inline const char * ELEKTRA_GET (Mx5000Device) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mx5000/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mx5000/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mx5000/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mx5000Device) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mx5000/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mx5000/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mx5000/#/file'. + */// +static inline const char * ELEKTRA_GET (Mx5000File) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mx5000/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mx5000/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mx5000/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mx5000File) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mx5000/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mx5000/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mx5000/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Mx5000Offbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mx5000/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mx5000/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mx5000/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mx5000Offbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mx5000/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mx5000/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mx5000/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Mx5000Reboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mx5000/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mx5000/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mx5000/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mx5000Reboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mx5000/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mx5000/#/waitafterrefresh'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mx5000/#/waitafterrefresh'. + */// +static inline kdb_unsigned_long_t ELEKTRA_GET (Mx5000Waitafterrefresh) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mx5000/%*.*s%lld/waitafterrefresh", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mx5000/#/waitafterrefresh'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mx5000/#/waitafterrefresh'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mx5000Waitafterrefresh) (Elektra * elektra, + kdb_unsigned_long_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mx5000/%*.*s%lld/waitafterrefresh", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'noritakevfd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Noritakevfd) (Elektra * elektra, NoritakeVFDDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructNoritakeVFDDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'noritakevfd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'noritakevfd/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Noritakevfd) (Elektra * elektra, const NoritakeVFDDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructNoritakeVFDDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'noritakevfd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Noritakevfd) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "noritakevfd"); +} + + + +/** + * Get the value of 'noritakevfd/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'noritakevfd/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (NoritakevfdBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'noritakevfd/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'noritakevfd/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (NoritakevfdBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'noritakevfd/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'noritakevfd/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (NoritakevfdContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'noritakevfd/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'noritakevfd/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (NoritakevfdContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'noritakevfd/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'noritakevfd/#/device'. + */// +static inline const char * ELEKTRA_GET (NoritakevfdDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'noritakevfd/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'noritakevfd/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (NoritakevfdDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'noritakevfd/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'noritakevfd/#/file'. + */// +static inline const char * ELEKTRA_GET (NoritakevfdFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'noritakevfd/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'noritakevfd/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (NoritakevfdFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'noritakevfd/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'noritakevfd/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (NoritakevfdOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'noritakevfd/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'noritakevfd/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (NoritakevfdOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'noritakevfd/#/parity'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'noritakevfd/#/parity'. + */// +static inline kdb_unsigned_long_t ELEKTRA_GET (NoritakevfdParity) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/parity", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'noritakevfd/#/parity'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'noritakevfd/#/parity'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (NoritakevfdParity) (Elektra * elektra, + kdb_unsigned_long_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/parity", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'noritakevfd/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'noritakevfd/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (NoritakevfdReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'noritakevfd/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'noritakevfd/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (NoritakevfdReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'noritakevfd/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'noritakevfd/#/size'. + */// +static inline const char * ELEKTRA_GET (NoritakevfdSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'noritakevfd/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'noritakevfd/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (NoritakevfdSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'noritakevfd/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'noritakevfd/#/speed'. + */// +static inline kdb_unsigned_long_t ELEKTRA_GET (NoritakevfdSpeed) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'noritakevfd/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'noritakevfd/#/speed'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (NoritakevfdSpeed) (Elektra * elektra, + kdb_unsigned_long_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'olimex_mod_lcd1x9/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (OlimexModLcd1x9) (Elektra * elektra, Olimex_MOD_LCD1x9DriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructOlimex_MOD_LCD1x9DriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'olimex_mod_lcd1x9/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'olimex_mod_lcd1x9/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (OlimexModLcd1x9) (Elektra * elektra, const Olimex_MOD_LCD1x9DriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructOlimex_MOD_LCD1x9DriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'olimex_mod_lcd1x9/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (OlimexModLcd1x9) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "olimex_mod_lcd1x9"); +} + + + +/** + * Get the value of 'olimex_mod_lcd1x9/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'olimex_mod_lcd1x9/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (OlimexModLcd1x9Brightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'olimex_mod_lcd1x9/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'olimex_mod_lcd1x9/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (OlimexModLcd1x9Brightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'olimex_mod_lcd1x9/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'olimex_mod_lcd1x9/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (OlimexModLcd1x9Contrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'olimex_mod_lcd1x9/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'olimex_mod_lcd1x9/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (OlimexModLcd1x9Contrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'olimex_mod_lcd1x9/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'olimex_mod_lcd1x9/#/device'. + */// +static inline const char * ELEKTRA_GET (OlimexModLcd1x9Device) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'olimex_mod_lcd1x9/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'olimex_mod_lcd1x9/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (OlimexModLcd1x9Device) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'olimex_mod_lcd1x9/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'olimex_mod_lcd1x9/#/file'. + */// +static inline const char * ELEKTRA_GET (OlimexModLcd1x9File) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'olimex_mod_lcd1x9/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'olimex_mod_lcd1x9/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (OlimexModLcd1x9File) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'olimex_mod_lcd1x9/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'olimex_mod_lcd1x9/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (OlimexModLcd1x9Offbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'olimex_mod_lcd1x9/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'olimex_mod_lcd1x9/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (OlimexModLcd1x9Offbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'olimex_mod_lcd1x9/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'olimex_mod_lcd1x9/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (OlimexModLcd1x9Reboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'olimex_mod_lcd1x9/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'olimex_mod_lcd1x9/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (OlimexModLcd1x9Reboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'picolcd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Picolcd) (Elektra * elektra, PicolcdDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructPicolcdDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'picolcd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Picolcd) (Elektra * elektra, const PicolcdDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructPicolcdDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'picolcd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Picolcd) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "picolcd"); +} + + + +/** + * Get the value of 'picolcd/#/backlight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/backlight'. + */// +static inline kdb_boolean_t ELEKTRA_GET (PicolcdBacklight) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/backlight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/backlight'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdBacklight) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (PicolcdBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (PicolcdContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/file'. + */// +static inline const char * ELEKTRA_GET (PicolcdFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/key0light'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/key0light'. + */// +static inline kdb_boolean_t ELEKTRA_GET (PicolcdKey0light) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/key0light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/key0light'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/key0light'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdKey0light) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/key0light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/key1light'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/key1light'. + */// +static inline kdb_boolean_t ELEKTRA_GET (PicolcdKey1light) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/key1light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/key1light'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/key1light'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdKey1light) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/key1light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/key2light'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/key2light'. + */// +static inline kdb_boolean_t ELEKTRA_GET (PicolcdKey2light) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/key2light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/key2light'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/key2light'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdKey2light) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/key2light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/key3light'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/key3light'. + */// +static inline kdb_boolean_t ELEKTRA_GET (PicolcdKey3light) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/key3light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/key3light'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/key3light'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdKey3light) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/key3light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/key4light'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/key4light'. + */// +static inline kdb_boolean_t ELEKTRA_GET (PicolcdKey4light) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/key4light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/key4light'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/key4light'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdKey4light) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/key4light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/key5light'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/key5light'. + */// +static inline kdb_boolean_t ELEKTRA_GET (PicolcdKey5light) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/key5light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/key5light'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/key5light'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdKey5light) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/key5light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/keylights'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/keylights'. + */// +static inline kdb_boolean_t ELEKTRA_GET (PicolcdKeylights) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/keylights", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/keylights'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/keylights'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdKeylights) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/keylights", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/keyrepeatdelay'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/keyrepeatdelay'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (PicolcdKeyrepeatdelay) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/keyrepeatdelay", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/keyrepeatdelay'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/keyrepeatdelay'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdKeyrepeatdelay) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/keyrepeatdelay", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/keyrepeatinterval'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/keyrepeatinterval'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (PicolcdKeyrepeatinterval) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/keyrepeatinterval", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/keyrepeatinterval'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/keyrepeatinterval'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdKeyrepeatinterval) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/keyrepeatinterval", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/keytimeout'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/keytimeout'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (PicolcdKeytimeout) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/keytimeout", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/keytimeout'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/keytimeout'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdKeytimeout) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/keytimeout", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/linklights'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/linklights'. + */// +static inline kdb_boolean_t ELEKTRA_GET (PicolcdLinklights) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/linklights", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/linklights'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/linklights'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdLinklights) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/linklights", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/lircflushthreshold'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/lircflushthreshold'. + */// +static inline kdb_unsigned_long_t ELEKTRA_GET (PicolcdLircflushthreshold) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/lircflushthreshold", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/lircflushthreshold'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/lircflushthreshold'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdLircflushthreshold) (Elektra * elektra, + kdb_unsigned_long_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/lircflushthreshold", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/lirchost'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/lirchost'. + */// +static inline const char * ELEKTRA_GET (PicolcdLirchost) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/lirchost", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/lirchost'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/lirchost'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdLirchost) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/lirchost", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/lircport'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/lircport'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (PicolcdLircport) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/lircport", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/lircport'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/lircport'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdLircport) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/lircport", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/lirctime_us'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/lirctime_us'. + */// +static inline kdb_boolean_t ELEKTRA_GET (PicolcdLirctimeUs) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/lirctime_us", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/lirctime_us'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/lirctime_us'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdLirctimeUs) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/lirctime_us", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (PicolcdOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (PicolcdReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'pyramid/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Pyramid) (Elektra * elektra, PyramidDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("pyramid/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructPyramidDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'pyramid/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'pyramid/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Pyramid) (Elektra * elektra, const PyramidDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("pyramid/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructPyramidDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'pyramid/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Pyramid) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "pyramid"); +} + + + +/** + * Get the value of 'pyramid/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'pyramid/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (PyramidBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("pyramid/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'pyramid/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'pyramid/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PyramidBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("pyramid/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'pyramid/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'pyramid/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (PyramidContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("pyramid/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'pyramid/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'pyramid/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PyramidContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("pyramid/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'pyramid/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'pyramid/#/device'. + */// +static inline const char * ELEKTRA_GET (PyramidDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("pyramid/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'pyramid/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'pyramid/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PyramidDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("pyramid/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'pyramid/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'pyramid/#/file'. + */// +static inline const char * ELEKTRA_GET (PyramidFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("pyramid/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'pyramid/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'pyramid/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PyramidFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("pyramid/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'pyramid/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'pyramid/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (PyramidOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("pyramid/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'pyramid/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'pyramid/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PyramidOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("pyramid/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'pyramid/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'pyramid/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (PyramidReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("pyramid/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'pyramid/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'pyramid/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PyramidReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("pyramid/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'rawserial/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Rawserial) (Elektra * elektra, RawserialDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructRawserialDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'rawserial/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'rawserial/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Rawserial) (Elektra * elektra, const RawserialDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructRawserialDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'rawserial/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Rawserial) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "rawserial"); +} + + + +/** + * Get the value of 'rawserial/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'rawserial/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (RawserialBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'rawserial/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'rawserial/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (RawserialBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'rawserial/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'rawserial/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (RawserialContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'rawserial/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'rawserial/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (RawserialContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'rawserial/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'rawserial/#/device'. + */// +static inline const char * ELEKTRA_GET (RawserialDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'rawserial/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'rawserial/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (RawserialDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'rawserial/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'rawserial/#/file'. + */// +static inline const char * ELEKTRA_GET (RawserialFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'rawserial/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'rawserial/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (RawserialFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'rawserial/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'rawserial/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (RawserialOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'rawserial/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'rawserial/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (RawserialOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'rawserial/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'rawserial/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (RawserialReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'rawserial/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'rawserial/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (RawserialReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'rawserial/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'rawserial/#/size'. + */// +static inline const char * ELEKTRA_GET (RawserialSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'rawserial/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'rawserial/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (RawserialSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'rawserial/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'rawserial/#/speed'. + */// +static inline kdb_unsigned_long_t ELEKTRA_GET (RawserialSpeed) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'rawserial/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'rawserial/#/speed'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (RawserialSpeed) (Elektra * elektra, + kdb_unsigned_long_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'rawserial/#/updaterate'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'rawserial/#/updaterate'. + */// +static inline kdb_float_t ELEKTRA_GET (RawserialUpdaterate) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/updaterate", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_float_t result = ELEKTRA_GET (Float) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'rawserial/#/updaterate'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'rawserial/#/updaterate'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (RawserialUpdaterate) (Elektra * elektra, + kdb_float_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/updaterate", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Float) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'sed1330/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Sed1330) (Elektra * elektra, Sed1330DriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructSed1330DriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'sed1330/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1330/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1330) (Elektra * elektra, const Sed1330DriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructSed1330DriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'sed1330/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Sed1330) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "sed1330"); +} + + + +/** + * Get the value of 'sed1330/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1330/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Sed1330Brightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1330/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1330/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1330Brightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1330/#/cellsize'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1330/#/cellsize'. + */// +static inline const char * ELEKTRA_GET (Sed1330Cellsize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/cellsize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1330/#/cellsize'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1330/#/cellsize'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1330Cellsize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/cellsize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1330/#/connectiontype'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1330/#/connectiontype'. + */// +static inline ElektraEnumSed1330Connectiontype ELEKTRA_GET (Sed1330Connectiontype) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/connectiontype", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ElektraEnumSed1330Connectiontype result = ELEKTRA_GET (EnumSed1330Connectiontype) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1330/#/connectiontype'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1330/#/connectiontype'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1330Connectiontype) (Elektra * elektra, + ElektraEnumSed1330Connectiontype value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/connectiontype", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumSed1330Connectiontype) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1330/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1330/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Sed1330Contrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1330/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1330/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1330Contrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1330/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1330/#/file'. + */// +static inline const char * ELEKTRA_GET (Sed1330File) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1330/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1330/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1330File) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1330/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1330/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Sed1330Offbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1330/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1330/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1330Offbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1330/#/port'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1330/#/port'. + */// +static inline const char * ELEKTRA_GET (Sed1330Port) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1330/#/port'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1330/#/port'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1330Port) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1330/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1330/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Sed1330Reboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1330/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1330/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1330Reboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1330/#/type'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1330/#/type'. + */// +static inline ElektraEnumSed1330Type ELEKTRA_GET (Sed1330Type) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/type", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ElektraEnumSed1330Type result = ELEKTRA_GET (EnumSed1330Type) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1330/#/type'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1330/#/type'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1330Type) (Elektra * elektra, + ElektraEnumSed1330Type value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/type", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumSed1330Type) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'sed1520/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Sed1520) (Elektra * elektra, Sed1520DriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructSed1520DriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'sed1520/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1520/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1520) (Elektra * elektra, const Sed1520DriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructSed1520DriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'sed1520/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Sed1520) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "sed1520"); +} + + + +/** + * Get the value of 'sed1520/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1520/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Sed1520Brightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1520/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1520/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1520Brightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1520/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1520/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Sed1520Contrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1520/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1520/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1520Contrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1520/#/delaymult'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1520/#/delaymult'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Sed1520Delaymult) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/delaymult", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1520/#/delaymult'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1520/#/delaymult'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1520Delaymult) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/delaymult", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1520/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1520/#/file'. + */// +static inline const char * ELEKTRA_GET (Sed1520File) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1520/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1520/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1520File) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1520/#/haveinverter'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1520/#/haveinverter'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Sed1520Haveinverter) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/haveinverter", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1520/#/haveinverter'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1520/#/haveinverter'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1520Haveinverter) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/haveinverter", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1520/#/interfacetype'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1520/#/interfacetype'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Sed1520Interfacetype) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/interfacetype", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1520/#/interfacetype'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1520/#/interfacetype'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1520Interfacetype) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/interfacetype", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1520/#/invertedmapping'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1520/#/invertedmapping'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Sed1520Invertedmapping) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/invertedmapping", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1520/#/invertedmapping'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1520/#/invertedmapping'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1520Invertedmapping) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/invertedmapping", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1520/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1520/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Sed1520Offbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1520/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1520/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1520Offbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1520/#/port'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1520/#/port'. + */// +static inline const char * ELEKTRA_GET (Sed1520Port) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1520/#/port'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1520/#/port'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1520Port) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1520/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1520/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Sed1520Reboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1520/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1520/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1520Reboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1520/#/usehardreset'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1520/#/usehardreset'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Sed1520Usehardreset) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/usehardreset", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1520/#/usehardreset'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1520/#/usehardreset'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1520Usehardreset) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/usehardreset", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'serialpos/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Serialpos) (Elektra * elektra, SerialPOSDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructSerialPOSDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'serialpos/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialpos/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Serialpos) (Elektra * elektra, const SerialPOSDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructSerialPOSDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'serialpos/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Serialpos) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "serialpos"); +} + + + +/** + * Get the value of 'serialpos/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialpos/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SerialposBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialpos/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialpos/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialposBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialpos/#/cellsize'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialpos/#/cellsize'. + */// +static inline const char * ELEKTRA_GET (SerialposCellsize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/cellsize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialpos/#/cellsize'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialpos/#/cellsize'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialposCellsize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/cellsize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialpos/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialpos/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SerialposContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialpos/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialpos/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialposContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialpos/#/custom_chars'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialpos/#/custom_chars'. + */// +static inline kdb_unsigned_long_t ELEKTRA_GET (SerialposCustomChars) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/custom_chars", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialpos/#/custom_chars'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialpos/#/custom_chars'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialposCustomChars) (Elektra * elektra, + kdb_unsigned_long_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/custom_chars", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialpos/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialpos/#/device'. + */// +static inline const char * ELEKTRA_GET (SerialposDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialpos/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialpos/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialposDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialpos/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialpos/#/file'. + */// +static inline const char * ELEKTRA_GET (SerialposFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialpos/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialpos/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialposFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialpos/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialpos/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SerialposOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialpos/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialpos/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialposOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialpos/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialpos/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (SerialposReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialpos/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialpos/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialposReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialpos/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialpos/#/size'. + */// +static inline const char * ELEKTRA_GET (SerialposSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialpos/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialpos/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialposSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialpos/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialpos/#/speed'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SerialposSpeed) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialpos/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialpos/#/speed'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialposSpeed) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialpos/#/type'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialpos/#/type'. + */// +static inline ElektraEnumSerialposType ELEKTRA_GET (SerialposType) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/type", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ElektraEnumSerialposType result = ELEKTRA_GET (EnumSerialposType) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialpos/#/type'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialpos/#/type'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialposType) (Elektra * elektra, + ElektraEnumSerialposType value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/type", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumSerialposType) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'serialvfd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Serialvfd) (Elektra * elektra, SerialVFDDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructSerialVFDDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'serialvfd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialvfd/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Serialvfd) (Elektra * elektra, const SerialVFDDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructSerialVFDDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'serialvfd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Serialvfd) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "serialvfd"); +} + + + +/** + * Get the value of 'serialvfd/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialvfd/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SerialvfdBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialvfd/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialvfd/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialvfdBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialvfd/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialvfd/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SerialvfdContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialvfd/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialvfd/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialvfdContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialvfd/#/custom-characters'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialvfd/#/custom-characters'. + */// +static inline kdb_unsigned_long_t ELEKTRA_GET (SerialvfdCustomCharacters) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/custom-characters", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialvfd/#/custom-characters'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialvfd/#/custom-characters'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialvfdCustomCharacters) (Elektra * elektra, + kdb_unsigned_long_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/custom-characters", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialvfd/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialvfd/#/device'. + */// +static inline const char * ELEKTRA_GET (SerialvfdDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialvfd/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialvfd/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialvfdDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialvfd/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialvfd/#/file'. + */// +static inline const char * ELEKTRA_GET (SerialvfdFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialvfd/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialvfd/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialvfdFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialvfd/#/iso_8859_1'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialvfd/#/iso_8859_1'. + */// +static inline kdb_boolean_t ELEKTRA_GET (SerialvfdIso88591) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/iso_8859_1", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialvfd/#/iso_8859_1'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialvfd/#/iso_8859_1'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialvfdIso88591) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/iso_8859_1", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialvfd/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialvfd/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SerialvfdOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialvfd/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialvfd/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialvfdOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialvfd/#/port'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialvfd/#/port'. + */// +static inline const char * ELEKTRA_GET (SerialvfdPort) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialvfd/#/port'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialvfd/#/port'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialvfdPort) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialvfd/#/portwait'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialvfd/#/portwait'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SerialvfdPortwait) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/portwait", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialvfd/#/portwait'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialvfd/#/portwait'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialvfdPortwait) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/portwait", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialvfd/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialvfd/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (SerialvfdReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialvfd/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialvfd/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialvfdReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialvfd/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialvfd/#/size'. + */// +static inline const char * ELEKTRA_GET (SerialvfdSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialvfd/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialvfd/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialvfdSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialvfd/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialvfd/#/speed'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SerialvfdSpeed) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialvfd/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialvfd/#/speed'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialvfdSpeed) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialvfd/#/type'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialvfd/#/type'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SerialvfdType) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/type", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialvfd/#/type'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialvfd/#/type'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialvfdType) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/type", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialvfd/#/use_parallel'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialvfd/#/use_parallel'. + */// +static inline kdb_boolean_t ELEKTRA_GET (SerialvfdUseParallel) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/use_parallel", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialvfd/#/use_parallel'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialvfd/#/use_parallel'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialvfdUseParallel) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/use_parallel", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'server/autorotate'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/autorotate'. + */// +static inline kdb_boolean_t ELEKTRA_GET (ServerAutorotate) (Elektra * elektra ) +{ + + return ELEKTRA_GET (Boolean) (elektra, "server/autorotate"); +} + + +/** + * Set the value of 'server/autorotate'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/autorotate'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerAutorotate) (Elektra * elektra, + kdb_boolean_t value, ElektraError ** error) +{ + + ELEKTRA_SET (Boolean) (elektra, "server/autorotate", value, error); +} + + + + +/** + * Get the value of 'server/backlight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/backlight'. + */// +static inline ElektraEnumServerBacklight ELEKTRA_GET (ServerBacklight) (Elektra * elektra ) +{ + + return ELEKTRA_GET (EnumServerBacklight) (elektra, "server/backlight"); +} + + +/** + * Set the value of 'server/backlight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/backlight'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerBacklight) (Elektra * elektra, + ElektraEnumServerBacklight value, ElektraError ** error) +{ + + ELEKTRA_SET (EnumServerBacklight) (elektra, "server/backlight", value, error); +} + + + + +/** + * Get the value of 'server/bind'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/bind'. + */// +static inline const char * ELEKTRA_GET (ServerBind) (Elektra * elektra ) +{ + + return ELEKTRA_GET (String) (elektra, "server/bind"); +} + + +/** + * Set the value of 'server/bind'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/bind'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerBind) (Elektra * elektra, + const char * value, ElektraError ** error) +{ + + ELEKTRA_SET (String) (elektra, "server/bind", value, error); +} + + + + +/** + * Get the value of 'server/driverpath'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/driverpath'. + */// +static inline const char * ELEKTRA_GET (ServerDriverpath) (Elektra * elektra ) +{ + + return ELEKTRA_GET (String) (elektra, "server/driverpath"); +} + + +/** + * Set the value of 'server/driverpath'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/driverpath'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerDriverpath) (Elektra * elektra, + const char * value, ElektraError ** error) +{ + + ELEKTRA_SET (String) (elektra, "server/driverpath", value, error); +} + + + + +/** + * Get the value of 'server/drivers/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'server/drivers/#'. + */// +static inline const char * ELEKTRA_GET (ServerDrivers) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("server/drivers/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'server/drivers/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/drivers/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerDrivers) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("server/drivers/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +/** + * Get the size of the array 'server/drivers/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (ServerDrivers) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "server/drivers"); +} + + + +/** + * Get the value of 'server/foreground'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/foreground'. + */// +static inline kdb_boolean_t ELEKTRA_GET (ServerForeground) (Elektra * elektra ) +{ + + return ELEKTRA_GET (Boolean) (elektra, "server/foreground"); +} + + +/** + * Set the value of 'server/foreground'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/foreground'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerForeground) (Elektra * elektra, + kdb_boolean_t value, ElektraError ** error) +{ + + ELEKTRA_SET (Boolean) (elektra, "server/foreground", value, error); +} + + + + +/** + * Get the value of 'server/frameinterval'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/frameinterval'. + */// +static inline kdb_unsigned_long_t ELEKTRA_GET (ServerFrameinterval) (Elektra * elektra ) +{ + + return ELEKTRA_GET (UnsignedLong) (elektra, "server/frameinterval"); +} + + +/** + * Set the value of 'server/frameinterval'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/frameinterval'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerFrameinterval) (Elektra * elektra, + kdb_unsigned_long_t value, ElektraError ** error) +{ + + ELEKTRA_SET (UnsignedLong) (elektra, "server/frameinterval", value, error); +} + + + + +/** + * Get the value of 'server/goodbye/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'server/goodbye/#'. + */// +static inline const char * ELEKTRA_GET (ServerGoodbye) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("server/goodbye/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'server/goodbye/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/goodbye/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerGoodbye) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("server/goodbye/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +/** + * Get the size of the array 'server/goodbye/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (ServerGoodbye) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "server/goodbye"); +} + + + +/** + * Get the value of 'server/heartbeat'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/heartbeat'. + */// +static inline ElektraEnumServerHeartbeat ELEKTRA_GET (ServerHeartbeat) (Elektra * elektra ) +{ + + return ELEKTRA_GET (EnumServerHeartbeat) (elektra, "server/heartbeat"); +} + + +/** + * Set the value of 'server/heartbeat'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/heartbeat'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerHeartbeat) (Elektra * elektra, + ElektraEnumServerHeartbeat value, ElektraError ** error) +{ + + ELEKTRA_SET (EnumServerHeartbeat) (elektra, "server/heartbeat", value, error); +} + + + + +/** + * Get the value of 'server/hello/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'server/hello/#'. + */// +static inline const char * ELEKTRA_GET (ServerHello) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("server/hello/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'server/hello/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/hello/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerHello) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("server/hello/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +/** + * Get the size of the array 'server/hello/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (ServerHello) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "server/hello"); +} + + + +/** + * Get the value of 'server/nextscreenkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/nextscreenkey'. + */// +static inline const char * ELEKTRA_GET (ServerNextscreenkey) (Elektra * elektra ) +{ + + return ELEKTRA_GET (String) (elektra, "server/nextscreenkey"); +} + + +/** + * Set the value of 'server/nextscreenkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/nextscreenkey'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerNextscreenkey) (Elektra * elektra, + const char * value, ElektraError ** error) +{ + + ELEKTRA_SET (String) (elektra, "server/nextscreenkey", value, error); +} + + + + +/** + * Get the value of 'server/port'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/port'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (ServerPort) (Elektra * elektra ) +{ + + return ELEKTRA_GET (UnsignedShort) (elektra, "server/port"); +} + + +/** + * Set the value of 'server/port'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/port'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerPort) (Elektra * elektra, + kdb_unsigned_short_t value, ElektraError ** error) +{ + + ELEKTRA_SET (UnsignedShort) (elektra, "server/port", value, error); +} + + + + +/** + * Get the value of 'server/prevscreenkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/prevscreenkey'. + */// +static inline const char * ELEKTRA_GET (ServerPrevscreenkey) (Elektra * elektra ) +{ + + return ELEKTRA_GET (String) (elektra, "server/prevscreenkey"); +} + + +/** + * Set the value of 'server/prevscreenkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/prevscreenkey'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerPrevscreenkey) (Elektra * elektra, + const char * value, ElektraError ** error) +{ + + ELEKTRA_SET (String) (elektra, "server/prevscreenkey", value, error); +} + + + + +/** + * Get the value of 'server/reportlevel'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/reportlevel'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (ServerReportlevel) (Elektra * elektra ) +{ + + return ELEKTRA_GET (UnsignedShort) (elektra, "server/reportlevel"); +} + + +/** + * Set the value of 'server/reportlevel'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/reportlevel'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerReportlevel) (Elektra * elektra, + kdb_unsigned_short_t value, ElektraError ** error) +{ + + ELEKTRA_SET (UnsignedShort) (elektra, "server/reportlevel", value, error); +} + + + + +/** + * Get the value of 'server/reporttosyslog'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/reporttosyslog'. + */// +static inline kdb_boolean_t ELEKTRA_GET (ServerReporttosyslog) (Elektra * elektra ) +{ + + return ELEKTRA_GET (Boolean) (elektra, "server/reporttosyslog"); +} + + +/** + * Set the value of 'server/reporttosyslog'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/reporttosyslog'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerReporttosyslog) (Elektra * elektra, + kdb_boolean_t value, ElektraError ** error) +{ + + ELEKTRA_SET (Boolean) (elektra, "server/reporttosyslog", value, error); +} + + + + +/** + * Get the value of 'server/scrolldownkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/scrolldownkey'. + */// +static inline const char * ELEKTRA_GET (ServerScrolldownkey) (Elektra * elektra ) +{ + + return ELEKTRA_GET (String) (elektra, "server/scrolldownkey"); +} + + +/** + * Set the value of 'server/scrolldownkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/scrolldownkey'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerScrolldownkey) (Elektra * elektra, + const char * value, ElektraError ** error) +{ + + ELEKTRA_SET (String) (elektra, "server/scrolldownkey", value, error); +} + + + + +/** + * Get the value of 'server/scrollupkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/scrollupkey'. + */// +static inline const char * ELEKTRA_GET (ServerScrollupkey) (Elektra * elektra ) +{ + + return ELEKTRA_GET (String) (elektra, "server/scrollupkey"); +} + + +/** + * Set the value of 'server/scrollupkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/scrollupkey'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerScrollupkey) (Elektra * elektra, + const char * value, ElektraError ** error) +{ + + ELEKTRA_SET (String) (elektra, "server/scrollupkey", value, error); +} + + + + +/** + * Get the value of 'server/serverscreen'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/serverscreen'. + */// +static inline ElektraEnumServerServerscreen ELEKTRA_GET (ServerServerscreen) (Elektra * elektra ) +{ + + return ELEKTRA_GET (EnumServerServerscreen) (elektra, "server/serverscreen"); +} + + +/** + * Set the value of 'server/serverscreen'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/serverscreen'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerServerscreen) (Elektra * elektra, + ElektraEnumServerServerscreen value, ElektraError ** error) +{ + + ELEKTRA_SET (EnumServerServerscreen) (elektra, "server/serverscreen", value, error); +} + + + + +/** + * Get the value of 'server/titlespeed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/titlespeed'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (ServerTitlespeed) (Elektra * elektra ) +{ + + return ELEKTRA_GET (UnsignedShort) (elektra, "server/titlespeed"); +} + + +/** + * Set the value of 'server/titlespeed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/titlespeed'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerTitlespeed) (Elektra * elektra, + kdb_unsigned_short_t value, ElektraError ** error) +{ + + ELEKTRA_SET (UnsignedShort) (elektra, "server/titlespeed", value, error); +} + + + + +/** + * Get the value of 'server/togglerotatekey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/togglerotatekey'. + */// +static inline const char * ELEKTRA_GET (ServerTogglerotatekey) (Elektra * elektra ) +{ + + return ELEKTRA_GET (String) (elektra, "server/togglerotatekey"); +} + + +/** + * Set the value of 'server/togglerotatekey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/togglerotatekey'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerTogglerotatekey) (Elektra * elektra, + const char * value, ElektraError ** error) +{ + + ELEKTRA_SET (String) (elektra, "server/togglerotatekey", value, error); +} + + + + +/** + * Get the value of 'server/user'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/user'. + */// +static inline const char * ELEKTRA_GET (ServerUser) (Elektra * elektra ) +{ + + return ELEKTRA_GET (String) (elektra, "server/user"); +} + + +/** + * Set the value of 'server/user'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/user'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerUser) (Elektra * elektra, + const char * value, ElektraError ** error) +{ + + ELEKTRA_SET (String) (elektra, "server/user", value, error); +} + + + + +/** + * Get the value of 'server/waittime'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/waittime'. + */// +static inline kdb_float_t ELEKTRA_GET (ServerWaittime) (Elektra * elektra ) +{ + + return ELEKTRA_GET (Float) (elektra, "server/waittime"); +} + + +/** + * Set the value of 'server/waittime'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/waittime'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerWaittime) (Elektra * elektra, + kdb_float_t value, ElektraError ** error) +{ + + ELEKTRA_SET (Float) (elektra, "server/waittime", value, error); +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'sli/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Sli) (Elektra * elektra, SliDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("sli/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructSliDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'sli/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sli/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sli) (Elektra * elektra, const SliDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sli/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructSliDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'sli/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Sli) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "sli"); +} + + + +/** + * Get the value of 'sli/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sli/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SliBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sli/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sli/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sli/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SliBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sli/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sli/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sli/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SliContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sli/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sli/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sli/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SliContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sli/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sli/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sli/#/device'. + */// +static inline const char * ELEKTRA_GET (SliDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sli/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sli/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sli/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SliDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sli/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sli/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sli/#/file'. + */// +static inline const char * ELEKTRA_GET (SliFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sli/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sli/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sli/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SliFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sli/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sli/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sli/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SliOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sli/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sli/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sli/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SliOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sli/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sli/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sli/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (SliReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sli/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sli/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sli/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SliReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sli/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sli/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sli/#/speed'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SliSpeed) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sli/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sli/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sli/#/speed'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SliSpeed) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sli/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'stv5730/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Stv5730) (Elektra * elektra, Stv5730DriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("stv5730/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructStv5730DriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'stv5730/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'stv5730/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Stv5730) (Elektra * elektra, const Stv5730DriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("stv5730/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructStv5730DriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'stv5730/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Stv5730) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "stv5730"); +} + + + +/** + * Get the value of 'stv5730/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'stv5730/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Stv5730Brightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("stv5730/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'stv5730/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'stv5730/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Stv5730Brightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("stv5730/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'stv5730/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'stv5730/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Stv5730Contrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("stv5730/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'stv5730/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'stv5730/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Stv5730Contrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("stv5730/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'stv5730/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'stv5730/#/file'. + */// +static inline const char * ELEKTRA_GET (Stv5730File) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("stv5730/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'stv5730/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'stv5730/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Stv5730File) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("stv5730/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'stv5730/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'stv5730/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Stv5730Offbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("stv5730/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'stv5730/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'stv5730/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Stv5730Offbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("stv5730/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'stv5730/#/port'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'stv5730/#/port'. + */// +static inline const char * ELEKTRA_GET (Stv5730Port) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("stv5730/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'stv5730/#/port'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'stv5730/#/port'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Stv5730Port) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("stv5730/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'stv5730/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'stv5730/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Stv5730Reboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("stv5730/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'stv5730/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'stv5730/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Stv5730Reboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("stv5730/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'sureelec/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Sureelec) (Elektra * elektra, SureElecDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructSureElecDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'sureelec/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sureelec/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sureelec) (Elektra * elektra, const SureElecDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructSureElecDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'sureelec/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Sureelec) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "sureelec"); +} + + + +/** + * Get the value of 'sureelec/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sureelec/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SureelecBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sureelec/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sureelec/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SureelecBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sureelec/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sureelec/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SureelecContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sureelec/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sureelec/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SureelecContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sureelec/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sureelec/#/device'. + */// +static inline const char * ELEKTRA_GET (SureelecDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sureelec/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sureelec/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SureelecDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sureelec/#/edition'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sureelec/#/edition'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SureelecEdition) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld/edition", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sureelec/#/edition'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sureelec/#/edition'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SureelecEdition) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld/edition", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sureelec/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sureelec/#/file'. + */// +static inline const char * ELEKTRA_GET (SureelecFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sureelec/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sureelec/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SureelecFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sureelec/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sureelec/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SureelecOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sureelec/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sureelec/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SureelecOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sureelec/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sureelec/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (SureelecReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sureelec/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sureelec/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SureelecReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sureelec/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sureelec/#/size'. + */// +static inline const char * ELEKTRA_GET (SureelecSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sureelec/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sureelec/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SureelecSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'svga/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Svga) (Elektra * elektra, SvgaDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("svga/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructSvgaDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'svga/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'svga/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Svga) (Elektra * elektra, const SvgaDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("svga/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructSvgaDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'svga/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Svga) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "svga"); +} + + + +/** + * Get the value of 'svga/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'svga/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SvgaBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("svga/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'svga/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'svga/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SvgaBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("svga/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'svga/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'svga/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SvgaContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("svga/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'svga/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'svga/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SvgaContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("svga/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'svga/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'svga/#/file'. + */// +static inline const char * ELEKTRA_GET (SvgaFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("svga/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'svga/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'svga/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SvgaFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("svga/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'svga/#/mode'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'svga/#/mode'. + */// +static inline const char * ELEKTRA_GET (SvgaMode) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("svga/%*.*s%lld/mode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'svga/#/mode'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'svga/#/mode'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SvgaMode) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("svga/%*.*s%lld/mode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'svga/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'svga/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SvgaOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("svga/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'svga/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'svga/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SvgaOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("svga/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'svga/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'svga/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (SvgaReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("svga/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'svga/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'svga/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SvgaReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("svga/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'svga/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'svga/#/size'. + */// +static inline const char * ELEKTRA_GET (SvgaSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("svga/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'svga/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'svga/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SvgaSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("svga/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 't6963/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (T6963) (Elektra * elektra, T6963DriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructT6963DriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 't6963/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 't6963/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (T6963) (Elektra * elektra, const T6963DriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructT6963DriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 't6963/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (T6963) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "t6963"); +} + + + +/** + * Get the value of 't6963/#/bidirectional'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 't6963/#/bidirectional'. + */// +static inline kdb_boolean_t ELEKTRA_GET (T6963Bidirectional) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/bidirectional", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 't6963/#/bidirectional'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 't6963/#/bidirectional'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (T6963Bidirectional) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/bidirectional", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 't6963/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 't6963/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (T6963Brightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 't6963/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 't6963/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (T6963Brightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 't6963/#/cleargraphic'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 't6963/#/cleargraphic'. + */// +static inline kdb_boolean_t ELEKTRA_GET (T6963Cleargraphic) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/cleargraphic", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 't6963/#/cleargraphic'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 't6963/#/cleargraphic'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (T6963Cleargraphic) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/cleargraphic", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 't6963/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 't6963/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (T6963Contrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 't6963/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 't6963/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (T6963Contrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 't6963/#/delaybus'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 't6963/#/delaybus'. + */// +static inline kdb_boolean_t ELEKTRA_GET (T6963Delaybus) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/delaybus", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 't6963/#/delaybus'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 't6963/#/delaybus'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (T6963Delaybus) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/delaybus", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 't6963/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 't6963/#/file'. + */// +static inline const char * ELEKTRA_GET (T6963File) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 't6963/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 't6963/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (T6963File) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 't6963/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 't6963/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (T6963Offbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 't6963/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 't6963/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (T6963Offbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 't6963/#/port'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 't6963/#/port'. + */// +static inline const char * ELEKTRA_GET (T6963Port) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 't6963/#/port'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 't6963/#/port'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (T6963Port) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 't6963/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 't6963/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (T6963Reboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 't6963/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 't6963/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (T6963Reboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 't6963/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 't6963/#/size'. + */// +static inline const char * ELEKTRA_GET (T6963Size) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 't6963/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 't6963/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (T6963Size) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'text/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Text) (Elektra * elektra, TextDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("text/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructTextDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'text/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'text/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Text) (Elektra * elektra, const TextDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("text/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructTextDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'text/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Text) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "text"); +} + + + +/** + * Get the value of 'text/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'text/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (TextBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("text/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'text/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'text/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (TextBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("text/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'text/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'text/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (TextContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("text/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'text/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'text/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (TextContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("text/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'text/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'text/#/file'. + */// +static inline const char * ELEKTRA_GET (TextFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("text/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'text/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'text/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (TextFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("text/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'text/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'text/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (TextOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("text/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'text/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'text/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (TextOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("text/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'text/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'text/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (TextReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("text/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'text/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'text/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (TextReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("text/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'text/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'text/#/size'. + */// +static inline const char * ELEKTRA_GET (TextSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("text/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'text/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'text/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (TextSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("text/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'tyan/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Tyan) (Elektra * elektra, TyanDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructTyanDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'tyan/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'tyan/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Tyan) (Elektra * elektra, const TyanDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructTyanDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'tyan/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Tyan) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "tyan"); +} + + + +/** + * Get the value of 'tyan/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'tyan/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (TyanBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'tyan/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'tyan/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (TyanBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'tyan/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'tyan/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (TyanContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'tyan/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'tyan/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (TyanContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'tyan/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'tyan/#/device'. + */// +static inline const char * ELEKTRA_GET (TyanDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'tyan/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'tyan/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (TyanDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'tyan/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'tyan/#/file'. + */// +static inline const char * ELEKTRA_GET (TyanFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'tyan/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'tyan/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (TyanFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'tyan/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'tyan/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (TyanOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'tyan/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'tyan/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (TyanOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'tyan/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'tyan/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (TyanReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'tyan/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'tyan/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (TyanReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'tyan/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'tyan/#/size'. + */// +static inline const char * ELEKTRA_GET (TyanSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'tyan/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'tyan/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (TyanSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'tyan/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'tyan/#/speed'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (TyanSpeed) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'tyan/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'tyan/#/speed'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (TyanSpeed) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'ula200/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Ula200) (Elektra * elektra, Ula200DriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructUla200DriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'ula200/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ula200/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ula200) (Elektra * elektra, const Ula200DriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructUla200DriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'ula200/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Ula200) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "ula200"); +} + + + +/** + * Get the value of 'ula200/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ula200/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Ula200Brightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ula200/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ula200/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ula200Brightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ula200/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ula200/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Ula200Contrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ula200/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ula200/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ula200Contrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ula200/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ula200/#/file'. + */// +static inline const char * ELEKTRA_GET (Ula200File) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ula200/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ula200/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ula200File) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ula200/#/keymap_a'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ula200/#/keymap_a'. + */// +static inline const char * ELEKTRA_GET (Ula200KeymapA) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/keymap_a", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ula200/#/keymap_a'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ula200/#/keymap_a'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ula200KeymapA) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/keymap_a", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ula200/#/keymap_b'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ula200/#/keymap_b'. + */// +static inline const char * ELEKTRA_GET (Ula200KeymapB) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/keymap_b", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ula200/#/keymap_b'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ula200/#/keymap_b'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ula200KeymapB) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/keymap_b", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ula200/#/keymap_c'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ula200/#/keymap_c'. + */// +static inline const char * ELEKTRA_GET (Ula200KeymapC) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/keymap_c", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ula200/#/keymap_c'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ula200/#/keymap_c'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ula200KeymapC) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/keymap_c", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ula200/#/keymap_d'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ula200/#/keymap_d'. + */// +static inline const char * ELEKTRA_GET (Ula200KeymapD) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/keymap_d", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ula200/#/keymap_d'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ula200/#/keymap_d'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ula200KeymapD) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/keymap_d", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ula200/#/keymap_e'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ula200/#/keymap_e'. + */// +static inline const char * ELEKTRA_GET (Ula200KeymapE) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/keymap_e", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ula200/#/keymap_e'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ula200/#/keymap_e'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ula200KeymapE) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/keymap_e", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ula200/#/keymap_f'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ula200/#/keymap_f'. + */// +static inline const char * ELEKTRA_GET (Ula200KeymapF) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/keymap_f", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ula200/#/keymap_f'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ula200/#/keymap_f'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ula200KeymapF) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/keymap_f", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ula200/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ula200/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Ula200Offbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ula200/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ula200/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ula200Offbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ula200/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ula200/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Ula200Reboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ula200/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ula200/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ula200Reboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ula200/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ula200/#/size'. + */// +static inline const char * ELEKTRA_GET (Ula200Size) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ula200/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ula200/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ula200Size) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'vlsys_m428/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (VlsysM428) (Elektra * elektra, Vlsys_m428DriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("vlsys_m428/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructVlsys_m428DriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'vlsys_m428/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'vlsys_m428/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (VlsysM428) (Elektra * elektra, const Vlsys_m428DriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("vlsys_m428/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructVlsys_m428DriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'vlsys_m428/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (VlsysM428) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "vlsys_m428"); +} + + + +/** + * Get the value of 'vlsys_m428/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'vlsys_m428/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (VlsysM428Brightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("vlsys_m428/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'vlsys_m428/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'vlsys_m428/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (VlsysM428Brightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("vlsys_m428/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'vlsys_m428/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'vlsys_m428/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (VlsysM428Contrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("vlsys_m428/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'vlsys_m428/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'vlsys_m428/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (VlsysM428Contrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("vlsys_m428/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'vlsys_m428/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'vlsys_m428/#/device'. + */// +static inline const char * ELEKTRA_GET (VlsysM428Device) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("vlsys_m428/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'vlsys_m428/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'vlsys_m428/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (VlsysM428Device) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("vlsys_m428/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'vlsys_m428/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'vlsys_m428/#/file'. + */// +static inline const char * ELEKTRA_GET (VlsysM428File) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("vlsys_m428/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'vlsys_m428/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'vlsys_m428/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (VlsysM428File) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("vlsys_m428/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'vlsys_m428/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'vlsys_m428/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (VlsysM428Offbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("vlsys_m428/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'vlsys_m428/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'vlsys_m428/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (VlsysM428Offbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("vlsys_m428/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'vlsys_m428/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'vlsys_m428/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (VlsysM428Reboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("vlsys_m428/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'vlsys_m428/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'vlsys_m428/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (VlsysM428Reboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("vlsys_m428/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'xosd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Xosd) (Elektra * elektra, XosdDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructXosdDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'xosd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'xosd/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Xosd) (Elektra * elektra, const XosdDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructXosdDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'xosd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Xosd) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "xosd"); +} + + + +/** + * Get the value of 'xosd/#/Font'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'xosd/#/Font'. + */// +static inline const char * ELEKTRA_GET (XosdFont) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld/Font", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'xosd/#/Font'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'xosd/#/Font'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (XosdFont) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld/Font", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'xosd/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'xosd/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (XosdBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'xosd/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'xosd/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (XosdBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'xosd/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'xosd/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (XosdContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'xosd/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'xosd/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (XosdContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'xosd/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'xosd/#/file'. + */// +static inline const char * ELEKTRA_GET (XosdFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'xosd/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'xosd/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (XosdFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'xosd/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'xosd/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (XosdOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'xosd/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'xosd/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (XosdOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'xosd/#/offset'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'xosd/#/offset'. + */// +static inline const char * ELEKTRA_GET (XosdOffset) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld/offset", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'xosd/#/offset'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'xosd/#/offset'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (XosdOffset) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld/offset", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'xosd/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'xosd/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (XosdReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'xosd/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'xosd/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (XosdReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'xosd/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'xosd/#/size'. + */// +static inline const char * ELEKTRA_GET (XosdSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'xosd/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'xosd/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (XosdSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'yard2lcd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Yard2lcd) (Elektra * elektra, Yard2LCDDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("yard2lcd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructYard2LCDDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'yard2lcd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'yard2lcd/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Yard2lcd) (Elektra * elektra, const Yard2LCDDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("yard2lcd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructYard2LCDDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'yard2lcd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Yard2lcd) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "yard2lcd"); +} + + + +/** + * Get the value of 'yard2lcd/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'yard2lcd/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Yard2lcdBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("yard2lcd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'yard2lcd/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'yard2lcd/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Yard2lcdBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("yard2lcd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'yard2lcd/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'yard2lcd/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Yard2lcdContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("yard2lcd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'yard2lcd/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'yard2lcd/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Yard2lcdContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("yard2lcd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'yard2lcd/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'yard2lcd/#/file'. + */// +static inline const char * ELEKTRA_GET (Yard2lcdFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("yard2lcd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'yard2lcd/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'yard2lcd/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Yard2lcdFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("yard2lcd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'yard2lcd/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'yard2lcd/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Yard2lcdOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("yard2lcd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'yard2lcd/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'yard2lcd/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Yard2lcdOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("yard2lcd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'yard2lcd/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'yard2lcd/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Yard2lcdReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("yard2lcd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'yard2lcd/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'yard2lcd/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Yard2lcdReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("yard2lcd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'yard2lcd/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'yard2lcd/#/size'. + */// +static inline const char * ELEKTRA_GET (Yard2lcdSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("yard2lcd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'yard2lcd/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'yard2lcd/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Yard2lcdSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("yard2lcd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + +#undef elektra_len19 +#undef elektra_len18 +#undef elektra_len17 +#undef elektra_len16 +#undef elektra_len15 +#undef elektra_len14 +#undef elektra_len13 +#undef elektra_len12 +#undef elektra_len11 +#undef elektra_len10 +#undef elektra_len09 +#undef elektra_len08 +#undef elektra_len07 +#undef elektra_len06 +#undef elektra_len05 +#undef elektra_len04 +#undef elektra_len03 +#undef elektra_len02 +#undef elektra_len01 +#undef elektra_len00 +#undef elektra_len + + +int loadConfiguration (Elektra ** elektra, ElektraError ** error); +void printHelpMessage (const char * usage, const char * prefix); +void doSpecloadCheck (int argc, const char ** argv); + + +/** + * @param elektra The elektra instance initialized with loadConfiguration(). + * @param tag The tag to look up. + * + * @return The value stored at the given key. + */// +#define elektraGet(elektra, tag) ELEKTRA_GET (tag) (elektra) + + +/** + * @param elektra The elektra instance initialized with loadConfiguration(). + * @param tag The tag to look up. + * @param ... Variable arguments depending on the given tag. + * + * @return The value stored at the given key. + */// +#define elektraGetV(elektra, tag, ...) ELEKTRA_GET (tag) (elektra, __VA_ARGS__) + + +/** + * @param elektra The elektra instance initialized with loadConfiguration(). + * @param tag The tag to look up. + * @param result Points to the struct into which results will be stored. + */// +#define elektraGet2(elektra, result, tag) ELEKTRA_GET (tag) (elektra, result) + + +/** + * @param elektra The elektra instance initialized with loadConfiguration(). + * @param result Points to the struct into which results will be stored. + * @param tag The tag to look up. + * @param ... Variable arguments depending on the given tag. + */// +#define elektraGet2V(elektra, result, tag, ...) ELEKTRA_GET (tag) (elektra, result, __VA_ARGS__) + + +/** + * @param elektra The elektra instance initialized with the loadConfiguration(). + * @param tag The tag to write to. + * @param value The new value. + * @param error Pass a reference to an ElektraError pointer. + */// +#define elektraSet(elektra, tag, value, error) ELEKTRA_SET (tag) (elektra, value, error) + + +/** + * @param elektra The elektra instance initialized with the loadConfiguration(). + * @param tag The tag to write to. + * @param value The new value. + * @param error Pass a reference to an ElektraError pointer. + * @param ... Variable arguments depending on the given tag. + */// +#define elektraSetV(elektra, tag, value, error, ...) ELEKTRA_SET (tag) (elektra, value, __VA_ARGS__, error) + + +/** + * @param elektra The elektra instance initialized with loadConfiguration(). + * @param tag The array tag to look up. + * + * @return The size of the array below the given key. + */// +#define elektraSize(elektra, tag) ELEKTRA_SIZE (tag) (elektra) + + +/** + * @param elektra The elektra instance initialized with loadConfiguration(). + * @param tag The array tag to look up. + * @param ... Variable arguments depending on the given tag. + * + * @return The size of the array below the given key. + */// +#define elektraSizeV(elektra, tag, ...) ELEKTRA_SIZE (tag) (elektra, __VA_ARGS__) + + +/** + * @param elektra The elektra instance initialized with loadConfiguration(). + * @param contextTag The context tag for the contextual value you want to set. + * @param value The actual value you want to set. + */// +#define elektraContextSet(elektra, contextTag, value) ELEKTRA_CONTEXT_SET (contextTag) (elektra, value) + + +/** + * @param elektra The elektra instance initialized with loadConfiguration(). + * @param contextTag The context tag for the contextual value you want to set. + * @param value The actual value you want to set. + * @param ... Variable arguments depending on the given tag. + */// +#define elektraContextSetV(elektra, contextTag, value, ...) ELEKTRA_CONTEXT_SET (contextTag) (elektra, value, __VA_ARGS__) + +#ifdef __cplusplus +} +#endif + +#endif // ELEKTRAGEN_H diff --git a/server/input.c b/server/input.c index 51e332f5..9508933b 100644 --- a/server/input.c +++ b/server/input.c @@ -31,6 +31,7 @@ #include "input.h" #include "render.h" /* For server_msg* */ +#include "elektragen.h" LinkedList *keylist; char *toggle_rotate_key; @@ -44,18 +45,18 @@ int server_input(int key); void input_internal_key(const char *key); -int input_init(void) +int input_init(Elektra * elektra) { debug(RPT_DEBUG, "%s()", __FUNCTION__); keylist = LL_new(); /* Get rotate/scroll keys from config file */ - toggle_rotate_key = strdup(config_get_string("server", "ToggleRotateKey", 0, "Enter")); - prev_screen_key = strdup(config_get_string("server", "PrevScreenKey", 0, "Left")); - next_screen_key = strdup(config_get_string("server", "NextScreenKey", 0, "Right")); - scroll_up_key = strdup(config_get_string("server", "ScrollUpKey", 0, "Up")); - scroll_down_key = strdup(config_get_string("server", "ScrollDownKey", 0, "Down")); + toggle_rotate_key = strdup(elektraGet(elektra, ELEKTRA_TAG_SERVER_TOGGLEROTATEKEY)); + prev_screen_key = strdup(elektraGet(elektra, ELEKTRA_TAG_SERVER_PREVSCREENKEY)); + next_screen_key = strdup(elektraGet(elektra, ELEKTRA_TAG_SERVER_NEXTSCREENKEY)); + scroll_up_key = strdup(elektraGet(elektra, ELEKTRA_TAG_SERVER_SCROLLUPKEY)); + scroll_down_key = strdup(elektraGet(elektra, ELEKTRA_TAG_SERVER_SCROLLDOWNKEY)); return 0; } diff --git a/server/input.h b/server/input.h index 03d2c076..fe4b1aa7 100644 --- a/server/input.h +++ b/server/input.h @@ -21,6 +21,8 @@ #endif #include "shared/defines.h" +#include + /* Accepts and uses keypad input while displaying screens... */ void handle_input(void); @@ -31,7 +33,7 @@ typedef struct KeyReservation { } KeyReservation; -int input_init(void); +int input_init(Elektra * elektra); /* Init the input handling system */ void input_shutdown(void); diff --git a/server/main.c b/server/main.c index 35a08569..c598b1bb 100644 --- a/server/main.c +++ b/server/main.c @@ -51,8 +51,8 @@ #endif /* TODO: fill in what to include otherwise */ -#include "shared/report.h" -#include "shared/defines.h" +#include +#include #include "drivers.h" #include "sock.h" @@ -64,10 +64,11 @@ #include "serverscreens.h" #include "menuscreens.h" #include "input.h" -#include "shared/configfile.h" #include "drivers.h" #include "main.h" +#include "elektragen.h" + #if !defined(SYSCONFDIR) # define SYSCONFDIR "/etc" #endif @@ -125,7 +126,6 @@ char user[64]; /* The values will be overwritten anyway... */ int frame_interval = DEFAULT_FRAME_INTERVAL; /* The drivers and their driver parameters */ -char *drivernames[MAX_DRIVERS]; int num_drivers = 0; /* End of configuration variables */ @@ -139,14 +139,14 @@ static int stored_argc; static char **stored_argv; static volatile short got_reload_signal = 0; +static Elektra * elektra; + /* Local exported variables */ long timer = 0; /**** Local functions ****/ static void clear_settings(void); -static int process_command_line(int argc, char **argv); -static int process_configfile(char *cfgfile); -static void set_default_settings(void); +static int process_config(); static void install_signal_handlers(int allow_reload); static void child_ok_func(int signal); static pid_t daemonize(void); @@ -157,17 +157,24 @@ static void do_reload(void); static void do_mainloop(void); static void exit_program(int val); static void catch_reload_signal(int val); -static int interpret_boolean_arg(char *s); static void output_help_screen(void); static void output_GPL_notice(void); #define CHAIN(e,f) { if (e>=0) { e=(f); }} #define CHAIN_END(e,msg) { if (e<0) { report(RPT_CRIT,(msg)); exit(EXIT_FAILURE); }} +static const char * help_prefix = + "LCDd - LCDproc Server Daemon, "VERSION"\n\n" + "Copyright (c) 1998-2017 Selene Scriven, William Ferrell, and misc. contributors.\n" + "This program is released under the terms of the GNU General Public License.\n\n"; + int -main(int argc, char **argv) +main(int argc, const char **argv) { + // only returns, if not in specload mode + doSpecloadCheck(argc, argv); + int e = 0; pid_t parent_pid = 0; @@ -201,17 +208,8 @@ main(int argc, char **argv) clear_settings(); - /* Read command line*/ - CHAIN(e, process_command_line(argc, argv)); - - /* Read config file - * If config file was not given on command line use default */ - if (strcmp(configfile, UNSET_STR) == 0) - strncpy(configfile, DEFAULT_CONFIGFILE, sizeof(configfile)); - CHAIN(e, process_configfile(configfile)); - - /* Set default values*/ - set_default_settings(); + /* Read config */ + CHAIN(e, process_config()); /* Set reporting settings (will also flush delayed reports) */ set_reporting("LCDd", report_level, report_dest); @@ -238,9 +236,9 @@ main(int argc, char **argv) CHAIN(e, screenlist_init()); CHAIN(e, init_drivers()); CHAIN(e, clients_init()); - CHAIN(e, input_init()); - CHAIN(e, menuscreens_init()); - CHAIN(e, server_screen_init()); + CHAIN(e, input_init(elektra)); + CHAIN(e, menuscreens_init(elektra)); + CHAIN(e, server_screen_init(elektra)); CHAIN_END(e, "Critical error while initializing, abort."); if (!foreground_mode) { /* Tell to parent that startup went OK. */ @@ -276,271 +274,67 @@ clear_settings(void) default_duration = UNSET_INT; report_dest = UNSET_INT; report_level = UNSET_INT; - - for (i = 0; i < num_drivers; i++) { - free(drivernames[i]); - drivernames[i] = NULL; - } num_drivers = 0; } - -/* parses arguments given on command line */ -static int -process_command_line(int argc, char **argv) +static void on_fatal_error(ElektraError * error) // TODO: finalize method { - int c, b; - int e = 0, help = 0; - - debug(RPT_DEBUG, "%s(argc=%d, argv=...)", __FUNCTION__, argc); - - /* Reset getopt */ - opterr = 0; /* Prevent some messages to stderr */ - - /* Analyze options here.. (please try to keep list of options the - * same everywhere) */ - while ((c = getopt(argc, argv, "hc:d:fa:p:u:w:s:r:i:")) > 0) { - switch(c) { - case 'h': - help = 1; /* Continue to process the other - * options */ - break; - case 'c': - strncpy(configfile, optarg, sizeof(configfile)); - configfile[sizeof(configfile)-1] = '\0'; /* Terminate string */ - break; - case 'd': - /* Add to a list of drivers to be initialized later...*/ - if (num_drivers < MAX_DRIVERS) { - drivernames[num_drivers] = strdup(optarg); - if (drivernames[num_drivers] != NULL) { - num_drivers++; - } - else { - report(RPT_ERR, "alloc error storing driver name: %s", optarg); - e = -1; - } - } else { - report(RPT_ERR, "Too many drivers!"); - e = -1; - } - break; - case 'f': - foreground_mode = 1; - break; - case 'a': - strncpy(bind_addr, optarg, sizeof(bind_addr)); - bind_addr[sizeof(bind_addr)-1] = '\0'; /* Terminate string */ - break; - case 'p': - bind_port = atoi(optarg); - break; - case 'u': - strncpy(user, optarg, sizeof(user)); - user[sizeof(user)-1] = '\0'; /* Terminate string */ - break; - case 'w': - default_duration = (int) (atof(optarg) * 1e6 / frame_interval); - if (default_duration * frame_interval < 2e6) { - report(RPT_ERR, "Waittime should be at least 2 (seconds), not %.8s", optarg); - e = -1; - } - break; - case 's': - b = interpret_boolean_arg(optarg); - if (b == -1) { - report(RPT_ERR, "Not a boolean value: '%s'", optarg); - e = -1; - } else { - report_dest = (b) ? RPT_DEST_SYSLOG : RPT_DEST_STDERR; - } - break; - case 'r': - report_level = atoi(optarg); - break; - case 'i': - b = interpret_boolean_arg(optarg); - if (b == -1) { - report(RPT_ERR, "Not a boolean value: '%s'", optarg); - e = -1; - } else { - rotate_server_screen = b; - } - break; - case '?': - /* For some reason getopt also returns an '?' - * when an option argument is mission... */ - report(RPT_ERR, "Unknown option: '%c'", optopt); - e = -1; - break; - case ':': - report(RPT_ERR, "Missing option argument!"); - e = -1; - break; - } - } - - if (optind < argc) { - report(RPT_ERR, "Non-option arguments on the command line !"); - e = -1; - } - if (help) { - output_help_screen(); - e = -1; - } - return e; + fprintf(stderr, "ERROR: %s\n", elektraErrorDescription(error)); + exit(EXIT_FAILURE); } -/* reads and parses configuration file */ +/* reads and parses configuration */ static int -process_configfile(char *configfile) +process_config() { debug(RPT_DEBUG, "%s()", __FUNCTION__); - /* Read server settings*/ + ElektraError * error = NULL; + elektra = NULL; + int rc = loadConfiguration(&elektra, &error); - if (config_read_file(configfile) != 0) { - report(RPT_CRIT, "Could not read config file: %s", configfile); - return -1; + if (rc == -1) + { + fprintf(stderr, "An error occurred while initializing elektra: %s", elektraErrorDescription(error)); + elektraErrorReset(&error); + return EXIT_FAILURE; } - if (bind_port == UNSET_INT) - bind_port = config_get_int("Server", "Port", 0, UNSET_INT); - - if (strcmp(bind_addr, UNSET_STR) == 0) - strncpy(bind_addr, config_get_string("Server", "Bind", 0, UNSET_STR), sizeof(bind_addr)); - - if (strcmp(user, UNSET_STR) == 0) - strncpy(user, config_get_string("Server", "User", 0, UNSET_STR), sizeof(user)); - - if (default_duration == UNSET_INT) { - default_duration = (config_get_float("Server", "WaitTime", 0, 0) * 1e6 / frame_interval); - if (default_duration == 0) - default_duration = UNSET_INT; - else if (default_duration * frame_interval < 2e6) { - report(RPT_WARNING, "Waittime should be at least 2 (seconds). Set to 2 seconds."); - default_duration = 2e6 / frame_interval; - } + if (rc == 1) + { + // help mode + printHelpMessage(NULL, help_prefix); + return EXIT_SUCCESS; } - if (foreground_mode == UNSET_INT) { - int fg = config_get_bool("Server", "Foreground", 0, UNSET_INT); + elektraFatalErrorHandler(elektra, on_fatal_error); - if (fg != UNSET_INT) - foreground_mode = fg; - } - - if (rotate_server_screen == UNSET_INT) { - rotate_server_screen = config_get_tristate("Server", "ServerScreen", 0, "blank", UNSET_INT); - } - - if (backlight == UNSET_INT) { - backlight = config_get_tristate("Server", "Backlight", 0, "open", UNSET_INT); - } - - if (heartbeat == UNSET_INT) { - heartbeat = config_get_tristate("Server", "Heartbeat", 0, "open", UNSET_INT); - } - - if (autorotate == UNSET_INT) { - autorotate = config_get_bool("Server", "AutoRotate", 0, DEFAULT_AUTOROTATE); - } - - if (titlespeed == UNSET_INT) { - int speed = config_get_int("Server", "TitleSpeed", 0, DEFAULT_TITLESPEED); + bind_port = elektraGet(elektra, ELEKTRA_TAG_SERVER_PORT); + strncpy(bind_addr, elektraGet(elektra, ELEKTRA_TAG_SERVER_BIND), sizeof(bind_addr)); + strncpy(user, elektraGet(elektra, ELEKTRA_TAG_SERVER_USER), sizeof(user)); - /* set titlespeed */ - titlespeed = (speed <= TITLESPEED_NO) - ? TITLESPEED_NO - : min(speed, TITLESPEED_MAX); + frame_interval = elektraGet(elektra, ELEKTRA_TAG_SERVER_FRAMEINTERVAL); + default_duration = elektraGet(elektra, ELEKTRA_TAG_SERVER_WAITTIME) * 1e6 / frame_interval; + if (default_duration * frame_interval < 2e6) { + report(RPT_WARNING, "Waittime should be at least 2 (seconds). Set to 2 seconds."); + default_duration = 2e6 / frame_interval; } - frame_interval = config_get_int("Server", "FrameInterval", 0, DEFAULT_FRAME_INTERVAL); + foreground_mode = elektraGet(elektra, ELEKTRA_TAG_SERVER_FOREGROUND); + rotate_server_screen = elektraGet(elektra, ELEKTRA_TAG_SERVER_SERVERSCREEN); + backlight = elektraGet(elektra, ELEKTRA_TAG_SERVER_BACKLIGHT); + heartbeat = elektraGet(elektra, ELEKTRA_TAG_SERVER_HEARTBEAT); + autorotate = elektraGet(elektra, ELEKTRA_TAG_SERVER_AUTOROTATE); - if (report_dest == UNSET_INT) { - int rs = config_get_bool("Server", "ReportToSyslog", 0, UNSET_INT); + titlespeed = elektraGet(elektra, ELEKTRA_TAG_SERVER_TITLESPEED); + report_dest = (elektraGet(elektra, ELEKTRA_TAG_SERVER_REPORTTOSYSLOG)) ? RPT_DEST_SYSLOG : RPT_DEST_STDERR; - if (rs != UNSET_INT) - report_dest = (rs) ? RPT_DEST_SYSLOG : RPT_DEST_STDERR; - } - if (report_level == UNSET_INT) { - report_level = config_get_int("Server", "ReportLevel", 0, UNSET_INT); - } - - - /* Read drivers */ - - /* If drivers have been specified on the command line, then do not - * use the driver list from the config file. - */ - if (num_drivers == 0) { - /* loop over all the Driver= directives to read the driver names */ - while (1) { - const char *s = config_get_string("Server", "Driver", num_drivers, NULL); - if (s == NULL) - break; - if (s[0] != '\0') { - drivernames[num_drivers] = strdup(s); - if (drivernames[num_drivers] == NULL) { - report(RPT_ERR, "alloc error storing driver name: %s", s); - exit(EXIT_FAILURE); - } - num_drivers++; - } - } - } + report_level = elektraGet(elektra, ELEKTRA_TAG_SERVER_REPORTLEVEL); return 0; } - -static void -set_default_settings(void) -{ - debug(RPT_DEBUG, "%s()", __FUNCTION__); - - /* Set defaults into unfilled variables... */ - - if (bind_port == UNSET_INT) - bind_port = DEFAULT_BIND_PORT; - if (strcmp(bind_addr, UNSET_STR) == 0) - strncpy(bind_addr, DEFAULT_BIND_ADDR, sizeof(bind_addr)); - if (strcmp(user, UNSET_STR) == 0) - strncpy(user, DEFAULT_USER, sizeof(user)); - - if (foreground_mode == UNSET_INT) - foreground_mode = DEFAULT_FOREGROUND_MODE; - if (rotate_server_screen == UNSET_INT) - rotate_server_screen = DEFAULT_ROTATE_SERVER_SCREEN; - - if (default_duration == UNSET_INT) - default_duration = DEFAULT_SCREEN_DURATION; - if (backlight == UNSET_INT) - backlight = DEFAULT_BACKLIGHT; - if (heartbeat == UNSET_INT) - heartbeat = DEFAULT_HEARTBEAT; - if (titlespeed == UNSET_INT) - titlespeed = DEFAULT_TITLESPEED; - - if (report_dest == UNSET_INT) - report_dest = DEFAULT_REPORTDEST; - if (report_level == UNSET_INT) - report_level = DEFAULT_REPORTLEVEL; - - - /* Use default driver */ - if (num_drivers == 0) { - drivernames[0] = strdup(DEFAULT_DRIVER); - if (drivernames[0] == NULL) { - report(RPT_ERR, "alloc error storing driver name: %s", DEFAULT_DRIVER); - exit(EXIT_FAILURE); - } - num_drivers = 1; - } -} - - static void install_signal_handlers(int allow_reload) { @@ -667,16 +461,23 @@ init_drivers(void) debug(RPT_DEBUG, "%s()", __FUNCTION__); - for (i = 0; i < num_drivers; i++) { + /* Read drivers */ + num_drivers = elektraSize(elektra, ELEKTRA_TAG_SERVER_DRIVERS); + for (kdb_long_long_t i = 0; i < num_drivers; ++i) { + if(i > MAX_DRIVERS) + { + report(RPT_ERR, "too many driver; max = %d", MAX_DRIVERS); + exit(EXIT_FAILURE); + } - res = drivers_load_driver(drivernames[i]); + res = drivers_load_driver(elektra, i); if (res >= 0) { /* Load went OK */ if (res == 2) foreground_mode = 1; } else { - report(RPT_ERR, "Could not load driver %.40s", drivernames[i]); + report(RPT_ERR, "Could not load driver #"ELEKTRA_LONG_LONG_F, i); } } @@ -722,16 +523,9 @@ do_reload(void) config_clear(); clear_settings(); - /* Reread command line*/ - CHAIN(e, process_command_line(stored_argc, stored_argv)); - - /* Reread config file */ - if (strcmp(configfile, UNSET_STR)==0) - strncpy(configfile, DEFAULT_CONFIGFILE, sizeof(configfile)); - CHAIN(e, process_configfile(configfile)); - - /* Set default values */ - CHAIN(e, (set_default_settings(), 0)); + elektraClose(elektra); + /* Reread config */ + CHAIN(e, process_config()); /* Set reporting values */ CHAIN(e, set_reporting("LCDd", report_level, report_dest)); @@ -857,7 +651,7 @@ exit_program(int val) report_dest = DEFAULT_REPORTDEST; set_reporting("LCDd", report_level, report_dest); - goodbye_screen(); /* display goodbye screen on LCD display */ + goodbye_screen(elektra); /* display goodbye screen on LCD display */ drivers_unload_all(); /* release driver memory and file descriptors */ /* Shutdown things if server start was complete */ @@ -867,6 +661,8 @@ exit_program(int val) input_shutdown(); /* shutdown key input part */ sock_shutdown(); /* shutdown the sockets server */ + elektraClose(elektra); + report(RPT_INFO, "Exiting."); _exit(EXIT_SUCCESS); } @@ -881,25 +677,6 @@ catch_reload_signal(int val) } -static int -interpret_boolean_arg(char *s) -{ - /* keep these checks consistent with config_get_boolean() */ - if (strcasecmp(s, "0") == 0 || strcasecmp(s, "false") == 0 - || strcasecmp(s, "n") == 0 || strcasecmp(s, "no") == 0 - || strcasecmp(s, "off") == 0) { - return 0; - } - if (strcasecmp(s, "1") == 0 || strcasecmp(s, "true") == 0 - || strcasecmp(s, "y") == 0 || strcasecmp(s, "yes") == 0 - || strcasecmp(s, "on") == 0) { - return 1; - } - /* no legal boolean string given */ - return -1; -} - - static void output_GPL_notice(void) { @@ -926,40 +703,3 @@ output_GPL_notice(void) "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.\n\n"); } - -static void -output_help_screen(void) -{ - /* Help screen is printed to stdout on purpose. No reason to have - * this in syslog... - */ - debug(RPT_DEBUG, "%s()", __FUNCTION__); - - fprintf(stdout, "LCDd - LCDproc Server Daemon, %s\n\n", version); - fprintf(stdout, "Copyright (c) 1998-2017 Selene Scriven, William Ferrell, and misc. contributors.\n"); - fprintf(stdout, "This program is released under the terms of the GNU General Public License.\n\n"); - fprintf(stdout, "Usage: LCDd []\n"); - fprintf(stdout, " where are:\n"); - fprintf(stdout, " -h Display this help screen\n"); - fprintf(stdout, " -c Use a configuration file other than %s\n", - DEFAULT_CONFIGFILE); - fprintf(stdout, " -d Add a driver to use (overrides drivers in config file) [%s]\n", - DEFAULT_DRIVER); - fprintf(stdout, " -f Run in the foreground\n"); - fprintf(stdout, " -a Network (IP) address to bind to [%s]\n", - DEFAULT_BIND_ADDR); - fprintf(stdout, " -p Network port to listen for connections on [%i]\n", - DEFAULT_BIND_PORT); - fprintf(stdout, " -u User to run as [%s]\n", - DEFAULT_USER); - fprintf(stdout, " -w Time to pause at each screen (in seconds) [%d]\n", - (int) ((DEFAULT_SCREEN_DURATION * frame_interval) / 1e6)); - fprintf(stdout, " -s If set, reporting will be done using syslog\n"); - fprintf(stdout, " -r Report level [%d]\n", - DEFAULT_REPORTLEVEL); - fprintf(stdout, " -i Whether to rotate the server info screen\n"); - - /* Error messages will be flushed to the configured output after this - * help message. - */ -} diff --git a/server/main.h b/server/main.h index e2491bb0..622f9dcd 100644 --- a/server/main.h +++ b/server/main.h @@ -51,7 +51,6 @@ extern char user[]; /* The values will be overwritten anyway... */ extern int frame_interval; /* Not a command line option, but could be */ /* The drivers and their driver parameters */ -extern char *drivernames[]; extern int num_drivers; /* End of configuration variables */ diff --git a/server/menuscreens.c b/server/menuscreens.c index b5cae936..56c8e1d6 100644 --- a/server/menuscreens.c +++ b/server/menuscreens.c @@ -42,6 +42,8 @@ /* Next include files are needed for settings that we can modify */ #include "render.h" +#include "elektragen.h" + char *menu_key; char *enter_key; @@ -78,13 +80,13 @@ MenuEventFunc(contrast_handler); MenuEventFunc(brightness_handler); int -menuscreens_init(void) +menuscreens_init(Elektra * elektra) { const char *tmp; debug(RPT_DEBUG, "%s()", __FUNCTION__); - menu_permissive_goto = config_get_bool("menu", "PermissiveGoto", 0, 0); + menu_permissive_goto = elektraGet(elektra, ELEKTRA_TAG_MENU_PERMISSIVEGOTO); /* * Get keys from config file: MenuKey, EnterKey, UpKey, DownKey, @@ -93,53 +95,53 @@ menuscreens_init(void) */ keymask = 0; menu_key = enter_key = NULL; - tmp = config_get_string("menu", "MenuKey", 0, NULL); - if (tmp != NULL) { + tmp = elektraGet(elektra, ELEKTRA_TAG_MENU_MENUKEY); + if (strlen(tmp) > 0) { menu_key = strdup(tmp); keymask |= MENUTOKEN_MENU; } - tmp = config_get_string("menu", "EnterKey", 0, NULL); - if (tmp != NULL) { + tmp = elektraGet(elektra, ELEKTRA_TAG_MENU_ENTERKEY); + if (strlen(tmp) > 0) { enter_key = strdup(tmp); keymask |= MENUTOKEN_ENTER; } up_key = down_key = NULL; - tmp = config_get_string("menu", "UpKey", 0, NULL); - if (tmp != NULL) { + tmp = elektraGet(elektra, ELEKTRA_TAG_MENU_UPKEY); + if (strlen(tmp) > 0) { up_key = strdup(tmp); keymask |= MENUTOKEN_UP; } - tmp = config_get_string("menu", "DownKey", 0, NULL); - if (tmp != NULL) { + tmp = elektraGet(elektra, ELEKTRA_TAG_MENU_DOWNKEY); + if (strlen(tmp) > 0) { down_key = strdup(tmp); keymask |= MENUTOKEN_DOWN; } left_key = right_key = NULL; - tmp = config_get_string("menu", "LeftKey", 0, NULL); - if (tmp != NULL) { + tmp = elektraGet(elektra, ELEKTRA_TAG_MENU_LEFTKEY); + if (strlen(tmp) > 0) { left_key = strdup(tmp); keymask |= MENUTOKEN_LEFT; } - tmp = config_get_string("menu", "RightKey", 0, NULL); - if (tmp != NULL) { + tmp = elektraGet(elektra, ELEKTRA_TAG_MENU_RIGHTKEY); + if (strlen(tmp) > 0) { right_key = strdup(tmp); keymask |= MENUTOKEN_RIGHT; } /* Now reserve the keys that were defined */ - if (menu_key != NULL) + if (keymask & MENUTOKEN_MENU) input_reserve_key(menu_key, true, NULL); - if (enter_key != NULL) + if (keymask & MENUTOKEN_ENTER) input_reserve_key(enter_key, false, NULL); - if (up_key != NULL) + if (keymask & MENUTOKEN_UP) input_reserve_key(up_key, false, NULL); - if (down_key != NULL) + if (keymask & MENUTOKEN_DOWN) input_reserve_key(down_key, false, NULL); - if (left_key != NULL) + if (keymask & MENUTOKEN_LEFT) input_reserve_key(left_key, false, NULL); - if (right_key != NULL) + if (keymask & MENUTOKEN_RIGHT) input_reserve_key(right_key, false, NULL); /* Create screen */ diff --git a/server/menuscreens.h b/server/menuscreens.h index 1984585a..0ca6f6ac 100644 --- a/server/menuscreens.h +++ b/server/menuscreens.h @@ -18,10 +18,12 @@ #include "menu.h" #include "screen.h" +#include + extern Screen *menuscreen; extern Menu *main_menu; -int menuscreens_init(void); +int menuscreens_init(Elektra * elektra); int menuscreens_shutdown(void); diff --git a/server/serverscreens.c b/server/serverscreens.c index 0e31ab4f..aeab53b9 100644 --- a/server/serverscreens.c +++ b/server/serverscreens.c @@ -40,6 +40,8 @@ #include "main.h" #include "serverscreens.h" +#include "elektragen.h" + /* global variables */ Screen *server_screen = NULL; @@ -58,12 +60,13 @@ static int reset_server_screen(int rotate, int heartbeat, int title); * 0 otherwise. */ int -server_screen_init(void) +server_screen_init(Elektra * elektra) { Widget *w; int i; - has_hello_msg = config_has_key("Server", "Hello"); + kdb_long_long_t helloArraySize = elektraSize(elektra, ELEKTRA_TAG_SERVER_GOODBYE); + has_hello_msg = helloArraySize > 0; debug(RPT_DEBUG, "%s()", __FUNCTION__); @@ -97,10 +100,8 @@ server_screen_init(void) /* set the widgets depending on the Hello option in LCDd.conf */ if (has_hello_msg) { /* show whole Hello message */ - int i; - - for (i = 0; i < display_props->height; i++) { - const char *line = config_get_string("Server", "Hello", i, ""); + for (kdb_long_long_t i = 0; i < display_props->height && i < helloArraySize; i++) { + const char *line = elektraGetV(elektra, ELEKTRA_TAG_SERVER_HELLO, i); char id[8]; sprintf(id, "line%d", i+1); @@ -211,19 +212,18 @@ update_server_screen(void) * \return Always 0. */ int -goodbye_screen(void) +goodbye_screen(Elektra * elektra) { if (!display_props) return 0; drivers_clear(); - if (config_has_key("Server", "GoodBye")) { /* custom GoodBye */ - int i; - + kdb_long_long_t arraySize = elektraSize(elektra, ELEKTRA_TAG_SERVER_GOODBYE); + if (arraySize > 0) { /* custom GoodBye */ /* loop over all display lines to read config & display message */ - for (i = 0; i < display_props->height; i++) { - const char *line = config_get_string("Server", "GoodBye", i, ""); + for (kdb_long_long_t i = 0; i < display_props->height && i < arraySize; i++) { + const char *line = elektraGetV(elektra, ELEKTRA_TAG_SERVER_GOODBYE, i); drivers_string(1, 1+i, line); } diff --git a/server/serverscreens.h b/server/serverscreens.h index 756394aa..ed7030a3 100644 --- a/server/serverscreens.h +++ b/server/serverscreens.h @@ -15,6 +15,8 @@ #include "screen.h" +#include + /* server screen rotation states */ #define SERVERSCREEN_OFF 0 /**< Show server screen in rotation. */ #define SERVERSCREEN_ON 1 /**< Show server sreen only when there is no other screen. */ @@ -24,9 +26,9 @@ extern Screen *server_screen; extern int rotate_server_screen; -int server_screen_init(void); +int server_screen_init(Elektra * elektra); int server_screen_shutdown(void); int update_server_screen(void); -int goodbye_screen(void); +int goodbye_screen(Elektra * elektra); #endif diff --git a/server/specification/LCDd-spec.ini b/server/specification/LCDd-spec.ini index ce46850f..d222afc3 100644 --- a/server/specification/LCDd-spec.ini +++ b/server/specification/LCDd-spec.ini @@ -1,41 +1,16 @@ [] mountpoint = LCDd.conf ;infos/plugins = dump validation enum range ipaddr path network type -infos/plugins = dump validation enum +infos/plugins = ini validation type -;Until the max plugin error is not fixed, some specifications will be left commented out +; TODO: Until the max plugin error is not fixed, some specifications will be left commented out ;============================================================================= ;============================================================================= -;Affecting all subsettings, eg curses/Contrast, CFontz/Contrast, etc. -;------------------------------------ - -[/_/contrast] -type = unsigned_short -check/type = unsigned_short -check/range = 0-1000 -description = Set the initial contrast - -[/_/brightness] -type = unsigned_short -check/type = unsigned_short -check/range = 0-1000 - -[/_/offbrightness] -type = unsigned_short -check/type = unsigned_short -check/range = 0-1000 - -[/_/reboot] -type = boolean -check/type = boolean -default = no -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - ;Server ;---------------------------------------- -[/server/driverpath] +[server/driverpath] type = string check/type = string check/validation = .*[\/]$ @@ -44,79 +19,136 @@ check/validation/message = The path has to contain a backslack (/) at the end default = server/drivers/ description = Select the LCD size - -[/server/driver] -type = string -check/type = string -default = curses -description = "Tells the server to load the given drivers. Multiple lines can be given. -The name of the driver is case sensitive and determines the section -where to look for further configuration options of the specific driver -as well as the name of the dynamic driver module to load at runtime. -The latter one can be changed by giving a File= directive in the -driver specific section. - -The following drivers are supported: - bayrad, CFontz, CFontzPacket, curses, CwLnx, ea65, EyeboxOne, futaba, - g15, glcd, glcdlib, glk, hd44780, icp_a106, imon, imonlcd,, IOWarrior, - irman, joy, lb216, lcdm001, lcterm, linux_input, lirc, lis, MD8800, - mdm166a, ms6931, mtc_s16209x, MtxOrb, mx5000, NoritakeVFD, - Olimex_MOD_LCD1x9, picolcd, pyramid, rawserial, sdeclcd, sed1330, - sed1520, serialPOS, serialVFD, shuttleVFD, sli, stv5730, svga, t6963, - text, tyan, ula200, vlsys_m428, xosd, yard2LCD" - -[/server/bind] +[server/drivers] +default = "" +array = #0 ; TODO: max drivers + +[server/drivers/#] +type = string +check/type = string +default = "" +check/reference/restrict = #_52 +check/reference/restrict/#0 = @/bayrad/# +check/reference/restrict/#1 = @/cfontz/# +check/reference/restrict/#2 = @/cfontzpacket/# +check/reference/restrict/#3 = @/curses/# +check/reference/restrict/#4 = @/cwlnx/# +check/reference/restrict/#5 = @/ea65/# +check/reference/restrict/#6 = @/eyeboxone/# +check/reference/restrict/#7 = @/futaba/# +check/reference/restrict/#8 = @/g15/# +check/reference/restrict/#9 = @/glcd/# +check/reference/restrict/#_10 = @/glcdlib/# +check/reference/restrict/#_11 = @/glk/# +check/reference/restrict/#_12 = @/hd44780/# +check/reference/restrict/#_13 = @/icp_a106/# +check/reference/restrict/#_14 = @/imon/# +check/reference/restrict/#_15 = @/imonlcd/# +check/reference/restrict/#_16 = @/iowarrior/# +check/reference/restrict/#_17 = @/irman/# +check/reference/restrict/#_18 = @/joy/# +check/reference/restrict/#_19 = @/lb216/# +check/reference/restrict/#_20 = @/lcdm001/# +check/reference/restrict/#_21 = @/lcterm/# +check/reference/restrict/#_22 = @/linux_input/# +check/reference/restrict/#_23 = @/lirc/# +check/reference/restrict/#_24 = @/lis/# +check/reference/restrict/#_25 = @/md8800/# +check/reference/restrict/#_26 = @/mdm166a/# +check/reference/restrict/#_27 = @/ms6931/# +check/reference/restrict/#_28 = @/mtc_s16209x/# +check/reference/restrict/#_29 = @/mtxorb/# +check/reference/restrict/#_30 = @/mx5000/# +check/reference/restrict/#_31 = @/noritakevfd/# +check/reference/restrict/#_32 = @/olimex_mod_lcd1x9/# +check/reference/restrict/#_33 = @/picolcd/# +check/reference/restrict/#_34 = @/pyramid/# +check/reference/restrict/#_35 = @/rawserial/# +check/reference/restrict/#_36 = @/sdeclcd/# +check/reference/restrict/#_37 = @/sed1330/# +check/reference/restrict/#_38 = @/sed1520/# +check/reference/restrict/#_39 = @/serialpos/# +check/reference/restrict/#_40 = @/serialvfd/# +check/reference/restrict/#_41 = @/shuttlevfd/# +check/reference/restrict/#_42 = @/sli/# +check/reference/restrict/#_43 = @/stv5730/# +check/reference/restrict/#_44 = @/svga/# +check/reference/restrict/#_45 = @/t6963/# +check/reference/restrict/#_46 = @/text/# +check/reference/restrict/#_47 = @/tyan/# +check/reference/restrict/#_48 = @/ula200/# +check/reference/restrict/#_49 = @/vlsys_m428/# +check/reference/restrict/#_50 = @/xosd/# +check/reference/restrict/#_51 = @/yard2lcd/# +description = "Tells the server to load a driver. +The given value is a reference the configuration of the driver, e.g. @/curses/#0" + +[server/bind] type = string ;check/ipaddr = check/type = string default = 127.0.0.1 description = Tells the driver to bind to the given interface +opt = a +opt/long = address -[/server/port] +[server/port] type = unsigned_short ;check/port/listen = check/type = unsigned_short default = 13666 description = Listen on this specified port. [default: 13666] +opt = p +opt/long = port -[/server/reportlevel] +[server/reportlevel] type = unsigned_short check/type = unsigned_short check/range = 0-5 default = 2 description = TSets the reporting level, defaults to warnings and errors only. +opt = r +opt/long = report-level -[/server/reporttosyslog] +[server/reporttosyslog] type = boolean check/type = boolean -default = no +default = 0 ; TODO: fix description = Should we report to syslog instead of stderr? +opt = s +opt/long = report-to-syslog +opt/arg = none -[/server/user] +[server/user] type = string check/type = string default = nobody -description = "ser to run as. LCDd will drop its root privileges and run as this user instead. [default: nobody]" +description = "set to run as. LCDd will drop its root privileges and run as this user instead. [default: nobody]" +opt = u +opt/long = user -[/server/foreground] +[server/foreground] type = boolean check/type = boolean -default = no +default = 0 ; TODO: fix description = The server will stay in the foreground if set to yes +opt = f +opt/long = foreground +opt/arg = none -[/server/hello] +[server/hello/#] type = string check/type = string -default = builtin -description = "Hello message: each entry represents a display line; default: builtin" +default = "" +description = "Hello message: each entry represents a display line" -[/server/goodbye] +[server/goodbye/#] type = string check/type = string -default = builtin -description = "GoodBye message: each entry represents a display line; default: builtin" +default = "" +description = "GoodBye message: each entry represents a display line" -[/server/frameinterval] +[server/frameinterval] type = unsigned_long check/type = unsigned_long check/validation = [1-9]\d* @@ -125,48 +157,65 @@ check/validation/message = FrameInterval must be a positive number default = 125000 description = "Sets the interval in microseconds for updating the display [default: 125000 meaning 8Hz]" -[/server/waittime] -type = unsigned_long -check/type = unsigned_long -check/validation = [1-9]\d* -check/validation/match = LINE -check/validation/message = WaitTime must be a positive number +[server/waittime] +type = float +check/type = float +; TODO: bigger than 2 default = 4 description = Sets the default time in seconds to displays a screen +opt = w +opt/long = wait-time -[/server/autorotate] +[server/autorotate] type = boolean check/type = boolean -default = on +default = 1 ; TODO: fix description = If set to no, LCDd will start with screen rotation disabled. This has the\ same effect as if the ToggleRotateKey had been pressed. Rotation will start\ if the ToggleRotateKey is pressed. Note that this setting does not turn off\ priority sorting of screens -[/server/serverscreen] +[server/serverscreen] type = enum -check/enum = off, on, blank +check/enum = #2 +check/enum/#0 = off +check/enum/#1 = on +check/enum/#2 = blank default = on description = If yes, the the serverscreen will be rotated as a usual info screen. If no,\ it will be a background screen, only visible when no other screens are\ active. The special value 'blank' is similar to no, but only a blank screen\ is displayed. +opt = i +opt/long = rotate-server-screen -[/server/backlight] +[server/backlight] type = enum -check/enum = off, on, open +check/enum = #2 +check/enum/#0 = off +check/enum/#1 = on +check/enum/#2 = open default = open description = Set master backlight setting. If set to 'open' a client may control the\ backlight for its own screens (only) -[/server/heartbeat] +[server/heartbeat] type = enum -check/enum = off, on, open +check/enum = #2 +check/enum/#0 = off +check/enum/#1 = on +check/enum/#2 = open default = open description = Set master heartbeat setting. If set to 'open' a client may control the heartbeat for its own screens (only) -[/server/togglerotatekey] +[server/titlespeed] +type = unsigned_short +check/range = 0-10 +default = 10 +description = title scrolling speed + +[server/togglerotatekey] type = string check/type = string default = Enter @@ -176,7 +225,7 @@ the PrevScreenKey and NextScreenKey go back / forward one screen (even if rotation is disabled. Assign the key string returned by the driver to the ...Key setting." -[/server/prevscreenkey] +[server/prevscreenkey] type = string check/type = string default = Left @@ -186,7 +235,7 @@ the PrevScreenKey and NextScreenKey go back / forward one screen (even if rotation is disabled. Assign the key string returned by the driver to the ...Key setting." -[/server/nextscreenkey] +[server/nextscreenkey] type = string check/type = string default = Right @@ -196,7 +245,7 @@ the PrevScreenKey and NextScreenKey go back / forward one screen (even if rotation is disabled. Assign the key string returned by the driver to the ...Key setting." -[/server/scrollupkey] +[server/scrollupkey] type = string check/type = string default = Up @@ -206,7 +255,7 @@ the PrevScreenKey and NextScreenKey go back / forward one screen (even if rotation is disabled. Assign the key string returned by the driver to the ...Key setting." -[/server/scrolldownkey] +[server/scrolldownkey] type = string check/type = string default = Down @@ -219,51 +268,51 @@ Assign the key string returned by the driver to the ...Key setting." ;Menu ;================================================== -[/menu/permissivegoto] +[menu/permissivegoto] type = boolean check/type = boolean -default = false +default = 0 ; TODO: fix description = If true the server allows transitions between different client`s menus -[/menu/menukey] +[menu/menukey] type = string -check/type = string -default = Escape +check/type = any +default = "" description = "Up to six keys are supported. The MenuKey (to enter and exit the menu), the EnterKey (to select values) and at least one movement keys are required." -[/menu/enterkey] +[menu/enterkey] type = string -check/type = string -default = Enter +check/type = any +default = "" description = "Up to six keys are supported. The MenuKey (to enter and exit the menu), the EnterKey (to select values) and at least one movement keys are required." -[/menu/upkey] +[menu/upkey] type = string -check/type = string -default = Up +check/type = any +default = "" description = "Up to six keys are supported. The MenuKey (to enter and exit the menu), the EnterKey (to select values) and at least one movement keys are required." -[/menu/downkey] +[menu/downkey] type = string -check/type = string -default = Down +check/type = any +default = "" description = "Up to six keys are supported. The MenuKey (to enter and exit the menu), the EnterKey (to select values) and at least one movement keys are required." -[/menu/leftkey] +[menu/leftkey] type = string -check/type = string -default = Left +check/type = any +default = "" description = "Up to six keys are supported. The MenuKey (to enter and exit the menu), the EnterKey (to select values) and at least one movement keys are required." -[/menu/rightkey] +[menu/rightkey] type = string -check/type = string -default = Right +check/type = any +default = "" description = "Up to six keys are supported. The MenuKey (to enter and exit the menu), the EnterKey (to select values) and at least one movement keys are required." @@ -271,14 +320,56 @@ EnterKey (to select values) and at least one movement keys are required." ;bayrad ;================================================== -[/bayrad/device] +[bayrad] +default = "" +array = #0 + +[bayrad/#] +type = struct +check/type = any +default = "" +gen/struct/type = BayradDriverConfig +gen/struct/alloc = 0 +description = Configuration for a bayrad driver. + +[bayrad/#/file] +type = string +default = "bayrad" +description = name of the shared library to load (without prefix and extension) + +[bayrad/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[bayrad/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[bayrad/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[bayrad/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[bayrad/#/device] type = string check/type = string ;check/path = default = /dev/lcd description = Select the output device to use -[/bayrad/speed] +[bayrad/#/speed] type = unsigned_short check/type = unsigned_short check/range = 1200, 2400, 9600, 19200 @@ -287,102 +378,163 @@ description = Set the communication speed ;CFontz ;================================================== -[/cfontz/device] -type = string -check/type = string -;check/path = -default = /dev/lcd -description = Select the output device to use +[cfontz] +default = "" +array = #0 -[/cfontz/size] +[cfontz/#] +type = struct +check/type = any +default = "" +gen/struct/type = CFontzDriverConfig +gen/struct/alloc = 0 +description = Configuration for a CFontz driver. + +[cfontz/#/file] type = string -check/type = string -check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) -check/validation/match = LINE -check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 -default = 20x4 -description = Select the LCD size +default = "CFontz" +description = name of the shared library to load (without prefix and extension) -[/cfontz/contrast] +[cfontz/#/contrast] +type = unsigned_short +check/type = unsigned_short default = 350 +check/range = 0-1000 +description = Set the initial contrast -[/cfontz/brightness] +[cfontz/#/brightness] +type = unsigned_short +check/type = unsigned_short default = 1000 +check/range = 0-1000 description = Set the initial brightness -[/cfontz/offbrightness] +[cfontz/#/offbrightness] type = unsigned_short check/type = unsigned_short default = 0 +check/range = 0-1000 description = Set the initial off-brightness.\ This value is used when the display is normally\ switched off in case LCDd is inactive -[/cfontz/speed] +[cfontz/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[cfontz/#/device] +type = string +check/type = string +;check/path = +default = /dev/lcd +description = Select the output device to use + +[cfontz/#/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 20x4 +description = Select the LCD size + +[cfontz/#/speed] type = unsigned_short check/type = unsigned_short check/range = 1200, 2400, 9600, 19200, 115200 default = 9600 description = Set the communication speed -[/cfontz/newfirmware] +[cfontz/#/newfirmware] type = boolean check/type = boolean -default = no +default = 0 ; TODO: fix description = "Set the firmware version (New means >= 2.0)" -[/cfontz/reboot] -default = no - ;CFontzPacket ;================================================== -[/cfontzpacket/model] -type = enum -check/type = enum -check/enum = 533, 631, 633, 635 -default = 633 -description = Select the LCD model +[cfontzpacket] +default = "" +array = #0 + +[cfontzpacket/#] +type = struct +check/type = any +default = "" +gen/struct/type = CFontzPacketDriverConfig +gen/struct/alloc = 0 +description = Configuration for a CFontzPacket driver. -[/cfontzpacket/device] +[cfontzpacket/#/file] type = string -check/type = string -;check/path = -default = /dev/lcd -;description = Select the output device to use +default = "CFontzPacket" +description = name of the shared library to load (without prefix and extension) -[/cfontzpacket/contrast] +[cfontzpacket/#/contrast] +type = unsigned_short +check/type = unsigned_short default = 350 +check/range = 0-1000 +description = Set the initial contrast -[/cfontzpacket/brightness] +[cfontzpacket/#/brightness] +type = unsigned_short +check/type = unsigned_short default = 1000 +check/range = 0-1000 description = Set the initial brightness -[/cfontzpacket/offbrightness] +[cfontzpacket/#/offbrightness] type = unsigned_short check/type = unsigned_short default = 0 +check/range = 0-1000 description = Set the initial off-brightness.\ This value is used when the display is normally\ switched off in case LCDd is inactive -[/cfontzpacket/reboot] -default = no +[cfontzpacket/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[cfontzpacket/#/model] +type = enum +check/type = enum +check/enum = #3 +check/enum/#0 = 533 +check/enum/#1 = 631 +check/enum/#2 = 633 +check/enum/#3 = 635 +gen/enum/type = CFontzPacketModel +default = 633 +description = Select the LCD model + +[cfontzpacket/#/device] +type = string +check/type = string +;check/path = +default = /dev/lcd +;description = Select the output device to use -[/cfontzpacket/usb] +[cfontzpacket/#/usb] type = boolean check/type = boolean -default = no +default = 0 ; TODO: fix description = Enable the USB flag if the device is connected to an USB port. For serial ports leave it disabled. -[/cfontzpacket/oldfirmware] +[cfontzpacket/#/oldfirmware] type = boolean check/type = boolean -default = no +default = 0 ; TODO: fix description = Very old 633 firmware versions do not support partial screen updates using\ 'Send Data to LCD' command (31). For those devices it may be necessary to\ enable this flag -[/cfontzpacket/size] +[cfontzpacket/#/size] type = string check/type = string check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) @@ -391,7 +543,7 @@ check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 4 default = 20x4 description = Override the LCD size known for the selected model. Usually setting this value should not be necessary. -[/cfontzpacket/speed] +[cfontzpacket/#/speed] type = unsigned_short check/type = unsigned_short check/range = 19200, 115200 @@ -400,28 +552,97 @@ description = Override the default communication speed known for the selected mo ;curses ;================================================== -[/curses/foreground] +[curses] +default = "" +array = #0 + +[curses/#] +type = struct +check/type = any +default = "" +gen/struct/type = CursesDriverConfig +gen/struct/alloc = 0 +description = Configuration for a curses driver. + +[curses/#/file] +type = string +default = "curses" +description = name of the shared library to load (without prefix and extension) + +[curses/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[curses/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[curses/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[curses/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[curses/#/foreground] type = enum check/type = enum -check/enum = red, black, green, yellow, blue, magenta, cyan, white +check/enum = #7 +check/enum/#0 = red +check/enum/#1 = black +check/enum/#2 = green +check/enum/#3 = yellow +check/enum/#4 = blue +check/enum/#5 = magenta +check/enum/#6 = cyan +check/enum/#7 = white +gen/enum/type = CursesColor default = blue description = Color settings -[/curses/background] +[curses/#/background] type = enum check/type = enum -check/enum = red, black, green, yellow, blue, magenta, cyan, white +check/enum = #7 +check/enum/#0 = red +check/enum/#1 = black +check/enum/#2 = green +check/enum/#3 = yellow +check/enum/#4 = blue +check/enum/#5 = magenta +check/enum/#6 = cyan +check/enum/#7 = white +gen/enum/type = CursesColor default = cyan description = background color when "backlight" is off -[/curses/backlight] +[curses/#/backlight] type = enum check/type = enum -check/enum = red, black, green, yellow, blue, magenta, cyan, white +check/enum = #7 +check/enum/#0 = red +check/enum/#1 = black +check/enum/#2 = green +check/enum/#3 = yellow +check/enum/#4 = blue +check/enum/#5 = magenta +check/enum/#6 = cyan +check/enum/#7 = white +gen/enum/type = CursesColor default = red description = background color when "backlight" is on -[/curses/size] +[curses/#/size] type = string check/type = string check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) @@ -430,7 +651,7 @@ check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 4 default = 20x4 description = display size -[/curses/topleftx] +[curses/#/topleftx] type = unsigned_short check/type = unsigned_short check/validation = ([1-9]+[0-9]*) @@ -439,7 +660,7 @@ check/validation/message = Must be a positive number default = 7 description = What position (X,Y) to start the left top corner at... -[/curses/toplefty] +[curses/#/toplefty] type = unsigned_short check/type = unsigned_short check/validation = ([1-9]+[0-9]*) @@ -448,35 +669,81 @@ check/validation/message = Must be a positive number default = 7 description = What position (X,Y) to start the left top corner at... -[/curses/useacs] +[curses/#/useacs] type = boolean check/type = boolean -default = no +default = 0 ; TODO: fix description = use ASC symbols for icons & bars -[/curses/drawborder] +[curses/#/drawborder] type = boolean check/type = boolean -default = yes +default = 1 ; TODO: fix description = draw Border ;CwLnx ;================================================== -[/cwlnx/model] +[cwlnx] +default = "" +array = #0 + +[cwlnx/#] +type = struct +check/type = any +default = "" +gen/struct/type = CwLnxDriverConfig +gen/struct/alloc = 0 +description = Configuration for a CwLnx driver. + +[cwlnx/#/file] +type = string +default = "CwLnx" +description = name of the shared library to load (without prefix and extension) + +[cwlnx/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[cwlnx/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[cwlnx/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[cwlnx/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[cwlnx/#/model] type = enum check/type = enum -check/enum = 12232, 12832, 1602 +check/enum = #2 +check/enum/#0 = 12232 +check/enum/#1 = 12832 +check/enum/#2 = 1602 +gen/enum/type = CwLnxModel default = 12232 description = Select the LCD model -[/cwlnx/device] +[cwlnx/#/device] type = string check/type = string ;check/path = default = /dev/lcd description = Select the output device to use -[/cwlnx/size] +[cwlnx/#/size] type = string check/type = string check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) @@ -485,23 +752,20 @@ check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 4 default = 20x4 description = "Select the LCD size. Default depends on model: \n12232: 20x4 \n12832: 21x4 \n1602: 16x2" -[/cwlnx/speed] +[cwlnx/#/speed] type = unsigned_short check/type = unsigned_short check/range = 9600, 19200 default = 19200 description = Set the communication speed -[/cwlnx/reboot] -default = no - -[/cwlnx/keypad] +[cwlnx/#/keypad] type = boolean check/type = boolean -default = yes +default = 1 ; TODO: fix description = If you have a keypad connected. Keypad layout is currently not configureable from the config file. -[/cwlnx/keymap_a] +[cwlnx/#/keymap_a] type = string check/type = string default = Up @@ -513,7 +777,7 @@ You can leave those unchanged if you have a standard keypad. You can change it if you want to report other keystrings or have a non standard keypad." -[/cwlnx/keymap_b] +[cwlnx/#/keymap_b] type = string check/type = string default = Down @@ -525,7 +789,7 @@ You can leave those unchanged if you have a standard keypad. You can change it if you want to report other keystrings or have a non standard keypad." -[/cwlnx/keymap_c] +[cwlnx/#/keymap_c] type = string check/type = string default = Left @@ -537,7 +801,7 @@ You can leave those unchanged if you have a standard keypad. You can change it if you want to report other keystrings or have a non standard keypad." -[/cwlnx/keymap_d] +[cwlnx/#/keymap_d] type = string check/type = string default = Right @@ -549,7 +813,7 @@ You can leave those unchanged if you have a standard keypad. You can change it if you want to report other keystrings or have a non standard keypad." -[/cwlnx/keymap_e] +[cwlnx/#/keymap_e] type = string check/type = string default = Enter @@ -561,7 +825,7 @@ You can leave those unchanged if you have a standard keypad. You can change it if you want to report other keystrings or have a non standard keypad." -[/cwlnx/keymap_f] +[cwlnx/#/keymap_f] type = string check/type = string default = Escape @@ -574,38 +838,114 @@ You can change it if you want to report other keystrings or have a non standard keypad." -[/cwlnx/keypad_test_mode] +[cwlnx/#/keypad_test_mode] type = boolean check/type = boolean -default = no +default = 0 ; TODO: fix description = permits one to test keypad assignment ;ea65 ;================================================== -[/ea65/brightness] +[ea65] +default = "" +array = #0 + +[ea65/#] +type = struct +check/type = any +default = "" +gen/struct/type = Ea65DriverConfig +gen/struct/alloc = 0 +description = Configuration for a ea65 driver. + +[ea65/#/file] +type = string +default = "ea65" +description = name of the shared library to load (without prefix and extension) + +[ea65/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[ea65/#/brightness] +type = unsigned_short +check/type = unsigned_short default = 500 +check/range = 0-1000 description = "As the VFD is self luminescent we don't have a backlight But we can use the backlight functions to control the front LEDs Brightness 0 to 299 -> LEDs off Brightness 300 to 699 -> LEDs half bright Brightness 700 to 1000 -> LEDs full bright" -[/ea65/offbrightness] +[ea65/#/offbrightness] type = unsigned_short check/type = unsigned_short default = 0 +check/range = 0-1000 description = OffBrightness is the the value used for the 'backlight off' state +[ea65/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + ;EyeboxOne ;================================================== -[/eyeboxone/device] +[eyeboxone] +default = "" +array = #0 + +[eyeboxone/#] +type = struct +check/type = any +default = "" +gen/struct/type = EyeboxOneDriverConfig +gen/struct/alloc = 0 +description = Configuration for a EyeboxOne driver. + +[eyeboxone/#/file] +type = string +default = "EyeboxOne" +description = name of the shared library to load (without prefix and extension) + +[eyeboxone/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[eyeboxone/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[eyeboxone/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[eyeboxone/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[eyeboxone/#/device] type = string check/type = string ;check/path = default = /dev/ttyS1 description = Select the output device to use -[/eyeboxone/size] +[eyeboxone/#/size] type = string check/type = string check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) @@ -614,69 +954,130 @@ check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 4 default = 20x4 description = Set the display size -[/eyeboxone/backlight] +[eyeboxone/#/backlight] type = boolean check/type = boolean -default = yes +default = 1 ; TODO: fix description = Switch on the backlight? -[/eyeboxone/cursor] +[eyeboxone/#/cursor] type = boolean check/type = boolean -default = no +default = 0 ; TODO: fix description = Switch on the cursor? -[/eyeboxone/speed] +[eyeboxone/#/speed] type = unsigned_short check/type = unsigned_short check/range = 1200, 2400, 9600, 19200 default = 19200 description = Set the communication speed -[/eyeboxone/leftkey] +[eyeboxone/#/leftkey] type = string check/type = string default = D description = "Enter Key is a \r character, so it's hardcoded in the driver" -[/eyeboxone/rightkey] +[eyeboxone/#/rightkey] type = string check/type = string default = C description = "Enter Key is a \r character, so it's hardcoded in the driver" -[/eyeboxone/upkey] +[eyeboxone/#/upkey] type = string check/type = string default = A description = "Enter Key is a \r character, so it's hardcoded in the driver" -[/eyeboxone/downkey] +[eyeboxone/#/downkey] type = string check/type = string default = B description = "Enter Key is a \r character, so it's hardcoded in the driver" -[/eyeboxone/escapekey] +[eyeboxone/#/escapekey] type = string check/type = string default = P description = "Enter Key is a \r character, so it's hardcoded in the driver" -[/eyeboxone/keypad_test_mode] +[eyeboxone/#/keypad_test_mode] type = boolean check/type = boolean -default = no +default = 0 ; TODO: fix description = "You can find out which key of your display sends which character by setting keypad_test_mode to yes and running LCDd. LCDd will output all characters it receives. Afterwards you can modify the settings above and set keypad_set_mode to no again." +;futaba +;================================================== +[futaba] +default = "" +array = #0 + +[futaba/#] +type = struct +check/type = any +default = "" +gen/struct/type = FutabaDriverConfig +gen/struct/alloc = 0 +description = Configuration for a futaba driver. + +[futaba/#/file] +type = string +default = "futaba" +description = name of the shared library to load (without prefix and extension) + ;g15 ;================================================== -[/g15/size] +[g15] +default = "" +array = #0 + +[g15/#] +type = struct +check/type = any +default = "" +gen/struct/type = G15DriverConfig +gen/struct/alloc = 0 +description = Configuration for a g15 driver. + +[g15/#/file] +type = string +default = "g15" +description = name of the shared library to load (without prefix and extension) + +[g15/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[g15/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[g15/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[g15/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[g15/#/size] type = string check/type = string check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) @@ -687,14 +1088,64 @@ description = Display size (currently unused) ;glcd ;================================================== -[/glcd/connectiontype] +[glcd] +default = "" +array = #0 + +[glcd/#] +type = struct +check/type = any +default = "" +gen/struct/type = GlcdDriverConfig +gen/struct/alloc = 0 +description = Configuration for a glcd driver. + +[glcd/#/file] +type = string +default = "glcd" +description = name of the shared library to load (without prefix and extension) + +[glcd/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 600 +check/range = 0-1000 +description = Set the initial contrast + +[glcd/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 800 +check/range = 0-1000 + +[glcd/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 100 +check/range = 0-1000 + +[glcd/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[glcd/#/connectiontype] type = enum check/type = enum -check/enum = t6963, png, serdisplib, glcd2usb, x11, picolcdgfx, xyz +check/enum = #6 +check/enum/#0 = t6963 +check/enum/#1 = png +check/enum/#2 = serdisplib +check/enum/#3 = glcd2usb +check/enum/#4 = x11 +check/enum/#5 = picolcdgfx +check/enum/#6 = xyz +gen/enum/type = GlcdConnectionType default = t6963 description = Select what type of connection. See documentation for types. -[/glcd/size] +[glcd/#/size] type = string check/type = string check/validation = (640|[1-9]|[1-9][0-9]|[1-5][0-9][0-9]|6[0-3][0-9])x(480|[1-9]|[1-9][0-9]|[1-3][0-9][0-9]|4[0-7][0-9]) @@ -703,7 +1154,7 @@ check/validation/message = Not a valid size declaration. legal: 1x1 - 640x480 default = 128x64 description = Width and height of the display in pixel. The supported sizes may depend on the ConnectionType -[/glcd/cellsize] +[glcd/#/cellsize] type = string check/type = string check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) @@ -714,14 +1165,14 @@ description = Width and height of a character cell in pixels. This value is only the driver has been compiled with FreeType and it is enabled. Otherwise the\ default 6x8 cell is used. -[/glcd/useft2] +[glcd/#/useft2] type = boolean check/type = boolean -default = yes +default = 1 ; TODO: fix description = If LCDproc has been compiled with FreeType 2 support this option can be used\ to turn if off intentionally. -[/glcd/normal_font] +[glcd/#/normal_font] type = string check/type = string ;check/path = @@ -730,81 +1181,70 @@ description = Path to font file to use for FreeType rendering. This font must be and should contain some special Unicode characters like arrows (Andale Mono\ is recommended and can be fetched at http://corefonts.sf.net). -[/glcd/fonthasicons] +[glcd/#/fonthasicons] type = boolean check/type = boolean -default = yes +default = 1 ; TODO: fix description = Some fonts miss the Unicode characters used to represent icons. In this case\ the built-in 5x8 font can used if this option is turned off. -[/glcd/contrast] -default = 600 - -[/glcd/brightness] -default = 800 - -[/glcd/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 100 - -[/glcd/keyrepeatdelay] +[glcd/#/keyrepeatdelay] type = unsigned_short check/type = unsigned_short check/range = 0-3000 default = 500 description = Time (ms) from first key report to first repeat. Set to 0 to disable repeated key reports. -[/glcd/keymap_a] +[glcd/#/keymap_a] type = string check/type = string default = Up description = "Assign key strings to keys. There may be up to 16 keys numbered 'A' to 'Z'. By default keys 'A' to 'F' are assigned Up, Down, Left, Right, Enter, Escape." -[/glcd/keymap_b] +[glcd/#/keymap_b] type = string check/type = string default = Down description = "Assign key strings to keys. There may be up to 16 keys numbered 'A' to 'Z'. By default keys 'A' to 'F' are assigned Up, Down, Left, Right, Enter, Escape." -[/glcd/keymap_c] +[glcd/#/keymap_c] type = string check/type = string default = Left description = "Assign key strings to keys. There may be up to 16 keys numbered 'A' to 'Z'. By default keys 'A' to 'F' are assigned Up, Down, Left, Right, Enter, Escape." -[/glcd/keymap_d] +[glcd/#/keymap_d] type = string check/type = string default = Right description = "Assign key strings to keys. There may be up to 16 keys numbered 'A' to 'Z'. By default keys 'A' to 'F' are assigned Up, Down, Left, Right, Enter, Escape." -[/glcd/keymap_e] +[glcd/#/keymap_e] type = string check/type = string default = Enter description = "Assign key strings to keys. There may be up to 16 keys numbered 'A' to 'Z'. By default keys 'A' to 'F' are assigned Up, Down, Left, Right, Enter, Escape." -[/glcd/keymap_f] +[glcd/#/keymap_f] type = string check/type = string default = Escape description = "Assign key strings to keys. There may be up to 16 keys numbered 'A' to 'Z'. By default keys 'A' to 'F' are assigned Up, Down, Left, Right, Enter, Escape." -[/glcd/keyrepeatinterval] +[glcd/#/keyrepeatinterval] type = unsigned_short check/type = unsigned_short check/range = 0-3000 default = 500 description = Time (ms) between repeated key reports. Ignored if KeyRepeatDelay is disabled (set to zero). -[/glcd/port] +[glcd/#/port] type = string check/type = string check/validation = 0x([2-3][0-9A-F]{2}|400) @@ -813,27 +1253,27 @@ check/validation/message = Not a valid port declaration. legal: 0x200 - 0x400 default = 0x378 description = Parallel port to use -[/glcd/bidirectional] +[glcd/#/bidirectional] type = boolean check/type = boolean -default = yes +default = 1 ; TODO: fix description = Use LPT port in bi-directional mode. This should work on most LPT port\ and is required for proper timing! -[/glcd/delaybus] +[glcd/#/delaybus] type = boolean check/type = boolean -default = no +default = 0 ; TODO: fix description = Insert additional delays into reads / writes. -[/glcd/serdisp_name] +[glcd/#/serdisp_name] type = string check/type = string default = t6963 description = Name of the underlying serdisplib driver, e.g. ctinclud. See serdisplib documentation for details. -[/glcd/serdisp_device] +[glcd/#/serdisp_device] type = string check/type = string ;check/path = @@ -843,7 +1283,8 @@ parport:/dev/parport0 or USB:07c0/1501 ;TODO: Are quotes really required now when switching to libelektra? -[/glcd/serdisp_options] + +[glcd/#/serdisp_options] type = string check/type = string default = "INVERT=1" @@ -853,7 +1294,7 @@ always set based on the Size configured above! By default, no options are set. Important: The value must be quoted as it contains equal signs!" -[/glcd/x11_pixelsize] +[glcd/#/x11_pixelsize] type = string check/type = string check/validation = \d+\+\d+ @@ -865,7 +1306,7 @@ description = "Each LCD dot is drawn in the X window as a filled rectangle of th would draw a 3x3 filled rectangle with a gap of 1 pixel to the right and bottom, effectively using a 4x4 area of the window. Default is 3+1." -[/glcd/x11_pixelcolor] +[glcd/#/x11_pixelcolor] type = string check/type = string check/validation = 0x[0-9A-F]{6} @@ -874,7 +1315,7 @@ check/validation/message = Colors are in RRGGBB format prefixed with "0x" default = 0x000000 description = The color of each dot at full contrast. -[/glcd/x11_backlightcolor] +[glcd/#/x11_backlightcolor] type = string check/type = string check/validation = 0x[0-9A-F]{6} @@ -883,7 +1324,7 @@ check/validation/message = Colors are in RRGGBB format prefixed with "0x" default = 0x80FF80 description = The color of the backlight as full brightness. -[/glcd/x11_border] +[glcd/#/x11_border] type = unsigned_long check/type = unsigned_long check/validation = ^([1-9]\d*|0)$ @@ -892,13 +1333,13 @@ check/validation/message = Must be a positive number default = 20 description = Adds a border (empty space) around the LCD portion of X11 window. -[/glcd/x11_inverted] +[glcd/#/x11_inverted] type = boolean check/type = boolean -default = no +default = 0 ; TODO: fix description = Inverts the pixels. -[/glcd/picolcdgfx_keytimeout] +[glcd/#/picolcdgfx_keytimeout] type = string check/type = string check/validation = ([1-9][0-9]*) @@ -907,15 +1348,57 @@ check/validation/message = Number must be any positive integer >0 default = 125 description = Time in ms for usb_read to wait on a key press. -[/glcd/picolcdgfx_inverted] +[glcd/#/picolcdgfx_inverted] type = boolean check/type = boolean -default = no +default = 0 ; TODO: fix description = Inverts the pixels. ;glcdlib ;================================================== -[/glcdlib/driver] +[glcdlib] +default = "" +array = #0 + +[glcdlib/#] +type = struct +check/type = any +default = "" +gen/struct/type = GlcdlibDriverConfig +gen/struct/alloc = 0 +description = Configuration for a glcdlib driver. + +[glcdlib/#/file] +type = string +default = "glcdlib" +description = name of the shared library to load (without prefix and extension) + +[glcdlib/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 50 +check/range = 0-100 +description = Set the initial contrast + +[glcdlib/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 50 +check/range = 0-100 + +[glcdlib/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[glcdlib/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[glcdlib/#/driver] type = string check/type = string default = image @@ -927,21 +1410,21 @@ Specify which graphical display supported by graphlcd-base to use. gu256x64C-3xx0, hd61830, image, ks0108, noritake800, sed1330, sed1520, serdisp, simlcd, t6963c " -[/glcdlib/CharEncoding] +[glcdlib/#/CharEncoding] type = string check/type = string default = iso8859-2 description = "character encoding to use" -[/glcdlib/useft2] +[glcdlib/#/useft2] type = boolean check/type = boolean -default = yes +default = 1 ; TODO: fix description = "no=use graphlcd bitmap fonts (they have only one size / font file) yes=use fonts supported by FreeType2 (needs Freetype2 support in libglcdprocdriver and its dependants)" -[/glcdlib/textresolution] +[glcdlib/#/textresolution] type = string check/type = string check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) @@ -953,14 +1436,14 @@ description = "Text resolution in fixed width characters. and the minimum available font face size in pixels, then 'DebugBorder' will automatically be turned on)" -[/glcdlib/fontfile] +[glcdlib/#/fontfile] type = string check/type = string ;check/path = default = /usr/share/fonts/corefonts/courbd.ttf description = "path to font file to use" -[/glcdlib/minfontfacesize] +[glcdlib/#/minfontfacesize] type = string check/type = string check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) @@ -969,43 +1452,37 @@ check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 4 default = 7x12 description = "path to font file to use" -[/glcdlib/contrast] -default = 50 - -[/glcdlib/brightness] -default = 50 - -[/glcdlib/backlight] +[glcdlib/#/backlight] type = boolean check/type = boolean -default = no +default = 0 ; TODO: fix -[/glcdlib/upsidedown] +[glcdlib/#/upsidedown] type = boolean check/type = boolean -default = no +default = 0 ; TODO: fix -[/glcdlib/invert] +[glcdlib/#/invert] type = boolean check/type = boolean -default = no +default = 0 ; TODO: fix -[/glcdlib/showdebugframe] +[glcdlib/#/showdebugframe] type = boolean check/type = boolean -default = no +default = 0 ; TODO: fix -[/glcdlib/showbigborder] +[glcdlib/#/showbigborder] type = boolean check/type = boolean -default = no +default = 0 ; TODO: fix -[/glcdlib/showthinborder] +[glcdlib/#/showthinborder] type = boolean check/type = boolean -default = yes +default = 1 ; TODO: fix -[/glcdlib/pixelshiftx] +[glcdlib/#/pixelshiftx] type = short check/type = short check/validation = ([0-9]+) @@ -1013,7 +1490,7 @@ check/validation/match = LINE check/validation/message = Must be a positive number default = 0 -[/glcdlib/pixelshifty] +[glcdlib/#/pixelshifty] type = short check/type = short check/validation = ([0-9]+) @@ -1023,17 +1500,56 @@ default = 2 ;glk ;================================================== -[/glk/device] +[glk] +default = "" +array = #0 + +[glk/#] +type = struct +check/type = any +default = "" +gen/struct/type = GlkDriverConfig +gen/struct/alloc = 0 +description = Configuration for a glk driver. + +[glk/#/file] +type = string +default = "glk" +description = name of the shared library to load (without prefix and extension) + +[glk/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 500 +check/range = 0-1000 +description = Set the initial contrast + +[glk/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[glk/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[glk/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[glk/#/device] type = string check/type = string ;check/path = default = /dev/lcd description = "select the serial device to use" -[/glk/contrast] -default = 500 - -[/glk/speed] +[glk/#/speed] type = unsigned_short check/type = unsigned_short check/range = 9600, 19200, 38400, 57600, 115200 @@ -1042,21 +1558,93 @@ description = set the serial port speed ;hd44780 ;================================================== -[/hd44780/connectiontype] +[hd44780] +default = "" +array = #0 + +[hd44780/#] +type = struct +check/type = any +default = "" +gen/struct/type = Hd44780DriverConfig +gen/struct/alloc = 0 +description = Configuration for a hd44780 driver. + +[hd44780/#/file] +type = string +default = "hd44780" +description = name of the shared library to load (without prefix and extension) + +[hd44780/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 800 +check/range = 0-1000 +description = Set the initial contrast + +[hd44780/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 800 +check/range = 0-1000 + +[hd44780/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 300 +check/range = 0-1000 + +[hd44780/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[hd44780/#/connectiontype] type = enum check/type = enum -check/enum = 4bit, 8bit, winamp, lcm162, serialLpt, picanlcd, lcdserializer, \ -los-panel, vdr-lcd, vdr-wakeup, ezio, pertelian, lis2, mplay, usblcd, bwctusb, \ -lcd2usb, usbtiny, uss720, USB-4-all, ftdi, i2c, piplate, spi, pifacecad, ethlcd, \ -raspberrypi, gpio +check/enum = #_27 +check/enum/#0 = 4bit +check/enum/#1 = 8bit +check/enum/#2 = winamp +check/enum/#3 = lcm162 +check/enum/#4 = serialLpt +check/enum/#5 = picanlcd +check/enum/#6 = lcdserializer +check/enum/#7 = los-panel +check/enum/#8 = vdr-lcd +check/enum/#9 = vdr-wakeup +check/enum/#_10 = ezio +check/enum/#_11 = pertelian +check/enum/#_12 = lis2 +check/enum/#_13 = mplay +check/enum/#_14 = usblcd +check/enum/#_15 = bwctusb +check/enum/#_16 = lcd2usb +check/enum/#_17 = usbtiny +check/enum/#_18 = uss720 +check/enum/#_19 = USB-4-all +check/enum/#_20 = ftdi +check/enum/#_21 = i2c +check/enum/#_22 = piplate +check/enum/#_23 = spi +check/enum/#_24 = pifacecad +check/enum/#_25 = ethlcd +check/enum/#_26 = raspberrypi +check/enum/#_27 = gpio +gen/enum/type = HD44780ConnectionType default = 4bit description = "Select what type of connection. See documentation for available types: https://github.com/lcdproc/lcdproc/blob/master/docs/lcdproc-user/drivers/hd44780.docbook" -[/hd44780/model] +[hd44780/#/model] type = enum check/type = enum -check/enum = standard, extended, winstar_oled, pt6314_vfd +check/enum = #3 +check/enum/#0 = standard +check/enum/#1 = extended +check/enum/#2 = winstar_oled +check/enum/#3 = pt6314_vfd default = standard description = "Select model if have non-standard one which require extra initialization or handling or just want extra features it offers. @@ -1069,7 +1657,7 @@ description = "Select model if have non-standard one which require extra initial - pt6314_vfd: allows handling brightness on PTC's PT6314 VFDs This option should be independent of connection type." -[/hd44780/port] +[hd44780/#/port] type = string check/type = string check/validation = 0x[0-9A-F]{3} @@ -1079,49 +1667,41 @@ default = 0x378 description = I/O address of the LPT port. Usual values are: 0x278, 0x378 and 0x3BC.\ For I2C connections this sets the slave address (usually 0x20). -[/hd44780/device] +[hd44780/#/device] type = string check/type = string ;check/path = default = /dev/lcd description = "Device of the serial, I2C, or SPI interface" -[/hd44780/speed] +[hd44780/#/speed] type = unsigned_long check/type = unsigned_long default = 0 description = "Bitrate of the serial port (0 for interface default)" -[/hd44780/keypad] +[hd44780/#/keypad] type = boolean check/type = boolean -default = no +default = 0 ; TODO: fix description = "If you have a keypad connected. You may also need to configure the keypad layout further on in this file." -[/hd44780/contrast] -default = 800 - -[/hd44780/brightness] -default = 800 - -[/hd44780/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 300 - -[/hd44780/backlight] +[hd44780/#/backlight] type = enum check/type = enum -check/enum = none, external, internal, internalCmds -default = yes +check/enum = #8 +check/enum/#0 = none +check/enum/#1 = external +check/enum/#2 = internal +check/enum/#3 = internalCmds +gen/enum/type = HD44780Backlight +default = none description = "Specify if you have a switchable backlight and if yes, can select method for turning it on/off: # -- none - no switchable backlight is available. For compability also boolean - 0, n, no, off and false are aliases. +- none - no switchable backlight is available. - external - use external pin or any other method defined with ConnectionType backlight - handling. For backward compability also this value is chosen for boolean - TRUE values: 1, y, yes, on and true. + handling. - internal - means that backlight is handled using internal commands according to selected display model (with Model option). Depending on model, Brightness and OffBrightness options can be taken into account. @@ -1133,7 +1713,7 @@ You can provide multiple occurences of this option to use more than one method. Default is model specific: Winstar OLED and PT6314 VFD enables internal backlight mode, for others it is set to none." -[/hd44780/backlightcmdon] +[hd44780/#/backlightcmdon] type = string check/type = string check/validation = 0x[0-9A-F]{4} @@ -1148,7 +1728,7 @@ they must be set accordingly to not disrupt display state. If for example 'FUNCT is used for this purpose, bits of interface length (4-bit / 8-bit) must be set according to selected ConnectionType." -[/hd44780/backlightcmdoff] +[hd44780/#/backlightcmdoff] type = string check/type = string check/validation = 0x[0-9A-F]{4} @@ -1158,21 +1738,21 @@ default = 0x1234 description = "Commands for disabling internal backlight for use with Backlight=internalCmds. Up to 4 bytes can be encoded, as integer number in big-endian order." -[/hd44780/outputport] +[hd44780/#/outputport] type = boolean check/type = boolean -default = no +default = 0 ; TODO: fix description = If you have the additional output port ("bargraph") and you want to\ be able to control it with the lcdproc OUTPUT command -[/hd44780/lastline] +[hd44780/#/lastline] type = boolean check/type = boolean -default = yes +default = 1 ; TODO: fix description = "Specifies if the last line is pixel addressable (yes) or it controls an underline effect (no)." -[/hd44780/size] +[hd44780/#/size] type = string check/type = string check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) @@ -1182,19 +1762,20 @@ default = 20x4 description = Specifies the size of the LCD.\ In case of multiple combined displays, this should be the total size. -[/hd44780/vspan] +[hd44780/#/vspan] type = string check/type = string -check/validation = ^[1-9][0-9]*(,[1-9][0-9]*)*$ +default = "" +check/validation = ^([1-9][0-9]*(,[1-9][0-9]*)*)?$ check/validation/match = LINE check/validation/message = Declarations must look like this: 2,2 or 2,2,1 description = "For multiple combined displays: how many lines does each display have. Vspan=2,2 means both displays have 2 lines." -[/hd44780/extendedmode] +[hd44780/#/extendedmode] type = boolean check/type = boolean -default = no +default = 0 ; TODO: fix description = "If you have an HD66712, a KS0073 or another controller with 'extended mode', set this flag to get into 4-line mode. On displays with just two lines, do not set this flag. @@ -1203,7 +1784,7 @@ AND 4 lines cannot be mixed for those connection types that support more than one display! NOTE: This option is deprecated in favour of choosing Model=extended option." -[/hd44780/lineaddress] +[hd44780/#/lineaddress] type = string check/type = string check/validation = 0x([1-9]+[0-9]*) @@ -1213,20 +1794,32 @@ default = 0x20 description = In extended mode, on some controllers like the ST7036 (in 3 line mode)\ the next line in DDRAM won`t start 0x20 higher. -[/hd44780/charmap] +[hd44780/#/charmap] type = enum check/type = enum -check/enum = hd44780_default, hd44780_euro, ea_ks0073,\ -sed1278f_0b, hd44780_koi8_r, hd44780_cp1251, hd44780_8859_5, upd16314,\ -weh001602a_1 +check/enum = #7 +check/enum/#0 = hd44780_default +check/enum/#1 = hd44780_euro +check/enum/#2 = ea_ks0073 +check/enum/#3 = sed1278f_0b +check/enum/#4 = hd44780_koi8_r +check/enum/#5 = hd44780_cp1251 +check/enum/#6 = hd44780_8859_5 +check/enum/#7 = upd16314 +gen/enum/type = HD44780Charmap default = hd44780_default description = "Character map to to map ISO-8859-1 to the LCD's character set. (hd44780_koi8_r, hd44780_cp1251, hd44780_8859_5, upd16314 and weh001602a_1 are possible if compiled with additional charmaps)" -[/hd44780/fontbank] +[hd44780/#/fontbank] type = unsigned_short check/type = unsigned_short -check/enum = 0, 1, 2, 3 +check/enum = #3 +check/enum/#0 = 0 +check/enum/#1 = 1 +check/enum/#2 = 2 +check/enum/#3 = 3 +gen/enum/type = HD44780Fontbank default = 0 description = "Font bank to be used for some displays such as the WINSTAR WEH001602A 0: English/Japanese (default) @@ -1234,7 +1827,7 @@ description = "Font bank to be used for some displays such as the WINSTAR WEH001 2: English/Rusian 3: Western Europe II" -[/hd44780/delaymult] +[hd44780/#/delaymult] type = unsigned_short check/type = unsigned_short check/range = 1, 2, 4, 8, 16 @@ -1243,7 +1836,7 @@ description = "If your display is slow and cannot keep up with the flow of data LCDd, garbage can appear on the LCDd. Set this delay factor to 2 or 4 to increase the delays." -[/hd44780/keepalivedisplay] +[hd44780/#/keepalivedisplay] type = unsigned_short check/type = unsigned_short check/range = 0-10 @@ -1252,7 +1845,7 @@ description = "Some displays (e.g. vdr-wakeup) need a message from the driver to is still alive. When set to a value bigger then null the character in the upper left corner is updated every seconds." -[/hd44780/refreshdisplay] +[hd44780/#/refreshdisplay] type = unsigned_short check/type = unsigned_short check/range = 0-20 @@ -1261,14 +1854,14 @@ description = "If you experience occasional garbage on your display you can use option as workaround. If set to a value bigger than null it forces a full screen refresh seconds." -[/hd44780/delaybus] +[hd44780/#/delaybus] type = boolean check/type = boolean -default = true +default = 1 ; TODO: fix description = "You can reduce the inserted delays by setting this to false. On fast PCs it is possible your LCD does not respond correctly." -[/hd44780/keymatrix_4_1] +[hd44780/#/keymatrix_4_1] type = string check/type = string default = Enter @@ -1279,7 +1872,7 @@ key 4 the string 'Enter', use: X and Y coordinates of the key: KeyMatrix_1_3=Enter" -[/hd44780/keymatrix_4_2] +[hd44780/#/keymatrix_4_2] type = string check/type = string default = Up @@ -1290,7 +1883,7 @@ key 4 the string 'Enter', use: X and Y coordinates of the key: KeyMatrix_1_3=Enter" -[/hd44780/keymatrix_4_3] +[hd44780/#/keymatrix_4_3] type = string check/type = string default = Down @@ -1301,7 +1894,7 @@ key 4 the string 'Enter', use: X and Y coordinates of the key: KeyMatrix_1_3=Enter" -[/hd44780/keymatrix_4_4] +[hd44780/#/keymatrix_4_4] type = string check/type = string default = Escape @@ -1315,14 +1908,56 @@ X and Y coordinates of the key: ;icp_a106 ;================================================== -[/icp_a106/device] +[icp_a106] +default = "" +array = #0 + +[icp_a106/#] +type = struct +check/type = any +default = "" +gen/struct/type = Icp_a106DriverConfig +gen/struct/alloc = 0 +description = Configuration for a icp_a106 driver. + +[icp_a106/#/file] +type = string +default = "icp_a106" +description = name of the shared library to load (without prefix and extension) + +[icp_a106/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[icp_a106/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[icp_a106/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[icp_a106/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[icp_a106/#/device] type = string check/type = string ;check/path = default = /dev/lcd description = "Device of the serial, I2C, or SPI interface" -[/icp_a106/size] +[icp_a106/#/size] type = string check/type = string check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) @@ -1333,7 +1968,49 @@ description = Display dimensions ;IOWarrior ;================================================== -[/iowarrior/size] +[iowarrior] +default = "" +array = #0 + +[iowarrior/#] +type = struct +check/type = any +default = "" +gen/struct/type = IOWarriorDriverConfig +gen/struct/alloc = 0 +description = Configuration for a IOWarrior driver. + +[iowarrior/#/file] +type = string +default = "IOWarrior" +description = name of the shared library to load (without prefix and extension) + +[iowarrior/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[iowarrior/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[iowarrior/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[iowarrior/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[iowarrior/#/size] type = string check/type = string check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) @@ -1342,37 +2019,79 @@ check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 4 default = 20x4 description = Display dimensions -[/iowarrior/serialnumber] -type = any +[iowarrior/#/serialnumber] +type = string check/type = any default = 00000674 description = serial number. Must be exactly as listed by usbview\ (if not given, the 1st IOWarrior found gets used) -[/iowarrior/extendedmode] +[iowarrior/#/extendedmode] type = boolean check/type = boolean -default = no +default = 0 ; TODO: fix description = "If you have an HD66712, a KS0073 or another 'almost HD44780-compatible', set this flag to get into extended mode (4-line linear)." -[/iowarrior/lastline] +[iowarrior/#/lastline] type = boolean check/type = boolean -default = yes +default = 1 ; TODO: fix description = "Specifies if the last line is pixel addressable (yes) or it controls an underline effect (no)." ;imon ;================================================== -[/imon/device] +[imon] +default = "" +array = #0 + +[imon/#] +type = struct +check/type = any +default = "" +gen/struct/type = ImonDriverConfig +gen/struct/alloc = 0 +description = Configuration for a imon driver. + +[imon/#/file] +type = string +default = "imon" +description = name of the shared library to load (without prefix and extension) + +[imon/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[imon/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[imon/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[imon/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[imon/#/device] type = string check/type = string ;check/path = default = /dev/lcd0 description = "select the device to use" -[/imon/size] +[imon/#/size] type = string check/type = string check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) @@ -1381,12 +2100,17 @@ check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 4 default = 16x2 description = Display dimensions -[/imon/charmap] +[imon/#/charmap] type = enum check/type = enum -check/enum = hd44780_euro, upd16314, hd44780_koi8_r,\ -hd44780_cp1251, hd44780_8859_5, upd16314, hd44780_koi8_r,\ -hd44780_cp1251, hd44780_8859_5, none +check/enum = #5 +check/enum/#0 = hd44780_euro +check/enum/#1 = upd16314 +check/enum/#2 = hd44780_koi8_r +check/enum/#3 = hd44780_cp1251 +check/enum/#4 = hd44780_8859_5 +check/enum/#5 = none +gen/enum/type = IMonCharmap default = none description = "Character map to to map ISO-8859-1 to the displays character set. (upd16314, hd44780_koi8_r, hd44780_cp1251, hd44780_8859_5 are possible if compiled with additional @@ -1394,36 +2118,82 @@ charmaps)" ;imonlcd ;================================================== -[/imonlcd/protocol] +[imonlcd] +default = "" +array = #0 + +[imonlcd/#] +type = struct +check/type = any +default = "" +gen/struct/type = ImonlcdDriverConfig +gen/struct/alloc = 0 +description = Configuration for a imonlcd driver. + +[imonlcd/#/file] type = string -check/type = string -check/enum = 0, 1 -default = 0 -description = "Specify which iMon protocol should be used -Choose 0 for 15c2:ffdc device, -Choose 1 for 15c2:0038 device" +default = "imonlcd" +description = name of the shared library to load (without prefix and extension) -[/imonlcd/onexit] +[imonlcd/#/contrast] type = unsigned_short check/type = unsigned_short -check/range = 0-2 -default = 1 -description = "Set the exit behavior -0 means leave shutdown message, -1 means show the big clock, -2 means blank device" - -[/imonlcd/device] +default = 200 +check/range = 0-1000 +description = Set the initial contrast + +[imonlcd/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[imonlcd/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[imonlcd/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[imonlcd/#/protocol] +type = string +check/type = string +check/enum = #3 +check/enum/#0 = 15c2:ffdc +check/enum/#1 = 15c2:0038 +check/enum/#2 = 0 +gen/enum/#2/value = 0 +check/enum/#3 = 1 +gen/enum/#3/value = 1 +gen/enum/type = IMonLCDProtocol +default = 0 +description = "Specify which iMon protocol should be used +Choose 0 for 15c2:ffdc device, +Choose 1 for 15c2:0038 device" + +[imonlcd/#/onexit] +type = unsigned_short +check/type = unsigned_short +check/range = 0-2 +default = 1 +description = "Set the exit behavior +0 means leave shutdown message, +1 means show the big clock, +2 means blank device" + +[imonlcd/#/device] type = string check/type = string ;check/path = default = /dev/lcd0 description = "select the output device to use" -[/imonlcd/contrast] -default = 200 - -[/imonlcd/size] +[imonlcd/#/size] type = string check/type = string check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) @@ -1432,16 +2202,19 @@ check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 4 default = 96x16 description = Specify the size of the display in pixels -[/imonlcd/backlight] +[imonlcd/#/backlight] type = boolean check/type = boolean -default = on +default = 1 ; TODO: fix description = "Set the backlight state" -[/imonlcd/discmode] +[imonlcd/#/discmode] type = enum check/type = enum -check/enum = 0, 1 +check/enum = #1 +check/enum/#0 = 0 +check/enum/#1 = 1 +gen/enum/type = IMonLCDDiscMode default = 0 description = "Set the disc mode 0 => spin the 'slim' disc - two disc segments, @@ -1449,14 +2222,56 @@ description = "Set the disc mode ;IrMan ;================================================== -[/irman/device] +[irman] +default = "" +array = #0 + +[irman/#] +type = struct +check/type = any +default = "" +gen/struct/type = IrManDriverConfig +gen/struct/alloc = 0 +description = Configuration for a IrMan driver. + +[irman/#/file] +type = string +default = "IrMan" +description = name of the shared library to load (without prefix and extension) + +[irman/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[irman/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[irman/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[irman/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[irman/#/device] type = string check/type = string ;check/path = default = /dev/irman description = "select the device to use" -[/irman/config] +[irman/#/config] type = string check/type = string ;check/path = @@ -1465,19 +2280,61 @@ description = "Select the configuration file to use" ;irtrans ;================================================== -[/irtrans/backlight] +[irtrans] +default = "" +array = #0 + +[irtrans/#] +type = struct +check/type = any +default = "" +gen/struct/type = IrtransDriverConfig +gen/struct/alloc = 0 +description = Configuration for a irtrans driver. + +[irtrans/#/file] +type = string +default = "irtrans" +description = name of the shared library to load (without prefix and extension) + +[irtrans/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[irtrans/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[irtrans/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[irtrans/#/reboot] type = boolean check/type = boolean -default = no +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[irtrans/#/backlight] +type = boolean +check/type = boolean +default = 0 ; TODO: fix description = "Does the device have a backlight?" -[/irtrans/hostname] +[irtrans/#/hostname] type = string check/type = string default = localhost description = "IRTrans device to connect to" -[/irtrans/size] +[irtrans/#/size] type = string check/type = string check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) @@ -1488,44 +2345,86 @@ description = Specify the size of the display in pixels ;joy ;================================================== -[/joy/device] +[joy] +default = "" +array = #0 + +[joy/#] +type = struct +check/type = any +default = "" +gen/struct/type = JoyDriverConfig +gen/struct/alloc = 0 +description = Configuration for a joy driver. + +[joy/#/file] +type = string +default = "joy" +description = name of the shared library to load (without prefix and extension) + +[joy/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[joy/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[joy/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[joy/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[joy/#/device] type = string check/type = string ;check/path = default = /dev/js0 description = "Select the input device to use" -[/joy/map_axis1neg] +[joy/#/map_axis1neg] type = string check/type = string default = Left description = "set the axis map" -[/joy/map_axis1pos] +[joy/#/map_axis1pos] type = string check/type = string default = Right description = "set the axis map" -[/joy/map_axis2neg] +[joy/#/map_axis2neg] type = string check/type = string default = Up description = "set the axis map" -[/joy/map_axis2pos] +[joy/#/map_axis2pos] type = string check/type = string default = Down description = "set the axis map" -[/joy/map_button1] +[joy/#/map_button1] type = string check/type = string default = Enter description = "set the button map" -[/joy/map_button2] +[joy/#/map_button2] type = string check/type = string default = Escape @@ -1533,58 +2432,135 @@ description = "set the button map" ;lb216 ;================================================== -[/lb216/device] +[lb216] +default = "" +array = #0 + +[lb216/#] +type = struct +check/type = any +default = "" +gen/struct/type = Lb216DriverConfig +gen/struct/alloc = 0 +description = Configuration for a lb216 driver. + +[lb216/#/file] +type = string +default = "lb216" +description = name of the shared library to load (without prefix and extension) + +[lb216/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[lb216/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 200 +check/range = 0-255 + +[lb216/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[lb216/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[lb216/#/device] type = string check/type = string ;check/path = default = /dev/lcd description = "Select the input device to use" -[/lb216/brightness] -check/range = 0 - 255 -default = 200 - -[/lb216/speed] +[lb216/#/speed] type = unsigned_short check/type = unsigned_short check/range = 2400, 9600 default = 9600 description = Set the communication speed -[/lb216/reboot] -default = no - ;lcdm001 ;================================================== -[/lcdm001/device] +[lcdm001] +default = "" +array = #0 + +[lcdm001/#] +type = struct +check/type = any +default = "" +gen/struct/type = Lcdm001DriverConfig +gen/struct/alloc = 0 +description = Configuration for a lcdm001 driver. + +[lcdm001/#/file] +type = string +default = "lcdm001" +description = name of the shared library to load (without prefix and extension) + +[lcdm001/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[lcdm001/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[lcdm001/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[lcdm001/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[lcdm001/#/device] type = string check/type = string ;check/path = default = /dev/ttyS1 description = "select the device to use" -[/lcdm001/pausekey] +[lcdm001/#/pausekey] type = string check/type = string default = LeftKey description = "Normal Context: Pause/Continue Menu Context: Enter/select" -[/lcdm001/backkey] +[lcdm001/#/backkey] type = string check/type = string default = UpKey description = "Normal Context: Back(Go to previous screen) Menu Context: Up/Left" -[/lcdm001/forwardkey] +[lcdm001/#/forwardkey] type = string check/type = string default = DownKey description = "Normal Context: Forward(Go to next screen) Menu Context: Down/Right" -[/lcdm001/mainmenukey] +[lcdm001/#/mainmenukey] type = string check/type = string default = RightKey @@ -1594,14 +2570,56 @@ Menu Context: Exit/Cancel" ;lcterm ;================================================== -[/lcterm/device] +[lcterm] +default = "" +array = #0 + +[lcterm/#] +type = struct +check/type = any +default = "" +gen/struct/type = LctermDriverConfig +gen/struct/alloc = 0 +description = Configuration for a lcterm driver. + +[lcterm/#/file] +type = string +default = "lcterm" +description = name of the shared library to load (without prefix and extension) + +[lcterm/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[lcterm/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[lcterm/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[lcterm/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[lcterm/#/device] type = string check/type = string ;check/path = default = /dev/ttyS1 description = "select the device to use" -[/lcterm/size] +[lcterm/#/size] type = string check/type = string check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) @@ -1612,30 +2630,115 @@ description = Specify the size of the display in pixels ;linux_input ;================================================== -[/linux_input/device] +[linux_input] +default = "" +array = #0 + +[linux_input/#] +type = struct +check/type = any +default = "" +gen/struct/type = Linux_inputDriverConfig +gen/struct/alloc = 0 +description = Configuration for a linux_input driver. + +[linux_input/#/file] +type = string +default = "linux_input" +description = name of the shared library to load (without prefix and extension) + +[linux_input/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[linux_input/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[linux_input/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[linux_input/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[linux_input/#/device] type = string check/type = string ;check/path = default = /dev/input/event0 description = "select the device to use" -[/linux_input/key/_/] +[linux_input/#/key/_] type = string -check/type = string +check/type = any +default = "" description = "specify a non-default key map, eg.: /linux_input/key/#01 = 1 /linux_input/key/#28 = Enter" ;lirc ;================================================== -[/lirc/lircrc] +[lirc] +default = "" +array = #0 + +[lirc/#] +type = struct +check/type = any +default = "" +gen/struct/type = LircDriverConfig +gen/struct/alloc = 0 +description = Configuration for a lirc driver. + +[lirc/#/file] +type = string +default = "lirc" +description = name of the shared library to load (without prefix and extension) + +[lirc/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[lirc/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[lirc/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[lirc/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[lirc/#/lircrc] type = string check/type = string ;check/path = default = ~/.lircrc description = "select the device to use" -[lirc/prog] +[lirc/#/prog] type = string check/type = string default = lcdd @@ -1643,30 +2746,69 @@ description = "Must be the same as in your lircrc" ;lis ;================================================== -[/lis/brightness] -default = 1000 -description = "Set the initial brightness -0-250 = 25%, 251-500 = 50%, 501-750 = 75%, 751-1000 = 100%" +[lis] +default = "" +array = #0 -[/lis/size] -type = string -check/type = string -check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) -check/validation/match = LINE -check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 -default = 16x2 -description = Columns by lines +[lis/#] +type = struct +check/type = any +default = "" +gen/struct/type = LisDriverConfig +gen/struct/alloc = 0 +description = Configuration for a lis driver. -[/lis/vendorid] +[lis/#/file] type = string -check/type = string +default = "lis" +description = name of the shared library to load (without prefix and extension) + +[lis/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[lis/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = "Set the initial brightness +0-250 = 25%, 251-500 = 50%, 501-750 = 75%, 751-1000 = 100%" + +[lis/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[lis/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[lis/#/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 16x2 +description = Columns by lines + +[lis/#/vendorid] +type = string +check/type = string check/validation = 0x([0-9A-F]{4}) check/validation/match = LINE check/validation/message = Not a valid size VendorID: 0x0000-0xFFFF is allowed default = 0x0403 description = USB Vendor ID. Change only if testing a compatible device. -[/lis/productid] +[lis/#/productid] type = string check/type = string check/validation = 0x([0-9A-F]{4}) @@ -1675,23 +2817,68 @@ check/validation/message = Not a valid size ProductID: 0x0000-0xFFFF is allowed default = 0x6001 description = USB Product ID. Change only if testing a compatible device. -[/lis/backlight] -type = Lastline -check/type = Lastline -default = yes +[lis/#/lastline] +type = boolean +check/type = boolean +default = 1 ; TODO: fix description = "Specifies if the last line is pixel addressable (yes) or it only controls an underline effect (no)" ;MD8800 ;================================================== -[/md8800/device] +[md8800] +default = "" +array = #0 + +[md8800/#] +type = struct +check/type = any +default = "" +gen/struct/type = MD8800DriverConfig +gen/struct/alloc = 0 +description = Configuration for a MD8800 driver. + +[md8800/#/file] +type = string +default = "MD8800" +description = name of the shared library to load (without prefix and extension) + +[md8800/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[md8800/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[md8800/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 +description = "Set the initial off-brightness +This value is used when the display is normally +switched off in case LCDd is inactive" + +[md8800/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[md8800/#/device] type = string check/type = string ;check/path = default = /dev/ttyS1 description = "select the device to use" -[/md8800/size] +[md8800/#/size] type = string check/type = string check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) @@ -1700,46 +2887,125 @@ check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 4 default = 16x2 description = display size -[/md8800/brightness] + +;mdm166a +;================================================== +[mdm166a] +default = "" +array = #0 + +[mdm166a/#] +type = struct +check/type = any +default = "" +gen/struct/type = Mdm166aDriverConfig +gen/struct/alloc = 0 +description = Configuration for a mdm166a driver. + +[mdm166a/#/file] +type = string +default = "mdm166a" +description = name of the shared library to load (without prefix and extension) + +[mdm166a/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[mdm166a/#/brightness] +type = unsigned_short +check/type = unsigned_short default = 1000 +check/range = 0-1000 -[/md8800/offbrightness] +[mdm166a/#/offbrightness] +type = unsigned_short +check/type = unsigned_short default = 0 -description = "Set the initial off-brightness -This value is used when the display is normally -switched off in case LCDd is inactive" +check/range = 0-1000 -;mdm166a -;================================================== -[/mdm166a/clock] +[mdm166a/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[mdm166a/#/clock] type = enum check/type = enum -check/enum = no, small, big +check/enum = #2 +check/enum/#0 = no +check/enum/#1 = small +check/enum/#2 = big default = no description = "Show self-running clock after LCDd shutdown" -[/mdm166a/dimming] +[mdm166a/#/dimming] type = boolean check/type = boolean -default = no +default = 0 ; TODO: fix description = "Dim display, no dimming gives full brightness" -[/mdm166a/offdimming] +[mdm166a/#/offdimming] type = boolean check/type = boolean -default = no +default = 0 ; TODO: fix description = "Dim display in case LCDd is inactive" ;ms6931 ;================================================== -[/ms6931/device] +[ms6931] +default = "" +array = #0 + +[ms6931/#] +type = struct +check/type = any +default = "" +gen/struct/type = Ms6931DriverConfig +gen/struct/alloc = 0 +description = Configuration for a ms6931 driver. + +[ms6931/#/file] +type = string +default = "ms6931" +description = name of the shared library to load (without prefix and extension) + +[ms6931/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[ms6931/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[ms6931/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[ms6931/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[ms6931/#/device] type = string check/type = string ;check/path = default = /dev/ttyS1 description = "select the device to use" -[/ms6931/size] +[ms6931/#/size] type = string check/type = string check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) @@ -1750,30 +3016,112 @@ description = display size ;mtc_s16209x ;================================================== -[/mtc_s16209x/device] +[mtc_s16209x] +default = "" +array = #0 + +[mtc_s16209x/#] +type = struct +check/type = any +default = "" +gen/struct/type = Mtc_s16209xDriverConfig +gen/struct/alloc = 0 +description = Configuration for a mtc_s16209x driver. + +[mtc_s16209x/#/file] +type = string +default = "mtc_s16209x" +description = name of the shared library to load (without prefix and extension) + +[mtc_s16209x/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[mtc_s16209x/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 200 +check/range = 0-255 + +[mtc_s16209x/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[mtc_s16209x/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[mtc_s16209x/#/device] type = string check/type = string ;check/path = default = /dev/lcd description = "Select the output device to use" -[/mtc_s16209x/brightness] -check/range = 0 - 255 -default = 200 - -[/mtc_s16209x/reboot] -default = no - ;MtxOrb ;================================================== -[/mtxorb/device] +[mtxorb] +default = "" +array = #0 + +[mtxorb/#] +type = struct +check/type = any +default = "" +gen/struct/type = MtxOrbDriverConfig +gen/struct/alloc = 0 +description = Configuration for a MtxOrb driver. + +[mtxorb/#/file] +type = string +default = "MtxOrb" +description = name of the shared library to load (without prefix and extension) + +[mtxorb/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 480 +check/range = 0-1000 +description = "Set the initial contrast +NOTE: The driver will ignore this if the display +is a vfd or vkd as they don't have this feature" + +[mtxorb/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[mtxorb/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 +description = "Set the initial off-brightness +This value is used when the display is normally +switched off in case LCDd is inactive" + +[mtxorb/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[mtxorb/#/device] type = string check/type = string ;check/path = default = /dev/ttyS0 description = "Select the output device to use" -[/mtxorb/size] +[mtxorb/#/size] type = string check/type = string check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) @@ -1782,83 +3130,120 @@ check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 4 default = 20x4 description = display size -[/mtxorb/type] +[mtxorb/#/type] type = enum check/type = enum -check/enum = lcd, lkd, vfd, vkd +check/enum = #3 +check/enum/#0 = lcd lkd, vfd, vkd +check/enum/#1 = lkd +check/enum/#2 = vfd +check/enum/#3 = vkd default = lcd description = "Set the display type" -[/mtxorb/contrast] -default = 480 -description = "Set the initial contrast. -NOTE: The driver will ignore this if the display -is a vfd or vkd as they don't have this feature" - -[/mtxorb/hasadjustablebacklight] +[mtxorb/#/hasadjustablebacklight] type = boolean check/type = boolean -default = no +default = 0 ; TODO: fix description = "Some old displays do not have an adjustable backlight but only can switch the backlight on/off. If you experience randomly appearing block characters, try setting this to false." -[/mtxorb/brightness] -default = 1000 - -[/mtxorb/offbrightness] -default = 0 -description = "Set the initial off-brightness -This value is used when the display is normally -switched off in case LCDd is inactive" - -[/mtxorb/speed] +[mtxorb/#/speed] type = unsigned_short check/type = unsigned_short check/range = 1200, 2400, 9600, 19200 default = 19200 description = Set the communication -[/mtxorb/keymap_a] +[mtxorb/#/keymap_a] type = string check/type = string +default = "" description = "By default no keys are mapped, meaning the keypad is not used at all." -[/mtxorb/keymap_b] +[mtxorb/#/keymap_b] type = string check/type = string +default = "" description = "By default no keys are mapped, meaning the keypad is not used at all." -[/mtxorb/keymap_c] +[mtxorb/#/keymap_c] type = string check/type = string +default = "" description = "By default no keys are mapped, meaning the keypad is not used at all." -[/mtxorb/keymap_d] +[mtxorb/#/keymap_d] type = string check/type = string +default = "" description = "By default no keys are mapped, meaning the keypad is not used at all." -[/mtxorb/keymap_e] +[mtxorb/#/keymap_e] type = string check/type = string +default = "" description = "By default no keys are mapped, meaning the keypad is not used at all." -[/mtxorb/keymap_f] +[mtxorb/#/keymap_f] type = string check/type = string +default = "" description = "By default no keys are mapped, meaning the keypad is not used at all." ;mx5000 ;================================================== -[/mx5000/device] +[mx5000] +default = "" +array = #0 + +[mx5000/#] +type = struct +check/type = any +default = "" +gen/struct/type = Mx5000DriverConfig +gen/struct/alloc = 0 +description = Configuration for a mx5000 driver. + +[mx5000/#/file] +type = string +default = "mx5000" +description = name of the shared library to load (without prefix and extension) + +[mx5000/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[mx5000/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[mx5000/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[mx5000/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[mx5000/#/device] type = string check/type = string ;check/path = default = /dev/hiddev0 description = "Select the output device to use" -[/mx5000/waitafterrefresh] +[mx5000/#/waitafterrefresh] type = unsigned_long check/type = unsigned_long check/validation = [1-9]\d* @@ -1869,14 +3254,59 @@ description = Time to wait in ms after the refresh screen has been sent ;NoritakeVFD ;================================================== -[/noritakevfd/device] +[noritakevfd] +default = "" +array = #0 + +[noritakevfd/#] +type = struct +check/type = any +default = "" +gen/struct/type = NoritakeVFDDriverConfig +gen/struct/alloc = 0 +description = Configuration for a NoritakeVFD driver. + +[noritakevfd/#/file] +type = string +default = "NoritakeVFD" +description = name of the shared library to load (without prefix and extension) + +[noritakevfd/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[noritakevfd/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[noritakevfd/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 +description = "Set the initial off-brightness +This value is used when the display is normally +switched off in case LCDd is inactive" + +[noritakevfd/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[noritakevfd/#/device] type = string check/type = string ;check/path = default = /dev/lcd description = "device where the VFD is. Usual values are /dev/ttyS0 and /dev/ttyS1" -[/noritakevfd/size] +[noritakevfd/#/size] type = string check/type = string check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) @@ -1885,45 +3315,121 @@ check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 4 default = 20x4 description = display size -[/noritakevfd/brightness] -default = 1000 - -[/noritakevfd/offbrightness] -default = 0 -description = "Set the initial off-brightness. -This value is used when the display is normally -switched off in case LCDd is inactive" - -[/noritakevfd/speed] +[noritakevfd/#/speed] type = unsigned_long check/type = unsigned_long check/range = 1200, 2400, 9600, 19200, 115200 default = 19200 description = set the serial port speed -[/noritakevfd/parity] -type = unsigned_long -check/type = unsigned_long -check/range = 0-2 +[noritakevfd/#/parity] +type = unsigned_long +check/type = unsigned_long +check/range = 0-2 +default = 0 +description = "Set serial data parity +Meaning: 0(=none), 1(=odd), 2(=even)" + +;Olimex_MOD_LCD1x9 +;================================================== +[olimex_mod_lcd1x9] +default = "" +array = #0 + +[olimex_mod_lcd1x9/#] +type = struct +check/type = any +default = "" +gen/struct/type = Olimex_MOD_LCD1x9DriverConfig +gen/struct/alloc = 0 +description = Configuration for a Olimex_MOD_LCD1x9 driver. + +[olimex_mod_lcd1x9/#/file] +type = string +default = "Olimex_MOD_LCD1x9" +description = name of the shared library to load (without prefix and extension) + +[olimex_mod_lcd1x9/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[olimex_mod_lcd1x9/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[olimex_mod_lcd1x9/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[olimex_mod_lcd1x9/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[olimex_mod_lcd1x9/#/device] +type = string +check/type = string +;check/path = +default = /dev/i2c-0 +description = "device file of the i2c controller" + +;picolcd +;================================================== +[picolcd] +default = "" +array = #0 + +[picolcd/#] +type = struct +check/type = any +default = "" +gen/struct/type = PicolcdDriverConfig +gen/struct/alloc = 0 +description = Configuration for a picolcd driver. + +[picolcd/#/file] +type = string +default = "picolcd" +description = name of the shared library to load (without prefix and extension) + +[picolcd/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[picolcd/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = "Set the initial brightness [default: 1000; legal: 0 - 1000]. Works only +with the 20x4 device" + +[picolcd/#/offbrightness] +type = unsigned_short +check/type = unsigned_short default = 0 -description = "Set serial data parity -Meaning: 0(=none), 1(=odd), 2(=even)" - -[/noritakevfd/reboot] -default = no +check/range = 0-1000 +description = "Set the brightness while the backlight is 'off'. +Works only with the 20x4 device." -;Olimex_MOD_LCD1x9 -;================================================== -[/olimex_mod_lcd1x9/device] -type = string -check/type = string -;check/path = -default = /dev/i2c-0 -description = "device file of the i2c controller" +[picolcd/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this -;picolcd -;================================================== -[/picolcd/keytimeout] +[picolcd/#/keytimeout] type = unsigned_short check/type = unsigned_short check/range = 0-1000 @@ -1937,7 +3443,7 @@ make key presses more detectable. Lower values make LCDd more responsive but a little prone to missing key presses. 500 (.5 second) is the default and a balanced value." -[/picolcd/keyrepeatdelay] +[picolcd/#/keyrepeatdelay] type = unsigned_short check/type = unsigned_short check/range = 0-3000 @@ -1949,7 +3455,7 @@ repeat. Key auto repeat delay (time in ms from first key report to first repeat). Use zero to disable auto repeat." -[/picolcd/keyrepeatinterval] +[picolcd/#/keyrepeatinterval] type = unsigned_short check/type = unsigned_short check/range = 0-3000 @@ -1957,94 +3463,79 @@ default = 200 description = "Key auto repeat interval (time in ms between repeat reports). Only used if KeyRepeatDelay is not zero." -[/picolcd/backlight] +[picolcd/#/backlight] type = boolean check/type = boolean -default = on +default = 1 ; TODO: fix description = Sets the initial state of the backlight upon start-up. -[/picolcd/brightness] -default = 1000 -description = "Set the initial brightness [default: 1000; legal: 0 - 1000]. Works only -with the 20x4 device" - -[/picolcd/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -description = "Set the brightness while the backlight is 'off'. -Works only with the 20x4 device." - -[/picolcd/contrast] -default = 1000 - -[/picolcd/linklights] +[picolcd/#/linklights] type = boolean check/type = boolean -default = off +default = 0 ; TODO: fix description = Link the key lights to the backlight? -[/picolcd/keylights] +[picolcd/#/keylights] type = boolean check/type = boolean -default = on +default = 1 ; TODO: fix description = Light the keys? -[/picolcd/key0light] +[picolcd/#/key0light] type = boolean check/type = boolean -default = on +default = 1 ; TODO: fix description = "If Keylights is on, the you can unlight specific keys below: Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. There is no LED for the +/- keys. This is a handy way to indicate to users which keys are disabled." -[/picolcd/key1light] +[picolcd/#/key1light] type = boolean check/type = boolean -default = on +default = 1 ; TODO: fix description = "If Keylights is on, the you can unlight specific keys below: Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. There is no LED for the +/- keys. This is a handy way to indicate to users which keys are disabled." -[/picolcd/key2light] +[picolcd/#/key2light] type = boolean check/type = boolean -default = on +default = 1 ; TODO: fix description = "If Keylights is on, the you can unlight specific keys below: Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. There is no LED for the +/- keys. This is a handy way to indicate to users which keys are disabled." -[/picolcd/key3light] +[picolcd/#/key3light] type = boolean check/type = boolean -default = on +default = 1 ; TODO: fix description = "If Keylights is on, the you can unlight specific keys below: Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. There is no LED for the +/- keys. This is a handy way to indicate to users which keys are disabled." -[/picolcd/key4light] +[picolcd/#/key4light] type = boolean check/type = boolean -default = on +default = 1 ; TODO: fix description = "If Keylights is on, the you can unlight specific keys below: Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. There is no LED for the +/- keys. This is a handy way to indicate to users which keys are disabled." -[/picolcd/key5light] +[picolcd/#/key5light] type = boolean check/type = boolean -default = on +default = 1 ; TODO: fix description = "If Keylights is on, the you can unlight specific keys below: Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. There is no LED for the +/- keys. This is a handy way to indicate to users which keys are disabled." -[/picolcd/lirchost] +[picolcd/#/lirchost] ;check/ipaddr = type = string check/type = string @@ -2052,22 +3543,22 @@ default = 127.0.0.1 description = Host name or IP address of the LIRC instance that is to receive IR codes\ If not set, or set to an empty value, IR support is disabled. -[/picolcd/lircport] +[picolcd/#/lircport] ; PORT check/; PORT type = unsigned_short default = 8765 description = UDP port on which LIRC is listening -[/picolcd/lirctime_us] +[picolcd/#/lirctime_us] type = boolean check/type = boolean -default = off +default = 0 ; TODO: fix description = "UDP data time unit for LIRC On: times sent in microseconds (requires LIRC UDP driver that accepts this). Off: times sent in 'jiffies' (1/16384s) (supported by standard LIRC UDP driver)." -[/picolcd/lircflushthreshold] +[picolcd/#/lircflushthreshold] type = unsigned_long check/type = unsigned_long check/validation = [1-9]\d{3,} @@ -2082,7 +3573,49 @@ If LircTime_us is off values greater than 1.999938s will disable the flush" ;pyramid ;================================================== -[/pyramid/device] +[pyramid] +default = "" +array = #0 + +[pyramid/#] +type = struct +check/type = any +default = "" +gen/struct/type = PyramidDriverConfig +gen/struct/alloc = 0 +description = Configuration for a pyramid driver. + +[pyramid/#/file] +type = string +default = "pyramid" +description = name of the shared library to load (without prefix and extension) + +[pyramid/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[pyramid/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[pyramid/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[pyramid/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[pyramid/#/device] type = string check/type = string ;check/path = @@ -2091,14 +3624,56 @@ description = "device to connect to" ;rawserial ;================================================== -[/rawserial/device] +[rawserial] +default = "" +array = #0 + +[rawserial/#] +type = struct +check/type = any +default = "" +gen/struct/type = RawserialDriverConfig +gen/struct/alloc = 0 +description = Configuration for a rawserial driver. + +[rawserial/#/file] +type = string +default = "rawserial" +description = name of the shared library to load (without prefix and extension) + +[rawserial/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[rawserial/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[rawserial/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[rawserial/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[rawserial/#/device] type = string check/type = string ;check/path = default = /dev/cuaU0 description = "Select the output device to use" -[/rawserial/size] +[rawserial/#/size] type = string check/type = string check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) @@ -2109,7 +3684,7 @@ description = "Specifies the size of the LCD. If this driver is loaded as a seco it always adopts to the size of the primary driver. If loaded as the only (or primary) driver, the size can be set." -[/rawserial/updaterate] +[rawserial/#/updaterate] type = float check/type = float default = 1 @@ -2117,7 +3692,7 @@ description = "How often to dump the LCD contents out the port, in Hertz (times 1 = once per second, 4 is 4 times per second, 0.1 is once every 10 seconds. [default: 1; legal: 0.0005 - 10]" -[/rawserial/speed] +[rawserial/#/speed] type = unsigned_long check/type = unsigned_long default = 9600 @@ -2125,8 +3700,49 @@ description = "Serial port baudrate [default: 9600]" ;sed1330 ;================================================== +[sed1330] +default = "" +array = #0 + +[sed1330/#] +type = struct +check/type = any +default = "" +gen/struct/type = Sed1330DriverConfig +gen/struct/alloc = 0 +description = Configuration for a sed1330 driver. -[/sed1330/port] +[sed1330/#/file] +type = string +default = "sed1330" +description = name of the shared library to load (without prefix and extension) + +[sed1330/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[sed1330/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[sed1330/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[sed1330/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[sed1330/#/port] type = string check/type = string check/validation = 0x([0-9A-F]{3}) @@ -2135,15 +3751,21 @@ check/validation/message = Not a valid port declaration. It should start with 0x default = 0x378 description = Port where the LPT is. Common values are 0x278, 0x378 and 0x3BC -[/sed1330/type] +[sed1330/#/type] type = enum check/type = enum -check/enum = G321D, G121C, G242C, G191D, G2446, SP14Q002 +check/enum = #5 +check/enum/#0 = G321D +check/enum/#1 = G121C +check/enum/#2 = G242C +check/enum/#3 = G191D +check/enum/#4 = G2446 +check/enum/#5 = SP14Q002 default = G321D description = "Type of LCD module. Note: Currently only tested with G321D & SP14Q002." -[/sed1330/cellsize] +[sed1330/#/cellsize] type = string check/type = string check/validation =[6-8]x([1-9][0-6]|[1-9]) @@ -2152,16 +3774,60 @@ check/validation/message = Width x Height of a character cell in pixels [legal: default = 6x10 description = Width x Height of a character cell in pixels -[/sed1330/connectiontype] +[sed1330/#/connectiontype] type = enum check/type = enum -check/enum = classic, bitshaker +check/enum = #1 +check/enum/#0 = classic +check/enum/#1 = bitshaker default = classic description = "Select what type of connection" ;sed1520 ;================================================== -[/sed1520/port] +[sed1520] +default = "" +array = #0 + +[sed1520/#] +type = struct +check/type = any +default = "" +gen/struct/type = Sed1520DriverConfig +gen/struct/alloc = 0 +description = Configuration for a sed1520 driver. + +[sed1520/#/file] +type = string +default = "sed1520" +description = name of the shared library to load (without prefix and extension) + +[sed1520/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[sed1520/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[sed1520/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[sed1520/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[sed1520/#/port] type = string check/type = string check/validation = 0x([0-9A-F]{3}) @@ -2170,7 +3836,7 @@ check/validation/message = Not a valid port declaration. It should start with 0x default = 0x378 description = Port where the LPT is. Usual values are 0x278, 0x378 and 0x3BC -[/sed1520/interfacetype] +[sed1520/#/interfacetype] type = unsigned_short check/type = unsigned_short check/range = 68, 80 @@ -2179,7 +3845,7 @@ description = "Select the interface type (wiring) for the display. Supported val 68 for 68-style connection (RESET level high) and 80 for 80-style connection (RESET level low)" -[/sed1520/delaymult] +[sed1520/#/delaymult] type = unsigned_short check/type = unsigned_short check/range = 0-1000 @@ -2188,38 +3854,80 @@ description = "On fast machines it may be necessary to slow down transfer to the If this value is set to zero, delay is disabled. Any value greater than zero slows down each write by one microsecond." -[/sed1520/haveinverter] +[sed1520/#/haveinverter] type = boolean check/type = boolean -default = yes +default = 1 ; TODO: fix description = "The original wiring used an inverter to drive the control lines. If you do not use an inverter set haveInverter to no." -[/sed1520/invertedmapping] +[sed1520/#/invertedmapping] type = boolean check/type = boolean -default = no +default = 0 ; TODO: fix description = "On some displays column data in memory is mapped to segment lines from right to left. This is called inverted mapping (not to be confused with 'haveInverter' from above)." -[/sed1520/usehardreset] +[sed1520/#/usehardreset] type = boolean check/type = boolean -default = no +default = 0 ; TODO: fix description = "At least one display is reported (Everbouquet MG1203D) that requires sending three times 0xFF before a reset during initialization." ;serialPOS ;================================================== -[/serialpos/device] +[serialpos] +default = "" +array = #0 + +[serialpos/#] +type = struct +check/type = any +default = "" +gen/struct/type = SerialPOSDriverConfig +gen/struct/alloc = 0 +description = Configuration for a serialPOS driver. + +[serialpos/#/file] +type = string +default = "serialPOS" +description = name of the shared library to load (without prefix and extension) + +[serialpos/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[serialpos/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[serialpos/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[serialpos/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[serialpos/#/device] type = string check/type = string ;check/path = default = /dev/ttyS0 description = "Device to use in serial mode" -[/serialpos/size] +[serialpos/#/size] type = string check/type = string check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) @@ -2228,7 +3936,7 @@ check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 4 default = 16x2 description = "Specifies the size of the display in characters." -[/serialpos/cellsize] +[serialpos/#/cellsize] type = string check/type = string check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) @@ -2237,7 +3945,7 @@ check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 4 default = 5x8 description = "Specifies the cell size of each character cell on the display in characters." -[/serialpos/custom_chars] +[serialpos/#/custom_chars] type = unsigned_long check/type = unsigned_long check/validation = ^([1-9]\d*|0)$ @@ -2251,14 +3959,20 @@ lower than the number of custom characters supported, then custom characters will be used to render the horizontal bars. For more information look at: https://github.com/lcdproc/lcdproc/blob/master/docs/lcdproc-user/drivers/serialPOS.docbook" -[/serialpos/type] +[serialpos/#/type] type = enum check/type = enum -check/enum = AEDEX, CD5220, Epson, Emax, LogicControls, Ultimate +check/enum = #5 +check/enum/#0 = AEDEX +check/enum/#1 = CD5220 +check/enum/#2 = Epson +check/enum/#3 = Emax +check/enum/#4 = LogicControls +check/enum/#5 = Ultimate default = AEDEX description = "Set the communication protocol to use with the POS display." -[/serialpos/speed] +[serialpos/#/speed] type = unsigned_short check/type = unsigned_short check/range = 1200, 2400, 4800, 9600, 19200, 115200 @@ -2267,10 +3981,85 @@ description = communication baud rate with the display ;serialVFD ;================================================== -[/serialvfd/type] +[serialvfd] +default = "" +array = #0 + +[serialvfd/#] +type = struct +check/type = any +default = "" +gen/struct/type = SerialVFDDriverConfig +gen/struct/alloc = 0 +description = Configuration for a serialVFD driver. + +[serialvfd/#/file] +type = string +default = "serialVFD" +description = name of the shared library to load (without prefix and extension) + +[serialvfd/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[serialvfd/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial brightness. (4 steps 0-250, 251-500, 501-750, 751-1000) + +[serialvfd/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 +description = "Set the initial off-brightness +This value is used when the display is normally +switched off in case LCDd is inactive +(4 steps 0-250, 251-500, 501-750, 751-1000)" + +[serialvfd/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[serialvfd/#/type] type = unsigned_short check/type = unsigned_short -check/enum = 0, 1, 2, 3, 4, 5, 6, 7, 8 +check/enum = #_17 +check/enum/#0 = nec_fipc8367 +check/enum/#1 = kd_rev_2_1 +check/enum/#2 = noritake_vfd +check/enum/#3 = futaba_vfd +check/enum/#4 = iee_s03601-95b +check/enum/#5 = iee_s03601-96-080 +check/enum/#6 = futaba_na202sd08fa +check/enum/#7 = samsung_20s207da4/20s207da6 +check/enum/#8 = nixdorf_ba6x/vt100 +check/enum/#_9 = 0 +gen/enum/value = 0 +check/enum/#_10 = 1 +gen/enum/value = 1 +check/enum/#_11 = 2 +gen/enum/value = 2 +check/enum/#_12 = 3 +gen/enum/value = 3 +check/enum/#_13 = 4 +gen/enum/value = 4 +check/enum/#_14 = 5 +gen/enum/value = 5 +check/enum/#_15 = 6 +gen/enum/value = 6 +check/enum/#_16 = 7 +gen/enum/value = 7 +check/enum/#_17 = 8 +gen/enum/value = 8 +gen/enum/type = SerialVFDType default = 0 description = "Specifies the displaytype.[default: 0] 0 NEC (FIPC8367 based) VFDs. @@ -2284,14 +4073,14 @@ description = "Specifies the displaytype.[default: 0] 8 Nixdorf BA6x / VT100 (* most should work, not tested yet.)" -[/serialvfd/use_parallel] +[serialvfd/#/use_parallel] type = boolean check/type = boolean -default = no +default = 0 ; TODO: fix description = "'no' if display connected serial, 'yes' if connected parallel. I.e. serial by default" -[/serialvfd/custom-characters] +[serialvfd/#/custom-characters] type = unsigned_long check/type = unsigned_long check/validation = ^([1-9]\d*|0)$ @@ -2300,7 +4089,7 @@ check/validation/message = Must be any positive number including 0 default = 0 description = "Number of Custom-Characters. default is display type dependent" -[/serialvfd/port] +[serialvfd/#/port] type = string check/type = string check/validation = 0x([0-9A-F]{3}) @@ -2309,21 +4098,21 @@ check/validation/message = Not a valid port declaration. It should start with 0x default = 0x378 description = Portaddress where the LPT is. Used in parallel mode only. Usual values are 0x278, 0x378 and 0x3BC. -[/serialvfd/portwait] +[serialvfd/#/portwait] type = unsigned_short check/type = unsigned_short check/range = 0-255 default = 2 description = Set parallel port timing delay (us). Used in parallel mode only. -[/serialvfd/device] +[serialvfd/#/device] type = string check/type = string ;check/path = default = /dev/ttyS1 description = "Device to use in serial mode. Usual values are /dev/ttyS0 and /dev/ttyS1" -[/serialvfd/size] +[serialvfd/#/size] type = string check/type = string check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) @@ -2332,35 +4121,64 @@ check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 4 default = 20x2 description = "Specifies the size of the VFD." -[/serialvfd/brightness] -default = 1000 -description = Set the initial brightness. (4 steps 0-250, 251-500, 501-750, 751-1000) - -[/serialvfd/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -description = "Set the initial off-brightness -This value is used when the display is normally -switched off in case LCDd is inactive -(4 steps 0-250, 251-500, 501-750, 751-1000)" - -[/serialvfd/speed] +[serialvfd/#/speed] type = unsigned_short check/type = unsigned_short check/range = 1200, 2400, 9600, 19200, 115200 default = 9600 description = set the serial port speed -[/serialvfd/iso_8859_1] +[serialvfd/#/iso_8859_1] type = boolean check/type = boolean -default = yes +default = 1 ; TODO: fix description = "enable ISO 8859 1 compatibility" ;stv5730 ;================================================== -[/stv5730/port] +[stv5730] +default = "" +array = #0 + +[stv5730/#] +type = struct +check/type = any +default = "" +gen/struct/type = Stv5730DriverConfig +gen/struct/alloc = 0 +description = Configuration for a stv5730 driver. + +[stv5730/#/file] +type = string +default = "stv5730" +description = name of the shared library to load (without prefix and extension) + +[stv5730/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[stv5730/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[stv5730/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[stv5730/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[stv5730/#/port] type = string check/type = string check/validation = 0x([0-9A-F]{3}) @@ -2369,23 +4187,68 @@ check/validation/message = Not a valid port declaration. It should start with 0x default = 0x378 description = Port the device is connected to -;SureElec -;================================================== -[/sureelec/device] +;SureElec +;================================================== +[sureelec] +default = "" +array = #0 + +[sureelec/#] +type = struct +check/type = any +default = "" +gen/struct/type = SureElecDriverConfig +gen/struct/alloc = 0 +description = Configuration for a SureElec driver. + +[sureelec/#/file] +type = string +default = "SureElec" +description = name of the shared library to load (without prefix and extension) + +[sureelec/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 480 +check/range = 0-1000 +description = Set the initial contrast + +[sureelec/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 480 +check/range = 0-1000 + +[sureelec/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 480 +check/range = 0-1000 +description = "Set the initial off-brightness +This value is used when the display is normally +switched off in case LCDd is inactive" + +[sureelec/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[sureelec/#/device] type = string check/type = string ;check/path = default = /dev/ttyUSB0 description = "Port the device is connected to (by default first USB serial port)" -[/sureelec/edition] +[sureelec/#/edition] type = unsigned_short check/type = unsigned_short check/range = 1-3 default = 2 description = Edition level of the device (can be 1, 2 or 3) -[/sureelec/size] +[sureelec/#/size] type = string check/type = string check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) @@ -2395,33 +4258,58 @@ default = 16x2 description = "set display size Note: The size can be obtained directly from device for edition 2 & 3." -[/sureelec/contrast] -default = 480 +;svga +;================================================== +[svga] +default = "" +array = #0 + +[svga/#] +type = struct +check/type = any +default = "" +gen/struct/type = SvgaDriverConfig +gen/struct/alloc = 0 +description = Configuration for a svga driver. + +[svga/#/file] +type = string +default = "svga" +description = name of the shared library to load (without prefix and extension) + +[svga/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 500 +check/range = 0-1000 description = Set the initial contrast -[/sureelec/brightness] -default = 480 -description = Set the initial brightness +[svga/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 1-1000 -[/sureelec/offbrightness] +[svga/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 500 check/range = 1-1000 -default = 100 -description = "Set the initial off-brightness -This value is used when the display is normally -switched off in case LCDd is inactive" -;svga -;================================================== -[/svga/mode] +[svga/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[svga/#/mode] type = string check/type = string default = G320x240x256 description = "svgalib mode to use [default: G320x240x256 ] legal values are supported svgalib modes. See man7 pages for allowed values" - - -[/svga/size] +[svga/#/size] type = string check/type = string check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) @@ -2430,26 +4318,51 @@ check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 4 default = 20x4 description = "set display size" -[/svga/contrast] -default = 500 -description = "Set the initial contrast [default: 500; legal: 0 - 1000] -Can be set but does not change anything internally" +;text +;================================================== +[text] +default = "" +array = #0 -[/svga/brightness] -check/range = 1-1000 +[text/#] +type = struct +check/type = any +default = "" +gen/struct/type = TextDriverConfig +gen/struct/alloc = 0 +description = Configuration for a text driver. + +[text/#/file] +type = string +default = "text" +description = name of the shared library to load (without prefix and extension) + +[text/#/contrast] +type = unsigned_short +check/type = unsigned_short default = 1000 -description = Set the initial brightness +check/range = 0-1000 +description = Set the initial contrast -[/svga/offbrightness] -check/range = 1-1000 -default = 500 -description = "Set the initial off-brightness -This value is used when the display is normally -switched off in case LCDd is inactive" +[text/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 -;text -;================================================== -[/text/size] +[text/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[text/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[text/#/size] type = string check/type = string check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) @@ -2460,7 +4373,49 @@ description = "set display size" ;t6963 ;================================================== -[/t6963/size] +[t6963] +default = "" +array = #0 + +[t6963/#] +type = struct +check/type = any +default = "" +gen/struct/type = T6963DriverConfig +gen/struct/alloc = 0 +description = Configuration for a t6963 driver. + +[t6963/#/file] +type = string +default = "t6963" +description = name of the shared library to load (without prefix and extension) + +[t6963/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[t6963/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[t6963/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[t6963/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[t6963/#/size] type = string check/type = string check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) @@ -2469,7 +4424,7 @@ check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 4 default = 128x64 description = "set display size in pixels" -[/t6963/port] +[t6963/#/port] type = string check/type = string check/validation = 0x([2-3][0-9A-F]{2}|400) @@ -2478,42 +4433,84 @@ check/validation/message = Not a valid port declaration. legal: 0x200 - 0x400 default = 0x378 description = Parallel port to use -[/t6963/bidirectional] +[t6963/#/bidirectional] type = boolean check/type = boolean -default = yes +default = 1 ; TODO: fix description = "Use LPT port in bi-directional mode. This should work on most LPT port and is required for proper timing!" -[/t6963/delaybus] +[t6963/#/delaybus] type = boolean check/type = boolean -default = no +default = 0 ; TODO: fix description = "Insert additional delays into reads / writes." -[/t6963/cleargraphic] +[t6963/#/cleargraphic] type = boolean check/type = boolean -default = no +default = 0 ; TODO: fix description = "Clear graphic memory on start-up." ;tyan ;================================================== -[/tyan/device] +[tyan] +default = "" +array = #0 + +[tyan/#] +type = struct +check/type = any +default = "" +gen/struct/type = TyanDriverConfig +gen/struct/alloc = 0 +description = Configuration for a tyan driver. + +[tyan/#/file] +type = string +default = "tyan" +description = name of the shared library to load (without prefix and extension) + +[tyan/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[tyan/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[tyan/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[tyan/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[tyan/#/device] type = string check/type = string ;check/path = default = /dev/lcd description = "Select the output device to use" -[/tyan/speed] +[tyan/#/speed] type = unsigned_short check/type = unsigned_short check/range = 4800, 9600 default = 9600 description = Set the communication speed -[/tyan/size] +[tyan/#/size] type = string check/type = string check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) @@ -2525,7 +4522,49 @@ description = "set display size" ;ula200 ;================================================== -[/ula200/size] +[ula200] +default = "" +array = #0 + +[ula200/#] +type = struct +check/type = any +default = "" +gen/struct/type = Ula200DriverConfig +gen/struct/alloc = 0 +description = Configuration for a ula200 driver. + +[ula200/#/file] +type = string +default = "ula200" +description = name of the shared library to load (without prefix and extension) + +[ula200/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[ula200/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[ula200/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[ula200/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[ula200/#/size] type = string check/type = string check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) @@ -2534,7 +4573,7 @@ check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 4 default = 20x4 description = "Select the LCD size" -[/ula200/keymap_a] +[ula200/#/keymap_a] type = string check/type = string default = Up @@ -2546,7 +4585,7 @@ You can leave those unchanged if you have a standard keypad. You can change it if you want to report other keystrings or have a non standard keypad." -[/ula200/keymap_b] +[ula200/#/keymap_b] type = string check/type = string default = Down @@ -2558,7 +4597,7 @@ You can leave those unchanged if you have a standard keypad. You can change it if you want to report other keystrings or have a non standard keypad." -[/ula200/keymap_c] +[ula200/#/keymap_c] type = string check/type = string default = Left @@ -2570,7 +4609,7 @@ You can leave those unchanged if you have a standard keypad. You can change it if you want to report other keystrings or have a non standard keypad." -[/ula200/keymap_d] +[ula200/#/keymap_d] type = string check/type = string default = Right @@ -2582,7 +4621,7 @@ You can leave those unchanged if you have a standard keypad. You can change it if you want to report other keystrings or have a non standard keypad." -[/ula200/keymap_e] +[ula200/#/keymap_e] type = string check/type = string default = Enter @@ -2594,7 +4633,7 @@ You can leave those unchanged if you have a standard keypad. You can change it if you want to report other keystrings or have a non standard keypad." -[/ula200/keymap_f] +[ula200/#/keymap_f] type = string check/type = string default = Escape @@ -2609,14 +4648,56 @@ standard keypad." ;sli ;================================================== -[/sli/device] +[sli] +default = "" +array = #0 + +[sli/#] +type = struct +check/type = any +default = "" +gen/struct/type = SliDriverConfig +gen/struct/alloc = 0 +description = Configuration for a sli driver. + +[sli/#/file] +type = string +default = "sli" +description = name of the shared library to load (without prefix and extension) + +[sli/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[sli/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[sli/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[sli/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[sli/#/device] type = string check/type = string ;check/path = default = /dev/lcd description = "Select the output device to use" -[/sli/speed] +[sli/#/speed] type = unsigned_short check/type = unsigned_short check/range = 1200, 2400, 9600, 19200, 38400, 57600, 115200 @@ -2625,7 +4706,49 @@ description = Set the communication speed ;vlsys_m428 ;================================================== -[/vlsys_m428/device] +[vlsys_m428] +default = "" +array = #0 + +[vlsys_m428/#] +type = struct +check/type = any +default = "" +gen/struct/type = Vlsys_m428DriverConfig +gen/struct/alloc = 0 +description = Configuration for a vlsys_m428 driver. + +[vlsys_m428/#/file] +type = string +default = "vlsys_m428" +description = name of the shared library to load (without prefix and extension) + +[vlsys_m428/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[vlsys_m428/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[vlsys_m428/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[vlsys_m428/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[vlsys_m428/#/device] type = string check/type = string ;check/path = @@ -2634,7 +4757,49 @@ description = "Select the output device to use" ;xosd ;================================================== -[/xosd/size] +[xosd] +default = "" +array = #0 + +[xosd/#] +type = struct +check/type = any +default = "" +gen/struct/type = XosdDriverConfig +gen/struct/alloc = 0 +description = Configuration for a xosd driver. + +[xosd/#/file] +type = string +default = "xosd" +description = name of the shared library to load (without prefix and extension) + +[xosd/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[xosd/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[xosd/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[xosd/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[xosd/#/size] type = string check/type = string check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) @@ -2643,7 +4808,7 @@ check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 4 default = 20x4 description = "set display size" -[/xosd/offset] +[xosd/#/offset] type = string check/type = string check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) @@ -2652,7 +4817,7 @@ check/validation/message = Not a valid offset declaration. Examples: 200x200 default = 0x0 description = "Offset in pixels from the top-left corner of the monitor [default: 0x0]" -[/xosd/Font] +[xosd/#/Font] type = string check/type = string default = "-*-terminus-*-r-*-*-*-320-*-*-*-*-*" @@ -2660,7 +4825,49 @@ description = "X font to use, in XLFD format, as given by 'xfontsel'" ;yard2LCD ;================================================== -[/yard2lcd/size] +[yard2lcd] +default = "" +array = #0 + +[yard2lcd/#] +type = struct +check/type = any +default = "" +gen/struct/type = Yard2LCDDriverConfig +gen/struct/alloc = 0 +description = Configuration for a yard2LCD driver. + +[yard2lcd/#/file] +type = string +default = "yard2LCD" +description = name of the shared library to load (without prefix and extension) + +[yard2lcd/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[yard2lcd/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[yard2lcd/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[yard2lcd/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[yard2lcd/#/size] type = string check/type = string check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) From d905f6f9c94a7ec81e49f6f3c8eb25a7de0131b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Wed, 15 May 2019 02:15:46 +0200 Subject: [PATCH 06/72] curses: elektrify driver using code-gen --- server/driver.c | 20 ++++++-- server/drivers/curses_drv.c | 93 +++++++++++++++++-------------------- 2 files changed, 58 insertions(+), 55 deletions(-) diff --git a/server/driver.c b/server/driver.c index 80f4144f..db10948e 100644 --- a/server/driver.c +++ b/server/driver.c @@ -144,9 +144,19 @@ driver_load(Elektra * elektra, const char * driverpath, kdb_long_long_t index) } ++name_start; - size_t len_name = index_start - name_start; - char * name = malloc(len_name + 1); - strncpy(name, name_start, len_name); + /* extract index for passing to driver */ + kdb_long_long_t driver_index; + int offset = elektraArrayValidateBaseNameString(index_start + 1); + if (offset < 1) { + report(RPT_ERR, "%s: error getting index", __FUNCTION__); + return NULL; + } + Key * index_key = keyNew("", KEY_VALUE, &index_start[offset + 1], KEY_END); + if(!elektraKeyToLongLong(index_key, &driver_index)) { + report(RPT_ERR, "%s: error getting index", __FUNCTION__); + return NULL; + } + keyDel(index_key); Driver *driver = NULL; int res; @@ -159,8 +169,8 @@ driver_load(Elektra * elektra, const char * driverpath, kdb_long_long_t index) } /* And store its name, index and filename */ - driver->name = name; - driver->index = index; + driver->name = strdup(name_start); + driver->index = driver_index; driver->filename = filename; /* Load and bind the driver module and locate the symbols */ diff --git a/server/drivers/curses_drv.c b/server/drivers/curses_drv.c index 44140b20..2bae270b 100644 --- a/server/drivers/curses_drv.c +++ b/server/drivers/curses_drv.c @@ -68,6 +68,8 @@ Different implementations of (n)curses available on: #include "shared/report.h" +#include "../elektragen.h" + // ACS_S9 and ACS_S1 are defined as part of XSI Curses standard, Issue 4. // However, ACS_S3 and ACS_S7 are not; these definitions were created to support // commonly available graphics found in many terminfo definitions. The acsc character @@ -134,7 +136,7 @@ MODULE_EXPORT char *symbol_prefix = "curses_"; /* local helper functions */ static void curses_wborder (Driver *drvthis); -static chtype get_color_by_name (char *colorname, chtype default_color); +static chtype map_color_to_curses (CursesColor color); static void curses_restore_screen (Driver *drvthis); @@ -148,8 +150,6 @@ MODULE_EXPORT int curses_init (Driver *drvthis, Elektra * elektra) { PrivateData *p; - char buf[256]; - int tmp; // Colors.... chtype back_color = DEFAULT_BACKGROUND_COLOR, @@ -180,31 +180,26 @@ curses_init (Driver *drvthis, Elektra * elektra) /* Get color settings */ + CursesDriverConfig config; + elektraGet2V(elektra, &config, ELEKTRA_TAG_CURSES, drvthis->index); + /* foreground color */ - strncpy(buf, drvthis->config_get_string(drvthis->name, "Foreground", 0, CONF_DEF_FOREGR), sizeof(buf)); - buf[sizeof(buf)-1] = '\0'; - fore_color = get_color_by_name(buf, DEFAULT_FOREGROUND_COLOR); - debug(RPT_DEBUG, "%s: using foreground color %s", drvthis->name, buf); + fore_color = map_color_to_curses(config.foreground); + debug(RPT_DEBUG, "%s: using foreground color %s", drvthis->name, ELEKTRA_TO_STRING(EnumCursesColor) (config.foreground)); /* background color */ - strncpy(buf, drvthis->config_get_string(drvthis->name, "Background", 0, CONF_DEF_BACKGR), sizeof(buf)); - buf[sizeof(buf)-1] = '\0'; - back_color = get_color_by_name(buf, DEFAULT_BACKGROUND_COLOR); - debug(RPT_DEBUG, "%s: using background color %s", drvthis->name, buf); + back_color = map_color_to_curses(config.background); + debug(RPT_DEBUG, "%s: using background color %s", drvthis->name, ELEKTRA_TO_STRING(EnumCursesColor) (config.background)); /* backlight color */ - strncpy(buf, drvthis->config_get_string(drvthis->name, "Backlight", 0, CONF_DEF_BACKLIGHT), sizeof(buf)); - buf[sizeof(buf)-1] = '\0'; - backlight_color = get_color_by_name(buf, DEFAULT_BACKGROUND_COLOR); - debug(RPT_DEBUG, "%s: using backlight color %s", drvthis->name, buf); + backlight_color = map_color_to_curses(config.backlight); + debug(RPT_DEBUG, "%s: using backlight color %s", drvthis->name, ELEKTRA_TO_STRING(EnumCursesColor) (config.backlight)); /* use ACS characters? */ - p->useACS = drvthis->config_get_bool(drvthis->name, "UseACS", 0, CONF_DEF_USEACS); - debug(RPT_DEBUG, "%s: using ACS %s", drvthis->name, (p->useACS) ? "ON" : "OFF"); + p->useACS = config.useacs; /* draw border ? */ - p->drawBorder = drvthis->config_get_bool(drvthis->name, "DrawBorder", 0, CONF_DEF_DRAWBORDER); - debug(RPT_DEBUG, "%s: drawing Border %s", drvthis->name, (p->drawBorder) ? "ON" : "OFF"); + p->drawBorder = config.drawborder; /* Get size settings */ if ((drvthis->request_display_width() > 0) @@ -215,33 +210,29 @@ curses_init (Driver *drvthis, Elektra * elektra) } else { /* Use our own size from config file */ - strncpy(buf, drvthis->config_get_string(drvthis->name, "Size", 0, CONF_DEF_SIZE), sizeof(buf)); - buf[sizeof(buf)-1] = '\0'; - if ((sscanf(buf , "%dx%d", &p->width, &p->height) != 2) + if ((sscanf(config.size , "%dx%d", &p->width, &p->height) != 2) || (p->width <= 0) || (p->width > LCD_MAX_WIDTH) || (p->height <= 0) || (p->height > LCD_MAX_HEIGHT)) { report(RPT_WARNING, "%s: cannot read Size: %s; using default %s", - drvthis->name, buf, CONF_DEF_SIZE); + drvthis->name, config.size, CONF_DEF_SIZE); sscanf(CONF_DEF_SIZE, "%dx%d", &p->width, &p->height); } } /*Get position settings*/ - tmp = drvthis->config_get_int(drvthis->name, "TopLeftX", 0, CONF_DEF_TOP_LEFT_X); - if ((tmp < 0) || (tmp > 255)) { + if ((config.topleftx < 0) || (config.topleftx > 255)) { report(RPT_WARNING, "%s: TopLeftX must be between 0 and 255; using default %d", drvthis->name, CONF_DEF_TOP_LEFT_X); - tmp = CONF_DEF_TOP_LEFT_X; + config.topleftx = CONF_DEF_TOP_LEFT_X; } - p->xoffs = tmp; + p->xoffs = config.topleftx; - tmp = drvthis->config_get_int(drvthis->name, "TopLeftY", 0, CONF_DEF_TOP_LEFT_Y); - if ((tmp < 0) || (tmp > 255)) { + if ((config.toplefty < 0) || (config.toplefty > 255)) { report(RPT_WARNING, "%s: TopLeftY must be between 0 and 255; using default %d", drvthis->name, CONF_DEF_TOP_LEFT_Y); - tmp = CONF_DEF_TOP_LEFT_Y; + config.toplefty = CONF_DEF_TOP_LEFT_Y; } - p->yoffs = tmp; + p->yoffs = config.toplefty; //debug: sleep(1); @@ -708,25 +699,27 @@ curses_wborder (Driver *drvthis) static chtype -get_color_by_name (char *colorname, chtype default_color) { - if (strcasecmp(colorname, "red") == 0) - return COLOR_RED; - else if (strcasecmp(colorname, "black") == 0) - return COLOR_BLACK; - else if (strcasecmp(colorname, "green") == 0) - return COLOR_GREEN; - else if (strcasecmp(colorname, "yellow") == 0) - return COLOR_YELLOW; - else if (strcasecmp(colorname, "blue") == 0) - return COLOR_BLUE; - else if (strcasecmp(colorname, "magenta") == 0) - return COLOR_MAGENTA; - else if (strcasecmp(colorname, "cyan") == 0) - return COLOR_CYAN; - else if (strcasecmp(colorname, "white") == 0) - return COLOR_WHITE; - - return default_color; +map_color_to_curses (CursesColor color) { + switch(color) { + case CURSES_COLOR_RED: + return COLOR_RED; + case CURSES_COLOR_BLACK: + return COLOR_BLACK; + case CURSES_COLOR_GREEN: + return COLOR_GREEN; + case CURSES_COLOR_YELLOW: + return COLOR_YELLOW; + case CURSES_COLOR_BLUE: + return COLOR_BLUE; + case CURSES_COLOR_MAGENTA: + return COLOR_MAGENTA; + case CURSES_COLOR_CYAN: + return COLOR_CYAN; + case CURSES_COLOR_WHITE: + return COLOR_WHITE; + default: + return -1; + } } From 624d7783cd1ebc827a505786ae8c4324cfa5ad84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Wed, 15 May 2019 02:17:28 +0200 Subject: [PATCH 07/72] all: ignore elektragen files --- clients/lcdexec/.cvsignore | 2 + clients/lcdproc/.cvsignore | 2 + clients/lcdvc/.cvsignore | 2 + server/.cvsignore | 2 + server/elektragen.c | 19422 ------------------- server/elektragen.h | 36230 ----------------------------------- 6 files changed, 8 insertions(+), 55652 deletions(-) delete mode 100644 server/elektragen.c delete mode 100644 server/elektragen.h diff --git a/clients/lcdexec/.cvsignore b/clients/lcdexec/.cvsignore index 5b403431..2b176a28 100644 --- a/clients/lcdexec/.cvsignore +++ b/clients/lcdexec/.cvsignore @@ -2,3 +2,5 @@ Makefile Makefile.in lcdexec +elektragen.c +elektragen.h \ No newline at end of file diff --git a/clients/lcdproc/.cvsignore b/clients/lcdproc/.cvsignore index 74899372..00e5afac 100644 --- a/clients/lcdproc/.cvsignore +++ b/clients/lcdproc/.cvsignore @@ -2,3 +2,5 @@ Makefile Makefile.in lcdproc +elektragen.c +elektragen.h \ No newline at end of file diff --git a/clients/lcdvc/.cvsignore b/clients/lcdvc/.cvsignore index 4ba0d9dd..83537c35 100644 --- a/clients/lcdvc/.cvsignore +++ b/clients/lcdvc/.cvsignore @@ -2,3 +2,5 @@ Makefile Makefile.in lcdvc +elektragen.c +elektragen.h \ No newline at end of file diff --git a/server/.cvsignore b/server/.cvsignore index 63df6b10..3c57b4d7 100644 --- a/server/.cvsignore +++ b/server/.cvsignore @@ -3,3 +3,5 @@ LCDd Makefile Makefile.in main.d +elektragen.c +elektragen.h \ No newline at end of file diff --git a/server/elektragen.c b/server/elektragen.c deleted file mode 100644 index 0033449c..00000000 --- a/server/elektragen.c +++ /dev/null @@ -1,19422 +0,0 @@ -// clang-format off - - -// clang-format on -/** - * @file - * - * This file was automatically generated using `kdb gen elektra`. - * Any changes will be overwritten, when the file is regenerated. - * - * @copyright BSD Zero Clause License - * - * Copyright (C) 2019 Elektra Initiative (https://libelektra.org) - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND - * FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR - * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#include "elektragen.h" - - - -#include -#include -#include - -#include -#include -#include - -#include - -static Key * helpKey = NULL; - - -/** - * Initializes an instance of Elektra for the application '/sw/lcdproc/lcdd/#0/current'. - * - * This can be invoked as many times as you want, however it is not a cheap operation, - * so you should try to reuse the Elektra handle as much as possible. - * - * @param elektra A reference to where the Elektra instance shall be stored. - * Has to be disposed of with elektraClose(). - * @param error A reference to an ElektraError pointer. Will be passed to elektraOpen(). - * - * @retval 0 on success, @p elektra will be set, @p error will be unchanged - * @retval -1 on error, @p elektra will be unchanged, @p error will be set - * @retval 1 specload mode, exit as soon as possible and must DO NOT write anything to stdout, - * @p elektra and @p error are both unchanged - * @retval 2 help mode, '-h' or '--help' was specified call printHelpMessage and exit - * @p elektra and @p error are both unchanged - * IMPORTANT: there will be memory leaks, if you don't call printHelpMessage !! - * - * @see elektraOpen - */// -int loadConfiguration (Elektra ** elektra, ElektraError ** error) -{ - KeySet * defaults = ksNew (595, - keyNew("", KEY_META, "infos/plugins", "ini validation type", KEY_META, "mountpoint", "LCDd.conf", KEY_END), - keyNew ("/bayrad/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a bayrad driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "BayradDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/bayrad/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/bayrad/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/bayrad/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/bayrad/#/file", KEY_VALUE, "bayrad", KEY_META, "default", "bayrad", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/bayrad/#/offbrightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/bayrad/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/bayrad/#/speed", KEY_VALUE, "9600", KEY_META, "check/range", "1200, 2400, 9600, 19200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/cfontz/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a CFontz driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "CFontzDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/cfontz/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/cfontz/#/contrast", KEY_VALUE, "350", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "350", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/cfontz/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/cfontz/#/file", KEY_VALUE, "CFontz", KEY_META, "default", "CFontz", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/cfontz/#/newfirmware", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Set the firmware version (New means >= 2.0)", KEY_META, "type", "boolean", KEY_END), - keyNew ("/cfontz/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness. This value is used when the display is normally switched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/cfontz/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/cfontz/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Select the LCD size", KEY_META, "type", "string", KEY_END), - keyNew ("/cfontz/#/speed", KEY_VALUE, "9600", KEY_META, "check/range", "1200, 2400, 9600, 19200, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/cfontzpacket/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a CFontzPacket driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "CFontzPacketDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/cfontzpacket/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/cfontzpacket/#/contrast", KEY_VALUE, "350", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "350", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/cfontzpacket/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "type", "string", KEY_END), - keyNew ("/cfontzpacket/#/file", KEY_VALUE, "CFontzPacket", KEY_META, "default", "CFontzPacket", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/cfontzpacket/#/model", KEY_VALUE, "633", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "533", KEY_META, "check/enum/#1", "631", KEY_META, "check/enum/#2", "633", KEY_META, "check/enum/#3", "635", KEY_META, "check/type", "enum", KEY_META, "default", "633", KEY_META, "description", "Select the LCD model", KEY_META, "gen/enum/type", "CFontzPacketModel", KEY_META, "type", "enum", KEY_END), - keyNew ("/cfontzpacket/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness. This value is used when the display is normally switched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/cfontzpacket/#/oldfirmware", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Very old 633 firmware versions do not support partial screen updates using \'Send Data to LCD\' command (31). For those devices it may be necessary to enable this flag", KEY_META, "type", "boolean", KEY_END), - keyNew ("/cfontzpacket/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/cfontzpacket/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Override the LCD size known for the selected model. Usually setting this value should not be necessary.", KEY_META, "type", "string", KEY_END), - keyNew ("/cfontzpacket/#/speed", KEY_VALUE, "115200", KEY_META, "check/range", "19200, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "115200", KEY_META, "description", "Override the default communication speed known for the selected model. Default value depends on model.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/cfontzpacket/#/usb", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Enable the USB flag if the device is connected to an USB port. For serial ports leave it disabled.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/curses/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a curses driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "CursesDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/curses/#/background", KEY_VALUE, "cyan", KEY_META, "check/enum", "#7", KEY_META, "check/enum/#0", "red", KEY_META, "check/enum/#1", "black", KEY_META, "check/enum/#2", "green", KEY_META, "check/enum/#3", "yellow", KEY_META, "check/enum/#4", "blue", KEY_META, "check/enum/#5", "magenta", KEY_META, "check/enum/#6", "cyan", KEY_META, "check/enum/#7", "white", KEY_META, "check/type", "enum", KEY_META, "default", "cyan", KEY_META, "description", "background color when \"backlight\" is off", KEY_META, "gen/enum/type", "CursesColor", KEY_META, "type", "enum", KEY_END), - keyNew ("/curses/#/backlight", KEY_VALUE, "red", KEY_META, "check/enum", "#7", KEY_META, "check/enum/#0", "red", KEY_META, "check/enum/#1", "black", KEY_META, "check/enum/#2", "green", KEY_META, "check/enum/#3", "yellow", KEY_META, "check/enum/#4", "blue", KEY_META, "check/enum/#5", "magenta", KEY_META, "check/enum/#6", "cyan", KEY_META, "check/enum/#7", "white", KEY_META, "check/type", "enum", KEY_META, "default", "red", KEY_META, "description", "background color when \"backlight\" is on", KEY_META, "gen/enum/type", "CursesColor", KEY_META, "type", "enum", KEY_END), - keyNew ("/curses/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/curses/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/curses/#/drawborder", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "draw Border", KEY_META, "type", "boolean", KEY_END), - keyNew ("/curses/#/file", KEY_VALUE, "curses", KEY_META, "default", "curses", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/curses/#/foreground", KEY_VALUE, "blue", KEY_META, "check/enum", "#7", KEY_META, "check/enum/#0", "red", KEY_META, "check/enum/#1", "black", KEY_META, "check/enum/#2", "green", KEY_META, "check/enum/#3", "yellow", KEY_META, "check/enum/#4", "blue", KEY_META, "check/enum/#5", "magenta", KEY_META, "check/enum/#6", "cyan", KEY_META, "check/enum/#7", "white", KEY_META, "check/type", "enum", KEY_META, "default", "blue", KEY_META, "description", "Color settings", KEY_META, "gen/enum/type", "CursesColor", KEY_META, "type", "enum", KEY_END), - keyNew ("/curses/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/curses/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/curses/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), - keyNew ("/curses/#/topleftx", KEY_VALUE, "7", KEY_META, "check/type", "unsigned_short", KEY_META, "check/validation", "([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "7", KEY_META, "description", "What position (X,Y) to start the left top corner at...", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/curses/#/toplefty", KEY_VALUE, "7", KEY_META, "check/type", "unsigned_short", KEY_META, "check/validation", "([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "7", KEY_META, "description", "What position (X,Y) to start the left top corner at...", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/curses/#/useacs", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "use ASC symbols for icons & bars", KEY_META, "type", "boolean", KEY_END), - keyNew ("/cwlnx/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a CwLnx driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "CwLnxDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/cwlnx/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/cwlnx/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/cwlnx/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/cwlnx/#/file", KEY_VALUE, "CwLnx", KEY_META, "default", "CwLnx", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/cwlnx/#/keymap_a", KEY_VALUE, "Up", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("/cwlnx/#/keymap_b", KEY_VALUE, "Down", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("/cwlnx/#/keymap_c", KEY_VALUE, "Left", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("/cwlnx/#/keymap_d", KEY_VALUE, "Right", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("/cwlnx/#/keymap_e", KEY_VALUE, "Enter", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("/cwlnx/#/keymap_f", KEY_VALUE, "Escape", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("/cwlnx/#/keypad", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If you have a keypad connected. Keypad layout is currently not configureable from the config file.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/cwlnx/#/keypad_test_mode", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "permits one to test keypad assignment", KEY_META, "type", "boolean", KEY_END), - keyNew ("/cwlnx/#/model", KEY_VALUE, "12232", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "12232", KEY_META, "check/enum/#1", "12832", KEY_META, "check/enum/#2", "1602", KEY_META, "check/type", "enum", KEY_META, "default", "12232", KEY_META, "description", "Select the LCD model", KEY_META, "gen/enum/type", "CwLnxModel", KEY_META, "type", "enum", KEY_END), - keyNew ("/cwlnx/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/cwlnx/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/cwlnx/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Select the LCD size. Default depends on model: \n12232: 20x4 \n12832: 21x4 \n1602: 16x2", KEY_META, "type", "string", KEY_END), - keyNew ("/cwlnx/#/speed", KEY_VALUE, "19200", KEY_META, "check/range", "9600, 19200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/ea65/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a ea65 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Ea65DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/ea65/#/brightness", KEY_VALUE, "500", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "As the VFD is self luminescent we don\'t have a backlight\nBut we can use the backlight functions to control the front LEDs\nBrightness 0 to 299 -> LEDs off\nBrightness 300 to 699 -> LEDs half bright\nBrightness 700 to 1000 -> LEDs full bright", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/ea65/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/ea65/#/file", KEY_VALUE, "ea65", KEY_META, "default", "ea65", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/ea65/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "OffBrightness is the the value used for the \'backlight off\' state", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/ea65/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/eyeboxone/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a EyeboxOne driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "EyeboxOneDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/eyeboxone/#/backlight", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Switch on the backlight\?", KEY_META, "type", "boolean", KEY_END), - keyNew ("/eyeboxone/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/eyeboxone/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/eyeboxone/#/cursor", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Switch on the cursor\?", KEY_META, "type", "boolean", KEY_END), - keyNew ("/eyeboxone/#/device", KEY_VALUE, "/dev/ttyS1", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/eyeboxone/#/downkey", KEY_VALUE, "B", KEY_META, "check/type", "string", KEY_META, "default", "B", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), - keyNew ("/eyeboxone/#/escapekey", KEY_VALUE, "P", KEY_META, "check/type", "string", KEY_META, "default", "P", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), - keyNew ("/eyeboxone/#/file", KEY_VALUE, "EyeboxOne", KEY_META, "default", "EyeboxOne", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/eyeboxone/#/keypad_test_mode", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "You can find out which key of your display sends which\ncharacter by setting keypad_test_mode to yes and running\nLCDd. LCDd will output all characters it receives.\nAfterwards you can modify the settings above and set\nkeypad_set_mode to no again.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/eyeboxone/#/leftkey", KEY_VALUE, "D", KEY_META, "check/type", "string", KEY_META, "default", "D", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), - keyNew ("/eyeboxone/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/eyeboxone/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/eyeboxone/#/rightkey", KEY_VALUE, "C", KEY_META, "check/type", "string", KEY_META, "default", "C", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), - keyNew ("/eyeboxone/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Set the display size", KEY_META, "type", "string", KEY_END), - keyNew ("/eyeboxone/#/speed", KEY_VALUE, "19200", KEY_META, "check/range", "1200, 2400, 9600, 19200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/eyeboxone/#/upkey", KEY_VALUE, "A", KEY_META, "check/type", "string", KEY_META, "default", "A", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), - keyNew ("/futaba/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a futaba driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "FutabaDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/futaba/#/file", KEY_VALUE, "futaba", KEY_META, "default", "futaba", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/g15/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a g15 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "G15DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/g15/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/g15/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/g15/#/file", KEY_VALUE, "g15", KEY_META, "default", "g15", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/g15/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/g15/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/g15/#/size", KEY_VALUE, "20x5", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x5", KEY_META, "description", "Display size (currently unused)", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a glcd driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "GlcdDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/glcd/#/bidirectional", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Use LPT port in bi-directional mode. This should work on most LPT port and is required for proper timing!", KEY_META, "type", "boolean", KEY_END), - keyNew ("/glcd/#/brightness", KEY_VALUE, "800", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "800", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/glcd/#/cellsize", KEY_VALUE, "6x8", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "6x8", KEY_META, "description", "Width and height of a character cell in pixels. This value is only used the driver has been compiled with FreeType and it is enabled. Otherwise the default 6x8 cell is used.", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#/connectiontype", KEY_VALUE, "t6963", KEY_META, "check/enum", "#6", KEY_META, "check/enum/#0", "t6963", KEY_META, "check/enum/#1", "png", KEY_META, "check/enum/#2", "serdisplib", KEY_META, "check/enum/#3", "glcd2usb", KEY_META, "check/enum/#4", "x11", KEY_META, "check/enum/#5", "picolcdgfx", KEY_META, "check/enum/#6", "xyz", KEY_META, "check/type", "enum", KEY_META, "default", "t6963", KEY_META, "description", "Select what type of connection. See documentation for types.", KEY_META, "gen/enum/type", "GlcdConnectionType", KEY_META, "type", "enum", KEY_END), - keyNew ("/glcd/#/contrast", KEY_VALUE, "600", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "600", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/glcd/#/delaybus", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Insert additional delays into reads / writes.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/glcd/#/file", KEY_VALUE, "glcd", KEY_META, "default", "glcd", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#/fonthasicons", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Some fonts miss the Unicode characters used to represent icons. In this case the built-in 5x8 font can used if this option is turned off.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/glcd/#/keymap_a", KEY_VALUE, "Up", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#/keymap_b", KEY_VALUE, "Down", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#/keymap_c", KEY_VALUE, "Left", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#/keymap_d", KEY_VALUE, "Right", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#/keymap_e", KEY_VALUE, "Enter", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#/keymap_f", KEY_VALUE, "Escape", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#/keyrepeatdelay", KEY_VALUE, "500", KEY_META, "check/range", "0-3000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "Time (ms) from first key report to first repeat. Set to 0 to disable repeated key reports.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/glcd/#/keyrepeatinterval", KEY_VALUE, "500", KEY_META, "check/range", "0-3000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "Time (ms) between repeated key reports. Ignored if KeyRepeatDelay is disabled (set to zero).", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/glcd/#/normal_font", KEY_VALUE, "/usr/local/lib/X11/fonts/TTF/andalemo.ttf", KEY_META, "check/type", "string", KEY_META, "default", "/usr/local/lib/X11/fonts/TTF/andalemo.ttf", KEY_META, "description", "Path to font file to use for FreeType rendering. This font must be monospace and should contain some special Unicode characters like arrows (Andale Mono is recommended and can be fetched at http://corefonts.sf.net).", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#/offbrightness", KEY_VALUE, "100", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "100", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/glcd/#/picolcdgfx_inverted", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Inverts the pixels.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/glcd/#/picolcdgfx_keytimeout", KEY_VALUE, "125", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9][0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Number must be any positive integer >0", KEY_META, "default", "125", KEY_META, "description", "Time in ms for usb_read to wait on a key press.", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#/port", KEY_VALUE, "0x378", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([2-3][0-9A-F]{2}|400)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. legal: 0x200 - 0x400", KEY_META, "default", "0x378", KEY_META, "description", "Parallel port to use", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/glcd/#/serdisp_device", KEY_VALUE, "/dev/ppi0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ppi0", KEY_META, "description", "The display device to use, e.g. serraw:/dev/ttyS0, parport:/dev/parport0 or USB:07c0/1501", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#/serdisp_name", KEY_VALUE, "t6963", KEY_META, "check/type", "string", KEY_META, "default", "t6963", KEY_META, "description", "Name of the underlying serdisplib driver, e.g. ctinclud. See", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#/serdisp_options", KEY_VALUE, "INVERT=1", KEY_META, "check/type", "string", KEY_META, "default", "INVERT=1", KEY_META, "description", "Options string to pass to serdisplib during initialization. Use\nthis to set any display related options (e.g. wiring). The display size is\nalways set based on the Size configured above! By default, no options are\nset.\nImportant: The value must be quoted as it contains equal signs!", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#/size", KEY_VALUE, "128x64", KEY_META, "check/type", "string", KEY_META, "check/validation", "(640|[1-9]|[1-9][0-9]|[1-5][0-9][0-9]|6[0-3][0-9])x(480|[1-9]|[1-9][0-9]|[1-3][0-9][0-9]|4[0-7][0-9])", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. legal: 1x1 - 640x480", KEY_META, "default", "128x64", KEY_META, "description", "Width and height of the display in pixel. The supported sizes may depend on the ConnectionType", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#/useft2", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If LCDproc has been compiled with FreeType 2 support this option can be used to turn if off intentionally.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/glcd/#/x11_backlightcolor", KEY_VALUE, "0x80FF80", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{6}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Colors are in RRGGBB format prefixed with \"0x\"", KEY_META, "default", "0x80FF80", KEY_META, "description", "The color of the backlight as full brightness.", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#/x11_border", KEY_VALUE, "20", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "^([1-9]\\d*|0)$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "20", KEY_META, "description", "Adds a border (empty space) around the LCD portion of X11 window.", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("/glcd/#/x11_inverted", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Inverts the pixels.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/glcd/#/x11_pixelcolor", KEY_VALUE, "0x000000", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{6}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Colors are in RRGGBB format prefixed with \"0x\"", KEY_META, "default", "0x000000", KEY_META, "description", "The color of each dot at full contrast.", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#/x11_pixelsize", KEY_VALUE, "3+1", KEY_META, "check/type", "string", KEY_META, "check/validation", "\\d+\\+\\d+", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "[number]+[number] has to be provided, eg: 3+1 or 5+2", KEY_META, "default", "3+1", KEY_META, "description", "Each LCD dot is drawn in the X window as a filled rectangle of this size\n plus a gap between each filled rectangle. A PixelSize of 3+1\n would draw a 3x3 filled rectangle with a gap of 1 pixel to the right and\n bottom, effectively using a 4x4 area of the window. Default is 3+1.", KEY_META, "type", "string", KEY_END), - keyNew ("/glcdlib/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a glcdlib driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "GlcdlibDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/glcdlib/#/CharEncoding", KEY_VALUE, "iso8859-2", KEY_META, "check/type", "string", KEY_META, "default", "iso8859-2", KEY_META, "description", "character encoding to use", KEY_META, "type", "string", KEY_END), - keyNew ("/glcdlib/#/backlight", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), - keyNew ("/glcdlib/#/brightness", KEY_VALUE, "50", KEY_META, "check/range", "0-100", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "50", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/glcdlib/#/contrast", KEY_VALUE, "50", KEY_META, "check/range", "0-100", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "50", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/glcdlib/#/driver", KEY_VALUE, "image", KEY_META, "check/type", "string", KEY_META, "default", "image", KEY_META, "description", "\nSpecify which graphical display supported by graphlcd-base to use.\n Legal values for GRAPHLCD-DRIVER are\n specified in graphlcd\'s configuration file /etc/graphlcd.conf.\n For graphlcd 0.13 they comprise avrctl, framebuffer, gu140x32f, gu256x64-372, \n gu256x64C-3xx0, hd61830, image, ks0108, noritake800, sed1330, sed1520, serdisp, simlcd, t6963c\n", KEY_META, "type", "string", KEY_END), - keyNew ("/glcdlib/#/file", KEY_VALUE, "glcdlib", KEY_META, "default", "glcdlib", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/glcdlib/#/fontfile", KEY_VALUE, "/usr/share/fonts/corefonts/courbd.ttf", KEY_META, "check/type", "string", KEY_META, "default", "/usr/share/fonts/corefonts/courbd.ttf", KEY_META, "description", "path to font file to use", KEY_META, "type", "string", KEY_END), - keyNew ("/glcdlib/#/invert", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), - keyNew ("/glcdlib/#/minfontfacesize", KEY_VALUE, "7x12", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "7x12", KEY_META, "description", "path to font file to use", KEY_META, "type", "string", KEY_END), - keyNew ("/glcdlib/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/glcdlib/#/pixelshiftx", KEY_VALUE, "0", KEY_META, "check/type", "short", KEY_META, "check/validation", "([0-9]+)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "0", KEY_META, "type", "short", KEY_END), - keyNew ("/glcdlib/#/pixelshifty", KEY_VALUE, "2", KEY_META, "check/type", "short", KEY_META, "check/validation", "([0-9]+)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "2", KEY_META, "type", "short", KEY_END), - keyNew ("/glcdlib/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/glcdlib/#/showbigborder", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), - keyNew ("/glcdlib/#/showdebugframe", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), - keyNew ("/glcdlib/#/showthinborder", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "type", "boolean", KEY_END), - keyNew ("/glcdlib/#/textresolution", KEY_VALUE, "16x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x4", KEY_META, "description", "Text resolution in fixed width characters.\n(if it won\'t fit according to available physical pixel resolution\nand the minimum available font face size in pixels, then\n\'DebugBorder\' will automatically be turned on)", KEY_META, "type", "string", KEY_END), - keyNew ("/glcdlib/#/upsidedown", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), - keyNew ("/glcdlib/#/useft2", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "no=use graphlcd bitmap fonts (they have only one size / font file)\nyes=use fonts supported by FreeType2 (needs Freetype2 support in\nlibglcdprocdriver and its dependants)", KEY_META, "type", "boolean", KEY_END), - keyNew ("/glk/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a glk driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "GlkDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/glk/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/glk/#/contrast", KEY_VALUE, "500", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/glk/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "select the serial device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/glk/#/file", KEY_VALUE, "glk", KEY_META, "default", "glk", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/glk/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/glk/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/glk/#/speed", KEY_VALUE, "19200", KEY_META, "check/range", "9600, 19200, 38400, 57600, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "set the serial port speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/hd44780/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a hd44780 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Hd44780DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/hd44780/#/backlight", KEY_VALUE, "none", KEY_META, "check/enum", "#8", KEY_META, "check/enum/#0", "none", KEY_META, "check/enum/#1", "external", KEY_META, "check/enum/#2", "internal", KEY_META, "check/enum/#3", "internalCmds", KEY_META, "check/type", "enum", KEY_META, "default", "none", KEY_META, "description", "Specify if you have a switchable backlight and if yes, can select method for turning it on/off:\n#\n- none - no switchable backlight is available.\n- external - use external pin or any other method defined with ConnectionType backlight\n handling.\n- internal - means that backlight is handled using internal commands according\n to selected display model (with Model option). Depending on model,\n Brightness and OffBrightness options can be taken into account.\n- internalCmds - means that commands for turning on and off backlight are given\n with extra options BacklightOnCmd and BacklightOffCmd, which would be treated\n as catch up (last resort) for other types of displays which have similar features.\n#\nYou can provide multiple occurences of this option to use more than one method.\nDefault is model specific: Winstar OLED and PT6314 VFD enables internal backlight mode,\nfor others it is set to none.", KEY_META, "gen/enum/type", "HD44780Backlight", KEY_META, "type", "enum", KEY_END), - keyNew ("/hd44780/#/backlightcmdoff", KEY_VALUE, "0x1234", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{4}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "4 bytes can be encoded, as integer number in big-endian order (0x0000-0xFFFF)", KEY_META, "default", "0x1234", KEY_META, "description", "Commands for disabling internal backlight for use with Backlight=internalCmds.\nUp to 4 bytes can be encoded, as integer number in big-endian order.", KEY_META, "type", "string", KEY_END), - keyNew ("/hd44780/#/backlightcmdon", KEY_VALUE, "0x1223", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{4}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "4 bytes can be encoded, as integer number in big-endian order (0x0000-0xFFFF)", KEY_META, "default", "0x1223", KEY_META, "description", "Commands for enabling internal backlight for use with Backlight=internalCmds.\nUp to 4 bytes can be encoded, as integer number in big-endian order.\n#\nNOTE: this is advanced option, if command contains bits other than only brighness handling,\nthey must be set accordingly to not disrupt display state. If for example \'FUNCTION SET\' command\nis used for this purpose, bits of interface length (4-bit / 8-bit) must be set according to\nselected ConnectionType.", KEY_META, "type", "string", KEY_END), - keyNew ("/hd44780/#/brightness", KEY_VALUE, "800", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "800", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/hd44780/#/charmap", KEY_VALUE, "hd44780_default", KEY_META, "check/enum", "#7", KEY_META, "check/enum/#0", "hd44780_default", KEY_META, "check/enum/#1", "hd44780_euro", KEY_META, "check/enum/#2", "ea_ks0073", KEY_META, "check/enum/#3", "sed1278f_0b", KEY_META, "check/enum/#4", "hd44780_koi8_r", KEY_META, "check/enum/#5", "hd44780_cp1251", KEY_META, "check/enum/#6", "hd44780_8859_5", KEY_META, "check/enum/#7", "upd16314", KEY_META, "check/type", "enum", KEY_META, "default", "hd44780_default", KEY_META, "description", "Character map to to map ISO-8859-1 to the LCD\'s character set. (hd44780_koi8_r, hd44780_cp1251, hd44780_8859_5, upd16314 and weh001602a_1\nare possible if compiled with additional charmaps)", KEY_META, "gen/enum/type", "HD44780Charmap", KEY_META, "type", "enum", KEY_END), - keyNew ("/hd44780/#/connectiontype", KEY_VALUE, "4bit", KEY_META, "check/enum", "#_27", KEY_META, "check/enum/#0", "4bit", KEY_META, "check/enum/#1", "8bit", KEY_META, "check/enum/#2", "winamp", KEY_META, "check/enum/#3", "lcm162", KEY_META, "check/enum/#4", "serialLpt", KEY_META, "check/enum/#5", "picanlcd", KEY_META, "check/enum/#6", "lcdserializer", KEY_META, "check/enum/#7", "los-panel", KEY_META, "check/enum/#8", "vdr-lcd", KEY_META, "check/enum/#9", "vdr-wakeup", KEY_META, "check/enum/#_10", "ezio", KEY_META, "check/enum/#_11", "pertelian", KEY_META, "check/enum/#_12", "lis2", KEY_META, "check/enum/#_13", "mplay", KEY_META, "check/enum/#_14", "usblcd", KEY_META, "check/enum/#_15", "bwctusb", KEY_META, "check/enum/#_16", "lcd2usb", KEY_META, "check/enum/#_17", "usbtiny", KEY_META, "check/enum/#_18", "uss720", KEY_META, "check/enum/#_19", "USB-4-all", KEY_META, "check/enum/#_20", "ftdi", KEY_META, "check/enum/#_21", "i2c", KEY_META, "check/enum/#_22", "piplate", KEY_META, "check/enum/#_23", "spi", KEY_META, "check/enum/#_24", "pifacecad", KEY_META, "check/enum/#_25", "ethlcd", KEY_META, "check/enum/#_26", "raspberrypi", KEY_META, "check/enum/#_27", "gpio", KEY_META, "check/type", "enum", KEY_META, "default", "4bit", KEY_META, "description", "Select what type of connection. See documentation for available types:\n https://github.com/lcdproc/lcdproc/blob/master/docs/lcdproc-user/drivers/hd44780.docbook", KEY_META, "gen/enum/type", "HD44780ConnectionType", KEY_META, "type", "enum", KEY_END), - keyNew ("/hd44780/#/contrast", KEY_VALUE, "800", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "800", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/hd44780/#/delaybus", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "You can reduce the inserted delays by setting this to false.\nOn fast PCs it is possible your LCD does not respond correctly.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/hd44780/#/delaymult", KEY_VALUE, "1", KEY_META, "check/range", "1, 2, 4, 8, 16", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1", KEY_META, "description", "If your display is slow and cannot keep up with the flow of data from\nLCDd, garbage can appear on the LCDd. Set this delay factor to 2 or 4\nto increase the delays.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/hd44780/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Device of the serial, I2C, or SPI interface", KEY_META, "type", "string", KEY_END), - keyNew ("/hd44780/#/extendedmode", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If you have an HD66712, a KS0073 or another controller with \'extended mode\',\nset this flag to get into 4-line mode. On displays with just two lines, do\nnot set this flag.\nAs an additional restriction, controllers with and without extended mode\nAND 4 lines cannot be mixed for those connection types that support more\nthan one display!\nNOTE: This option is deprecated in favour of choosing Model=extended option.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/hd44780/#/file", KEY_VALUE, "hd44780", KEY_META, "default", "hd44780", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/hd44780/#/fontbank", KEY_VALUE, "0", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "0", KEY_META, "check/enum/#1", "1", KEY_META, "check/enum/#2", "2", KEY_META, "check/enum/#3", "3", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Font bank to be used for some displays such as the WINSTAR WEH001602A\n0: English/Japanese (default)\n1: Western Europe I\n2: English/Rusian\n3: Western Europe II", KEY_META, "gen/enum/type", "HD44780Fontbank", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/hd44780/#/keepalivedisplay", KEY_VALUE, "0", KEY_META, "check/range", "0-10", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Some displays (e.g. vdr-wakeup) need a message from the driver to that it\nis still alive. When set to a value bigger then null the character in the\nupper left corner is updated every seconds.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/hd44780/#/keymatrix_4_1", KEY_VALUE, "Enter", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "If you have a keypad you can assign keystrings to the keys. See\ndocumentation for used terms and how to wire it. For example to give directly connected\nkey 4 the string \'Enter\', use:\n KeyDirect_4=Enter For matrix keys use the\nX and Y coordinates of the key: \n KeyMatrix_1_3=Enter", KEY_META, "type", "string", KEY_END), - keyNew ("/hd44780/#/keymatrix_4_2", KEY_VALUE, "Up", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "If you have a keypad you can assign keystrings to the keys. See\ndocumentation for used terms and how to wire it. For example to give directly connected\nkey 4 the string \'Enter\', use:\n KeyDirect_4=Enter For matrix keys use the\nX and Y coordinates of the key: \n KeyMatrix_1_3=Enter", KEY_META, "type", "string", KEY_END), - keyNew ("/hd44780/#/keymatrix_4_3", KEY_VALUE, "Down", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "If you have a keypad you can assign keystrings to the keys. See\ndocumentation for used terms and how to wire it. For example to give directly connected\nkey 4 the string \'Enter\', use:\n KeyDirect_4=Enter For matrix keys use the\nX and Y coordinates of the key: \n KeyMatrix_1_3=Enter", KEY_META, "type", "string", KEY_END), - keyNew ("/hd44780/#/keymatrix_4_4", KEY_VALUE, "Escape", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "If you have a keypad you can assign keystrings to the keys. See\ndocumentation for used terms and how to wire it. For example to give directly connected\nkey 4 the string \'Enter\', use:\n KeyDirect_4=Enter For matrix keys use the\nX and Y coordinates of the key: \n KeyMatrix_1_3=Enter", KEY_META, "type", "string", KEY_END), - keyNew ("/hd44780/#/keypad", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If you have a keypad connected.\nYou may also need to configure the keypad layout further on in this file.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/hd44780/#/lastline", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Specifies if the last line is pixel addressable (yes) or it controls an\nunderline effect (no).", KEY_META, "type", "boolean", KEY_END), - keyNew ("/hd44780/#/lineaddress", KEY_VALUE, "0x20", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a line Address. eg. 0x20, 0x10", KEY_META, "default", "0x20", KEY_META, "description", "In extended mode, on some controllers like the ST7036 (in 3 line mode) the next line in DDRAM won`t start 0x20 higher.", KEY_META, "type", "string", KEY_END), - keyNew ("/hd44780/#/model", KEY_VALUE, "standard", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "standard", KEY_META, "check/enum/#1", "extended", KEY_META, "check/enum/#2", "winstar_oled", KEY_META, "check/enum/#3", "pt6314_vfd", KEY_META, "check/type", "enum", KEY_META, "default", "standard", KEY_META, "description", "Select model if have non-standard one which require extra initialization or handling or\n just want extra features it offers.\n Available: standard (default), extended, winstar_oled, pt6314_vfd\n - standard is default, use for LCDs not mentioned below.\n - extended, hd66712, ks0073: allows use 4-line \'extended\' mode,\n same as deprecated now option ExtendedMode=yes\n - winstar_oled, weh00xxyya: changes initialization for WINSTAR\'s WEH00xxyyA displays\n and allows handling brightness\n - pt6314_vfd: allows handling brightness on PTC\'s PT6314 VFDs\n This option should be independent of connection type.", KEY_META, "type", "enum", KEY_END), - keyNew ("/hd44780/#/offbrightness", KEY_VALUE, "300", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "300", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/hd44780/#/outputport", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If you have the additional output port (\"bargraph\") and you want to be able to control it with the lcdproc OUTPUT command", KEY_META, "type", "boolean", KEY_END), - keyNew ("/hd44780/#/port", KEY_VALUE, "0x378", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{3}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Port must begin with \"0x\", followed by 3 Hexadezimal values, eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "I/O address of the LPT port. Usual values are: 0x278, 0x378 and 0x3BC. For I2C connections this sets the slave address (usually 0x20).", KEY_META, "type", "string", KEY_END), - keyNew ("/hd44780/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/hd44780/#/refreshdisplay", KEY_VALUE, "0", KEY_META, "check/range", "0-20", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "If you experience occasional garbage on your display you can use this\noption as workaround. If set to a value bigger than null it forces a\nfull screen refresh seconds.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/hd44780/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Specifies the size of the LCD. In case of multiple combined displays, this should be the total size.", KEY_META, "type", "string", KEY_END), - keyNew ("/hd44780/#/speed", KEY_VALUE, "0", KEY_META, "check/type", "unsigned_long", KEY_META, "default", "0", KEY_META, "description", "Bitrate of the serial port (0 for interface default)", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("/hd44780/#/vspan", KEY_META, "check/type", "string", KEY_META, "check/validation", "^([1-9][0-9]*(,[1-9][0-9]*)*)\?$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Declarations must look like this: 2,2 or 2,2,1", KEY_META, "default", "", KEY_META, "description", "For multiple combined displays: how many lines does each display have.\nVspan=2,2 means both displays have 2 lines.", KEY_META, "type", "string", KEY_END), - keyNew ("/icp_a106/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a icp_a106 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Icp_a106DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/icp_a106/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/icp_a106/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/icp_a106/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Device of the serial, I2C, or SPI interface", KEY_META, "type", "string", KEY_END), - keyNew ("/icp_a106/#/file", KEY_VALUE, "icp_a106", KEY_META, "default", "icp_a106", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/icp_a106/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/icp_a106/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/icp_a106/#/size", KEY_VALUE, "20x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x2", KEY_META, "description", "Display dimensions", KEY_META, "type", "string", KEY_END), - keyNew ("/imon/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a imon driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "ImonDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/imon/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/imon/#/charmap", KEY_VALUE, "none", KEY_META, "check/enum", "#5", KEY_META, "check/enum/#0", "hd44780_euro", KEY_META, "check/enum/#1", "upd16314", KEY_META, "check/enum/#2", "hd44780_koi8_r", KEY_META, "check/enum/#3", "hd44780_cp1251", KEY_META, "check/enum/#4", "hd44780_8859_5", KEY_META, "check/enum/#5", "none", KEY_META, "check/type", "enum", KEY_META, "default", "none", KEY_META, "description", "Character map to to map ISO-8859-1 to the displays character set. (upd16314, hd44780_koi8_r,\nhd44780_cp1251, hd44780_8859_5 are possible if compiled with additional\ncharmaps)", KEY_META, "gen/enum/type", "IMonCharmap", KEY_META, "type", "enum", KEY_END), - keyNew ("/imon/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/imon/#/device", KEY_VALUE, "/dev/lcd0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd0", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/imon/#/file", KEY_VALUE, "imon", KEY_META, "default", "imon", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/imon/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/imon/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/imon/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Display dimensions", KEY_META, "type", "string", KEY_END), - keyNew ("/imonlcd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a imonlcd driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "ImonlcdDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/imonlcd/#/backlight", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Set the backlight state", KEY_META, "type", "boolean", KEY_END), - keyNew ("/imonlcd/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/imonlcd/#/contrast", KEY_VALUE, "200", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "200", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/imonlcd/#/device", KEY_VALUE, "/dev/lcd0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd0", KEY_META, "description", "select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/imonlcd/#/discmode", KEY_VALUE, "0", KEY_META, "check/enum", "#1", KEY_META, "check/enum/#0", "0", KEY_META, "check/enum/#1", "1", KEY_META, "check/type", "enum", KEY_META, "default", "0", KEY_META, "description", "Set the disc mode\n0 => spin the \'slim\' disc - two disc segments,\n1 => their complement spinning;", KEY_META, "gen/enum/type", "IMonLCDDiscMode", KEY_META, "type", "enum", KEY_END), - keyNew ("/imonlcd/#/file", KEY_VALUE, "imonlcd", KEY_META, "default", "imonlcd", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/imonlcd/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/imonlcd/#/onexit", KEY_VALUE, "1", KEY_META, "check/range", "0-2", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1", KEY_META, "description", "Set the exit behavior\n0 means leave shutdown message,\n1 means show the big clock,\n2 means blank device", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/imonlcd/#/protocol", KEY_VALUE, "0", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "15c2:ffdc", KEY_META, "check/enum/#1", "15c2:0038", KEY_META, "check/enum/#2", "0", KEY_META, "check/enum/#3", "1", KEY_META, "check/type", "string", KEY_META, "default", "0", KEY_META, "description", "Specify which iMon protocol should be used\nChoose 0 for 15c2:ffdc device,\nChoose 1 for 15c2:0038 device", KEY_META, "gen/enum/#2/value", "0", KEY_META, "gen/enum/#3/value", "1", KEY_META, "gen/enum/type", "IMonLCDProtocol", KEY_META, "type", "string", KEY_END), - keyNew ("/imonlcd/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/imonlcd/#/size", KEY_VALUE, "96x16", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "96x16", KEY_META, "description", "Specify the size of the display in pixels", KEY_META, "type", "string", KEY_END), - keyNew ("/iowarrior/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a IOWarrior driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "IOWarriorDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/iowarrior/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/iowarrior/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/iowarrior/#/extendedmode", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If you have an HD66712, a KS0073 or another \'almost HD44780-compatible\',\nset this flag to get into extended mode (4-line linear).", KEY_META, "type", "boolean", KEY_END), - keyNew ("/iowarrior/#/file", KEY_VALUE, "IOWarrior", KEY_META, "default", "IOWarrior", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/iowarrior/#/lastline", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Specifies if the last line is pixel addressable (yes) or it controls an\nunderline effect (no).", KEY_META, "type", "boolean", KEY_END), - keyNew ("/iowarrior/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/iowarrior/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/iowarrior/#/serialnumber", KEY_VALUE, "00000674", KEY_META, "check/type", "any", KEY_META, "default", "00000674", KEY_META, "description", "serial number. Must be exactly as listed by usbview (if not given, the 1st IOWarrior found gets used)", KEY_META, "type", "string", KEY_END), - keyNew ("/iowarrior/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Display dimensions", KEY_META, "type", "string", KEY_END), - keyNew ("/irman/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a IrMan driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "IrManDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/irman/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/irman/#/config", KEY_VALUE, "/etc/irman.cfg", KEY_META, "check/type", "string", KEY_META, "default", "/etc/irman.cfg", KEY_META, "description", "Select the configuration file to use", KEY_META, "type", "string", KEY_END), - keyNew ("/irman/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/irman/#/device", KEY_VALUE, "/dev/irman", KEY_META, "check/type", "string", KEY_META, "default", "/dev/irman", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/irman/#/file", KEY_VALUE, "IrMan", KEY_META, "default", "IrMan", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/irman/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/irman/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/irtrans/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a irtrans driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "IrtransDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/irtrans/#/backlight", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Does the device have a backlight\?", KEY_META, "type", "boolean", KEY_END), - keyNew ("/irtrans/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/irtrans/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/irtrans/#/file", KEY_VALUE, "irtrans", KEY_META, "default", "irtrans", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/irtrans/#/hostname", KEY_VALUE, "localhost", KEY_META, "check/type", "string", KEY_META, "default", "localhost", KEY_META, "description", "IRTrans device to connect to", KEY_META, "type", "string", KEY_END), - keyNew ("/irtrans/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/irtrans/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/irtrans/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Specify the size of the display in pixels", KEY_META, "type", "string", KEY_END), - keyNew ("/joy/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a joy driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "JoyDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/joy/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/joy/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/joy/#/device", KEY_VALUE, "/dev/js0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/js0", KEY_META, "description", "Select the input device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/joy/#/file", KEY_VALUE, "joy", KEY_META, "default", "joy", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/joy/#/map_axis1neg", KEY_VALUE, "Left", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "set the axis map", KEY_META, "type", "string", KEY_END), - keyNew ("/joy/#/map_axis1pos", KEY_VALUE, "Right", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "set the axis map", KEY_META, "type", "string", KEY_END), - keyNew ("/joy/#/map_axis2neg", KEY_VALUE, "Up", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "set the axis map", KEY_META, "type", "string", KEY_END), - keyNew ("/joy/#/map_axis2pos", KEY_VALUE, "Down", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "set the axis map", KEY_META, "type", "string", KEY_END), - keyNew ("/joy/#/map_button1", KEY_VALUE, "Enter", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "set the button map", KEY_META, "type", "string", KEY_END), - keyNew ("/joy/#/map_button2", KEY_VALUE, "Escape", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "set the button map", KEY_META, "type", "string", KEY_END), - keyNew ("/joy/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/joy/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/lb216/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lb216 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Lb216DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/lb216/#/brightness", KEY_VALUE, "200", KEY_META, "check/range", "0-255", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "200", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/lb216/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/lb216/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the input device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/lb216/#/file", KEY_VALUE, "lb216", KEY_META, "default", "lb216", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/lb216/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/lb216/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/lb216/#/speed", KEY_VALUE, "9600", KEY_META, "check/range", "2400, 9600", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/lcdm001/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lcdm001 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Lcdm001DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/lcdm001/#/backkey", KEY_VALUE, "UpKey", KEY_META, "check/type", "string", KEY_META, "default", "UpKey", KEY_META, "description", "Normal Context: Back(Go to previous screen) \nMenu Context: Up/Left", KEY_META, "type", "string", KEY_END), - keyNew ("/lcdm001/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/lcdm001/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/lcdm001/#/device", KEY_VALUE, "/dev/ttyS1", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/lcdm001/#/file", KEY_VALUE, "lcdm001", KEY_META, "default", "lcdm001", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/lcdm001/#/forwardkey", KEY_VALUE, "DownKey", KEY_META, "check/type", "string", KEY_META, "default", "DownKey", KEY_META, "description", "Normal Context: Forward(Go to next screen) \nMenu Context: Down/Right", KEY_META, "type", "string", KEY_END), - keyNew ("/lcdm001/#/mainmenukey", KEY_VALUE, "RightKey", KEY_META, "check/type", "string", KEY_META, "default", "RightKey", KEY_META, "description", "Normal Context: Open main menu \nMenu Context: Exit/Cancel", KEY_META, "type", "string", KEY_END), - keyNew ("/lcdm001/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/lcdm001/#/pausekey", KEY_VALUE, "LeftKey", KEY_META, "check/type", "string", KEY_META, "default", "LeftKey", KEY_META, "description", "Normal Context: Pause/Continue \nMenu Context: Enter/select", KEY_META, "type", "string", KEY_END), - keyNew ("/lcdm001/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/lcterm/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lcterm driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "LctermDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/lcterm/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/lcterm/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/lcterm/#/device", KEY_VALUE, "/dev/ttyS1", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/lcterm/#/file", KEY_VALUE, "lcterm", KEY_META, "default", "lcterm", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/lcterm/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/lcterm/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/lcterm/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Specify the size of the display in pixels", KEY_META, "type", "string", KEY_END), - keyNew ("/linux_input/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a linux_input driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Linux_inputDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/linux_input/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/linux_input/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/linux_input/#/device", KEY_VALUE, "/dev/input/event0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/input/event0", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/linux_input/#/file", KEY_VALUE, "linux_input", KEY_META, "default", "linux_input", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/linux_input/#/key/_", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "specify a non-default key map, eg.: \n/linux_input/key/#01 = 1\n/linux_input/key/#28 = Enter", KEY_META, "type", "string", KEY_END), - keyNew ("/linux_input/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/linux_input/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/lirc/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lirc driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "LircDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/lirc/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/lirc/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/lirc/#/file", KEY_VALUE, "lirc", KEY_META, "default", "lirc", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/lirc/#/lircrc", KEY_VALUE, "~/.lircrc", KEY_META, "check/type", "string", KEY_META, "default", "~/.lircrc", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/lirc/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/lirc/#/prog", KEY_VALUE, "lcdd", KEY_META, "check/type", "string", KEY_META, "default", "lcdd", KEY_META, "description", "Must be the same as in your lircrc", KEY_META, "type", "string", KEY_END), - keyNew ("/lirc/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/lis/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lis driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "LisDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/lis/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness\n0-250 = 25%, 251-500 = 50%, 501-750 = 75%, 751-1000 = 100%", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/lis/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/lis/#/file", KEY_VALUE, "lis", KEY_META, "default", "lis", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/lis/#/lastline", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Specifies if the last line is pixel addressable (yes) or it only controls an\nunderline effect (no)", KEY_META, "type", "boolean", KEY_END), - keyNew ("/lis/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/lis/#/productid", KEY_VALUE, "0x6001", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{4})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size ProductID: 0x0000-0xFFFF is allowed", KEY_META, "default", "0x6001", KEY_META, "description", "USB Product ID. Change only if testing a compatible device.", KEY_META, "type", "string", KEY_END), - keyNew ("/lis/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/lis/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Columns by lines", KEY_META, "type", "string", KEY_END), - keyNew ("/lis/#/vendorid", KEY_VALUE, "0x0403", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{4})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size VendorID: 0x0000-0xFFFF is allowed", KEY_META, "default", "0x0403", KEY_META, "description", "USB Vendor ID. Change only if testing a compatible device.", KEY_META, "type", "string", KEY_END), - keyNew ("/md8800/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a MD8800 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "MD8800DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/md8800/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/md8800/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/md8800/#/device", KEY_VALUE, "/dev/ttyS1", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/md8800/#/file", KEY_VALUE, "MD8800", KEY_META, "default", "MD8800", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/md8800/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/md8800/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/md8800/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), - keyNew ("/mdm166a/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a mdm166a driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Mdm166aDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/mdm166a/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/mdm166a/#/clock", KEY_VALUE, "no", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "no", KEY_META, "check/enum/#1", "small", KEY_META, "check/enum/#2", "big", KEY_META, "check/type", "enum", KEY_META, "default", "no", KEY_META, "description", "Show self-running clock after LCDd shutdown", KEY_META, "type", "enum", KEY_END), - keyNew ("/mdm166a/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/mdm166a/#/dimming", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Dim display, no dimming gives full brightness", KEY_META, "type", "boolean", KEY_END), - keyNew ("/mdm166a/#/file", KEY_VALUE, "mdm166a", KEY_META, "default", "mdm166a", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/mdm166a/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/mdm166a/#/offdimming", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Dim display in case LCDd is inactive", KEY_META, "type", "boolean", KEY_END), - keyNew ("/mdm166a/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/menu/downkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), - keyNew ("/menu/enterkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), - keyNew ("/menu/leftkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), - keyNew ("/menu/menukey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), - keyNew ("/menu/permissivegoto", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If true the server allows transitions between different client`s menus", KEY_META, "type", "boolean", KEY_END), - keyNew ("/menu/rightkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), - keyNew ("/menu/upkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), - keyNew ("/ms6931/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a ms6931 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Ms6931DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/ms6931/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/ms6931/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/ms6931/#/device", KEY_VALUE, "/dev/ttyS1", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/ms6931/#/file", KEY_VALUE, "ms6931", KEY_META, "default", "ms6931", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/ms6931/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/ms6931/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/ms6931/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), - keyNew ("/mtc_s16209x/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a mtc_s16209x driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Mtc_s16209xDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/mtc_s16209x/#/brightness", KEY_VALUE, "200", KEY_META, "check/range", "0-255", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "200", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/mtc_s16209x/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/mtc_s16209x/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/mtc_s16209x/#/file", KEY_VALUE, "mtc_s16209x", KEY_META, "default", "mtc_s16209x", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/mtc_s16209x/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/mtc_s16209x/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/mtxorb/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a MtxOrb driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "MtxOrbDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/mtxorb/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/mtxorb/#/contrast", KEY_VALUE, "480", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "480", KEY_META, "description", "Set the initial contrast\nNOTE: The driver will ignore this if the display\nis a vfd or vkd as they don\'t have this feature", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/mtxorb/#/device", KEY_VALUE, "/dev/ttyS0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS0", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/mtxorb/#/file", KEY_VALUE, "MtxOrb", KEY_META, "default", "MtxOrb", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/mtxorb/#/hasadjustablebacklight", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Some old displays do not have an adjustable backlight but only can\nswitch the backlight on/off. If you experience randomly appearing block\ncharacters, try setting this to false.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/mtxorb/#/keymap_a", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), - keyNew ("/mtxorb/#/keymap_b", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), - keyNew ("/mtxorb/#/keymap_c", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), - keyNew ("/mtxorb/#/keymap_d", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), - keyNew ("/mtxorb/#/keymap_e", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), - keyNew ("/mtxorb/#/keymap_f", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), - keyNew ("/mtxorb/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/mtxorb/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/mtxorb/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), - keyNew ("/mtxorb/#/speed", KEY_VALUE, "19200", KEY_META, "check/range", "1200, 2400, 9600, 19200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "Set the communication", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/mtxorb/#/type", KEY_VALUE, "lcd", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "lcd lkd, vfd, vkd", KEY_META, "check/enum/#1", "lkd", KEY_META, "check/enum/#2", "vfd", KEY_META, "check/enum/#3", "vkd", KEY_META, "check/type", "enum", KEY_META, "default", "lcd", KEY_META, "description", "Set the display type", KEY_META, "type", "enum", KEY_END), - keyNew ("/mx5000/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a mx5000 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Mx5000DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/mx5000/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/mx5000/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/mx5000/#/device", KEY_VALUE, "/dev/hiddev0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/hiddev0", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/mx5000/#/file", KEY_VALUE, "mx5000", KEY_META, "default", "mx5000", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/mx5000/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/mx5000/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/mx5000/#/waitafterrefresh", KEY_VALUE, "1000", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "[1-9]\\d*", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "WaitAfterRefresh must be a positive number", KEY_META, "default", "1000", KEY_META, "description", "Time to wait in ms after the refresh screen has been sent", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("/noritakevfd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a NoritakeVFD driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "NoritakeVFDDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/noritakevfd/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/noritakevfd/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/noritakevfd/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "device where the VFD is. Usual values are /dev/ttyS0 and /dev/ttyS1", KEY_META, "type", "string", KEY_END), - keyNew ("/noritakevfd/#/file", KEY_VALUE, "NoritakeVFD", KEY_META, "default", "NoritakeVFD", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/noritakevfd/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/noritakevfd/#/parity", KEY_VALUE, "0", KEY_META, "check/range", "0-2", KEY_META, "check/type", "unsigned_long", KEY_META, "default", "0", KEY_META, "description", "Set serial data parity\nMeaning: 0(=none), 1(=odd), 2(=even)", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("/noritakevfd/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/noritakevfd/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), - keyNew ("/noritakevfd/#/speed", KEY_VALUE, "19200", KEY_META, "check/range", "1200, 2400, 9600, 19200, 115200", KEY_META, "check/type", "unsigned_long", KEY_META, "default", "19200", KEY_META, "description", "set the serial port speed", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("/olimex_mod_lcd1x9/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a Olimex_MOD_LCD1x9 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Olimex_MOD_LCD1x9DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/olimex_mod_lcd1x9/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/olimex_mod_lcd1x9/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/olimex_mod_lcd1x9/#/device", KEY_VALUE, "/dev/i2c-0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/i2c-0", KEY_META, "description", "device file of the i2c controller", KEY_META, "type", "string", KEY_END), - keyNew ("/olimex_mod_lcd1x9/#/file", KEY_VALUE, "Olimex_MOD_LCD1x9", KEY_META, "default", "Olimex_MOD_LCD1x9", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/olimex_mod_lcd1x9/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/olimex_mod_lcd1x9/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/picolcd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a picolcd driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "PicolcdDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/picolcd/#/backlight", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Sets the initial state of the backlight upon start-up.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/picolcd/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness [default: 1000; legal: 0 - 1000]. Works only\nwith the 20x4 device", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/picolcd/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/picolcd/#/file", KEY_VALUE, "picolcd", KEY_META, "default", "picolcd", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/picolcd/#/key0light", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/picolcd/#/key1light", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/picolcd/#/key2light", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/picolcd/#/key3light", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/picolcd/#/key4light", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/picolcd/#/key5light", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/picolcd/#/keylights", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Light the keys\?", KEY_META, "type", "boolean", KEY_END), - keyNew ("/picolcd/#/keyrepeatdelay", KEY_VALUE, "300", KEY_META, "check/range", "0-3000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "300", KEY_META, "description", "Key auto repeat is only available if the picoLCD driver is built with\nlibusb-1.0. Use KeyRepeatDelay and KeyRepeatInterval to configure key auto\nrepeat.\n#\nKey auto repeat delay (time in ms from first key report to first repeat). Use\nzero to disable auto repeat.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/picolcd/#/keyrepeatinterval", KEY_VALUE, "200", KEY_META, "check/range", "0-3000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "200", KEY_META, "description", "Key auto repeat interval (time in ms between repeat reports). Only used if\nKeyRepeatDelay is not zero.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/picolcd/#/keytimeout", KEY_VALUE, "500", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "KeyTimeout is only used if the picoLCD driver is built with libusb-0.1. When\nbuilt with libusb-1.0 key and IR data is input asynchronously so there is no\nneed to wait for the USB data.\nKeyTimeout is the time in ms that LCDd spends waiting for a key press before\ncycling through other duties. Higher values make LCDd use less CPU time and\nmake key presses more detectable. Lower values make LCDd more responsive\nbut a little prone to missing key presses. 500 (.5 second) is the default\nand a balanced value.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/picolcd/#/linklights", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Link the key lights to the backlight\?", KEY_META, "type", "boolean", KEY_END), - keyNew ("/picolcd/#/lircflushthreshold", KEY_VALUE, "1000", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "[1-9]\\d{3,}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "LircFlushThreshold must be a positive number >1000", KEY_META, "default", "1000", KEY_META, "description", "Threshold in microseconds of the gap that triggers flushing the IR data\nto lirc [default: 8000; legal: 1000 - ]\nIf LircTime_us is on values greater than 32.767ms will disable the flush\nIf LircTime_us is off values greater than 1.999938s will disable the flush", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("/picolcd/#/lirchost", KEY_VALUE, "127.0.0.1", KEY_META, "check/type", "string", KEY_META, "default", "127.0.0.1", KEY_META, "description", "Host name or IP address of the LIRC instance that is to receive IR codes If not set, or set to an empty value, IR support is disabled.", KEY_META, "type", "string", KEY_END), - keyNew ("/picolcd/#/lircport", KEY_VALUE, "8765", KEY_META, "default", "8765", KEY_META, "description", "UDP port on which LIRC is listening", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/picolcd/#/lirctime_us", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "UDP data time unit for LIRC\nOn: times sent in microseconds (requires LIRC UDP driver that accepts this).\nOff: times sent in \'jiffies\' (1/16384s) (supported by standard LIRC UDP driver).", KEY_META, "type", "boolean", KEY_END), - keyNew ("/picolcd/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the brightness while the backlight is \'off\'.\nWorks only with the 20x4 device.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/picolcd/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/pyramid/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a pyramid driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "PyramidDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/pyramid/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/pyramid/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/pyramid/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "device to connect to", KEY_META, "type", "string", KEY_END), - keyNew ("/pyramid/#/file", KEY_VALUE, "pyramid", KEY_META, "default", "pyramid", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/pyramid/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/pyramid/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/rawserial/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a rawserial driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "RawserialDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/rawserial/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/rawserial/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/rawserial/#/device", KEY_VALUE, "/dev/cuaU0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/cuaU0", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/rawserial/#/file", KEY_VALUE, "rawserial", KEY_META, "default", "rawserial", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/rawserial/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/rawserial/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/rawserial/#/size", KEY_VALUE, "40x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "40x4", KEY_META, "description", "Specifies the size of the LCD. If this driver is loaded as a secondary driver\nit always adopts to the size of the primary driver. If loaded as the only\n(or primary) driver, the size can be set.", KEY_META, "type", "string", KEY_END), - keyNew ("/rawserial/#/speed", KEY_VALUE, "9600", KEY_META, "check/type", "unsigned_long", KEY_META, "default", "9600", KEY_META, "description", "Serial port baudrate [default: 9600]", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("/rawserial/#/updaterate", KEY_VALUE, "1", KEY_META, "check/type", "float", KEY_META, "default", "1", KEY_META, "description", "How often to dump the LCD contents out the port, in Hertz (times per second)\n1 = once per second, 4 is 4 times per second, 0.1 is once every 10 seconds.\n[default: 1; legal: 0.0005 - 10]", KEY_META, "type", "float", KEY_END), - keyNew ("/sed1330/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a sed1330 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Sed1330DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/sed1330/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/sed1330/#/cellsize", KEY_VALUE, "6x10", KEY_META, "check/type", "string", KEY_META, "check/validation", "[6-8]x([1-9][0-6]|[1-9])", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Width x Height of a character cell in pixels [legal: 6x7 - 8x16]", KEY_META, "default", "6x10", KEY_META, "description", "Width x Height of a character cell in pixels", KEY_META, "type", "string", KEY_END), - keyNew ("/sed1330/#/connectiontype", KEY_VALUE, "classic", KEY_META, "check/enum", "#1", KEY_META, "check/enum/#0", "classic", KEY_META, "check/enum/#1", "bitshaker", KEY_META, "check/type", "enum", KEY_META, "default", "classic", KEY_META, "description", "Select what type of connection", KEY_META, "type", "enum", KEY_END), - keyNew ("/sed1330/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/sed1330/#/file", KEY_VALUE, "sed1330", KEY_META, "default", "sed1330", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/sed1330/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/sed1330/#/port", KEY_VALUE, "0x378", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{3})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "Port where the LPT is. Common values are 0x278, 0x378 and 0x3BC", KEY_META, "type", "string", KEY_END), - keyNew ("/sed1330/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/sed1330/#/type", KEY_VALUE, "G321D", KEY_META, "check/enum", "#5", KEY_META, "check/enum/#0", "G321D", KEY_META, "check/enum/#1", "G121C", KEY_META, "check/enum/#2", "G242C", KEY_META, "check/enum/#3", "G191D", KEY_META, "check/enum/#4", "G2446", KEY_META, "check/enum/#5", "SP14Q002", KEY_META, "check/type", "enum", KEY_META, "default", "G321D", KEY_META, "description", "Type of LCD module.\nNote: Currently only tested with G321D & SP14Q002.", KEY_META, "type", "enum", KEY_END), - keyNew ("/sed1520/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a sed1520 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Sed1520DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/sed1520/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/sed1520/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/sed1520/#/delaymult", KEY_VALUE, "1", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1", KEY_META, "description", "On fast machines it may be necessary to slow down transfer to the display.\nIf this value is set to zero, delay is disabled. Any value greater than\nzero slows down each write by one microsecond.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/sed1520/#/file", KEY_VALUE, "sed1520", KEY_META, "default", "sed1520", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/sed1520/#/haveinverter", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "The original wiring used an inverter to drive the control lines. If you do\nnot use an inverter set haveInverter to no.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/sed1520/#/interfacetype", KEY_VALUE, "80", KEY_META, "check/range", "68, 80", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "80", KEY_META, "description", "Select the interface type (wiring) for the display. Supported values are\n68 for 68-style connection (RESET level high) and 80 for 80-style connection\n(RESET level low)", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/sed1520/#/invertedmapping", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "On some displays column data in memory is mapped to segment lines from right\nto left. This is called inverted mapping (not to be confused with\n\'haveInverter\' from above).", KEY_META, "type", "boolean", KEY_END), - keyNew ("/sed1520/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/sed1520/#/port", KEY_VALUE, "0x378", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{3})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "Port where the LPT is. Usual values are 0x278, 0x378 and 0x3BC", KEY_META, "type", "string", KEY_END), - keyNew ("/sed1520/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/sed1520/#/usehardreset", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "At least one display is reported (Everbouquet MG1203D) that requires sending\nthree times 0xFF before a reset during initialization.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/serialpos/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a serialPOS driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SerialPOSDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/serialpos/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/serialpos/#/cellsize", KEY_VALUE, "5x8", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "5x8", KEY_META, "description", "Specifies the cell size of each character cell on the display in characters.", KEY_META, "type", "string", KEY_END), - keyNew ("/serialpos/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/serialpos/#/custom_chars", KEY_VALUE, "0", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "^([1-9]\\d*|0)$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be any positive number including 0", KEY_META, "default", "0", KEY_META, "description", "Specifies the number of custom characters supported by the display.\nCustom characters are only used for the rendering of horizontal bars\nand vertical bars. For displays whose cell character cell widths are\nlower than the number of custom characters supported,\nthen custom characters will be used to render the horizontal bars.\nFor more information look at: https://github.com/lcdproc/lcdproc/blob/master/docs/lcdproc-user/drivers/serialPOS.docbook", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("/serialpos/#/device", KEY_VALUE, "/dev/ttyS0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS0", KEY_META, "description", "Device to use in serial mode", KEY_META, "type", "string", KEY_END), - keyNew ("/serialpos/#/file", KEY_VALUE, "serialPOS", KEY_META, "default", "serialPOS", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/serialpos/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/serialpos/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/serialpos/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Specifies the size of the display in characters.", KEY_META, "type", "string", KEY_END), - keyNew ("/serialpos/#/speed", KEY_VALUE, "9600", KEY_META, "check/range", "1200, 2400, 4800, 9600, 19200, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "communication baud rate with the display", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/serialpos/#/type", KEY_VALUE, "AEDEX", KEY_META, "check/enum", "#5", KEY_META, "check/enum/#0", "AEDEX", KEY_META, "check/enum/#1", "CD5220", KEY_META, "check/enum/#2", "Epson", KEY_META, "check/enum/#3", "Emax", KEY_META, "check/enum/#4", "LogicControls", KEY_META, "check/enum/#5", "Ultimate", KEY_META, "check/type", "enum", KEY_META, "default", "AEDEX", KEY_META, "description", "Set the communication protocol to use with the POS display.", KEY_META, "type", "enum", KEY_END), - keyNew ("/serialvfd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a serialVFD driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SerialVFDDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/serialvfd/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness. (4 steps 0-250, 251-500, 501-750, 751-1000)", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/serialvfd/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/serialvfd/#/custom-characters", KEY_VALUE, "0", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "^([1-9]\\d*|0)$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be any positive number including 0", KEY_META, "default", "0", KEY_META, "description", "Number of Custom-Characters. default is display type dependent", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("/serialvfd/#/device", KEY_VALUE, "/dev/ttyS1", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "Device to use in serial mode. Usual values are /dev/ttyS0 and /dev/ttyS1", KEY_META, "type", "string", KEY_END), - keyNew ("/serialvfd/#/file", KEY_VALUE, "serialVFD", KEY_META, "default", "serialVFD", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/serialvfd/#/iso_8859_1", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "enable ISO 8859 1 compatibility", KEY_META, "type", "boolean", KEY_END), - keyNew ("/serialvfd/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive\n(4 steps 0-250, 251-500, 501-750, 751-1000)", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/serialvfd/#/port", KEY_VALUE, "0x378", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{3})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "Portaddress where the LPT is. Used in parallel mode only. Usual values are 0x278, 0x378 and 0x3BC.", KEY_META, "type", "string", KEY_END), - keyNew ("/serialvfd/#/portwait", KEY_VALUE, "2", KEY_META, "check/range", "0-255", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "2", KEY_META, "description", "Set parallel port timing delay (us). Used in parallel mode only.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/serialvfd/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/serialvfd/#/size", KEY_VALUE, "20x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x2", KEY_META, "description", "Specifies the size of the VFD.", KEY_META, "type", "string", KEY_END), - keyNew ("/serialvfd/#/speed", KEY_VALUE, "9600", KEY_META, "check/range", "1200, 2400, 9600, 19200, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "set the serial port speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/serialvfd/#/type", KEY_VALUE, "0", KEY_META, "check/enum", "#_17", KEY_META, "check/enum/#0", "nec_fipc8367", KEY_META, "check/enum/#1", "kd_rev_2_1", KEY_META, "check/enum/#2", "noritake_vfd", KEY_META, "check/enum/#3", "futaba_vfd", KEY_META, "check/enum/#4", "iee_s03601-95b", KEY_META, "check/enum/#5", "iee_s03601-96-080", KEY_META, "check/enum/#6", "futaba_na202sd08fa", KEY_META, "check/enum/#7", "samsung_20s207da4/20s207da6", KEY_META, "check/enum/#8", "nixdorf_ba6x/vt100", KEY_META, "check/enum/#_10", "1", KEY_META, "check/enum/#_11", "2", KEY_META, "check/enum/#_12", "3", KEY_META, "check/enum/#_13", "4", KEY_META, "check/enum/#_14", "5", KEY_META, "check/enum/#_15", "6", KEY_META, "check/enum/#_16", "7", KEY_META, "check/enum/#_17", "8", KEY_META, "check/enum/#_9", "0", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Specifies the displaytype.[default: 0]\n0 NEC (FIPC8367 based) VFDs.\n1 KD Rev 2.1.\n2 Noritake VFDs (*).\n3 Futaba VFDs\n4 IEE S03601-95B\n5 IEE S03601-96-080 (*)\n6 Futaba NA202SD08FA (allmost IEE compatible)\n7 Samsung 20S207DA4 and 20S207DA6\n8 Nixdorf BA6x / VT100\n(* most should work, not tested yet.)", KEY_META, "gen/enum/type", "SerialVFDType", KEY_META, "gen/enum/value", "8", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/serialvfd/#/use_parallel", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "\'no\' if display connected serial, \'yes\' if connected parallel.\nI.e. serial by default", KEY_META, "type", "boolean", KEY_END), - keyNew ("/server/autorotate", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If set to no, LCDd will start with screen rotation disabled. This has the same effect as if the ToggleRotateKey had been pressed. Rotation will start if the ToggleRotateKey is pressed. Note that this setting does not turn off priority sorting of screens", KEY_META, "type", "boolean", KEY_END), - keyNew ("/server/backlight", KEY_VALUE, "open", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "off", KEY_META, "check/enum/#1", "on", KEY_META, "check/enum/#2", "open", KEY_META, "default", "open", KEY_META, "description", "Set master backlight setting. If set to \'open\' a client may control the backlight for its own screens (only)", KEY_META, "type", "enum", KEY_END), - keyNew ("/server/bind", KEY_VALUE, "127.0.0.1", KEY_META, "check/type", "string", KEY_META, "default", "127.0.0.1", KEY_META, "description", "Tells the driver to bind to the given interface", KEY_META, "opt", "a", KEY_META, "opt/long", "address", KEY_META, "type", "string", KEY_END), - keyNew ("/server/driverpath", KEY_VALUE, "server/drivers/", KEY_META, "check/type", "string", KEY_META, "check/validation", ".*[\\/]$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "The path has to contain a backslack (/) at the end", KEY_META, "default", "server/drivers/", KEY_META, "description", "Select the LCD size", KEY_META, "type", "string", KEY_END), - keyNew ("/server/drivers/#", KEY_META, "check/reference/restrict", "#_52", KEY_META, "check/reference/restrict/#0", "@/bayrad/#", KEY_META, "check/reference/restrict/#1", "@/cfontz/#", KEY_META, "check/reference/restrict/#2", "@/cfontzpacket/#", KEY_META, "check/reference/restrict/#3", "@/curses/#", KEY_META, "check/reference/restrict/#4", "@/cwlnx/#", KEY_META, "check/reference/restrict/#5", "@/ea65/#", KEY_META, "check/reference/restrict/#6", "@/eyeboxone/#", KEY_META, "check/reference/restrict/#7", "@/futaba/#", KEY_META, "check/reference/restrict/#8", "@/g15/#", KEY_META, "check/reference/restrict/#9", "@/glcd/#", KEY_META, "check/reference/restrict/#_10", "@/glcdlib/#", KEY_META, "check/reference/restrict/#_11", "@/glk/#", KEY_META, "check/reference/restrict/#_12", "@/hd44780/#", KEY_META, "check/reference/restrict/#_13", "@/icp_a106/#", KEY_META, "check/reference/restrict/#_14", "@/imon/#", KEY_META, "check/reference/restrict/#_15", "@/imonlcd/#", KEY_META, "check/reference/restrict/#_16", "@/iowarrior/#", KEY_META, "check/reference/restrict/#_17", "@/irman/#", KEY_META, "check/reference/restrict/#_18", "@/joy/#", KEY_META, "check/reference/restrict/#_19", "@/lb216/#", KEY_META, "check/reference/restrict/#_20", "@/lcdm001/#", KEY_META, "check/reference/restrict/#_21", "@/lcterm/#", KEY_META, "check/reference/restrict/#_22", "@/linux_input/#", KEY_META, "check/reference/restrict/#_23", "@/lirc/#", KEY_META, "check/reference/restrict/#_24", "@/lis/#", KEY_META, "check/reference/restrict/#_25", "@/md8800/#", KEY_META, "check/reference/restrict/#_26", "@/mdm166a/#", KEY_META, "check/reference/restrict/#_27", "@/ms6931/#", KEY_META, "check/reference/restrict/#_28", "@/mtc_s16209x/#", KEY_META, "check/reference/restrict/#_29", "@/mtxorb/#", KEY_META, "check/reference/restrict/#_30", "@/mx5000/#", KEY_META, "check/reference/restrict/#_31", "@/noritakevfd/#", KEY_META, "check/reference/restrict/#_32", "@/olimex_mod_lcd1x9/#", KEY_META, "check/reference/restrict/#_33", "@/picolcd/#", KEY_META, "check/reference/restrict/#_34", "@/pyramid/#", KEY_META, "check/reference/restrict/#_35", "@/rawserial/#", KEY_META, "check/reference/restrict/#_36", "@/sdeclcd/#", KEY_META, "check/reference/restrict/#_37", "@/sed1330/#", KEY_META, "check/reference/restrict/#_38", "@/sed1520/#", KEY_META, "check/reference/restrict/#_39", "@/serialpos/#", KEY_META, "check/reference/restrict/#_40", "@/serialvfd/#", KEY_META, "check/reference/restrict/#_41", "@/shuttlevfd/#", KEY_META, "check/reference/restrict/#_42", "@/sli/#", KEY_META, "check/reference/restrict/#_43", "@/stv5730/#", KEY_META, "check/reference/restrict/#_44", "@/svga/#", KEY_META, "check/reference/restrict/#_45", "@/t6963/#", KEY_META, "check/reference/restrict/#_46", "@/text/#", KEY_META, "check/reference/restrict/#_47", "@/tyan/#", KEY_META, "check/reference/restrict/#_48", "@/ula200/#", KEY_META, "check/reference/restrict/#_49", "@/vlsys_m428/#", KEY_META, "check/reference/restrict/#_50", "@/xosd/#", KEY_META, "check/reference/restrict/#_51", "@/yard2lcd/#", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "Tells the server to load a driver.\nThe given value is a reference the configuration of the driver, e.g. @/curses/#0", KEY_META, "type", "string", KEY_END), - keyNew ("/server/foreground", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "The server will stay in the foreground if set to yes", KEY_META, "opt", "f", KEY_META, "opt/arg", "none", KEY_META, "opt/long", "foreground", KEY_META, "type", "boolean", KEY_END), - keyNew ("/server/frameinterval", KEY_VALUE, "125000", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "[1-9]\\d*", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "FrameInterval must be a positive number", KEY_META, "default", "125000", KEY_META, "description", "Sets the interval in microseconds for updating the display [default: 125000 meaning 8Hz]", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("/server/goodbye/#", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "GoodBye message: each entry represents a display line", KEY_META, "type", "string", KEY_END), - keyNew ("/server/heartbeat", KEY_VALUE, "open", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "off", KEY_META, "check/enum/#1", "on", KEY_META, "check/enum/#2", "open", KEY_META, "default", "open", KEY_META, "description", "Set master heartbeat setting. If set to \'open\' a client may control the", KEY_META, "type", "enum", KEY_END), - keyNew ("/server/hello/#", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "Hello message: each entry represents a display line", KEY_META, "type", "string", KEY_END), - keyNew ("/server/nextscreenkey", KEY_VALUE, "Right", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), - keyNew ("/server/port", KEY_VALUE, "13666", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "13666", KEY_META, "description", "Listen on this specified port. [default: 13666]", KEY_META, "opt", "p", KEY_META, "opt/long", "port", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/server/prevscreenkey", KEY_VALUE, "Left", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), - keyNew ("/server/reportlevel", KEY_VALUE, "2", KEY_META, "check/range", "0-5", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "2", KEY_META, "description", "TSets the reporting level, defaults to warnings and errors only.", KEY_META, "opt", "r", KEY_META, "opt/long", "report-level", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/server/reporttosyslog", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Should we report to syslog instead of stderr\?", KEY_META, "opt", "s", KEY_META, "opt/arg", "none", KEY_META, "opt/long", "report-to-syslog", KEY_META, "type", "boolean", KEY_END), - keyNew ("/server/scrolldownkey", KEY_VALUE, "Down", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), - keyNew ("/server/scrollupkey", KEY_VALUE, "Up", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), - keyNew ("/server/serverscreen", KEY_VALUE, "on", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "off", KEY_META, "check/enum/#1", "on", KEY_META, "check/enum/#2", "blank", KEY_META, "default", "on", KEY_META, "description", "If yes, the the serverscreen will be rotated as a usual info screen. If no, it will be a background screen, only visible when no other screens are active. The special value \'blank\' is similar to no, but only a blank screen is displayed.", KEY_META, "opt", "i", KEY_META, "opt/long", "rotate-server-screen", KEY_META, "type", "enum", KEY_END), - keyNew ("/server/titlespeed", KEY_VALUE, "10", KEY_META, "check/range", "0-10", KEY_META, "default", "10", KEY_META, "description", "title scrolling speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/server/togglerotatekey", KEY_VALUE, "Enter", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), - keyNew ("/server/user", KEY_VALUE, "nobody", KEY_META, "check/type", "string", KEY_META, "default", "nobody", KEY_META, "description", "set to run as. LCDd will drop its root privileges and run as this user instead. [default: nobody]", KEY_META, "opt", "u", KEY_META, "opt/long", "user", KEY_META, "type", "string", KEY_END), - keyNew ("/server/waittime", KEY_VALUE, "4", KEY_META, "check/type", "float", KEY_META, "default", "4", KEY_META, "description", "Sets the default time in seconds to displays a screen", KEY_META, "opt", "w", KEY_META, "opt/long", "wait-time", KEY_META, "type", "float", KEY_END), - keyNew ("/sli/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a sli driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SliDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/sli/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/sli/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/sli/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/sli/#/file", KEY_VALUE, "sli", KEY_META, "default", "sli", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/sli/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/sli/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/sli/#/speed", KEY_VALUE, "19200", KEY_META, "check/range", "1200, 2400, 9600, 19200, 38400, 57600, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/stv5730/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a stv5730 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Stv5730DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/stv5730/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/stv5730/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/stv5730/#/file", KEY_VALUE, "stv5730", KEY_META, "default", "stv5730", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/stv5730/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/stv5730/#/port", KEY_VALUE, "0x378", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{3})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "Port the device is connected to", KEY_META, "type", "string", KEY_END), - keyNew ("/stv5730/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/sureelec/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a SureElec driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SureElecDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/sureelec/#/brightness", KEY_VALUE, "480", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "480", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/sureelec/#/contrast", KEY_VALUE, "480", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "480", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/sureelec/#/device", KEY_VALUE, "/dev/ttyUSB0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyUSB0", KEY_META, "description", "Port the device is connected to (by default first USB serial port)", KEY_META, "type", "string", KEY_END), - keyNew ("/sureelec/#/edition", KEY_VALUE, "2", KEY_META, "check/range", "1-3", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "2", KEY_META, "description", "Edition level of the device (can be 1, 2 or 3)", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/sureelec/#/file", KEY_VALUE, "SureElec", KEY_META, "default", "SureElec", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/sureelec/#/offbrightness", KEY_VALUE, "480", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "480", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/sureelec/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/sureelec/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "set display size\nNote: The size can be obtained directly from device for edition 2 & 3.", KEY_META, "type", "string", KEY_END), - keyNew ("/svga/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a svga driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SvgaDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/svga/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "1-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/svga/#/contrast", KEY_VALUE, "500", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/svga/#/file", KEY_VALUE, "svga", KEY_META, "default", "svga", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/svga/#/mode", KEY_VALUE, "G320x240x256", KEY_META, "check/type", "string", KEY_META, "default", "G320x240x256", KEY_META, "description", "svgalib mode to use [default: G320x240x256 ]\nlegal values are supported svgalib modes. See man7 pages for allowed values", KEY_META, "type", "string", KEY_END), - keyNew ("/svga/#/offbrightness", KEY_VALUE, "500", KEY_META, "check/range", "1-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/svga/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/svga/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), - keyNew ("/t6963/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a t6963 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "T6963DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/t6963/#/bidirectional", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Use LPT port in bi-directional mode. This should work on most LPT port and\nis required for proper timing!", KEY_META, "type", "boolean", KEY_END), - keyNew ("/t6963/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/t6963/#/cleargraphic", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Clear graphic memory on start-up.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/t6963/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/t6963/#/delaybus", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Insert additional delays into reads / writes.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/t6963/#/file", KEY_VALUE, "t6963", KEY_META, "default", "t6963", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/t6963/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/t6963/#/port", KEY_VALUE, "0x378", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([2-3][0-9A-F]{2}|400)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. legal: 0x200 - 0x400", KEY_META, "default", "0x378", KEY_META, "description", "Parallel port to use", KEY_META, "type", "string", KEY_END), - keyNew ("/t6963/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/t6963/#/size", KEY_VALUE, "128x64", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "128x64", KEY_META, "description", "set display size in pixels", KEY_META, "type", "string", KEY_END), - keyNew ("/text/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a text driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "TextDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/text/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/text/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/text/#/file", KEY_VALUE, "text", KEY_META, "default", "text", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/text/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/text/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/text/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), - keyNew ("/tyan/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a tyan driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "TyanDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/tyan/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/tyan/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/tyan/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/tyan/#/file", KEY_VALUE, "tyan", KEY_META, "default", "tyan", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/tyan/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/tyan/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/tyan/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), - keyNew ("/tyan/#/speed", KEY_VALUE, "9600", KEY_META, "check/range", "4800, 9600", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/ula200/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a ula200 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Ula200DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/ula200/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/ula200/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/ula200/#/file", KEY_VALUE, "ula200", KEY_META, "default", "ula200", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/ula200/#/keymap_a", KEY_VALUE, "Up", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("/ula200/#/keymap_b", KEY_VALUE, "Down", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("/ula200/#/keymap_c", KEY_VALUE, "Left", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("/ula200/#/keymap_d", KEY_VALUE, "Right", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("/ula200/#/keymap_e", KEY_VALUE, "Enter", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("/ula200/#/keymap_f", KEY_VALUE, "Escape", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("/ula200/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/ula200/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/ula200/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Select the LCD size", KEY_META, "type", "string", KEY_END), - keyNew ("/vlsys_m428/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a vlsys_m428 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Vlsys_m428DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/vlsys_m428/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/vlsys_m428/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/vlsys_m428/#/device", KEY_VALUE, "/dev/ttyUSB0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyUSB0", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/vlsys_m428/#/file", KEY_VALUE, "vlsys_m428", KEY_META, "default", "vlsys_m428", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/vlsys_m428/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/vlsys_m428/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/xosd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a xosd driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "XosdDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/xosd/#/Font", KEY_VALUE, "-*-terminus-*-r-*-*-*-320-*-*-*-*-*", KEY_META, "check/type", "string", KEY_META, "default", "-*-terminus-*-r-*-*-*-320-*-*-*-*-*", KEY_META, "description", "X font to use, in XLFD format, as given by \'xfontsel\'", KEY_META, "type", "string", KEY_END), - keyNew ("/xosd/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/xosd/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/xosd/#/file", KEY_VALUE, "xosd", KEY_META, "default", "xosd", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/xosd/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/xosd/#/offset", KEY_VALUE, "0x0", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid offset declaration. Examples: 200x200", KEY_META, "default", "0x0", KEY_META, "description", "Offset in pixels from the top-left corner of the monitor [default: 0x0]", KEY_META, "type", "string", KEY_END), - keyNew ("/xosd/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/xosd/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), - keyNew ("/yard2lcd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a yard2LCD driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Yard2LCDDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/yard2lcd/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/yard2lcd/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/yard2lcd/#/file", KEY_VALUE, "yard2LCD", KEY_META, "default", "yard2LCD", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/yard2lcd/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/yard2lcd/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/yard2lcd/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), - KS_END); -; - Elektra * e = elektraOpen ("/sw/lcdproc/lcdd/#0/current", defaults, error); - - if (e == NULL) - { - return -1; - } - - KeySet * contract = ksNew (1, - keyNew ("system/elektra/ensure/plugins/global/gopts", KEY_VALUE, "mounted", KEY_END), - KS_END); -; - - ElektraError * err = NULL; - elektraEnsure (e, contract, &err); - - if (err != NULL) - { - *error = err; - return -1; - } - - helpKey = elektraHelpKey (e); - if (helpKey != NULL) - { - elektraClose (e); - return 2; - } - - KeySet * defaultContext = ksNew (0, - KS_END); -; - ksAppend (elektraContext (e), defaultContext); - ksDel (defaultContext); - - *elektra = e; - return 0; -} - -/** - * Checks whether specload mode was invoked and if so, sends the specification over stdout - * in the format expected by specload. - * - * You MUST not output anything to stdout before invoking this function. Ideally invoking this - * is the first thing you do in your main()-function. - * - * This function will ONLY RETURN, if specload mode was NOT invoked. Otherwise it will call `exit()`. - * - * @param argc pass the value of argc from main - * @param argv pass the value of argv from main - */ -void doSpecloadCheck (int argc, const char ** argv) -{ - if (argc != 2 || strcmp (argv[1], "--elektra-spec") != 0) - { - return; - } - - KeySet * spec = ksNew (648, - keyNew ("spec/sw/lcdproc/lcdd/#0/current", KEY_META, "infos/plugins", "ini validation type", KEY_META, "mountpoint", "LCDd.conf", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/bayrad", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/bayrad/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a bayrad driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "BayradDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/bayrad/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/bayrad/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/bayrad/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/bayrad/#/file", KEY_META, "default", "bayrad", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/bayrad/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/bayrad/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/bayrad/#/speed", KEY_META, "check/range", "1200, 2400, 9600, 19200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a CFontz driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "CFontzDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "350", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/file", KEY_META, "default", "CFontz", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/newfirmware", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Set the firmware version (New means >= 2.0)", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness. This value is used when the display is normally switched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Select the LCD size", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/speed", KEY_META, "check/range", "1200, 2400, 9600, 19200, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a CFontzPacket driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "CFontzPacketDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "350", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/file", KEY_META, "default", "CFontzPacket", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/model", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "533", KEY_META, "check/enum/#1", "631", KEY_META, "check/enum/#2", "633", KEY_META, "check/enum/#3", "635", KEY_META, "check/type", "enum", KEY_META, "default", "633", KEY_META, "description", "Select the LCD model", KEY_META, "gen/enum/type", "CFontzPacketModel", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness. This value is used when the display is normally switched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/oldfirmware", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Very old 633 firmware versions do not support partial screen updates using \'Send Data to LCD\' command (31). For those devices it may be necessary to enable this flag", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Override the LCD size known for the selected model. Usually setting this value should not be necessary.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/speed", KEY_META, "check/range", "19200, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "115200", KEY_META, "description", "Override the default communication speed known for the selected model. Default value depends on model.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/usb", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Enable the USB flag if the device is connected to an USB port. For serial ports leave it disabled.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a curses driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "CursesDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/background", KEY_META, "check/enum", "#7", KEY_META, "check/enum/#0", "red", KEY_META, "check/enum/#1", "black", KEY_META, "check/enum/#2", "green", KEY_META, "check/enum/#3", "yellow", KEY_META, "check/enum/#4", "blue", KEY_META, "check/enum/#5", "magenta", KEY_META, "check/enum/#6", "cyan", KEY_META, "check/enum/#7", "white", KEY_META, "check/type", "enum", KEY_META, "default", "cyan", KEY_META, "description", "background color when \"backlight\" is off", KEY_META, "gen/enum/type", "CursesColor", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/backlight", KEY_META, "check/enum", "#7", KEY_META, "check/enum/#0", "red", KEY_META, "check/enum/#1", "black", KEY_META, "check/enum/#2", "green", KEY_META, "check/enum/#3", "yellow", KEY_META, "check/enum/#4", "blue", KEY_META, "check/enum/#5", "magenta", KEY_META, "check/enum/#6", "cyan", KEY_META, "check/enum/#7", "white", KEY_META, "check/type", "enum", KEY_META, "default", "red", KEY_META, "description", "background color when \"backlight\" is on", KEY_META, "gen/enum/type", "CursesColor", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/drawborder", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "draw Border", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/file", KEY_META, "default", "curses", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/foreground", KEY_META, "check/enum", "#7", KEY_META, "check/enum/#0", "red", KEY_META, "check/enum/#1", "black", KEY_META, "check/enum/#2", "green", KEY_META, "check/enum/#3", "yellow", KEY_META, "check/enum/#4", "blue", KEY_META, "check/enum/#5", "magenta", KEY_META, "check/enum/#6", "cyan", KEY_META, "check/enum/#7", "white", KEY_META, "check/type", "enum", KEY_META, "default", "blue", KEY_META, "description", "Color settings", KEY_META, "gen/enum/type", "CursesColor", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/topleftx", KEY_META, "check/type", "unsigned_short", KEY_META, "check/validation", "([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "7", KEY_META, "description", "What position (X,Y) to start the left top corner at...", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/toplefty", KEY_META, "check/type", "unsigned_short", KEY_META, "check/validation", "([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "7", KEY_META, "description", "What position (X,Y) to start the left top corner at...", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/useacs", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "use ASC symbols for icons & bars", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a CwLnx driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "CwLnxDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/file", KEY_META, "default", "CwLnx", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/keymap_a", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/keymap_b", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/keymap_c", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/keymap_d", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/keymap_e", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/keymap_f", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/keypad", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If you have a keypad connected. Keypad layout is currently not configureable from the config file.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/keypad_test_mode", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "permits one to test keypad assignment", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/model", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "12232", KEY_META, "check/enum/#1", "12832", KEY_META, "check/enum/#2", "1602", KEY_META, "check/type", "enum", KEY_META, "default", "12232", KEY_META, "description", "Select the LCD model", KEY_META, "gen/enum/type", "CwLnxModel", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Select the LCD size. Default depends on model: \n12232: 20x4 \n12832: 21x4 \n1602: 16x2", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/speed", KEY_META, "check/range", "9600, 19200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ea65", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ea65/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a ea65 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Ea65DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ea65/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "As the VFD is self luminescent we don\'t have a backlight\nBut we can use the backlight functions to control the front LEDs\nBrightness 0 to 299 -> LEDs off\nBrightness 300 to 699 -> LEDs half bright\nBrightness 700 to 1000 -> LEDs full bright", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ea65/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ea65/#/file", KEY_META, "default", "ea65", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ea65/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "OffBrightness is the the value used for the \'backlight off\' state", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ea65/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a EyeboxOne driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "EyeboxOneDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/backlight", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Switch on the backlight\?", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/cursor", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Switch on the cursor\?", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/downkey", KEY_META, "check/type", "string", KEY_META, "default", "B", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/escapekey", KEY_META, "check/type", "string", KEY_META, "default", "P", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/file", KEY_META, "default", "EyeboxOne", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/keypad_test_mode", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "You can find out which key of your display sends which\ncharacter by setting keypad_test_mode to yes and running\nLCDd. LCDd will output all characters it receives.\nAfterwards you can modify the settings above and set\nkeypad_set_mode to no again.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/leftkey", KEY_META, "check/type", "string", KEY_META, "default", "D", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/rightkey", KEY_META, "check/type", "string", KEY_META, "default", "C", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Set the display size", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/speed", KEY_META, "check/range", "1200, 2400, 9600, 19200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/upkey", KEY_META, "check/type", "string", KEY_META, "default", "A", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/futaba", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/futaba/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a futaba driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "FutabaDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/futaba/#/file", KEY_META, "default", "futaba", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/g15", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/g15/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a g15 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "G15DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/g15/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/g15/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/g15/#/file", KEY_META, "default", "g15", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/g15/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/g15/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/g15/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x5", KEY_META, "description", "Display size (currently unused)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a glcd driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "GlcdDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/bidirectional", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Use LPT port in bi-directional mode. This should work on most LPT port and is required for proper timing!", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "800", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/cellsize", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "6x8", KEY_META, "description", "Width and height of a character cell in pixels. This value is only used the driver has been compiled with FreeType and it is enabled. Otherwise the default 6x8 cell is used.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/connectiontype", KEY_META, "check/enum", "#6", KEY_META, "check/enum/#0", "t6963", KEY_META, "check/enum/#1", "png", KEY_META, "check/enum/#2", "serdisplib", KEY_META, "check/enum/#3", "glcd2usb", KEY_META, "check/enum/#4", "x11", KEY_META, "check/enum/#5", "picolcdgfx", KEY_META, "check/enum/#6", "xyz", KEY_META, "check/type", "enum", KEY_META, "default", "t6963", KEY_META, "description", "Select what type of connection. See documentation for types.", KEY_META, "gen/enum/type", "GlcdConnectionType", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "600", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/delaybus", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Insert additional delays into reads / writes.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/file", KEY_META, "default", "glcd", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/fonthasicons", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Some fonts miss the Unicode characters used to represent icons. In this case the built-in 5x8 font can used if this option is turned off.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/keymap_a", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/keymap_b", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/keymap_c", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/keymap_d", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/keymap_e", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/keymap_f", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/keyrepeatdelay", KEY_META, "check/range", "0-3000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "Time (ms) from first key report to first repeat. Set to 0 to disable repeated key reports.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/keyrepeatinterval", KEY_META, "check/range", "0-3000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "Time (ms) between repeated key reports. Ignored if KeyRepeatDelay is disabled (set to zero).", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/normal_font", KEY_META, "check/type", "string", KEY_META, "default", "/usr/local/lib/X11/fonts/TTF/andalemo.ttf", KEY_META, "description", "Path to font file to use for FreeType rendering. This font must be monospace and should contain some special Unicode characters like arrows (Andale Mono is recommended and can be fetched at http://corefonts.sf.net).", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "100", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/picolcdgfx_inverted", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Inverts the pixels.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/picolcdgfx_keytimeout", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9][0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Number must be any positive integer >0", KEY_META, "default", "125", KEY_META, "description", "Time in ms for usb_read to wait on a key press.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/port", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([2-3][0-9A-F]{2}|400)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. legal: 0x200 - 0x400", KEY_META, "default", "0x378", KEY_META, "description", "Parallel port to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/serdisp_device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ppi0", KEY_META, "description", "The display device to use, e.g. serraw:/dev/ttyS0, parport:/dev/parport0 or USB:07c0/1501", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/serdisp_name", KEY_META, "check/type", "string", KEY_META, "default", "t6963", KEY_META, "description", "Name of the underlying serdisplib driver, e.g. ctinclud. See", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/serdisp_options", KEY_META, "check/type", "string", KEY_META, "default", "INVERT=1", KEY_META, "description", "Options string to pass to serdisplib during initialization. Use\nthis to set any display related options (e.g. wiring). The display size is\nalways set based on the Size configured above! By default, no options are\nset.\nImportant: The value must be quoted as it contains equal signs!", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "(640|[1-9]|[1-9][0-9]|[1-5][0-9][0-9]|6[0-3][0-9])x(480|[1-9]|[1-9][0-9]|[1-3][0-9][0-9]|4[0-7][0-9])", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. legal: 1x1 - 640x480", KEY_META, "default", "128x64", KEY_META, "description", "Width and height of the display in pixel. The supported sizes may depend on the ConnectionType", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/useft2", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If LCDproc has been compiled with FreeType 2 support this option can be used to turn if off intentionally.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/x11_backlightcolor", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{6}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Colors are in RRGGBB format prefixed with \"0x\"", KEY_META, "default", "0x80FF80", KEY_META, "description", "The color of the backlight as full brightness.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/x11_border", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "^([1-9]\\d*|0)$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "20", KEY_META, "description", "Adds a border (empty space) around the LCD portion of X11 window.", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/x11_inverted", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Inverts the pixels.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/x11_pixelcolor", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{6}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Colors are in RRGGBB format prefixed with \"0x\"", KEY_META, "default", "0x000000", KEY_META, "description", "The color of each dot at full contrast.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/x11_pixelsize", KEY_META, "check/type", "string", KEY_META, "check/validation", "\\d+\\+\\d+", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "[number]+[number] has to be provided, eg: 3+1 or 5+2", KEY_META, "default", "3+1", KEY_META, "description", "Each LCD dot is drawn in the X window as a filled rectangle of this size\n plus a gap between each filled rectangle. A PixelSize of 3+1\n would draw a 3x3 filled rectangle with a gap of 1 pixel to the right and\n bottom, effectively using a 4x4 area of the window. Default is 3+1.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a glcdlib driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "GlcdlibDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/CharEncoding", KEY_META, "check/type", "string", KEY_META, "default", "iso8859-2", KEY_META, "description", "character encoding to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/backlight", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/brightness", KEY_META, "check/range", "0-100", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "50", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/contrast", KEY_META, "check/range", "0-100", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "50", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/driver", KEY_META, "check/type", "string", KEY_META, "default", "image", KEY_META, "description", "\nSpecify which graphical display supported by graphlcd-base to use.\n Legal values for GRAPHLCD-DRIVER are\n specified in graphlcd\'s configuration file /etc/graphlcd.conf.\n For graphlcd 0.13 they comprise avrctl, framebuffer, gu140x32f, gu256x64-372, \n gu256x64C-3xx0, hd61830, image, ks0108, noritake800, sed1330, sed1520, serdisp, simlcd, t6963c\n", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/file", KEY_META, "default", "glcdlib", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/fontfile", KEY_META, "check/type", "string", KEY_META, "default", "/usr/share/fonts/corefonts/courbd.ttf", KEY_META, "description", "path to font file to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/invert", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/minfontfacesize", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "7x12", KEY_META, "description", "path to font file to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/pixelshiftx", KEY_META, "check/type", "short", KEY_META, "check/validation", "([0-9]+)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "0", KEY_META, "type", "short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/pixelshifty", KEY_META, "check/type", "short", KEY_META, "check/validation", "([0-9]+)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "2", KEY_META, "type", "short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/showbigborder", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/showdebugframe", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/showthinborder", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/textresolution", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x4", KEY_META, "description", "Text resolution in fixed width characters.\n(if it won\'t fit according to available physical pixel resolution\nand the minimum available font face size in pixels, then\n\'DebugBorder\' will automatically be turned on)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/upsidedown", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/useft2", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "no=use graphlcd bitmap fonts (they have only one size / font file)\nyes=use fonts supported by FreeType2 (needs Freetype2 support in\nlibglcdprocdriver and its dependants)", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glk", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glk/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a glk driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "GlkDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glk/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glk/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glk/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "select the serial device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glk/#/file", KEY_META, "default", "glk", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glk/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glk/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glk/#/speed", KEY_META, "check/range", "9600, 19200, 38400, 57600, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "set the serial port speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a hd44780 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Hd44780DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/backlight", KEY_META, "check/enum", "#8", KEY_META, "check/enum/#0", "none", KEY_META, "check/enum/#1", "external", KEY_META, "check/enum/#2", "internal", KEY_META, "check/enum/#3", "internalCmds", KEY_META, "check/type", "enum", KEY_META, "default", "none", KEY_META, "description", "Specify if you have a switchable backlight and if yes, can select method for turning it on/off:\n#\n- none - no switchable backlight is available.\n- external - use external pin or any other method defined with ConnectionType backlight\n handling.\n- internal - means that backlight is handled using internal commands according\n to selected display model (with Model option). Depending on model,\n Brightness and OffBrightness options can be taken into account.\n- internalCmds - means that commands for turning on and off backlight are given\n with extra options BacklightOnCmd and BacklightOffCmd, which would be treated\n as catch up (last resort) for other types of displays which have similar features.\n#\nYou can provide multiple occurences of this option to use more than one method.\nDefault is model specific: Winstar OLED and PT6314 VFD enables internal backlight mode,\nfor others it is set to none.", KEY_META, "gen/enum/type", "HD44780Backlight", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/backlightcmdoff", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{4}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "4 bytes can be encoded, as integer number in big-endian order (0x0000-0xFFFF)", KEY_META, "default", "0x1234", KEY_META, "description", "Commands for disabling internal backlight for use with Backlight=internalCmds.\nUp to 4 bytes can be encoded, as integer number in big-endian order.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/backlightcmdon", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{4}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "4 bytes can be encoded, as integer number in big-endian order (0x0000-0xFFFF)", KEY_META, "default", "0x1223", KEY_META, "description", "Commands for enabling internal backlight for use with Backlight=internalCmds.\nUp to 4 bytes can be encoded, as integer number in big-endian order.\n#\nNOTE: this is advanced option, if command contains bits other than only brighness handling,\nthey must be set accordingly to not disrupt display state. If for example \'FUNCTION SET\' command\nis used for this purpose, bits of interface length (4-bit / 8-bit) must be set according to\nselected ConnectionType.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "800", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/charmap", KEY_META, "check/enum", "#7", KEY_META, "check/enum/#0", "hd44780_default", KEY_META, "check/enum/#1", "hd44780_euro", KEY_META, "check/enum/#2", "ea_ks0073", KEY_META, "check/enum/#3", "sed1278f_0b", KEY_META, "check/enum/#4", "hd44780_koi8_r", KEY_META, "check/enum/#5", "hd44780_cp1251", KEY_META, "check/enum/#6", "hd44780_8859_5", KEY_META, "check/enum/#7", "upd16314", KEY_META, "check/type", "enum", KEY_META, "default", "hd44780_default", KEY_META, "description", "Character map to to map ISO-8859-1 to the LCD\'s character set. (hd44780_koi8_r, hd44780_cp1251, hd44780_8859_5, upd16314 and weh001602a_1\nare possible if compiled with additional charmaps)", KEY_META, "gen/enum/type", "HD44780Charmap", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/connectiontype", KEY_META, "check/enum", "#_27", KEY_META, "check/enum/#0", "4bit", KEY_META, "check/enum/#1", "8bit", KEY_META, "check/enum/#2", "winamp", KEY_META, "check/enum/#3", "lcm162", KEY_META, "check/enum/#4", "serialLpt", KEY_META, "check/enum/#5", "picanlcd", KEY_META, "check/enum/#6", "lcdserializer", KEY_META, "check/enum/#7", "los-panel", KEY_META, "check/enum/#8", "vdr-lcd", KEY_META, "check/enum/#9", "vdr-wakeup", KEY_META, "check/enum/#_10", "ezio", KEY_META, "check/enum/#_11", "pertelian", KEY_META, "check/enum/#_12", "lis2", KEY_META, "check/enum/#_13", "mplay", KEY_META, "check/enum/#_14", "usblcd", KEY_META, "check/enum/#_15", "bwctusb", KEY_META, "check/enum/#_16", "lcd2usb", KEY_META, "check/enum/#_17", "usbtiny", KEY_META, "check/enum/#_18", "uss720", KEY_META, "check/enum/#_19", "USB-4-all", KEY_META, "check/enum/#_20", "ftdi", KEY_META, "check/enum/#_21", "i2c", KEY_META, "check/enum/#_22", "piplate", KEY_META, "check/enum/#_23", "spi", KEY_META, "check/enum/#_24", "pifacecad", KEY_META, "check/enum/#_25", "ethlcd", KEY_META, "check/enum/#_26", "raspberrypi", KEY_META, "check/enum/#_27", "gpio", KEY_META, "check/type", "enum", KEY_META, "default", "4bit", KEY_META, "description", "Select what type of connection. See documentation for available types:\n https://github.com/lcdproc/lcdproc/blob/master/docs/lcdproc-user/drivers/hd44780.docbook", KEY_META, "gen/enum/type", "HD44780ConnectionType", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "800", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/delaybus", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "You can reduce the inserted delays by setting this to false.\nOn fast PCs it is possible your LCD does not respond correctly.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/delaymult", KEY_META, "check/range", "1, 2, 4, 8, 16", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1", KEY_META, "description", "If your display is slow and cannot keep up with the flow of data from\nLCDd, garbage can appear on the LCDd. Set this delay factor to 2 or 4\nto increase the delays.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Device of the serial, I2C, or SPI interface", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/extendedmode", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If you have an HD66712, a KS0073 or another controller with \'extended mode\',\nset this flag to get into 4-line mode. On displays with just two lines, do\nnot set this flag.\nAs an additional restriction, controllers with and without extended mode\nAND 4 lines cannot be mixed for those connection types that support more\nthan one display!\nNOTE: This option is deprecated in favour of choosing Model=extended option.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/file", KEY_META, "default", "hd44780", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/fontbank", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "0", KEY_META, "check/enum/#1", "1", KEY_META, "check/enum/#2", "2", KEY_META, "check/enum/#3", "3", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Font bank to be used for some displays such as the WINSTAR WEH001602A\n0: English/Japanese (default)\n1: Western Europe I\n2: English/Rusian\n3: Western Europe II", KEY_META, "gen/enum/type", "HD44780Fontbank", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/keepalivedisplay", KEY_META, "check/range", "0-10", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Some displays (e.g. vdr-wakeup) need a message from the driver to that it\nis still alive. When set to a value bigger then null the character in the\nupper left corner is updated every seconds.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/keymatrix_4_1", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "If you have a keypad you can assign keystrings to the keys. See\ndocumentation for used terms and how to wire it. For example to give directly connected\nkey 4 the string \'Enter\', use:\n KeyDirect_4=Enter For matrix keys use the\nX and Y coordinates of the key: \n KeyMatrix_1_3=Enter", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/keymatrix_4_2", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "If you have a keypad you can assign keystrings to the keys. See\ndocumentation for used terms and how to wire it. For example to give directly connected\nkey 4 the string \'Enter\', use:\n KeyDirect_4=Enter For matrix keys use the\nX and Y coordinates of the key: \n KeyMatrix_1_3=Enter", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/keymatrix_4_3", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "If you have a keypad you can assign keystrings to the keys. See\ndocumentation for used terms and how to wire it. For example to give directly connected\nkey 4 the string \'Enter\', use:\n KeyDirect_4=Enter For matrix keys use the\nX and Y coordinates of the key: \n KeyMatrix_1_3=Enter", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/keymatrix_4_4", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "If you have a keypad you can assign keystrings to the keys. See\ndocumentation for used terms and how to wire it. For example to give directly connected\nkey 4 the string \'Enter\', use:\n KeyDirect_4=Enter For matrix keys use the\nX and Y coordinates of the key: \n KeyMatrix_1_3=Enter", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/keypad", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If you have a keypad connected.\nYou may also need to configure the keypad layout further on in this file.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/lastline", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Specifies if the last line is pixel addressable (yes) or it controls an\nunderline effect (no).", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/lineaddress", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a line Address. eg. 0x20, 0x10", KEY_META, "default", "0x20", KEY_META, "description", "In extended mode, on some controllers like the ST7036 (in 3 line mode) the next line in DDRAM won`t start 0x20 higher.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/model", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "standard", KEY_META, "check/enum/#1", "extended", KEY_META, "check/enum/#2", "winstar_oled", KEY_META, "check/enum/#3", "pt6314_vfd", KEY_META, "check/type", "enum", KEY_META, "default", "standard", KEY_META, "description", "Select model if have non-standard one which require extra initialization or handling or\n just want extra features it offers.\n Available: standard (default), extended, winstar_oled, pt6314_vfd\n - standard is default, use for LCDs not mentioned below.\n - extended, hd66712, ks0073: allows use 4-line \'extended\' mode,\n same as deprecated now option ExtendedMode=yes\n - winstar_oled, weh00xxyya: changes initialization for WINSTAR\'s WEH00xxyyA displays\n and allows handling brightness\n - pt6314_vfd: allows handling brightness on PTC\'s PT6314 VFDs\n This option should be independent of connection type.", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "300", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/outputport", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If you have the additional output port (\"bargraph\") and you want to be able to control it with the lcdproc OUTPUT command", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/port", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{3}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Port must begin with \"0x\", followed by 3 Hexadezimal values, eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "I/O address of the LPT port. Usual values are: 0x278, 0x378 and 0x3BC. For I2C connections this sets the slave address (usually 0x20).", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/refreshdisplay", KEY_META, "check/range", "0-20", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "If you experience occasional garbage on your display you can use this\noption as workaround. If set to a value bigger than null it forces a\nfull screen refresh seconds.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Specifies the size of the LCD. In case of multiple combined displays, this should be the total size.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/speed", KEY_META, "check/type", "unsigned_long", KEY_META, "default", "0", KEY_META, "description", "Bitrate of the serial port (0 for interface default)", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/vspan", KEY_META, "check/type", "string", KEY_META, "check/validation", "^([1-9][0-9]*(,[1-9][0-9]*)*)\?$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Declarations must look like this: 2,2 or 2,2,1", KEY_META, "default", "", KEY_META, "description", "For multiple combined displays: how many lines does each display have.\nVspan=2,2 means both displays have 2 lines.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a icp_a106 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Icp_a106DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Device of the serial, I2C, or SPI interface", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106/#/file", KEY_META, "default", "icp_a106", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x2", KEY_META, "description", "Display dimensions", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a imon driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "ImonDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#/charmap", KEY_META, "check/enum", "#5", KEY_META, "check/enum/#0", "hd44780_euro", KEY_META, "check/enum/#1", "upd16314", KEY_META, "check/enum/#2", "hd44780_koi8_r", KEY_META, "check/enum/#3", "hd44780_cp1251", KEY_META, "check/enum/#4", "hd44780_8859_5", KEY_META, "check/enum/#5", "none", KEY_META, "check/type", "enum", KEY_META, "default", "none", KEY_META, "description", "Character map to to map ISO-8859-1 to the displays character set. (upd16314, hd44780_koi8_r,\nhd44780_cp1251, hd44780_8859_5 are possible if compiled with additional\ncharmaps)", KEY_META, "gen/enum/type", "IMonCharmap", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd0", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#/file", KEY_META, "default", "imon", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Display dimensions", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a imonlcd driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "ImonlcdDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/backlight", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Set the backlight state", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "200", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd0", KEY_META, "description", "select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/discmode", KEY_META, "check/enum", "#1", KEY_META, "check/enum/#0", "0", KEY_META, "check/enum/#1", "1", KEY_META, "check/type", "enum", KEY_META, "default", "0", KEY_META, "description", "Set the disc mode\n0 => spin the \'slim\' disc - two disc segments,\n1 => their complement spinning;", KEY_META, "gen/enum/type", "IMonLCDDiscMode", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/file", KEY_META, "default", "imonlcd", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/onexit", KEY_META, "check/range", "0-2", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1", KEY_META, "description", "Set the exit behavior\n0 means leave shutdown message,\n1 means show the big clock,\n2 means blank device", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/protocol", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "15c2:ffdc", KEY_META, "check/enum/#1", "15c2:0038", KEY_META, "check/enum/#2", "0", KEY_META, "check/enum/#3", "1", KEY_META, "check/type", "string", KEY_META, "default", "0", KEY_META, "description", "Specify which iMon protocol should be used\nChoose 0 for 15c2:ffdc device,\nChoose 1 for 15c2:0038 device", KEY_META, "gen/enum/#2/value", "0", KEY_META, "gen/enum/#3/value", "1", KEY_META, "gen/enum/type", "IMonLCDProtocol", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "96x16", KEY_META, "description", "Specify the size of the display in pixels", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a IOWarrior driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "IOWarriorDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/extendedmode", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If you have an HD66712, a KS0073 or another \'almost HD44780-compatible\',\nset this flag to get into extended mode (4-line linear).", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/file", KEY_META, "default", "IOWarrior", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/lastline", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Specifies if the last line is pixel addressable (yes) or it controls an\nunderline effect (no).", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/serialnumber", KEY_META, "check/type", "any", KEY_META, "default", "00000674", KEY_META, "description", "serial number. Must be exactly as listed by usbview (if not given, the 1st IOWarrior found gets used)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Display dimensions", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a IrMan driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "IrManDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman/#/config", KEY_META, "check/type", "string", KEY_META, "default", "/etc/irman.cfg", KEY_META, "description", "Select the configuration file to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/irman", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman/#/file", KEY_META, "default", "IrMan", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a irtrans driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "IrtransDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#/backlight", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Does the device have a backlight\?", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#/file", KEY_META, "default", "irtrans", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#/hostname", KEY_META, "check/type", "string", KEY_META, "default", "localhost", KEY_META, "description", "IRTrans device to connect to", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Specify the size of the display in pixels", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a joy driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "JoyDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/js0", KEY_META, "description", "Select the input device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/file", KEY_META, "default", "joy", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/map_axis1neg", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "set the axis map", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/map_axis1pos", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "set the axis map", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/map_axis2neg", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "set the axis map", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/map_axis2pos", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "set the axis map", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/map_button1", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "set the button map", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/map_button2", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "set the button map", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lb216", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lb216/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lb216 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Lb216DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lb216/#/brightness", KEY_META, "check/range", "0-255", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "200", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lb216/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lb216/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the input device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lb216/#/file", KEY_META, "default", "lb216", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lb216/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lb216/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lb216/#/speed", KEY_META, "check/range", "2400, 9600", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lcdm001 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Lcdm001DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#/backkey", KEY_META, "check/type", "string", KEY_META, "default", "UpKey", KEY_META, "description", "Normal Context: Back(Go to previous screen) \nMenu Context: Up/Left", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#/file", KEY_META, "default", "lcdm001", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#/forwardkey", KEY_META, "check/type", "string", KEY_META, "default", "DownKey", KEY_META, "description", "Normal Context: Forward(Go to next screen) \nMenu Context: Down/Right", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#/mainmenukey", KEY_META, "check/type", "string", KEY_META, "default", "RightKey", KEY_META, "description", "Normal Context: Open main menu \nMenu Context: Exit/Cancel", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#/pausekey", KEY_META, "check/type", "string", KEY_META, "default", "LeftKey", KEY_META, "description", "Normal Context: Pause/Continue \nMenu Context: Enter/select", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lcterm driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "LctermDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm/#/file", KEY_META, "default", "lcterm", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Specify the size of the display in pixels", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a linux_input driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Linux_inputDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/input/event0", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input/#/file", KEY_META, "default", "linux_input", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input/#/key/_", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "specify a non-default key map, eg.: \n/linux_input/key/#01 = 1\n/linux_input/key/#28 = Enter", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lirc driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "LircDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc/#/file", KEY_META, "default", "lirc", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc/#/lircrc", KEY_META, "check/type", "string", KEY_META, "default", "~/.lircrc", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc/#/prog", KEY_META, "check/type", "string", KEY_META, "default", "lcdd", KEY_META, "description", "Must be the same as in your lircrc", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lis driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "LisDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness\n0-250 = 25%, 251-500 = 50%, 501-750 = 75%, 751-1000 = 100%", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/file", KEY_META, "default", "lis", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/lastline", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Specifies if the last line is pixel addressable (yes) or it only controls an\nunderline effect (no)", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/productid", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{4})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size ProductID: 0x0000-0xFFFF is allowed", KEY_META, "default", "0x6001", KEY_META, "description", "USB Product ID. Change only if testing a compatible device.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Columns by lines", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/vendorid", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{4})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size VendorID: 0x0000-0xFFFF is allowed", KEY_META, "default", "0x0403", KEY_META, "description", "USB Vendor ID. Change only if testing a compatible device.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a MD8800 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "MD8800DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800/#/file", KEY_META, "default", "MD8800", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a mdm166a driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Mdm166aDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#/clock", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "no", KEY_META, "check/enum/#1", "small", KEY_META, "check/enum/#2", "big", KEY_META, "check/type", "enum", KEY_META, "default", "no", KEY_META, "description", "Show self-running clock after LCDd shutdown", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#/dimming", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Dim display, no dimming gives full brightness", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#/file", KEY_META, "default", "mdm166a", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#/offdimming", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Dim display in case LCDd is inactive", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/menu/downkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/menu/enterkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/menu/leftkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/menu/menukey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/menu/permissivegoto", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If true the server allows transitions between different client`s menus", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/menu/rightkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/menu/upkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a ms6931 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Ms6931DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931/#/file", KEY_META, "default", "ms6931", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtc_s16209x", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtc_s16209x/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a mtc_s16209x driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Mtc_s16209xDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtc_s16209x/#/brightness", KEY_META, "check/range", "0-255", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "200", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtc_s16209x/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtc_s16209x/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtc_s16209x/#/file", KEY_META, "default", "mtc_s16209x", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtc_s16209x/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtc_s16209x/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a MtxOrb driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "MtxOrbDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "480", KEY_META, "description", "Set the initial contrast\nNOTE: The driver will ignore this if the display\nis a vfd or vkd as they don\'t have this feature", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS0", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/file", KEY_META, "default", "MtxOrb", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/hasadjustablebacklight", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Some old displays do not have an adjustable backlight but only can\nswitch the backlight on/off. If you experience randomly appearing block\ncharacters, try setting this to false.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/keymap_a", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/keymap_b", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/keymap_c", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/keymap_d", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/keymap_e", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/keymap_f", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/speed", KEY_META, "check/range", "1200, 2400, 9600, 19200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "Set the communication", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/type", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "lcd lkd, vfd, vkd", KEY_META, "check/enum/#1", "lkd", KEY_META, "check/enum/#2", "vfd", KEY_META, "check/enum/#3", "vkd", KEY_META, "check/type", "enum", KEY_META, "default", "lcd", KEY_META, "description", "Set the display type", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a mx5000 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Mx5000DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/hiddev0", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000/#/file", KEY_META, "default", "mx5000", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000/#/waitafterrefresh", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "[1-9]\\d*", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "WaitAfterRefresh must be a positive number", KEY_META, "default", "1000", KEY_META, "description", "Time to wait in ms after the refresh screen has been sent", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a NoritakeVFD driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "NoritakeVFDDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "device where the VFD is. Usual values are /dev/ttyS0 and /dev/ttyS1", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/file", KEY_META, "default", "NoritakeVFD", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/parity", KEY_META, "check/range", "0-2", KEY_META, "check/type", "unsigned_long", KEY_META, "default", "0", KEY_META, "description", "Set serial data parity\nMeaning: 0(=none), 1(=odd), 2(=even)", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/speed", KEY_META, "check/range", "1200, 2400, 9600, 19200, 115200", KEY_META, "check/type", "unsigned_long", KEY_META, "default", "19200", KEY_META, "description", "set the serial port speed", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/olimex_mod_lcd1x9", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/olimex_mod_lcd1x9/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a Olimex_MOD_LCD1x9 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Olimex_MOD_LCD1x9DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/olimex_mod_lcd1x9/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/olimex_mod_lcd1x9/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/olimex_mod_lcd1x9/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/i2c-0", KEY_META, "description", "device file of the i2c controller", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/olimex_mod_lcd1x9/#/file", KEY_META, "default", "Olimex_MOD_LCD1x9", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/olimex_mod_lcd1x9/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/olimex_mod_lcd1x9/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a picolcd driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "PicolcdDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/backlight", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Sets the initial state of the backlight upon start-up.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness [default: 1000; legal: 0 - 1000]. Works only\nwith the 20x4 device", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/file", KEY_META, "default", "picolcd", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/key0light", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/key1light", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/key2light", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/key3light", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/key4light", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/key5light", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/keylights", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Light the keys\?", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/keyrepeatdelay", KEY_META, "check/range", "0-3000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "300", KEY_META, "description", "Key auto repeat is only available if the picoLCD driver is built with\nlibusb-1.0. Use KeyRepeatDelay and KeyRepeatInterval to configure key auto\nrepeat.\n#\nKey auto repeat delay (time in ms from first key report to first repeat). Use\nzero to disable auto repeat.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/keyrepeatinterval", KEY_META, "check/range", "0-3000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "200", KEY_META, "description", "Key auto repeat interval (time in ms between repeat reports). Only used if\nKeyRepeatDelay is not zero.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/keytimeout", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "KeyTimeout is only used if the picoLCD driver is built with libusb-0.1. When\nbuilt with libusb-1.0 key and IR data is input asynchronously so there is no\nneed to wait for the USB data.\nKeyTimeout is the time in ms that LCDd spends waiting for a key press before\ncycling through other duties. Higher values make LCDd use less CPU time and\nmake key presses more detectable. Lower values make LCDd more responsive\nbut a little prone to missing key presses. 500 (.5 second) is the default\nand a balanced value.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/linklights", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Link the key lights to the backlight\?", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/lircflushthreshold", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "[1-9]\\d{3,}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "LircFlushThreshold must be a positive number >1000", KEY_META, "default", "1000", KEY_META, "description", "Threshold in microseconds of the gap that triggers flushing the IR data\nto lirc [default: 8000; legal: 1000 - ]\nIf LircTime_us is on values greater than 32.767ms will disable the flush\nIf LircTime_us is off values greater than 1.999938s will disable the flush", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/lirchost", KEY_META, "check/type", "string", KEY_META, "default", "127.0.0.1", KEY_META, "description", "Host name or IP address of the LIRC instance that is to receive IR codes If not set, or set to an empty value, IR support is disabled.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/lircport", KEY_META, "default", "8765", KEY_META, "description", "UDP port on which LIRC is listening", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/lirctime_us", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "UDP data time unit for LIRC\nOn: times sent in microseconds (requires LIRC UDP driver that accepts this).\nOff: times sent in \'jiffies\' (1/16384s) (supported by standard LIRC UDP driver).", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the brightness while the backlight is \'off\'.\nWorks only with the 20x4 device.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/pyramid", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/pyramid/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a pyramid driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "PyramidDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/pyramid/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/pyramid/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/pyramid/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "device to connect to", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/pyramid/#/file", KEY_META, "default", "pyramid", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/pyramid/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/pyramid/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a rawserial driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "RawserialDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/cuaU0", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/file", KEY_META, "default", "rawserial", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "40x4", KEY_META, "description", "Specifies the size of the LCD. If this driver is loaded as a secondary driver\nit always adopts to the size of the primary driver. If loaded as the only\n(or primary) driver, the size can be set.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/speed", KEY_META, "check/type", "unsigned_long", KEY_META, "default", "9600", KEY_META, "description", "Serial port baudrate [default: 9600]", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/updaterate", KEY_META, "check/type", "float", KEY_META, "default", "1", KEY_META, "description", "How often to dump the LCD contents out the port, in Hertz (times per second)\n1 = once per second, 4 is 4 times per second, 0.1 is once every 10 seconds.\n[default: 1; legal: 0.0005 - 10]", KEY_META, "type", "float", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a sed1330 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Sed1330DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/cellsize", KEY_META, "check/type", "string", KEY_META, "check/validation", "[6-8]x([1-9][0-6]|[1-9])", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Width x Height of a character cell in pixels [legal: 6x7 - 8x16]", KEY_META, "default", "6x10", KEY_META, "description", "Width x Height of a character cell in pixels", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/connectiontype", KEY_META, "check/enum", "#1", KEY_META, "check/enum/#0", "classic", KEY_META, "check/enum/#1", "bitshaker", KEY_META, "check/type", "enum", KEY_META, "default", "classic", KEY_META, "description", "Select what type of connection", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/file", KEY_META, "default", "sed1330", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/port", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{3})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "Port where the LPT is. Common values are 0x278, 0x378 and 0x3BC", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/type", KEY_META, "check/enum", "#5", KEY_META, "check/enum/#0", "G321D", KEY_META, "check/enum/#1", "G121C", KEY_META, "check/enum/#2", "G242C", KEY_META, "check/enum/#3", "G191D", KEY_META, "check/enum/#4", "G2446", KEY_META, "check/enum/#5", "SP14Q002", KEY_META, "check/type", "enum", KEY_META, "default", "G321D", KEY_META, "description", "Type of LCD module.\nNote: Currently only tested with G321D & SP14Q002.", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a sed1520 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Sed1520DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/delaymult", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1", KEY_META, "description", "On fast machines it may be necessary to slow down transfer to the display.\nIf this value is set to zero, delay is disabled. Any value greater than\nzero slows down each write by one microsecond.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/file", KEY_META, "default", "sed1520", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/haveinverter", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "The original wiring used an inverter to drive the control lines. If you do\nnot use an inverter set haveInverter to no.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/interfacetype", KEY_META, "check/range", "68, 80", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "80", KEY_META, "description", "Select the interface type (wiring) for the display. Supported values are\n68 for 68-style connection (RESET level high) and 80 for 80-style connection\n(RESET level low)", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/invertedmapping", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "On some displays column data in memory is mapped to segment lines from right\nto left. This is called inverted mapping (not to be confused with\n\'haveInverter\' from above).", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/port", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{3})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "Port where the LPT is. Usual values are 0x278, 0x378 and 0x3BC", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/usehardreset", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "At least one display is reported (Everbouquet MG1203D) that requires sending\nthree times 0xFF before a reset during initialization.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a serialPOS driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SerialPOSDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/cellsize", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "5x8", KEY_META, "description", "Specifies the cell size of each character cell on the display in characters.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/custom_chars", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "^([1-9]\\d*|0)$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be any positive number including 0", KEY_META, "default", "0", KEY_META, "description", "Specifies the number of custom characters supported by the display.\nCustom characters are only used for the rendering of horizontal bars\nand vertical bars. For displays whose cell character cell widths are\nlower than the number of custom characters supported,\nthen custom characters will be used to render the horizontal bars.\nFor more information look at: https://github.com/lcdproc/lcdproc/blob/master/docs/lcdproc-user/drivers/serialPOS.docbook", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS0", KEY_META, "description", "Device to use in serial mode", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/file", KEY_META, "default", "serialPOS", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Specifies the size of the display in characters.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/speed", KEY_META, "check/range", "1200, 2400, 4800, 9600, 19200, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "communication baud rate with the display", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/type", KEY_META, "check/enum", "#5", KEY_META, "check/enum/#0", "AEDEX", KEY_META, "check/enum/#1", "CD5220", KEY_META, "check/enum/#2", "Epson", KEY_META, "check/enum/#3", "Emax", KEY_META, "check/enum/#4", "LogicControls", KEY_META, "check/enum/#5", "Ultimate", KEY_META, "check/type", "enum", KEY_META, "default", "AEDEX", KEY_META, "description", "Set the communication protocol to use with the POS display.", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a serialVFD driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SerialVFDDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness. (4 steps 0-250, 251-500, 501-750, 751-1000)", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/custom-characters", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "^([1-9]\\d*|0)$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be any positive number including 0", KEY_META, "default", "0", KEY_META, "description", "Number of Custom-Characters. default is display type dependent", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "Device to use in serial mode. Usual values are /dev/ttyS0 and /dev/ttyS1", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/file", KEY_META, "default", "serialVFD", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/iso_8859_1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "enable ISO 8859 1 compatibility", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive\n(4 steps 0-250, 251-500, 501-750, 751-1000)", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/port", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{3})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "Portaddress where the LPT is. Used in parallel mode only. Usual values are 0x278, 0x378 and 0x3BC.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/portwait", KEY_META, "check/range", "0-255", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "2", KEY_META, "description", "Set parallel port timing delay (us). Used in parallel mode only.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x2", KEY_META, "description", "Specifies the size of the VFD.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/speed", KEY_META, "check/range", "1200, 2400, 9600, 19200, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "set the serial port speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/type", KEY_META, "check/enum", "#_17", KEY_META, "check/enum/#0", "nec_fipc8367", KEY_META, "check/enum/#1", "kd_rev_2_1", KEY_META, "check/enum/#2", "noritake_vfd", KEY_META, "check/enum/#3", "futaba_vfd", KEY_META, "check/enum/#4", "iee_s03601-95b", KEY_META, "check/enum/#5", "iee_s03601-96-080", KEY_META, "check/enum/#6", "futaba_na202sd08fa", KEY_META, "check/enum/#7", "samsung_20s207da4/20s207da6", KEY_META, "check/enum/#8", "nixdorf_ba6x/vt100", KEY_META, "check/enum/#_10", "1", KEY_META, "check/enum/#_11", "2", KEY_META, "check/enum/#_12", "3", KEY_META, "check/enum/#_13", "4", KEY_META, "check/enum/#_14", "5", KEY_META, "check/enum/#_15", "6", KEY_META, "check/enum/#_16", "7", KEY_META, "check/enum/#_17", "8", KEY_META, "check/enum/#_9", "0", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Specifies the displaytype.[default: 0]\n0 NEC (FIPC8367 based) VFDs.\n1 KD Rev 2.1.\n2 Noritake VFDs (*).\n3 Futaba VFDs\n4 IEE S03601-95B\n5 IEE S03601-96-080 (*)\n6 Futaba NA202SD08FA (allmost IEE compatible)\n7 Samsung 20S207DA4 and 20S207DA6\n8 Nixdorf BA6x / VT100\n(* most should work, not tested yet.)", KEY_META, "gen/enum/type", "SerialVFDType", KEY_META, "gen/enum/value", "8", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/use_parallel", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "\'no\' if display connected serial, \'yes\' if connected parallel.\nI.e. serial by default", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/autorotate", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If set to no, LCDd will start with screen rotation disabled. This has the same effect as if the ToggleRotateKey had been pressed. Rotation will start if the ToggleRotateKey is pressed. Note that this setting does not turn off priority sorting of screens", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/backlight", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "off", KEY_META, "check/enum/#1", "on", KEY_META, "check/enum/#2", "open", KEY_META, "default", "open", KEY_META, "description", "Set master backlight setting. If set to \'open\' a client may control the backlight for its own screens (only)", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/bind", KEY_META, "check/type", "string", KEY_META, "default", "127.0.0.1", KEY_META, "description", "Tells the driver to bind to the given interface", KEY_META, "opt", "a", KEY_META, "opt/long", "address", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/driverpath", KEY_META, "check/type", "string", KEY_META, "check/validation", ".*[\\/]$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "The path has to contain a backslack (/) at the end", KEY_META, "default", "server/drivers/", KEY_META, "description", "Select the LCD size", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/drivers", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/drivers/#", KEY_META, "check/reference/restrict", "#_52", KEY_META, "check/reference/restrict/#0", "@/bayrad/#", KEY_META, "check/reference/restrict/#1", "@/cfontz/#", KEY_META, "check/reference/restrict/#2", "@/cfontzpacket/#", KEY_META, "check/reference/restrict/#3", "@/curses/#", KEY_META, "check/reference/restrict/#4", "@/cwlnx/#", KEY_META, "check/reference/restrict/#5", "@/ea65/#", KEY_META, "check/reference/restrict/#6", "@/eyeboxone/#", KEY_META, "check/reference/restrict/#7", "@/futaba/#", KEY_META, "check/reference/restrict/#8", "@/g15/#", KEY_META, "check/reference/restrict/#9", "@/glcd/#", KEY_META, "check/reference/restrict/#_10", "@/glcdlib/#", KEY_META, "check/reference/restrict/#_11", "@/glk/#", KEY_META, "check/reference/restrict/#_12", "@/hd44780/#", KEY_META, "check/reference/restrict/#_13", "@/icp_a106/#", KEY_META, "check/reference/restrict/#_14", "@/imon/#", KEY_META, "check/reference/restrict/#_15", "@/imonlcd/#", KEY_META, "check/reference/restrict/#_16", "@/iowarrior/#", KEY_META, "check/reference/restrict/#_17", "@/irman/#", KEY_META, "check/reference/restrict/#_18", "@/joy/#", KEY_META, "check/reference/restrict/#_19", "@/lb216/#", KEY_META, "check/reference/restrict/#_20", "@/lcdm001/#", KEY_META, "check/reference/restrict/#_21", "@/lcterm/#", KEY_META, "check/reference/restrict/#_22", "@/linux_input/#", KEY_META, "check/reference/restrict/#_23", "@/lirc/#", KEY_META, "check/reference/restrict/#_24", "@/lis/#", KEY_META, "check/reference/restrict/#_25", "@/md8800/#", KEY_META, "check/reference/restrict/#_26", "@/mdm166a/#", KEY_META, "check/reference/restrict/#_27", "@/ms6931/#", KEY_META, "check/reference/restrict/#_28", "@/mtc_s16209x/#", KEY_META, "check/reference/restrict/#_29", "@/mtxorb/#", KEY_META, "check/reference/restrict/#_30", "@/mx5000/#", KEY_META, "check/reference/restrict/#_31", "@/noritakevfd/#", KEY_META, "check/reference/restrict/#_32", "@/olimex_mod_lcd1x9/#", KEY_META, "check/reference/restrict/#_33", "@/picolcd/#", KEY_META, "check/reference/restrict/#_34", "@/pyramid/#", KEY_META, "check/reference/restrict/#_35", "@/rawserial/#", KEY_META, "check/reference/restrict/#_36", "@/sdeclcd/#", KEY_META, "check/reference/restrict/#_37", "@/sed1330/#", KEY_META, "check/reference/restrict/#_38", "@/sed1520/#", KEY_META, "check/reference/restrict/#_39", "@/serialpos/#", KEY_META, "check/reference/restrict/#_40", "@/serialvfd/#", KEY_META, "check/reference/restrict/#_41", "@/shuttlevfd/#", KEY_META, "check/reference/restrict/#_42", "@/sli/#", KEY_META, "check/reference/restrict/#_43", "@/stv5730/#", KEY_META, "check/reference/restrict/#_44", "@/svga/#", KEY_META, "check/reference/restrict/#_45", "@/t6963/#", KEY_META, "check/reference/restrict/#_46", "@/text/#", KEY_META, "check/reference/restrict/#_47", "@/tyan/#", KEY_META, "check/reference/restrict/#_48", "@/ula200/#", KEY_META, "check/reference/restrict/#_49", "@/vlsys_m428/#", KEY_META, "check/reference/restrict/#_50", "@/xosd/#", KEY_META, "check/reference/restrict/#_51", "@/yard2lcd/#", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "Tells the server to load a driver.\nThe given value is a reference the configuration of the driver, e.g. @/curses/#0", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/foreground", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "The server will stay in the foreground if set to yes", KEY_META, "opt", "f", KEY_META, "opt/arg", "none", KEY_META, "opt/long", "foreground", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/frameinterval", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "[1-9]\\d*", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "FrameInterval must be a positive number", KEY_META, "default", "125000", KEY_META, "description", "Sets the interval in microseconds for updating the display [default: 125000 meaning 8Hz]", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/goodbye/#", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "GoodBye message: each entry represents a display line", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/heartbeat", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "off", KEY_META, "check/enum/#1", "on", KEY_META, "check/enum/#2", "open", KEY_META, "default", "open", KEY_META, "description", "Set master heartbeat setting. If set to \'open\' a client may control the", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/hello/#", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "Hello message: each entry represents a display line", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/nextscreenkey", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/port", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "13666", KEY_META, "description", "Listen on this specified port. [default: 13666]", KEY_META, "opt", "p", KEY_META, "opt/long", "port", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/prevscreenkey", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/reportlevel", KEY_META, "check/range", "0-5", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "2", KEY_META, "description", "TSets the reporting level, defaults to warnings and errors only.", KEY_META, "opt", "r", KEY_META, "opt/long", "report-level", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/reporttosyslog", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Should we report to syslog instead of stderr\?", KEY_META, "opt", "s", KEY_META, "opt/arg", "none", KEY_META, "opt/long", "report-to-syslog", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/scrolldownkey", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/scrollupkey", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/serverscreen", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "off", KEY_META, "check/enum/#1", "on", KEY_META, "check/enum/#2", "blank", KEY_META, "default", "on", KEY_META, "description", "If yes, the the serverscreen will be rotated as a usual info screen. If no, it will be a background screen, only visible when no other screens are active. The special value \'blank\' is similar to no, but only a blank screen is displayed.", KEY_META, "opt", "i", KEY_META, "opt/long", "rotate-server-screen", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/titlespeed", KEY_META, "check/range", "0-10", KEY_META, "default", "10", KEY_META, "description", "title scrolling speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/togglerotatekey", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/user", KEY_META, "check/type", "string", KEY_META, "default", "nobody", KEY_META, "description", "set to run as. LCDd will drop its root privileges and run as this user instead. [default: nobody]", KEY_META, "opt", "u", KEY_META, "opt/long", "user", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/waittime", KEY_META, "check/type", "float", KEY_META, "default", "4", KEY_META, "description", "Sets the default time in seconds to displays a screen", KEY_META, "opt", "w", KEY_META, "opt/long", "wait-time", KEY_META, "type", "float", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a sli driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SliDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli/#/file", KEY_META, "default", "sli", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli/#/speed", KEY_META, "check/range", "1200, 2400, 9600, 19200, 38400, 57600, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/stv5730", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/stv5730/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a stv5730 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Stv5730DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/stv5730/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/stv5730/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/stv5730/#/file", KEY_META, "default", "stv5730", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/stv5730/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/stv5730/#/port", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{3})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "Port the device is connected to", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/stv5730/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a SureElec driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SureElecDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "480", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "480", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyUSB0", KEY_META, "description", "Port the device is connected to (by default first USB serial port)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#/edition", KEY_META, "check/range", "1-3", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "2", KEY_META, "description", "Edition level of the device (can be 1, 2 or 3)", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#/file", KEY_META, "default", "SureElec", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "480", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "set display size\nNote: The size can be obtained directly from device for edition 2 & 3.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a svga driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SvgaDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga/#/brightness", KEY_META, "check/range", "1-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga/#/file", KEY_META, "default", "svga", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga/#/mode", KEY_META, "check/type", "string", KEY_META, "default", "G320x240x256", KEY_META, "description", "svgalib mode to use [default: G320x240x256 ]\nlegal values are supported svgalib modes. See man7 pages for allowed values", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga/#/offbrightness", KEY_META, "check/range", "1-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a t6963 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "T6963DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/bidirectional", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Use LPT port in bi-directional mode. This should work on most LPT port and\nis required for proper timing!", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/cleargraphic", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Clear graphic memory on start-up.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/delaybus", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Insert additional delays into reads / writes.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/file", KEY_META, "default", "t6963", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/port", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([2-3][0-9A-F]{2}|400)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. legal: 0x200 - 0x400", KEY_META, "default", "0x378", KEY_META, "description", "Parallel port to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "128x64", KEY_META, "description", "set display size in pixels", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/text", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/text/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a text driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "TextDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/text/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/text/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/text/#/file", KEY_META, "default", "text", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/text/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/text/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/text/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a tyan driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "TyanDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#/file", KEY_META, "default", "tyan", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#/speed", KEY_META, "check/range", "4800, 9600", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a ula200 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Ula200DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/file", KEY_META, "default", "ula200", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/keymap_a", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/keymap_b", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/keymap_c", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/keymap_d", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/keymap_e", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/keymap_f", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Select the LCD size", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/vlsys_m428", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/vlsys_m428/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a vlsys_m428 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Vlsys_m428DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/vlsys_m428/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/vlsys_m428/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/vlsys_m428/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyUSB0", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/vlsys_m428/#/file", KEY_META, "default", "vlsys_m428", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/vlsys_m428/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/vlsys_m428/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a xosd driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "XosdDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#/Font", KEY_META, "check/type", "string", KEY_META, "default", "-*-terminus-*-r-*-*-*-320-*-*-*-*-*", KEY_META, "description", "X font to use, in XLFD format, as given by \'xfontsel\'", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#/file", KEY_META, "default", "xosd", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#/offset", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid offset declaration. Examples: 200x200", KEY_META, "default", "0x0", KEY_META, "description", "Offset in pixels from the top-left corner of the monitor [default: 0x0]", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/yard2lcd", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/yard2lcd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a yard2LCD driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Yard2LCDDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/yard2lcd/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/yard2lcd/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/yard2lcd/#/file", KEY_META, "default", "yard2LCD", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/yard2lcd/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/yard2lcd/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/yard2lcd/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), - KS_END); -; - - Key * parentKey = keyNew ("spec/sw/lcdproc/lcdd/#0/current", KEY_END); - - KeySet * specloadConf = ksNew (1, keyNew ("system/sendspec", KEY_END), KS_END); - ElektraInvokeHandle * specload = elektraInvokeOpen ("specload", specloadConf, parentKey); - - int result = elektraInvoke2Args (specload, "sendspec", spec, parentKey); - - elektraInvokeClose (specload, parentKey); - keyDel (parentKey); - ksDel (specloadConf); - ksDel (spec); - - exit (result == ELEKTRA_PLUGIN_STATUS_SUCCESS ? EXIT_SUCCESS : EXIT_FAILURE); -} - -/** - * Extracts the help message from the @p errorKey used in elektraGetOpts(). - * - * @param errorKey The same Key as passed to elektraGetOpts() as errorKey. - * @param usage If this is not NULL, it will be used instead of the default usage line. - * @param prefix If this is not NULL, it will be inserted between the usage line and the options list. - * - * @return The full help message extracted from @p errorKey, or NULL if no help message was found. - * The returned string has to be freed with elektraFree(). - */ - -/** - * Outputs the help message to stdout - * - * @param usage If this is not NULL, it will be used instead of the default usage line. - * @param prefix If this is not NULL, it will be inserted between the usage line and the options list. - */ -void printHelpMessage (const char * usage, const char * prefix) -{ - if (helpKey == NULL) - { - return; - } - - char * help = elektraGetOptsHelpMessage (helpKey, usage, prefix); - printf ("%s", help); - elektraFree (help); - keyDel (helpKey); - helpKey = NULL; -} - -// clang-format off - -// clang-format on - -// ------------------------- -// Enum conversion functions -// ------------------------- - -ELEKTRA_KEY_TO_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - - if (strcmp (string, "533") == 0) - { - *variable = C_FONTZ_PACKET_MODEL_533; - return 1; - } - if (strcmp (string, "631") == 0) - { - *variable = C_FONTZ_PACKET_MODEL_631; - return 1; - } - if (strcmp (string, "633") == 0) - { - *variable = C_FONTZ_PACKET_MODEL_633; - return 1; - } - if (strcmp (string, "635") == 0) - { - *variable = C_FONTZ_PACKET_MODEL_635; - return 1; - } - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel) -{ - switch (value) - { - case C_FONTZ_PACKET_MODEL_533: - return elektraStrDup ("533"); - case C_FONTZ_PACKET_MODEL_631: - return elektraStrDup ("631"); - case C_FONTZ_PACKET_MODEL_633: - return elektraStrDup ("633"); - case C_FONTZ_PACKET_MODEL_635: - return elektraStrDup ("635"); - } - - // should be unreachable - return ""; -} -ELEKTRA_KEY_TO_SIGNATURE (CursesColor, EnumCursesColor) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - - if (strcmp (string, "red") == 0) - { - *variable = CURSES_COLOR_RED; - return 1; - } - if (strcmp (string, "black") == 0) - { - *variable = CURSES_COLOR_BLACK; - return 1; - } - if (strcmp (string, "green") == 0) - { - *variable = CURSES_COLOR_GREEN; - return 1; - } - if (strcmp (string, "yellow") == 0) - { - *variable = CURSES_COLOR_YELLOW; - return 1; - } - if (strcmp (string, "blue") == 0) - { - *variable = CURSES_COLOR_BLUE; - return 1; - } - if (strcmp (string, "magenta") == 0) - { - *variable = CURSES_COLOR_MAGENTA; - return 1; - } - if (strcmp (string, "cyan") == 0) - { - *variable = CURSES_COLOR_CYAN; - return 1; - } - if (strcmp (string, "white") == 0) - { - *variable = CURSES_COLOR_WHITE; - return 1; - } - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (CursesColor, EnumCursesColor) -{ - switch (value) - { - case CURSES_COLOR_RED: - return elektraStrDup ("red"); - case CURSES_COLOR_BLACK: - return elektraStrDup ("black"); - case CURSES_COLOR_GREEN: - return elektraStrDup ("green"); - case CURSES_COLOR_YELLOW: - return elektraStrDup ("yellow"); - case CURSES_COLOR_BLUE: - return elektraStrDup ("blue"); - case CURSES_COLOR_MAGENTA: - return elektraStrDup ("magenta"); - case CURSES_COLOR_CYAN: - return elektraStrDup ("cyan"); - case CURSES_COLOR_WHITE: - return elektraStrDup ("white"); - } - - // should be unreachable - return ""; -} -ELEKTRA_KEY_TO_SIGNATURE (CwLnxModel, EnumCwLnxModel) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - - if (strcmp (string, "12232") == 0) - { - *variable = CW_LNX_MODEL_12232; - return 1; - } - if (strcmp (string, "12832") == 0) - { - *variable = CW_LNX_MODEL_12832; - return 1; - } - if (strcmp (string, "1602") == 0) - { - *variable = CW_LNX_MODEL_1602; - return 1; - } - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (CwLnxModel, EnumCwLnxModel) -{ - switch (value) - { - case CW_LNX_MODEL_12232: - return elektraStrDup ("12232"); - case CW_LNX_MODEL_12832: - return elektraStrDup ("12832"); - case CW_LNX_MODEL_1602: - return elektraStrDup ("1602"); - } - - // should be unreachable - return ""; -} -ELEKTRA_KEY_TO_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - - if (strcmp (string, "t6963") == 0) - { - *variable = GLCD_CONNECTION_TYPE_T6963; - return 1; - } - if (strcmp (string, "png") == 0) - { - *variable = GLCD_CONNECTION_TYPE_PNG; - return 1; - } - if (strcmp (string, "serdisplib") == 0) - { - *variable = GLCD_CONNECTION_TYPE_SERDISPLIB; - return 1; - } - if (strcmp (string, "glcd2usb") == 0) - { - *variable = GLCD_CONNECTION_TYPE_GLCD2USB; - return 1; - } - if (strcmp (string, "x11") == 0) - { - *variable = GLCD_CONNECTION_TYPE_X11; - return 1; - } - if (strcmp (string, "picolcdgfx") == 0) - { - *variable = GLCD_CONNECTION_TYPE_PICOLCDGFX; - return 1; - } - if (strcmp (string, "xyz") == 0) - { - *variable = GLCD_CONNECTION_TYPE_XYZ; - return 1; - } - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType) -{ - switch (value) - { - case GLCD_CONNECTION_TYPE_T6963: - return elektraStrDup ("t6963"); - case GLCD_CONNECTION_TYPE_PNG: - return elektraStrDup ("png"); - case GLCD_CONNECTION_TYPE_SERDISPLIB: - return elektraStrDup ("serdisplib"); - case GLCD_CONNECTION_TYPE_GLCD2USB: - return elektraStrDup ("glcd2usb"); - case GLCD_CONNECTION_TYPE_X11: - return elektraStrDup ("x11"); - case GLCD_CONNECTION_TYPE_PICOLCDGFX: - return elektraStrDup ("picolcdgfx"); - case GLCD_CONNECTION_TYPE_XYZ: - return elektraStrDup ("xyz"); - } - - // should be unreachable - return ""; -} -ELEKTRA_KEY_TO_SIGNATURE (HD44780Backlight, EnumHD44780Backlight) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - - if (strcmp (string, "none") == 0) - { - *variable = H_D44780_BACKLIGHT_NONE; - return 1; - } - if (strcmp (string, "external") == 0) - { - *variable = H_D44780_BACKLIGHT_EXTERNAL; - return 1; - } - if (strcmp (string, "internal") == 0) - { - *variable = H_D44780_BACKLIGHT_INTERNAL; - return 1; - } - if (strcmp (string, "internalCmds") == 0) - { - *variable = H_D44780_BACKLIGHT_INTERNAL_CMDS; - return 1; - } - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (HD44780Backlight, EnumHD44780Backlight) -{ - switch (value) - { - case H_D44780_BACKLIGHT_NONE: - return elektraStrDup ("none"); - case H_D44780_BACKLIGHT_EXTERNAL: - return elektraStrDup ("external"); - case H_D44780_BACKLIGHT_INTERNAL: - return elektraStrDup ("internal"); - case H_D44780_BACKLIGHT_INTERNAL_CMDS: - return elektraStrDup ("internalCmds"); - } - - // should be unreachable - return ""; -} -ELEKTRA_KEY_TO_SIGNATURE (HD44780Charmap, EnumHD44780Charmap) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - - if (strcmp (string, "hd44780_default") == 0) - { - *variable = H_D44780_CHARMAP_HD44780_DEFAULT; - return 1; - } - if (strcmp (string, "hd44780_euro") == 0) - { - *variable = H_D44780_CHARMAP_HD44780_EURO; - return 1; - } - if (strcmp (string, "ea_ks0073") == 0) - { - *variable = H_D44780_CHARMAP_EA_KS0073; - return 1; - } - if (strcmp (string, "sed1278f_0b") == 0) - { - *variable = H_D44780_CHARMAP_SED1278F_0B; - return 1; - } - if (strcmp (string, "hd44780_koi8_r") == 0) - { - *variable = H_D44780_CHARMAP_HD44780_KOI8_R; - return 1; - } - if (strcmp (string, "hd44780_cp1251") == 0) - { - *variable = H_D44780_CHARMAP_HD44780_CP1251; - return 1; - } - if (strcmp (string, "hd44780_8859_5") == 0) - { - *variable = H_D44780_CHARMAP_HD44780_8859_5; - return 1; - } - if (strcmp (string, "upd16314") == 0) - { - *variable = H_D44780_CHARMAP_UPD16314; - return 1; - } - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (HD44780Charmap, EnumHD44780Charmap) -{ - switch (value) - { - case H_D44780_CHARMAP_HD44780_DEFAULT: - return elektraStrDup ("hd44780_default"); - case H_D44780_CHARMAP_HD44780_EURO: - return elektraStrDup ("hd44780_euro"); - case H_D44780_CHARMAP_EA_KS0073: - return elektraStrDup ("ea_ks0073"); - case H_D44780_CHARMAP_SED1278F_0B: - return elektraStrDup ("sed1278f_0b"); - case H_D44780_CHARMAP_HD44780_KOI8_R: - return elektraStrDup ("hd44780_koi8_r"); - case H_D44780_CHARMAP_HD44780_CP1251: - return elektraStrDup ("hd44780_cp1251"); - case H_D44780_CHARMAP_HD44780_8859_5: - return elektraStrDup ("hd44780_8859_5"); - case H_D44780_CHARMAP_UPD16314: - return elektraStrDup ("upd16314"); - } - - // should be unreachable - return ""; -} -ELEKTRA_KEY_TO_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - - if (strcmp (string, "4bit") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_4BIT; - return 1; - } - if (strcmp (string, "8bit") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_8BIT; - return 1; - } - if (strcmp (string, "winamp") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_WINAMP; - return 1; - } - if (strcmp (string, "lcm162") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_LCM162; - return 1; - } - if (strcmp (string, "serialLpt") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_SERIAL_LPT; - return 1; - } - if (strcmp (string, "picanlcd") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_PICANLCD; - return 1; - } - if (strcmp (string, "lcdserializer") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_LCDSERIALIZER; - return 1; - } - if (strcmp (string, "los-panel") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_LOS_PANEL; - return 1; - } - if (strcmp (string, "vdr-lcd") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_VDR_LCD; - return 1; - } - if (strcmp (string, "vdr-wakeup") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_VDR_WAKEUP; - return 1; - } - if (strcmp (string, "ezio") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_EZIO; - return 1; - } - if (strcmp (string, "pertelian") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_PERTELIAN; - return 1; - } - if (strcmp (string, "lis2") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_LIS2; - return 1; - } - if (strcmp (string, "mplay") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_MPLAY; - return 1; - } - if (strcmp (string, "usblcd") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_USBLCD; - return 1; - } - if (strcmp (string, "bwctusb") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_BWCTUSB; - return 1; - } - if (strcmp (string, "lcd2usb") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_LCD2USB; - return 1; - } - if (strcmp (string, "usbtiny") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_USBTINY; - return 1; - } - if (strcmp (string, "uss720") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_USS720; - return 1; - } - if (strcmp (string, "USB-4-all") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_U_S_B_4_ALL; - return 1; - } - if (strcmp (string, "ftdi") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_FTDI; - return 1; - } - if (strcmp (string, "i2c") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_I2C; - return 1; - } - if (strcmp (string, "piplate") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_PIPLATE; - return 1; - } - if (strcmp (string, "spi") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_SPI; - return 1; - } - if (strcmp (string, "pifacecad") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_PIFACECAD; - return 1; - } - if (strcmp (string, "ethlcd") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_ETHLCD; - return 1; - } - if (strcmp (string, "raspberrypi") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_RASPBERRYPI; - return 1; - } - if (strcmp (string, "gpio") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_GPIO; - return 1; - } - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType) -{ - switch (value) - { - case H_D44780_CONNECTION_TYPE_4BIT: - return elektraStrDup ("4bit"); - case H_D44780_CONNECTION_TYPE_8BIT: - return elektraStrDup ("8bit"); - case H_D44780_CONNECTION_TYPE_WINAMP: - return elektraStrDup ("winamp"); - case H_D44780_CONNECTION_TYPE_LCM162: - return elektraStrDup ("lcm162"); - case H_D44780_CONNECTION_TYPE_SERIAL_LPT: - return elektraStrDup ("serialLpt"); - case H_D44780_CONNECTION_TYPE_PICANLCD: - return elektraStrDup ("picanlcd"); - case H_D44780_CONNECTION_TYPE_LCDSERIALIZER: - return elektraStrDup ("lcdserializer"); - case H_D44780_CONNECTION_TYPE_LOS_PANEL: - return elektraStrDup ("los-panel"); - case H_D44780_CONNECTION_TYPE_VDR_LCD: - return elektraStrDup ("vdr-lcd"); - case H_D44780_CONNECTION_TYPE_VDR_WAKEUP: - return elektraStrDup ("vdr-wakeup"); - case H_D44780_CONNECTION_TYPE_EZIO: - return elektraStrDup ("ezio"); - case H_D44780_CONNECTION_TYPE_PERTELIAN: - return elektraStrDup ("pertelian"); - case H_D44780_CONNECTION_TYPE_LIS2: - return elektraStrDup ("lis2"); - case H_D44780_CONNECTION_TYPE_MPLAY: - return elektraStrDup ("mplay"); - case H_D44780_CONNECTION_TYPE_USBLCD: - return elektraStrDup ("usblcd"); - case H_D44780_CONNECTION_TYPE_BWCTUSB: - return elektraStrDup ("bwctusb"); - case H_D44780_CONNECTION_TYPE_LCD2USB: - return elektraStrDup ("lcd2usb"); - case H_D44780_CONNECTION_TYPE_USBTINY: - return elektraStrDup ("usbtiny"); - case H_D44780_CONNECTION_TYPE_USS720: - return elektraStrDup ("uss720"); - case H_D44780_CONNECTION_TYPE_U_S_B_4_ALL: - return elektraStrDup ("USB-4-all"); - case H_D44780_CONNECTION_TYPE_FTDI: - return elektraStrDup ("ftdi"); - case H_D44780_CONNECTION_TYPE_I2C: - return elektraStrDup ("i2c"); - case H_D44780_CONNECTION_TYPE_PIPLATE: - return elektraStrDup ("piplate"); - case H_D44780_CONNECTION_TYPE_SPI: - return elektraStrDup ("spi"); - case H_D44780_CONNECTION_TYPE_PIFACECAD: - return elektraStrDup ("pifacecad"); - case H_D44780_CONNECTION_TYPE_ETHLCD: - return elektraStrDup ("ethlcd"); - case H_D44780_CONNECTION_TYPE_RASPBERRYPI: - return elektraStrDup ("raspberrypi"); - case H_D44780_CONNECTION_TYPE_GPIO: - return elektraStrDup ("gpio"); - } - - // should be unreachable - return ""; -} -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - switch (string[0]) -{ -case 'e': -*variable = ELEKTRA_ENUM_HD44780_MODEL_EXTENDED; -return 1; -case 'p': -*variable = ELEKTRA_ENUM_HD44780_MODEL_PT6314_VFD; -return 1; -case 's': -*variable = ELEKTRA_ENUM_HD44780_MODEL_STANDARD; -return 1; -case 'w': -*variable = ELEKTRA_ENUM_HD44780_MODEL_WINSTAR_OLED; -return 1; -} - - - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model) -{ - switch (value) - { - case ELEKTRA_ENUM_HD44780_MODEL_STANDARD: - return elektraStrDup ("standard"); - case ELEKTRA_ENUM_HD44780_MODEL_EXTENDED: - return elektraStrDup ("extended"); - case ELEKTRA_ENUM_HD44780_MODEL_WINSTAR_OLED: - return elektraStrDup ("winstar_oled"); - case ELEKTRA_ENUM_HD44780_MODEL_PT6314_VFD: - return elektraStrDup ("pt6314_vfd"); - } - - // should be unreachable - return ""; -} -ELEKTRA_KEY_TO_SIGNATURE (IMonCharmap, EnumIMonCharmap) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - - if (strcmp (string, "hd44780_euro") == 0) - { - *variable = I_MON_CHARMAP_HD44780_EURO; - return 1; - } - if (strcmp (string, "upd16314") == 0) - { - *variable = I_MON_CHARMAP_UPD16314; - return 1; - } - if (strcmp (string, "hd44780_koi8_r") == 0) - { - *variable = I_MON_CHARMAP_HD44780_KOI8_R; - return 1; - } - if (strcmp (string, "hd44780_cp1251") == 0) - { - *variable = I_MON_CHARMAP_HD44780_CP1251; - return 1; - } - if (strcmp (string, "hd44780_8859_5") == 0) - { - *variable = I_MON_CHARMAP_HD44780_8859_5; - return 1; - } - if (strcmp (string, "none") == 0) - { - *variable = I_MON_CHARMAP_NONE; - return 1; - } - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (IMonCharmap, EnumIMonCharmap) -{ - switch (value) - { - case I_MON_CHARMAP_HD44780_EURO: - return elektraStrDup ("hd44780_euro"); - case I_MON_CHARMAP_UPD16314: - return elektraStrDup ("upd16314"); - case I_MON_CHARMAP_HD44780_KOI8_R: - return elektraStrDup ("hd44780_koi8_r"); - case I_MON_CHARMAP_HD44780_CP1251: - return elektraStrDup ("hd44780_cp1251"); - case I_MON_CHARMAP_HD44780_8859_5: - return elektraStrDup ("hd44780_8859_5"); - case I_MON_CHARMAP_NONE: - return elektraStrDup ("none"); - } - - // should be unreachable - return ""; -} -ELEKTRA_KEY_TO_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - switch (string[0]) -{ -case '0': -*variable = I_MON_L_C_D_DISC_MODE_0; -return 1; -case '1': -*variable = I_MON_L_C_D_DISC_MODE_1; -return 1; -} - - - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode) -{ - switch (value) - { - case I_MON_L_C_D_DISC_MODE_0: - return elektraStrDup ("0"); - case I_MON_L_C_D_DISC_MODE_1: - return elektraStrDup ("1"); - } - - // should be unreachable - return ""; -} -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - switch (string[0]) -{ -case 'b': -*variable = ELEKTRA_ENUM_MDM166A_CLOCK_BIG; -return 1; -case 'n': -*variable = ELEKTRA_ENUM_MDM166A_CLOCK_NO; -return 1; -case 's': -*variable = ELEKTRA_ENUM_MDM166A_CLOCK_SMALL; -return 1; -} - - - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock) -{ - switch (value) - { - case ELEKTRA_ENUM_MDM166A_CLOCK_NO: - return elektraStrDup ("no"); - case ELEKTRA_ENUM_MDM166A_CLOCK_SMALL: - return elektraStrDup ("small"); - case ELEKTRA_ENUM_MDM166A_CLOCK_BIG: - return elektraStrDup ("big"); - } - - // should be unreachable - return ""; -} -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - - if (strcmp (string, "lcd lkd, vfd, vkd") == 0) - { - *variable = ELEKTRA_ENUM_MTXORB_TYPE_LCD_LKD__VFD__VKD; - return 1; - } - if (strcmp (string, "lkd") == 0) - { - *variable = ELEKTRA_ENUM_MTXORB_TYPE_LKD; - return 1; - } - if (strcmp (string, "vfd") == 0) - { - *variable = ELEKTRA_ENUM_MTXORB_TYPE_VFD; - return 1; - } - if (strcmp (string, "vkd") == 0) - { - *variable = ELEKTRA_ENUM_MTXORB_TYPE_VKD; - return 1; - } - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType) -{ - switch (value) - { - case ELEKTRA_ENUM_MTXORB_TYPE_LCD_LKD__VFD__VKD: - return elektraStrDup ("lcd lkd, vfd, vkd"); - case ELEKTRA_ENUM_MTXORB_TYPE_LKD: - return elektraStrDup ("lkd"); - case ELEKTRA_ENUM_MTXORB_TYPE_VFD: - return elektraStrDup ("vfd"); - case ELEKTRA_ENUM_MTXORB_TYPE_VKD: - return elektraStrDup ("vkd"); - } - - // should be unreachable - return ""; -} -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - switch (string[0]) -{ -case 'b': -*variable = ELEKTRA_ENUM_SED1330_CONNECTIONTYPE_BITSHAKER; -return 1; -case 'c': -*variable = ELEKTRA_ENUM_SED1330_CONNECTIONTYPE_CLASSIC; -return 1; -} - - - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype) -{ - switch (value) - { - case ELEKTRA_ENUM_SED1330_CONNECTIONTYPE_CLASSIC: - return elektraStrDup ("classic"); - case ELEKTRA_ENUM_SED1330_CONNECTIONTYPE_BITSHAKER: - return elektraStrDup ("bitshaker"); - } - - // should be unreachable - return ""; -} -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - - if (strcmp (string, "G321D") == 0) - { - *variable = ELEKTRA_ENUM_SED1330_TYPE_G321_D; - return 1; - } - if (strcmp (string, "G121C") == 0) - { - *variable = ELEKTRA_ENUM_SED1330_TYPE_G121_C; - return 1; - } - if (strcmp (string, "G242C") == 0) - { - *variable = ELEKTRA_ENUM_SED1330_TYPE_G242_C; - return 1; - } - if (strcmp (string, "G191D") == 0) - { - *variable = ELEKTRA_ENUM_SED1330_TYPE_G191_D; - return 1; - } - if (strcmp (string, "G2446") == 0) - { - *variable = ELEKTRA_ENUM_SED1330_TYPE_G2446; - return 1; - } - if (strcmp (string, "SP14Q002") == 0) - { - *variable = ELEKTRA_ENUM_SED1330_TYPE_S_P14_Q002; - return 1; - } - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type) -{ - switch (value) - { - case ELEKTRA_ENUM_SED1330_TYPE_G321_D: - return elektraStrDup ("G321D"); - case ELEKTRA_ENUM_SED1330_TYPE_G121_C: - return elektraStrDup ("G121C"); - case ELEKTRA_ENUM_SED1330_TYPE_G242_C: - return elektraStrDup ("G242C"); - case ELEKTRA_ENUM_SED1330_TYPE_G191_D: - return elektraStrDup ("G191D"); - case ELEKTRA_ENUM_SED1330_TYPE_G2446: - return elektraStrDup ("G2446"); - case ELEKTRA_ENUM_SED1330_TYPE_S_P14_Q002: - return elektraStrDup ("SP14Q002"); - } - - // should be unreachable - return ""; -} -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - - if (strcmp (string, "AEDEX") == 0) - { - *variable = ELEKTRA_ENUM_SERIALPOS_TYPE_A_E_D_E_X; - return 1; - } - if (strcmp (string, "CD5220") == 0) - { - *variable = ELEKTRA_ENUM_SERIALPOS_TYPE_C_D5220; - return 1; - } - if (strcmp (string, "Epson") == 0) - { - *variable = ELEKTRA_ENUM_SERIALPOS_TYPE_EPSON; - return 1; - } - if (strcmp (string, "Emax") == 0) - { - *variable = ELEKTRA_ENUM_SERIALPOS_TYPE_EMAX; - return 1; - } - if (strcmp (string, "LogicControls") == 0) - { - *variable = ELEKTRA_ENUM_SERIALPOS_TYPE_LOGIC_CONTROLS; - return 1; - } - if (strcmp (string, "Ultimate") == 0) - { - *variable = ELEKTRA_ENUM_SERIALPOS_TYPE_ULTIMATE; - return 1; - } - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType) -{ - switch (value) - { - case ELEKTRA_ENUM_SERIALPOS_TYPE_A_E_D_E_X: - return elektraStrDup ("AEDEX"); - case ELEKTRA_ENUM_SERIALPOS_TYPE_C_D5220: - return elektraStrDup ("CD5220"); - case ELEKTRA_ENUM_SERIALPOS_TYPE_EPSON: - return elektraStrDup ("Epson"); - case ELEKTRA_ENUM_SERIALPOS_TYPE_EMAX: - return elektraStrDup ("Emax"); - case ELEKTRA_ENUM_SERIALPOS_TYPE_LOGIC_CONTROLS: - return elektraStrDup ("LogicControls"); - case ELEKTRA_ENUM_SERIALPOS_TYPE_ULTIMATE: - return elektraStrDup ("Ultimate"); - } - - // should be unreachable - return ""; -} -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - - if (strcmp (string, "off") == 0) - { - *variable = ELEKTRA_ENUM_SERVER_BACKLIGHT_OFF; - return 1; - } - if (strcmp (string, "on") == 0) - { - *variable = ELEKTRA_ENUM_SERVER_BACKLIGHT_ON; - return 1; - } - if (strcmp (string, "open") == 0) - { - *variable = ELEKTRA_ENUM_SERVER_BACKLIGHT_OPEN; - return 1; - } - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight) -{ - switch (value) - { - case ELEKTRA_ENUM_SERVER_BACKLIGHT_OFF: - return elektraStrDup ("off"); - case ELEKTRA_ENUM_SERVER_BACKLIGHT_ON: - return elektraStrDup ("on"); - case ELEKTRA_ENUM_SERVER_BACKLIGHT_OPEN: - return elektraStrDup ("open"); - } - - // should be unreachable - return ""; -} -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - - if (strcmp (string, "off") == 0) - { - *variable = ELEKTRA_ENUM_SERVER_HEARTBEAT_OFF; - return 1; - } - if (strcmp (string, "on") == 0) - { - *variable = ELEKTRA_ENUM_SERVER_HEARTBEAT_ON; - return 1; - } - if (strcmp (string, "open") == 0) - { - *variable = ELEKTRA_ENUM_SERVER_HEARTBEAT_OPEN; - return 1; - } - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat) -{ - switch (value) - { - case ELEKTRA_ENUM_SERVER_HEARTBEAT_OFF: - return elektraStrDup ("off"); - case ELEKTRA_ENUM_SERVER_HEARTBEAT_ON: - return elektraStrDup ("on"); - case ELEKTRA_ENUM_SERVER_HEARTBEAT_OPEN: - return elektraStrDup ("open"); - } - - // should be unreachable - return ""; -} -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - - if (strcmp (string, "off") == 0) - { - *variable = ELEKTRA_ENUM_SERVER_SERVERSCREEN_OFF; - return 1; - } - if (strcmp (string, "on") == 0) - { - *variable = ELEKTRA_ENUM_SERVER_SERVERSCREEN_ON; - return 1; - } - if (strcmp (string, "blank") == 0) - { - *variable = ELEKTRA_ENUM_SERVER_SERVERSCREEN_BLANK; - return 1; - } - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen) -{ - switch (value) - { - case ELEKTRA_ENUM_SERVER_SERVERSCREEN_OFF: - return elektraStrDup ("off"); - case ELEKTRA_ENUM_SERVER_SERVERSCREEN_ON: - return elektraStrDup ("on"); - case ELEKTRA_ENUM_SERVER_SERVERSCREEN_BLANK: - return elektraStrDup ("blank"); - } - - // should be unreachable - return ""; -} - -// ------------------------- -// Enum accessor functions -// ------------------------- - -ELEKTRA_GET_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel) -{ - CFontzPacketModel result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumCFontzPacketModel) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (CFontzPacketModel) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel) -{ - CFontzPacketModel result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumCFontzPacketModel) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (CFontzPacketModel) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel) -{ - char * string = ELEKTRA_TO_STRING (EnumCFontzPacketModel) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel) -{ - char * string = ELEKTRA_TO_STRING (EnumCFontzPacketModel) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} -ELEKTRA_GET_SIGNATURE (CursesColor, EnumCursesColor) -{ - CursesColor result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumCursesColor) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (CursesColor) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (CursesColor, EnumCursesColor) -{ - CursesColor result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumCursesColor) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (CursesColor) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (CursesColor, EnumCursesColor) -{ - char * string = ELEKTRA_TO_STRING (EnumCursesColor) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (CursesColor, EnumCursesColor) -{ - char * string = ELEKTRA_TO_STRING (EnumCursesColor) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} -ELEKTRA_GET_SIGNATURE (CwLnxModel, EnumCwLnxModel) -{ - CwLnxModel result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumCwLnxModel) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (CwLnxModel) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (CwLnxModel, EnumCwLnxModel) -{ - CwLnxModel result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumCwLnxModel) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (CwLnxModel) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (CwLnxModel, EnumCwLnxModel) -{ - char * string = ELEKTRA_TO_STRING (EnumCwLnxModel) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (CwLnxModel, EnumCwLnxModel) -{ - char * string = ELEKTRA_TO_STRING (EnumCwLnxModel) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} -ELEKTRA_GET_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType) -{ - GlcdConnectionType result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumGlcdConnectionType) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (GlcdConnectionType) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType) -{ - GlcdConnectionType result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumGlcdConnectionType) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (GlcdConnectionType) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType) -{ - char * string = ELEKTRA_TO_STRING (EnumGlcdConnectionType) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType) -{ - char * string = ELEKTRA_TO_STRING (EnumGlcdConnectionType) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} -ELEKTRA_GET_SIGNATURE (HD44780Backlight, EnumHD44780Backlight) -{ - HD44780Backlight result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumHD44780Backlight) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (HD44780Backlight) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (HD44780Backlight, EnumHD44780Backlight) -{ - HD44780Backlight result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumHD44780Backlight) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (HD44780Backlight) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (HD44780Backlight, EnumHD44780Backlight) -{ - char * string = ELEKTRA_TO_STRING (EnumHD44780Backlight) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (HD44780Backlight, EnumHD44780Backlight) -{ - char * string = ELEKTRA_TO_STRING (EnumHD44780Backlight) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} -ELEKTRA_GET_SIGNATURE (HD44780Charmap, EnumHD44780Charmap) -{ - HD44780Charmap result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumHD44780Charmap) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (HD44780Charmap) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (HD44780Charmap, EnumHD44780Charmap) -{ - HD44780Charmap result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumHD44780Charmap) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (HD44780Charmap) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (HD44780Charmap, EnumHD44780Charmap) -{ - char * string = ELEKTRA_TO_STRING (EnumHD44780Charmap) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (HD44780Charmap, EnumHD44780Charmap) -{ - char * string = ELEKTRA_TO_STRING (EnumHD44780Charmap) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} -ELEKTRA_GET_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType) -{ - HD44780ConnectionType result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumHD44780ConnectionType) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (HD44780ConnectionType) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType) -{ - HD44780ConnectionType result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumHD44780ConnectionType) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (HD44780ConnectionType) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType) -{ - char * string = ELEKTRA_TO_STRING (EnumHD44780ConnectionType) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType) -{ - char * string = ELEKTRA_TO_STRING (EnumHD44780ConnectionType) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} -ELEKTRA_GET_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model) -{ - ElektraEnumHd44780Model result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumHd44780Model) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumHd44780Model) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model) -{ - ElektraEnumHd44780Model result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumHd44780Model) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumHd44780Model) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model) -{ - char * string = ELEKTRA_TO_STRING (EnumHd44780Model) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model) -{ - char * string = ELEKTRA_TO_STRING (EnumHd44780Model) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} -ELEKTRA_GET_SIGNATURE (IMonCharmap, EnumIMonCharmap) -{ - IMonCharmap result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumIMonCharmap) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (IMonCharmap) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (IMonCharmap, EnumIMonCharmap) -{ - IMonCharmap result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumIMonCharmap) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (IMonCharmap) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (IMonCharmap, EnumIMonCharmap) -{ - char * string = ELEKTRA_TO_STRING (EnumIMonCharmap) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (IMonCharmap, EnumIMonCharmap) -{ - char * string = ELEKTRA_TO_STRING (EnumIMonCharmap) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} -ELEKTRA_GET_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode) -{ - IMonLCDDiscMode result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumIMonLCDDiscMode) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (IMonLCDDiscMode) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode) -{ - IMonLCDDiscMode result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumIMonLCDDiscMode) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (IMonLCDDiscMode) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode) -{ - char * string = ELEKTRA_TO_STRING (EnumIMonLCDDiscMode) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode) -{ - char * string = ELEKTRA_TO_STRING (EnumIMonLCDDiscMode) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} -ELEKTRA_GET_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock) -{ - ElektraEnumMdm166aClock result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumMdm166aClock) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumMdm166aClock) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock) -{ - ElektraEnumMdm166aClock result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumMdm166aClock) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumMdm166aClock) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock) -{ - char * string = ELEKTRA_TO_STRING (EnumMdm166aClock) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock) -{ - char * string = ELEKTRA_TO_STRING (EnumMdm166aClock) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} -ELEKTRA_GET_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType) -{ - ElektraEnumMtxorbType result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumMtxorbType) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumMtxorbType) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType) -{ - ElektraEnumMtxorbType result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumMtxorbType) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumMtxorbType) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType) -{ - char * string = ELEKTRA_TO_STRING (EnumMtxorbType) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType) -{ - char * string = ELEKTRA_TO_STRING (EnumMtxorbType) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} -ELEKTRA_GET_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype) -{ - ElektraEnumSed1330Connectiontype result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumSed1330Connectiontype) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumSed1330Connectiontype) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype) -{ - ElektraEnumSed1330Connectiontype result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumSed1330Connectiontype) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumSed1330Connectiontype) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype) -{ - char * string = ELEKTRA_TO_STRING (EnumSed1330Connectiontype) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype) -{ - char * string = ELEKTRA_TO_STRING (EnumSed1330Connectiontype) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} -ELEKTRA_GET_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type) -{ - ElektraEnumSed1330Type result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumSed1330Type) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumSed1330Type) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type) -{ - ElektraEnumSed1330Type result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumSed1330Type) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumSed1330Type) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type) -{ - char * string = ELEKTRA_TO_STRING (EnumSed1330Type) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type) -{ - char * string = ELEKTRA_TO_STRING (EnumSed1330Type) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} -ELEKTRA_GET_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType) -{ - ElektraEnumSerialposType result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumSerialposType) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumSerialposType) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType) -{ - ElektraEnumSerialposType result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumSerialposType) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumSerialposType) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType) -{ - char * string = ELEKTRA_TO_STRING (EnumSerialposType) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType) -{ - char * string = ELEKTRA_TO_STRING (EnumSerialposType) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} -ELEKTRA_GET_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight) -{ - ElektraEnumServerBacklight result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumServerBacklight) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumServerBacklight) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight) -{ - ElektraEnumServerBacklight result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumServerBacklight) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumServerBacklight) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight) -{ - char * string = ELEKTRA_TO_STRING (EnumServerBacklight) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight) -{ - char * string = ELEKTRA_TO_STRING (EnumServerBacklight) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} -ELEKTRA_GET_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat) -{ - ElektraEnumServerHeartbeat result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumServerHeartbeat) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumServerHeartbeat) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat) -{ - ElektraEnumServerHeartbeat result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumServerHeartbeat) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumServerHeartbeat) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat) -{ - char * string = ELEKTRA_TO_STRING (EnumServerHeartbeat) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat) -{ - char * string = ELEKTRA_TO_STRING (EnumServerHeartbeat) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} -ELEKTRA_GET_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen) -{ - ElektraEnumServerServerscreen result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumServerServerscreen) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumServerServerscreen) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen) -{ - ElektraEnumServerServerscreen result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumServerServerscreen) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumServerServerscreen) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen) -{ - char * string = ELEKTRA_TO_STRING (EnumServerServerscreen) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen) -{ - char * string = ELEKTRA_TO_STRING (EnumServerServerscreen) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - - -// clang-format off - -// clang-format on - -// ------------------------- -// Struct accessor functions -// ------------------------- - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (BayradDriverConfig, StructBayradDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "speed", 14); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (BayradDriverConfig, StructBayradDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "speed", 14); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const BayradDriverConfig *, StructBayradDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const BayradDriverConfig *, StructBayradDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (CFontzDriverConfig, StructCFontzDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "newfirmware", 14); - - - result->newfirmware = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 14); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (CFontzDriverConfig, StructCFontzDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "newfirmware", 14); - - - result->newfirmware = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 14); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const CFontzDriverConfig *, StructCFontzDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "newfirmware", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->newfirmware, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const CFontzDriverConfig *, StructCFontzDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "newfirmware", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->newfirmware, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (CFontzPacketDriverConfig, StructCFontzPacketDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "model", 14); - - - result->model = ELEKTRA_GET (EnumCFontzPacketModel) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "oldfirmware", 14); - - - result->oldfirmware = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 14); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "usb", 14); - - - result->usb = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (CFontzPacketDriverConfig, StructCFontzPacketDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "model", 14); - - - result->model = ELEKTRA_GET (EnumCFontzPacketModel) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "oldfirmware", 14); - - - result->oldfirmware = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 14); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "usb", 14); - - - result->usb = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const CFontzPacketDriverConfig *, StructCFontzPacketDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "model", 14); - - ELEKTRA_SET (EnumCFontzPacketModel) (elektra, field, value->model, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "oldfirmware", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->oldfirmware, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "usb", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->usb, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const CFontzPacketDriverConfig *, StructCFontzPacketDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "model", 14); - - ELEKTRA_SET (EnumCFontzPacketModel) (elektra, field, value->model, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "oldfirmware", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->oldfirmware, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "usb", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->usb, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (CursesDriverConfig, StructCursesDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "background", 14); - - - result->background = ELEKTRA_GET (EnumCursesColor) (elektra, field); - - strncpy (&field[nameLen], "backlight", 14); - - - result->backlight = ELEKTRA_GET (EnumCursesColor) (elektra, field); - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "drawborder", 14); - - - result->drawborder = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "foreground", 14); - - - result->foreground = ELEKTRA_GET (EnumCursesColor) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "topleftx", 14); - - - result->topleftx = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "toplefty", 14); - - - result->toplefty = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "useacs", 14); - - - result->useacs = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (CursesDriverConfig, StructCursesDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "background", 14); - - - result->background = ELEKTRA_GET (EnumCursesColor) (elektra, field); - - strncpy (&field[nameLen], "backlight", 14); - - - result->backlight = ELEKTRA_GET (EnumCursesColor) (elektra, field); - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "drawborder", 14); - - - result->drawborder = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "foreground", 14); - - - result->foreground = ELEKTRA_GET (EnumCursesColor) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "topleftx", 14); - - - result->topleftx = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "toplefty", 14); - - - result->toplefty = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "useacs", 14); - - - result->useacs = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const CursesDriverConfig *, StructCursesDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "background", 14); - - ELEKTRA_SET (EnumCursesColor) (elektra, field, value->background, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "backlight", 14); - - ELEKTRA_SET (EnumCursesColor) (elektra, field, value->backlight, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "drawborder", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->drawborder, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "foreground", 14); - - ELEKTRA_SET (EnumCursesColor) (elektra, field, value->foreground, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "topleftx", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->topleftx, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "toplefty", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->toplefty, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "useacs", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->useacs, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const CursesDriverConfig *, StructCursesDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "background", 14); - - ELEKTRA_SET (EnumCursesColor) (elektra, field, value->background, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "backlight", 14); - - ELEKTRA_SET (EnumCursesColor) (elektra, field, value->backlight, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "drawborder", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->drawborder, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "foreground", 14); - - ELEKTRA_SET (EnumCursesColor) (elektra, field, value->foreground, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "topleftx", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->topleftx, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "toplefty", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->toplefty, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "useacs", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->useacs, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (CwLnxDriverConfig, StructCwLnxDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 17 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 17); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 17); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 17); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 17); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_a", 17); - - - result->keymapA = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_b", 17); - - - result->keymapB = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_c", 17); - - - result->keymapC = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_d", 17); - - - result->keymapD = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_e", 17); - - - result->keymapE = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_f", 17); - - - result->keymapF = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keypad", 17); - - - result->keypad = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "keypad_test_mode", 17); - - - result->keypadTestMode = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "model", 17); - - - result->model = ELEKTRA_GET (EnumCwLnxModel) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 17); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 17); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 17); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 17); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (CwLnxDriverConfig, StructCwLnxDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 17 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 17); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 17); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 17); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 17); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_a", 17); - - - result->keymapA = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_b", 17); - - - result->keymapB = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_c", 17); - - - result->keymapC = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_d", 17); - - - result->keymapD = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_e", 17); - - - result->keymapE = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_f", 17); - - - result->keymapF = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keypad", 17); - - - result->keypad = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "keypad_test_mode", 17); - - - result->keypadTestMode = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "model", 17); - - - result->model = ELEKTRA_GET (EnumCwLnxModel) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 17); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 17); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 17); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 17); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const CwLnxDriverConfig *, StructCwLnxDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 17 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 17); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 17); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_a", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymapA, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_b", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymapB, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_c", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymapC, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_d", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymapD, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_e", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymapE, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_f", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymapF, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keypad", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->keypad, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keypad_test_mode", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->keypadTestMode, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "model", 17); - - ELEKTRA_SET (EnumCwLnxModel) (elektra, field, value->model, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 17); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const CwLnxDriverConfig *, StructCwLnxDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 17 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 17); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 17); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_a", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymapA, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_b", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymapB, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_c", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymapC, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_d", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymapD, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_e", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymapE, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_f", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymapF, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keypad", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->keypad, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keypad_test_mode", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->keypadTestMode, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "model", 17); - - ELEKTRA_SET (EnumCwLnxModel) (elektra, field, value->model, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 17); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Ea65DriverConfig, StructEa65DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Ea65DriverConfig, StructEa65DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const Ea65DriverConfig *, StructEa65DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Ea65DriverConfig *, StructEa65DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (EyeboxOneDriverConfig, StructEyeboxOneDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 17 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 17); - - - result->backlight = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "brightness", 17); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 17); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "cursor", 17); - - - result->cursor = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "device", 17); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "downkey", 17); - - - result->downkey = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "escapekey", 17); - - - result->escapekey = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 17); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keypad_test_mode", 17); - - - result->keypadTestMode = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "leftkey", 17); - - - result->leftkey = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 17); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 17); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "rightkey", 17); - - - result->rightkey = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "size", 17); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 17); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "upkey", 17); - - - result->upkey = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (EyeboxOneDriverConfig, StructEyeboxOneDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 17 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 17); - - - result->backlight = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "brightness", 17); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 17); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "cursor", 17); - - - result->cursor = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "device", 17); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "downkey", 17); - - - result->downkey = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "escapekey", 17); - - - result->escapekey = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 17); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keypad_test_mode", 17); - - - result->keypadTestMode = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "leftkey", 17); - - - result->leftkey = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 17); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 17); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "rightkey", 17); - - - result->rightkey = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "size", 17); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 17); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "upkey", 17); - - - result->upkey = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const EyeboxOneDriverConfig *, StructEyeboxOneDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 17 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "cursor", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->cursor, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 17); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "downkey", 17); - - ELEKTRA_SET (String) (elektra, field, value->downkey, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "escapekey", 17); - - ELEKTRA_SET (String) (elektra, field, value->escapekey, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 17); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keypad_test_mode", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->keypadTestMode, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "leftkey", 17); - - ELEKTRA_SET (String) (elektra, field, value->leftkey, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "rightkey", 17); - - ELEKTRA_SET (String) (elektra, field, value->rightkey, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 17); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "upkey", 17); - - ELEKTRA_SET (String) (elektra, field, value->upkey, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const EyeboxOneDriverConfig *, StructEyeboxOneDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 17 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "cursor", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->cursor, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 17); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "downkey", 17); - - ELEKTRA_SET (String) (elektra, field, value->downkey, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "escapekey", 17); - - ELEKTRA_SET (String) (elektra, field, value->escapekey, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 17); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keypad_test_mode", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->keypadTestMode, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "leftkey", 17); - - ELEKTRA_SET (String) (elektra, field, value->leftkey, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "rightkey", 17); - - ELEKTRA_SET (String) (elektra, field, value->rightkey, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 17); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "upkey", 17); - - ELEKTRA_SET (String) (elektra, field, value->upkey, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (FutabaDriverConfig, StructFutabaDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 5 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "file", 5); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (FutabaDriverConfig, StructFutabaDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 5 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "file", 5); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const FutabaDriverConfig *, StructFutabaDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 5 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "file", 5); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const FutabaDriverConfig *, StructFutabaDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 5 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "file", 5); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (G15DriverConfig, StructG15DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (G15DriverConfig, StructG15DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const G15DriverConfig *, StructG15DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const G15DriverConfig *, StructG15DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (GlcdDriverConfig, StructGlcdDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 22 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "bidirectional", 22); - - - result->bidirectional = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "brightness", 22); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "cellsize", 22); - - - result->cellsize = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "connectiontype", 22); - - - result->connectiontype = ELEKTRA_GET (EnumGlcdConnectionType) (elektra, field); - - strncpy (&field[nameLen], "contrast", 22); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "delaybus", 22); - - - result->delaybus = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "file", 22); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "fonthasicons", 22); - - - result->fonthasicons = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "keymap_a", 22); - - - result->keymapA = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_b", 22); - - - result->keymapB = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_c", 22); - - - result->keymapC = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_d", 22); - - - result->keymapD = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_e", 22); - - - result->keymapE = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_f", 22); - - - result->keymapF = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keyrepeatdelay", 22); - - - result->keyrepeatdelay = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "keyrepeatinterval", 22); - - - result->keyrepeatinterval = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "normal_font", 22); - - - result->normalFont = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 22); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "picolcdgfx_inverted", 22); - - - result->picolcdgfxInverted = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "picolcdgfx_keytimeout", 22); - - - result->picolcdgfxKeytimeout = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "port", 22); - - - result->port = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 22); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "serdisp_device", 22); - - - result->serdispDevice = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "serdisp_name", 22); - - - result->serdispName = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "serdisp_options", 22); - - - result->serdispOptions = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "size", 22); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "useft2", 22); - - - result->useft2 = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "x11_backlightcolor", 22); - - - result->x11Backlightcolor = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "x11_border", 22); - - - result->x11Border = ELEKTRA_GET (UnsignedLong) (elektra, field); - - strncpy (&field[nameLen], "x11_inverted", 22); - - - result->x11Inverted = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "x11_pixelcolor", 22); - - - result->x11Pixelcolor = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "x11_pixelsize", 22); - - - result->x11Pixelsize = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (GlcdDriverConfig, StructGlcdDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 22 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "bidirectional", 22); - - - result->bidirectional = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "brightness", 22); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "cellsize", 22); - - - result->cellsize = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "connectiontype", 22); - - - result->connectiontype = ELEKTRA_GET (EnumGlcdConnectionType) (elektra, field); - - strncpy (&field[nameLen], "contrast", 22); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "delaybus", 22); - - - result->delaybus = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "file", 22); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "fonthasicons", 22); - - - result->fonthasicons = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "keymap_a", 22); - - - result->keymapA = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_b", 22); - - - result->keymapB = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_c", 22); - - - result->keymapC = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_d", 22); - - - result->keymapD = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_e", 22); - - - result->keymapE = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_f", 22); - - - result->keymapF = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keyrepeatdelay", 22); - - - result->keyrepeatdelay = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "keyrepeatinterval", 22); - - - result->keyrepeatinterval = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "normal_font", 22); - - - result->normalFont = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 22); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "picolcdgfx_inverted", 22); - - - result->picolcdgfxInverted = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "picolcdgfx_keytimeout", 22); - - - result->picolcdgfxKeytimeout = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "port", 22); - - - result->port = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 22); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "serdisp_device", 22); - - - result->serdispDevice = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "serdisp_name", 22); - - - result->serdispName = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "serdisp_options", 22); - - - result->serdispOptions = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "size", 22); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "useft2", 22); - - - result->useft2 = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "x11_backlightcolor", 22); - - - result->x11Backlightcolor = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "x11_border", 22); - - - result->x11Border = ELEKTRA_GET (UnsignedLong) (elektra, field); - - strncpy (&field[nameLen], "x11_inverted", 22); - - - result->x11Inverted = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "x11_pixelcolor", 22); - - - result->x11Pixelcolor = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "x11_pixelsize", 22); - - - result->x11Pixelsize = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const GlcdDriverConfig *, StructGlcdDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 22 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "bidirectional", 22); - - ELEKTRA_SET (Boolean) (elektra, field, value->bidirectional, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 22); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "cellsize", 22); - - ELEKTRA_SET (String) (elektra, field, value->cellsize, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "connectiontype", 22); - - ELEKTRA_SET (EnumGlcdConnectionType) (elektra, field, value->connectiontype, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 22); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "delaybus", 22); - - ELEKTRA_SET (Boolean) (elektra, field, value->delaybus, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 22); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "fonthasicons", 22); - - ELEKTRA_SET (Boolean) (elektra, field, value->fonthasicons, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_a", 22); - - ELEKTRA_SET (String) (elektra, field, value->keymapA, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_b", 22); - - ELEKTRA_SET (String) (elektra, field, value->keymapB, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_c", 22); - - ELEKTRA_SET (String) (elektra, field, value->keymapC, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_d", 22); - - ELEKTRA_SET (String) (elektra, field, value->keymapD, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_e", 22); - - ELEKTRA_SET (String) (elektra, field, value->keymapE, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_f", 22); - - ELEKTRA_SET (String) (elektra, field, value->keymapF, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keyrepeatdelay", 22); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->keyrepeatdelay, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keyrepeatinterval", 22); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->keyrepeatinterval, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "normal_font", 22); - - ELEKTRA_SET (String) (elektra, field, value->normalFont, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 22); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "picolcdgfx_inverted", 22); - - ELEKTRA_SET (Boolean) (elektra, field, value->picolcdgfxInverted, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "picolcdgfx_keytimeout", 22); - - ELEKTRA_SET (String) (elektra, field, value->picolcdgfxKeytimeout, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "port", 22); - - ELEKTRA_SET (String) (elektra, field, value->port, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 22); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "serdisp_device", 22); - - ELEKTRA_SET (String) (elektra, field, value->serdispDevice, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "serdisp_name", 22); - - ELEKTRA_SET (String) (elektra, field, value->serdispName, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "serdisp_options", 22); - - ELEKTRA_SET (String) (elektra, field, value->serdispOptions, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 22); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "useft2", 22); - - ELEKTRA_SET (Boolean) (elektra, field, value->useft2, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "x11_backlightcolor", 22); - - ELEKTRA_SET (String) (elektra, field, value->x11Backlightcolor, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "x11_border", 22); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->x11Border, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "x11_inverted", 22); - - ELEKTRA_SET (Boolean) (elektra, field, value->x11Inverted, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "x11_pixelcolor", 22); - - ELEKTRA_SET (String) (elektra, field, value->x11Pixelcolor, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "x11_pixelsize", 22); - - ELEKTRA_SET (String) (elektra, field, value->x11Pixelsize, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const GlcdDriverConfig *, StructGlcdDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 22 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "bidirectional", 22); - - ELEKTRA_SET (Boolean) (elektra, field, value->bidirectional, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 22); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "cellsize", 22); - - ELEKTRA_SET (String) (elektra, field, value->cellsize, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "connectiontype", 22); - - ELEKTRA_SET (EnumGlcdConnectionType) (elektra, field, value->connectiontype, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 22); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "delaybus", 22); - - ELEKTRA_SET (Boolean) (elektra, field, value->delaybus, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 22); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "fonthasicons", 22); - - ELEKTRA_SET (Boolean) (elektra, field, value->fonthasicons, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_a", 22); - - ELEKTRA_SET (String) (elektra, field, value->keymapA, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_b", 22); - - ELEKTRA_SET (String) (elektra, field, value->keymapB, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_c", 22); - - ELEKTRA_SET (String) (elektra, field, value->keymapC, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_d", 22); - - ELEKTRA_SET (String) (elektra, field, value->keymapD, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_e", 22); - - ELEKTRA_SET (String) (elektra, field, value->keymapE, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_f", 22); - - ELEKTRA_SET (String) (elektra, field, value->keymapF, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keyrepeatdelay", 22); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->keyrepeatdelay, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keyrepeatinterval", 22); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->keyrepeatinterval, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "normal_font", 22); - - ELEKTRA_SET (String) (elektra, field, value->normalFont, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 22); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "picolcdgfx_inverted", 22); - - ELEKTRA_SET (Boolean) (elektra, field, value->picolcdgfxInverted, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "picolcdgfx_keytimeout", 22); - - ELEKTRA_SET (String) (elektra, field, value->picolcdgfxKeytimeout, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "port", 22); - - ELEKTRA_SET (String) (elektra, field, value->port, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 22); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "serdisp_device", 22); - - ELEKTRA_SET (String) (elektra, field, value->serdispDevice, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "serdisp_name", 22); - - ELEKTRA_SET (String) (elektra, field, value->serdispName, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "serdisp_options", 22); - - ELEKTRA_SET (String) (elektra, field, value->serdispOptions, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 22); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "useft2", 22); - - ELEKTRA_SET (Boolean) (elektra, field, value->useft2, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "x11_backlightcolor", 22); - - ELEKTRA_SET (String) (elektra, field, value->x11Backlightcolor, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "x11_border", 22); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->x11Border, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "x11_inverted", 22); - - ELEKTRA_SET (Boolean) (elektra, field, value->x11Inverted, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "x11_pixelcolor", 22); - - ELEKTRA_SET (String) (elektra, field, value->x11Pixelcolor, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "x11_pixelsize", 22); - - ELEKTRA_SET (String) (elektra, field, value->x11Pixelsize, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (GlcdlibDriverConfig, StructGlcdlibDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 16 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "CharEncoding", 16); - - - result->CharEncoding = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "backlight", 16); - - - result->backlight = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "brightness", 16); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 16); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "driver", 16); - - - result->driver = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 16); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "fontfile", 16); - - - result->fontfile = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "invert", 16); - - - result->invert = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "minfontfacesize", 16); - - - result->minfontfacesize = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 16); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "pixelshiftx", 16); - - - result->pixelshiftx = ELEKTRA_GET (Short) (elektra, field); - - strncpy (&field[nameLen], "pixelshifty", 16); - - - result->pixelshifty = ELEKTRA_GET (Short) (elektra, field); - - strncpy (&field[nameLen], "reboot", 16); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "showbigborder", 16); - - - result->showbigborder = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "showdebugframe", 16); - - - result->showdebugframe = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "showthinborder", 16); - - - result->showthinborder = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "textresolution", 16); - - - result->textresolution = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "upsidedown", 16); - - - result->upsidedown = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "useft2", 16); - - - result->useft2 = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (GlcdlibDriverConfig, StructGlcdlibDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 16 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "CharEncoding", 16); - - - result->CharEncoding = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "backlight", 16); - - - result->backlight = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "brightness", 16); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 16); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "driver", 16); - - - result->driver = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 16); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "fontfile", 16); - - - result->fontfile = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "invert", 16); - - - result->invert = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "minfontfacesize", 16); - - - result->minfontfacesize = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 16); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "pixelshiftx", 16); - - - result->pixelshiftx = ELEKTRA_GET (Short) (elektra, field); - - strncpy (&field[nameLen], "pixelshifty", 16); - - - result->pixelshifty = ELEKTRA_GET (Short) (elektra, field); - - strncpy (&field[nameLen], "reboot", 16); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "showbigborder", 16); - - - result->showbigborder = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "showdebugframe", 16); - - - result->showdebugframe = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "showthinborder", 16); - - - result->showthinborder = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "textresolution", 16); - - - result->textresolution = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "upsidedown", 16); - - - result->upsidedown = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "useft2", 16); - - - result->useft2 = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const GlcdlibDriverConfig *, StructGlcdlibDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 16 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "CharEncoding", 16); - - ELEKTRA_SET (String) (elektra, field, value->CharEncoding, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "backlight", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 16); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 16); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "driver", 16); - - ELEKTRA_SET (String) (elektra, field, value->driver, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 16); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "fontfile", 16); - - ELEKTRA_SET (String) (elektra, field, value->fontfile, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "invert", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->invert, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "minfontfacesize", 16); - - ELEKTRA_SET (String) (elektra, field, value->minfontfacesize, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 16); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "pixelshiftx", 16); - - ELEKTRA_SET (Short) (elektra, field, value->pixelshiftx, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "pixelshifty", 16); - - ELEKTRA_SET (Short) (elektra, field, value->pixelshifty, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "showbigborder", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->showbigborder, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "showdebugframe", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->showdebugframe, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "showthinborder", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->showthinborder, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "textresolution", 16); - - ELEKTRA_SET (String) (elektra, field, value->textresolution, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "upsidedown", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->upsidedown, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "useft2", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->useft2, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const GlcdlibDriverConfig *, StructGlcdlibDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 16 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "CharEncoding", 16); - - ELEKTRA_SET (String) (elektra, field, value->CharEncoding, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "backlight", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 16); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 16); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "driver", 16); - - ELEKTRA_SET (String) (elektra, field, value->driver, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 16); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "fontfile", 16); - - ELEKTRA_SET (String) (elektra, field, value->fontfile, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "invert", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->invert, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "minfontfacesize", 16); - - ELEKTRA_SET (String) (elektra, field, value->minfontfacesize, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 16); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "pixelshiftx", 16); - - ELEKTRA_SET (Short) (elektra, field, value->pixelshiftx, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "pixelshifty", 16); - - ELEKTRA_SET (Short) (elektra, field, value->pixelshifty, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "showbigborder", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->showbigborder, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "showdebugframe", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->showdebugframe, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "showthinborder", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->showthinborder, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "textresolution", 16); - - ELEKTRA_SET (String) (elektra, field, value->textresolution, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "upsidedown", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->upsidedown, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "useft2", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->useft2, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (GlkDriverConfig, StructGlkDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "speed", 14); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (GlkDriverConfig, StructGlkDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "speed", 14); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const GlkDriverConfig *, StructGlkDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const GlkDriverConfig *, StructGlkDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Hd44780DriverConfig, StructHd44780DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 17 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 17); - - - result->backlight = ELEKTRA_GET (EnumHD44780Backlight) (elektra, field); - - strncpy (&field[nameLen], "backlightcmdoff", 17); - - - result->backlightcmdoff = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "backlightcmdon", 17); - - - result->backlightcmdon = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "brightness", 17); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "charmap", 17); - - - result->charmap = ELEKTRA_GET (EnumHD44780Charmap) (elektra, field); - - strncpy (&field[nameLen], "connectiontype", 17); - - - result->connectiontype = ELEKTRA_GET (EnumHD44780ConnectionType) (elektra, field); - - strncpy (&field[nameLen], "contrast", 17); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "delaybus", 17); - - - result->delaybus = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "delaymult", 17); - - - result->delaymult = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 17); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "extendedmode", 17); - - - result->extendedmode = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "file", 17); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "fontbank", 17); - - - result->fontbank = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "keepalivedisplay", 17); - - - result->keepalivedisplay = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "keymatrix_4_1", 17); - - - result->keymatrix41 = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymatrix_4_2", 17); - - - result->keymatrix42 = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymatrix_4_3", 17); - - - result->keymatrix43 = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymatrix_4_4", 17); - - - result->keymatrix44 = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keypad", 17); - - - result->keypad = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "lastline", 17); - - - result->lastline = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "lineaddress", 17); - - - result->lineaddress = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "model", 17); - - - result->model = ELEKTRA_GET (EnumHd44780Model) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 17); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "outputport", 17); - - - result->outputport = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "port", 17); - - - result->port = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 17); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "refreshdisplay", 17); - - - result->refreshdisplay = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "size", 17); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 17); - - - result->speed = ELEKTRA_GET (UnsignedLong) (elektra, field); - - strncpy (&field[nameLen], "vspan", 17); - - - result->vspan = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Hd44780DriverConfig, StructHd44780DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 17 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 17); - - - result->backlight = ELEKTRA_GET (EnumHD44780Backlight) (elektra, field); - - strncpy (&field[nameLen], "backlightcmdoff", 17); - - - result->backlightcmdoff = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "backlightcmdon", 17); - - - result->backlightcmdon = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "brightness", 17); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "charmap", 17); - - - result->charmap = ELEKTRA_GET (EnumHD44780Charmap) (elektra, field); - - strncpy (&field[nameLen], "connectiontype", 17); - - - result->connectiontype = ELEKTRA_GET (EnumHD44780ConnectionType) (elektra, field); - - strncpy (&field[nameLen], "contrast", 17); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "delaybus", 17); - - - result->delaybus = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "delaymult", 17); - - - result->delaymult = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 17); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "extendedmode", 17); - - - result->extendedmode = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "file", 17); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "fontbank", 17); - - - result->fontbank = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "keepalivedisplay", 17); - - - result->keepalivedisplay = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "keymatrix_4_1", 17); - - - result->keymatrix41 = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymatrix_4_2", 17); - - - result->keymatrix42 = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymatrix_4_3", 17); - - - result->keymatrix43 = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymatrix_4_4", 17); - - - result->keymatrix44 = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keypad", 17); - - - result->keypad = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "lastline", 17); - - - result->lastline = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "lineaddress", 17); - - - result->lineaddress = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "model", 17); - - - result->model = ELEKTRA_GET (EnumHd44780Model) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 17); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "outputport", 17); - - - result->outputport = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "port", 17); - - - result->port = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 17); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "refreshdisplay", 17); - - - result->refreshdisplay = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "size", 17); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 17); - - - result->speed = ELEKTRA_GET (UnsignedLong) (elektra, field); - - strncpy (&field[nameLen], "vspan", 17); - - - result->vspan = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const Hd44780DriverConfig *, StructHd44780DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 17 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 17); - - ELEKTRA_SET (EnumHD44780Backlight) (elektra, field, value->backlight, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "backlightcmdoff", 17); - - ELEKTRA_SET (String) (elektra, field, value->backlightcmdoff, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "backlightcmdon", 17); - - ELEKTRA_SET (String) (elektra, field, value->backlightcmdon, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "charmap", 17); - - ELEKTRA_SET (EnumHD44780Charmap) (elektra, field, value->charmap, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "connectiontype", 17); - - ELEKTRA_SET (EnumHD44780ConnectionType) (elektra, field, value->connectiontype, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "delaybus", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->delaybus, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "delaymult", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->delaymult, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 17); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "extendedmode", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->extendedmode, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 17); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "fontbank", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->fontbank, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keepalivedisplay", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->keepalivedisplay, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymatrix_4_1", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymatrix41, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymatrix_4_2", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymatrix42, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymatrix_4_3", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymatrix43, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymatrix_4_4", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymatrix44, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keypad", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->keypad, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lastline", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->lastline, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lineaddress", 17); - - ELEKTRA_SET (String) (elektra, field, value->lineaddress, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "model", 17); - - ELEKTRA_SET (EnumHd44780Model) (elektra, field, value->model, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "outputport", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->outputport, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "port", 17); - - ELEKTRA_SET (String) (elektra, field, value->port, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "refreshdisplay", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->refreshdisplay, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 17); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 17); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "vspan", 17); - - ELEKTRA_SET (String) (elektra, field, value->vspan, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Hd44780DriverConfig *, StructHd44780DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 17 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 17); - - ELEKTRA_SET (EnumHD44780Backlight) (elektra, field, value->backlight, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "backlightcmdoff", 17); - - ELEKTRA_SET (String) (elektra, field, value->backlightcmdoff, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "backlightcmdon", 17); - - ELEKTRA_SET (String) (elektra, field, value->backlightcmdon, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "charmap", 17); - - ELEKTRA_SET (EnumHD44780Charmap) (elektra, field, value->charmap, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "connectiontype", 17); - - ELEKTRA_SET (EnumHD44780ConnectionType) (elektra, field, value->connectiontype, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "delaybus", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->delaybus, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "delaymult", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->delaymult, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 17); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "extendedmode", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->extendedmode, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 17); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "fontbank", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->fontbank, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keepalivedisplay", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->keepalivedisplay, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymatrix_4_1", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymatrix41, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymatrix_4_2", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymatrix42, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymatrix_4_3", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymatrix43, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymatrix_4_4", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymatrix44, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keypad", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->keypad, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lastline", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->lastline, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lineaddress", 17); - - ELEKTRA_SET (String) (elektra, field, value->lineaddress, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "model", 17); - - ELEKTRA_SET (EnumHd44780Model) (elektra, field, value->model, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "outputport", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->outputport, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "port", 17); - - ELEKTRA_SET (String) (elektra, field, value->port, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "refreshdisplay", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->refreshdisplay, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 17); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 17); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "vspan", 17); - - ELEKTRA_SET (String) (elektra, field, value->vspan, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Icp_a106DriverConfig, StructIcp_a106DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Icp_a106DriverConfig, StructIcp_a106DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const Icp_a106DriverConfig *, StructIcp_a106DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Icp_a106DriverConfig *, StructIcp_a106DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (ImonDriverConfig, StructImonDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "charmap", 14); - - - result->charmap = ELEKTRA_GET (EnumIMonCharmap) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (ImonDriverConfig, StructImonDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "charmap", 14); - - - result->charmap = ELEKTRA_GET (EnumIMonCharmap) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const ImonDriverConfig *, StructImonDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "charmap", 14); - - ELEKTRA_SET (EnumIMonCharmap) (elektra, field, value->charmap, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const ImonDriverConfig *, StructImonDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "charmap", 14); - - ELEKTRA_SET (EnumIMonCharmap) (elektra, field, value->charmap, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (ImonlcdDriverConfig, StructImonlcdDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 14); - - - result->backlight = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "discmode", 14); - - - result->discmode = ELEKTRA_GET (EnumIMonLCDDiscMode) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "onexit", 14); - - - result->onexit = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "protocol", 14); - - - result->protocol = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (ImonlcdDriverConfig, StructImonlcdDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 14); - - - result->backlight = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "discmode", 14); - - - result->discmode = ELEKTRA_GET (EnumIMonLCDDiscMode) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "onexit", 14); - - - result->onexit = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "protocol", 14); - - - result->protocol = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const ImonlcdDriverConfig *, StructImonlcdDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "discmode", 14); - - ELEKTRA_SET (EnumIMonLCDDiscMode) (elektra, field, value->discmode, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "onexit", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->onexit, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "protocol", 14); - - ELEKTRA_SET (String) (elektra, field, value->protocol, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const ImonlcdDriverConfig *, StructImonlcdDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "discmode", 14); - - ELEKTRA_SET (EnumIMonLCDDiscMode) (elektra, field, value->discmode, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "onexit", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->onexit, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "protocol", 14); - - ELEKTRA_SET (String) (elektra, field, value->protocol, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (IOWarriorDriverConfig, StructIOWarriorDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "extendedmode", 14); - - - result->extendedmode = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "lastline", 14); - - - result->lastline = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "serialnumber", 14); - - - result->serialnumber = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (IOWarriorDriverConfig, StructIOWarriorDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "extendedmode", 14); - - - result->extendedmode = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "lastline", 14); - - - result->lastline = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "serialnumber", 14); - - - result->serialnumber = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const IOWarriorDriverConfig *, StructIOWarriorDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "extendedmode", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->extendedmode, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lastline", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->lastline, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "serialnumber", 14); - - ELEKTRA_SET (String) (elektra, field, value->serialnumber, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const IOWarriorDriverConfig *, StructIOWarriorDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "extendedmode", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->extendedmode, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lastline", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->lastline, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "serialnumber", 14); - - ELEKTRA_SET (String) (elektra, field, value->serialnumber, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (IrManDriverConfig, StructIrManDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "config", 14); - - - result->config = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (IrManDriverConfig, StructIrManDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "config", 14); - - - result->config = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const IrManDriverConfig *, StructIrManDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "config", 14); - - ELEKTRA_SET (String) (elektra, field, value->config, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const IrManDriverConfig *, StructIrManDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "config", 14); - - ELEKTRA_SET (String) (elektra, field, value->config, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (IrtransDriverConfig, StructIrtransDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 14); - - - result->backlight = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "hostname", 14); - - - result->hostname = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (IrtransDriverConfig, StructIrtransDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 14); - - - result->backlight = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "hostname", 14); - - - result->hostname = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const IrtransDriverConfig *, StructIrtransDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "hostname", 14); - - ELEKTRA_SET (String) (elektra, field, value->hostname, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const IrtransDriverConfig *, StructIrtransDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "hostname", 14); - - ELEKTRA_SET (String) (elektra, field, value->hostname, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (JoyDriverConfig, StructJoyDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "map_axis1neg", 14); - - - result->mapAxis1neg = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "map_axis1pos", 14); - - - result->mapAxis1pos = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "map_axis2neg", 14); - - - result->mapAxis2neg = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "map_axis2pos", 14); - - - result->mapAxis2pos = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "map_button1", 14); - - - result->mapButton1 = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "map_button2", 14); - - - result->mapButton2 = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (JoyDriverConfig, StructJoyDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "map_axis1neg", 14); - - - result->mapAxis1neg = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "map_axis1pos", 14); - - - result->mapAxis1pos = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "map_axis2neg", 14); - - - result->mapAxis2neg = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "map_axis2pos", 14); - - - result->mapAxis2pos = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "map_button1", 14); - - - result->mapButton1 = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "map_button2", 14); - - - result->mapButton2 = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const JoyDriverConfig *, StructJoyDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "map_axis1neg", 14); - - ELEKTRA_SET (String) (elektra, field, value->mapAxis1neg, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "map_axis1pos", 14); - - ELEKTRA_SET (String) (elektra, field, value->mapAxis1pos, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "map_axis2neg", 14); - - ELEKTRA_SET (String) (elektra, field, value->mapAxis2neg, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "map_axis2pos", 14); - - ELEKTRA_SET (String) (elektra, field, value->mapAxis2pos, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "map_button1", 14); - - ELEKTRA_SET (String) (elektra, field, value->mapButton1, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "map_button2", 14); - - ELEKTRA_SET (String) (elektra, field, value->mapButton2, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const JoyDriverConfig *, StructJoyDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "map_axis1neg", 14); - - ELEKTRA_SET (String) (elektra, field, value->mapAxis1neg, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "map_axis1pos", 14); - - ELEKTRA_SET (String) (elektra, field, value->mapAxis1pos, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "map_axis2neg", 14); - - ELEKTRA_SET (String) (elektra, field, value->mapAxis2neg, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "map_axis2pos", 14); - - ELEKTRA_SET (String) (elektra, field, value->mapAxis2pos, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "map_button1", 14); - - ELEKTRA_SET (String) (elektra, field, value->mapButton1, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "map_button2", 14); - - ELEKTRA_SET (String) (elektra, field, value->mapButton2, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Lb216DriverConfig, StructLb216DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "speed", 14); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Lb216DriverConfig, StructLb216DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "speed", 14); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const Lb216DriverConfig *, StructLb216DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Lb216DriverConfig *, StructLb216DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Lcdm001DriverConfig, StructLcdm001DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backkey", 14); - - - result->backkey = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "forwardkey", 14); - - - result->forwardkey = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "mainmenukey", 14); - - - result->mainmenukey = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "pausekey", 14); - - - result->pausekey = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Lcdm001DriverConfig, StructLcdm001DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backkey", 14); - - - result->backkey = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "forwardkey", 14); - - - result->forwardkey = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "mainmenukey", 14); - - - result->mainmenukey = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "pausekey", 14); - - - result->pausekey = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const Lcdm001DriverConfig *, StructLcdm001DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backkey", 14); - - ELEKTRA_SET (String) (elektra, field, value->backkey, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "forwardkey", 14); - - ELEKTRA_SET (String) (elektra, field, value->forwardkey, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "mainmenukey", 14); - - ELEKTRA_SET (String) (elektra, field, value->mainmenukey, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "pausekey", 14); - - ELEKTRA_SET (String) (elektra, field, value->pausekey, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Lcdm001DriverConfig *, StructLcdm001DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backkey", 14); - - ELEKTRA_SET (String) (elektra, field, value->backkey, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "forwardkey", 14); - - ELEKTRA_SET (String) (elektra, field, value->forwardkey, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "mainmenukey", 14); - - ELEKTRA_SET (String) (elektra, field, value->mainmenukey, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "pausekey", 14); - - ELEKTRA_SET (String) (elektra, field, value->pausekey, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (LctermDriverConfig, StructLctermDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (LctermDriverConfig, StructLctermDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const LctermDriverConfig *, StructLctermDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const LctermDriverConfig *, StructLctermDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Linux_inputDriverConfig, StructLinux_inputDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Linux_inputDriverConfig, StructLinux_inputDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const Linux_inputDriverConfig *, StructLinux_inputDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Linux_inputDriverConfig *, StructLinux_inputDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (LircDriverConfig, StructLircDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "lircrc", 14); - - - result->lircrc = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "prog", 14); - - - result->prog = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (LircDriverConfig, StructLircDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "lircrc", 14); - - - result->lircrc = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "prog", 14); - - - result->prog = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const LircDriverConfig *, StructLircDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lircrc", 14); - - ELEKTRA_SET (String) (elektra, field, value->lircrc, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "prog", 14); - - ELEKTRA_SET (String) (elektra, field, value->prog, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const LircDriverConfig *, StructLircDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lircrc", 14); - - ELEKTRA_SET (String) (elektra, field, value->lircrc, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "prog", 14); - - ELEKTRA_SET (String) (elektra, field, value->prog, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (LisDriverConfig, StructLisDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "lastline", 14); - - - result->lastline = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "productid", 14); - - - result->productid = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "vendorid", 14); - - - result->vendorid = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (LisDriverConfig, StructLisDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "lastline", 14); - - - result->lastline = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "productid", 14); - - - result->productid = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "vendorid", 14); - - - result->vendorid = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const LisDriverConfig *, StructLisDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lastline", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->lastline, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "productid", 14); - - ELEKTRA_SET (String) (elektra, field, value->productid, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "vendorid", 14); - - ELEKTRA_SET (String) (elektra, field, value->vendorid, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const LisDriverConfig *, StructLisDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lastline", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->lastline, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "productid", 14); - - ELEKTRA_SET (String) (elektra, field, value->productid, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "vendorid", 14); - - ELEKTRA_SET (String) (elektra, field, value->vendorid, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (MD8800DriverConfig, StructMD8800DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (MD8800DriverConfig, StructMD8800DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const MD8800DriverConfig *, StructMD8800DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const MD8800DriverConfig *, StructMD8800DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Mdm166aDriverConfig, StructMdm166aDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "clock", 14); - - - result->clock = ELEKTRA_GET (EnumMdm166aClock) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "dimming", 14); - - - result->dimming = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "offdimming", 14); - - - result->offdimming = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Mdm166aDriverConfig, StructMdm166aDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "clock", 14); - - - result->clock = ELEKTRA_GET (EnumMdm166aClock) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "dimming", 14); - - - result->dimming = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "offdimming", 14); - - - result->offdimming = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const Mdm166aDriverConfig *, StructMdm166aDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "clock", 14); - - ELEKTRA_SET (EnumMdm166aClock) (elektra, field, value->clock, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "dimming", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->dimming, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offdimming", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->offdimming, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Mdm166aDriverConfig *, StructMdm166aDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "clock", 14); - - ELEKTRA_SET (EnumMdm166aClock) (elektra, field, value->clock, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "dimming", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->dimming, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offdimming", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->offdimming, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Ms6931DriverConfig, StructMs6931DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Ms6931DriverConfig, StructMs6931DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const Ms6931DriverConfig *, StructMs6931DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Ms6931DriverConfig *, StructMs6931DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Mtc_s16209xDriverConfig, StructMtc_s16209xDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Mtc_s16209xDriverConfig, StructMtc_s16209xDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const Mtc_s16209xDriverConfig *, StructMtc_s16209xDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Mtc_s16209xDriverConfig *, StructMtc_s16209xDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (MtxOrbDriverConfig, StructMtxOrbDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 23 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 23); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 23); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 23); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 23); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "hasadjustablebacklight", 23); - - - result->hasadjustablebacklight = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "keymap_a", 23); - - - result->keymapA = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_b", 23); - - - result->keymapB = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_c", 23); - - - result->keymapC = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_d", 23); - - - result->keymapD = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_e", 23); - - - result->keymapE = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_f", 23); - - - result->keymapF = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 23); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 23); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 23); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 23); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "type", 23); - - - result->type = ELEKTRA_GET (EnumMtxorbType) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (MtxOrbDriverConfig, StructMtxOrbDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 23 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 23); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 23); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 23); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 23); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "hasadjustablebacklight", 23); - - - result->hasadjustablebacklight = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "keymap_a", 23); - - - result->keymapA = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_b", 23); - - - result->keymapB = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_c", 23); - - - result->keymapC = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_d", 23); - - - result->keymapD = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_e", 23); - - - result->keymapE = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_f", 23); - - - result->keymapF = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 23); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 23); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 23); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 23); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "type", 23); - - - result->type = ELEKTRA_GET (EnumMtxorbType) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const MtxOrbDriverConfig *, StructMtxOrbDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 23 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 23); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 23); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 23); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 23); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "hasadjustablebacklight", 23); - - ELEKTRA_SET (Boolean) (elektra, field, value->hasadjustablebacklight, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_a", 23); - - ELEKTRA_SET (String) (elektra, field, value->keymapA, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_b", 23); - - ELEKTRA_SET (String) (elektra, field, value->keymapB, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_c", 23); - - ELEKTRA_SET (String) (elektra, field, value->keymapC, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_d", 23); - - ELEKTRA_SET (String) (elektra, field, value->keymapD, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_e", 23); - - ELEKTRA_SET (String) (elektra, field, value->keymapE, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_f", 23); - - ELEKTRA_SET (String) (elektra, field, value->keymapF, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 23); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 23); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 23); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 23); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "type", 23); - - ELEKTRA_SET (EnumMtxorbType) (elektra, field, value->type, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const MtxOrbDriverConfig *, StructMtxOrbDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 23 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 23); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 23); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 23); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 23); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "hasadjustablebacklight", 23); - - ELEKTRA_SET (Boolean) (elektra, field, value->hasadjustablebacklight, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_a", 23); - - ELEKTRA_SET (String) (elektra, field, value->keymapA, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_b", 23); - - ELEKTRA_SET (String) (elektra, field, value->keymapB, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_c", 23); - - ELEKTRA_SET (String) (elektra, field, value->keymapC, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_d", 23); - - ELEKTRA_SET (String) (elektra, field, value->keymapD, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_e", 23); - - ELEKTRA_SET (String) (elektra, field, value->keymapE, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_f", 23); - - ELEKTRA_SET (String) (elektra, field, value->keymapF, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 23); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 23); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 23); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 23); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "type", 23); - - ELEKTRA_SET (EnumMtxorbType) (elektra, field, value->type, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Mx5000DriverConfig, StructMx5000DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 17 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 17); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 17); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 17); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 17); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 17); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 17); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "waitafterrefresh", 17); - - - result->waitafterrefresh = ELEKTRA_GET (UnsignedLong) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Mx5000DriverConfig, StructMx5000DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 17 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 17); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 17); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 17); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 17); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 17); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 17); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "waitafterrefresh", 17); - - - result->waitafterrefresh = ELEKTRA_GET (UnsignedLong) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const Mx5000DriverConfig *, StructMx5000DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 17 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 17); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 17); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "waitafterrefresh", 17); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->waitafterrefresh, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Mx5000DriverConfig *, StructMx5000DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 17 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 17); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 17); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "waitafterrefresh", 17); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->waitafterrefresh, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (NoritakeVFDDriverConfig, StructNoritakeVFDDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "parity", 14); - - - result->parity = ELEKTRA_GET (UnsignedLong) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 14); - - - result->speed = ELEKTRA_GET (UnsignedLong) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (NoritakeVFDDriverConfig, StructNoritakeVFDDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "parity", 14); - - - result->parity = ELEKTRA_GET (UnsignedLong) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 14); - - - result->speed = ELEKTRA_GET (UnsignedLong) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const NoritakeVFDDriverConfig *, StructNoritakeVFDDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "parity", 14); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->parity, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 14); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const NoritakeVFDDriverConfig *, StructNoritakeVFDDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "parity", 14); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->parity, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 14); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Olimex_MOD_LCD1x9DriverConfig, StructOlimex_MOD_LCD1x9DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Olimex_MOD_LCD1x9DriverConfig, StructOlimex_MOD_LCD1x9DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const Olimex_MOD_LCD1x9DriverConfig *, StructOlimex_MOD_LCD1x9DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Olimex_MOD_LCD1x9DriverConfig *, StructOlimex_MOD_LCD1x9DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (PicolcdDriverConfig, StructPicolcdDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 19 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 19); - - - result->backlight = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "brightness", 19); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 19); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 19); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "key0light", 19); - - - result->key0light = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "key1light", 19); - - - result->key1light = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "key2light", 19); - - - result->key2light = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "key3light", 19); - - - result->key3light = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "key4light", 19); - - - result->key4light = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "key5light", 19); - - - result->key5light = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "keylights", 19); - - - result->keylights = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "keyrepeatdelay", 19); - - - result->keyrepeatdelay = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "keyrepeatinterval", 19); - - - result->keyrepeatinterval = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "keytimeout", 19); - - - result->keytimeout = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "linklights", 19); - - - result->linklights = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "lircflushthreshold", 19); - - - result->lircflushthreshold = ELEKTRA_GET (UnsignedLong) (elektra, field); - - strncpy (&field[nameLen], "lirchost", 19); - - - result->lirchost = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "lircport", 19); - - - result->lircport = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "lirctime_us", 19); - - - result->lirctimeUs = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 19); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 19); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (PicolcdDriverConfig, StructPicolcdDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 19 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 19); - - - result->backlight = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "brightness", 19); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 19); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 19); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "key0light", 19); - - - result->key0light = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "key1light", 19); - - - result->key1light = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "key2light", 19); - - - result->key2light = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "key3light", 19); - - - result->key3light = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "key4light", 19); - - - result->key4light = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "key5light", 19); - - - result->key5light = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "keylights", 19); - - - result->keylights = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "keyrepeatdelay", 19); - - - result->keyrepeatdelay = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "keyrepeatinterval", 19); - - - result->keyrepeatinterval = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "keytimeout", 19); - - - result->keytimeout = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "linklights", 19); - - - result->linklights = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "lircflushthreshold", 19); - - - result->lircflushthreshold = ELEKTRA_GET (UnsignedLong) (elektra, field); - - strncpy (&field[nameLen], "lirchost", 19); - - - result->lirchost = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "lircport", 19); - - - result->lircport = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "lirctime_us", 19); - - - result->lirctimeUs = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 19); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 19); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const PicolcdDriverConfig *, StructPicolcdDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 19 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 19); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 19); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 19); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "key0light", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->key0light, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "key1light", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->key1light, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "key2light", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->key2light, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "key3light", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->key3light, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "key4light", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->key4light, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "key5light", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->key5light, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keylights", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->keylights, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keyrepeatdelay", 19); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->keyrepeatdelay, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keyrepeatinterval", 19); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->keyrepeatinterval, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keytimeout", 19); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->keytimeout, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "linklights", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->linklights, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lircflushthreshold", 19); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->lircflushthreshold, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lirchost", 19); - - ELEKTRA_SET (String) (elektra, field, value->lirchost, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lircport", 19); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->lircport, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lirctime_us", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->lirctimeUs, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 19); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const PicolcdDriverConfig *, StructPicolcdDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 19 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 19); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 19); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 19); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "key0light", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->key0light, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "key1light", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->key1light, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "key2light", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->key2light, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "key3light", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->key3light, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "key4light", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->key4light, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "key5light", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->key5light, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keylights", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->keylights, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keyrepeatdelay", 19); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->keyrepeatdelay, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keyrepeatinterval", 19); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->keyrepeatinterval, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keytimeout", 19); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->keytimeout, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "linklights", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->linklights, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lircflushthreshold", 19); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->lircflushthreshold, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lirchost", 19); - - ELEKTRA_SET (String) (elektra, field, value->lirchost, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lircport", 19); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->lircport, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lirctime_us", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->lirctimeUs, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 19); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (PyramidDriverConfig, StructPyramidDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (PyramidDriverConfig, StructPyramidDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const PyramidDriverConfig *, StructPyramidDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const PyramidDriverConfig *, StructPyramidDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (RawserialDriverConfig, StructRawserialDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 14); - - - result->speed = ELEKTRA_GET (UnsignedLong) (elektra, field); - - strncpy (&field[nameLen], "updaterate", 14); - - - result->updaterate = ELEKTRA_GET (Float) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (RawserialDriverConfig, StructRawserialDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 14); - - - result->speed = ELEKTRA_GET (UnsignedLong) (elektra, field); - - strncpy (&field[nameLen], "updaterate", 14); - - - result->updaterate = ELEKTRA_GET (Float) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const RawserialDriverConfig *, StructRawserialDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 14); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "updaterate", 14); - - ELEKTRA_SET (Float) (elektra, field, value->updaterate, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const RawserialDriverConfig *, StructRawserialDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 14); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "updaterate", 14); - - ELEKTRA_SET (Float) (elektra, field, value->updaterate, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Sed1330DriverConfig, StructSed1330DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 15 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 15); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "cellsize", 15); - - - result->cellsize = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "connectiontype", 15); - - - result->connectiontype = ELEKTRA_GET (EnumSed1330Connectiontype) (elektra, field); - - strncpy (&field[nameLen], "contrast", 15); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 15); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 15); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "port", 15); - - - result->port = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 15); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "type", 15); - - - result->type = ELEKTRA_GET (EnumSed1330Type) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Sed1330DriverConfig, StructSed1330DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 15 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 15); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "cellsize", 15); - - - result->cellsize = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "connectiontype", 15); - - - result->connectiontype = ELEKTRA_GET (EnumSed1330Connectiontype) (elektra, field); - - strncpy (&field[nameLen], "contrast", 15); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 15); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 15); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "port", 15); - - - result->port = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 15); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "type", 15); - - - result->type = ELEKTRA_GET (EnumSed1330Type) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const Sed1330DriverConfig *, StructSed1330DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 15 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 15); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "cellsize", 15); - - ELEKTRA_SET (String) (elektra, field, value->cellsize, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "connectiontype", 15); - - ELEKTRA_SET (EnumSed1330Connectiontype) (elektra, field, value->connectiontype, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 15); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 15); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 15); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "port", 15); - - ELEKTRA_SET (String) (elektra, field, value->port, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 15); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "type", 15); - - ELEKTRA_SET (EnumSed1330Type) (elektra, field, value->type, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Sed1330DriverConfig *, StructSed1330DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 15 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 15); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "cellsize", 15); - - ELEKTRA_SET (String) (elektra, field, value->cellsize, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "connectiontype", 15); - - ELEKTRA_SET (EnumSed1330Connectiontype) (elektra, field, value->connectiontype, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 15); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 15); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 15); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "port", 15); - - ELEKTRA_SET (String) (elektra, field, value->port, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 15); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "type", 15); - - ELEKTRA_SET (EnumSed1330Type) (elektra, field, value->type, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Sed1520DriverConfig, StructSed1520DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 16 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 16); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 16); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "delaymult", 16); - - - result->delaymult = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 16); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "haveinverter", 16); - - - result->haveinverter = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "interfacetype", 16); - - - result->interfacetype = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "invertedmapping", 16); - - - result->invertedmapping = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 16); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "port", 16); - - - result->port = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 16); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "usehardreset", 16); - - - result->usehardreset = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Sed1520DriverConfig, StructSed1520DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 16 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 16); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 16); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "delaymult", 16); - - - result->delaymult = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 16); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "haveinverter", 16); - - - result->haveinverter = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "interfacetype", 16); - - - result->interfacetype = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "invertedmapping", 16); - - - result->invertedmapping = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 16); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "port", 16); - - - result->port = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 16); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "usehardreset", 16); - - - result->usehardreset = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const Sed1520DriverConfig *, StructSed1520DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 16 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 16); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 16); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "delaymult", 16); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->delaymult, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 16); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "haveinverter", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->haveinverter, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "interfacetype", 16); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->interfacetype, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "invertedmapping", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->invertedmapping, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 16); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "port", 16); - - ELEKTRA_SET (String) (elektra, field, value->port, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "usehardreset", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->usehardreset, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Sed1520DriverConfig *, StructSed1520DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 16 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 16); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 16); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "delaymult", 16); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->delaymult, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 16); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "haveinverter", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->haveinverter, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "interfacetype", 16); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->interfacetype, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "invertedmapping", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->invertedmapping, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 16); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "port", 16); - - ELEKTRA_SET (String) (elektra, field, value->port, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "usehardreset", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->usehardreset, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (SerialPOSDriverConfig, StructSerialPOSDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "cellsize", 14); - - - result->cellsize = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "custom_chars", 14); - - - result->customChars = ELEKTRA_GET (UnsignedLong) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 14); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "type", 14); - - - result->type = ELEKTRA_GET (EnumSerialposType) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SerialPOSDriverConfig, StructSerialPOSDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "cellsize", 14); - - - result->cellsize = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "custom_chars", 14); - - - result->customChars = ELEKTRA_GET (UnsignedLong) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 14); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "type", 14); - - - result->type = ELEKTRA_GET (EnumSerialposType) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const SerialPOSDriverConfig *, StructSerialPOSDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "cellsize", 14); - - ELEKTRA_SET (String) (elektra, field, value->cellsize, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "custom_chars", 14); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->customChars, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "type", 14); - - ELEKTRA_SET (EnumSerialposType) (elektra, field, value->type, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SerialPOSDriverConfig *, StructSerialPOSDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "cellsize", 14); - - ELEKTRA_SET (String) (elektra, field, value->cellsize, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "custom_chars", 14); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->customChars, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "type", 14); - - ELEKTRA_SET (EnumSerialposType) (elektra, field, value->type, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (SerialVFDDriverConfig, StructSerialVFDDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 18 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 18); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 18); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "custom-characters", 18); - - - result->custom_characters = ELEKTRA_GET (UnsignedLong) (elektra, field); - - strncpy (&field[nameLen], "device", 18); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 18); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "iso_8859_1", 18); - - - result->iso88591 = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 18); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "port", 18); - - - result->port = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "portwait", 18); - - - result->portwait = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 18); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 18); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 18); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "type", 18); - - - result->type = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "use_parallel", 18); - - - result->useParallel = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SerialVFDDriverConfig, StructSerialVFDDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 18 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 18); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 18); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "custom-characters", 18); - - - result->custom_characters = ELEKTRA_GET (UnsignedLong) (elektra, field); - - strncpy (&field[nameLen], "device", 18); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 18); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "iso_8859_1", 18); - - - result->iso88591 = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 18); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "port", 18); - - - result->port = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "portwait", 18); - - - result->portwait = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 18); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 18); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 18); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "type", 18); - - - result->type = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "use_parallel", 18); - - - result->useParallel = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const SerialVFDDriverConfig *, StructSerialVFDDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 18 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 18); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 18); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "custom-characters", 18); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->custom_characters, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 18); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 18); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "iso_8859_1", 18); - - ELEKTRA_SET (Boolean) (elektra, field, value->iso88591, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 18); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "port", 18); - - ELEKTRA_SET (String) (elektra, field, value->port, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "portwait", 18); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->portwait, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 18); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 18); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 18); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "type", 18); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->type, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "use_parallel", 18); - - ELEKTRA_SET (Boolean) (elektra, field, value->useParallel, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SerialVFDDriverConfig *, StructSerialVFDDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 18 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 18); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 18); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "custom-characters", 18); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->custom_characters, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 18); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 18); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "iso_8859_1", 18); - - ELEKTRA_SET (Boolean) (elektra, field, value->iso88591, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 18); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "port", 18); - - ELEKTRA_SET (String) (elektra, field, value->port, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "portwait", 18); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->portwait, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 18); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 18); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 18); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "type", 18); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->type, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "use_parallel", 18); - - ELEKTRA_SET (Boolean) (elektra, field, value->useParallel, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (SliDriverConfig, StructSliDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "speed", 14); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SliDriverConfig, StructSliDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "speed", 14); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const SliDriverConfig *, StructSliDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SliDriverConfig *, StructSliDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Stv5730DriverConfig, StructStv5730DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "port", 14); - - - result->port = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Stv5730DriverConfig, StructStv5730DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "port", 14); - - - result->port = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const Stv5730DriverConfig *, StructStv5730DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "port", 14); - - ELEKTRA_SET (String) (elektra, field, value->port, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Stv5730DriverConfig *, StructStv5730DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "port", 14); - - ELEKTRA_SET (String) (elektra, field, value->port, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (SureElecDriverConfig, StructSureElecDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "edition", 14); - - - result->edition = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SureElecDriverConfig, StructSureElecDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "edition", 14); - - - result->edition = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const SureElecDriverConfig *, StructSureElecDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "edition", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->edition, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SureElecDriverConfig *, StructSureElecDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "edition", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->edition, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (SvgaDriverConfig, StructSvgaDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "mode", 14); - - - result->mode = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SvgaDriverConfig, StructSvgaDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "mode", 14); - - - result->mode = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const SvgaDriverConfig *, StructSvgaDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "mode", 14); - - ELEKTRA_SET (String) (elektra, field, value->mode, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SvgaDriverConfig *, StructSvgaDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "mode", 14); - - ELEKTRA_SET (String) (elektra, field, value->mode, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (T6963DriverConfig, StructT6963DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "bidirectional", 14); - - - result->bidirectional = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "cleargraphic", 14); - - - result->cleargraphic = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "delaybus", 14); - - - result->delaybus = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "port", 14); - - - result->port = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (T6963DriverConfig, StructT6963DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "bidirectional", 14); - - - result->bidirectional = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "cleargraphic", 14); - - - result->cleargraphic = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "delaybus", 14); - - - result->delaybus = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "port", 14); - - - result->port = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const T6963DriverConfig *, StructT6963DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "bidirectional", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->bidirectional, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "cleargraphic", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->cleargraphic, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "delaybus", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->delaybus, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "port", 14); - - ELEKTRA_SET (String) (elektra, field, value->port, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const T6963DriverConfig *, StructT6963DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "bidirectional", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->bidirectional, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "cleargraphic", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->cleargraphic, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "delaybus", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->delaybus, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "port", 14); - - ELEKTRA_SET (String) (elektra, field, value->port, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (TextDriverConfig, StructTextDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (TextDriverConfig, StructTextDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const TextDriverConfig *, StructTextDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const TextDriverConfig *, StructTextDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (TyanDriverConfig, StructTyanDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 14); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (TyanDriverConfig, StructTyanDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 14); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const TyanDriverConfig *, StructTyanDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const TyanDriverConfig *, StructTyanDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Ula200DriverConfig, StructUla200DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_a", 14); - - - result->keymapA = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_b", 14); - - - result->keymapB = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_c", 14); - - - result->keymapC = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_d", 14); - - - result->keymapD = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_e", 14); - - - result->keymapE = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_f", 14); - - - result->keymapF = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Ula200DriverConfig, StructUla200DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_a", 14); - - - result->keymapA = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_b", 14); - - - result->keymapB = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_c", 14); - - - result->keymapC = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_d", 14); - - - result->keymapD = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_e", 14); - - - result->keymapE = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_f", 14); - - - result->keymapF = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const Ula200DriverConfig *, StructUla200DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_a", 14); - - ELEKTRA_SET (String) (elektra, field, value->keymapA, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_b", 14); - - ELEKTRA_SET (String) (elektra, field, value->keymapB, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_c", 14); - - ELEKTRA_SET (String) (elektra, field, value->keymapC, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_d", 14); - - ELEKTRA_SET (String) (elektra, field, value->keymapD, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_e", 14); - - ELEKTRA_SET (String) (elektra, field, value->keymapE, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_f", 14); - - ELEKTRA_SET (String) (elektra, field, value->keymapF, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Ula200DriverConfig *, StructUla200DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_a", 14); - - ELEKTRA_SET (String) (elektra, field, value->keymapA, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_b", 14); - - ELEKTRA_SET (String) (elektra, field, value->keymapB, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_c", 14); - - ELEKTRA_SET (String) (elektra, field, value->keymapC, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_d", 14); - - ELEKTRA_SET (String) (elektra, field, value->keymapD, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_e", 14); - - ELEKTRA_SET (String) (elektra, field, value->keymapE, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_f", 14); - - ELEKTRA_SET (String) (elektra, field, value->keymapF, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Vlsys_m428DriverConfig, StructVlsys_m428DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Vlsys_m428DriverConfig, StructVlsys_m428DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const Vlsys_m428DriverConfig *, StructVlsys_m428DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Vlsys_m428DriverConfig *, StructVlsys_m428DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (XosdDriverConfig, StructXosdDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "Font", 14); - - - result->Font = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "offset", 14); - - - result->offset = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (XosdDriverConfig, StructXosdDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "Font", 14); - - - result->Font = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "offset", 14); - - - result->offset = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const XosdDriverConfig *, StructXosdDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "Font", 14); - - ELEKTRA_SET (String) (elektra, field, value->Font, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offset", 14); - - ELEKTRA_SET (String) (elektra, field, value->offset, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const XosdDriverConfig *, StructXosdDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "Font", 14); - - ELEKTRA_SET (String) (elektra, field, value->Font, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offset", 14); - - ELEKTRA_SET (String) (elektra, field, value->offset, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Yard2LCDDriverConfig, StructYard2LCDDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Yard2LCDDriverConfig, StructYard2LCDDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const Yard2LCDDriverConfig *, StructYard2LCDDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Yard2LCDDriverConfig *, StructYard2LCDDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - diff --git a/server/elektragen.h b/server/elektragen.h deleted file mode 100644 index 635a1974..00000000 --- a/server/elektragen.h +++ /dev/null @@ -1,36230 +0,0 @@ -// clang-format off - - -// clang-format on -/** - * @file - * - * This file was automatically generated using `kdb gen elektra`. - * Any changes will be overwritten, when the file is regenerated. - * - * @copyright BSD Zero Clause License - * - * Copyright (C) 2019 Elektra Initiative (https://libelektra.org) - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND - * FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR - * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - - -#ifndef ELEKTRAGEN_H -#define ELEKTRAGEN_H - -#ifdef __cplusplus -extern "C" { -#endif - -#include - -#include -#include - - - -#define ELEKTRA_CONTEXT_SET(contextTag) elektraSetContextualValue##contextTag - -// clang-format off - -// clang-format on - -typedef enum -{ - C_FONTZ_PACKET_MODEL_533 = 0, - C_FONTZ_PACKET_MODEL_631 = 1, - C_FONTZ_PACKET_MODEL_633 = 2, - C_FONTZ_PACKET_MODEL_635 = 3, -} CFontzPacketModel; - -typedef enum -{ - CURSES_COLOR_RED = 0, - CURSES_COLOR_BLACK = 1, - CURSES_COLOR_GREEN = 2, - CURSES_COLOR_YELLOW = 3, - CURSES_COLOR_BLUE = 4, - CURSES_COLOR_MAGENTA = 5, - CURSES_COLOR_CYAN = 6, - CURSES_COLOR_WHITE = 7, -} CursesColor; - -typedef enum -{ - CW_LNX_MODEL_12232 = 0, - CW_LNX_MODEL_12832 = 1, - CW_LNX_MODEL_1602 = 2, -} CwLnxModel; - -typedef enum -{ - GLCD_CONNECTION_TYPE_T6963 = 0, - GLCD_CONNECTION_TYPE_PNG = 1, - GLCD_CONNECTION_TYPE_SERDISPLIB = 2, - GLCD_CONNECTION_TYPE_GLCD2USB = 3, - GLCD_CONNECTION_TYPE_X11 = 4, - GLCD_CONNECTION_TYPE_PICOLCDGFX = 5, - GLCD_CONNECTION_TYPE_XYZ = 6, -} GlcdConnectionType; - -typedef enum -{ - H_D44780_BACKLIGHT_NONE = 0, - H_D44780_BACKLIGHT_EXTERNAL = 1, - H_D44780_BACKLIGHT_INTERNAL = 2, - H_D44780_BACKLIGHT_INTERNAL_CMDS = 3, -} HD44780Backlight; - -typedef enum -{ - H_D44780_CHARMAP_HD44780_DEFAULT = 0, - H_D44780_CHARMAP_HD44780_EURO = 1, - H_D44780_CHARMAP_EA_KS0073 = 2, - H_D44780_CHARMAP_SED1278F_0B = 3, - H_D44780_CHARMAP_HD44780_KOI8_R = 4, - H_D44780_CHARMAP_HD44780_CP1251 = 5, - H_D44780_CHARMAP_HD44780_8859_5 = 6, - H_D44780_CHARMAP_UPD16314 = 7, -} HD44780Charmap; - -typedef enum -{ - H_D44780_CONNECTION_TYPE_4BIT = 0, - H_D44780_CONNECTION_TYPE_8BIT = 1, - H_D44780_CONNECTION_TYPE_WINAMP = 2, - H_D44780_CONNECTION_TYPE_LCM162 = 3, - H_D44780_CONNECTION_TYPE_SERIAL_LPT = 4, - H_D44780_CONNECTION_TYPE_PICANLCD = 5, - H_D44780_CONNECTION_TYPE_LCDSERIALIZER = 6, - H_D44780_CONNECTION_TYPE_LOS_PANEL = 7, - H_D44780_CONNECTION_TYPE_VDR_LCD = 8, - H_D44780_CONNECTION_TYPE_VDR_WAKEUP = 9, - H_D44780_CONNECTION_TYPE_EZIO = 10, - H_D44780_CONNECTION_TYPE_PERTELIAN = 11, - H_D44780_CONNECTION_TYPE_LIS2 = 12, - H_D44780_CONNECTION_TYPE_MPLAY = 13, - H_D44780_CONNECTION_TYPE_USBLCD = 14, - H_D44780_CONNECTION_TYPE_BWCTUSB = 15, - H_D44780_CONNECTION_TYPE_LCD2USB = 16, - H_D44780_CONNECTION_TYPE_USBTINY = 17, - H_D44780_CONNECTION_TYPE_USS720 = 18, - H_D44780_CONNECTION_TYPE_U_S_B_4_ALL = 19, - H_D44780_CONNECTION_TYPE_FTDI = 20, - H_D44780_CONNECTION_TYPE_I2C = 21, - H_D44780_CONNECTION_TYPE_PIPLATE = 22, - H_D44780_CONNECTION_TYPE_SPI = 23, - H_D44780_CONNECTION_TYPE_PIFACECAD = 24, - H_D44780_CONNECTION_TYPE_ETHLCD = 25, - H_D44780_CONNECTION_TYPE_RASPBERRYPI = 26, - H_D44780_CONNECTION_TYPE_GPIO = 27, -} HD44780ConnectionType; - -typedef enum -{ - ELEKTRA_ENUM_HD44780_MODEL_STANDARD = 0, - ELEKTRA_ENUM_HD44780_MODEL_EXTENDED = 1, - ELEKTRA_ENUM_HD44780_MODEL_WINSTAR_OLED = 2, - ELEKTRA_ENUM_HD44780_MODEL_PT6314_VFD = 3, -} ElektraEnumHd44780Model; - -typedef enum -{ - I_MON_CHARMAP_HD44780_EURO = 0, - I_MON_CHARMAP_UPD16314 = 1, - I_MON_CHARMAP_HD44780_KOI8_R = 2, - I_MON_CHARMAP_HD44780_CP1251 = 3, - I_MON_CHARMAP_HD44780_8859_5 = 4, - I_MON_CHARMAP_NONE = 5, -} IMonCharmap; - -typedef enum -{ - I_MON_L_C_D_DISC_MODE_0 = 0, - I_MON_L_C_D_DISC_MODE_1 = 1, -} IMonLCDDiscMode; - -typedef enum -{ - ELEKTRA_ENUM_MDM166A_CLOCK_NO = 0, - ELEKTRA_ENUM_MDM166A_CLOCK_SMALL = 1, - ELEKTRA_ENUM_MDM166A_CLOCK_BIG = 2, -} ElektraEnumMdm166aClock; - -typedef enum -{ - ELEKTRA_ENUM_MTXORB_TYPE_LCD_LKD__VFD__VKD = 0, - ELEKTRA_ENUM_MTXORB_TYPE_LKD = 1, - ELEKTRA_ENUM_MTXORB_TYPE_VFD = 2, - ELEKTRA_ENUM_MTXORB_TYPE_VKD = 3, -} ElektraEnumMtxorbType; - -typedef enum -{ - ELEKTRA_ENUM_SED1330_CONNECTIONTYPE_CLASSIC = 0, - ELEKTRA_ENUM_SED1330_CONNECTIONTYPE_BITSHAKER = 1, -} ElektraEnumSed1330Connectiontype; - -typedef enum -{ - ELEKTRA_ENUM_SED1330_TYPE_G321_D = 0, - ELEKTRA_ENUM_SED1330_TYPE_G121_C = 1, - ELEKTRA_ENUM_SED1330_TYPE_G242_C = 2, - ELEKTRA_ENUM_SED1330_TYPE_G191_D = 3, - ELEKTRA_ENUM_SED1330_TYPE_G2446 = 4, - ELEKTRA_ENUM_SED1330_TYPE_S_P14_Q002 = 5, -} ElektraEnumSed1330Type; - -typedef enum -{ - ELEKTRA_ENUM_SERIALPOS_TYPE_A_E_D_E_X = 0, - ELEKTRA_ENUM_SERIALPOS_TYPE_C_D5220 = 1, - ELEKTRA_ENUM_SERIALPOS_TYPE_EPSON = 2, - ELEKTRA_ENUM_SERIALPOS_TYPE_EMAX = 3, - ELEKTRA_ENUM_SERIALPOS_TYPE_LOGIC_CONTROLS = 4, - ELEKTRA_ENUM_SERIALPOS_TYPE_ULTIMATE = 5, -} ElektraEnumSerialposType; - -typedef enum -{ - ELEKTRA_ENUM_SERVER_BACKLIGHT_OFF = 0, - ELEKTRA_ENUM_SERVER_BACKLIGHT_ON = 1, - ELEKTRA_ENUM_SERVER_BACKLIGHT_OPEN = 2, -} ElektraEnumServerBacklight; - -typedef enum -{ - ELEKTRA_ENUM_SERVER_HEARTBEAT_OFF = 0, - ELEKTRA_ENUM_SERVER_HEARTBEAT_ON = 1, - ELEKTRA_ENUM_SERVER_HEARTBEAT_OPEN = 2, -} ElektraEnumServerHeartbeat; - -typedef enum -{ - ELEKTRA_ENUM_SERVER_SERVERSCREEN_OFF = 0, - ELEKTRA_ENUM_SERVER_SERVERSCREEN_ON = 1, - ELEKTRA_ENUM_SERVER_SERVERSCREEN_BLANK = 2, -} ElektraEnumServerServerscreen; - - -ELEKTRA_KEY_TO_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel); -ELEKTRA_TO_STRING_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel); - -ELEKTRA_GET_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel); -ELEKTRA_SET_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel); - -ELEKTRA_KEY_TO_SIGNATURE (CursesColor, EnumCursesColor); -ELEKTRA_TO_STRING_SIGNATURE (CursesColor, EnumCursesColor); - -ELEKTRA_GET_SIGNATURE (CursesColor, EnumCursesColor); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (CursesColor, EnumCursesColor); -ELEKTRA_SET_SIGNATURE (CursesColor, EnumCursesColor); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (CursesColor, EnumCursesColor); - -ELEKTRA_KEY_TO_SIGNATURE (CwLnxModel, EnumCwLnxModel); -ELEKTRA_TO_STRING_SIGNATURE (CwLnxModel, EnumCwLnxModel); - -ELEKTRA_GET_SIGNATURE (CwLnxModel, EnumCwLnxModel); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (CwLnxModel, EnumCwLnxModel); -ELEKTRA_SET_SIGNATURE (CwLnxModel, EnumCwLnxModel); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (CwLnxModel, EnumCwLnxModel); - -ELEKTRA_KEY_TO_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType); -ELEKTRA_TO_STRING_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType); - -ELEKTRA_GET_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType); -ELEKTRA_SET_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType); - -ELEKTRA_KEY_TO_SIGNATURE (HD44780Backlight, EnumHD44780Backlight); -ELEKTRA_TO_STRING_SIGNATURE (HD44780Backlight, EnumHD44780Backlight); - -ELEKTRA_GET_SIGNATURE (HD44780Backlight, EnumHD44780Backlight); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (HD44780Backlight, EnumHD44780Backlight); -ELEKTRA_SET_SIGNATURE (HD44780Backlight, EnumHD44780Backlight); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (HD44780Backlight, EnumHD44780Backlight); - -ELEKTRA_KEY_TO_SIGNATURE (HD44780Charmap, EnumHD44780Charmap); -ELEKTRA_TO_STRING_SIGNATURE (HD44780Charmap, EnumHD44780Charmap); - -ELEKTRA_GET_SIGNATURE (HD44780Charmap, EnumHD44780Charmap); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (HD44780Charmap, EnumHD44780Charmap); -ELEKTRA_SET_SIGNATURE (HD44780Charmap, EnumHD44780Charmap); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (HD44780Charmap, EnumHD44780Charmap); - -ELEKTRA_KEY_TO_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType); -ELEKTRA_TO_STRING_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType); - -ELEKTRA_GET_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType); -ELEKTRA_SET_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType); - -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model); -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model); - -ELEKTRA_GET_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model); -ELEKTRA_SET_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model); - -ELEKTRA_KEY_TO_SIGNATURE (IMonCharmap, EnumIMonCharmap); -ELEKTRA_TO_STRING_SIGNATURE (IMonCharmap, EnumIMonCharmap); - -ELEKTRA_GET_SIGNATURE (IMonCharmap, EnumIMonCharmap); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (IMonCharmap, EnumIMonCharmap); -ELEKTRA_SET_SIGNATURE (IMonCharmap, EnumIMonCharmap); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (IMonCharmap, EnumIMonCharmap); - -ELEKTRA_KEY_TO_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode); -ELEKTRA_TO_STRING_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode); - -ELEKTRA_GET_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode); -ELEKTRA_SET_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode); - -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock); -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock); - -ELEKTRA_GET_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock); -ELEKTRA_SET_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock); - -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType); -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType); - -ELEKTRA_GET_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType); -ELEKTRA_SET_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType); - -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype); -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype); - -ELEKTRA_GET_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype); -ELEKTRA_SET_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype); - -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type); -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type); - -ELEKTRA_GET_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type); -ELEKTRA_SET_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type); - -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType); -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType); - -ELEKTRA_GET_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType); -ELEKTRA_SET_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType); - -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight); -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight); - -ELEKTRA_GET_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight); -ELEKTRA_SET_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight); - -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat); -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat); - -ELEKTRA_GET_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat); -ELEKTRA_SET_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat); - -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen); -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen); - -ELEKTRA_GET_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen); -ELEKTRA_SET_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen); - - - -// clang-format off - -// clang-format on - -#define ELEKTRA_STRUCT_FREE(typeName) ELEKTRA_CONCAT (elektraFree, typeName) -#define ELEKTRA_STRUCT_FREE_SIGNATURE(cType, typeName) void ELEKTRA_STRUCT_FREE (typeName) (cType * ptr) - -typedef struct BayradDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - kdb_unsigned_short_t speed; - -} BayradDriverConfig; - -typedef struct CFontzDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_boolean_t newfirmware; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * size; - - - kdb_unsigned_short_t speed; - -} CFontzDriverConfig; - -typedef struct CFontzPacketDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - CFontzPacketModel model; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t oldfirmware; - - - kdb_boolean_t reboot; - - - const char * size; - - - kdb_unsigned_short_t speed; - - - kdb_boolean_t usb; - -} CFontzPacketDriverConfig; - -typedef struct CursesDriverConfig -{ - - CursesColor background; - - - CursesColor backlight; - - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - kdb_boolean_t drawborder; - - - const char * file; - - - CursesColor foreground; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * size; - - - kdb_unsigned_short_t topleftx; - - - kdb_unsigned_short_t toplefty; - - - kdb_boolean_t useacs; - -} CursesDriverConfig; - -typedef struct CwLnxDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - const char * keymapA; - - - const char * keymapB; - - - const char * keymapC; - - - const char * keymapD; - - - const char * keymapE; - - - const char * keymapF; - - - kdb_boolean_t keypad; - - - kdb_boolean_t keypadTestMode; - - - CwLnxModel model; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * size; - - - kdb_unsigned_short_t speed; - -} CwLnxDriverConfig; - -typedef struct Ea65DriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - -} Ea65DriverConfig; - -typedef struct EyeboxOneDriverConfig -{ - - kdb_boolean_t backlight; - - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - kdb_boolean_t cursor; - - - const char * device; - - - const char * downkey; - - - const char * escapekey; - - - const char * file; - - - kdb_boolean_t keypadTestMode; - - - const char * leftkey; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * rightkey; - - - const char * size; - - - kdb_unsigned_short_t speed; - - - const char * upkey; - -} EyeboxOneDriverConfig; - -typedef struct FutabaDriverConfig -{ - - const char * file; - -} FutabaDriverConfig; - -typedef struct G15DriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * size; - -} G15DriverConfig; - -typedef struct GlcdDriverConfig -{ - - kdb_boolean_t bidirectional; - - - kdb_unsigned_short_t brightness; - - - const char * cellsize; - - - GlcdConnectionType connectiontype; - - - kdb_unsigned_short_t contrast; - - - kdb_boolean_t delaybus; - - - const char * file; - - - kdb_boolean_t fonthasicons; - - - const char * keymapA; - - - const char * keymapB; - - - const char * keymapC; - - - const char * keymapD; - - - const char * keymapE; - - - const char * keymapF; - - - kdb_unsigned_short_t keyrepeatdelay; - - - kdb_unsigned_short_t keyrepeatinterval; - - - const char * normalFont; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t picolcdgfxInverted; - - - const char * picolcdgfxKeytimeout; - - - const char * port; - - - kdb_boolean_t reboot; - - - const char * serdispDevice; - - - const char * serdispName; - - - const char * serdispOptions; - - - const char * size; - - - kdb_boolean_t useft2; - - - const char * x11Backlightcolor; - - - kdb_unsigned_long_t x11Border; - - - kdb_boolean_t x11Inverted; - - - const char * x11Pixelcolor; - - - const char * x11Pixelsize; - -} GlcdDriverConfig; - -typedef struct GlcdlibDriverConfig -{ - - const char * CharEncoding; - - - kdb_boolean_t backlight; - - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * driver; - - - const char * file; - - - const char * fontfile; - - - kdb_boolean_t invert; - - - const char * minfontfacesize; - - - kdb_unsigned_short_t offbrightness; - - - kdb_short_t pixelshiftx; - - - kdb_short_t pixelshifty; - - - kdb_boolean_t reboot; - - - kdb_boolean_t showbigborder; - - - kdb_boolean_t showdebugframe; - - - kdb_boolean_t showthinborder; - - - const char * textresolution; - - - kdb_boolean_t upsidedown; - - - kdb_boolean_t useft2; - -} GlcdlibDriverConfig; - -typedef struct GlkDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - kdb_unsigned_short_t speed; - -} GlkDriverConfig; - -typedef struct Hd44780DriverConfig -{ - - HD44780Backlight backlight; - - - const char * backlightcmdoff; - - - const char * backlightcmdon; - - - kdb_unsigned_short_t brightness; - - - HD44780Charmap charmap; - - - HD44780ConnectionType connectiontype; - - - kdb_unsigned_short_t contrast; - - - kdb_boolean_t delaybus; - - - kdb_unsigned_short_t delaymult; - - - const char * device; - - - kdb_boolean_t extendedmode; - - - const char * file; - - - kdb_unsigned_short_t fontbank; - - - kdb_unsigned_short_t keepalivedisplay; - - - const char * keymatrix41; - - - const char * keymatrix42; - - - const char * keymatrix43; - - - const char * keymatrix44; - - - kdb_boolean_t keypad; - - - kdb_boolean_t lastline; - - - const char * lineaddress; - - - ElektraEnumHd44780Model model; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t outputport; - - - const char * port; - - - kdb_boolean_t reboot; - - - kdb_unsigned_short_t refreshdisplay; - - - const char * size; - - - kdb_unsigned_long_t speed; - - - const char * vspan; - -} Hd44780DriverConfig; - -typedef struct Icp_a106DriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * size; - -} Icp_a106DriverConfig; - -typedef struct ImonDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - IMonCharmap charmap; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * size; - -} ImonDriverConfig; - -typedef struct ImonlcdDriverConfig -{ - - kdb_boolean_t backlight; - - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - IMonLCDDiscMode discmode; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_unsigned_short_t onexit; - - - const char * protocol; - - - kdb_boolean_t reboot; - - - const char * size; - -} ImonlcdDriverConfig; - -typedef struct IOWarriorDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - kdb_boolean_t extendedmode; - - - const char * file; - - - kdb_boolean_t lastline; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * serialnumber; - - - const char * size; - -} IOWarriorDriverConfig; - -typedef struct IrManDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - const char * config; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - -} IrManDriverConfig; - -typedef struct IrtransDriverConfig -{ - - kdb_boolean_t backlight; - - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * file; - - - const char * hostname; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * size; - -} IrtransDriverConfig; - -typedef struct JoyDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - const char * mapAxis1neg; - - - const char * mapAxis1pos; - - - const char * mapAxis2neg; - - - const char * mapAxis2pos; - - - const char * mapButton1; - - - const char * mapButton2; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - -} JoyDriverConfig; - -typedef struct Lb216DriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - kdb_unsigned_short_t speed; - -} Lb216DriverConfig; - -typedef struct Lcdm001DriverConfig -{ - - const char * backkey; - - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - const char * forwardkey; - - - const char * mainmenukey; - - - kdb_unsigned_short_t offbrightness; - - - const char * pausekey; - - - kdb_boolean_t reboot; - -} Lcdm001DriverConfig; - -typedef struct LctermDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * size; - -} LctermDriverConfig; - -typedef struct Linux_inputDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - -} Linux_inputDriverConfig; - -typedef struct LircDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * file; - - - const char * lircrc; - - - kdb_unsigned_short_t offbrightness; - - - const char * prog; - - - kdb_boolean_t reboot; - -} LircDriverConfig; - -typedef struct LisDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * file; - - - kdb_boolean_t lastline; - - - kdb_unsigned_short_t offbrightness; - - - const char * productid; - - - kdb_boolean_t reboot; - - - const char * size; - - - const char * vendorid; - -} LisDriverConfig; - -typedef struct MD8800DriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * size; - -} MD8800DriverConfig; - -typedef struct Mdm166aDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - ElektraEnumMdm166aClock clock; - - - kdb_unsigned_short_t contrast; - - - kdb_boolean_t dimming; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t offdimming; - - - kdb_boolean_t reboot; - -} Mdm166aDriverConfig; - -typedef struct Ms6931DriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * size; - -} Ms6931DriverConfig; - -typedef struct Mtc_s16209xDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - -} Mtc_s16209xDriverConfig; - -typedef struct MtxOrbDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_boolean_t hasadjustablebacklight; - - - const char * keymapA; - - - const char * keymapB; - - - const char * keymapC; - - - const char * keymapD; - - - const char * keymapE; - - - const char * keymapF; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * size; - - - kdb_unsigned_short_t speed; - - - ElektraEnumMtxorbType type; - -} MtxOrbDriverConfig; - -typedef struct Mx5000DriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - kdb_unsigned_long_t waitafterrefresh; - -} Mx5000DriverConfig; - -typedef struct NoritakeVFDDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_unsigned_long_t parity; - - - kdb_boolean_t reboot; - - - const char * size; - - - kdb_unsigned_long_t speed; - -} NoritakeVFDDriverConfig; - -typedef struct Olimex_MOD_LCD1x9DriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - -} Olimex_MOD_LCD1x9DriverConfig; - -typedef struct PicolcdDriverConfig -{ - - kdb_boolean_t backlight; - - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * file; - - - kdb_boolean_t key0light; - - - kdb_boolean_t key1light; - - - kdb_boolean_t key2light; - - - kdb_boolean_t key3light; - - - kdb_boolean_t key4light; - - - kdb_boolean_t key5light; - - - kdb_boolean_t keylights; - - - kdb_unsigned_short_t keyrepeatdelay; - - - kdb_unsigned_short_t keyrepeatinterval; - - - kdb_unsigned_short_t keytimeout; - - - kdb_boolean_t linklights; - - - kdb_unsigned_long_t lircflushthreshold; - - - const char * lirchost; - - - kdb_unsigned_short_t lircport; - - - kdb_boolean_t lirctimeUs; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - -} PicolcdDriverConfig; - -typedef struct PyramidDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - -} PyramidDriverConfig; - -typedef struct RawserialDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * size; - - - kdb_unsigned_long_t speed; - - - kdb_float_t updaterate; - -} RawserialDriverConfig; - -typedef struct Sed1330DriverConfig -{ - - kdb_unsigned_short_t brightness; - - - const char * cellsize; - - - ElektraEnumSed1330Connectiontype connectiontype; - - - kdb_unsigned_short_t contrast; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - const char * port; - - - kdb_boolean_t reboot; - - - ElektraEnumSed1330Type type; - -} Sed1330DriverConfig; - -typedef struct Sed1520DriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - kdb_unsigned_short_t delaymult; - - - const char * file; - - - kdb_boolean_t haveinverter; - - - kdb_unsigned_short_t interfacetype; - - - kdb_boolean_t invertedmapping; - - - kdb_unsigned_short_t offbrightness; - - - const char * port; - - - kdb_boolean_t reboot; - - - kdb_boolean_t usehardreset; - -} Sed1520DriverConfig; - -typedef struct SerialPOSDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - const char * cellsize; - - - kdb_unsigned_short_t contrast; - - - kdb_unsigned_long_t customChars; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * size; - - - kdb_unsigned_short_t speed; - - - ElektraEnumSerialposType type; - -} SerialPOSDriverConfig; - -typedef struct SerialVFDDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - kdb_unsigned_long_t custom_characters; - - - const char * device; - - - const char * file; - - - kdb_boolean_t iso88591; - - - kdb_unsigned_short_t offbrightness; - - - const char * port; - - - kdb_unsigned_short_t portwait; - - - kdb_boolean_t reboot; - - - const char * size; - - - kdb_unsigned_short_t speed; - - - kdb_unsigned_short_t type; - - - kdb_boolean_t useParallel; - -} SerialVFDDriverConfig; - -typedef struct SliDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - kdb_unsigned_short_t speed; - -} SliDriverConfig; - -typedef struct Stv5730DriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - const char * port; - - - kdb_boolean_t reboot; - -} Stv5730DriverConfig; - -typedef struct SureElecDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - kdb_unsigned_short_t edition; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * size; - -} SureElecDriverConfig; - -typedef struct SvgaDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * file; - - - const char * mode; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * size; - -} SvgaDriverConfig; - -typedef struct T6963DriverConfig -{ - - kdb_boolean_t bidirectional; - - - kdb_unsigned_short_t brightness; - - - kdb_boolean_t cleargraphic; - - - kdb_unsigned_short_t contrast; - - - kdb_boolean_t delaybus; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - const char * port; - - - kdb_boolean_t reboot; - - - const char * size; - -} T6963DriverConfig; - -typedef struct TextDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * size; - -} TextDriverConfig; - -typedef struct TyanDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * size; - - - kdb_unsigned_short_t speed; - -} TyanDriverConfig; - -typedef struct Ula200DriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * file; - - - const char * keymapA; - - - const char * keymapB; - - - const char * keymapC; - - - const char * keymapD; - - - const char * keymapE; - - - const char * keymapF; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * size; - -} Ula200DriverConfig; - -typedef struct Vlsys_m428DriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - -} Vlsys_m428DriverConfig; - -typedef struct XosdDriverConfig -{ - - const char * Font; - - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - const char * offset; - - - kdb_boolean_t reboot; - - - const char * size; - -} XosdDriverConfig; - -typedef struct Yard2LCDDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * size; - -} Yard2LCDDriverConfig; - - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (BayradDriverConfig, StructBayradDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (BayradDriverConfig, StructBayradDriverConfig); -ELEKTRA_SET_SIGNATURE (const BayradDriverConfig *, StructBayradDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const BayradDriverConfig *, StructBayradDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (CFontzDriverConfig, StructCFontzDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (CFontzDriverConfig, StructCFontzDriverConfig); -ELEKTRA_SET_SIGNATURE (const CFontzDriverConfig *, StructCFontzDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const CFontzDriverConfig *, StructCFontzDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (CFontzPacketDriverConfig, StructCFontzPacketDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (CFontzPacketDriverConfig, StructCFontzPacketDriverConfig); -ELEKTRA_SET_SIGNATURE (const CFontzPacketDriverConfig *, StructCFontzPacketDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const CFontzPacketDriverConfig *, StructCFontzPacketDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (CursesDriverConfig, StructCursesDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (CursesDriverConfig, StructCursesDriverConfig); -ELEKTRA_SET_SIGNATURE (const CursesDriverConfig *, StructCursesDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const CursesDriverConfig *, StructCursesDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (CwLnxDriverConfig, StructCwLnxDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (CwLnxDriverConfig, StructCwLnxDriverConfig); -ELEKTRA_SET_SIGNATURE (const CwLnxDriverConfig *, StructCwLnxDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const CwLnxDriverConfig *, StructCwLnxDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Ea65DriverConfig, StructEa65DriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Ea65DriverConfig, StructEa65DriverConfig); -ELEKTRA_SET_SIGNATURE (const Ea65DriverConfig *, StructEa65DriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Ea65DriverConfig *, StructEa65DriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (EyeboxOneDriverConfig, StructEyeboxOneDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (EyeboxOneDriverConfig, StructEyeboxOneDriverConfig); -ELEKTRA_SET_SIGNATURE (const EyeboxOneDriverConfig *, StructEyeboxOneDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const EyeboxOneDriverConfig *, StructEyeboxOneDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (FutabaDriverConfig, StructFutabaDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (FutabaDriverConfig, StructFutabaDriverConfig); -ELEKTRA_SET_SIGNATURE (const FutabaDriverConfig *, StructFutabaDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const FutabaDriverConfig *, StructFutabaDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (G15DriverConfig, StructG15DriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (G15DriverConfig, StructG15DriverConfig); -ELEKTRA_SET_SIGNATURE (const G15DriverConfig *, StructG15DriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const G15DriverConfig *, StructG15DriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (GlcdDriverConfig, StructGlcdDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (GlcdDriverConfig, StructGlcdDriverConfig); -ELEKTRA_SET_SIGNATURE (const GlcdDriverConfig *, StructGlcdDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const GlcdDriverConfig *, StructGlcdDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (GlcdlibDriverConfig, StructGlcdlibDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (GlcdlibDriverConfig, StructGlcdlibDriverConfig); -ELEKTRA_SET_SIGNATURE (const GlcdlibDriverConfig *, StructGlcdlibDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const GlcdlibDriverConfig *, StructGlcdlibDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (GlkDriverConfig, StructGlkDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (GlkDriverConfig, StructGlkDriverConfig); -ELEKTRA_SET_SIGNATURE (const GlkDriverConfig *, StructGlkDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const GlkDriverConfig *, StructGlkDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Hd44780DriverConfig, StructHd44780DriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Hd44780DriverConfig, StructHd44780DriverConfig); -ELEKTRA_SET_SIGNATURE (const Hd44780DriverConfig *, StructHd44780DriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Hd44780DriverConfig *, StructHd44780DriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Icp_a106DriverConfig, StructIcp_a106DriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Icp_a106DriverConfig, StructIcp_a106DriverConfig); -ELEKTRA_SET_SIGNATURE (const Icp_a106DriverConfig *, StructIcp_a106DriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Icp_a106DriverConfig *, StructIcp_a106DriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (ImonDriverConfig, StructImonDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (ImonDriverConfig, StructImonDriverConfig); -ELEKTRA_SET_SIGNATURE (const ImonDriverConfig *, StructImonDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const ImonDriverConfig *, StructImonDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (ImonlcdDriverConfig, StructImonlcdDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (ImonlcdDriverConfig, StructImonlcdDriverConfig); -ELEKTRA_SET_SIGNATURE (const ImonlcdDriverConfig *, StructImonlcdDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const ImonlcdDriverConfig *, StructImonlcdDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (IOWarriorDriverConfig, StructIOWarriorDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (IOWarriorDriverConfig, StructIOWarriorDriverConfig); -ELEKTRA_SET_SIGNATURE (const IOWarriorDriverConfig *, StructIOWarriorDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const IOWarriorDriverConfig *, StructIOWarriorDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (IrManDriverConfig, StructIrManDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (IrManDriverConfig, StructIrManDriverConfig); -ELEKTRA_SET_SIGNATURE (const IrManDriverConfig *, StructIrManDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const IrManDriverConfig *, StructIrManDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (IrtransDriverConfig, StructIrtransDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (IrtransDriverConfig, StructIrtransDriverConfig); -ELEKTRA_SET_SIGNATURE (const IrtransDriverConfig *, StructIrtransDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const IrtransDriverConfig *, StructIrtransDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (JoyDriverConfig, StructJoyDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (JoyDriverConfig, StructJoyDriverConfig); -ELEKTRA_SET_SIGNATURE (const JoyDriverConfig *, StructJoyDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const JoyDriverConfig *, StructJoyDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Lb216DriverConfig, StructLb216DriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Lb216DriverConfig, StructLb216DriverConfig); -ELEKTRA_SET_SIGNATURE (const Lb216DriverConfig *, StructLb216DriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Lb216DriverConfig *, StructLb216DriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Lcdm001DriverConfig, StructLcdm001DriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Lcdm001DriverConfig, StructLcdm001DriverConfig); -ELEKTRA_SET_SIGNATURE (const Lcdm001DriverConfig *, StructLcdm001DriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Lcdm001DriverConfig *, StructLcdm001DriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (LctermDriverConfig, StructLctermDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (LctermDriverConfig, StructLctermDriverConfig); -ELEKTRA_SET_SIGNATURE (const LctermDriverConfig *, StructLctermDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const LctermDriverConfig *, StructLctermDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Linux_inputDriverConfig, StructLinux_inputDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Linux_inputDriverConfig, StructLinux_inputDriverConfig); -ELEKTRA_SET_SIGNATURE (const Linux_inputDriverConfig *, StructLinux_inputDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Linux_inputDriverConfig *, StructLinux_inputDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (LircDriverConfig, StructLircDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (LircDriverConfig, StructLircDriverConfig); -ELEKTRA_SET_SIGNATURE (const LircDriverConfig *, StructLircDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const LircDriverConfig *, StructLircDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (LisDriverConfig, StructLisDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (LisDriverConfig, StructLisDriverConfig); -ELEKTRA_SET_SIGNATURE (const LisDriverConfig *, StructLisDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const LisDriverConfig *, StructLisDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (MD8800DriverConfig, StructMD8800DriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (MD8800DriverConfig, StructMD8800DriverConfig); -ELEKTRA_SET_SIGNATURE (const MD8800DriverConfig *, StructMD8800DriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const MD8800DriverConfig *, StructMD8800DriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Mdm166aDriverConfig, StructMdm166aDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Mdm166aDriverConfig, StructMdm166aDriverConfig); -ELEKTRA_SET_SIGNATURE (const Mdm166aDriverConfig *, StructMdm166aDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Mdm166aDriverConfig *, StructMdm166aDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Ms6931DriverConfig, StructMs6931DriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Ms6931DriverConfig, StructMs6931DriverConfig); -ELEKTRA_SET_SIGNATURE (const Ms6931DriverConfig *, StructMs6931DriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Ms6931DriverConfig *, StructMs6931DriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Mtc_s16209xDriverConfig, StructMtc_s16209xDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Mtc_s16209xDriverConfig, StructMtc_s16209xDriverConfig); -ELEKTRA_SET_SIGNATURE (const Mtc_s16209xDriverConfig *, StructMtc_s16209xDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Mtc_s16209xDriverConfig *, StructMtc_s16209xDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (MtxOrbDriverConfig, StructMtxOrbDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (MtxOrbDriverConfig, StructMtxOrbDriverConfig); -ELEKTRA_SET_SIGNATURE (const MtxOrbDriverConfig *, StructMtxOrbDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const MtxOrbDriverConfig *, StructMtxOrbDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Mx5000DriverConfig, StructMx5000DriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Mx5000DriverConfig, StructMx5000DriverConfig); -ELEKTRA_SET_SIGNATURE (const Mx5000DriverConfig *, StructMx5000DriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Mx5000DriverConfig *, StructMx5000DriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (NoritakeVFDDriverConfig, StructNoritakeVFDDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (NoritakeVFDDriverConfig, StructNoritakeVFDDriverConfig); -ELEKTRA_SET_SIGNATURE (const NoritakeVFDDriverConfig *, StructNoritakeVFDDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const NoritakeVFDDriverConfig *, StructNoritakeVFDDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Olimex_MOD_LCD1x9DriverConfig, StructOlimex_MOD_LCD1x9DriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Olimex_MOD_LCD1x9DriverConfig, StructOlimex_MOD_LCD1x9DriverConfig); -ELEKTRA_SET_SIGNATURE (const Olimex_MOD_LCD1x9DriverConfig *, StructOlimex_MOD_LCD1x9DriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Olimex_MOD_LCD1x9DriverConfig *, StructOlimex_MOD_LCD1x9DriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (PicolcdDriverConfig, StructPicolcdDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (PicolcdDriverConfig, StructPicolcdDriverConfig); -ELEKTRA_SET_SIGNATURE (const PicolcdDriverConfig *, StructPicolcdDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const PicolcdDriverConfig *, StructPicolcdDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (PyramidDriverConfig, StructPyramidDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (PyramidDriverConfig, StructPyramidDriverConfig); -ELEKTRA_SET_SIGNATURE (const PyramidDriverConfig *, StructPyramidDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const PyramidDriverConfig *, StructPyramidDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (RawserialDriverConfig, StructRawserialDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (RawserialDriverConfig, StructRawserialDriverConfig); -ELEKTRA_SET_SIGNATURE (const RawserialDriverConfig *, StructRawserialDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const RawserialDriverConfig *, StructRawserialDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Sed1330DriverConfig, StructSed1330DriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Sed1330DriverConfig, StructSed1330DriverConfig); -ELEKTRA_SET_SIGNATURE (const Sed1330DriverConfig *, StructSed1330DriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Sed1330DriverConfig *, StructSed1330DriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Sed1520DriverConfig, StructSed1520DriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Sed1520DriverConfig, StructSed1520DriverConfig); -ELEKTRA_SET_SIGNATURE (const Sed1520DriverConfig *, StructSed1520DriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Sed1520DriverConfig *, StructSed1520DriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (SerialPOSDriverConfig, StructSerialPOSDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SerialPOSDriverConfig, StructSerialPOSDriverConfig); -ELEKTRA_SET_SIGNATURE (const SerialPOSDriverConfig *, StructSerialPOSDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SerialPOSDriverConfig *, StructSerialPOSDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (SerialVFDDriverConfig, StructSerialVFDDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SerialVFDDriverConfig, StructSerialVFDDriverConfig); -ELEKTRA_SET_SIGNATURE (const SerialVFDDriverConfig *, StructSerialVFDDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SerialVFDDriverConfig *, StructSerialVFDDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (SliDriverConfig, StructSliDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SliDriverConfig, StructSliDriverConfig); -ELEKTRA_SET_SIGNATURE (const SliDriverConfig *, StructSliDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SliDriverConfig *, StructSliDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Stv5730DriverConfig, StructStv5730DriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Stv5730DriverConfig, StructStv5730DriverConfig); -ELEKTRA_SET_SIGNATURE (const Stv5730DriverConfig *, StructStv5730DriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Stv5730DriverConfig *, StructStv5730DriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (SureElecDriverConfig, StructSureElecDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SureElecDriverConfig, StructSureElecDriverConfig); -ELEKTRA_SET_SIGNATURE (const SureElecDriverConfig *, StructSureElecDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SureElecDriverConfig *, StructSureElecDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (SvgaDriverConfig, StructSvgaDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SvgaDriverConfig, StructSvgaDriverConfig); -ELEKTRA_SET_SIGNATURE (const SvgaDriverConfig *, StructSvgaDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SvgaDriverConfig *, StructSvgaDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (T6963DriverConfig, StructT6963DriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (T6963DriverConfig, StructT6963DriverConfig); -ELEKTRA_SET_SIGNATURE (const T6963DriverConfig *, StructT6963DriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const T6963DriverConfig *, StructT6963DriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (TextDriverConfig, StructTextDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (TextDriverConfig, StructTextDriverConfig); -ELEKTRA_SET_SIGNATURE (const TextDriverConfig *, StructTextDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const TextDriverConfig *, StructTextDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (TyanDriverConfig, StructTyanDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (TyanDriverConfig, StructTyanDriverConfig); -ELEKTRA_SET_SIGNATURE (const TyanDriverConfig *, StructTyanDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const TyanDriverConfig *, StructTyanDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Ula200DriverConfig, StructUla200DriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Ula200DriverConfig, StructUla200DriverConfig); -ELEKTRA_SET_SIGNATURE (const Ula200DriverConfig *, StructUla200DriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Ula200DriverConfig *, StructUla200DriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Vlsys_m428DriverConfig, StructVlsys_m428DriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Vlsys_m428DriverConfig, StructVlsys_m428DriverConfig); -ELEKTRA_SET_SIGNATURE (const Vlsys_m428DriverConfig *, StructVlsys_m428DriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Vlsys_m428DriverConfig *, StructVlsys_m428DriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (XosdDriverConfig, StructXosdDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (XosdDriverConfig, StructXosdDriverConfig); -ELEKTRA_SET_SIGNATURE (const XosdDriverConfig *, StructXosdDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const XosdDriverConfig *, StructXosdDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Yard2LCDDriverConfig, StructYard2LCDDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Yard2LCDDriverConfig, StructYard2LCDDriverConfig); -ELEKTRA_SET_SIGNATURE (const Yard2LCDDriverConfig *, StructYard2LCDDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Yard2LCDDriverConfig *, StructYard2LCDDriverConfig); - - - -// clang-format off - -// clang-format on - -// clang-format off - -/** -* Tag name for 'bayrad/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_BAYRAD Bayrad - -/** -* Tag name for 'bayrad/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_BAYRAD_BRIGHTNESS BayradBrightness - -/** -* Tag name for 'bayrad/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_BAYRAD_CONTRAST BayradContrast - -/** -* Tag name for 'bayrad/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_BAYRAD_DEVICE BayradDevice - -/** -* Tag name for 'bayrad/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_BAYRAD_FILE BayradFile - -/** -* Tag name for 'bayrad/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_BAYRAD_OFFBRIGHTNESS BayradOffbrightness - -/** -* Tag name for 'bayrad/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_BAYRAD_REBOOT BayradReboot - -/** -* Tag name for 'bayrad/#/speed' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_BAYRAD_SPEED BayradSpeed - -/** -* Tag name for 'cfontz/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZ Cfontz - -/** -* Tag name for 'cfontz/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZ_BRIGHTNESS CfontzBrightness - -/** -* Tag name for 'cfontz/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZ_CONTRAST CfontzContrast - -/** -* Tag name for 'cfontz/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZ_DEVICE CfontzDevice - -/** -* Tag name for 'cfontz/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZ_FILE CfontzFile - -/** -* Tag name for 'cfontz/#/newfirmware' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZ_NEWFIRMWARE CfontzNewfirmware - -/** -* Tag name for 'cfontz/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZ_OFFBRIGHTNESS CfontzOffbrightness - -/** -* Tag name for 'cfontz/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZ_REBOOT CfontzReboot - -/** -* Tag name for 'cfontz/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZ_SIZE CfontzSize - -/** -* Tag name for 'cfontz/#/speed' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZ_SPEED CfontzSpeed - -/** -* Tag name for 'cfontzpacket/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZPACKET Cfontzpacket - -/** -* Tag name for 'cfontzpacket/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZPACKET_BRIGHTNESS CfontzpacketBrightness - -/** -* Tag name for 'cfontzpacket/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZPACKET_CONTRAST CfontzpacketContrast - -/** -* Tag name for 'cfontzpacket/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZPACKET_DEVICE CfontzpacketDevice - -/** -* Tag name for 'cfontzpacket/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZPACKET_FILE CfontzpacketFile - -/** -* Tag name for 'cfontzpacket/#/model' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZPACKET_MODEL CfontzpacketModel - -/** -* Tag name for 'cfontzpacket/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZPACKET_OFFBRIGHTNESS CfontzpacketOffbrightness - -/** -* Tag name for 'cfontzpacket/#/oldfirmware' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZPACKET_OLDFIRMWARE CfontzpacketOldfirmware - -/** -* Tag name for 'cfontzpacket/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZPACKET_REBOOT CfontzpacketReboot - -/** -* Tag name for 'cfontzpacket/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZPACKET_SIZE CfontzpacketSize - -/** -* Tag name for 'cfontzpacket/#/speed' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZPACKET_SPEED CfontzpacketSpeed - -/** -* Tag name for 'cfontzpacket/#/usb' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZPACKET_USB CfontzpacketUsb - -/** -* Tag name for 'curses/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CURSES Curses - -/** -* Tag name for 'curses/#/background' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CURSES_BACKGROUND CursesBackground - -/** -* Tag name for 'curses/#/backlight' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CURSES_BACKLIGHT CursesBacklight - -/** -* Tag name for 'curses/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CURSES_BRIGHTNESS CursesBrightness - -/** -* Tag name for 'curses/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CURSES_CONTRAST CursesContrast - -/** -* Tag name for 'curses/#/drawborder' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CURSES_DRAWBORDER CursesDrawborder - -/** -* Tag name for 'curses/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CURSES_FILE CursesFile - -/** -* Tag name for 'curses/#/foreground' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CURSES_FOREGROUND CursesForeground - -/** -* Tag name for 'curses/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CURSES_OFFBRIGHTNESS CursesOffbrightness - -/** -* Tag name for 'curses/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CURSES_REBOOT CursesReboot - -/** -* Tag name for 'curses/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CURSES_SIZE CursesSize - -/** -* Tag name for 'curses/#/topleftx' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CURSES_TOPLEFTX CursesTopleftx - -/** -* Tag name for 'curses/#/toplefty' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CURSES_TOPLEFTY CursesToplefty - -/** -* Tag name for 'curses/#/useacs' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CURSES_USEACS CursesUseacs - -/** -* Tag name for 'cwlnx/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CWLNX Cwlnx - -/** -* Tag name for 'cwlnx/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CWLNX_BRIGHTNESS CwlnxBrightness - -/** -* Tag name for 'cwlnx/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CWLNX_CONTRAST CwlnxContrast - -/** -* Tag name for 'cwlnx/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CWLNX_DEVICE CwlnxDevice - -/** -* Tag name for 'cwlnx/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CWLNX_FILE CwlnxFile - -/** -* Tag name for 'cwlnx/#/keymap_a' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CWLNX_KEYMAP_A CwlnxKeymapA - -/** -* Tag name for 'cwlnx/#/keymap_b' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CWLNX_KEYMAP_B CwlnxKeymapB - -/** -* Tag name for 'cwlnx/#/keymap_c' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CWLNX_KEYMAP_C CwlnxKeymapC - -/** -* Tag name for 'cwlnx/#/keymap_d' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CWLNX_KEYMAP_D CwlnxKeymapD - -/** -* Tag name for 'cwlnx/#/keymap_e' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CWLNX_KEYMAP_E CwlnxKeymapE - -/** -* Tag name for 'cwlnx/#/keymap_f' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CWLNX_KEYMAP_F CwlnxKeymapF - -/** -* Tag name for 'cwlnx/#/keypad' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CWLNX_KEYPAD CwlnxKeypad - -/** -* Tag name for 'cwlnx/#/keypad_test_mode' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CWLNX_KEYPAD_TEST_MODE CwlnxKeypadTestMode - -/** -* Tag name for 'cwlnx/#/model' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CWLNX_MODEL CwlnxModel - -/** -* Tag name for 'cwlnx/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CWLNX_OFFBRIGHTNESS CwlnxOffbrightness - -/** -* Tag name for 'cwlnx/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CWLNX_REBOOT CwlnxReboot - -/** -* Tag name for 'cwlnx/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CWLNX_SIZE CwlnxSize - -/** -* Tag name for 'cwlnx/#/speed' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CWLNX_SPEED CwlnxSpeed - -/** -* Tag name for 'ea65/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EA65 Ea65 - -/** -* Tag name for 'ea65/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EA65_BRIGHTNESS Ea65Brightness - -/** -* Tag name for 'ea65/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EA65_CONTRAST Ea65Contrast - -/** -* Tag name for 'ea65/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EA65_FILE Ea65File - -/** -* Tag name for 'ea65/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EA65_OFFBRIGHTNESS Ea65Offbrightness - -/** -* Tag name for 'ea65/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EA65_REBOOT Ea65Reboot - -/** -* Tag name for 'eyeboxone/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EYEBOXONE Eyeboxone - -/** -* Tag name for 'eyeboxone/#/backlight' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EYEBOXONE_BACKLIGHT EyeboxoneBacklight - -/** -* Tag name for 'eyeboxone/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EYEBOXONE_BRIGHTNESS EyeboxoneBrightness - -/** -* Tag name for 'eyeboxone/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EYEBOXONE_CONTRAST EyeboxoneContrast - -/** -* Tag name for 'eyeboxone/#/cursor' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EYEBOXONE_CURSOR EyeboxoneCursor - -/** -* Tag name for 'eyeboxone/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EYEBOXONE_DEVICE EyeboxoneDevice - -/** -* Tag name for 'eyeboxone/#/downkey' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EYEBOXONE_DOWNKEY EyeboxoneDownkey - -/** -* Tag name for 'eyeboxone/#/escapekey' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EYEBOXONE_ESCAPEKEY EyeboxoneEscapekey - -/** -* Tag name for 'eyeboxone/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EYEBOXONE_FILE EyeboxoneFile - -/** -* Tag name for 'eyeboxone/#/keypad_test_mode' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EYEBOXONE_KEYPAD_TEST_MODE EyeboxoneKeypadTestMode - -/** -* Tag name for 'eyeboxone/#/leftkey' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EYEBOXONE_LEFTKEY EyeboxoneLeftkey - -/** -* Tag name for 'eyeboxone/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EYEBOXONE_OFFBRIGHTNESS EyeboxoneOffbrightness - -/** -* Tag name for 'eyeboxone/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EYEBOXONE_REBOOT EyeboxoneReboot - -/** -* Tag name for 'eyeboxone/#/rightkey' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EYEBOXONE_RIGHTKEY EyeboxoneRightkey - -/** -* Tag name for 'eyeboxone/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EYEBOXONE_SIZE EyeboxoneSize - -/** -* Tag name for 'eyeboxone/#/speed' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EYEBOXONE_SPEED EyeboxoneSpeed - -/** -* Tag name for 'eyeboxone/#/upkey' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EYEBOXONE_UPKEY EyeboxoneUpkey - -/** -* Tag name for 'futaba/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_FUTABA Futaba - -/** -* Tag name for 'futaba/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_FUTABA_FILE FutabaFile - -/** -* Tag name for 'g15/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_G15 G15 - -/** -* Tag name for 'g15/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_G15_BRIGHTNESS G15Brightness - -/** -* Tag name for 'g15/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_G15_CONTRAST G15Contrast - -/** -* Tag name for 'g15/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_G15_FILE G15File - -/** -* Tag name for 'g15/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_G15_OFFBRIGHTNESS G15Offbrightness - -/** -* Tag name for 'g15/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_G15_REBOOT G15Reboot - -/** -* Tag name for 'g15/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_G15_SIZE G15Size - -/** -* Tag name for 'glcd/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD Glcd - -/** -* Tag name for 'glcd/#/bidirectional' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_BIDIRECTIONAL GlcdBidirectional - -/** -* Tag name for 'glcd/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_BRIGHTNESS GlcdBrightness - -/** -* Tag name for 'glcd/#/cellsize' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_CELLSIZE GlcdCellsize - -/** -* Tag name for 'glcd/#/connectiontype' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_CONNECTIONTYPE GlcdConnectiontype - -/** -* Tag name for 'glcd/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_CONTRAST GlcdContrast - -/** -* Tag name for 'glcd/#/delaybus' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_DELAYBUS GlcdDelaybus - -/** -* Tag name for 'glcd/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_FILE GlcdFile - -/** -* Tag name for 'glcd/#/fonthasicons' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_FONTHASICONS GlcdFonthasicons - -/** -* Tag name for 'glcd/#/keymap_a' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_KEYMAP_A GlcdKeymapA - -/** -* Tag name for 'glcd/#/keymap_b' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_KEYMAP_B GlcdKeymapB - -/** -* Tag name for 'glcd/#/keymap_c' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_KEYMAP_C GlcdKeymapC - -/** -* Tag name for 'glcd/#/keymap_d' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_KEYMAP_D GlcdKeymapD - -/** -* Tag name for 'glcd/#/keymap_e' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_KEYMAP_E GlcdKeymapE - -/** -* Tag name for 'glcd/#/keymap_f' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_KEYMAP_F GlcdKeymapF - -/** -* Tag name for 'glcd/#/keyrepeatdelay' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_KEYREPEATDELAY GlcdKeyrepeatdelay - -/** -* Tag name for 'glcd/#/keyrepeatinterval' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_KEYREPEATINTERVAL GlcdKeyrepeatinterval - -/** -* Tag name for 'glcd/#/normal_font' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_NORMAL_FONT GlcdNormalFont - -/** -* Tag name for 'glcd/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_OFFBRIGHTNESS GlcdOffbrightness - -/** -* Tag name for 'glcd/#/picolcdgfx_inverted' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_PICOLCDGFX_INVERTED GlcdPicolcdgfxInverted - -/** -* Tag name for 'glcd/#/picolcdgfx_keytimeout' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_PICOLCDGFX_KEYTIMEOUT GlcdPicolcdgfxKeytimeout - -/** -* Tag name for 'glcd/#/port' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_PORT GlcdPort - -/** -* Tag name for 'glcd/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_REBOOT GlcdReboot - -/** -* Tag name for 'glcd/#/serdisp_device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_SERDISP_DEVICE GlcdSerdispDevice - -/** -* Tag name for 'glcd/#/serdisp_name' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_SERDISP_NAME GlcdSerdispName - -/** -* Tag name for 'glcd/#/serdisp_options' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_SERDISP_OPTIONS GlcdSerdispOptions - -/** -* Tag name for 'glcd/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_SIZE GlcdSize - -/** -* Tag name for 'glcd/#/useft2' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_USEFT2 GlcdUseft2 - -/** -* Tag name for 'glcd/#/x11_backlightcolor' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_X11_BACKLIGHTCOLOR GlcdX11Backlightcolor - -/** -* Tag name for 'glcd/#/x11_border' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_X11_BORDER GlcdX11Border - -/** -* Tag name for 'glcd/#/x11_inverted' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_X11_INVERTED GlcdX11Inverted - -/** -* Tag name for 'glcd/#/x11_pixelcolor' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_X11_PIXELCOLOR GlcdX11Pixelcolor - -/** -* Tag name for 'glcd/#/x11_pixelsize' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_X11_PIXELSIZE GlcdX11Pixelsize - -/** -* Tag name for 'glcdlib/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB Glcdlib - -/** -* Tag name for 'glcdlib/#/CharEncoding' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_CHARENCODING GlcdlibCharEncoding - -/** -* Tag name for 'glcdlib/#/backlight' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_BACKLIGHT GlcdlibBacklight - -/** -* Tag name for 'glcdlib/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_BRIGHTNESS GlcdlibBrightness - -/** -* Tag name for 'glcdlib/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_CONTRAST GlcdlibContrast - -/** -* Tag name for 'glcdlib/#/driver' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_DRIVER GlcdlibDriver - -/** -* Tag name for 'glcdlib/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_FILE GlcdlibFile - -/** -* Tag name for 'glcdlib/#/fontfile' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_FONTFILE GlcdlibFontfile - -/** -* Tag name for 'glcdlib/#/invert' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_INVERT GlcdlibInvert - -/** -* Tag name for 'glcdlib/#/minfontfacesize' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_MINFONTFACESIZE GlcdlibMinfontfacesize - -/** -* Tag name for 'glcdlib/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_OFFBRIGHTNESS GlcdlibOffbrightness - -/** -* Tag name for 'glcdlib/#/pixelshiftx' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_PIXELSHIFTX GlcdlibPixelshiftx - -/** -* Tag name for 'glcdlib/#/pixelshifty' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_PIXELSHIFTY GlcdlibPixelshifty - -/** -* Tag name for 'glcdlib/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_REBOOT GlcdlibReboot - -/** -* Tag name for 'glcdlib/#/showbigborder' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_SHOWBIGBORDER GlcdlibShowbigborder - -/** -* Tag name for 'glcdlib/#/showdebugframe' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_SHOWDEBUGFRAME GlcdlibShowdebugframe - -/** -* Tag name for 'glcdlib/#/showthinborder' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_SHOWTHINBORDER GlcdlibShowthinborder - -/** -* Tag name for 'glcdlib/#/textresolution' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_TEXTRESOLUTION GlcdlibTextresolution - -/** -* Tag name for 'glcdlib/#/upsidedown' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_UPSIDEDOWN GlcdlibUpsidedown - -/** -* Tag name for 'glcdlib/#/useft2' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_USEFT2 GlcdlibUseft2 - -/** -* Tag name for 'glk/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLK Glk - -/** -* Tag name for 'glk/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLK_BRIGHTNESS GlkBrightness - -/** -* Tag name for 'glk/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLK_CONTRAST GlkContrast - -/** -* Tag name for 'glk/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLK_DEVICE GlkDevice - -/** -* Tag name for 'glk/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLK_FILE GlkFile - -/** -* Tag name for 'glk/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLK_OFFBRIGHTNESS GlkOffbrightness - -/** -* Tag name for 'glk/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLK_REBOOT GlkReboot - -/** -* Tag name for 'glk/#/speed' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLK_SPEED GlkSpeed - -/** -* Tag name for 'hd44780/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780 Hd44780 - -/** -* Tag name for 'hd44780/#/backlight' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_BACKLIGHT Hd44780Backlight - -/** -* Tag name for 'hd44780/#/backlightcmdoff' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_BACKLIGHTCMDOFF Hd44780Backlightcmdoff - -/** -* Tag name for 'hd44780/#/backlightcmdon' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_BACKLIGHTCMDON Hd44780Backlightcmdon - -/** -* Tag name for 'hd44780/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_BRIGHTNESS Hd44780Brightness - -/** -* Tag name for 'hd44780/#/charmap' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_CHARMAP Hd44780Charmap - -/** -* Tag name for 'hd44780/#/connectiontype' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_CONNECTIONTYPE Hd44780Connectiontype - -/** -* Tag name for 'hd44780/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_CONTRAST Hd44780Contrast - -/** -* Tag name for 'hd44780/#/delaybus' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_DELAYBUS Hd44780Delaybus - -/** -* Tag name for 'hd44780/#/delaymult' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_DELAYMULT Hd44780Delaymult - -/** -* Tag name for 'hd44780/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_DEVICE Hd44780Device - -/** -* Tag name for 'hd44780/#/extendedmode' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_EXTENDEDMODE Hd44780Extendedmode - -/** -* Tag name for 'hd44780/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_FILE Hd44780File - -/** -* Tag name for 'hd44780/#/fontbank' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_FONTBANK Hd44780Fontbank - -/** -* Tag name for 'hd44780/#/keepalivedisplay' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_KEEPALIVEDISPLAY Hd44780Keepalivedisplay - -/** -* Tag name for 'hd44780/#/keymatrix_4_1' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_KEYMATRIX_4_1 Hd44780Keymatrix41 - -/** -* Tag name for 'hd44780/#/keymatrix_4_2' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_KEYMATRIX_4_2 Hd44780Keymatrix42 - -/** -* Tag name for 'hd44780/#/keymatrix_4_3' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_KEYMATRIX_4_3 Hd44780Keymatrix43 - -/** -* Tag name for 'hd44780/#/keymatrix_4_4' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_KEYMATRIX_4_4 Hd44780Keymatrix44 - -/** -* Tag name for 'hd44780/#/keypad' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_KEYPAD Hd44780Keypad - -/** -* Tag name for 'hd44780/#/lastline' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_LASTLINE Hd44780Lastline - -/** -* Tag name for 'hd44780/#/lineaddress' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_LINEADDRESS Hd44780Lineaddress - -/** -* Tag name for 'hd44780/#/model' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_MODEL Hd44780Model - -/** -* Tag name for 'hd44780/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_OFFBRIGHTNESS Hd44780Offbrightness - -/** -* Tag name for 'hd44780/#/outputport' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_OUTPUTPORT Hd44780Outputport - -/** -* Tag name for 'hd44780/#/port' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_PORT Hd44780Port - -/** -* Tag name for 'hd44780/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_REBOOT Hd44780Reboot - -/** -* Tag name for 'hd44780/#/refreshdisplay' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_REFRESHDISPLAY Hd44780Refreshdisplay - -/** -* Tag name for 'hd44780/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_SIZE Hd44780Size - -/** -* Tag name for 'hd44780/#/speed' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_SPEED Hd44780Speed - -/** -* Tag name for 'hd44780/#/vspan' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_VSPAN Hd44780Vspan - -/** -* Tag name for 'icp_a106/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ICP_A106 IcpA106 - -/** -* Tag name for 'icp_a106/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ICP_A106_BRIGHTNESS IcpA106Brightness - -/** -* Tag name for 'icp_a106/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ICP_A106_CONTRAST IcpA106Contrast - -/** -* Tag name for 'icp_a106/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ICP_A106_DEVICE IcpA106Device - -/** -* Tag name for 'icp_a106/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ICP_A106_FILE IcpA106File - -/** -* Tag name for 'icp_a106/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ICP_A106_OFFBRIGHTNESS IcpA106Offbrightness - -/** -* Tag name for 'icp_a106/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ICP_A106_REBOOT IcpA106Reboot - -/** -* Tag name for 'icp_a106/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ICP_A106_SIZE IcpA106Size - -/** -* Tag name for 'imon/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMON Imon - -/** -* Tag name for 'imon/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMON_BRIGHTNESS ImonBrightness - -/** -* Tag name for 'imon/#/charmap' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMON_CHARMAP ImonCharmap - -/** -* Tag name for 'imon/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMON_CONTRAST ImonContrast - -/** -* Tag name for 'imon/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMON_DEVICE ImonDevice - -/** -* Tag name for 'imon/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMON_FILE ImonFile - -/** -* Tag name for 'imon/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMON_OFFBRIGHTNESS ImonOffbrightness - -/** -* Tag name for 'imon/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMON_REBOOT ImonReboot - -/** -* Tag name for 'imon/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMON_SIZE ImonSize - -/** -* Tag name for 'imonlcd/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMONLCD Imonlcd - -/** -* Tag name for 'imonlcd/#/backlight' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMONLCD_BACKLIGHT ImonlcdBacklight - -/** -* Tag name for 'imonlcd/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMONLCD_BRIGHTNESS ImonlcdBrightness - -/** -* Tag name for 'imonlcd/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMONLCD_CONTRAST ImonlcdContrast - -/** -* Tag name for 'imonlcd/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMONLCD_DEVICE ImonlcdDevice - -/** -* Tag name for 'imonlcd/#/discmode' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMONLCD_DISCMODE ImonlcdDiscmode - -/** -* Tag name for 'imonlcd/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMONLCD_FILE ImonlcdFile - -/** -* Tag name for 'imonlcd/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMONLCD_OFFBRIGHTNESS ImonlcdOffbrightness - -/** -* Tag name for 'imonlcd/#/onexit' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMONLCD_ONEXIT ImonlcdOnexit - -/** -* Tag name for 'imonlcd/#/protocol' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMONLCD_PROTOCOL ImonlcdProtocol - -/** -* Tag name for 'imonlcd/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMONLCD_REBOOT ImonlcdReboot - -/** -* Tag name for 'imonlcd/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMONLCD_SIZE ImonlcdSize - -/** -* Tag name for 'iowarrior/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IOWARRIOR Iowarrior - -/** -* Tag name for 'iowarrior/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IOWARRIOR_BRIGHTNESS IowarriorBrightness - -/** -* Tag name for 'iowarrior/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IOWARRIOR_CONTRAST IowarriorContrast - -/** -* Tag name for 'iowarrior/#/extendedmode' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IOWARRIOR_EXTENDEDMODE IowarriorExtendedmode - -/** -* Tag name for 'iowarrior/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IOWARRIOR_FILE IowarriorFile - -/** -* Tag name for 'iowarrior/#/lastline' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IOWARRIOR_LASTLINE IowarriorLastline - -/** -* Tag name for 'iowarrior/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IOWARRIOR_OFFBRIGHTNESS IowarriorOffbrightness - -/** -* Tag name for 'iowarrior/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IOWARRIOR_REBOOT IowarriorReboot - -/** -* Tag name for 'iowarrior/#/serialnumber' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IOWARRIOR_SERIALNUMBER IowarriorSerialnumber - -/** -* Tag name for 'iowarrior/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IOWARRIOR_SIZE IowarriorSize - -/** -* Tag name for 'irman/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IRMAN Irman - -/** -* Tag name for 'irman/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IRMAN_BRIGHTNESS IrmanBrightness - -/** -* Tag name for 'irman/#/config' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IRMAN_CONFIG IrmanConfig - -/** -* Tag name for 'irman/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IRMAN_CONTRAST IrmanContrast - -/** -* Tag name for 'irman/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IRMAN_DEVICE IrmanDevice - -/** -* Tag name for 'irman/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IRMAN_FILE IrmanFile - -/** -* Tag name for 'irman/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IRMAN_OFFBRIGHTNESS IrmanOffbrightness - -/** -* Tag name for 'irman/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IRMAN_REBOOT IrmanReboot - -/** -* Tag name for 'irtrans/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IRTRANS Irtrans - -/** -* Tag name for 'irtrans/#/backlight' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IRTRANS_BACKLIGHT IrtransBacklight - -/** -* Tag name for 'irtrans/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IRTRANS_BRIGHTNESS IrtransBrightness - -/** -* Tag name for 'irtrans/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IRTRANS_CONTRAST IrtransContrast - -/** -* Tag name for 'irtrans/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IRTRANS_FILE IrtransFile - -/** -* Tag name for 'irtrans/#/hostname' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IRTRANS_HOSTNAME IrtransHostname - -/** -* Tag name for 'irtrans/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IRTRANS_OFFBRIGHTNESS IrtransOffbrightness - -/** -* Tag name for 'irtrans/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IRTRANS_REBOOT IrtransReboot - -/** -* Tag name for 'irtrans/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IRTRANS_SIZE IrtransSize - -/** -* Tag name for 'joy/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_JOY Joy - -/** -* Tag name for 'joy/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_JOY_BRIGHTNESS JoyBrightness - -/** -* Tag name for 'joy/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_JOY_CONTRAST JoyContrast - -/** -* Tag name for 'joy/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_JOY_DEVICE JoyDevice - -/** -* Tag name for 'joy/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_JOY_FILE JoyFile - -/** -* Tag name for 'joy/#/map_axis1neg' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_JOY_MAP_AXIS1NEG JoyMapAxis1neg - -/** -* Tag name for 'joy/#/map_axis1pos' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_JOY_MAP_AXIS1POS JoyMapAxis1pos - -/** -* Tag name for 'joy/#/map_axis2neg' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_JOY_MAP_AXIS2NEG JoyMapAxis2neg - -/** -* Tag name for 'joy/#/map_axis2pos' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_JOY_MAP_AXIS2POS JoyMapAxis2pos - -/** -* Tag name for 'joy/#/map_button1' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_JOY_MAP_BUTTON1 JoyMapButton1 - -/** -* Tag name for 'joy/#/map_button2' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_JOY_MAP_BUTTON2 JoyMapButton2 - -/** -* Tag name for 'joy/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_JOY_OFFBRIGHTNESS JoyOffbrightness - -/** -* Tag name for 'joy/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_JOY_REBOOT JoyReboot - -/** -* Tag name for 'lb216/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LB216 Lb216 - -/** -* Tag name for 'lb216/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LB216_BRIGHTNESS Lb216Brightness - -/** -* Tag name for 'lb216/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LB216_CONTRAST Lb216Contrast - -/** -* Tag name for 'lb216/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LB216_DEVICE Lb216Device - -/** -* Tag name for 'lb216/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LB216_FILE Lb216File - -/** -* Tag name for 'lb216/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LB216_OFFBRIGHTNESS Lb216Offbrightness - -/** -* Tag name for 'lb216/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LB216_REBOOT Lb216Reboot - -/** -* Tag name for 'lb216/#/speed' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LB216_SPEED Lb216Speed - -/** -* Tag name for 'lcdm001/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LCDM001 Lcdm001 - -/** -* Tag name for 'lcdm001/#/backkey' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LCDM001_BACKKEY Lcdm001Backkey - -/** -* Tag name for 'lcdm001/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LCDM001_BRIGHTNESS Lcdm001Brightness - -/** -* Tag name for 'lcdm001/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LCDM001_CONTRAST Lcdm001Contrast - -/** -* Tag name for 'lcdm001/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LCDM001_DEVICE Lcdm001Device - -/** -* Tag name for 'lcdm001/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LCDM001_FILE Lcdm001File - -/** -* Tag name for 'lcdm001/#/forwardkey' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LCDM001_FORWARDKEY Lcdm001Forwardkey - -/** -* Tag name for 'lcdm001/#/mainmenukey' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LCDM001_MAINMENUKEY Lcdm001Mainmenukey - -/** -* Tag name for 'lcdm001/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LCDM001_OFFBRIGHTNESS Lcdm001Offbrightness - -/** -* Tag name for 'lcdm001/#/pausekey' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LCDM001_PAUSEKEY Lcdm001Pausekey - -/** -* Tag name for 'lcdm001/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LCDM001_REBOOT Lcdm001Reboot - -/** -* Tag name for 'lcterm/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LCTERM Lcterm - -/** -* Tag name for 'lcterm/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LCTERM_BRIGHTNESS LctermBrightness - -/** -* Tag name for 'lcterm/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LCTERM_CONTRAST LctermContrast - -/** -* Tag name for 'lcterm/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LCTERM_DEVICE LctermDevice - -/** -* Tag name for 'lcterm/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LCTERM_FILE LctermFile - -/** -* Tag name for 'lcterm/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LCTERM_OFFBRIGHTNESS LctermOffbrightness - -/** -* Tag name for 'lcterm/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LCTERM_REBOOT LctermReboot - -/** -* Tag name for 'lcterm/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LCTERM_SIZE LctermSize - -/** -* Tag name for 'linux_input/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LINUX_INPUT LinuxInput - -/** -* Tag name for 'linux_input/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LINUX_INPUT_BRIGHTNESS LinuxInputBrightness - -/** -* Tag name for 'linux_input/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LINUX_INPUT_CONTRAST LinuxInputContrast - -/** -* Tag name for 'linux_input/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LINUX_INPUT_DEVICE LinuxInputDevice - -/** -* Tag name for 'linux_input/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LINUX_INPUT_FILE LinuxInputFile - -/** -* Tag name for 'linux_input/#/key/_' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* - const char * name1: Replaces occurence no. 1 of _ in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LINUX_INPUT_KEY LinuxInputKey - -/** -* Tag name for 'linux_input/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LINUX_INPUT_OFFBRIGHTNESS LinuxInputOffbrightness - -/** -* Tag name for 'linux_input/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LINUX_INPUT_REBOOT LinuxInputReboot - -/** -* Tag name for 'lirc/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIRC Lirc - -/** -* Tag name for 'lirc/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIRC_BRIGHTNESS LircBrightness - -/** -* Tag name for 'lirc/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIRC_CONTRAST LircContrast - -/** -* Tag name for 'lirc/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIRC_FILE LircFile - -/** -* Tag name for 'lirc/#/lircrc' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIRC_LIRCRC LircLircrc - -/** -* Tag name for 'lirc/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIRC_OFFBRIGHTNESS LircOffbrightness - -/** -* Tag name for 'lirc/#/prog' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIRC_PROG LircProg - -/** -* Tag name for 'lirc/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIRC_REBOOT LircReboot - -/** -* Tag name for 'lis/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIS Lis - -/** -* Tag name for 'lis/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIS_BRIGHTNESS LisBrightness - -/** -* Tag name for 'lis/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIS_CONTRAST LisContrast - -/** -* Tag name for 'lis/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIS_FILE LisFile - -/** -* Tag name for 'lis/#/lastline' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIS_LASTLINE LisLastline - -/** -* Tag name for 'lis/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIS_OFFBRIGHTNESS LisOffbrightness - -/** -* Tag name for 'lis/#/productid' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIS_PRODUCTID LisProductid - -/** -* Tag name for 'lis/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIS_REBOOT LisReboot - -/** -* Tag name for 'lis/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIS_SIZE LisSize - -/** -* Tag name for 'lis/#/vendorid' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIS_VENDORID LisVendorid - -/** -* Tag name for 'md8800/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MD8800 Md8800 - -/** -* Tag name for 'md8800/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MD8800_BRIGHTNESS Md8800Brightness - -/** -* Tag name for 'md8800/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MD8800_CONTRAST Md8800Contrast - -/** -* Tag name for 'md8800/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MD8800_DEVICE Md8800Device - -/** -* Tag name for 'md8800/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MD8800_FILE Md8800File - -/** -* Tag name for 'md8800/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MD8800_OFFBRIGHTNESS Md8800Offbrightness - -/** -* Tag name for 'md8800/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MD8800_REBOOT Md8800Reboot - -/** -* Tag name for 'md8800/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MD8800_SIZE Md8800Size - -/** -* Tag name for 'mdm166a/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MDM166A Mdm166a - -/** -* Tag name for 'mdm166a/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MDM166A_BRIGHTNESS Mdm166aBrightness - -/** -* Tag name for 'mdm166a/#/clock' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MDM166A_CLOCK Mdm166aClock - -/** -* Tag name for 'mdm166a/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MDM166A_CONTRAST Mdm166aContrast - -/** -* Tag name for 'mdm166a/#/dimming' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MDM166A_DIMMING Mdm166aDimming - -/** -* Tag name for 'mdm166a/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MDM166A_FILE Mdm166aFile - -/** -* Tag name for 'mdm166a/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MDM166A_OFFBRIGHTNESS Mdm166aOffbrightness - -/** -* Tag name for 'mdm166a/#/offdimming' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MDM166A_OFFDIMMING Mdm166aOffdimming - -/** -* Tag name for 'mdm166a/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MDM166A_REBOOT Mdm166aReboot - -/** -* Tag name for 'menu/downkey' -* -*/// -#define ELEKTRA_TAG_MENU_DOWNKEY MenuDownkey - -/** -* Tag name for 'menu/enterkey' -* -*/// -#define ELEKTRA_TAG_MENU_ENTERKEY MenuEnterkey - -/** -* Tag name for 'menu/leftkey' -* -*/// -#define ELEKTRA_TAG_MENU_LEFTKEY MenuLeftkey - -/** -* Tag name for 'menu/menukey' -* -*/// -#define ELEKTRA_TAG_MENU_MENUKEY MenuMenukey - -/** -* Tag name for 'menu/permissivegoto' -* -*/// -#define ELEKTRA_TAG_MENU_PERMISSIVEGOTO MenuPermissivegoto - -/** -* Tag name for 'menu/rightkey' -* -*/// -#define ELEKTRA_TAG_MENU_RIGHTKEY MenuRightkey - -/** -* Tag name for 'menu/upkey' -* -*/// -#define ELEKTRA_TAG_MENU_UPKEY MenuUpkey - -/** -* Tag name for 'ms6931/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MS6931 Ms6931 - -/** -* Tag name for 'ms6931/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MS6931_BRIGHTNESS Ms6931Brightness - -/** -* Tag name for 'ms6931/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MS6931_CONTRAST Ms6931Contrast - -/** -* Tag name for 'ms6931/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MS6931_DEVICE Ms6931Device - -/** -* Tag name for 'ms6931/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MS6931_FILE Ms6931File - -/** -* Tag name for 'ms6931/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MS6931_OFFBRIGHTNESS Ms6931Offbrightness - -/** -* Tag name for 'ms6931/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MS6931_REBOOT Ms6931Reboot - -/** -* Tag name for 'ms6931/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MS6931_SIZE Ms6931Size - -/** -* Tag name for 'mtc_s16209x/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTC_S16209X MtcS16209x - -/** -* Tag name for 'mtc_s16209x/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTC_S16209X_BRIGHTNESS MtcS16209xBrightness - -/** -* Tag name for 'mtc_s16209x/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTC_S16209X_CONTRAST MtcS16209xContrast - -/** -* Tag name for 'mtc_s16209x/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTC_S16209X_DEVICE MtcS16209xDevice - -/** -* Tag name for 'mtc_s16209x/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTC_S16209X_FILE MtcS16209xFile - -/** -* Tag name for 'mtc_s16209x/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTC_S16209X_OFFBRIGHTNESS MtcS16209xOffbrightness - -/** -* Tag name for 'mtc_s16209x/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTC_S16209X_REBOOT MtcS16209xReboot - -/** -* Tag name for 'mtxorb/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTXORB Mtxorb - -/** -* Tag name for 'mtxorb/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTXORB_BRIGHTNESS MtxorbBrightness - -/** -* Tag name for 'mtxorb/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTXORB_CONTRAST MtxorbContrast - -/** -* Tag name for 'mtxorb/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTXORB_DEVICE MtxorbDevice - -/** -* Tag name for 'mtxorb/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTXORB_FILE MtxorbFile - -/** -* Tag name for 'mtxorb/#/hasadjustablebacklight' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTXORB_HASADJUSTABLEBACKLIGHT MtxorbHasadjustablebacklight - -/** -* Tag name for 'mtxorb/#/keymap_a' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTXORB_KEYMAP_A MtxorbKeymapA - -/** -* Tag name for 'mtxorb/#/keymap_b' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTXORB_KEYMAP_B MtxorbKeymapB - -/** -* Tag name for 'mtxorb/#/keymap_c' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTXORB_KEYMAP_C MtxorbKeymapC - -/** -* Tag name for 'mtxorb/#/keymap_d' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTXORB_KEYMAP_D MtxorbKeymapD - -/** -* Tag name for 'mtxorb/#/keymap_e' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTXORB_KEYMAP_E MtxorbKeymapE - -/** -* Tag name for 'mtxorb/#/keymap_f' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTXORB_KEYMAP_F MtxorbKeymapF - -/** -* Tag name for 'mtxorb/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTXORB_OFFBRIGHTNESS MtxorbOffbrightness - -/** -* Tag name for 'mtxorb/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTXORB_REBOOT MtxorbReboot - -/** -* Tag name for 'mtxorb/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTXORB_SIZE MtxorbSize - -/** -* Tag name for 'mtxorb/#/speed' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTXORB_SPEED MtxorbSpeed - -/** -* Tag name for 'mtxorb/#/type' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTXORB_TYPE MtxorbType - -/** -* Tag name for 'mx5000/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MX5000 Mx5000 - -/** -* Tag name for 'mx5000/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MX5000_BRIGHTNESS Mx5000Brightness - -/** -* Tag name for 'mx5000/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MX5000_CONTRAST Mx5000Contrast - -/** -* Tag name for 'mx5000/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MX5000_DEVICE Mx5000Device - -/** -* Tag name for 'mx5000/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MX5000_FILE Mx5000File - -/** -* Tag name for 'mx5000/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MX5000_OFFBRIGHTNESS Mx5000Offbrightness - -/** -* Tag name for 'mx5000/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MX5000_REBOOT Mx5000Reboot - -/** -* Tag name for 'mx5000/#/waitafterrefresh' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MX5000_WAITAFTERREFRESH Mx5000Waitafterrefresh - -/** -* Tag name for 'noritakevfd/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_NORITAKEVFD Noritakevfd - -/** -* Tag name for 'noritakevfd/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_NORITAKEVFD_BRIGHTNESS NoritakevfdBrightness - -/** -* Tag name for 'noritakevfd/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_NORITAKEVFD_CONTRAST NoritakevfdContrast - -/** -* Tag name for 'noritakevfd/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_NORITAKEVFD_DEVICE NoritakevfdDevice - -/** -* Tag name for 'noritakevfd/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_NORITAKEVFD_FILE NoritakevfdFile - -/** -* Tag name for 'noritakevfd/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_NORITAKEVFD_OFFBRIGHTNESS NoritakevfdOffbrightness - -/** -* Tag name for 'noritakevfd/#/parity' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_NORITAKEVFD_PARITY NoritakevfdParity - -/** -* Tag name for 'noritakevfd/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_NORITAKEVFD_REBOOT NoritakevfdReboot - -/** -* Tag name for 'noritakevfd/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_NORITAKEVFD_SIZE NoritakevfdSize - -/** -* Tag name for 'noritakevfd/#/speed' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_NORITAKEVFD_SPEED NoritakevfdSpeed - -/** -* Tag name for 'olimex_mod_lcd1x9/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_OLIMEX_MOD_LCD1X9 OlimexModLcd1x9 - -/** -* Tag name for 'olimex_mod_lcd1x9/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_OLIMEX_MOD_LCD1X9_BRIGHTNESS OlimexModLcd1x9Brightness - -/** -* Tag name for 'olimex_mod_lcd1x9/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_OLIMEX_MOD_LCD1X9_CONTRAST OlimexModLcd1x9Contrast - -/** -* Tag name for 'olimex_mod_lcd1x9/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_OLIMEX_MOD_LCD1X9_DEVICE OlimexModLcd1x9Device - -/** -* Tag name for 'olimex_mod_lcd1x9/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_OLIMEX_MOD_LCD1X9_FILE OlimexModLcd1x9File - -/** -* Tag name for 'olimex_mod_lcd1x9/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_OLIMEX_MOD_LCD1X9_OFFBRIGHTNESS OlimexModLcd1x9Offbrightness - -/** -* Tag name for 'olimex_mod_lcd1x9/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_OLIMEX_MOD_LCD1X9_REBOOT OlimexModLcd1x9Reboot - -/** -* Tag name for 'picolcd/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD Picolcd - -/** -* Tag name for 'picolcd/#/backlight' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_BACKLIGHT PicolcdBacklight - -/** -* Tag name for 'picolcd/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_BRIGHTNESS PicolcdBrightness - -/** -* Tag name for 'picolcd/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_CONTRAST PicolcdContrast - -/** -* Tag name for 'picolcd/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_FILE PicolcdFile - -/** -* Tag name for 'picolcd/#/key0light' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_KEY0LIGHT PicolcdKey0light - -/** -* Tag name for 'picolcd/#/key1light' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_KEY1LIGHT PicolcdKey1light - -/** -* Tag name for 'picolcd/#/key2light' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_KEY2LIGHT PicolcdKey2light - -/** -* Tag name for 'picolcd/#/key3light' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_KEY3LIGHT PicolcdKey3light - -/** -* Tag name for 'picolcd/#/key4light' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_KEY4LIGHT PicolcdKey4light - -/** -* Tag name for 'picolcd/#/key5light' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_KEY5LIGHT PicolcdKey5light - -/** -* Tag name for 'picolcd/#/keylights' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_KEYLIGHTS PicolcdKeylights - -/** -* Tag name for 'picolcd/#/keyrepeatdelay' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_KEYREPEATDELAY PicolcdKeyrepeatdelay - -/** -* Tag name for 'picolcd/#/keyrepeatinterval' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_KEYREPEATINTERVAL PicolcdKeyrepeatinterval - -/** -* Tag name for 'picolcd/#/keytimeout' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_KEYTIMEOUT PicolcdKeytimeout - -/** -* Tag name for 'picolcd/#/linklights' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_LINKLIGHTS PicolcdLinklights - -/** -* Tag name for 'picolcd/#/lircflushthreshold' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_LIRCFLUSHTHRESHOLD PicolcdLircflushthreshold - -/** -* Tag name for 'picolcd/#/lirchost' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_LIRCHOST PicolcdLirchost - -/** -* Tag name for 'picolcd/#/lircport' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_LIRCPORT PicolcdLircport - -/** -* Tag name for 'picolcd/#/lirctime_us' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_LIRCTIME_US PicolcdLirctimeUs - -/** -* Tag name for 'picolcd/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_OFFBRIGHTNESS PicolcdOffbrightness - -/** -* Tag name for 'picolcd/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_REBOOT PicolcdReboot - -/** -* Tag name for 'pyramid/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PYRAMID Pyramid - -/** -* Tag name for 'pyramid/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PYRAMID_BRIGHTNESS PyramidBrightness - -/** -* Tag name for 'pyramid/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PYRAMID_CONTRAST PyramidContrast - -/** -* Tag name for 'pyramid/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PYRAMID_DEVICE PyramidDevice - -/** -* Tag name for 'pyramid/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PYRAMID_FILE PyramidFile - -/** -* Tag name for 'pyramid/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PYRAMID_OFFBRIGHTNESS PyramidOffbrightness - -/** -* Tag name for 'pyramid/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PYRAMID_REBOOT PyramidReboot - -/** -* Tag name for 'rawserial/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_RAWSERIAL Rawserial - -/** -* Tag name for 'rawserial/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_RAWSERIAL_BRIGHTNESS RawserialBrightness - -/** -* Tag name for 'rawserial/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_RAWSERIAL_CONTRAST RawserialContrast - -/** -* Tag name for 'rawserial/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_RAWSERIAL_DEVICE RawserialDevice - -/** -* Tag name for 'rawserial/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_RAWSERIAL_FILE RawserialFile - -/** -* Tag name for 'rawserial/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_RAWSERIAL_OFFBRIGHTNESS RawserialOffbrightness - -/** -* Tag name for 'rawserial/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_RAWSERIAL_REBOOT RawserialReboot - -/** -* Tag name for 'rawserial/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_RAWSERIAL_SIZE RawserialSize - -/** -* Tag name for 'rawserial/#/speed' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_RAWSERIAL_SPEED RawserialSpeed - -/** -* Tag name for 'rawserial/#/updaterate' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_RAWSERIAL_UPDATERATE RawserialUpdaterate - -/** -* Tag name for 'sed1330/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1330 Sed1330 - -/** -* Tag name for 'sed1330/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1330_BRIGHTNESS Sed1330Brightness - -/** -* Tag name for 'sed1330/#/cellsize' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1330_CELLSIZE Sed1330Cellsize - -/** -* Tag name for 'sed1330/#/connectiontype' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1330_CONNECTIONTYPE Sed1330Connectiontype - -/** -* Tag name for 'sed1330/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1330_CONTRAST Sed1330Contrast - -/** -* Tag name for 'sed1330/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1330_FILE Sed1330File - -/** -* Tag name for 'sed1330/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1330_OFFBRIGHTNESS Sed1330Offbrightness - -/** -* Tag name for 'sed1330/#/port' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1330_PORT Sed1330Port - -/** -* Tag name for 'sed1330/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1330_REBOOT Sed1330Reboot - -/** -* Tag name for 'sed1330/#/type' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1330_TYPE Sed1330Type - -/** -* Tag name for 'sed1520/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1520 Sed1520 - -/** -* Tag name for 'sed1520/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1520_BRIGHTNESS Sed1520Brightness - -/** -* Tag name for 'sed1520/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1520_CONTRAST Sed1520Contrast - -/** -* Tag name for 'sed1520/#/delaymult' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1520_DELAYMULT Sed1520Delaymult - -/** -* Tag name for 'sed1520/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1520_FILE Sed1520File - -/** -* Tag name for 'sed1520/#/haveinverter' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1520_HAVEINVERTER Sed1520Haveinverter - -/** -* Tag name for 'sed1520/#/interfacetype' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1520_INTERFACETYPE Sed1520Interfacetype - -/** -* Tag name for 'sed1520/#/invertedmapping' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1520_INVERTEDMAPPING Sed1520Invertedmapping - -/** -* Tag name for 'sed1520/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1520_OFFBRIGHTNESS Sed1520Offbrightness - -/** -* Tag name for 'sed1520/#/port' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1520_PORT Sed1520Port - -/** -* Tag name for 'sed1520/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1520_REBOOT Sed1520Reboot - -/** -* Tag name for 'sed1520/#/usehardreset' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1520_USEHARDRESET Sed1520Usehardreset - -/** -* Tag name for 'serialpos/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALPOS Serialpos - -/** -* Tag name for 'serialpos/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALPOS_BRIGHTNESS SerialposBrightness - -/** -* Tag name for 'serialpos/#/cellsize' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALPOS_CELLSIZE SerialposCellsize - -/** -* Tag name for 'serialpos/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALPOS_CONTRAST SerialposContrast - -/** -* Tag name for 'serialpos/#/custom_chars' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALPOS_CUSTOM_CHARS SerialposCustomChars - -/** -* Tag name for 'serialpos/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALPOS_DEVICE SerialposDevice - -/** -* Tag name for 'serialpos/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALPOS_FILE SerialposFile - -/** -* Tag name for 'serialpos/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALPOS_OFFBRIGHTNESS SerialposOffbrightness - -/** -* Tag name for 'serialpos/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALPOS_REBOOT SerialposReboot - -/** -* Tag name for 'serialpos/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALPOS_SIZE SerialposSize - -/** -* Tag name for 'serialpos/#/speed' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALPOS_SPEED SerialposSpeed - -/** -* Tag name for 'serialpos/#/type' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALPOS_TYPE SerialposType - -/** -* Tag name for 'serialvfd/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALVFD Serialvfd - -/** -* Tag name for 'serialvfd/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALVFD_BRIGHTNESS SerialvfdBrightness - -/** -* Tag name for 'serialvfd/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALVFD_CONTRAST SerialvfdContrast - -/** -* Tag name for 'serialvfd/#/custom-characters' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALVFD_CUSTOM_CHARACTERS SerialvfdCustomCharacters - -/** -* Tag name for 'serialvfd/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALVFD_DEVICE SerialvfdDevice - -/** -* Tag name for 'serialvfd/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALVFD_FILE SerialvfdFile - -/** -* Tag name for 'serialvfd/#/iso_8859_1' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALVFD_ISO_8859_1 SerialvfdIso88591 - -/** -* Tag name for 'serialvfd/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALVFD_OFFBRIGHTNESS SerialvfdOffbrightness - -/** -* Tag name for 'serialvfd/#/port' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALVFD_PORT SerialvfdPort - -/** -* Tag name for 'serialvfd/#/portwait' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALVFD_PORTWAIT SerialvfdPortwait - -/** -* Tag name for 'serialvfd/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALVFD_REBOOT SerialvfdReboot - -/** -* Tag name for 'serialvfd/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALVFD_SIZE SerialvfdSize - -/** -* Tag name for 'serialvfd/#/speed' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALVFD_SPEED SerialvfdSpeed - -/** -* Tag name for 'serialvfd/#/type' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALVFD_TYPE SerialvfdType - -/** -* Tag name for 'serialvfd/#/use_parallel' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALVFD_USE_PARALLEL SerialvfdUseParallel - -/** -* Tag name for 'server/autorotate' -* -*/// -#define ELEKTRA_TAG_SERVER_AUTOROTATE ServerAutorotate - -/** -* Tag name for 'server/backlight' -* -*/// -#define ELEKTRA_TAG_SERVER_BACKLIGHT ServerBacklight - -/** -* Tag name for 'server/bind' -* -*/// -#define ELEKTRA_TAG_SERVER_BIND ServerBind - -/** -* Tag name for 'server/driverpath' -* -*/// -#define ELEKTRA_TAG_SERVER_DRIVERPATH ServerDriverpath - -/** -* Tag name for 'server/drivers/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERVER_DRIVERS ServerDrivers - -/** -* Tag name for 'server/foreground' -* -*/// -#define ELEKTRA_TAG_SERVER_FOREGROUND ServerForeground - -/** -* Tag name for 'server/frameinterval' -* -*/// -#define ELEKTRA_TAG_SERVER_FRAMEINTERVAL ServerFrameinterval - -/** -* Tag name for 'server/goodbye/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERVER_GOODBYE ServerGoodbye - -/** -* Tag name for 'server/heartbeat' -* -*/// -#define ELEKTRA_TAG_SERVER_HEARTBEAT ServerHeartbeat - -/** -* Tag name for 'server/hello/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERVER_HELLO ServerHello - -/** -* Tag name for 'server/nextscreenkey' -* -*/// -#define ELEKTRA_TAG_SERVER_NEXTSCREENKEY ServerNextscreenkey - -/** -* Tag name for 'server/port' -* -*/// -#define ELEKTRA_TAG_SERVER_PORT ServerPort - -/** -* Tag name for 'server/prevscreenkey' -* -*/// -#define ELEKTRA_TAG_SERVER_PREVSCREENKEY ServerPrevscreenkey - -/** -* Tag name for 'server/reportlevel' -* -*/// -#define ELEKTRA_TAG_SERVER_REPORTLEVEL ServerReportlevel - -/** -* Tag name for 'server/reporttosyslog' -* -*/// -#define ELEKTRA_TAG_SERVER_REPORTTOSYSLOG ServerReporttosyslog - -/** -* Tag name for 'server/scrolldownkey' -* -*/// -#define ELEKTRA_TAG_SERVER_SCROLLDOWNKEY ServerScrolldownkey - -/** -* Tag name for 'server/scrollupkey' -* -*/// -#define ELEKTRA_TAG_SERVER_SCROLLUPKEY ServerScrollupkey - -/** -* Tag name for 'server/serverscreen' -* -*/// -#define ELEKTRA_TAG_SERVER_SERVERSCREEN ServerServerscreen - -/** -* Tag name for 'server/titlespeed' -* -*/// -#define ELEKTRA_TAG_SERVER_TITLESPEED ServerTitlespeed - -/** -* Tag name for 'server/togglerotatekey' -* -*/// -#define ELEKTRA_TAG_SERVER_TOGGLEROTATEKEY ServerTogglerotatekey - -/** -* Tag name for 'server/user' -* -*/// -#define ELEKTRA_TAG_SERVER_USER ServerUser - -/** -* Tag name for 'server/waittime' -* -*/// -#define ELEKTRA_TAG_SERVER_WAITTIME ServerWaittime - -/** -* Tag name for 'sli/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SLI Sli - -/** -* Tag name for 'sli/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SLI_BRIGHTNESS SliBrightness - -/** -* Tag name for 'sli/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SLI_CONTRAST SliContrast - -/** -* Tag name for 'sli/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SLI_DEVICE SliDevice - -/** -* Tag name for 'sli/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SLI_FILE SliFile - -/** -* Tag name for 'sli/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SLI_OFFBRIGHTNESS SliOffbrightness - -/** -* Tag name for 'sli/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SLI_REBOOT SliReboot - -/** -* Tag name for 'sli/#/speed' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SLI_SPEED SliSpeed - -/** -* Tag name for 'stv5730/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_STV5730 Stv5730 - -/** -* Tag name for 'stv5730/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_STV5730_BRIGHTNESS Stv5730Brightness - -/** -* Tag name for 'stv5730/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_STV5730_CONTRAST Stv5730Contrast - -/** -* Tag name for 'stv5730/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_STV5730_FILE Stv5730File - -/** -* Tag name for 'stv5730/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_STV5730_OFFBRIGHTNESS Stv5730Offbrightness - -/** -* Tag name for 'stv5730/#/port' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_STV5730_PORT Stv5730Port - -/** -* Tag name for 'stv5730/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_STV5730_REBOOT Stv5730Reboot - -/** -* Tag name for 'sureelec/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SUREELEC Sureelec - -/** -* Tag name for 'sureelec/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SUREELEC_BRIGHTNESS SureelecBrightness - -/** -* Tag name for 'sureelec/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SUREELEC_CONTRAST SureelecContrast - -/** -* Tag name for 'sureelec/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SUREELEC_DEVICE SureelecDevice - -/** -* Tag name for 'sureelec/#/edition' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SUREELEC_EDITION SureelecEdition - -/** -* Tag name for 'sureelec/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SUREELEC_FILE SureelecFile - -/** -* Tag name for 'sureelec/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SUREELEC_OFFBRIGHTNESS SureelecOffbrightness - -/** -* Tag name for 'sureelec/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SUREELEC_REBOOT SureelecReboot - -/** -* Tag name for 'sureelec/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SUREELEC_SIZE SureelecSize - -/** -* Tag name for 'svga/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SVGA Svga - -/** -* Tag name for 'svga/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SVGA_BRIGHTNESS SvgaBrightness - -/** -* Tag name for 'svga/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SVGA_CONTRAST SvgaContrast - -/** -* Tag name for 'svga/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SVGA_FILE SvgaFile - -/** -* Tag name for 'svga/#/mode' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SVGA_MODE SvgaMode - -/** -* Tag name for 'svga/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SVGA_OFFBRIGHTNESS SvgaOffbrightness - -/** -* Tag name for 'svga/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SVGA_REBOOT SvgaReboot - -/** -* Tag name for 'svga/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SVGA_SIZE SvgaSize - -/** -* Tag name for 't6963/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_T6963 T6963 - -/** -* Tag name for 't6963/#/bidirectional' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_T6963_BIDIRECTIONAL T6963Bidirectional - -/** -* Tag name for 't6963/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_T6963_BRIGHTNESS T6963Brightness - -/** -* Tag name for 't6963/#/cleargraphic' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_T6963_CLEARGRAPHIC T6963Cleargraphic - -/** -* Tag name for 't6963/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_T6963_CONTRAST T6963Contrast - -/** -* Tag name for 't6963/#/delaybus' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_T6963_DELAYBUS T6963Delaybus - -/** -* Tag name for 't6963/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_T6963_FILE T6963File - -/** -* Tag name for 't6963/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_T6963_OFFBRIGHTNESS T6963Offbrightness - -/** -* Tag name for 't6963/#/port' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_T6963_PORT T6963Port - -/** -* Tag name for 't6963/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_T6963_REBOOT T6963Reboot - -/** -* Tag name for 't6963/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_T6963_SIZE T6963Size - -/** -* Tag name for 'text/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_TEXT Text - -/** -* Tag name for 'text/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_TEXT_BRIGHTNESS TextBrightness - -/** -* Tag name for 'text/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_TEXT_CONTRAST TextContrast - -/** -* Tag name for 'text/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_TEXT_FILE TextFile - -/** -* Tag name for 'text/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_TEXT_OFFBRIGHTNESS TextOffbrightness - -/** -* Tag name for 'text/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_TEXT_REBOOT TextReboot - -/** -* Tag name for 'text/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_TEXT_SIZE TextSize - -/** -* Tag name for 'tyan/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_TYAN Tyan - -/** -* Tag name for 'tyan/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_TYAN_BRIGHTNESS TyanBrightness - -/** -* Tag name for 'tyan/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_TYAN_CONTRAST TyanContrast - -/** -* Tag name for 'tyan/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_TYAN_DEVICE TyanDevice - -/** -* Tag name for 'tyan/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_TYAN_FILE TyanFile - -/** -* Tag name for 'tyan/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_TYAN_OFFBRIGHTNESS TyanOffbrightness - -/** -* Tag name for 'tyan/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_TYAN_REBOOT TyanReboot - -/** -* Tag name for 'tyan/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_TYAN_SIZE TyanSize - -/** -* Tag name for 'tyan/#/speed' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_TYAN_SPEED TyanSpeed - -/** -* Tag name for 'ula200/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ULA200 Ula200 - -/** -* Tag name for 'ula200/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ULA200_BRIGHTNESS Ula200Brightness - -/** -* Tag name for 'ula200/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ULA200_CONTRAST Ula200Contrast - -/** -* Tag name for 'ula200/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ULA200_FILE Ula200File - -/** -* Tag name for 'ula200/#/keymap_a' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ULA200_KEYMAP_A Ula200KeymapA - -/** -* Tag name for 'ula200/#/keymap_b' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ULA200_KEYMAP_B Ula200KeymapB - -/** -* Tag name for 'ula200/#/keymap_c' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ULA200_KEYMAP_C Ula200KeymapC - -/** -* Tag name for 'ula200/#/keymap_d' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ULA200_KEYMAP_D Ula200KeymapD - -/** -* Tag name for 'ula200/#/keymap_e' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ULA200_KEYMAP_E Ula200KeymapE - -/** -* Tag name for 'ula200/#/keymap_f' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ULA200_KEYMAP_F Ula200KeymapF - -/** -* Tag name for 'ula200/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ULA200_OFFBRIGHTNESS Ula200Offbrightness - -/** -* Tag name for 'ula200/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ULA200_REBOOT Ula200Reboot - -/** -* Tag name for 'ula200/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ULA200_SIZE Ula200Size - -/** -* Tag name for 'vlsys_m428/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_VLSYS_M428 VlsysM428 - -/** -* Tag name for 'vlsys_m428/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_VLSYS_M428_BRIGHTNESS VlsysM428Brightness - -/** -* Tag name for 'vlsys_m428/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_VLSYS_M428_CONTRAST VlsysM428Contrast - -/** -* Tag name for 'vlsys_m428/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_VLSYS_M428_DEVICE VlsysM428Device - -/** -* Tag name for 'vlsys_m428/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_VLSYS_M428_FILE VlsysM428File - -/** -* Tag name for 'vlsys_m428/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_VLSYS_M428_OFFBRIGHTNESS VlsysM428Offbrightness - -/** -* Tag name for 'vlsys_m428/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_VLSYS_M428_REBOOT VlsysM428Reboot - -/** -* Tag name for 'xosd/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_XOSD Xosd - -/** -* Tag name for 'xosd/#/Font' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_XOSD_FONT XosdFont - -/** -* Tag name for 'xosd/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_XOSD_BRIGHTNESS XosdBrightness - -/** -* Tag name for 'xosd/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_XOSD_CONTRAST XosdContrast - -/** -* Tag name for 'xosd/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_XOSD_FILE XosdFile - -/** -* Tag name for 'xosd/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_XOSD_OFFBRIGHTNESS XosdOffbrightness - -/** -* Tag name for 'xosd/#/offset' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_XOSD_OFFSET XosdOffset - -/** -* Tag name for 'xosd/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_XOSD_REBOOT XosdReboot - -/** -* Tag name for 'xosd/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_XOSD_SIZE XosdSize - -/** -* Tag name for 'yard2lcd/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_YARD2LCD Yard2lcd - -/** -* Tag name for 'yard2lcd/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_YARD2LCD_BRIGHTNESS Yard2lcdBrightness - -/** -* Tag name for 'yard2lcd/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_YARD2LCD_CONTRAST Yard2lcdContrast - -/** -* Tag name for 'yard2lcd/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_YARD2LCD_FILE Yard2lcdFile - -/** -* Tag name for 'yard2lcd/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_YARD2LCD_OFFBRIGHTNESS Yard2lcdOffbrightness - -/** -* Tag name for 'yard2lcd/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_YARD2LCD_REBOOT Yard2lcdReboot - -/** -* Tag name for 'yard2lcd/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_YARD2LCD_SIZE Yard2lcdSize -// clang-format on - - -// clang-format off - -// clang-format on - -// clang-format off - -// clang-format on - - -// clang-format off - -// clang-format on - - - - -// clang-format off - -// clang-format on - -// local helper macros to determine the length of a 64 bit integer -#define elektra_len19(x) ((x) < 10000000000000000000ULL ? 19 : 20) -#define elektra_len18(x) ((x) < 1000000000000000000ULL ? 18 : elektra_len19 (x)) -#define elektra_len17(x) ((x) < 100000000000000000ULL ? 17 : elektra_len18 (x)) -#define elektra_len16(x) ((x) < 10000000000000000ULL ? 16 : elektra_len17 (x)) -#define elektra_len15(x) ((x) < 1000000000000000ULL ? 15 : elektra_len16 (x)) -#define elektra_len14(x) ((x) < 100000000000000ULL ? 14 : elektra_len15 (x)) -#define elektra_len13(x) ((x) < 10000000000000ULL ? 13 : elektra_len14 (x)) -#define elektra_len12(x) ((x) < 1000000000000ULL ? 12 : elektra_len13 (x)) -#define elektra_len11(x) ((x) < 100000000000ULL ? 11 : elektra_len12 (x)) -#define elektra_len10(x) ((x) < 10000000000ULL ? 10 : elektra_len11 (x)) -#define elektra_len09(x) ((x) < 1000000000ULL ? 9 : elektra_len10 (x)) -#define elektra_len08(x) ((x) < 100000000ULL ? 8 : elektra_len09 (x)) -#define elektra_len07(x) ((x) < 10000000ULL ? 7 : elektra_len08 (x)) -#define elektra_len06(x) ((x) < 1000000ULL ? 6 : elektra_len07 (x)) -#define elektra_len05(x) ((x) < 100000ULL ? 5 : elektra_len06 (x)) -#define elektra_len04(x) ((x) < 10000ULL ? 4 : elektra_len05 (x)) -#define elektra_len03(x) ((x) < 1000ULL ? 3 : elektra_len04 (x)) -#define elektra_len02(x) ((x) < 100ULL ? 2 : elektra_len03 (x)) -#define elektra_len01(x) ((x) < 10ULL ? 1 : elektra_len02 (x)) -#define elektra_len00(x) ((x) < 0ULL ? 0 : elektra_len01 (x)) -#define elektra_len(x) elektra_len00 (x) - -#define ELEKTRA_SIZE(tagName) ELEKTRA_CONCAT (elektraSize, tagName) - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'bayrad/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Bayrad) (Elektra * elektra, BayradDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("bayrad/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructBayradDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'bayrad/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'bayrad/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Bayrad) (Elektra * elektra, const BayradDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("bayrad/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructBayradDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'bayrad/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Bayrad) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "bayrad"); -} - - - -/** - * Get the value of 'bayrad/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'bayrad/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (BayradBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("bayrad/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'bayrad/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'bayrad/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (BayradBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("bayrad/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'bayrad/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'bayrad/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (BayradContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("bayrad/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'bayrad/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'bayrad/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (BayradContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("bayrad/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'bayrad/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'bayrad/#/device'. - */// -static inline const char * ELEKTRA_GET (BayradDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("bayrad/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'bayrad/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'bayrad/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (BayradDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("bayrad/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'bayrad/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'bayrad/#/file'. - */// -static inline const char * ELEKTRA_GET (BayradFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("bayrad/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'bayrad/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'bayrad/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (BayradFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("bayrad/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'bayrad/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'bayrad/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (BayradOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("bayrad/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'bayrad/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'bayrad/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (BayradOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("bayrad/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'bayrad/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'bayrad/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (BayradReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("bayrad/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'bayrad/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'bayrad/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (BayradReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("bayrad/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'bayrad/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'bayrad/#/speed'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (BayradSpeed) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("bayrad/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'bayrad/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'bayrad/#/speed'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (BayradSpeed) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("bayrad/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'cfontz/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Cfontz) (Elektra * elektra, CFontzDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructCFontzDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'cfontz/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontz/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Cfontz) (Elektra * elektra, const CFontzDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructCFontzDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'cfontz/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Cfontz) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "cfontz"); -} - - - -/** - * Get the value of 'cfontz/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontz/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (CfontzBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontz/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontz/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontz/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontz/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (CfontzContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontz/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontz/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontz/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontz/#/device'. - */// -static inline const char * ELEKTRA_GET (CfontzDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontz/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontz/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontz/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontz/#/file'. - */// -static inline const char * ELEKTRA_GET (CfontzFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontz/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontz/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontz/#/newfirmware'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontz/#/newfirmware'. - */// -static inline kdb_boolean_t ELEKTRA_GET (CfontzNewfirmware) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/newfirmware", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontz/#/newfirmware'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontz/#/newfirmware'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzNewfirmware) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/newfirmware", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontz/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontz/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (CfontzOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontz/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontz/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontz/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontz/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (CfontzReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontz/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontz/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontz/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontz/#/size'. - */// -static inline const char * ELEKTRA_GET (CfontzSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontz/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontz/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontz/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontz/#/speed'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (CfontzSpeed) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontz/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontz/#/speed'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzSpeed) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'cfontzpacket/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Cfontzpacket) (Elektra * elektra, CFontzPacketDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructCFontzPacketDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'cfontzpacket/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontzpacket/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Cfontzpacket) (Elektra * elektra, const CFontzPacketDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructCFontzPacketDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'cfontzpacket/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Cfontzpacket) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "cfontzpacket"); -} - - - -/** - * Get the value of 'cfontzpacket/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontzpacket/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (CfontzpacketBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontzpacket/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontzpacket/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzpacketBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontzpacket/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontzpacket/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (CfontzpacketContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontzpacket/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontzpacket/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzpacketContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontzpacket/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontzpacket/#/device'. - */// -static inline const char * ELEKTRA_GET (CfontzpacketDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontzpacket/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontzpacket/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzpacketDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontzpacket/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontzpacket/#/file'. - */// -static inline const char * ELEKTRA_GET (CfontzpacketFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontzpacket/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontzpacket/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzpacketFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontzpacket/#/model'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontzpacket/#/model'. - */// -static inline CFontzPacketModel ELEKTRA_GET (CfontzpacketModel) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/model", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - CFontzPacketModel result = ELEKTRA_GET (EnumCFontzPacketModel) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontzpacket/#/model'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontzpacket/#/model'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzpacketModel) (Elektra * elektra, - CFontzPacketModel value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/model", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumCFontzPacketModel) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontzpacket/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontzpacket/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (CfontzpacketOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontzpacket/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontzpacket/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzpacketOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontzpacket/#/oldfirmware'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontzpacket/#/oldfirmware'. - */// -static inline kdb_boolean_t ELEKTRA_GET (CfontzpacketOldfirmware) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/oldfirmware", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontzpacket/#/oldfirmware'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontzpacket/#/oldfirmware'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzpacketOldfirmware) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/oldfirmware", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontzpacket/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontzpacket/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (CfontzpacketReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontzpacket/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontzpacket/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzpacketReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontzpacket/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontzpacket/#/size'. - */// -static inline const char * ELEKTRA_GET (CfontzpacketSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontzpacket/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontzpacket/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzpacketSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontzpacket/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontzpacket/#/speed'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (CfontzpacketSpeed) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontzpacket/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontzpacket/#/speed'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzpacketSpeed) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontzpacket/#/usb'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontzpacket/#/usb'. - */// -static inline kdb_boolean_t ELEKTRA_GET (CfontzpacketUsb) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/usb", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontzpacket/#/usb'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontzpacket/#/usb'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzpacketUsb) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/usb", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'curses/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Curses) (Elektra * elektra, CursesDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructCursesDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'curses/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'curses/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Curses) (Elektra * elektra, const CursesDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructCursesDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'curses/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Curses) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "curses"); -} - - - -/** - * Get the value of 'curses/#/background'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'curses/#/background'. - */// -static inline CursesColor ELEKTRA_GET (CursesBackground) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/background", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - CursesColor result = ELEKTRA_GET (EnumCursesColor) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'curses/#/background'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'curses/#/background'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CursesBackground) (Elektra * elektra, - CursesColor value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/background", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumCursesColor) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'curses/#/backlight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'curses/#/backlight'. - */// -static inline CursesColor ELEKTRA_GET (CursesBacklight) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - CursesColor result = ELEKTRA_GET (EnumCursesColor) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'curses/#/backlight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'curses/#/backlight'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CursesBacklight) (Elektra * elektra, - CursesColor value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumCursesColor) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'curses/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'curses/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (CursesBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'curses/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'curses/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CursesBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'curses/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'curses/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (CursesContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'curses/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'curses/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CursesContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'curses/#/drawborder'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'curses/#/drawborder'. - */// -static inline kdb_boolean_t ELEKTRA_GET (CursesDrawborder) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/drawborder", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'curses/#/drawborder'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'curses/#/drawborder'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CursesDrawborder) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/drawborder", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'curses/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'curses/#/file'. - */// -static inline const char * ELEKTRA_GET (CursesFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'curses/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'curses/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CursesFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'curses/#/foreground'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'curses/#/foreground'. - */// -static inline CursesColor ELEKTRA_GET (CursesForeground) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/foreground", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - CursesColor result = ELEKTRA_GET (EnumCursesColor) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'curses/#/foreground'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'curses/#/foreground'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CursesForeground) (Elektra * elektra, - CursesColor value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/foreground", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumCursesColor) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'curses/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'curses/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (CursesOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'curses/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'curses/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CursesOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'curses/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'curses/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (CursesReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'curses/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'curses/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CursesReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'curses/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'curses/#/size'. - */// -static inline const char * ELEKTRA_GET (CursesSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'curses/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'curses/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CursesSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'curses/#/topleftx'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'curses/#/topleftx'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (CursesTopleftx) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/topleftx", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'curses/#/topleftx'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'curses/#/topleftx'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CursesTopleftx) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/topleftx", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'curses/#/toplefty'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'curses/#/toplefty'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (CursesToplefty) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/toplefty", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'curses/#/toplefty'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'curses/#/toplefty'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CursesToplefty) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/toplefty", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'curses/#/useacs'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'curses/#/useacs'. - */// -static inline kdb_boolean_t ELEKTRA_GET (CursesUseacs) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/useacs", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'curses/#/useacs'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'curses/#/useacs'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CursesUseacs) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/useacs", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'cwlnx/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Cwlnx) (Elektra * elektra, CwLnxDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructCwLnxDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'cwlnx/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cwlnx/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Cwlnx) (Elektra * elektra, const CwLnxDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructCwLnxDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'cwlnx/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Cwlnx) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "cwlnx"); -} - - - -/** - * Get the value of 'cwlnx/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cwlnx/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (CwlnxBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cwlnx/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cwlnx/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CwlnxBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cwlnx/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cwlnx/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (CwlnxContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cwlnx/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cwlnx/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CwlnxContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cwlnx/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cwlnx/#/device'. - */// -static inline const char * ELEKTRA_GET (CwlnxDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cwlnx/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cwlnx/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CwlnxDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cwlnx/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cwlnx/#/file'. - */// -static inline const char * ELEKTRA_GET (CwlnxFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cwlnx/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cwlnx/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CwlnxFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cwlnx/#/keymap_a'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cwlnx/#/keymap_a'. - */// -static inline const char * ELEKTRA_GET (CwlnxKeymapA) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_a", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cwlnx/#/keymap_a'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cwlnx/#/keymap_a'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CwlnxKeymapA) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_a", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cwlnx/#/keymap_b'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cwlnx/#/keymap_b'. - */// -static inline const char * ELEKTRA_GET (CwlnxKeymapB) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_b", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cwlnx/#/keymap_b'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cwlnx/#/keymap_b'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CwlnxKeymapB) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_b", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cwlnx/#/keymap_c'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cwlnx/#/keymap_c'. - */// -static inline const char * ELEKTRA_GET (CwlnxKeymapC) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_c", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cwlnx/#/keymap_c'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cwlnx/#/keymap_c'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CwlnxKeymapC) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_c", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cwlnx/#/keymap_d'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cwlnx/#/keymap_d'. - */// -static inline const char * ELEKTRA_GET (CwlnxKeymapD) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_d", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cwlnx/#/keymap_d'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cwlnx/#/keymap_d'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CwlnxKeymapD) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_d", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cwlnx/#/keymap_e'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cwlnx/#/keymap_e'. - */// -static inline const char * ELEKTRA_GET (CwlnxKeymapE) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_e", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cwlnx/#/keymap_e'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cwlnx/#/keymap_e'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CwlnxKeymapE) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_e", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cwlnx/#/keymap_f'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cwlnx/#/keymap_f'. - */// -static inline const char * ELEKTRA_GET (CwlnxKeymapF) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_f", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cwlnx/#/keymap_f'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cwlnx/#/keymap_f'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CwlnxKeymapF) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_f", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cwlnx/#/keypad'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cwlnx/#/keypad'. - */// -static inline kdb_boolean_t ELEKTRA_GET (CwlnxKeypad) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/keypad", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cwlnx/#/keypad'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cwlnx/#/keypad'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CwlnxKeypad) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/keypad", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cwlnx/#/keypad_test_mode'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cwlnx/#/keypad_test_mode'. - */// -static inline kdb_boolean_t ELEKTRA_GET (CwlnxKeypadTestMode) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/keypad_test_mode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cwlnx/#/keypad_test_mode'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cwlnx/#/keypad_test_mode'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CwlnxKeypadTestMode) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/keypad_test_mode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cwlnx/#/model'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cwlnx/#/model'. - */// -static inline CwLnxModel ELEKTRA_GET (CwlnxModel) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/model", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - CwLnxModel result = ELEKTRA_GET (EnumCwLnxModel) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cwlnx/#/model'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cwlnx/#/model'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CwlnxModel) (Elektra * elektra, - CwLnxModel value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/model", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumCwLnxModel) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cwlnx/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cwlnx/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (CwlnxOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cwlnx/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cwlnx/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CwlnxOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cwlnx/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cwlnx/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (CwlnxReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cwlnx/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cwlnx/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CwlnxReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cwlnx/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cwlnx/#/size'. - */// -static inline const char * ELEKTRA_GET (CwlnxSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cwlnx/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cwlnx/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CwlnxSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cwlnx/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cwlnx/#/speed'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (CwlnxSpeed) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cwlnx/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cwlnx/#/speed'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CwlnxSpeed) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'ea65/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Ea65) (Elektra * elektra, Ea65DriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("ea65/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructEa65DriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'ea65/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ea65/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ea65) (Elektra * elektra, const Ea65DriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ea65/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructEa65DriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'ea65/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Ea65) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "ea65"); -} - - - -/** - * Get the value of 'ea65/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ea65/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Ea65Brightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ea65/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ea65/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ea65/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ea65Brightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ea65/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ea65/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ea65/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Ea65Contrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ea65/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ea65/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ea65/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ea65Contrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ea65/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ea65/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ea65/#/file'. - */// -static inline const char * ELEKTRA_GET (Ea65File) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ea65/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ea65/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ea65/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ea65File) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ea65/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ea65/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ea65/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Ea65Offbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ea65/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ea65/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ea65/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ea65Offbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ea65/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ea65/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ea65/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Ea65Reboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ea65/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ea65/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ea65/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ea65Reboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ea65/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'eyeboxone/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Eyeboxone) (Elektra * elektra, EyeboxOneDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructEyeboxOneDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'eyeboxone/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'eyeboxone/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Eyeboxone) (Elektra * elektra, const EyeboxOneDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructEyeboxOneDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'eyeboxone/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Eyeboxone) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "eyeboxone"); -} - - - -/** - * Get the value of 'eyeboxone/#/backlight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'eyeboxone/#/backlight'. - */// -static inline kdb_boolean_t ELEKTRA_GET (EyeboxoneBacklight) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'eyeboxone/#/backlight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'eyeboxone/#/backlight'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (EyeboxoneBacklight) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'eyeboxone/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'eyeboxone/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (EyeboxoneBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'eyeboxone/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'eyeboxone/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (EyeboxoneBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'eyeboxone/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'eyeboxone/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (EyeboxoneContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'eyeboxone/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'eyeboxone/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (EyeboxoneContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'eyeboxone/#/cursor'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'eyeboxone/#/cursor'. - */// -static inline kdb_boolean_t ELEKTRA_GET (EyeboxoneCursor) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/cursor", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'eyeboxone/#/cursor'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'eyeboxone/#/cursor'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (EyeboxoneCursor) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/cursor", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'eyeboxone/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'eyeboxone/#/device'. - */// -static inline const char * ELEKTRA_GET (EyeboxoneDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'eyeboxone/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'eyeboxone/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (EyeboxoneDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'eyeboxone/#/downkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'eyeboxone/#/downkey'. - */// -static inline const char * ELEKTRA_GET (EyeboxoneDownkey) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/downkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'eyeboxone/#/downkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'eyeboxone/#/downkey'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (EyeboxoneDownkey) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/downkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'eyeboxone/#/escapekey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'eyeboxone/#/escapekey'. - */// -static inline const char * ELEKTRA_GET (EyeboxoneEscapekey) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/escapekey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'eyeboxone/#/escapekey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'eyeboxone/#/escapekey'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (EyeboxoneEscapekey) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/escapekey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'eyeboxone/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'eyeboxone/#/file'. - */// -static inline const char * ELEKTRA_GET (EyeboxoneFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'eyeboxone/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'eyeboxone/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (EyeboxoneFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'eyeboxone/#/keypad_test_mode'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'eyeboxone/#/keypad_test_mode'. - */// -static inline kdb_boolean_t ELEKTRA_GET (EyeboxoneKeypadTestMode) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/keypad_test_mode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'eyeboxone/#/keypad_test_mode'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'eyeboxone/#/keypad_test_mode'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (EyeboxoneKeypadTestMode) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/keypad_test_mode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'eyeboxone/#/leftkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'eyeboxone/#/leftkey'. - */// -static inline const char * ELEKTRA_GET (EyeboxoneLeftkey) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/leftkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'eyeboxone/#/leftkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'eyeboxone/#/leftkey'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (EyeboxoneLeftkey) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/leftkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'eyeboxone/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'eyeboxone/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (EyeboxoneOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'eyeboxone/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'eyeboxone/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (EyeboxoneOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'eyeboxone/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'eyeboxone/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (EyeboxoneReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'eyeboxone/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'eyeboxone/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (EyeboxoneReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'eyeboxone/#/rightkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'eyeboxone/#/rightkey'. - */// -static inline const char * ELEKTRA_GET (EyeboxoneRightkey) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/rightkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'eyeboxone/#/rightkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'eyeboxone/#/rightkey'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (EyeboxoneRightkey) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/rightkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'eyeboxone/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'eyeboxone/#/size'. - */// -static inline const char * ELEKTRA_GET (EyeboxoneSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'eyeboxone/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'eyeboxone/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (EyeboxoneSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'eyeboxone/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'eyeboxone/#/speed'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (EyeboxoneSpeed) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'eyeboxone/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'eyeboxone/#/speed'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (EyeboxoneSpeed) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'eyeboxone/#/upkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'eyeboxone/#/upkey'. - */// -static inline const char * ELEKTRA_GET (EyeboxoneUpkey) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/upkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'eyeboxone/#/upkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'eyeboxone/#/upkey'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (EyeboxoneUpkey) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/upkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'futaba/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Futaba) (Elektra * elektra, FutabaDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("futaba/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructFutabaDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'futaba/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'futaba/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Futaba) (Elektra * elektra, const FutabaDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("futaba/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructFutabaDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'futaba/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Futaba) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "futaba"); -} - - - -/** - * Get the value of 'futaba/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'futaba/#/file'. - */// -static inline const char * ELEKTRA_GET (FutabaFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("futaba/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'futaba/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'futaba/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (FutabaFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("futaba/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'g15/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (G15) (Elektra * elektra, G15DriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("g15/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructG15DriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'g15/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'g15/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (G15) (Elektra * elektra, const G15DriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("g15/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructG15DriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'g15/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (G15) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "g15"); -} - - - -/** - * Get the value of 'g15/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'g15/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (G15Brightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("g15/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'g15/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'g15/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (G15Brightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("g15/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'g15/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'g15/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (G15Contrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("g15/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'g15/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'g15/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (G15Contrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("g15/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'g15/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'g15/#/file'. - */// -static inline const char * ELEKTRA_GET (G15File) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("g15/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'g15/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'g15/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (G15File) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("g15/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'g15/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'g15/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (G15Offbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("g15/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'g15/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'g15/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (G15Offbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("g15/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'g15/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'g15/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (G15Reboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("g15/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'g15/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'g15/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (G15Reboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("g15/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'g15/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'g15/#/size'. - */// -static inline const char * ELEKTRA_GET (G15Size) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("g15/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'g15/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'g15/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (G15Size) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("g15/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'glcd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Glcd) (Elektra * elektra, GlcdDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructGlcdDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'glcd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Glcd) (Elektra * elektra, const GlcdDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructGlcdDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'glcd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Glcd) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "glcd"); -} - - - -/** - * Get the value of 'glcd/#/bidirectional'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/bidirectional'. - */// -static inline kdb_boolean_t ELEKTRA_GET (GlcdBidirectional) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/bidirectional", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/bidirectional'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/bidirectional'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdBidirectional) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/bidirectional", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (GlcdBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/cellsize'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/cellsize'. - */// -static inline const char * ELEKTRA_GET (GlcdCellsize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/cellsize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/cellsize'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/cellsize'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdCellsize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/cellsize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/connectiontype'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/connectiontype'. - */// -static inline GlcdConnectionType ELEKTRA_GET (GlcdConnectiontype) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/connectiontype", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - GlcdConnectionType result = ELEKTRA_GET (EnumGlcdConnectionType) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/connectiontype'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/connectiontype'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdConnectiontype) (Elektra * elektra, - GlcdConnectionType value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/connectiontype", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumGlcdConnectionType) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (GlcdContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/delaybus'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/delaybus'. - */// -static inline kdb_boolean_t ELEKTRA_GET (GlcdDelaybus) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/delaybus", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/delaybus'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/delaybus'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdDelaybus) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/delaybus", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/file'. - */// -static inline const char * ELEKTRA_GET (GlcdFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/fonthasicons'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/fonthasicons'. - */// -static inline kdb_boolean_t ELEKTRA_GET (GlcdFonthasicons) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/fonthasicons", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/fonthasicons'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/fonthasicons'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdFonthasicons) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/fonthasicons", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/keymap_a'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/keymap_a'. - */// -static inline const char * ELEKTRA_GET (GlcdKeymapA) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/keymap_a", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/keymap_a'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/keymap_a'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdKeymapA) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/keymap_a", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/keymap_b'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/keymap_b'. - */// -static inline const char * ELEKTRA_GET (GlcdKeymapB) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/keymap_b", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/keymap_b'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/keymap_b'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdKeymapB) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/keymap_b", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/keymap_c'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/keymap_c'. - */// -static inline const char * ELEKTRA_GET (GlcdKeymapC) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/keymap_c", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/keymap_c'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/keymap_c'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdKeymapC) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/keymap_c", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/keymap_d'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/keymap_d'. - */// -static inline const char * ELEKTRA_GET (GlcdKeymapD) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/keymap_d", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/keymap_d'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/keymap_d'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdKeymapD) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/keymap_d", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/keymap_e'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/keymap_e'. - */// -static inline const char * ELEKTRA_GET (GlcdKeymapE) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/keymap_e", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/keymap_e'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/keymap_e'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdKeymapE) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/keymap_e", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/keymap_f'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/keymap_f'. - */// -static inline const char * ELEKTRA_GET (GlcdKeymapF) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/keymap_f", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/keymap_f'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/keymap_f'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdKeymapF) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/keymap_f", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/keyrepeatdelay'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/keyrepeatdelay'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (GlcdKeyrepeatdelay) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/keyrepeatdelay", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/keyrepeatdelay'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/keyrepeatdelay'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdKeyrepeatdelay) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/keyrepeatdelay", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/keyrepeatinterval'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/keyrepeatinterval'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (GlcdKeyrepeatinterval) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/keyrepeatinterval", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/keyrepeatinterval'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/keyrepeatinterval'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdKeyrepeatinterval) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/keyrepeatinterval", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/normal_font'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/normal_font'. - */// -static inline const char * ELEKTRA_GET (GlcdNormalFont) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/normal_font", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/normal_font'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/normal_font'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdNormalFont) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/normal_font", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (GlcdOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/picolcdgfx_inverted'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/picolcdgfx_inverted'. - */// -static inline kdb_boolean_t ELEKTRA_GET (GlcdPicolcdgfxInverted) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/picolcdgfx_inverted", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/picolcdgfx_inverted'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/picolcdgfx_inverted'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdPicolcdgfxInverted) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/picolcdgfx_inverted", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/picolcdgfx_keytimeout'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/picolcdgfx_keytimeout'. - */// -static inline const char * ELEKTRA_GET (GlcdPicolcdgfxKeytimeout) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/picolcdgfx_keytimeout", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/picolcdgfx_keytimeout'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/picolcdgfx_keytimeout'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdPicolcdgfxKeytimeout) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/picolcdgfx_keytimeout", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/port'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/port'. - */// -static inline const char * ELEKTRA_GET (GlcdPort) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/port'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/port'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdPort) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (GlcdReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/serdisp_device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/serdisp_device'. - */// -static inline const char * ELEKTRA_GET (GlcdSerdispDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/serdisp_device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/serdisp_device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/serdisp_device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdSerdispDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/serdisp_device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/serdisp_name'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/serdisp_name'. - */// -static inline const char * ELEKTRA_GET (GlcdSerdispName) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/serdisp_name", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/serdisp_name'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/serdisp_name'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdSerdispName) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/serdisp_name", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/serdisp_options'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/serdisp_options'. - */// -static inline const char * ELEKTRA_GET (GlcdSerdispOptions) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/serdisp_options", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/serdisp_options'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/serdisp_options'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdSerdispOptions) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/serdisp_options", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/size'. - */// -static inline const char * ELEKTRA_GET (GlcdSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/useft2'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/useft2'. - */// -static inline kdb_boolean_t ELEKTRA_GET (GlcdUseft2) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/useft2", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/useft2'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/useft2'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdUseft2) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/useft2", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/x11_backlightcolor'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/x11_backlightcolor'. - */// -static inline const char * ELEKTRA_GET (GlcdX11Backlightcolor) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/x11_backlightcolor", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/x11_backlightcolor'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/x11_backlightcolor'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdX11Backlightcolor) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/x11_backlightcolor", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/x11_border'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/x11_border'. - */// -static inline kdb_unsigned_long_t ELEKTRA_GET (GlcdX11Border) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/x11_border", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/x11_border'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/x11_border'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdX11Border) (Elektra * elektra, - kdb_unsigned_long_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/x11_border", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/x11_inverted'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/x11_inverted'. - */// -static inline kdb_boolean_t ELEKTRA_GET (GlcdX11Inverted) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/x11_inverted", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/x11_inverted'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/x11_inverted'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdX11Inverted) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/x11_inverted", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/x11_pixelcolor'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/x11_pixelcolor'. - */// -static inline const char * ELEKTRA_GET (GlcdX11Pixelcolor) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/x11_pixelcolor", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/x11_pixelcolor'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/x11_pixelcolor'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdX11Pixelcolor) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/x11_pixelcolor", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/x11_pixelsize'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/x11_pixelsize'. - */// -static inline const char * ELEKTRA_GET (GlcdX11Pixelsize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/x11_pixelsize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/x11_pixelsize'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/x11_pixelsize'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdX11Pixelsize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/x11_pixelsize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'glcdlib/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Glcdlib) (Elektra * elektra, GlcdlibDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructGlcdlibDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'glcdlib/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Glcdlib) (Elektra * elektra, const GlcdlibDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructGlcdlibDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'glcdlib/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Glcdlib) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "glcdlib"); -} - - - -/** - * Get the value of 'glcdlib/#/CharEncoding'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/CharEncoding'. - */// -static inline const char * ELEKTRA_GET (GlcdlibCharEncoding) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/CharEncoding", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/CharEncoding'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/CharEncoding'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibCharEncoding) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/CharEncoding", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/backlight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/backlight'. - */// -static inline kdb_boolean_t ELEKTRA_GET (GlcdlibBacklight) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/backlight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/backlight'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibBacklight) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (GlcdlibBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (GlcdlibContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/driver'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/driver'. - */// -static inline const char * ELEKTRA_GET (GlcdlibDriver) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/driver", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/driver'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/driver'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibDriver) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/driver", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/file'. - */// -static inline const char * ELEKTRA_GET (GlcdlibFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/fontfile'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/fontfile'. - */// -static inline const char * ELEKTRA_GET (GlcdlibFontfile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/fontfile", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/fontfile'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/fontfile'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibFontfile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/fontfile", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/invert'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/invert'. - */// -static inline kdb_boolean_t ELEKTRA_GET (GlcdlibInvert) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/invert", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/invert'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/invert'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibInvert) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/invert", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/minfontfacesize'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/minfontfacesize'. - */// -static inline const char * ELEKTRA_GET (GlcdlibMinfontfacesize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/minfontfacesize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/minfontfacesize'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/minfontfacesize'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibMinfontfacesize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/minfontfacesize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (GlcdlibOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/pixelshiftx'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/pixelshiftx'. - */// -static inline kdb_short_t ELEKTRA_GET (GlcdlibPixelshiftx) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/pixelshiftx", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_short_t result = ELEKTRA_GET (Short) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/pixelshiftx'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/pixelshiftx'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibPixelshiftx) (Elektra * elektra, - kdb_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/pixelshiftx", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Short) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/pixelshifty'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/pixelshifty'. - */// -static inline kdb_short_t ELEKTRA_GET (GlcdlibPixelshifty) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/pixelshifty", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_short_t result = ELEKTRA_GET (Short) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/pixelshifty'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/pixelshifty'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibPixelshifty) (Elektra * elektra, - kdb_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/pixelshifty", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Short) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (GlcdlibReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/showbigborder'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/showbigborder'. - */// -static inline kdb_boolean_t ELEKTRA_GET (GlcdlibShowbigborder) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/showbigborder", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/showbigborder'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/showbigborder'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibShowbigborder) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/showbigborder", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/showdebugframe'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/showdebugframe'. - */// -static inline kdb_boolean_t ELEKTRA_GET (GlcdlibShowdebugframe) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/showdebugframe", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/showdebugframe'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/showdebugframe'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibShowdebugframe) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/showdebugframe", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/showthinborder'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/showthinborder'. - */// -static inline kdb_boolean_t ELEKTRA_GET (GlcdlibShowthinborder) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/showthinborder", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/showthinborder'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/showthinborder'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibShowthinborder) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/showthinborder", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/textresolution'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/textresolution'. - */// -static inline const char * ELEKTRA_GET (GlcdlibTextresolution) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/textresolution", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/textresolution'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/textresolution'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibTextresolution) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/textresolution", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/upsidedown'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/upsidedown'. - */// -static inline kdb_boolean_t ELEKTRA_GET (GlcdlibUpsidedown) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/upsidedown", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/upsidedown'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/upsidedown'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibUpsidedown) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/upsidedown", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/useft2'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/useft2'. - */// -static inline kdb_boolean_t ELEKTRA_GET (GlcdlibUseft2) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/useft2", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/useft2'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/useft2'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibUseft2) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/useft2", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'glk/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Glk) (Elektra * elektra, GlkDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("glk/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructGlkDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'glk/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glk/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Glk) (Elektra * elektra, const GlkDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glk/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructGlkDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'glk/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Glk) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "glk"); -} - - - -/** - * Get the value of 'glk/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glk/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (GlkBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glk/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glk/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glk/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlkBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glk/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glk/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glk/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (GlkContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glk/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glk/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glk/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlkContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glk/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glk/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glk/#/device'. - */// -static inline const char * ELEKTRA_GET (GlkDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glk/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glk/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glk/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlkDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glk/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glk/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glk/#/file'. - */// -static inline const char * ELEKTRA_GET (GlkFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glk/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glk/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glk/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlkFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glk/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glk/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glk/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (GlkOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glk/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glk/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glk/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlkOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glk/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glk/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glk/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (GlkReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glk/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glk/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glk/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlkReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glk/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glk/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glk/#/speed'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (GlkSpeed) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glk/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glk/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glk/#/speed'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlkSpeed) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glk/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'hd44780/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Hd44780) (Elektra * elektra, Hd44780DriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructHd44780DriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'hd44780/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780) (Elektra * elektra, const Hd44780DriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructHd44780DriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'hd44780/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Hd44780) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "hd44780"); -} - - - -/** - * Get the value of 'hd44780/#/backlight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/backlight'. - */// -static inline HD44780Backlight ELEKTRA_GET (Hd44780Backlight) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - HD44780Backlight result = ELEKTRA_GET (EnumHD44780Backlight) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/backlight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/backlight'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Backlight) (Elektra * elektra, - HD44780Backlight value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumHD44780Backlight) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/backlightcmdoff'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/backlightcmdoff'. - */// -static inline const char * ELEKTRA_GET (Hd44780Backlightcmdoff) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/backlightcmdoff", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/backlightcmdoff'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/backlightcmdoff'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Backlightcmdoff) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/backlightcmdoff", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/backlightcmdon'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/backlightcmdon'. - */// -static inline const char * ELEKTRA_GET (Hd44780Backlightcmdon) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/backlightcmdon", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/backlightcmdon'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/backlightcmdon'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Backlightcmdon) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/backlightcmdon", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Hd44780Brightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Brightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/charmap'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/charmap'. - */// -static inline HD44780Charmap ELEKTRA_GET (Hd44780Charmap) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/charmap", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - HD44780Charmap result = ELEKTRA_GET (EnumHD44780Charmap) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/charmap'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/charmap'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Charmap) (Elektra * elektra, - HD44780Charmap value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/charmap", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumHD44780Charmap) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/connectiontype'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/connectiontype'. - */// -static inline HD44780ConnectionType ELEKTRA_GET (Hd44780Connectiontype) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/connectiontype", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - HD44780ConnectionType result = ELEKTRA_GET (EnumHD44780ConnectionType) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/connectiontype'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/connectiontype'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Connectiontype) (Elektra * elektra, - HD44780ConnectionType value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/connectiontype", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumHD44780ConnectionType) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Hd44780Contrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Contrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/delaybus'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/delaybus'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Hd44780Delaybus) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/delaybus", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/delaybus'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/delaybus'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Delaybus) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/delaybus", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/delaymult'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/delaymult'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Hd44780Delaymult) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/delaymult", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/delaymult'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/delaymult'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Delaymult) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/delaymult", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/device'. - */// -static inline const char * ELEKTRA_GET (Hd44780Device) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Device) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/extendedmode'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/extendedmode'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Hd44780Extendedmode) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/extendedmode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/extendedmode'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/extendedmode'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Extendedmode) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/extendedmode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/file'. - */// -static inline const char * ELEKTRA_GET (Hd44780File) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780File) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/fontbank'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/fontbank'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Hd44780Fontbank) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/fontbank", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/fontbank'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/fontbank'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Fontbank) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/fontbank", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/keepalivedisplay'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/keepalivedisplay'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Hd44780Keepalivedisplay) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/keepalivedisplay", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/keepalivedisplay'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/keepalivedisplay'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Keepalivedisplay) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/keepalivedisplay", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/keymatrix_4_1'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/keymatrix_4_1'. - */// -static inline const char * ELEKTRA_GET (Hd44780Keymatrix41) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/keymatrix_4_1", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/keymatrix_4_1'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/keymatrix_4_1'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Keymatrix41) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/keymatrix_4_1", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/keymatrix_4_2'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/keymatrix_4_2'. - */// -static inline const char * ELEKTRA_GET (Hd44780Keymatrix42) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/keymatrix_4_2", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/keymatrix_4_2'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/keymatrix_4_2'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Keymatrix42) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/keymatrix_4_2", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/keymatrix_4_3'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/keymatrix_4_3'. - */// -static inline const char * ELEKTRA_GET (Hd44780Keymatrix43) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/keymatrix_4_3", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/keymatrix_4_3'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/keymatrix_4_3'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Keymatrix43) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/keymatrix_4_3", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/keymatrix_4_4'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/keymatrix_4_4'. - */// -static inline const char * ELEKTRA_GET (Hd44780Keymatrix44) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/keymatrix_4_4", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/keymatrix_4_4'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/keymatrix_4_4'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Keymatrix44) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/keymatrix_4_4", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/keypad'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/keypad'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Hd44780Keypad) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/keypad", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/keypad'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/keypad'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Keypad) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/keypad", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/lastline'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/lastline'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Hd44780Lastline) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/lastline", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/lastline'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/lastline'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Lastline) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/lastline", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/lineaddress'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/lineaddress'. - */// -static inline const char * ELEKTRA_GET (Hd44780Lineaddress) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/lineaddress", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/lineaddress'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/lineaddress'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Lineaddress) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/lineaddress", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/model'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/model'. - */// -static inline ElektraEnumHd44780Model ELEKTRA_GET (Hd44780Model) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/model", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ElektraEnumHd44780Model result = ELEKTRA_GET (EnumHd44780Model) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/model'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/model'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Model) (Elektra * elektra, - ElektraEnumHd44780Model value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/model", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumHd44780Model) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Hd44780Offbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Offbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/outputport'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/outputport'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Hd44780Outputport) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/outputport", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/outputport'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/outputport'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Outputport) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/outputport", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/port'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/port'. - */// -static inline const char * ELEKTRA_GET (Hd44780Port) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/port'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/port'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Port) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Hd44780Reboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Reboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/refreshdisplay'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/refreshdisplay'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Hd44780Refreshdisplay) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/refreshdisplay", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/refreshdisplay'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/refreshdisplay'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Refreshdisplay) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/refreshdisplay", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/size'. - */// -static inline const char * ELEKTRA_GET (Hd44780Size) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Size) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/speed'. - */// -static inline kdb_unsigned_long_t ELEKTRA_GET (Hd44780Speed) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/speed'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Speed) (Elektra * elektra, - kdb_unsigned_long_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/vspan'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/vspan'. - */// -static inline const char * ELEKTRA_GET (Hd44780Vspan) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/vspan", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/vspan'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/vspan'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Vspan) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/vspan", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'icp_a106/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (IcpA106) (Elektra * elektra, Icp_a106DriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("icp_a106/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructIcp_a106DriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'icp_a106/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'icp_a106/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IcpA106) (Elektra * elektra, const Icp_a106DriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("icp_a106/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructIcp_a106DriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'icp_a106/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (IcpA106) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "icp_a106"); -} - - - -/** - * Get the value of 'icp_a106/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'icp_a106/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (IcpA106Brightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("icp_a106/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'icp_a106/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'icp_a106/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IcpA106Brightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("icp_a106/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'icp_a106/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'icp_a106/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (IcpA106Contrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("icp_a106/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'icp_a106/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'icp_a106/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IcpA106Contrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("icp_a106/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'icp_a106/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'icp_a106/#/device'. - */// -static inline const char * ELEKTRA_GET (IcpA106Device) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("icp_a106/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'icp_a106/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'icp_a106/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IcpA106Device) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("icp_a106/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'icp_a106/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'icp_a106/#/file'. - */// -static inline const char * ELEKTRA_GET (IcpA106File) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("icp_a106/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'icp_a106/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'icp_a106/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IcpA106File) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("icp_a106/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'icp_a106/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'icp_a106/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (IcpA106Offbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("icp_a106/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'icp_a106/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'icp_a106/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IcpA106Offbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("icp_a106/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'icp_a106/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'icp_a106/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (IcpA106Reboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("icp_a106/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'icp_a106/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'icp_a106/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IcpA106Reboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("icp_a106/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'icp_a106/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'icp_a106/#/size'. - */// -static inline const char * ELEKTRA_GET (IcpA106Size) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("icp_a106/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'icp_a106/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'icp_a106/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IcpA106Size) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("icp_a106/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'imon/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Imon) (Elektra * elektra, ImonDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructImonDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'imon/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imon/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Imon) (Elektra * elektra, const ImonDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructImonDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'imon/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Imon) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "imon"); -} - - - -/** - * Get the value of 'imon/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imon/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (ImonBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imon/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imon/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'imon/#/charmap'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imon/#/charmap'. - */// -static inline IMonCharmap ELEKTRA_GET (ImonCharmap) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld/charmap", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - IMonCharmap result = ELEKTRA_GET (EnumIMonCharmap) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imon/#/charmap'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imon/#/charmap'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonCharmap) (Elektra * elektra, - IMonCharmap value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld/charmap", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumIMonCharmap) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'imon/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imon/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (ImonContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imon/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imon/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'imon/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imon/#/device'. - */// -static inline const char * ELEKTRA_GET (ImonDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imon/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imon/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'imon/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imon/#/file'. - */// -static inline const char * ELEKTRA_GET (ImonFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imon/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imon/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'imon/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imon/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (ImonOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imon/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imon/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'imon/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imon/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (ImonReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imon/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imon/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'imon/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imon/#/size'. - */// -static inline const char * ELEKTRA_GET (ImonSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imon/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imon/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'imonlcd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Imonlcd) (Elektra * elektra, ImonlcdDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructImonlcdDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'imonlcd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imonlcd/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Imonlcd) (Elektra * elektra, const ImonlcdDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructImonlcdDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'imonlcd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Imonlcd) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "imonlcd"); -} - - - -/** - * Get the value of 'imonlcd/#/backlight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imonlcd/#/backlight'. - */// -static inline kdb_boolean_t ELEKTRA_GET (ImonlcdBacklight) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imonlcd/#/backlight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imonlcd/#/backlight'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonlcdBacklight) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'imonlcd/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imonlcd/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (ImonlcdBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imonlcd/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imonlcd/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonlcdBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'imonlcd/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imonlcd/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (ImonlcdContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imonlcd/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imonlcd/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonlcdContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'imonlcd/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imonlcd/#/device'. - */// -static inline const char * ELEKTRA_GET (ImonlcdDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imonlcd/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imonlcd/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonlcdDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'imonlcd/#/discmode'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imonlcd/#/discmode'. - */// -static inline IMonLCDDiscMode ELEKTRA_GET (ImonlcdDiscmode) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/discmode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - IMonLCDDiscMode result = ELEKTRA_GET (EnumIMonLCDDiscMode) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imonlcd/#/discmode'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imonlcd/#/discmode'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonlcdDiscmode) (Elektra * elektra, - IMonLCDDiscMode value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/discmode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumIMonLCDDiscMode) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'imonlcd/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imonlcd/#/file'. - */// -static inline const char * ELEKTRA_GET (ImonlcdFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imonlcd/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imonlcd/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonlcdFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'imonlcd/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imonlcd/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (ImonlcdOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imonlcd/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imonlcd/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonlcdOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'imonlcd/#/onexit'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imonlcd/#/onexit'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (ImonlcdOnexit) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/onexit", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imonlcd/#/onexit'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imonlcd/#/onexit'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonlcdOnexit) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/onexit", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'imonlcd/#/protocol'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imonlcd/#/protocol'. - */// -static inline const char * ELEKTRA_GET (ImonlcdProtocol) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/protocol", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imonlcd/#/protocol'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imonlcd/#/protocol'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonlcdProtocol) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/protocol", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'imonlcd/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imonlcd/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (ImonlcdReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imonlcd/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imonlcd/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonlcdReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'imonlcd/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imonlcd/#/size'. - */// -static inline const char * ELEKTRA_GET (ImonlcdSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imonlcd/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imonlcd/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonlcdSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'iowarrior/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Iowarrior) (Elektra * elektra, IOWarriorDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructIOWarriorDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'iowarrior/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'iowarrior/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Iowarrior) (Elektra * elektra, const IOWarriorDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructIOWarriorDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'iowarrior/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Iowarrior) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "iowarrior"); -} - - - -/** - * Get the value of 'iowarrior/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'iowarrior/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (IowarriorBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'iowarrior/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'iowarrior/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IowarriorBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'iowarrior/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'iowarrior/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (IowarriorContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'iowarrior/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'iowarrior/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IowarriorContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'iowarrior/#/extendedmode'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'iowarrior/#/extendedmode'. - */// -static inline kdb_boolean_t ELEKTRA_GET (IowarriorExtendedmode) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/extendedmode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'iowarrior/#/extendedmode'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'iowarrior/#/extendedmode'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IowarriorExtendedmode) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/extendedmode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'iowarrior/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'iowarrior/#/file'. - */// -static inline const char * ELEKTRA_GET (IowarriorFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'iowarrior/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'iowarrior/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IowarriorFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'iowarrior/#/lastline'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'iowarrior/#/lastline'. - */// -static inline kdb_boolean_t ELEKTRA_GET (IowarriorLastline) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/lastline", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'iowarrior/#/lastline'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'iowarrior/#/lastline'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IowarriorLastline) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/lastline", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'iowarrior/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'iowarrior/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (IowarriorOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'iowarrior/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'iowarrior/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IowarriorOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'iowarrior/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'iowarrior/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (IowarriorReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'iowarrior/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'iowarrior/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IowarriorReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'iowarrior/#/serialnumber'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'iowarrior/#/serialnumber'. - */// -static inline const char * ELEKTRA_GET (IowarriorSerialnumber) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/serialnumber", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'iowarrior/#/serialnumber'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'iowarrior/#/serialnumber'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IowarriorSerialnumber) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/serialnumber", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'iowarrior/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'iowarrior/#/size'. - */// -static inline const char * ELEKTRA_GET (IowarriorSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'iowarrior/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'iowarrior/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IowarriorSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'irman/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Irman) (Elektra * elektra, IrManDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("irman/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructIrManDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'irman/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'irman/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Irman) (Elektra * elektra, const IrManDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("irman/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructIrManDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'irman/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Irman) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "irman"); -} - - - -/** - * Get the value of 'irman/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'irman/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (IrmanBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("irman/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'irman/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'irman/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IrmanBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("irman/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'irman/#/config'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'irman/#/config'. - */// -static inline const char * ELEKTRA_GET (IrmanConfig) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("irman/%*.*s%lld/config", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'irman/#/config'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'irman/#/config'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IrmanConfig) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("irman/%*.*s%lld/config", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'irman/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'irman/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (IrmanContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("irman/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'irman/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'irman/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IrmanContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("irman/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'irman/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'irman/#/device'. - */// -static inline const char * ELEKTRA_GET (IrmanDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("irman/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'irman/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'irman/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IrmanDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("irman/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'irman/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'irman/#/file'. - */// -static inline const char * ELEKTRA_GET (IrmanFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("irman/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'irman/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'irman/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IrmanFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("irman/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'irman/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'irman/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (IrmanOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("irman/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'irman/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'irman/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IrmanOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("irman/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'irman/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'irman/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (IrmanReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("irman/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'irman/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'irman/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IrmanReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("irman/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'irtrans/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Irtrans) (Elektra * elektra, IrtransDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructIrtransDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'irtrans/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'irtrans/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Irtrans) (Elektra * elektra, const IrtransDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructIrtransDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'irtrans/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Irtrans) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "irtrans"); -} - - - -/** - * Get the value of 'irtrans/#/backlight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'irtrans/#/backlight'. - */// -static inline kdb_boolean_t ELEKTRA_GET (IrtransBacklight) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'irtrans/#/backlight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'irtrans/#/backlight'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IrtransBacklight) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'irtrans/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'irtrans/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (IrtransBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'irtrans/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'irtrans/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IrtransBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'irtrans/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'irtrans/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (IrtransContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'irtrans/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'irtrans/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IrtransContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'irtrans/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'irtrans/#/file'. - */// -static inline const char * ELEKTRA_GET (IrtransFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'irtrans/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'irtrans/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IrtransFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'irtrans/#/hostname'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'irtrans/#/hostname'. - */// -static inline const char * ELEKTRA_GET (IrtransHostname) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld/hostname", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'irtrans/#/hostname'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'irtrans/#/hostname'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IrtransHostname) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld/hostname", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'irtrans/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'irtrans/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (IrtransOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'irtrans/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'irtrans/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IrtransOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'irtrans/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'irtrans/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (IrtransReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'irtrans/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'irtrans/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IrtransReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'irtrans/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'irtrans/#/size'. - */// -static inline const char * ELEKTRA_GET (IrtransSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'irtrans/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'irtrans/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IrtransSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'joy/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Joy) (Elektra * elektra, JoyDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructJoyDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'joy/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'joy/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Joy) (Elektra * elektra, const JoyDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructJoyDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'joy/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Joy) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "joy"); -} - - - -/** - * Get the value of 'joy/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'joy/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (JoyBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'joy/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'joy/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (JoyBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'joy/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'joy/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (JoyContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'joy/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'joy/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (JoyContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'joy/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'joy/#/device'. - */// -static inline const char * ELEKTRA_GET (JoyDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'joy/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'joy/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (JoyDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'joy/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'joy/#/file'. - */// -static inline const char * ELEKTRA_GET (JoyFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'joy/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'joy/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (JoyFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'joy/#/map_axis1neg'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'joy/#/map_axis1neg'. - */// -static inline const char * ELEKTRA_GET (JoyMapAxis1neg) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/map_axis1neg", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'joy/#/map_axis1neg'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'joy/#/map_axis1neg'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (JoyMapAxis1neg) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/map_axis1neg", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'joy/#/map_axis1pos'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'joy/#/map_axis1pos'. - */// -static inline const char * ELEKTRA_GET (JoyMapAxis1pos) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/map_axis1pos", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'joy/#/map_axis1pos'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'joy/#/map_axis1pos'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (JoyMapAxis1pos) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/map_axis1pos", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'joy/#/map_axis2neg'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'joy/#/map_axis2neg'. - */// -static inline const char * ELEKTRA_GET (JoyMapAxis2neg) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/map_axis2neg", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'joy/#/map_axis2neg'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'joy/#/map_axis2neg'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (JoyMapAxis2neg) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/map_axis2neg", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'joy/#/map_axis2pos'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'joy/#/map_axis2pos'. - */// -static inline const char * ELEKTRA_GET (JoyMapAxis2pos) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/map_axis2pos", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'joy/#/map_axis2pos'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'joy/#/map_axis2pos'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (JoyMapAxis2pos) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/map_axis2pos", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'joy/#/map_button1'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'joy/#/map_button1'. - */// -static inline const char * ELEKTRA_GET (JoyMapButton1) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/map_button1", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'joy/#/map_button1'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'joy/#/map_button1'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (JoyMapButton1) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/map_button1", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'joy/#/map_button2'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'joy/#/map_button2'. - */// -static inline const char * ELEKTRA_GET (JoyMapButton2) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/map_button2", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'joy/#/map_button2'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'joy/#/map_button2'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (JoyMapButton2) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/map_button2", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'joy/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'joy/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (JoyOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'joy/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'joy/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (JoyOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'joy/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'joy/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (JoyReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'joy/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'joy/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (JoyReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'lb216/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Lb216) (Elektra * elektra, Lb216DriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("lb216/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructLb216DriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'lb216/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lb216/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lb216) (Elektra * elektra, const Lb216DriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lb216/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructLb216DriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'lb216/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Lb216) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "lb216"); -} - - - -/** - * Get the value of 'lb216/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lb216/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Lb216Brightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lb216/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lb216/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lb216/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lb216Brightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lb216/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lb216/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lb216/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Lb216Contrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lb216/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lb216/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lb216/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lb216Contrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lb216/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lb216/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lb216/#/device'. - */// -static inline const char * ELEKTRA_GET (Lb216Device) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lb216/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lb216/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lb216/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lb216Device) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lb216/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lb216/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lb216/#/file'. - */// -static inline const char * ELEKTRA_GET (Lb216File) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lb216/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lb216/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lb216/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lb216File) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lb216/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lb216/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lb216/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Lb216Offbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lb216/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lb216/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lb216/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lb216Offbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lb216/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lb216/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lb216/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Lb216Reboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lb216/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lb216/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lb216/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lb216Reboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lb216/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lb216/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lb216/#/speed'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Lb216Speed) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lb216/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lb216/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lb216/#/speed'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lb216Speed) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lb216/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'lcdm001/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Lcdm001) (Elektra * elektra, Lcdm001DriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructLcdm001DriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'lcdm001/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lcdm001/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lcdm001) (Elektra * elektra, const Lcdm001DriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructLcdm001DriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'lcdm001/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Lcdm001) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "lcdm001"); -} - - - -/** - * Get the value of 'lcdm001/#/backkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lcdm001/#/backkey'. - */// -static inline const char * ELEKTRA_GET (Lcdm001Backkey) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld/backkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lcdm001/#/backkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lcdm001/#/backkey'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lcdm001Backkey) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld/backkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lcdm001/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lcdm001/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Lcdm001Brightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lcdm001/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lcdm001/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lcdm001Brightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lcdm001/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lcdm001/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Lcdm001Contrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lcdm001/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lcdm001/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lcdm001Contrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lcdm001/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lcdm001/#/device'. - */// -static inline const char * ELEKTRA_GET (Lcdm001Device) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lcdm001/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lcdm001/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lcdm001Device) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lcdm001/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lcdm001/#/file'. - */// -static inline const char * ELEKTRA_GET (Lcdm001File) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lcdm001/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lcdm001/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lcdm001File) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lcdm001/#/forwardkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lcdm001/#/forwardkey'. - */// -static inline const char * ELEKTRA_GET (Lcdm001Forwardkey) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld/forwardkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lcdm001/#/forwardkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lcdm001/#/forwardkey'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lcdm001Forwardkey) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld/forwardkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lcdm001/#/mainmenukey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lcdm001/#/mainmenukey'. - */// -static inline const char * ELEKTRA_GET (Lcdm001Mainmenukey) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld/mainmenukey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lcdm001/#/mainmenukey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lcdm001/#/mainmenukey'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lcdm001Mainmenukey) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld/mainmenukey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lcdm001/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lcdm001/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Lcdm001Offbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lcdm001/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lcdm001/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lcdm001Offbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lcdm001/#/pausekey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lcdm001/#/pausekey'. - */// -static inline const char * ELEKTRA_GET (Lcdm001Pausekey) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld/pausekey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lcdm001/#/pausekey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lcdm001/#/pausekey'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lcdm001Pausekey) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld/pausekey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lcdm001/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lcdm001/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Lcdm001Reboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lcdm001/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lcdm001/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lcdm001Reboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'lcterm/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Lcterm) (Elektra * elektra, LctermDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("lcterm/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructLctermDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'lcterm/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lcterm/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lcterm) (Elektra * elektra, const LctermDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lcterm/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructLctermDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'lcterm/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Lcterm) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "lcterm"); -} - - - -/** - * Get the value of 'lcterm/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lcterm/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (LctermBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lcterm/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lcterm/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lcterm/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LctermBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lcterm/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lcterm/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lcterm/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (LctermContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lcterm/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lcterm/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lcterm/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LctermContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lcterm/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lcterm/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lcterm/#/device'. - */// -static inline const char * ELEKTRA_GET (LctermDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lcterm/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lcterm/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lcterm/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LctermDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lcterm/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lcterm/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lcterm/#/file'. - */// -static inline const char * ELEKTRA_GET (LctermFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lcterm/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lcterm/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lcterm/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LctermFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lcterm/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lcterm/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lcterm/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (LctermOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lcterm/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lcterm/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lcterm/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LctermOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lcterm/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lcterm/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lcterm/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (LctermReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lcterm/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lcterm/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lcterm/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LctermReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lcterm/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lcterm/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lcterm/#/size'. - */// -static inline const char * ELEKTRA_GET (LctermSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lcterm/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lcterm/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lcterm/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LctermSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lcterm/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'linux_input/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (LinuxInput) (Elektra * elektra, Linux_inputDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("linux_input/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructLinux_inputDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'linux_input/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'linux_input/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LinuxInput) (Elektra * elektra, const Linux_inputDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("linux_input/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructLinux_inputDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'linux_input/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (LinuxInput) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "linux_input"); -} - - - -/** - * Get the value of 'linux_input/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'linux_input/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (LinuxInputBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("linux_input/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'linux_input/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'linux_input/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LinuxInputBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("linux_input/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'linux_input/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'linux_input/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (LinuxInputContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("linux_input/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'linux_input/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'linux_input/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LinuxInputContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("linux_input/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'linux_input/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'linux_input/#/device'. - */// -static inline const char * ELEKTRA_GET (LinuxInputDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("linux_input/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'linux_input/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'linux_input/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LinuxInputDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("linux_input/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'linux_input/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'linux_input/#/file'. - */// -static inline const char * ELEKTRA_GET (LinuxInputFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("linux_input/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'linux_input/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'linux_input/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LinuxInputFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("linux_input/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'linux_input/#/key/_'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param name1 Replaces occurence no. 1 of _ in the keyname. - * - * @return the value of 'linux_input/#/key/_'. - */// -static inline const char * ELEKTRA_GET (LinuxInputKey) (Elektra * elektra , - kdb_long_long_t index1 , - const char * name1 ) -{ - - - char * name = elektraFormat ("linux_input/%*.*s%lld/key/%s", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 , - name1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'linux_input/#/key/_'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'linux_input/#/key/_'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param name1 Replaces occurence no. 1 of _ in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LinuxInputKey) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, - const char * name1, ElektraError ** error) -{ - - - char * name = elektraFormat ("linux_input/%*.*s%lld/key/%s", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 , - name1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'linux_input/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'linux_input/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (LinuxInputOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("linux_input/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'linux_input/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'linux_input/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LinuxInputOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("linux_input/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'linux_input/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'linux_input/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (LinuxInputReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("linux_input/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'linux_input/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'linux_input/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LinuxInputReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("linux_input/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'lirc/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Lirc) (Elektra * elektra, LircDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("lirc/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructLircDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'lirc/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lirc/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lirc) (Elektra * elektra, const LircDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lirc/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructLircDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'lirc/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Lirc) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "lirc"); -} - - - -/** - * Get the value of 'lirc/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lirc/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (LircBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lirc/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lirc/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lirc/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LircBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lirc/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lirc/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lirc/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (LircContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lirc/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lirc/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lirc/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LircContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lirc/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lirc/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lirc/#/file'. - */// -static inline const char * ELEKTRA_GET (LircFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lirc/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lirc/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lirc/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LircFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lirc/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lirc/#/lircrc'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lirc/#/lircrc'. - */// -static inline const char * ELEKTRA_GET (LircLircrc) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lirc/%*.*s%lld/lircrc", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lirc/#/lircrc'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lirc/#/lircrc'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LircLircrc) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lirc/%*.*s%lld/lircrc", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lirc/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lirc/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (LircOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lirc/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lirc/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lirc/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LircOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lirc/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lirc/#/prog'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lirc/#/prog'. - */// -static inline const char * ELEKTRA_GET (LircProg) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lirc/%*.*s%lld/prog", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lirc/#/prog'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lirc/#/prog'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LircProg) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lirc/%*.*s%lld/prog", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lirc/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lirc/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (LircReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lirc/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lirc/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lirc/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LircReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lirc/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'lis/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Lis) (Elektra * elektra, LisDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructLisDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'lis/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lis/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lis) (Elektra * elektra, const LisDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructLisDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'lis/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Lis) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "lis"); -} - - - -/** - * Get the value of 'lis/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lis/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (LisBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lis/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lis/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LisBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lis/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lis/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (LisContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lis/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lis/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LisContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lis/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lis/#/file'. - */// -static inline const char * ELEKTRA_GET (LisFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lis/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lis/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LisFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lis/#/lastline'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lis/#/lastline'. - */// -static inline kdb_boolean_t ELEKTRA_GET (LisLastline) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/lastline", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lis/#/lastline'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lis/#/lastline'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LisLastline) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/lastline", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lis/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lis/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (LisOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lis/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lis/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LisOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lis/#/productid'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lis/#/productid'. - */// -static inline const char * ELEKTRA_GET (LisProductid) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/productid", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lis/#/productid'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lis/#/productid'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LisProductid) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/productid", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lis/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lis/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (LisReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lis/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lis/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LisReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lis/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lis/#/size'. - */// -static inline const char * ELEKTRA_GET (LisSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lis/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lis/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LisSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lis/#/vendorid'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lis/#/vendorid'. - */// -static inline const char * ELEKTRA_GET (LisVendorid) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/vendorid", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lis/#/vendorid'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lis/#/vendorid'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LisVendorid) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/vendorid", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'md8800/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Md8800) (Elektra * elektra, MD8800DriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("md8800/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructMD8800DriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'md8800/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'md8800/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Md8800) (Elektra * elektra, const MD8800DriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("md8800/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructMD8800DriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'md8800/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Md8800) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "md8800"); -} - - - -/** - * Get the value of 'md8800/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'md8800/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Md8800Brightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("md8800/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'md8800/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'md8800/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Md8800Brightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("md8800/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'md8800/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'md8800/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Md8800Contrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("md8800/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'md8800/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'md8800/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Md8800Contrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("md8800/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'md8800/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'md8800/#/device'. - */// -static inline const char * ELEKTRA_GET (Md8800Device) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("md8800/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'md8800/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'md8800/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Md8800Device) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("md8800/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'md8800/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'md8800/#/file'. - */// -static inline const char * ELEKTRA_GET (Md8800File) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("md8800/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'md8800/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'md8800/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Md8800File) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("md8800/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'md8800/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'md8800/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Md8800Offbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("md8800/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'md8800/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'md8800/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Md8800Offbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("md8800/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'md8800/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'md8800/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Md8800Reboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("md8800/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'md8800/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'md8800/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Md8800Reboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("md8800/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'md8800/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'md8800/#/size'. - */// -static inline const char * ELEKTRA_GET (Md8800Size) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("md8800/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'md8800/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'md8800/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Md8800Size) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("md8800/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'mdm166a/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Mdm166a) (Elektra * elektra, Mdm166aDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructMdm166aDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'mdm166a/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mdm166a/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mdm166a) (Elektra * elektra, const Mdm166aDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructMdm166aDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'mdm166a/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Mdm166a) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "mdm166a"); -} - - - -/** - * Get the value of 'mdm166a/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mdm166a/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Mdm166aBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mdm166a/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mdm166a/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mdm166aBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mdm166a/#/clock'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mdm166a/#/clock'. - */// -static inline ElektraEnumMdm166aClock ELEKTRA_GET (Mdm166aClock) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld/clock", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ElektraEnumMdm166aClock result = ELEKTRA_GET (EnumMdm166aClock) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mdm166a/#/clock'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mdm166a/#/clock'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mdm166aClock) (Elektra * elektra, - ElektraEnumMdm166aClock value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld/clock", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumMdm166aClock) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mdm166a/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mdm166a/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Mdm166aContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mdm166a/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mdm166a/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mdm166aContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mdm166a/#/dimming'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mdm166a/#/dimming'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Mdm166aDimming) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld/dimming", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mdm166a/#/dimming'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mdm166a/#/dimming'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mdm166aDimming) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld/dimming", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mdm166a/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mdm166a/#/file'. - */// -static inline const char * ELEKTRA_GET (Mdm166aFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mdm166a/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mdm166a/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mdm166aFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mdm166a/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mdm166a/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Mdm166aOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mdm166a/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mdm166a/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mdm166aOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mdm166a/#/offdimming'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mdm166a/#/offdimming'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Mdm166aOffdimming) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld/offdimming", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mdm166a/#/offdimming'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mdm166a/#/offdimming'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mdm166aOffdimming) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld/offdimming", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mdm166a/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mdm166a/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Mdm166aReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mdm166a/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mdm166a/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mdm166aReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'menu/downkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'menu/downkey'. - */// -static inline const char * ELEKTRA_GET (MenuDownkey) (Elektra * elektra ) -{ - - return ELEKTRA_GET (String) (elektra, "menu/downkey"); -} - - -/** - * Set the value of 'menu/downkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'menu/downkey'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MenuDownkey) (Elektra * elektra, - const char * value, ElektraError ** error) -{ - - ELEKTRA_SET (String) (elektra, "menu/downkey", value, error); -} - - - - -/** - * Get the value of 'menu/enterkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'menu/enterkey'. - */// -static inline const char * ELEKTRA_GET (MenuEnterkey) (Elektra * elektra ) -{ - - return ELEKTRA_GET (String) (elektra, "menu/enterkey"); -} - - -/** - * Set the value of 'menu/enterkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'menu/enterkey'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MenuEnterkey) (Elektra * elektra, - const char * value, ElektraError ** error) -{ - - ELEKTRA_SET (String) (elektra, "menu/enterkey", value, error); -} - - - - -/** - * Get the value of 'menu/leftkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'menu/leftkey'. - */// -static inline const char * ELEKTRA_GET (MenuLeftkey) (Elektra * elektra ) -{ - - return ELEKTRA_GET (String) (elektra, "menu/leftkey"); -} - - -/** - * Set the value of 'menu/leftkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'menu/leftkey'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MenuLeftkey) (Elektra * elektra, - const char * value, ElektraError ** error) -{ - - ELEKTRA_SET (String) (elektra, "menu/leftkey", value, error); -} - - - - -/** - * Get the value of 'menu/menukey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'menu/menukey'. - */// -static inline const char * ELEKTRA_GET (MenuMenukey) (Elektra * elektra ) -{ - - return ELEKTRA_GET (String) (elektra, "menu/menukey"); -} - - -/** - * Set the value of 'menu/menukey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'menu/menukey'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MenuMenukey) (Elektra * elektra, - const char * value, ElektraError ** error) -{ - - ELEKTRA_SET (String) (elektra, "menu/menukey", value, error); -} - - - - -/** - * Get the value of 'menu/permissivegoto'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'menu/permissivegoto'. - */// -static inline kdb_boolean_t ELEKTRA_GET (MenuPermissivegoto) (Elektra * elektra ) -{ - - return ELEKTRA_GET (Boolean) (elektra, "menu/permissivegoto"); -} - - -/** - * Set the value of 'menu/permissivegoto'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'menu/permissivegoto'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MenuPermissivegoto) (Elektra * elektra, - kdb_boolean_t value, ElektraError ** error) -{ - - ELEKTRA_SET (Boolean) (elektra, "menu/permissivegoto", value, error); -} - - - - -/** - * Get the value of 'menu/rightkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'menu/rightkey'. - */// -static inline const char * ELEKTRA_GET (MenuRightkey) (Elektra * elektra ) -{ - - return ELEKTRA_GET (String) (elektra, "menu/rightkey"); -} - - -/** - * Set the value of 'menu/rightkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'menu/rightkey'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MenuRightkey) (Elektra * elektra, - const char * value, ElektraError ** error) -{ - - ELEKTRA_SET (String) (elektra, "menu/rightkey", value, error); -} - - - - -/** - * Get the value of 'menu/upkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'menu/upkey'. - */// -static inline const char * ELEKTRA_GET (MenuUpkey) (Elektra * elektra ) -{ - - return ELEKTRA_GET (String) (elektra, "menu/upkey"); -} - - -/** - * Set the value of 'menu/upkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'menu/upkey'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MenuUpkey) (Elektra * elektra, - const char * value, ElektraError ** error) -{ - - ELEKTRA_SET (String) (elektra, "menu/upkey", value, error); -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'ms6931/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Ms6931) (Elektra * elektra, Ms6931DriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("ms6931/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructMs6931DriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'ms6931/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ms6931/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ms6931) (Elektra * elektra, const Ms6931DriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ms6931/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructMs6931DriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'ms6931/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Ms6931) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "ms6931"); -} - - - -/** - * Get the value of 'ms6931/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ms6931/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Ms6931Brightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ms6931/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ms6931/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ms6931/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ms6931Brightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ms6931/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ms6931/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ms6931/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Ms6931Contrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ms6931/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ms6931/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ms6931/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ms6931Contrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ms6931/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ms6931/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ms6931/#/device'. - */// -static inline const char * ELEKTRA_GET (Ms6931Device) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ms6931/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ms6931/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ms6931/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ms6931Device) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ms6931/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ms6931/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ms6931/#/file'. - */// -static inline const char * ELEKTRA_GET (Ms6931File) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ms6931/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ms6931/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ms6931/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ms6931File) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ms6931/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ms6931/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ms6931/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Ms6931Offbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ms6931/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ms6931/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ms6931/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ms6931Offbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ms6931/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ms6931/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ms6931/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Ms6931Reboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ms6931/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ms6931/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ms6931/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ms6931Reboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ms6931/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ms6931/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ms6931/#/size'. - */// -static inline const char * ELEKTRA_GET (Ms6931Size) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ms6931/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ms6931/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ms6931/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ms6931Size) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ms6931/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'mtc_s16209x/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (MtcS16209x) (Elektra * elektra, Mtc_s16209xDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("mtc_s16209x/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructMtc_s16209xDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'mtc_s16209x/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtc_s16209x/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtcS16209x) (Elektra * elektra, const Mtc_s16209xDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtc_s16209x/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructMtc_s16209xDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'mtc_s16209x/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (MtcS16209x) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "mtc_s16209x"); -} - - - -/** - * Get the value of 'mtc_s16209x/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtc_s16209x/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (MtcS16209xBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtc_s16209x/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtc_s16209x/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtcS16209xBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtc_s16209x/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtc_s16209x/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (MtcS16209xContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtc_s16209x/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtc_s16209x/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtcS16209xContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtc_s16209x/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtc_s16209x/#/device'. - */// -static inline const char * ELEKTRA_GET (MtcS16209xDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtc_s16209x/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtc_s16209x/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtcS16209xDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtc_s16209x/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtc_s16209x/#/file'. - */// -static inline const char * ELEKTRA_GET (MtcS16209xFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtc_s16209x/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtc_s16209x/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtcS16209xFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtc_s16209x/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtc_s16209x/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (MtcS16209xOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtc_s16209x/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtc_s16209x/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtcS16209xOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtc_s16209x/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtc_s16209x/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (MtcS16209xReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtc_s16209x/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtc_s16209x/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtcS16209xReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'mtxorb/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Mtxorb) (Elektra * elektra, MtxOrbDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructMtxOrbDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'mtxorb/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtxorb/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mtxorb) (Elektra * elektra, const MtxOrbDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructMtxOrbDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'mtxorb/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Mtxorb) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "mtxorb"); -} - - - -/** - * Get the value of 'mtxorb/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtxorb/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (MtxorbBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtxorb/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtxorb/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtxorbBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtxorb/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtxorb/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (MtxorbContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtxorb/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtxorb/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtxorbContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtxorb/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtxorb/#/device'. - */// -static inline const char * ELEKTRA_GET (MtxorbDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtxorb/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtxorb/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtxorbDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtxorb/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtxorb/#/file'. - */// -static inline const char * ELEKTRA_GET (MtxorbFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtxorb/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtxorb/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtxorbFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtxorb/#/hasadjustablebacklight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtxorb/#/hasadjustablebacklight'. - */// -static inline kdb_boolean_t ELEKTRA_GET (MtxorbHasadjustablebacklight) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/hasadjustablebacklight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtxorb/#/hasadjustablebacklight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtxorb/#/hasadjustablebacklight'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtxorbHasadjustablebacklight) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/hasadjustablebacklight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtxorb/#/keymap_a'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtxorb/#/keymap_a'. - */// -static inline const char * ELEKTRA_GET (MtxorbKeymapA) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_a", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtxorb/#/keymap_a'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtxorb/#/keymap_a'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtxorbKeymapA) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_a", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtxorb/#/keymap_b'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtxorb/#/keymap_b'. - */// -static inline const char * ELEKTRA_GET (MtxorbKeymapB) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_b", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtxorb/#/keymap_b'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtxorb/#/keymap_b'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtxorbKeymapB) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_b", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtxorb/#/keymap_c'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtxorb/#/keymap_c'. - */// -static inline const char * ELEKTRA_GET (MtxorbKeymapC) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_c", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtxorb/#/keymap_c'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtxorb/#/keymap_c'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtxorbKeymapC) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_c", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtxorb/#/keymap_d'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtxorb/#/keymap_d'. - */// -static inline const char * ELEKTRA_GET (MtxorbKeymapD) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_d", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtxorb/#/keymap_d'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtxorb/#/keymap_d'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtxorbKeymapD) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_d", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtxorb/#/keymap_e'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtxorb/#/keymap_e'. - */// -static inline const char * ELEKTRA_GET (MtxorbKeymapE) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_e", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtxorb/#/keymap_e'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtxorb/#/keymap_e'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtxorbKeymapE) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_e", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtxorb/#/keymap_f'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtxorb/#/keymap_f'. - */// -static inline const char * ELEKTRA_GET (MtxorbKeymapF) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_f", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtxorb/#/keymap_f'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtxorb/#/keymap_f'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtxorbKeymapF) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_f", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtxorb/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtxorb/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (MtxorbOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtxorb/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtxorb/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtxorbOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtxorb/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtxorb/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (MtxorbReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtxorb/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtxorb/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtxorbReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtxorb/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtxorb/#/size'. - */// -static inline const char * ELEKTRA_GET (MtxorbSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtxorb/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtxorb/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtxorbSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtxorb/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtxorb/#/speed'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (MtxorbSpeed) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtxorb/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtxorb/#/speed'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtxorbSpeed) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtxorb/#/type'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtxorb/#/type'. - */// -static inline ElektraEnumMtxorbType ELEKTRA_GET (MtxorbType) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/type", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ElektraEnumMtxorbType result = ELEKTRA_GET (EnumMtxorbType) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtxorb/#/type'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtxorb/#/type'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtxorbType) (Elektra * elektra, - ElektraEnumMtxorbType value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/type", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumMtxorbType) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'mx5000/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Mx5000) (Elektra * elektra, Mx5000DriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("mx5000/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructMx5000DriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'mx5000/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mx5000/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mx5000) (Elektra * elektra, const Mx5000DriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mx5000/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructMx5000DriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'mx5000/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Mx5000) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "mx5000"); -} - - - -/** - * Get the value of 'mx5000/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mx5000/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Mx5000Brightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mx5000/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mx5000/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mx5000/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mx5000Brightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mx5000/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mx5000/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mx5000/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Mx5000Contrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mx5000/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mx5000/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mx5000/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mx5000Contrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mx5000/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mx5000/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mx5000/#/device'. - */// -static inline const char * ELEKTRA_GET (Mx5000Device) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mx5000/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mx5000/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mx5000/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mx5000Device) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mx5000/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mx5000/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mx5000/#/file'. - */// -static inline const char * ELEKTRA_GET (Mx5000File) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mx5000/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mx5000/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mx5000/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mx5000File) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mx5000/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mx5000/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mx5000/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Mx5000Offbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mx5000/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mx5000/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mx5000/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mx5000Offbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mx5000/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mx5000/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mx5000/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Mx5000Reboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mx5000/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mx5000/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mx5000/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mx5000Reboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mx5000/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mx5000/#/waitafterrefresh'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mx5000/#/waitafterrefresh'. - */// -static inline kdb_unsigned_long_t ELEKTRA_GET (Mx5000Waitafterrefresh) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mx5000/%*.*s%lld/waitafterrefresh", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mx5000/#/waitafterrefresh'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mx5000/#/waitafterrefresh'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mx5000Waitafterrefresh) (Elektra * elektra, - kdb_unsigned_long_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mx5000/%*.*s%lld/waitafterrefresh", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'noritakevfd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Noritakevfd) (Elektra * elektra, NoritakeVFDDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructNoritakeVFDDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'noritakevfd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'noritakevfd/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Noritakevfd) (Elektra * elektra, const NoritakeVFDDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructNoritakeVFDDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'noritakevfd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Noritakevfd) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "noritakevfd"); -} - - - -/** - * Get the value of 'noritakevfd/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'noritakevfd/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (NoritakevfdBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'noritakevfd/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'noritakevfd/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (NoritakevfdBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'noritakevfd/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'noritakevfd/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (NoritakevfdContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'noritakevfd/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'noritakevfd/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (NoritakevfdContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'noritakevfd/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'noritakevfd/#/device'. - */// -static inline const char * ELEKTRA_GET (NoritakevfdDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'noritakevfd/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'noritakevfd/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (NoritakevfdDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'noritakevfd/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'noritakevfd/#/file'. - */// -static inline const char * ELEKTRA_GET (NoritakevfdFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'noritakevfd/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'noritakevfd/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (NoritakevfdFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'noritakevfd/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'noritakevfd/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (NoritakevfdOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'noritakevfd/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'noritakevfd/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (NoritakevfdOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'noritakevfd/#/parity'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'noritakevfd/#/parity'. - */// -static inline kdb_unsigned_long_t ELEKTRA_GET (NoritakevfdParity) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/parity", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'noritakevfd/#/parity'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'noritakevfd/#/parity'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (NoritakevfdParity) (Elektra * elektra, - kdb_unsigned_long_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/parity", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'noritakevfd/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'noritakevfd/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (NoritakevfdReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'noritakevfd/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'noritakevfd/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (NoritakevfdReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'noritakevfd/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'noritakevfd/#/size'. - */// -static inline const char * ELEKTRA_GET (NoritakevfdSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'noritakevfd/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'noritakevfd/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (NoritakevfdSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'noritakevfd/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'noritakevfd/#/speed'. - */// -static inline kdb_unsigned_long_t ELEKTRA_GET (NoritakevfdSpeed) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'noritakevfd/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'noritakevfd/#/speed'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (NoritakevfdSpeed) (Elektra * elektra, - kdb_unsigned_long_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'olimex_mod_lcd1x9/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (OlimexModLcd1x9) (Elektra * elektra, Olimex_MOD_LCD1x9DriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructOlimex_MOD_LCD1x9DriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'olimex_mod_lcd1x9/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'olimex_mod_lcd1x9/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (OlimexModLcd1x9) (Elektra * elektra, const Olimex_MOD_LCD1x9DriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructOlimex_MOD_LCD1x9DriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'olimex_mod_lcd1x9/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (OlimexModLcd1x9) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "olimex_mod_lcd1x9"); -} - - - -/** - * Get the value of 'olimex_mod_lcd1x9/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'olimex_mod_lcd1x9/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (OlimexModLcd1x9Brightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'olimex_mod_lcd1x9/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'olimex_mod_lcd1x9/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (OlimexModLcd1x9Brightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'olimex_mod_lcd1x9/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'olimex_mod_lcd1x9/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (OlimexModLcd1x9Contrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'olimex_mod_lcd1x9/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'olimex_mod_lcd1x9/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (OlimexModLcd1x9Contrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'olimex_mod_lcd1x9/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'olimex_mod_lcd1x9/#/device'. - */// -static inline const char * ELEKTRA_GET (OlimexModLcd1x9Device) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'olimex_mod_lcd1x9/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'olimex_mod_lcd1x9/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (OlimexModLcd1x9Device) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'olimex_mod_lcd1x9/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'olimex_mod_lcd1x9/#/file'. - */// -static inline const char * ELEKTRA_GET (OlimexModLcd1x9File) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'olimex_mod_lcd1x9/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'olimex_mod_lcd1x9/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (OlimexModLcd1x9File) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'olimex_mod_lcd1x9/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'olimex_mod_lcd1x9/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (OlimexModLcd1x9Offbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'olimex_mod_lcd1x9/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'olimex_mod_lcd1x9/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (OlimexModLcd1x9Offbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'olimex_mod_lcd1x9/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'olimex_mod_lcd1x9/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (OlimexModLcd1x9Reboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'olimex_mod_lcd1x9/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'olimex_mod_lcd1x9/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (OlimexModLcd1x9Reboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'picolcd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Picolcd) (Elektra * elektra, PicolcdDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructPicolcdDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'picolcd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Picolcd) (Elektra * elektra, const PicolcdDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructPicolcdDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'picolcd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Picolcd) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "picolcd"); -} - - - -/** - * Get the value of 'picolcd/#/backlight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/backlight'. - */// -static inline kdb_boolean_t ELEKTRA_GET (PicolcdBacklight) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/backlight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/backlight'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdBacklight) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (PicolcdBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (PicolcdContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/file'. - */// -static inline const char * ELEKTRA_GET (PicolcdFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/key0light'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/key0light'. - */// -static inline kdb_boolean_t ELEKTRA_GET (PicolcdKey0light) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/key0light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/key0light'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/key0light'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdKey0light) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/key0light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/key1light'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/key1light'. - */// -static inline kdb_boolean_t ELEKTRA_GET (PicolcdKey1light) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/key1light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/key1light'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/key1light'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdKey1light) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/key1light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/key2light'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/key2light'. - */// -static inline kdb_boolean_t ELEKTRA_GET (PicolcdKey2light) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/key2light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/key2light'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/key2light'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdKey2light) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/key2light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/key3light'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/key3light'. - */// -static inline kdb_boolean_t ELEKTRA_GET (PicolcdKey3light) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/key3light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/key3light'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/key3light'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdKey3light) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/key3light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/key4light'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/key4light'. - */// -static inline kdb_boolean_t ELEKTRA_GET (PicolcdKey4light) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/key4light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/key4light'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/key4light'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdKey4light) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/key4light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/key5light'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/key5light'. - */// -static inline kdb_boolean_t ELEKTRA_GET (PicolcdKey5light) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/key5light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/key5light'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/key5light'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdKey5light) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/key5light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/keylights'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/keylights'. - */// -static inline kdb_boolean_t ELEKTRA_GET (PicolcdKeylights) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/keylights", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/keylights'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/keylights'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdKeylights) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/keylights", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/keyrepeatdelay'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/keyrepeatdelay'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (PicolcdKeyrepeatdelay) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/keyrepeatdelay", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/keyrepeatdelay'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/keyrepeatdelay'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdKeyrepeatdelay) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/keyrepeatdelay", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/keyrepeatinterval'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/keyrepeatinterval'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (PicolcdKeyrepeatinterval) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/keyrepeatinterval", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/keyrepeatinterval'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/keyrepeatinterval'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdKeyrepeatinterval) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/keyrepeatinterval", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/keytimeout'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/keytimeout'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (PicolcdKeytimeout) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/keytimeout", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/keytimeout'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/keytimeout'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdKeytimeout) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/keytimeout", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/linklights'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/linklights'. - */// -static inline kdb_boolean_t ELEKTRA_GET (PicolcdLinklights) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/linklights", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/linklights'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/linklights'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdLinklights) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/linklights", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/lircflushthreshold'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/lircflushthreshold'. - */// -static inline kdb_unsigned_long_t ELEKTRA_GET (PicolcdLircflushthreshold) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/lircflushthreshold", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/lircflushthreshold'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/lircflushthreshold'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdLircflushthreshold) (Elektra * elektra, - kdb_unsigned_long_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/lircflushthreshold", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/lirchost'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/lirchost'. - */// -static inline const char * ELEKTRA_GET (PicolcdLirchost) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/lirchost", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/lirchost'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/lirchost'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdLirchost) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/lirchost", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/lircport'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/lircport'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (PicolcdLircport) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/lircport", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/lircport'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/lircport'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdLircport) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/lircport", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/lirctime_us'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/lirctime_us'. - */// -static inline kdb_boolean_t ELEKTRA_GET (PicolcdLirctimeUs) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/lirctime_us", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/lirctime_us'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/lirctime_us'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdLirctimeUs) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/lirctime_us", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (PicolcdOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (PicolcdReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'pyramid/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Pyramid) (Elektra * elektra, PyramidDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("pyramid/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructPyramidDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'pyramid/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'pyramid/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Pyramid) (Elektra * elektra, const PyramidDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("pyramid/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructPyramidDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'pyramid/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Pyramid) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "pyramid"); -} - - - -/** - * Get the value of 'pyramid/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'pyramid/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (PyramidBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("pyramid/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'pyramid/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'pyramid/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PyramidBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("pyramid/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'pyramid/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'pyramid/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (PyramidContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("pyramid/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'pyramid/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'pyramid/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PyramidContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("pyramid/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'pyramid/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'pyramid/#/device'. - */// -static inline const char * ELEKTRA_GET (PyramidDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("pyramid/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'pyramid/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'pyramid/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PyramidDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("pyramid/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'pyramid/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'pyramid/#/file'. - */// -static inline const char * ELEKTRA_GET (PyramidFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("pyramid/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'pyramid/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'pyramid/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PyramidFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("pyramid/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'pyramid/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'pyramid/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (PyramidOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("pyramid/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'pyramid/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'pyramid/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PyramidOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("pyramid/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'pyramid/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'pyramid/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (PyramidReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("pyramid/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'pyramid/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'pyramid/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PyramidReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("pyramid/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'rawserial/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Rawserial) (Elektra * elektra, RawserialDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructRawserialDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'rawserial/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'rawserial/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Rawserial) (Elektra * elektra, const RawserialDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructRawserialDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'rawserial/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Rawserial) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "rawserial"); -} - - - -/** - * Get the value of 'rawserial/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'rawserial/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (RawserialBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'rawserial/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'rawserial/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (RawserialBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'rawserial/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'rawserial/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (RawserialContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'rawserial/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'rawserial/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (RawserialContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'rawserial/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'rawserial/#/device'. - */// -static inline const char * ELEKTRA_GET (RawserialDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'rawserial/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'rawserial/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (RawserialDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'rawserial/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'rawserial/#/file'. - */// -static inline const char * ELEKTRA_GET (RawserialFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'rawserial/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'rawserial/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (RawserialFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'rawserial/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'rawserial/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (RawserialOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'rawserial/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'rawserial/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (RawserialOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'rawserial/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'rawserial/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (RawserialReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'rawserial/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'rawserial/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (RawserialReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'rawserial/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'rawserial/#/size'. - */// -static inline const char * ELEKTRA_GET (RawserialSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'rawserial/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'rawserial/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (RawserialSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'rawserial/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'rawserial/#/speed'. - */// -static inline kdb_unsigned_long_t ELEKTRA_GET (RawserialSpeed) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'rawserial/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'rawserial/#/speed'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (RawserialSpeed) (Elektra * elektra, - kdb_unsigned_long_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'rawserial/#/updaterate'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'rawserial/#/updaterate'. - */// -static inline kdb_float_t ELEKTRA_GET (RawserialUpdaterate) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/updaterate", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_float_t result = ELEKTRA_GET (Float) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'rawserial/#/updaterate'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'rawserial/#/updaterate'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (RawserialUpdaterate) (Elektra * elektra, - kdb_float_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/updaterate", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Float) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'sed1330/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Sed1330) (Elektra * elektra, Sed1330DriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructSed1330DriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'sed1330/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1330/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1330) (Elektra * elektra, const Sed1330DriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructSed1330DriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'sed1330/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Sed1330) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "sed1330"); -} - - - -/** - * Get the value of 'sed1330/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1330/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Sed1330Brightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1330/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1330/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1330Brightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1330/#/cellsize'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1330/#/cellsize'. - */// -static inline const char * ELEKTRA_GET (Sed1330Cellsize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/cellsize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1330/#/cellsize'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1330/#/cellsize'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1330Cellsize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/cellsize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1330/#/connectiontype'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1330/#/connectiontype'. - */// -static inline ElektraEnumSed1330Connectiontype ELEKTRA_GET (Sed1330Connectiontype) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/connectiontype", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ElektraEnumSed1330Connectiontype result = ELEKTRA_GET (EnumSed1330Connectiontype) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1330/#/connectiontype'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1330/#/connectiontype'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1330Connectiontype) (Elektra * elektra, - ElektraEnumSed1330Connectiontype value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/connectiontype", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumSed1330Connectiontype) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1330/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1330/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Sed1330Contrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1330/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1330/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1330Contrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1330/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1330/#/file'. - */// -static inline const char * ELEKTRA_GET (Sed1330File) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1330/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1330/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1330File) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1330/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1330/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Sed1330Offbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1330/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1330/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1330Offbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1330/#/port'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1330/#/port'. - */// -static inline const char * ELEKTRA_GET (Sed1330Port) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1330/#/port'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1330/#/port'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1330Port) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1330/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1330/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Sed1330Reboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1330/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1330/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1330Reboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1330/#/type'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1330/#/type'. - */// -static inline ElektraEnumSed1330Type ELEKTRA_GET (Sed1330Type) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/type", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ElektraEnumSed1330Type result = ELEKTRA_GET (EnumSed1330Type) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1330/#/type'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1330/#/type'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1330Type) (Elektra * elektra, - ElektraEnumSed1330Type value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/type", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumSed1330Type) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'sed1520/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Sed1520) (Elektra * elektra, Sed1520DriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructSed1520DriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'sed1520/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1520/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1520) (Elektra * elektra, const Sed1520DriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructSed1520DriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'sed1520/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Sed1520) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "sed1520"); -} - - - -/** - * Get the value of 'sed1520/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1520/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Sed1520Brightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1520/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1520/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1520Brightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1520/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1520/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Sed1520Contrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1520/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1520/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1520Contrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1520/#/delaymult'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1520/#/delaymult'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Sed1520Delaymult) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/delaymult", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1520/#/delaymult'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1520/#/delaymult'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1520Delaymult) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/delaymult", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1520/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1520/#/file'. - */// -static inline const char * ELEKTRA_GET (Sed1520File) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1520/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1520/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1520File) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1520/#/haveinverter'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1520/#/haveinverter'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Sed1520Haveinverter) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/haveinverter", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1520/#/haveinverter'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1520/#/haveinverter'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1520Haveinverter) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/haveinverter", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1520/#/interfacetype'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1520/#/interfacetype'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Sed1520Interfacetype) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/interfacetype", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1520/#/interfacetype'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1520/#/interfacetype'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1520Interfacetype) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/interfacetype", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1520/#/invertedmapping'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1520/#/invertedmapping'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Sed1520Invertedmapping) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/invertedmapping", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1520/#/invertedmapping'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1520/#/invertedmapping'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1520Invertedmapping) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/invertedmapping", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1520/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1520/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Sed1520Offbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1520/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1520/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1520Offbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1520/#/port'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1520/#/port'. - */// -static inline const char * ELEKTRA_GET (Sed1520Port) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1520/#/port'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1520/#/port'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1520Port) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1520/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1520/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Sed1520Reboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1520/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1520/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1520Reboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1520/#/usehardreset'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1520/#/usehardreset'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Sed1520Usehardreset) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/usehardreset", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1520/#/usehardreset'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1520/#/usehardreset'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1520Usehardreset) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/usehardreset", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'serialpos/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Serialpos) (Elektra * elektra, SerialPOSDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructSerialPOSDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'serialpos/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialpos/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Serialpos) (Elektra * elektra, const SerialPOSDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructSerialPOSDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'serialpos/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Serialpos) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "serialpos"); -} - - - -/** - * Get the value of 'serialpos/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialpos/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SerialposBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialpos/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialpos/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialposBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialpos/#/cellsize'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialpos/#/cellsize'. - */// -static inline const char * ELEKTRA_GET (SerialposCellsize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/cellsize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialpos/#/cellsize'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialpos/#/cellsize'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialposCellsize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/cellsize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialpos/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialpos/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SerialposContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialpos/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialpos/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialposContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialpos/#/custom_chars'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialpos/#/custom_chars'. - */// -static inline kdb_unsigned_long_t ELEKTRA_GET (SerialposCustomChars) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/custom_chars", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialpos/#/custom_chars'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialpos/#/custom_chars'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialposCustomChars) (Elektra * elektra, - kdb_unsigned_long_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/custom_chars", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialpos/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialpos/#/device'. - */// -static inline const char * ELEKTRA_GET (SerialposDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialpos/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialpos/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialposDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialpos/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialpos/#/file'. - */// -static inline const char * ELEKTRA_GET (SerialposFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialpos/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialpos/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialposFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialpos/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialpos/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SerialposOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialpos/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialpos/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialposOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialpos/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialpos/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (SerialposReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialpos/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialpos/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialposReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialpos/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialpos/#/size'. - */// -static inline const char * ELEKTRA_GET (SerialposSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialpos/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialpos/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialposSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialpos/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialpos/#/speed'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SerialposSpeed) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialpos/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialpos/#/speed'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialposSpeed) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialpos/#/type'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialpos/#/type'. - */// -static inline ElektraEnumSerialposType ELEKTRA_GET (SerialposType) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/type", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ElektraEnumSerialposType result = ELEKTRA_GET (EnumSerialposType) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialpos/#/type'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialpos/#/type'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialposType) (Elektra * elektra, - ElektraEnumSerialposType value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/type", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumSerialposType) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'serialvfd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Serialvfd) (Elektra * elektra, SerialVFDDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructSerialVFDDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'serialvfd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialvfd/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Serialvfd) (Elektra * elektra, const SerialVFDDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructSerialVFDDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'serialvfd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Serialvfd) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "serialvfd"); -} - - - -/** - * Get the value of 'serialvfd/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialvfd/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SerialvfdBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialvfd/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialvfd/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialvfdBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialvfd/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialvfd/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SerialvfdContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialvfd/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialvfd/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialvfdContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialvfd/#/custom-characters'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialvfd/#/custom-characters'. - */// -static inline kdb_unsigned_long_t ELEKTRA_GET (SerialvfdCustomCharacters) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/custom-characters", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialvfd/#/custom-characters'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialvfd/#/custom-characters'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialvfdCustomCharacters) (Elektra * elektra, - kdb_unsigned_long_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/custom-characters", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialvfd/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialvfd/#/device'. - */// -static inline const char * ELEKTRA_GET (SerialvfdDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialvfd/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialvfd/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialvfdDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialvfd/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialvfd/#/file'. - */// -static inline const char * ELEKTRA_GET (SerialvfdFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialvfd/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialvfd/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialvfdFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialvfd/#/iso_8859_1'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialvfd/#/iso_8859_1'. - */// -static inline kdb_boolean_t ELEKTRA_GET (SerialvfdIso88591) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/iso_8859_1", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialvfd/#/iso_8859_1'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialvfd/#/iso_8859_1'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialvfdIso88591) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/iso_8859_1", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialvfd/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialvfd/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SerialvfdOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialvfd/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialvfd/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialvfdOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialvfd/#/port'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialvfd/#/port'. - */// -static inline const char * ELEKTRA_GET (SerialvfdPort) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialvfd/#/port'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialvfd/#/port'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialvfdPort) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialvfd/#/portwait'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialvfd/#/portwait'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SerialvfdPortwait) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/portwait", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialvfd/#/portwait'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialvfd/#/portwait'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialvfdPortwait) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/portwait", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialvfd/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialvfd/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (SerialvfdReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialvfd/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialvfd/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialvfdReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialvfd/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialvfd/#/size'. - */// -static inline const char * ELEKTRA_GET (SerialvfdSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialvfd/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialvfd/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialvfdSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialvfd/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialvfd/#/speed'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SerialvfdSpeed) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialvfd/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialvfd/#/speed'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialvfdSpeed) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialvfd/#/type'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialvfd/#/type'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SerialvfdType) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/type", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialvfd/#/type'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialvfd/#/type'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialvfdType) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/type", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialvfd/#/use_parallel'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialvfd/#/use_parallel'. - */// -static inline kdb_boolean_t ELEKTRA_GET (SerialvfdUseParallel) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/use_parallel", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialvfd/#/use_parallel'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialvfd/#/use_parallel'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialvfdUseParallel) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/use_parallel", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'server/autorotate'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/autorotate'. - */// -static inline kdb_boolean_t ELEKTRA_GET (ServerAutorotate) (Elektra * elektra ) -{ - - return ELEKTRA_GET (Boolean) (elektra, "server/autorotate"); -} - - -/** - * Set the value of 'server/autorotate'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/autorotate'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerAutorotate) (Elektra * elektra, - kdb_boolean_t value, ElektraError ** error) -{ - - ELEKTRA_SET (Boolean) (elektra, "server/autorotate", value, error); -} - - - - -/** - * Get the value of 'server/backlight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/backlight'. - */// -static inline ElektraEnumServerBacklight ELEKTRA_GET (ServerBacklight) (Elektra * elektra ) -{ - - return ELEKTRA_GET (EnumServerBacklight) (elektra, "server/backlight"); -} - - -/** - * Set the value of 'server/backlight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/backlight'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerBacklight) (Elektra * elektra, - ElektraEnumServerBacklight value, ElektraError ** error) -{ - - ELEKTRA_SET (EnumServerBacklight) (elektra, "server/backlight", value, error); -} - - - - -/** - * Get the value of 'server/bind'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/bind'. - */// -static inline const char * ELEKTRA_GET (ServerBind) (Elektra * elektra ) -{ - - return ELEKTRA_GET (String) (elektra, "server/bind"); -} - - -/** - * Set the value of 'server/bind'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/bind'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerBind) (Elektra * elektra, - const char * value, ElektraError ** error) -{ - - ELEKTRA_SET (String) (elektra, "server/bind", value, error); -} - - - - -/** - * Get the value of 'server/driverpath'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/driverpath'. - */// -static inline const char * ELEKTRA_GET (ServerDriverpath) (Elektra * elektra ) -{ - - return ELEKTRA_GET (String) (elektra, "server/driverpath"); -} - - -/** - * Set the value of 'server/driverpath'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/driverpath'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerDriverpath) (Elektra * elektra, - const char * value, ElektraError ** error) -{ - - ELEKTRA_SET (String) (elektra, "server/driverpath", value, error); -} - - - - -/** - * Get the value of 'server/drivers/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'server/drivers/#'. - */// -static inline const char * ELEKTRA_GET (ServerDrivers) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("server/drivers/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'server/drivers/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/drivers/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerDrivers) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("server/drivers/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -/** - * Get the size of the array 'server/drivers/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (ServerDrivers) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "server/drivers"); -} - - - -/** - * Get the value of 'server/foreground'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/foreground'. - */// -static inline kdb_boolean_t ELEKTRA_GET (ServerForeground) (Elektra * elektra ) -{ - - return ELEKTRA_GET (Boolean) (elektra, "server/foreground"); -} - - -/** - * Set the value of 'server/foreground'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/foreground'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerForeground) (Elektra * elektra, - kdb_boolean_t value, ElektraError ** error) -{ - - ELEKTRA_SET (Boolean) (elektra, "server/foreground", value, error); -} - - - - -/** - * Get the value of 'server/frameinterval'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/frameinterval'. - */// -static inline kdb_unsigned_long_t ELEKTRA_GET (ServerFrameinterval) (Elektra * elektra ) -{ - - return ELEKTRA_GET (UnsignedLong) (elektra, "server/frameinterval"); -} - - -/** - * Set the value of 'server/frameinterval'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/frameinterval'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerFrameinterval) (Elektra * elektra, - kdb_unsigned_long_t value, ElektraError ** error) -{ - - ELEKTRA_SET (UnsignedLong) (elektra, "server/frameinterval", value, error); -} - - - - -/** - * Get the value of 'server/goodbye/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'server/goodbye/#'. - */// -static inline const char * ELEKTRA_GET (ServerGoodbye) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("server/goodbye/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'server/goodbye/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/goodbye/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerGoodbye) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("server/goodbye/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -/** - * Get the size of the array 'server/goodbye/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (ServerGoodbye) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "server/goodbye"); -} - - - -/** - * Get the value of 'server/heartbeat'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/heartbeat'. - */// -static inline ElektraEnumServerHeartbeat ELEKTRA_GET (ServerHeartbeat) (Elektra * elektra ) -{ - - return ELEKTRA_GET (EnumServerHeartbeat) (elektra, "server/heartbeat"); -} - - -/** - * Set the value of 'server/heartbeat'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/heartbeat'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerHeartbeat) (Elektra * elektra, - ElektraEnumServerHeartbeat value, ElektraError ** error) -{ - - ELEKTRA_SET (EnumServerHeartbeat) (elektra, "server/heartbeat", value, error); -} - - - - -/** - * Get the value of 'server/hello/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'server/hello/#'. - */// -static inline const char * ELEKTRA_GET (ServerHello) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("server/hello/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'server/hello/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/hello/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerHello) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("server/hello/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -/** - * Get the size of the array 'server/hello/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (ServerHello) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "server/hello"); -} - - - -/** - * Get the value of 'server/nextscreenkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/nextscreenkey'. - */// -static inline const char * ELEKTRA_GET (ServerNextscreenkey) (Elektra * elektra ) -{ - - return ELEKTRA_GET (String) (elektra, "server/nextscreenkey"); -} - - -/** - * Set the value of 'server/nextscreenkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/nextscreenkey'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerNextscreenkey) (Elektra * elektra, - const char * value, ElektraError ** error) -{ - - ELEKTRA_SET (String) (elektra, "server/nextscreenkey", value, error); -} - - - - -/** - * Get the value of 'server/port'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/port'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (ServerPort) (Elektra * elektra ) -{ - - return ELEKTRA_GET (UnsignedShort) (elektra, "server/port"); -} - - -/** - * Set the value of 'server/port'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/port'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerPort) (Elektra * elektra, - kdb_unsigned_short_t value, ElektraError ** error) -{ - - ELEKTRA_SET (UnsignedShort) (elektra, "server/port", value, error); -} - - - - -/** - * Get the value of 'server/prevscreenkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/prevscreenkey'. - */// -static inline const char * ELEKTRA_GET (ServerPrevscreenkey) (Elektra * elektra ) -{ - - return ELEKTRA_GET (String) (elektra, "server/prevscreenkey"); -} - - -/** - * Set the value of 'server/prevscreenkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/prevscreenkey'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerPrevscreenkey) (Elektra * elektra, - const char * value, ElektraError ** error) -{ - - ELEKTRA_SET (String) (elektra, "server/prevscreenkey", value, error); -} - - - - -/** - * Get the value of 'server/reportlevel'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/reportlevel'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (ServerReportlevel) (Elektra * elektra ) -{ - - return ELEKTRA_GET (UnsignedShort) (elektra, "server/reportlevel"); -} - - -/** - * Set the value of 'server/reportlevel'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/reportlevel'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerReportlevel) (Elektra * elektra, - kdb_unsigned_short_t value, ElektraError ** error) -{ - - ELEKTRA_SET (UnsignedShort) (elektra, "server/reportlevel", value, error); -} - - - - -/** - * Get the value of 'server/reporttosyslog'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/reporttosyslog'. - */// -static inline kdb_boolean_t ELEKTRA_GET (ServerReporttosyslog) (Elektra * elektra ) -{ - - return ELEKTRA_GET (Boolean) (elektra, "server/reporttosyslog"); -} - - -/** - * Set the value of 'server/reporttosyslog'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/reporttosyslog'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerReporttosyslog) (Elektra * elektra, - kdb_boolean_t value, ElektraError ** error) -{ - - ELEKTRA_SET (Boolean) (elektra, "server/reporttosyslog", value, error); -} - - - - -/** - * Get the value of 'server/scrolldownkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/scrolldownkey'. - */// -static inline const char * ELEKTRA_GET (ServerScrolldownkey) (Elektra * elektra ) -{ - - return ELEKTRA_GET (String) (elektra, "server/scrolldownkey"); -} - - -/** - * Set the value of 'server/scrolldownkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/scrolldownkey'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerScrolldownkey) (Elektra * elektra, - const char * value, ElektraError ** error) -{ - - ELEKTRA_SET (String) (elektra, "server/scrolldownkey", value, error); -} - - - - -/** - * Get the value of 'server/scrollupkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/scrollupkey'. - */// -static inline const char * ELEKTRA_GET (ServerScrollupkey) (Elektra * elektra ) -{ - - return ELEKTRA_GET (String) (elektra, "server/scrollupkey"); -} - - -/** - * Set the value of 'server/scrollupkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/scrollupkey'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerScrollupkey) (Elektra * elektra, - const char * value, ElektraError ** error) -{ - - ELEKTRA_SET (String) (elektra, "server/scrollupkey", value, error); -} - - - - -/** - * Get the value of 'server/serverscreen'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/serverscreen'. - */// -static inline ElektraEnumServerServerscreen ELEKTRA_GET (ServerServerscreen) (Elektra * elektra ) -{ - - return ELEKTRA_GET (EnumServerServerscreen) (elektra, "server/serverscreen"); -} - - -/** - * Set the value of 'server/serverscreen'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/serverscreen'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerServerscreen) (Elektra * elektra, - ElektraEnumServerServerscreen value, ElektraError ** error) -{ - - ELEKTRA_SET (EnumServerServerscreen) (elektra, "server/serverscreen", value, error); -} - - - - -/** - * Get the value of 'server/titlespeed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/titlespeed'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (ServerTitlespeed) (Elektra * elektra ) -{ - - return ELEKTRA_GET (UnsignedShort) (elektra, "server/titlespeed"); -} - - -/** - * Set the value of 'server/titlespeed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/titlespeed'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerTitlespeed) (Elektra * elektra, - kdb_unsigned_short_t value, ElektraError ** error) -{ - - ELEKTRA_SET (UnsignedShort) (elektra, "server/titlespeed", value, error); -} - - - - -/** - * Get the value of 'server/togglerotatekey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/togglerotatekey'. - */// -static inline const char * ELEKTRA_GET (ServerTogglerotatekey) (Elektra * elektra ) -{ - - return ELEKTRA_GET (String) (elektra, "server/togglerotatekey"); -} - - -/** - * Set the value of 'server/togglerotatekey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/togglerotatekey'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerTogglerotatekey) (Elektra * elektra, - const char * value, ElektraError ** error) -{ - - ELEKTRA_SET (String) (elektra, "server/togglerotatekey", value, error); -} - - - - -/** - * Get the value of 'server/user'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/user'. - */// -static inline const char * ELEKTRA_GET (ServerUser) (Elektra * elektra ) -{ - - return ELEKTRA_GET (String) (elektra, "server/user"); -} - - -/** - * Set the value of 'server/user'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/user'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerUser) (Elektra * elektra, - const char * value, ElektraError ** error) -{ - - ELEKTRA_SET (String) (elektra, "server/user", value, error); -} - - - - -/** - * Get the value of 'server/waittime'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/waittime'. - */// -static inline kdb_float_t ELEKTRA_GET (ServerWaittime) (Elektra * elektra ) -{ - - return ELEKTRA_GET (Float) (elektra, "server/waittime"); -} - - -/** - * Set the value of 'server/waittime'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/waittime'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerWaittime) (Elektra * elektra, - kdb_float_t value, ElektraError ** error) -{ - - ELEKTRA_SET (Float) (elektra, "server/waittime", value, error); -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'sli/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Sli) (Elektra * elektra, SliDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("sli/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructSliDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'sli/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sli/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sli) (Elektra * elektra, const SliDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sli/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructSliDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'sli/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Sli) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "sli"); -} - - - -/** - * Get the value of 'sli/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sli/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SliBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sli/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sli/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sli/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SliBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sli/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sli/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sli/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SliContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sli/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sli/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sli/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SliContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sli/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sli/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sli/#/device'. - */// -static inline const char * ELEKTRA_GET (SliDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sli/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sli/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sli/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SliDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sli/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sli/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sli/#/file'. - */// -static inline const char * ELEKTRA_GET (SliFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sli/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sli/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sli/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SliFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sli/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sli/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sli/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SliOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sli/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sli/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sli/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SliOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sli/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sli/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sli/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (SliReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sli/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sli/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sli/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SliReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sli/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sli/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sli/#/speed'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SliSpeed) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sli/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sli/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sli/#/speed'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SliSpeed) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sli/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'stv5730/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Stv5730) (Elektra * elektra, Stv5730DriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("stv5730/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructStv5730DriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'stv5730/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'stv5730/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Stv5730) (Elektra * elektra, const Stv5730DriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("stv5730/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructStv5730DriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'stv5730/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Stv5730) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "stv5730"); -} - - - -/** - * Get the value of 'stv5730/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'stv5730/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Stv5730Brightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("stv5730/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'stv5730/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'stv5730/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Stv5730Brightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("stv5730/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'stv5730/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'stv5730/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Stv5730Contrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("stv5730/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'stv5730/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'stv5730/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Stv5730Contrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("stv5730/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'stv5730/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'stv5730/#/file'. - */// -static inline const char * ELEKTRA_GET (Stv5730File) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("stv5730/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'stv5730/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'stv5730/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Stv5730File) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("stv5730/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'stv5730/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'stv5730/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Stv5730Offbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("stv5730/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'stv5730/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'stv5730/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Stv5730Offbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("stv5730/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'stv5730/#/port'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'stv5730/#/port'. - */// -static inline const char * ELEKTRA_GET (Stv5730Port) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("stv5730/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'stv5730/#/port'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'stv5730/#/port'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Stv5730Port) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("stv5730/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'stv5730/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'stv5730/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Stv5730Reboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("stv5730/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'stv5730/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'stv5730/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Stv5730Reboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("stv5730/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'sureelec/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Sureelec) (Elektra * elektra, SureElecDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructSureElecDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'sureelec/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sureelec/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sureelec) (Elektra * elektra, const SureElecDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructSureElecDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'sureelec/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Sureelec) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "sureelec"); -} - - - -/** - * Get the value of 'sureelec/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sureelec/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SureelecBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sureelec/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sureelec/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SureelecBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sureelec/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sureelec/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SureelecContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sureelec/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sureelec/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SureelecContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sureelec/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sureelec/#/device'. - */// -static inline const char * ELEKTRA_GET (SureelecDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sureelec/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sureelec/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SureelecDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sureelec/#/edition'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sureelec/#/edition'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SureelecEdition) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld/edition", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sureelec/#/edition'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sureelec/#/edition'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SureelecEdition) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld/edition", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sureelec/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sureelec/#/file'. - */// -static inline const char * ELEKTRA_GET (SureelecFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sureelec/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sureelec/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SureelecFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sureelec/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sureelec/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SureelecOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sureelec/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sureelec/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SureelecOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sureelec/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sureelec/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (SureelecReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sureelec/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sureelec/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SureelecReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sureelec/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sureelec/#/size'. - */// -static inline const char * ELEKTRA_GET (SureelecSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sureelec/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sureelec/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SureelecSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'svga/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Svga) (Elektra * elektra, SvgaDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("svga/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructSvgaDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'svga/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'svga/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Svga) (Elektra * elektra, const SvgaDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("svga/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructSvgaDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'svga/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Svga) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "svga"); -} - - - -/** - * Get the value of 'svga/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'svga/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SvgaBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("svga/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'svga/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'svga/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SvgaBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("svga/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'svga/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'svga/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SvgaContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("svga/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'svga/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'svga/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SvgaContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("svga/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'svga/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'svga/#/file'. - */// -static inline const char * ELEKTRA_GET (SvgaFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("svga/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'svga/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'svga/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SvgaFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("svga/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'svga/#/mode'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'svga/#/mode'. - */// -static inline const char * ELEKTRA_GET (SvgaMode) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("svga/%*.*s%lld/mode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'svga/#/mode'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'svga/#/mode'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SvgaMode) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("svga/%*.*s%lld/mode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'svga/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'svga/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SvgaOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("svga/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'svga/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'svga/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SvgaOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("svga/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'svga/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'svga/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (SvgaReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("svga/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'svga/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'svga/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SvgaReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("svga/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'svga/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'svga/#/size'. - */// -static inline const char * ELEKTRA_GET (SvgaSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("svga/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'svga/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'svga/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SvgaSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("svga/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 't6963/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (T6963) (Elektra * elektra, T6963DriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructT6963DriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 't6963/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 't6963/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (T6963) (Elektra * elektra, const T6963DriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructT6963DriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 't6963/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (T6963) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "t6963"); -} - - - -/** - * Get the value of 't6963/#/bidirectional'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 't6963/#/bidirectional'. - */// -static inline kdb_boolean_t ELEKTRA_GET (T6963Bidirectional) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/bidirectional", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 't6963/#/bidirectional'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 't6963/#/bidirectional'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (T6963Bidirectional) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/bidirectional", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 't6963/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 't6963/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (T6963Brightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 't6963/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 't6963/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (T6963Brightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 't6963/#/cleargraphic'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 't6963/#/cleargraphic'. - */// -static inline kdb_boolean_t ELEKTRA_GET (T6963Cleargraphic) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/cleargraphic", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 't6963/#/cleargraphic'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 't6963/#/cleargraphic'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (T6963Cleargraphic) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/cleargraphic", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 't6963/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 't6963/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (T6963Contrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 't6963/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 't6963/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (T6963Contrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 't6963/#/delaybus'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 't6963/#/delaybus'. - */// -static inline kdb_boolean_t ELEKTRA_GET (T6963Delaybus) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/delaybus", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 't6963/#/delaybus'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 't6963/#/delaybus'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (T6963Delaybus) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/delaybus", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 't6963/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 't6963/#/file'. - */// -static inline const char * ELEKTRA_GET (T6963File) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 't6963/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 't6963/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (T6963File) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 't6963/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 't6963/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (T6963Offbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 't6963/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 't6963/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (T6963Offbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 't6963/#/port'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 't6963/#/port'. - */// -static inline const char * ELEKTRA_GET (T6963Port) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 't6963/#/port'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 't6963/#/port'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (T6963Port) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 't6963/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 't6963/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (T6963Reboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 't6963/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 't6963/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (T6963Reboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 't6963/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 't6963/#/size'. - */// -static inline const char * ELEKTRA_GET (T6963Size) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 't6963/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 't6963/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (T6963Size) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'text/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Text) (Elektra * elektra, TextDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("text/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructTextDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'text/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'text/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Text) (Elektra * elektra, const TextDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("text/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructTextDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'text/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Text) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "text"); -} - - - -/** - * Get the value of 'text/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'text/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (TextBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("text/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'text/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'text/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (TextBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("text/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'text/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'text/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (TextContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("text/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'text/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'text/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (TextContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("text/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'text/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'text/#/file'. - */// -static inline const char * ELEKTRA_GET (TextFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("text/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'text/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'text/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (TextFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("text/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'text/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'text/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (TextOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("text/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'text/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'text/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (TextOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("text/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'text/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'text/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (TextReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("text/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'text/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'text/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (TextReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("text/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'text/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'text/#/size'. - */// -static inline const char * ELEKTRA_GET (TextSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("text/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'text/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'text/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (TextSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("text/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'tyan/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Tyan) (Elektra * elektra, TyanDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructTyanDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'tyan/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'tyan/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Tyan) (Elektra * elektra, const TyanDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructTyanDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'tyan/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Tyan) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "tyan"); -} - - - -/** - * Get the value of 'tyan/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'tyan/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (TyanBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'tyan/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'tyan/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (TyanBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'tyan/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'tyan/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (TyanContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'tyan/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'tyan/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (TyanContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'tyan/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'tyan/#/device'. - */// -static inline const char * ELEKTRA_GET (TyanDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'tyan/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'tyan/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (TyanDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'tyan/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'tyan/#/file'. - */// -static inline const char * ELEKTRA_GET (TyanFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'tyan/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'tyan/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (TyanFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'tyan/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'tyan/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (TyanOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'tyan/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'tyan/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (TyanOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'tyan/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'tyan/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (TyanReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'tyan/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'tyan/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (TyanReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'tyan/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'tyan/#/size'. - */// -static inline const char * ELEKTRA_GET (TyanSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'tyan/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'tyan/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (TyanSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'tyan/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'tyan/#/speed'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (TyanSpeed) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'tyan/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'tyan/#/speed'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (TyanSpeed) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'ula200/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Ula200) (Elektra * elektra, Ula200DriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructUla200DriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'ula200/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ula200/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ula200) (Elektra * elektra, const Ula200DriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructUla200DriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'ula200/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Ula200) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "ula200"); -} - - - -/** - * Get the value of 'ula200/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ula200/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Ula200Brightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ula200/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ula200/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ula200Brightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ula200/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ula200/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Ula200Contrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ula200/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ula200/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ula200Contrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ula200/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ula200/#/file'. - */// -static inline const char * ELEKTRA_GET (Ula200File) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ula200/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ula200/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ula200File) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ula200/#/keymap_a'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ula200/#/keymap_a'. - */// -static inline const char * ELEKTRA_GET (Ula200KeymapA) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/keymap_a", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ula200/#/keymap_a'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ula200/#/keymap_a'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ula200KeymapA) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/keymap_a", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ula200/#/keymap_b'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ula200/#/keymap_b'. - */// -static inline const char * ELEKTRA_GET (Ula200KeymapB) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/keymap_b", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ula200/#/keymap_b'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ula200/#/keymap_b'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ula200KeymapB) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/keymap_b", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ula200/#/keymap_c'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ula200/#/keymap_c'. - */// -static inline const char * ELEKTRA_GET (Ula200KeymapC) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/keymap_c", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ula200/#/keymap_c'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ula200/#/keymap_c'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ula200KeymapC) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/keymap_c", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ula200/#/keymap_d'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ula200/#/keymap_d'. - */// -static inline const char * ELEKTRA_GET (Ula200KeymapD) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/keymap_d", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ula200/#/keymap_d'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ula200/#/keymap_d'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ula200KeymapD) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/keymap_d", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ula200/#/keymap_e'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ula200/#/keymap_e'. - */// -static inline const char * ELEKTRA_GET (Ula200KeymapE) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/keymap_e", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ula200/#/keymap_e'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ula200/#/keymap_e'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ula200KeymapE) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/keymap_e", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ula200/#/keymap_f'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ula200/#/keymap_f'. - */// -static inline const char * ELEKTRA_GET (Ula200KeymapF) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/keymap_f", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ula200/#/keymap_f'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ula200/#/keymap_f'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ula200KeymapF) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/keymap_f", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ula200/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ula200/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Ula200Offbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ula200/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ula200/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ula200Offbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ula200/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ula200/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Ula200Reboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ula200/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ula200/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ula200Reboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ula200/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ula200/#/size'. - */// -static inline const char * ELEKTRA_GET (Ula200Size) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ula200/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ula200/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ula200Size) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'vlsys_m428/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (VlsysM428) (Elektra * elektra, Vlsys_m428DriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("vlsys_m428/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructVlsys_m428DriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'vlsys_m428/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'vlsys_m428/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (VlsysM428) (Elektra * elektra, const Vlsys_m428DriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("vlsys_m428/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructVlsys_m428DriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'vlsys_m428/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (VlsysM428) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "vlsys_m428"); -} - - - -/** - * Get the value of 'vlsys_m428/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'vlsys_m428/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (VlsysM428Brightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("vlsys_m428/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'vlsys_m428/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'vlsys_m428/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (VlsysM428Brightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("vlsys_m428/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'vlsys_m428/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'vlsys_m428/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (VlsysM428Contrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("vlsys_m428/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'vlsys_m428/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'vlsys_m428/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (VlsysM428Contrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("vlsys_m428/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'vlsys_m428/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'vlsys_m428/#/device'. - */// -static inline const char * ELEKTRA_GET (VlsysM428Device) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("vlsys_m428/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'vlsys_m428/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'vlsys_m428/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (VlsysM428Device) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("vlsys_m428/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'vlsys_m428/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'vlsys_m428/#/file'. - */// -static inline const char * ELEKTRA_GET (VlsysM428File) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("vlsys_m428/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'vlsys_m428/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'vlsys_m428/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (VlsysM428File) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("vlsys_m428/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'vlsys_m428/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'vlsys_m428/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (VlsysM428Offbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("vlsys_m428/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'vlsys_m428/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'vlsys_m428/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (VlsysM428Offbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("vlsys_m428/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'vlsys_m428/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'vlsys_m428/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (VlsysM428Reboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("vlsys_m428/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'vlsys_m428/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'vlsys_m428/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (VlsysM428Reboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("vlsys_m428/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'xosd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Xosd) (Elektra * elektra, XosdDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructXosdDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'xosd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'xosd/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Xosd) (Elektra * elektra, const XosdDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructXosdDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'xosd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Xosd) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "xosd"); -} - - - -/** - * Get the value of 'xosd/#/Font'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'xosd/#/Font'. - */// -static inline const char * ELEKTRA_GET (XosdFont) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld/Font", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'xosd/#/Font'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'xosd/#/Font'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (XosdFont) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld/Font", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'xosd/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'xosd/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (XosdBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'xosd/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'xosd/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (XosdBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'xosd/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'xosd/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (XosdContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'xosd/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'xosd/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (XosdContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'xosd/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'xosd/#/file'. - */// -static inline const char * ELEKTRA_GET (XosdFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'xosd/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'xosd/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (XosdFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'xosd/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'xosd/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (XosdOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'xosd/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'xosd/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (XosdOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'xosd/#/offset'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'xosd/#/offset'. - */// -static inline const char * ELEKTRA_GET (XosdOffset) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld/offset", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'xosd/#/offset'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'xosd/#/offset'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (XosdOffset) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld/offset", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'xosd/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'xosd/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (XosdReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'xosd/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'xosd/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (XosdReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'xosd/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'xosd/#/size'. - */// -static inline const char * ELEKTRA_GET (XosdSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'xosd/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'xosd/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (XosdSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'yard2lcd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Yard2lcd) (Elektra * elektra, Yard2LCDDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("yard2lcd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructYard2LCDDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'yard2lcd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'yard2lcd/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Yard2lcd) (Elektra * elektra, const Yard2LCDDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("yard2lcd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructYard2LCDDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'yard2lcd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Yard2lcd) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "yard2lcd"); -} - - - -/** - * Get the value of 'yard2lcd/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'yard2lcd/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Yard2lcdBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("yard2lcd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'yard2lcd/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'yard2lcd/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Yard2lcdBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("yard2lcd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'yard2lcd/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'yard2lcd/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Yard2lcdContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("yard2lcd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'yard2lcd/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'yard2lcd/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Yard2lcdContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("yard2lcd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'yard2lcd/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'yard2lcd/#/file'. - */// -static inline const char * ELEKTRA_GET (Yard2lcdFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("yard2lcd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'yard2lcd/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'yard2lcd/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Yard2lcdFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("yard2lcd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'yard2lcd/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'yard2lcd/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Yard2lcdOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("yard2lcd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'yard2lcd/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'yard2lcd/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Yard2lcdOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("yard2lcd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'yard2lcd/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'yard2lcd/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Yard2lcdReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("yard2lcd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'yard2lcd/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'yard2lcd/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Yard2lcdReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("yard2lcd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'yard2lcd/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'yard2lcd/#/size'. - */// -static inline const char * ELEKTRA_GET (Yard2lcdSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("yard2lcd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'yard2lcd/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'yard2lcd/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Yard2lcdSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("yard2lcd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - -#undef elektra_len19 -#undef elektra_len18 -#undef elektra_len17 -#undef elektra_len16 -#undef elektra_len15 -#undef elektra_len14 -#undef elektra_len13 -#undef elektra_len12 -#undef elektra_len11 -#undef elektra_len10 -#undef elektra_len09 -#undef elektra_len08 -#undef elektra_len07 -#undef elektra_len06 -#undef elektra_len05 -#undef elektra_len04 -#undef elektra_len03 -#undef elektra_len02 -#undef elektra_len01 -#undef elektra_len00 -#undef elektra_len - - -int loadConfiguration (Elektra ** elektra, ElektraError ** error); -void printHelpMessage (const char * usage, const char * prefix); -void doSpecloadCheck (int argc, const char ** argv); - - -/** - * @param elektra The elektra instance initialized with loadConfiguration(). - * @param tag The tag to look up. - * - * @return The value stored at the given key. - */// -#define elektraGet(elektra, tag) ELEKTRA_GET (tag) (elektra) - - -/** - * @param elektra The elektra instance initialized with loadConfiguration(). - * @param tag The tag to look up. - * @param ... Variable arguments depending on the given tag. - * - * @return The value stored at the given key. - */// -#define elektraGetV(elektra, tag, ...) ELEKTRA_GET (tag) (elektra, __VA_ARGS__) - - -/** - * @param elektra The elektra instance initialized with loadConfiguration(). - * @param tag The tag to look up. - * @param result Points to the struct into which results will be stored. - */// -#define elektraGet2(elektra, result, tag) ELEKTRA_GET (tag) (elektra, result) - - -/** - * @param elektra The elektra instance initialized with loadConfiguration(). - * @param result Points to the struct into which results will be stored. - * @param tag The tag to look up. - * @param ... Variable arguments depending on the given tag. - */// -#define elektraGet2V(elektra, result, tag, ...) ELEKTRA_GET (tag) (elektra, result, __VA_ARGS__) - - -/** - * @param elektra The elektra instance initialized with the loadConfiguration(). - * @param tag The tag to write to. - * @param value The new value. - * @param error Pass a reference to an ElektraError pointer. - */// -#define elektraSet(elektra, tag, value, error) ELEKTRA_SET (tag) (elektra, value, error) - - -/** - * @param elektra The elektra instance initialized with the loadConfiguration(). - * @param tag The tag to write to. - * @param value The new value. - * @param error Pass a reference to an ElektraError pointer. - * @param ... Variable arguments depending on the given tag. - */// -#define elektraSetV(elektra, tag, value, error, ...) ELEKTRA_SET (tag) (elektra, value, __VA_ARGS__, error) - - -/** - * @param elektra The elektra instance initialized with loadConfiguration(). - * @param tag The array tag to look up. - * - * @return The size of the array below the given key. - */// -#define elektraSize(elektra, tag) ELEKTRA_SIZE (tag) (elektra) - - -/** - * @param elektra The elektra instance initialized with loadConfiguration(). - * @param tag The array tag to look up. - * @param ... Variable arguments depending on the given tag. - * - * @return The size of the array below the given key. - */// -#define elektraSizeV(elektra, tag, ...) ELEKTRA_SIZE (tag) (elektra, __VA_ARGS__) - - -/** - * @param elektra The elektra instance initialized with loadConfiguration(). - * @param contextTag The context tag for the contextual value you want to set. - * @param value The actual value you want to set. - */// -#define elektraContextSet(elektra, contextTag, value) ELEKTRA_CONTEXT_SET (contextTag) (elektra, value) - - -/** - * @param elektra The elektra instance initialized with loadConfiguration(). - * @param contextTag The context tag for the contextual value you want to set. - * @param value The actual value you want to set. - * @param ... Variable arguments depending on the given tag. - */// -#define elektraContextSetV(elektra, contextTag, value, ...) ELEKTRA_CONTEXT_SET (contextTag) (elektra, value, __VA_ARGS__) - -#ifdef __cplusplus -} -#endif - -#endif // ELEKTRAGEN_H From 79530173d369417cbaeb4dfe3216f14210d3557a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Thu, 16 May 2019 11:52:06 +0200 Subject: [PATCH 08/72] drivers: elektrify default drivers --- server/Makefile.am | 3 +- server/drivers/CFontz.c | 74 +- server/drivers/CFontzPacket.c | 90 +- server/drivers/CwLnx.c | 128 +- server/drivers/MtxOrb.c | 150 +- server/drivers/bayrad.c | 29 +- server/drivers/curses_drv.c | 6 +- server/drivers/curses_drv.h | 2 +- server/drivers/glk.c | 27 +- server/drivers/lb216.c | 31 +- server/drivers/lcdm001.c | 61 +- server/drivers/pylcd.c | 15 +- server/drivers/pylcd.h | 1 - server/drivers/text.c | 11 +- server/elektragen.c | 18843 +++++++++++++++ server/elektragen.h | 34830 +++++++++++++++++++++++++++ server/specification/LCDd-spec.ini | 220 +- 17 files changed, 53986 insertions(+), 535 deletions(-) create mode 100644 server/elektragen.c create mode 100644 server/elektragen.h diff --git a/server/Makefile.am b/server/Makefile.am index a5d04b7e..8d18a239 100644 --- a/server/Makefile.am +++ b/server/Makefile.am @@ -1,12 +1,13 @@ ## Process this file with automake to produce Makefile.in -SUBDIRS=drivers commands +SUBDIRS=commands . drivers sbin_PROGRAMS=LCDd LCDd_SOURCES= client.c client.h clients.c clients.h input.c input.h main.c main.h menuitem.c menuitem.h menu.c menu.h menuscreens.c menuscreens.h parse.c parse.h render.c render.h screen.c screen.h screenlist.c screenlist.h serverscreens.c serverscreens.h sock.c sock.h widget.c widget.h drivers.c drivers.h driver.c driver.h nodist_LCDd_SOURCES = elektragen.c elektragen.h LCDd.$(OBJEXT): elektragen.c elektragen.h +BUILT_SOURCES = elektragen.c elektragen.h CLEANFILES = elektragen.c elektragen.h diff --git a/server/drivers/CFontz.c b/server/drivers/CFontz.c index 9f176593..276a39af 100644 --- a/server/drivers/CFontz.c +++ b/server/drivers/CFontz.c @@ -45,14 +45,13 @@ #include "CFontz-charmap.h" #include "adv_bignum.h" +#include "../elektragen.h" /* Constants for userdefchar_mode */ #define NUM_CCs 8 /* max. number of custom characters */ /** private data for the \c CFontz driver */ typedef struct CFontz_private_data { - char device[200]; - int fd; int model; @@ -103,11 +102,10 @@ MODULE_EXPORT int CFontz_init(Driver *drvthis, Elektra * elektra) { struct termios portset; - int tmp, w, h; + int w, h; int reboot = 0; int usb = 0; int speed = DEFAULT_SPEED; - char size[200] = DEFAULT_SIZE; PrivateData *p; @@ -126,80 +124,52 @@ CFontz_init(Driver *drvthis, Elektra * elektra) debug(RPT_INFO, "CFontz: init(%p)", drvthis); - /* Read config file */ + /* Read config */ + + CFontzDriverConfig config; + elektraGet2V (elektra, &config, ELEKTRA_TAG_CFONTZ, drvthis->index); + /* Which device should be used */ - strncpy(p->device, drvthis->config_get_string(drvthis->name, "Device", 0, DEFAULT_DEVICE), sizeof(p->device)); - p->device[sizeof(p->device)-1] = '\0'; - report(RPT_INFO, "%s: using Device %s", drvthis->name, p->device); + report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": using Device %s", drvthis->name, drvthis->index, config.device); /* Which size */ - strncpy(size, drvthis->config_get_string(drvthis->name, "Size", 0, DEFAULT_SIZE), sizeof(size)); - size[sizeof(size)-1] = '\0'; - if ((sscanf(size, "%dx%d", &w, &h) != 2) + if ((sscanf(config.size, "%dx%d", &w, &h) != 2) || (w <= 0) || (w > LCD_MAX_WIDTH) || (h <= 0) || (h > LCD_MAX_HEIGHT)) { report(RPT_WARNING, "%s: cannot read Size: %s; using default %s", - drvthis->name, size, DEFAULT_SIZE); + drvthis->name, config.size, DEFAULT_SIZE); sscanf(DEFAULT_SIZE, "%dx%d", &w, &h); } p->width = w; p->height = h; /* Which contrast */ - tmp = drvthis->config_get_int(drvthis->name, "Contrast", 0, DEFAULT_CONTRAST); - if ((tmp < 0) || (tmp > 1000)) { - report(RPT_WARNING, "%s: Contrast must be between 0 and 1000; using default %d", - drvthis->name, DEFAULT_CONTRAST); - tmp = DEFAULT_CONTRAST; - } - p->contrast = tmp; + p->contrast = config.contrast; /* Which backlight brightness */ - tmp = drvthis->config_get_int(drvthis->name, "Brightness", 0, DEFAULT_BRIGHTNESS); - if ((tmp < 0) || (tmp > 1000)) { - report(RPT_WARNING, "%s: Brightness must be between 0 and 1000; using default %d", - drvthis->name, DEFAULT_BRIGHTNESS); - tmp = DEFAULT_BRIGHTNESS; - } - p->brightness = tmp; + p->brightness = config.brightness; /* Which backlight-off "brightness" */ - tmp = drvthis->config_get_int(drvthis->name, "OffBrightness", 0, DEFAULT_OFFBRIGHTNESS); - if ((tmp < 0) || (tmp > 1000)) { - report(RPT_WARNING, "%s: OffBrightness must be between 0 and 1000; using default %d", - drvthis->name, DEFAULT_OFFBRIGHTNESS); - tmp = DEFAULT_OFFBRIGHTNESS; - } - p->offbrightness = tmp; + p->offbrightness = config.offbrightness; /* Which speed */ - tmp = drvthis->config_get_int(drvthis->name, "Speed", 0, DEFAULT_SPEED); - if (tmp == 1200) speed = B1200; - else if (tmp == 2400) speed = B2400; - else if (tmp == 9600) speed = B9600; - else if (tmp == 19200) speed = B19200; - else if (tmp == 115200) speed = B115200; - else { - report(RPT_WARNING, "%s: Speed must be 1200, 2400, 9600, 19200 or 115200; using default %d", - drvthis->name, DEFAULT_SPEED); - speed = DEFAULT_SPEED; - } + speed = config.speed; /* New firmware version? */ - p->newfirmware = drvthis->config_get_bool(drvthis->name, "NewFirmware", 0, 0); + p->newfirmware = config.newfirmware; /* Reboot display? */ - reboot = drvthis->config_get_bool(drvthis->name, "Reboot", 0, 0); - + reboot = config.reboot; + /* Am I USB or not? */ - usb = drvthis->config_get_bool(drvthis->name, "USB", 0, 0); + usb = config.usb; /* Set up io port correctly, and open it... */ - debug(RPT_DEBUG, "CFontz: Opening device: %s", p->device); - p->fd = open(p->device, (usb) ? (O_RDWR | O_NOCTTY) : (O_RDWR | O_NOCTTY | O_NDELAY)); + debug(RPT_DEBUG, "CFontz: Opening device: %s", config.device); + p->fd = open(config.device, (usb) ? (O_RDWR | O_NOCTTY) : (O_RDWR | O_NOCTTY | O_NDELAY)); if (p->fd == -1) { - report(RPT_ERR, "%s: open(%s) failed (%s)", - drvthis->name, p->device, strerror(errno)); + report(RPT_ERR, "%s/#"ELEKTRA_LONG_LONG_F": open(%s) failed (%s)", + drvthis->name, drvthis->index, config.device, strerror(errno)); return -1; } diff --git a/server/drivers/CFontzPacket.c b/server/drivers/CFontzPacket.c index 4a4aac4e..4ebe9a67 100644 --- a/server/drivers/CFontzPacket.c +++ b/server/drivers/CFontzPacket.c @@ -51,6 +51,8 @@ #include "CFontz-charmap.h" #include "adv_bignum.h" +#include "../elektragen.h" + /* LEDs dispatch */ #define CF635_NUM_LEDs 8 @@ -60,8 +62,6 @@ /** private data for the \c CFontzPacket driver */ typedef struct CFontzPacket_private_data { - char device[200]; - int fd; int model; @@ -92,11 +92,11 @@ typedef struct CFontzPacket_private_data { /** List of known models and their default settings and features */ static CFA_Model CFA_ModelList[] = { - {533, "16x2", 5, 19200 , HD44780_charmap, CFA_HAS_TEMP | CFA_HAS_4_TEMP_SLOTS}, - {631, "20x2", 5, 115200, CFontz_charmap , CFA_HAS_FAN | CFA_HAS_TEMP | + {C_FONTZ_PACKET_MODEL_533, "16x2", 5, 19200 , HD44780_charmap, CFA_HAS_TEMP | CFA_HAS_4_TEMP_SLOTS}, + {C_FONTZ_PACKET_MODEL_631, "20x2", 5, 115200, CFontz_charmap , CFA_HAS_FAN | CFA_HAS_TEMP | CFA_HAS_KS0073 | CFA_HAS_4_TEMP_SLOTS}, - {633, "16x2", 5, 19200 , HD44780_charmap, CFA_HAS_FAN | CFA_HAS_TEMP}, - {635, "20x4", 5, 115200, CFontz_charmap , CFA_HAS_KS0073}, + {C_FONTZ_PACKET_MODEL_633, "16x2", 5, 19200 , HD44780_charmap, CFA_HAS_FAN | CFA_HAS_TEMP}, + {C_FONTZ_PACKET_MODEL_635, "20x4", 5, 115200, CFontz_charmap , CFA_HAS_KS0073}, {0, NULL, 0, 0, NULL, 0} }; @@ -125,9 +125,8 @@ MODULE_EXPORT int CFontzPacket_init (Driver *drvthis, Elektra * elektra) { struct termios portset; - int tmp, w, h, i; + int w, h, i; int cf_reboot = 0; - char size[200] = ""; PrivateData *p; @@ -149,38 +148,35 @@ CFontzPacket_init (Driver *drvthis, Elektra * elektra) EmptyKeyRing(&keyring); EmptyReceiveBuffer(&receivebuffer); - /* Read config file */ + /* Read config */ + CFontzPacketDriverConfig config; + elektraGet2V(elektra, &config, ELEKTRA_TAG_CFONTZPACKET, drvthis->index); /* Try to find a matching model from our list of known modules */ - tmp = drvthis->config_get_int(drvthis->name, "Model", 0, 633); - debug(RPT_INFO, "%s: Model (in config) is '%d'", __FUNCTION__, tmp); + debug(RPT_INFO, "%s: Model (in config) is '%d'", __FUNCTION__, config.model); i = 0; - while ((CFA_ModelList[i].model != 0) && (CFA_ModelList[i].model != tmp)) { + while ((CFA_ModelList[i].model != 0) && (CFA_ModelList[i].model != config.model)) { i++; } if (CFA_ModelList[i].model == 0) { - report(RPT_ERR, "%s: Invalid model configured", drvthis->name); + report(RPT_ERR, "%s/#"ELEKTRA_LONG_LONG_F": Invalid model configured", drvthis->name, drvthis->index); return -1; } - p->model = tmp; + p->model = config.model; p->model_desc = &(CFA_ModelList[i]); report(RPT_INFO, "%s: Found configuration for %d", __FUNCTION__, p->model_desc->model); debug(RPT_INFO, "%s: Flags are 0x%04X", __FUNCTION__, p->model_desc->flags); /* Which device should be used */ - strncpy(p->device, drvthis->config_get_string(drvthis->name, "Device", 0, DEFAULT_DEVICE), sizeof(p->device)); - p->device[sizeof(p->device)-1] = '\0'; - report(RPT_INFO, "%s: using Device %s", drvthis->name, p->device); + report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": using Device %s", drvthis->name, drvthis->index, config.device); /* Size setting */ - strncpy(size, drvthis->config_get_string(drvthis->name, "Size", 0, p->model_desc->size), sizeof(size)); - size[sizeof(size)-1] = '\0'; - debug(RPT_INFO, "%s: Size (in config) is '%s'", __FUNCTION__, size); - if ((sscanf(size, "%dx%d", &w, &h) != 2) + debug(RPT_INFO, "%s: Size (in config) is '%s'", __FUNCTION__, config.size); + if ((sscanf(config.size, "%dx%d", &w, &h) != 2) || (w <= 0) || (w > LCD_MAX_WIDTH) || (h <= 0) || (h > LCD_MAX_HEIGHT)) { report(RPT_WARNING, "%s: cannot parse Size: %s; using default %s", - drvthis->name, size, p->model_desc->size); + drvthis->name, config.size, p->model_desc->size); sscanf(p->model_desc->size, "%dx%d", &w, &h); } p->width = w; @@ -191,61 +187,33 @@ CFontzPacket_init (Driver *drvthis, Elektra * elektra) p->cellwidth = p->model_desc->cell_width; /* Which contrast */ - tmp = drvthis->config_get_int(drvthis->name, "Contrast", 0, DEFAULT_CONTRAST); - debug(RPT_INFO, "%s: Contrast (in config) is '%d'", __FUNCTION__, tmp); - if ((tmp < 0) || (tmp > 1000)) { - report(RPT_WARNING, "%s: Contrast must be between 0 and 1000; using default %d", - drvthis->name, DEFAULT_CONTRAST); - tmp = DEFAULT_CONTRAST; - } - p->contrast = tmp; + p->contrast = config.contrast; /* Which backlight brightness */ - tmp = drvthis->config_get_int(drvthis->name, "Brightness", 0, DEFAULT_BRIGHTNESS); - debug(RPT_INFO, "%s: Brightness (in config) is '%d'", __FUNCTION__, tmp); - if ((tmp < 0) || (tmp > 1000)) { - report(RPT_WARNING, "%s: Brightness must be between 0 and 1000; using default %d", - drvthis->name, DEFAULT_BRIGHTNESS); - tmp = DEFAULT_BRIGHTNESS; - } - p->brightness = tmp; + p->brightness = config.brightness; /* Which backlight-off "brightness" */ - tmp = drvthis->config_get_int(drvthis->name, "OffBrightness", 0, DEFAULT_OFFBRIGHTNESS); - debug(RPT_INFO, "%s: OffBrightness (in config) is '%d'", __FUNCTION__, tmp); - if ((tmp < 0) || (tmp > 1000)) { - report(RPT_WARNING, "%s: OffBrightness must be between 0 and 1000; using default %d", - drvthis->name, DEFAULT_OFFBRIGHTNESS); - tmp = DEFAULT_OFFBRIGHTNESS; - } - p->offbrightness = tmp; + p->offbrightness = config.offbrightness; /* Get speed setting. */ - tmp = drvthis->config_get_int(drvthis->name, "Speed", 0, p->model_desc->speed); - debug(RPT_INFO, "%s: Speed (in config) is '%d'", __FUNCTION__, tmp); - if ((tmp != 19200) && (tmp != 115200)) { - report(RPT_WARNING, "%s: Speed must be 19200 or 115200; using default %d", - drvthis->name, p->model_desc->speed); - tmp = p->model_desc->speed; - } - p->speed = (tmp == 19200) ? B19200 : B115200; + p->speed = (config.speed == 19200) ? B19200 : B115200; /* Does the display has an old firmware (<= 0.6)? */ - p->oldfirmware = drvthis->config_get_bool(drvthis->name, "OldFirmware", 0, 0); + p->oldfirmware = config.oldfirmware; /* Reboot display? */ - cf_reboot = drvthis->config_get_bool(drvthis->name, "Reboot", 0, 0); + cf_reboot = config.reboot; /* Am I USB or not? */ - p->usb = drvthis->config_get_bool(drvthis->name, "USB", 0, 0); + p->usb = config.usb; if (p->usb) - report(RPT_INFO, "%s: USB is indicated (in config)", drvthis->name); + report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": USB is indicated (in config)", drvthis->name, drvthis->index); /* Set up io port correctly, and open it... */ - debug(RPT_INFO, "%s: Opening device: %s", __FUNCTION__, p->device); - p->fd = open(p->device, (p->usb) ? (O_RDWR | O_NOCTTY) : (O_RDWR | O_NOCTTY | O_NDELAY)); + debug(RPT_INFO, "%s: Opening device: %s", __FUNCTION__, config.device); + p->fd = open(config.device, (p->usb) ? (O_RDWR | O_NOCTTY) : (O_RDWR | O_NOCTTY | O_NDELAY)); if (p->fd == -1) { - report(RPT_ERR, "%s: open(%s) failed (%s)", drvthis->name, p->device, strerror(errno)); + report(RPT_ERR, "%s: open(%s) failed (%s)", drvthis->name, config.device, strerror(errno)); return -1; } diff --git a/server/drivers/CwLnx.c b/server/drivers/CwLnx.c index 8fcac698..47a1c253 100644 --- a/server/drivers/CwLnx.c +++ b/server/drivers/CwLnx.c @@ -67,6 +67,8 @@ /* for the icon definitions & the big numbers */ #include "adv_bignum.h" +#include "../elektragen.h" + #define ValidX(x) if ((x) > p->width) { (x) = p->width; } else (x) = (x) < 1 ? 1 : (x); #define ValidY(y) if ((y) > p->height) { (y) = p->height; } else (y) = (y) < 1 ? 1 : (y); @@ -83,7 +85,7 @@ typedef struct CwLnx_private_data { int keypad_test_mode; char *KeyMap[MaxKeyMap]; - int model; + CwLnxModel model; /* dimensions */ int width, height; @@ -440,9 +442,7 @@ static void CwLnx_reboot(int fd) MODULE_EXPORT int CwLnx_init(Driver *drvthis, Elektra * elektra) { - char device[200] = DEFAULT_DEVICE; int speed = DEFAULT_SPEED; - char size[200] = DEFAULT_SIZE; int default_speed = DEFAULT_SPEED; char *default_size = DEFAULT_SIZE; @@ -473,51 +473,48 @@ CwLnx_init(Driver *drvthis, Elektra * elektra) p->saved_brightness = -1; p->brightness = DEFAULT_BRIGHTNESS; - debug(RPT_INFO, "%s: init(%p)", drvthis->name, drvthis); + debug(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": init(%p)", drvthis->name, drvthis->index, drvthis); + + /* Read config */ - /* Read config file */ + CwLnxDriverConfig config; + elektraGet2V(elektra, &config, ELEKTRA_TAG_CWLNX, drvthis->index); /* Which model is it (1602, 12232 or 12832)? */ - tmp = drvthis->config_get_int(drvthis->name, "Model", 0, 12232); - debug(RPT_INFO, "%s: Model (in config) is '%d'", __FUNCTION__, tmp); - if ((tmp != 1602) && (tmp != 12232) && (tmp != 12832)) { - tmp = 12232; - report(RPT_WARNING, "%s: Model must be 12232, 12832 or 1602; using default %d", - drvthis->name, tmp); - } - p->model = tmp; + p->model = config.model; /* Which size & cell dimensions */ - if (p->model == 1602) { - default_size = DEFAULT_SIZE_1602; - default_speed = DEFAULT_SPEED_1602; - p->cellwidth = DEFAULT_CELL_WIDTH_1602; - p->cellheight = DEFAULT_CELL_HEIGHT_1602; - } else if (p->model == 12232) { - default_size = DEFAULT_SIZE_12232; - default_speed = DEFAULT_SPEED_12232; - p->cellwidth = DEFAULT_CELL_WIDTH_12232; - p->cellheight = DEFAULT_CELL_HEIGHT_12232; - } else if (p->model == 12832) { - default_size = DEFAULT_SIZE_12832; - default_speed = DEFAULT_SPEED_12832; - p->cellwidth = DEFAULT_CELL_WIDTH_12832; - p->cellheight = DEFAULT_CELL_HEIGHT_12832; - } + switch (p->model) + { + case CW_LNX_MODEL_1602: + default_size = DEFAULT_SIZE_1602; + default_speed = DEFAULT_SPEED_1602; + p->cellwidth = DEFAULT_CELL_WIDTH_1602; + p->cellheight = DEFAULT_CELL_HEIGHT_1602; + break; + case CW_LNX_MODEL_12232: + default_size = DEFAULT_SIZE_12232; + default_speed = DEFAULT_SPEED_12232; + p->cellwidth = DEFAULT_CELL_WIDTH_12232; + p->cellheight = DEFAULT_CELL_HEIGHT_12232; + break; + case CW_LNX_MODEL_12832: + default_size = DEFAULT_SIZE_12832; + default_speed = DEFAULT_SPEED_12832; + p->cellwidth = DEFAULT_CELL_WIDTH_12832; + p->cellheight = DEFAULT_CELL_HEIGHT_12832; + break; + } /* Which device should be used */ - strncpy(device, drvthis->config_get_string(drvthis->name, "Device", 0, DEFAULT_DEVICE), sizeof(device)); - device[sizeof(device) - 1] = '\0'; - report(RPT_INFO, "%s: using Device %s", drvthis->name, device); + report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": using Device %s", drvthis->name, drvthis->index, config.device); /* Which size */ - strncpy(size, drvthis->config_get_string(drvthis->name, "Size", 0, default_size), sizeof(size)); - size[sizeof(size) - 1] = '\0'; - if ((sscanf(size, "%dx%d", &w, &h) != 2) + if ((sscanf(config.size, "%dx%d", &w, &h) != 2) || (w <= 0) || (w > LCD_MAX_WIDTH) || (h <= 0) || (h > LCD_MAX_HEIGHT)) { report(RPT_WARNING, "%s: cannot read Size: %s; using default %s", - drvthis->name, size, default_size); + drvthis->name, config.size, default_size); sscanf(default_size, "%dx%d", &w, &h); } p->width = w; @@ -526,9 +523,7 @@ CwLnx_init(Driver *drvthis, Elektra * elektra) /* Contrast of the LCD can be changed by adjusting the trimpot R7 */ /* Which speed */ - tmp = drvthis->config_get_int(drvthis->name, "Speed", 0, default_speed); - - switch (tmp) { + switch (config.speed) { case 9600: speed = B9600; break; @@ -542,46 +537,41 @@ CwLnx_init(Driver *drvthis, Elektra * elektra) } /* do we have a keypad? */ - if (drvthis->config_get_bool(drvthis->name , "Keypad", 0, 0)) { - report(RPT_INFO, "%s: Config tells us we have a keypad", drvthis->name); - p->have_keypad = 1; + if (config.keypad) { + report(RPT_INFO, "%s: Config tells us we have a keypad", drvthis->name); + p->have_keypad = 1; } /* keypad test mode? */ - if (drvthis->config_get_bool(drvthis->name , "keypad_test_mode", 0, 0)) { - report(RPT_INFO, "%s: Config tells us to test the keypad mapping", drvthis->name); - p->keypad_test_mode = 1; - stay_in_foreground = 1; + if (config.keypadTestMode) { + report(RPT_INFO, "%s: Config tells us to test the keypad mapping", drvthis->name); + p->keypad_test_mode = 1; + stay_in_foreground = 1; } /* read the keypad mapping only if we have a keypad. */ if (p->have_keypad) { - int x; - - /* Read keymap */ - for (x = 0; x < MaxKeyMap; x++) { - char buf[40]; + /* Read keymap */ + p->KeyMap[0] = strdup(config.keymapA); + report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": Key 'A' to \"%s\"", drvthis->name, drvthis->index, config.keymapA); - /* First fill with default value */ + p->KeyMap[1] = strdup(config.keymapB); + report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": Key 'B' to \"%s\"", drvthis->name, drvthis->index, config.keymapB); - p->KeyMap[x] = defaultKeyMap[x]; -/* The line above make a warning... the code is comming from hd44780.c */ + p->KeyMap[2] = strdup(config.keymapC); + report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": Key 'C' to \"%s\"", drvthis->name, drvthis->index, config.keymapC); -/* printf("%s-%s\n", defaultKeyMap[x], p->KeyMap[x]); */ + p->KeyMap[3] = strdup(config.keymapD); + report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": Key 'D' to \"%s\"", drvthis->name, drvthis->index, config.keymapD); - /* Read config value */ - sprintf(buf, "KeyMap_%c", x+'A'); - s = drvthis->config_get_string(drvthis->name, buf, 0, NULL); + p->KeyMap[4] = strdup(config.keymapE); + report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": Key 'E' to \"%s\"", drvthis->name, drvthis->index, config.keymapE); - /* Was a key specified in the config file ? */ - if (s != NULL) { - p->KeyMap[x] = strdup(s); - report(RPT_INFO, "%s: Key '%c' to \"%s\"", drvthis->name, x+'A', s); - } - } + p->KeyMap[5] = strdup(config.keymapF); + report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": Key 'F' to \"%s\"", drvthis->name, drvthis->index, config.keymapF); } - /* End of config file parsing */ + /* End of config processing */ /* Allocate framebuffer memory */ p->framebuf = (unsigned char *) malloc(p->width * p->height); @@ -601,13 +591,13 @@ CwLnx_init(Driver *drvthis, Elektra * elektra) /* Set up io port correctly, and open it... */ - debug(RPT_DEBUG, "%s: Opening device: %s", drvthis->name, device); - p->fd = open(device, O_RDWR | O_NOCTTY | O_NDELAY); + debug(RPT_DEBUG, "%s: Opening device: %s", drvthis->name, config.device); + p->fd = open(config.device, O_RDWR | O_NOCTTY | O_NDELAY); if (p->fd == -1) { - report(RPT_ERR, "%s: open(%s) failed (%s)", drvthis->name, device, strerror(errno)); + report(RPT_ERR, "%s: open(%s) failed (%s)", drvthis->name, config.device, strerror(errno)); return -1; } - report(RPT_INFO, "%s: opened display on %s", drvthis->name, device); + report(RPT_INFO, "%s: opened display on %s", drvthis->name, config.device); /* Since we don't know what speed the display is using when diff --git a/server/drivers/MtxOrb.c b/server/drivers/MtxOrb.c index f0de94b0..fee48b1d 100644 --- a/server/drivers/MtxOrb.c +++ b/server/drivers/MtxOrb.c @@ -62,6 +62,8 @@ #include "shared/report.h" +#include "../elektragen.h" + /* MO displays allow 25 keys that map by default to 'A' - 'Y' */ #define MAX_KEY_MAP 25 @@ -216,12 +218,8 @@ MODULE_EXPORT int MtxOrb_init (Driver *drvthis, Elektra * elektra) { struct termios portset; - - char device[256] = DEFAULT_DEVICE; int speed = DEFAULT_SPEED; - char size[256] = DEFAULT_SIZE; - char buf[256] = ""; - int tmp, w, h; + int w, h; PrivateData *p; @@ -250,62 +248,37 @@ MtxOrb_init (Driver *drvthis, Elektra * elektra) debug(RPT_INFO, "MtxOrb: init(%p)", drvthis); /* READ CONFIG FILE */ + MtxOrbDriverConfig config; + elektraGet2V(elektra, &config, ELEKTRA_TAG_MTXORB, drvthis->index); /* Get serial device to use */ - strncpy(device, drvthis->config_get_string(drvthis->name, "Device", 0, DEFAULT_DEVICE), sizeof(device)); - device[sizeof(device)-1] = '\0'; - report(RPT_INFO, "%s: using Device %s", drvthis->name, device); + report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": using Device %s", drvthis->name, drvthis->index, config.device); /* Get display size */ - strncpy(size, drvthis->config_get_string(drvthis->name, "Size", 0, DEFAULT_SIZE), sizeof(size)); - size[sizeof(size)-1] = '\0'; - if ((sscanf(size, "%dx%d", &w, &h) != 2) + if ((sscanf(config.size, "%dx%d", &w, &h) != 2) || (w <= 0) || (w > LCD_MAX_WIDTH) || (h <= 0) || (h > LCD_MAX_HEIGHT)) { report(RPT_WARNING, "%s: cannot read Size: %s; using default %s", - drvthis->name, size, DEFAULT_SIZE); + drvthis->name, config.size, DEFAULT_SIZE); sscanf(DEFAULT_SIZE , "%dx%d", &w, &h); } p->width = w; p->height = h; /* Get contrast */ - tmp = drvthis->config_get_int(drvthis->name, "Contrast", 0, DEFAULT_CONTRAST); - if ((tmp < 0) || (tmp > 1000)) { - report(RPT_WARNING, "%s: Contrast must be between 0 and 1000; using default %d", - drvthis->name, DEFAULT_CONTRAST); - tmp = DEFAULT_CONTRAST; - } - p->contrast = tmp; + p->contrast = config.contrast; /* Does it have an adjustable backlight */ - tmp = drvthis->config_get_bool(drvthis->name, "hasAdjustableBacklight", 0, DEFAULT_ADJ_BACKLIGHT); - debug(RPT_INFO, "%s: hasAdjustableBacklight is '%d'", __FUNCTION__, tmp); - p->adjustable_backlight = tmp; + p->adjustable_backlight = config.hasAdjustableBacklight; /* Which backlight brightness */ - tmp = drvthis->config_get_int(drvthis->name, "Brightness", 0, DEFAULT_BRIGHTNESS); - debug(RPT_INFO, "%s: Brightness (in config) is '%d'", __FUNCTION__, tmp); - if ((tmp < 0) || (tmp > 1000)) { - report(RPT_WARNING, "%s: Brightness must be between 0 and 1000; using default %d", - drvthis->name, DEFAULT_BRIGHTNESS); - tmp = DEFAULT_BRIGHTNESS; - } - p->brightness = tmp; + p->brightness = config.brightness; /* Which backlight-off "brightness" */ - tmp = drvthis->config_get_int(drvthis->name, "OffBrightness", 0, DEFAULT_OFFBRIGHTNESS); - debug(RPT_INFO, "%s: OffBrightness (in config) is '%d'", __FUNCTION__, tmp); - if ((tmp < 0) || (tmp > 1000)) { - report(RPT_WARNING, "%s: OffBrightness must be between 0 and 1000; using default %d", - drvthis->name, DEFAULT_OFFBRIGHTNESS); - tmp = DEFAULT_OFFBRIGHTNESS; - } - p->offbrightness = tmp; + p->offbrightness = config.offbrightness; /* Get speed */ - tmp = drvthis->config_get_int(drvthis->name, "Speed", 0, DEFAULT_SPEED); - switch (tmp) { + switch (config.speed) { case 1200: speed = B1200; break; @@ -321,30 +294,30 @@ MtxOrb_init (Driver *drvthis, Elektra * elektra) default: speed = B19200; report(RPT_WARNING, "%s: Speed must be 1200, 2400, 9600 or 19200; using default %d", - drvthis->name, tmp); + drvthis->name, config.speed); } /* Get display type */ - strncpy(buf, drvthis->config_get_string(drvthis->name, "Type", 0, DEFAULT_TYPE), sizeof(buf)); - buf[sizeof(buf)-1] = '\0'; - if (strncasecmp(buf, "lcd", 3) == 0) { + switch (config.type) + { + case ELEKTRA_ENUM_MTXORB_TYPE_LCD: p->MtxOrb_type = MTXORB_LCD; - } else if (strncasecmp(buf, "lkd", 3) == 0) { + break; + case ELEKTRA_ENUM_MTXORB_TYPE_LKD: p->MtxOrb_type = MTXORB_LKD; - } else if (strncasecmp(buf, "vfd", 3) == 0) { + break; + case ELEKTRA_ENUM_MTXORB_TYPE_VFD: p->MtxOrb_type = MTXORB_VFD; - } else if (strncasecmp(buf, "vkd", 3) == 0) { + break; + case ELEKTRA_ENUM_MTXORB_TYPE_VKD: p->MtxOrb_type = MTXORB_VKD; - } else { - report(RPT_ERR, "%s: unknown display Type %s; must be one of lcd, lkd, vfd, or vkd", - drvthis->name, buf); - return -1; + break; } /* Get keypad settings */ /* keypad test mode? */ - if (drvthis->config_get_bool(drvthis->name, "keypad_test_mode", 0, 0)) { + if (config.keypadTestMode) { fprintf(stdout, "MtxOrb: Entering keypad test mode...\n"); p->keypad_test_mode = 1; stay_in_foreground = 1; @@ -362,36 +335,65 @@ MtxOrb_init (Driver *drvthis, Elektra * elektra) p->keys = 0; /* read the keymap */ - for (i = 0; i < MAX_KEY_MAP; i++) { - const char *s; - - /* First fill with NULL; */ - p->keymap[i] = NULL; - - /* Read config value */ - sprintf(buf, "KeyMap_%c", i+'A'); - s = drvthis->config_get_string(drvthis->name, buf, 0, NULL); - - /* Was a key specified in the config file ? */ - if (s != NULL) { - p->keys++; - p->keymap[i] = strdup(s); - report(RPT_INFO, "%s: Key '%c' mapped to \"%s\"", - drvthis->name, i+'A', s ); - } + if(strlen(config.keymapA) > 0) { + p->keymap[0] = strdup(config.keymapA); + p->keys++; + report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": Key 'A' mapped to \"%s\"", drvthis->name, drvthis->index, config.keymapA); + } else { + p->keymap[0] = NULL; + } + + if(strlen(config.keymapB) > 0) { + p->keymap[1] = strdup(config.keymapB); + p->keys++; + report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": Key 'B' mapped to \"%s\"", drvthis->name, drvthis->index, config.keymapB); + } else { + p->keymap[1] = NULL; + } + + if(strlen(config.keymapC) > 0) { + p->keymap[2] = strdup(config.keymapC); + p->keys++; + report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": Key 'C' mapped to \"%s\"", drvthis->name, drvthis->index, config.keymapC); + } else { + p->keymap[2] = NULL; + } + + if(strlen(config.keymapD) > 0) { + p->keymap[3] = strdup(config.keymapD); + p->keys++; + report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": Key 'D' mapped to \"%s\"", drvthis->name, drvthis->index, config.keymapD); + } else { + p->keymap[4] = NULL; + } + + if(strlen(config.keymapE) > 0) { + p->keymap[4] = strdup(config.keymapE); + p->keys++; + report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": Key 'E' mapped to \"%s\"", drvthis->name, drvthis->index, config.keymapE); + } else { + p->keymap[4] = NULL; + } + + if(strlen(config.keymapF) > 0) { + p->keymap[5] = strdup(config.keymapF); + p->keys++; + report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": Key 'F' mapped to \"%s\"", drvthis->name, drvthis->index, config.keymapF); + } else { + p->keymap[5] = NULL; } } - /* End of config file parsing */ + /* End of config processing */ /* Set up io port correctly, and open it... */ - p->fd = open(device, O_RDWR | O_NOCTTY); + p->fd = open(config.device, O_RDWR | O_NOCTTY); if (p->fd == -1) { - report(RPT_ERR, "%s: open(%s) failed (%s)", drvthis->name, device, strerror(errno)); + report(RPT_ERR, "%s: open(%s) failed (%s)", drvthis->name, config.device, strerror(errno)); if (errno == EACCES) - report(RPT_ERR, "%s: %s device could not be opened...", drvthis->name, device); + report(RPT_ERR, "%s: %s device could not be opened...", drvthis->name, config.device); return -1; } - report(RPT_INFO, "%s: opened display on %s", drvthis->name, device); + report(RPT_INFO, "%s: opened display on %s", drvthis->name, config.device); tcgetattr(p->fd, &portset); diff --git a/server/drivers/bayrad.c b/server/drivers/bayrad.c index d011b4f0..4d78818e 100644 --- a/server/drivers/bayrad.c +++ b/server/drivers/bayrad.c @@ -37,6 +37,8 @@ #include "shared/report.h" #include "lcd_lib.h" +#include "../elektragen.h" + #define NUM_CCs 8 /* number of characters */ #define BAYRAD_DEFAULT_DEVICE "/dev/lcd" @@ -44,7 +46,6 @@ /** private data for the \c bayrad driver */ typedef struct bayrad_private_data { - char device[256]; int speed; int fd; int width; @@ -93,31 +94,21 @@ bayrad_init(Driver *drvthis, Elektra * elektra) p->ccmode = standard; - /* Read config file */ + /* Read config */ + + BayradDriverConfig config; + elektraGet2V (elektra, &config, ELEKTRA_TAG_BAYRAD, drvthis->index); /* What device should be used */ - strncpy(p->device, drvthis->config_get_string(drvthis->name, "Device", 0, - BAYRAD_DEFAULT_DEVICE), sizeof(p->device)); - p->device[sizeof(p->device)-1] = '\0'; - report(RPT_INFO, "%s: using Device %s", drvthis->name, p->device); + report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": using Device %s", drvthis->name, drvthis->index, config.device); /* What speed to use */ - p->speed = drvthis->config_get_int(drvthis->name, "Speed", 0, 9600); - - if (p->speed == 1200) p->speed = B1200; - else if (p->speed == 2400) p->speed = B2400; - else if (p->speed == 9600) p->speed = B9600; - else if (p->speed == 19200) p->speed = B19200; - else { - report(RPT_WARNING, "%s: illegal Speed %d; must be one of 1200, 2400, 9600 or 19200; using default %d", - drvthis->name, p->speed, 9600); - p->speed = B9600; - } + p->speed = config.speed; // Set up io port correctly, and open it... - p->fd = open(p->device, O_RDWR | O_NOCTTY | O_NDELAY); + p->fd = open(config.device, O_RDWR | O_NOCTTY | O_NDELAY); if (p->fd == -1) { - report(RPT_ERR, "%s: open(%s) failed (%s)", drvthis->name, p->device, strerror(errno)); + report(RPT_ERR, "%s#"ELEKTRA_LONG_LONG_F": open(%s) failed (%s)", drvthis->name, drvthis->index, config.device, strerror(errno)); return -1; } diff --git a/server/drivers/curses_drv.c b/server/drivers/curses_drv.c index 2bae270b..a6a17792 100644 --- a/server/drivers/curses_drv.c +++ b/server/drivers/curses_drv.c @@ -176,13 +176,13 @@ curses_init (Driver *drvthis, Elektra * elektra) p->cellheight = LCD_DEFAULT_CELLHEIGHT; p->drawBorder = CONF_DEF_DRAWBORDER; - /* Get settings from config file */ - - /* Get color settings */ + /* Get settings from config */ CursesDriverConfig config; elektraGet2V(elektra, &config, ELEKTRA_TAG_CURSES, drvthis->index); + /* Get color settings */ + /* foreground color */ fore_color = map_color_to_curses(config.foreground); debug(RPT_DEBUG, "%s: using foreground color %s", drvthis->name, ELEKTRA_TO_STRING(EnumCursesColor) (config.foreground)); diff --git a/server/drivers/curses_drv.h b/server/drivers/curses_drv.h index 437c8472..45eacc09 100644 --- a/server/drivers/curses_drv.h +++ b/server/drivers/curses_drv.h @@ -23,7 +23,7 @@ MODULE_EXPORT void curses_backlight (Driver *drvthis, int on); MODULE_EXPORT const char *curses_get_key (Driver *drvthis); MODULE_EXPORT const char *curses_get_info(Driver *drvthis); -/* Default settings for config file parsing */ +/* Default settings for config */ #define CONF_DEF_FOREGR "blue" #define CONF_DEF_BACKGR "cyan" #define CONF_DEF_BACKLIGHT "red" diff --git a/server/drivers/glk.c b/server/drivers/glk.c index 5329ab21..430ef1ed 100644 --- a/server/drivers/glk.c +++ b/server/drivers/glk.c @@ -42,6 +42,8 @@ #include "shared/report.h" #include "adv_bignum.h" +#include "../elektragen.h" + #define GLK_DEFAULT_DEVICE "/dev/lcd" #define GLK_DEFAULT_SPEED 19200 #define GLK_DEFAULT_CONTRAST 500 @@ -51,7 +53,6 @@ /** private data for the \c glk driver */ typedef struct glk_private_data { - char device[256]; GLKDisplay *fd; speed_t speed; @@ -115,16 +116,15 @@ glk_init(Driver *drvthis, Elektra * elektra) p->contrast = GLK_DEFAULT_CONTRAST; p->clearcount = 0; - /* Read config file */ + /* Read config */ + GlkDriverConfig config; + elektraGet2V(elektra, &config, ELEKTRA_TAG_GLK, drvthis->index); /* What device should be used */ - strncpy(p->device, drvthis->config_get_string(drvthis->name, "Device", 0, - GLK_DEFAULT_DEVICE), sizeof(p->device)); - p->device[sizeof(p->device)-1] = '\0'; - report(RPT_INFO, "%s: using Device %s", drvthis->name, p->device); + report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": using Device %s", drvthis->name, drvthis->index, config.device); /* What speed to use */ - p->speed = drvthis->config_get_int(drvthis->name, "Speed", 0, 19200); + p->speed = config.speed; if (p->speed == 9600) p->speed = B9600; else if (p->speed == 19200) p->speed = B19200; @@ -138,19 +138,14 @@ glk_init(Driver *drvthis, Elektra * elektra) } /* Which contrast */ - p->contrast = drvthis->config_get_int(drvthis->name, "Contrast" , 0 , GLK_DEFAULT_CONTRAST); - if ((p->contrast < 0) || (p->contrast > 1000)) { - report(RPT_WARNING, "%s: Contrast must be between 0 and 1000. Using default %d", - drvthis->name, GLK_DEFAULT_CONTRAST); - p->contrast = GLK_DEFAULT_CONTRAST; - } + p->contrast = config.contrast; - /* End of config file parsing */ + /* End of config processing */ /* open device */ - p->fd = glkopen(p->device, p->speed); + p->fd = glkopen(config.device, p->speed); if (p->fd == NULL) { - report(RPT_ERR, "%s: unable to open device %s", drvthis->name, p->device); + report(RPT_ERR, "%s: unable to open device %s", drvthis->name, config.device); return -1; } diff --git a/server/drivers/lb216.c b/server/drivers/lb216.c index f709528d..3dfe9d15 100644 --- a/server/drivers/lb216.c +++ b/server/drivers/lb216.c @@ -34,13 +34,14 @@ #include "lcd_lib.h" #include "shared/report.h" +#include "../elektragen.h" + #define LB216_DEFAULT_DEVICE "/dev/lcd" #define LB216_DEFAULT_SPEED 9600 #define LB216_DEFAULT_BRIGHTNESS 255 /** private data for the \c lb216 driver */ typedef struct LB216_private_data { - char device[256]; int speed; int fd; char *framebuf; @@ -92,16 +93,15 @@ LB216_init(Driver *drvthis, Elektra * elektra) p->cellheight = LCD_DEFAULT_CELLHEIGHT; p->custom = standard; - /* Read config file */ + /* Read config */ + Lb216DriverConfig config; + elektraGet2V(elektra, &config, ELEKTRA_TAG_LB216, drvthis->index); /* What device should be used */ - strncpy(p->device, drvthis->config_get_string(drvthis->name, "Device", 0, - LB216_DEFAULT_DEVICE), sizeof(p->device)); - p->device[sizeof(p->device)-1] = '\0'; - report(RPT_INFO, "%s: using Device %s", drvthis->name, p->device); + report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": using Device %s", drvthis->name, drvthis->index, config.device); /* What speed to use */ - p->speed = drvthis->config_get_int(drvthis->name, "Speed", 0, LB216_DEFAULT_SPEED); + p->speed = config.speed; if (p->speed == 2400) p->speed = B2400; else if (p->speed == 9600) p->speed = B9600; @@ -112,25 +112,20 @@ LB216_init(Driver *drvthis, Elektra * elektra) } /* Which backlight brightness */ - p->backlight_brightness = drvthis->config_get_int(drvthis->name, "Brightness", 0, LB216_DEFAULT_BRIGHTNESS); - if ((p->backlight_brightness < 0) || (p->backlight_brightness > 255)) { - report(RPT_WARNING, "%s: Brightness must be between 0 and 255; using default %d", - drvthis->name, LB216_DEFAULT_BRIGHTNESS); - p->backlight_brightness = LB216_DEFAULT_BRIGHTNESS; - } + p->backlight_brightness = config.brightness; /* Reboot display? */ - reboot = drvthis->config_get_bool(drvthis->name , "Reboot", 0, 0); + reboot = config.reboot; - /* End of config file parsing */ + /* End of config processing */ // Set up io port correctly, and open it... - p->fd = open(p->device, O_RDWR | O_NOCTTY | O_NDELAY); + p->fd = open(config.device, O_RDWR | O_NOCTTY | O_NDELAY); if (p->fd == -1) { - report(RPT_ERR, "%s: open(%s) failed (%s)", drvthis->name, p->device, strerror(errno)); + report(RPT_ERR, "%s: open(%s) failed (%s)", drvthis->name, config.device, strerror(errno)); return -1; } - report(RPT_DEBUG, "%s: opened device %s", drvthis->name, p->device); + report(RPT_DEBUG, "%s: opened device %s", drvthis->name, config.device); tcgetattr(p->fd, &portset); diff --git a/server/drivers/lcdm001.c b/server/drivers/lcdm001.c index b4b16c6c..47c5aa8a 100644 --- a/server/drivers/lcdm001.c +++ b/server/drivers/lcdm001.c @@ -46,10 +46,10 @@ #include "lcdm001.h" #include "shared/report.h" +#include "../elektragen.h" /** private data for the \c lcdm001 driver */ typedef struct lcdm001_private_data { - char device[200]; int fd; int speed; @@ -85,32 +85,19 @@ static char lcdm001_parse_keypad_setting(Driver *drvthis, char * keyname, char * * pressed. */ static char -lcdm001_parse_keypad_setting(Driver *drvthis, char * keyname, char * default_value) +map_key(Lcdm001Keys key) { - char return_val = 0; - - if (strcmp(drvthis->config_get_string(drvthis->name, keyname, 0, default_value), "LeftKey") == 0) { - return_val = LEFT_KEY; - } else if (strcmp(drvthis->config_get_string(drvthis->name, keyname, 0, default_value), "RightKey") == 0) { - return_val = RIGHT_KEY; - } else if (strcmp(drvthis->config_get_string(drvthis->name, keyname, 0, default_value), "UpKey") == 0) { - return_val = UP_KEY; - } else if (strcmp(drvthis->config_get_string(drvthis->name, keyname, 0, default_value), "DownKey") == 0) { - return_val = DOWN_KEY; - } else { - report(RPT_WARNING, "%s: invalid config setting for %s; using default %s", - drvthis->name, keyname, default_value); - if (strcmp(default_value, "LeftKey") == 0) { - return_val = LEFT_KEY; - } else if (strcmp(default_value, "RightKey") == 0) { - return_val = RIGHT_KEY; - } else if (strcmp(default_value, "UpKey") == 0) { - return_val = UP_KEY; - } else if (strcmp(default_value, "DownKey") == 0) { - return_val = DOWN_KEY; - } + switch (key) + { + case LCDM001_KEYS_LEFT_KEY: + return LEFT_KEY; + case LCDM001_KEYS_RIGHT_KEY: + return RIGHT_KEY; + case LCDM001_KEYS_UP_KEY: + return UP_KEY; + case LCDM001_KEYS_DOWN_KEY: + return DOWN_KEY; } - return return_val; } /** @@ -171,30 +158,30 @@ lcdm001_init (Driver *drvthis, Elektra * elektra) memset(p->framebuf, ' ', p->width * p->height); /* READ CONFIG FILE: */ + Lcdm001DriverConfig config; + elektraGet2V(elektra, &config, ELEKTRA_TAG_LCDM001, drvthis->index); /* which serial device should be used */ - strncpy(p->device, drvthis->config_get_string(drvthis->name, "Device", 0, "/dev/lcd"), sizeof(p->device)); - p->device[sizeof(p->device)-1] = '\0'; - report(RPT_INFO, "%s: using Device %s", drvthis->name, p->device); + report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": using Device %s", drvthis->name, drvthis->index, config.device); /* keypad settings */ - p->pause_key = lcdm001_parse_keypad_setting(drvthis, "PauseKey", "DownKey"); - p->back_key = lcdm001_parse_keypad_setting(drvthis, "BackKey", "LeftKey"); - p->forward_key = lcdm001_parse_keypad_setting(drvthis, "ForwardKey", "RightKey"); - p->main_menu_key = lcdm001_parse_keypad_setting(drvthis, "MainMenuKey", "UpKey"); + p->pause_key = map_key(config.pausekey); + p->back_key = map_key(config.backkey); + p->forward_key = map_key(config.forwardkey); + p->main_menu_key = map_key(config.mainmenukey); /* Set up io port correctly, and open it... */ - debug(RPT_DEBUG, "%s: opening serial device: %s", __FUNCTION__, p->device); - p->fd = open(p->device, O_RDWR | O_NOCTTY | O_NDELAY); + debug(RPT_DEBUG, "%s: opening serial device: %s", __FUNCTION__, config.device); + p->fd = open(config.device, O_RDWR | O_NOCTTY | O_NDELAY); if (p->fd == -1) { report(RPT_ERR, "%s: open(%d) failed (%s)", - drvthis->name, p->device, strerror(errno)); + drvthis->name, config.device, strerror(errno)); if (errno == EACCES) report(RPT_ERR, "%s: make sure you have rw access to %s!", - drvthis->name, p->device); + drvthis->name, config.device); return -1; } - report(RPT_INFO, "%s: opened display on %s", drvthis->name, p->device); + report(RPT_INFO, "%s: opened display on %s", drvthis->name, config.device); tcgetattr(p->fd, &portset); #ifdef HAVE_CFMAKERAW diff --git a/server/drivers/pylcd.c b/server/drivers/pylcd.c index bb93b848..2aeed3c8 100644 --- a/server/drivers/pylcd.c +++ b/server/drivers/pylcd.c @@ -58,6 +58,8 @@ #include "shared/report.h" #include "adv_bignum.h" +#include "../elektragen.h" + #define True 1 #define False 0 @@ -320,22 +322,23 @@ pyramid_init(Driver *drvthis, Elektra * elektra) p->timeout.tv_usec = MICROTIMEOUT; /* - * read config file, fill configuration dependent elements of private + * read config, fill configuration dependent elements of private * data */ + PyramidDriverConfig config; + elektraGet2V(elektra, &config, ELEKTRA_TAG_PYRAMID, drvthis->index); + /* Which serial device should be used? */ - strncpy(p->device, drvthis->config_get_string(drvthis->name, "Device", 0, "/dev/lcd"), sizeof(p->device)); - p->device[sizeof(p->device) - 1] = '\0'; - report(RPT_INFO, "%s: using Device %s", drvthis->name, p->device); + report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": using Device %s", drvthis->name, drvthis->index, config.device); /* Initialize connection to the LCD */ /* open and initialize serial device */ - p->FD = open(p->device, O_RDWR); + p->FD = open(config.device, O_RDWR); if (p->FD == -1) { - report(RPT_ERR, "%s: open(%s) failed: %s", drvthis->name, p->device, strerror(errno)); + report(RPT_ERR, "%s: open(%s) failed: %s", drvthis->name, config.device, strerror(errno)); return -1; } diff --git a/server/drivers/pylcd.h b/server/drivers/pylcd.h index 46899b24..78e675a0 100644 --- a/server/drivers/pylcd.h +++ b/server/drivers/pylcd.h @@ -41,7 +41,6 @@ typedef struct pyramid_private_data { /* device io */ int FD; - char device[255]; fd_set rdfs; struct timeval timeout; diff --git a/server/drivers/text.c b/server/drivers/text.c index 95291cb1..a499e767 100644 --- a/server/drivers/text.c +++ b/server/drivers/text.c @@ -33,6 +33,7 @@ #include "text.h" #include "shared/report.h" +#include "../elektragen.h" /** private data for the \c text driver */ typedef struct text_private_data { @@ -59,7 +60,6 @@ MODULE_EXPORT int text_init (Driver *drvthis, Elektra * elektra) { PrivateData *p; - char buf[256]; /* Allocate and store private data */ p = (PrivateData *) calloc(1, sizeof(PrivateData)); @@ -70,6 +70,9 @@ text_init (Driver *drvthis, Elektra * elektra) /* initialize private data */ + TextDriverConfig config; + elektraGet2V(elektra, &config, ELEKTRA_TAG_TEXT, drvthis->index); + // Set display sizes if ((drvthis->request_display_width() > 0) && (drvthis->request_display_height() > 0)) { @@ -79,13 +82,11 @@ text_init (Driver *drvthis, Elektra * elektra) } else { /* Use our own size from config file */ - strncpy(buf, drvthis->config_get_string(drvthis->name, "Size", 0, TEXTDRV_DEFAULT_SIZE), sizeof(buf)); - buf[sizeof(buf)-1] = '\0'; - if ((sscanf(buf , "%dx%d", &p->width, &p->height) != 2) + if ((sscanf(config.size , "%dx%d", &p->width, &p->height) != 2) || (p->width <= 0) || (p->width > LCD_MAX_WIDTH) || (p->height <= 0) || (p->height > LCD_MAX_HEIGHT)) { report(RPT_WARNING, "%s: cannot read Size: %s; using default %s", - drvthis->name, buf, TEXTDRV_DEFAULT_SIZE); + drvthis->name, config.size, TEXTDRV_DEFAULT_SIZE); sscanf(TEXTDRV_DEFAULT_SIZE, "%dx%d", &p->width, &p->height); } } diff --git a/server/elektragen.c b/server/elektragen.c new file mode 100644 index 00000000..3827e1bf --- /dev/null +++ b/server/elektragen.c @@ -0,0 +1,18843 @@ +// clang-format off + + +// clang-format on +/** + * @file + * + * This file was automatically generated using `kdb gen elektra`. + * Any changes will be overwritten, when the file is regenerated. + * + * @copyright BSD Zero Clause License + * + * Copyright (C) 2019 Elektra Initiative (https://libelektra.org) + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH + * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND + * FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, + * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM + * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR + * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + * PERFORMANCE OF THIS SOFTWARE. + */ + +#include "elektragen.h" + + + +#include +#include +#include + +#include +#include +#include + +#include + +static Key * helpKey = NULL; + + +/** + * Initializes an instance of Elektra for the application '/sw/lcdproc/lcdd/#0/current'. + * + * This can be invoked as many times as you want, however it is not a cheap operation, + * so you should try to reuse the Elektra handle as much as possible. + * + * @param elektra A reference to where the Elektra instance shall be stored. + * Has to be disposed of with elektraClose(). + * @param error A reference to an ElektraError pointer. Will be passed to elektraOpen(). + * + * @retval 0 on success, @p elektra will be set, @p error will be unchanged + * @retval -1 on error, @p elektra will be unchanged, @p error will be set + * @retval 1 specload mode, exit as soon as possible and must DO NOT write anything to stdout, + * @p elektra and @p error are both unchanged + * @retval 2 help mode, '-h' or '--help' was specified call printHelpMessage and exit + * @p elektra and @p error are both unchanged + * IMPORTANT: there will be memory leaks, if you don't call printHelpMessage !! + * + * @see elektraOpen + */// +int loadConfiguration (Elektra ** elektra, ElektraError ** error) +{ + KeySet * defaults = ksNew (571, + keyNew("", KEY_META, "infos/plugins", "ini validation type", KEY_META, "mountpoint", "LCDd.conf", KEY_END), + keyNew ("/bayrad/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a bayrad driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "BayradDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/bayrad/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/bayrad/#/file", KEY_VALUE, "bayrad", KEY_META, "default", "bayrad", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/bayrad/#/speed", KEY_VALUE, "9600", KEY_META, "check/range", "1200, 2400, 9600, 19200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/cfontz/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a CFontz driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "CFontzDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/cfontz/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/cfontz/#/contrast", KEY_VALUE, "350", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "350", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/cfontz/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/cfontz/#/file", KEY_VALUE, "CFontz", KEY_META, "default", "CFontz", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/cfontz/#/newfirmware", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Set the firmware version (New means >= 2.0)", KEY_META, "type", "boolean", KEY_END), + keyNew ("/cfontz/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness. This value is used when the display is normally switched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/cfontz/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/cfontz/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Select the LCD size", KEY_META, "type", "string", KEY_END), + keyNew ("/cfontz/#/speed", KEY_VALUE, "9600", KEY_META, "check/range", "1200, 2400, 9600, 19200, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/cfontz/#/usb", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Is this driver using USB\?", KEY_META, "type", "boolean", KEY_END), + keyNew ("/cfontzpacket/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a CFontzPacket driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "CFontzPacketDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/cfontzpacket/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/cfontzpacket/#/contrast", KEY_VALUE, "350", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "350", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/cfontzpacket/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "type", "string", KEY_END), + keyNew ("/cfontzpacket/#/file", KEY_VALUE, "CFontzPacket", KEY_META, "default", "CFontzPacket", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/cfontzpacket/#/model", KEY_VALUE, "633", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "533", KEY_META, "check/enum/#1", "631", KEY_META, "check/enum/#2", "633", KEY_META, "check/enum/#3", "635", KEY_META, "check/type", "enum", KEY_META, "default", "633", KEY_META, "description", "Select the LCD model", KEY_META, "gen/enum/type", "CFontzPacketModel", KEY_META, "type", "enum", KEY_END), + keyNew ("/cfontzpacket/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness. This value is used when the display is normally switched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/cfontzpacket/#/oldfirmware", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Very old 633 firmware versions do not support partial screen updates using \'Send Data to LCD\' command (31). For those devices it may be necessary to enable this flag", KEY_META, "type", "boolean", KEY_END), + keyNew ("/cfontzpacket/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/cfontzpacket/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Override the LCD size known for the selected model. Usually setting this value should not be necessary.", KEY_META, "type", "string", KEY_END), + keyNew ("/cfontzpacket/#/speed", KEY_VALUE, "115200", KEY_META, "check/range", "19200, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "115200", KEY_META, "description", "Override the default communication speed known for the selected model. Default value depends on model.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/cfontzpacket/#/usb", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Enable the USB flag if the device is connected to an USB port. For serial ports leave it disabled.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/curses/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a curses driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "CursesDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/curses/#/background", KEY_VALUE, "cyan", KEY_META, "check/enum", "#7", KEY_META, "check/enum/#0", "red", KEY_META, "check/enum/#1", "black", KEY_META, "check/enum/#2", "green", KEY_META, "check/enum/#3", "yellow", KEY_META, "check/enum/#4", "blue", KEY_META, "check/enum/#5", "magenta", KEY_META, "check/enum/#6", "cyan", KEY_META, "check/enum/#7", "white", KEY_META, "check/type", "enum", KEY_META, "default", "cyan", KEY_META, "description", "background color when \"backlight\" is off", KEY_META, "gen/enum/type", "CursesColor", KEY_META, "type", "enum", KEY_END), + keyNew ("/curses/#/backlight", KEY_VALUE, "red", KEY_META, "check/enum", "#7", KEY_META, "check/enum/#0", "red", KEY_META, "check/enum/#1", "black", KEY_META, "check/enum/#2", "green", KEY_META, "check/enum/#3", "yellow", KEY_META, "check/enum/#4", "blue", KEY_META, "check/enum/#5", "magenta", KEY_META, "check/enum/#6", "cyan", KEY_META, "check/enum/#7", "white", KEY_META, "check/type", "enum", KEY_META, "default", "red", KEY_META, "description", "background color when \"backlight\" is on", KEY_META, "gen/enum/type", "CursesColor", KEY_META, "type", "enum", KEY_END), + keyNew ("/curses/#/drawborder", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "draw Border", KEY_META, "type", "boolean", KEY_END), + keyNew ("/curses/#/file", KEY_VALUE, "curses", KEY_META, "default", "curses", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/curses/#/foreground", KEY_VALUE, "blue", KEY_META, "check/enum", "#7", KEY_META, "check/enum/#0", "red", KEY_META, "check/enum/#1", "black", KEY_META, "check/enum/#2", "green", KEY_META, "check/enum/#3", "yellow", KEY_META, "check/enum/#4", "blue", KEY_META, "check/enum/#5", "magenta", KEY_META, "check/enum/#6", "cyan", KEY_META, "check/enum/#7", "white", KEY_META, "check/type", "enum", KEY_META, "default", "blue", KEY_META, "description", "Color settings", KEY_META, "gen/enum/type", "CursesColor", KEY_META, "type", "enum", KEY_END), + keyNew ("/curses/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), + keyNew ("/curses/#/topleftx", KEY_VALUE, "7", KEY_META, "check/type", "unsigned_short", KEY_META, "check/validation", "([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "7", KEY_META, "description", "What position (X,Y) to start the left top corner at...", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/curses/#/toplefty", KEY_VALUE, "7", KEY_META, "check/type", "unsigned_short", KEY_META, "check/validation", "([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "7", KEY_META, "description", "What position (X,Y) to start the left top corner at...", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/curses/#/useacs", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "use ASC symbols for icons & bars", KEY_META, "type", "boolean", KEY_END), + keyNew ("/cwlnx/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a CwLnx driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "CwLnxDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/cwlnx/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/cwlnx/#/file", KEY_VALUE, "CwLnx", KEY_META, "default", "CwLnx", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/cwlnx/#/keymap_a", KEY_VALUE, "Up", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("/cwlnx/#/keymap_b", KEY_VALUE, "Down", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("/cwlnx/#/keymap_c", KEY_VALUE, "Left", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("/cwlnx/#/keymap_d", KEY_VALUE, "Right", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("/cwlnx/#/keymap_e", KEY_VALUE, "Enter", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("/cwlnx/#/keymap_f", KEY_VALUE, "Escape", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("/cwlnx/#/keypad", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If you have a keypad connected. Keypad layout is currently not configureable from the config file.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/cwlnx/#/keypad_test_mode", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "permits one to test keypad assignment", KEY_META, "type", "boolean", KEY_END), + keyNew ("/cwlnx/#/model", KEY_VALUE, "12232", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "12232", KEY_META, "check/enum/#1", "12832", KEY_META, "check/enum/#2", "1602", KEY_META, "check/type", "enum", KEY_META, "default", "12232", KEY_META, "description", "Select the LCD model", KEY_META, "gen/enum/type", "CwLnxModel", KEY_META, "type", "enum", KEY_END), + keyNew ("/cwlnx/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Select the LCD size. Default depends on model: \n12232: 20x4 \n12832: 21x4 \n1602: 16x2", KEY_META, "type", "string", KEY_END), + keyNew ("/cwlnx/#/speed", KEY_VALUE, "19200", KEY_META, "check/range", "9600, 19200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/ea65/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a ea65 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Ea65DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/ea65/#/brightness", KEY_VALUE, "500", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "As the VFD is self luminescent we don\'t have a backlight\nBut we can use the backlight functions to control the front LEDs\nBrightness 0 to 299 -> LEDs off\nBrightness 300 to 699 -> LEDs half bright\nBrightness 700 to 1000 -> LEDs full bright", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/ea65/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/ea65/#/file", KEY_VALUE, "ea65", KEY_META, "default", "ea65", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/ea65/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "OffBrightness is the the value used for the \'backlight off\' state", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/ea65/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/eyeboxone/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a EyeboxOne driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "EyeboxOneDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/eyeboxone/#/backlight", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Switch on the backlight\?", KEY_META, "type", "boolean", KEY_END), + keyNew ("/eyeboxone/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/eyeboxone/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/eyeboxone/#/cursor", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Switch on the cursor\?", KEY_META, "type", "boolean", KEY_END), + keyNew ("/eyeboxone/#/device", KEY_VALUE, "/dev/ttyS1", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/eyeboxone/#/downkey", KEY_VALUE, "B", KEY_META, "check/type", "string", KEY_META, "default", "B", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), + keyNew ("/eyeboxone/#/escapekey", KEY_VALUE, "P", KEY_META, "check/type", "string", KEY_META, "default", "P", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), + keyNew ("/eyeboxone/#/file", KEY_VALUE, "EyeboxOne", KEY_META, "default", "EyeboxOne", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/eyeboxone/#/keypad_test_mode", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "You can find out which key of your display sends which\ncharacter by setting keypad_test_mode to yes and running\nLCDd. LCDd will output all characters it receives.\nAfterwards you can modify the settings above and set\nkeypad_set_mode to no again.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/eyeboxone/#/leftkey", KEY_VALUE, "D", KEY_META, "check/type", "string", KEY_META, "default", "D", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), + keyNew ("/eyeboxone/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/eyeboxone/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/eyeboxone/#/rightkey", KEY_VALUE, "C", KEY_META, "check/type", "string", KEY_META, "default", "C", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), + keyNew ("/eyeboxone/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Set the display size", KEY_META, "type", "string", KEY_END), + keyNew ("/eyeboxone/#/speed", KEY_VALUE, "19200", KEY_META, "check/range", "1200, 2400, 9600, 19200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/eyeboxone/#/upkey", KEY_VALUE, "A", KEY_META, "check/type", "string", KEY_META, "default", "A", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), + keyNew ("/futaba/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a futaba driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "FutabaDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/futaba/#/file", KEY_VALUE, "futaba", KEY_META, "default", "futaba", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/g15/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a g15 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "G15DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/g15/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/g15/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/g15/#/file", KEY_VALUE, "g15", KEY_META, "default", "g15", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/g15/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/g15/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/g15/#/size", KEY_VALUE, "20x5", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x5", KEY_META, "description", "Display size (currently unused)", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a glcd driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "GlcdDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/glcd/#/bidirectional", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Use LPT port in bi-directional mode. This should work on most LPT port and is required for proper timing!", KEY_META, "type", "boolean", KEY_END), + keyNew ("/glcd/#/brightness", KEY_VALUE, "800", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "800", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/glcd/#/cellsize", KEY_VALUE, "6x8", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "6x8", KEY_META, "description", "Width and height of a character cell in pixels. This value is only used the driver has been compiled with FreeType and it is enabled. Otherwise the default 6x8 cell is used.", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#/connectiontype", KEY_VALUE, "t6963", KEY_META, "check/enum", "#6", KEY_META, "check/enum/#0", "t6963", KEY_META, "check/enum/#1", "png", KEY_META, "check/enum/#2", "serdisplib", KEY_META, "check/enum/#3", "glcd2usb", KEY_META, "check/enum/#4", "x11", KEY_META, "check/enum/#5", "picolcdgfx", KEY_META, "check/enum/#6", "xyz", KEY_META, "check/type", "enum", KEY_META, "default", "t6963", KEY_META, "description", "Select what type of connection. See documentation for types.", KEY_META, "gen/enum/type", "GlcdConnectionType", KEY_META, "type", "enum", KEY_END), + keyNew ("/glcd/#/contrast", KEY_VALUE, "600", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "600", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/glcd/#/delaybus", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Insert additional delays into reads / writes.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/glcd/#/file", KEY_VALUE, "glcd", KEY_META, "default", "glcd", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#/fonthasicons", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Some fonts miss the Unicode characters used to represent icons. In this case the built-in 5x8 font can used if this option is turned off.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/glcd/#/keymap_a", KEY_VALUE, "Up", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#/keymap_b", KEY_VALUE, "Down", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#/keymap_c", KEY_VALUE, "Left", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#/keymap_d", KEY_VALUE, "Right", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#/keymap_e", KEY_VALUE, "Enter", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#/keymap_f", KEY_VALUE, "Escape", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#/keyrepeatdelay", KEY_VALUE, "500", KEY_META, "check/range", "0-3000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "Time (ms) from first key report to first repeat. Set to 0 to disable repeated key reports.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/glcd/#/keyrepeatinterval", KEY_VALUE, "500", KEY_META, "check/range", "0-3000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "Time (ms) between repeated key reports. Ignored if KeyRepeatDelay is disabled (set to zero).", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/glcd/#/normal_font", KEY_VALUE, "/usr/local/lib/X11/fonts/TTF/andalemo.ttf", KEY_META, "check/type", "string", KEY_META, "default", "/usr/local/lib/X11/fonts/TTF/andalemo.ttf", KEY_META, "description", "Path to font file to use for FreeType rendering. This font must be monospace and should contain some special Unicode characters like arrows (Andale Mono is recommended and can be fetched at http://corefonts.sf.net).", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#/offbrightness", KEY_VALUE, "100", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "100", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/glcd/#/picolcdgfx_inverted", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Inverts the pixels.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/glcd/#/picolcdgfx_keytimeout", KEY_VALUE, "125", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9][0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Number must be any positive integer >0", KEY_META, "default", "125", KEY_META, "description", "Time in ms for usb_read to wait on a key press.", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#/port", KEY_VALUE, "0x378", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([2-3][0-9A-F]{2}|400)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. legal: 0x200 - 0x400", KEY_META, "default", "0x378", KEY_META, "description", "Parallel port to use", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/glcd/#/serdisp_device", KEY_VALUE, "/dev/ppi0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ppi0", KEY_META, "description", "The display device to use, e.g. serraw:/dev/ttyS0, parport:/dev/parport0 or USB:07c0/1501", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#/serdisp_name", KEY_VALUE, "t6963", KEY_META, "check/type", "string", KEY_META, "default", "t6963", KEY_META, "description", "Name of the underlying serdisplib driver, e.g. ctinclud. See", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#/serdisp_options", KEY_VALUE, "INVERT=1", KEY_META, "check/type", "string", KEY_META, "default", "INVERT=1", KEY_META, "description", "Options string to pass to serdisplib during initialization. Use\nthis to set any display related options (e.g. wiring). The display size is\nalways set based on the Size configured above! By default, no options are\nset.\nImportant: The value must be quoted as it contains equal signs!", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#/size", KEY_VALUE, "128x64", KEY_META, "check/type", "string", KEY_META, "check/validation", "(640|[1-9]|[1-9][0-9]|[1-5][0-9][0-9]|6[0-3][0-9])x(480|[1-9]|[1-9][0-9]|[1-3][0-9][0-9]|4[0-7][0-9])", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. legal: 1x1 - 640x480", KEY_META, "default", "128x64", KEY_META, "description", "Width and height of the display in pixel. The supported sizes may depend on the ConnectionType", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#/useft2", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If LCDproc has been compiled with FreeType 2 support this option can be used to turn if off intentionally.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/glcd/#/x11_backlightcolor", KEY_VALUE, "0x80FF80", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{6}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Colors are in RRGGBB format prefixed with \"0x\"", KEY_META, "default", "0x80FF80", KEY_META, "description", "The color of the backlight as full brightness.", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#/x11_border", KEY_VALUE, "20", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "^([1-9]\\d*|0)$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "20", KEY_META, "description", "Adds a border (empty space) around the LCD portion of X11 window.", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("/glcd/#/x11_inverted", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Inverts the pixels.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/glcd/#/x11_pixelcolor", KEY_VALUE, "0x000000", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{6}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Colors are in RRGGBB format prefixed with \"0x\"", KEY_META, "default", "0x000000", KEY_META, "description", "The color of each dot at full contrast.", KEY_META, "type", "string", KEY_END), + keyNew ("/glcd/#/x11_pixelsize", KEY_VALUE, "3+1", KEY_META, "check/type", "string", KEY_META, "check/validation", "\\d+\\+\\d+", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "[number]+[number] has to be provided, eg: 3+1 or 5+2", KEY_META, "default", "3+1", KEY_META, "description", "Each LCD dot is drawn in the X window as a filled rectangle of this size\n plus a gap between each filled rectangle. A PixelSize of 3+1\n would draw a 3x3 filled rectangle with a gap of 1 pixel to the right and\n bottom, effectively using a 4x4 area of the window. Default is 3+1.", KEY_META, "type", "string", KEY_END), + keyNew ("/glcdlib/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a glcdlib driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "GlcdlibDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/glcdlib/#/CharEncoding", KEY_VALUE, "iso8859-2", KEY_META, "check/type", "string", KEY_META, "default", "iso8859-2", KEY_META, "description", "character encoding to use", KEY_META, "type", "string", KEY_END), + keyNew ("/glcdlib/#/backlight", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), + keyNew ("/glcdlib/#/brightness", KEY_VALUE, "50", KEY_META, "check/range", "0-100", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "50", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/glcdlib/#/contrast", KEY_VALUE, "50", KEY_META, "check/range", "0-100", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "50", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/glcdlib/#/driver", KEY_VALUE, "image", KEY_META, "check/type", "string", KEY_META, "default", "image", KEY_META, "description", "\nSpecify which graphical display supported by graphlcd-base to use.\n Legal values for GRAPHLCD-DRIVER are\n specified in graphlcd\'s configuration file /etc/graphlcd.conf.\n For graphlcd 0.13 they comprise avrctl, framebuffer, gu140x32f, gu256x64-372, \n gu256x64C-3xx0, hd61830, image, ks0108, noritake800, sed1330, sed1520, serdisp, simlcd, t6963c\n", KEY_META, "type", "string", KEY_END), + keyNew ("/glcdlib/#/file", KEY_VALUE, "glcdlib", KEY_META, "default", "glcdlib", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/glcdlib/#/fontfile", KEY_VALUE, "/usr/share/fonts/corefonts/courbd.ttf", KEY_META, "check/type", "string", KEY_META, "default", "/usr/share/fonts/corefonts/courbd.ttf", KEY_META, "description", "path to font file to use", KEY_META, "type", "string", KEY_END), + keyNew ("/glcdlib/#/invert", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), + keyNew ("/glcdlib/#/minfontfacesize", KEY_VALUE, "7x12", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "7x12", KEY_META, "description", "path to font file to use", KEY_META, "type", "string", KEY_END), + keyNew ("/glcdlib/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/glcdlib/#/pixelshiftx", KEY_VALUE, "0", KEY_META, "check/type", "short", KEY_META, "check/validation", "([0-9]+)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "0", KEY_META, "type", "short", KEY_END), + keyNew ("/glcdlib/#/pixelshifty", KEY_VALUE, "2", KEY_META, "check/type", "short", KEY_META, "check/validation", "([0-9]+)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "2", KEY_META, "type", "short", KEY_END), + keyNew ("/glcdlib/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/glcdlib/#/showbigborder", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), + keyNew ("/glcdlib/#/showdebugframe", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), + keyNew ("/glcdlib/#/showthinborder", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "type", "boolean", KEY_END), + keyNew ("/glcdlib/#/textresolution", KEY_VALUE, "16x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x4", KEY_META, "description", "Text resolution in fixed width characters.\n(if it won\'t fit according to available physical pixel resolution\nand the minimum available font face size in pixels, then\n\'DebugBorder\' will automatically be turned on)", KEY_META, "type", "string", KEY_END), + keyNew ("/glcdlib/#/upsidedown", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), + keyNew ("/glcdlib/#/useft2", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "no=use graphlcd bitmap fonts (they have only one size / font file)\nyes=use fonts supported by FreeType2 (needs Freetype2 support in\nlibglcdprocdriver and its dependants)", KEY_META, "type", "boolean", KEY_END), + keyNew ("/glk/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a glk driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "GlkDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/glk/#/contrast", KEY_VALUE, "500", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/glk/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "select the serial device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/glk/#/file", KEY_VALUE, "glk", KEY_META, "default", "glk", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/glk/#/speed", KEY_VALUE, "19200", KEY_META, "check/range", "9600, 19200, 38400, 57600, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "set the serial port speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/hd44780/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a hd44780 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Hd44780DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/hd44780/#/backlight", KEY_VALUE, "none", KEY_META, "check/enum", "#8", KEY_META, "check/enum/#0", "none", KEY_META, "check/enum/#1", "external", KEY_META, "check/enum/#2", "internal", KEY_META, "check/enum/#3", "internalCmds", KEY_META, "check/type", "enum", KEY_META, "default", "none", KEY_META, "description", "Specify if you have a switchable backlight and if yes, can select method for turning it on/off:\n#\n- none - no switchable backlight is available.\n- external - use external pin or any other method defined with ConnectionType backlight\n handling.\n- internal - means that backlight is handled using internal commands according\n to selected display model (with Model option). Depending on model,\n Brightness and OffBrightness options can be taken into account.\n- internalCmds - means that commands for turning on and off backlight are given\n with extra options BacklightOnCmd and BacklightOffCmd, which would be treated\n as catch up (last resort) for other types of displays which have similar features.\n#\nYou can provide multiple occurences of this option to use more than one method.\nDefault is model specific: Winstar OLED and PT6314 VFD enables internal backlight mode,\nfor others it is set to none.", KEY_META, "gen/enum/type", "HD44780Backlight", KEY_META, "type", "enum", KEY_END), + keyNew ("/hd44780/#/backlightcmdoff", KEY_VALUE, "0x1234", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{4}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "4 bytes can be encoded, as integer number in big-endian order (0x0000-0xFFFF)", KEY_META, "default", "0x1234", KEY_META, "description", "Commands for disabling internal backlight for use with Backlight=internalCmds.\nUp to 4 bytes can be encoded, as integer number in big-endian order.", KEY_META, "type", "string", KEY_END), + keyNew ("/hd44780/#/backlightcmdon", KEY_VALUE, "0x1223", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{4}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "4 bytes can be encoded, as integer number in big-endian order (0x0000-0xFFFF)", KEY_META, "default", "0x1223", KEY_META, "description", "Commands for enabling internal backlight for use with Backlight=internalCmds.\nUp to 4 bytes can be encoded, as integer number in big-endian order.\n#\nNOTE: this is advanced option, if command contains bits other than only brighness handling,\nthey must be set accordingly to not disrupt display state. If for example \'FUNCTION SET\' command\nis used for this purpose, bits of interface length (4-bit / 8-bit) must be set according to\nselected ConnectionType.", KEY_META, "type", "string", KEY_END), + keyNew ("/hd44780/#/brightness", KEY_VALUE, "800", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "800", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/hd44780/#/charmap", KEY_VALUE, "hd44780_default", KEY_META, "check/enum", "#7", KEY_META, "check/enum/#0", "hd44780_default", KEY_META, "check/enum/#1", "hd44780_euro", KEY_META, "check/enum/#2", "ea_ks0073", KEY_META, "check/enum/#3", "sed1278f_0b", KEY_META, "check/enum/#4", "hd44780_koi8_r", KEY_META, "check/enum/#5", "hd44780_cp1251", KEY_META, "check/enum/#6", "hd44780_8859_5", KEY_META, "check/enum/#7", "upd16314", KEY_META, "check/type", "enum", KEY_META, "default", "hd44780_default", KEY_META, "description", "Character map to to map ISO-8859-1 to the LCD\'s character set. (hd44780_koi8_r, hd44780_cp1251, hd44780_8859_5, upd16314 and weh001602a_1\nare possible if compiled with additional charmaps)", KEY_META, "gen/enum/type", "HD44780Charmap", KEY_META, "type", "enum", KEY_END), + keyNew ("/hd44780/#/connectiontype", KEY_VALUE, "4bit", KEY_META, "check/enum", "#_27", KEY_META, "check/enum/#0", "4bit", KEY_META, "check/enum/#1", "8bit", KEY_META, "check/enum/#2", "winamp", KEY_META, "check/enum/#3", "lcm162", KEY_META, "check/enum/#4", "serialLpt", KEY_META, "check/enum/#5", "picanlcd", KEY_META, "check/enum/#6", "lcdserializer", KEY_META, "check/enum/#7", "los-panel", KEY_META, "check/enum/#8", "vdr-lcd", KEY_META, "check/enum/#9", "vdr-wakeup", KEY_META, "check/enum/#_10", "ezio", KEY_META, "check/enum/#_11", "pertelian", KEY_META, "check/enum/#_12", "lis2", KEY_META, "check/enum/#_13", "mplay", KEY_META, "check/enum/#_14", "usblcd", KEY_META, "check/enum/#_15", "bwctusb", KEY_META, "check/enum/#_16", "lcd2usb", KEY_META, "check/enum/#_17", "usbtiny", KEY_META, "check/enum/#_18", "uss720", KEY_META, "check/enum/#_19", "USB-4-all", KEY_META, "check/enum/#_20", "ftdi", KEY_META, "check/enum/#_21", "i2c", KEY_META, "check/enum/#_22", "piplate", KEY_META, "check/enum/#_23", "spi", KEY_META, "check/enum/#_24", "pifacecad", KEY_META, "check/enum/#_25", "ethlcd", KEY_META, "check/enum/#_26", "raspberrypi", KEY_META, "check/enum/#_27", "gpio", KEY_META, "check/type", "enum", KEY_META, "default", "4bit", KEY_META, "description", "Select what type of connection. See documentation for available types:\n https://github.com/lcdproc/lcdproc/blob/master/docs/lcdproc-user/drivers/hd44780.docbook", KEY_META, "gen/enum/type", "HD44780ConnectionType", KEY_META, "type", "enum", KEY_END), + keyNew ("/hd44780/#/contrast", KEY_VALUE, "800", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "800", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/hd44780/#/delaybus", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "You can reduce the inserted delays by setting this to false.\nOn fast PCs it is possible your LCD does not respond correctly.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/hd44780/#/delaymult", KEY_VALUE, "1", KEY_META, "check/range", "1, 2, 4, 8, 16", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1", KEY_META, "description", "If your display is slow and cannot keep up with the flow of data from\nLCDd, garbage can appear on the LCDd. Set this delay factor to 2 or 4\nto increase the delays.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/hd44780/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Device of the serial, I2C, or SPI interface", KEY_META, "type", "string", KEY_END), + keyNew ("/hd44780/#/extendedmode", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If you have an HD66712, a KS0073 or another controller with \'extended mode\',\nset this flag to get into 4-line mode. On displays with just two lines, do\nnot set this flag.\nAs an additional restriction, controllers with and without extended mode\nAND 4 lines cannot be mixed for those connection types that support more\nthan one display!\nNOTE: This option is deprecated in favour of choosing Model=extended option.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/hd44780/#/file", KEY_VALUE, "hd44780", KEY_META, "default", "hd44780", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/hd44780/#/fontbank", KEY_VALUE, "0", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "0", KEY_META, "check/enum/#1", "1", KEY_META, "check/enum/#2", "2", KEY_META, "check/enum/#3", "3", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Font bank to be used for some displays such as the WINSTAR WEH001602A\n0: English/Japanese (default)\n1: Western Europe I\n2: English/Rusian\n3: Western Europe II", KEY_META, "gen/enum/type", "HD44780Fontbank", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/hd44780/#/keepalivedisplay", KEY_VALUE, "0", KEY_META, "check/range", "0-10", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Some displays (e.g. vdr-wakeup) need a message from the driver to that it\nis still alive. When set to a value bigger then null the character in the\nupper left corner is updated every seconds.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/hd44780/#/keymatrix_4_1", KEY_VALUE, "Enter", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "If you have a keypad you can assign keystrings to the keys. See\ndocumentation for used terms and how to wire it. For example to give directly connected\nkey 4 the string \'Enter\', use:\n KeyDirect_4=Enter For matrix keys use the\nX and Y coordinates of the key: \n KeyMatrix_1_3=Enter", KEY_META, "type", "string", KEY_END), + keyNew ("/hd44780/#/keymatrix_4_2", KEY_VALUE, "Up", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "If you have a keypad you can assign keystrings to the keys. See\ndocumentation for used terms and how to wire it. For example to give directly connected\nkey 4 the string \'Enter\', use:\n KeyDirect_4=Enter For matrix keys use the\nX and Y coordinates of the key: \n KeyMatrix_1_3=Enter", KEY_META, "type", "string", KEY_END), + keyNew ("/hd44780/#/keymatrix_4_3", KEY_VALUE, "Down", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "If you have a keypad you can assign keystrings to the keys. See\ndocumentation for used terms and how to wire it. For example to give directly connected\nkey 4 the string \'Enter\', use:\n KeyDirect_4=Enter For matrix keys use the\nX and Y coordinates of the key: \n KeyMatrix_1_3=Enter", KEY_META, "type", "string", KEY_END), + keyNew ("/hd44780/#/keymatrix_4_4", KEY_VALUE, "Escape", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "If you have a keypad you can assign keystrings to the keys. See\ndocumentation for used terms and how to wire it. For example to give directly connected\nkey 4 the string \'Enter\', use:\n KeyDirect_4=Enter For matrix keys use the\nX and Y coordinates of the key: \n KeyMatrix_1_3=Enter", KEY_META, "type", "string", KEY_END), + keyNew ("/hd44780/#/keypad", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If you have a keypad connected.\nYou may also need to configure the keypad layout further on in this file.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/hd44780/#/lastline", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Specifies if the last line is pixel addressable (yes) or it controls an\nunderline effect (no).", KEY_META, "type", "boolean", KEY_END), + keyNew ("/hd44780/#/lineaddress", KEY_VALUE, "0x20", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a line Address. eg. 0x20, 0x10", KEY_META, "default", "0x20", KEY_META, "description", "In extended mode, on some controllers like the ST7036 (in 3 line mode) the next line in DDRAM won`t start 0x20 higher.", KEY_META, "type", "string", KEY_END), + keyNew ("/hd44780/#/model", KEY_VALUE, "standard", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "standard", KEY_META, "check/enum/#1", "extended", KEY_META, "check/enum/#2", "winstar_oled", KEY_META, "check/enum/#3", "pt6314_vfd", KEY_META, "check/type", "enum", KEY_META, "default", "standard", KEY_META, "description", "Select model if have non-standard one which require extra initialization or handling or\n just want extra features it offers.\n Available: standard (default), extended, winstar_oled, pt6314_vfd\n - standard is default, use for LCDs not mentioned below.\n - extended, hd66712, ks0073: allows use 4-line \'extended\' mode,\n same as deprecated now option ExtendedMode=yes\n - winstar_oled, weh00xxyya: changes initialization for WINSTAR\'s WEH00xxyyA displays\n and allows handling brightness\n - pt6314_vfd: allows handling brightness on PTC\'s PT6314 VFDs\n This option should be independent of connection type.", KEY_META, "type", "enum", KEY_END), + keyNew ("/hd44780/#/offbrightness", KEY_VALUE, "300", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "300", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/hd44780/#/outputport", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If you have the additional output port (\"bargraph\") and you want to be able to control it with the lcdproc OUTPUT command", KEY_META, "type", "boolean", KEY_END), + keyNew ("/hd44780/#/port", KEY_VALUE, "0x378", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{3}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Port must begin with \"0x\", followed by 3 Hexadezimal values, eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "I/O address of the LPT port. Usual values are: 0x278, 0x378 and 0x3BC. For I2C connections this sets the slave address (usually 0x20).", KEY_META, "type", "string", KEY_END), + keyNew ("/hd44780/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/hd44780/#/refreshdisplay", KEY_VALUE, "0", KEY_META, "check/range", "0-20", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "If you experience occasional garbage on your display you can use this\noption as workaround. If set to a value bigger than null it forces a\nfull screen refresh seconds.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/hd44780/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Specifies the size of the LCD. In case of multiple combined displays, this should be the total size.", KEY_META, "type", "string", KEY_END), + keyNew ("/hd44780/#/speed", KEY_VALUE, "0", KEY_META, "check/type", "unsigned_long", KEY_META, "default", "0", KEY_META, "description", "Bitrate of the serial port (0 for interface default)", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("/hd44780/#/vspan", KEY_META, "check/type", "string", KEY_META, "check/validation", "^([1-9][0-9]*(,[1-9][0-9]*)*)\?$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Declarations must look like this: 2,2 or 2,2,1", KEY_META, "default", "", KEY_META, "description", "For multiple combined displays: how many lines does each display have.\nVspan=2,2 means both displays have 2 lines.", KEY_META, "type", "string", KEY_END), + keyNew ("/icp_a106/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a icp_a106 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Icp_a106DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/icp_a106/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/icp_a106/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/icp_a106/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Device of the serial, I2C, or SPI interface", KEY_META, "type", "string", KEY_END), + keyNew ("/icp_a106/#/file", KEY_VALUE, "icp_a106", KEY_META, "default", "icp_a106", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/icp_a106/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/icp_a106/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/icp_a106/#/size", KEY_VALUE, "20x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x2", KEY_META, "description", "Display dimensions", KEY_META, "type", "string", KEY_END), + keyNew ("/imon/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a imon driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "ImonDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/imon/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/imon/#/charmap", KEY_VALUE, "none", KEY_META, "check/enum", "#5", KEY_META, "check/enum/#0", "hd44780_euro", KEY_META, "check/enum/#1", "upd16314", KEY_META, "check/enum/#2", "hd44780_koi8_r", KEY_META, "check/enum/#3", "hd44780_cp1251", KEY_META, "check/enum/#4", "hd44780_8859_5", KEY_META, "check/enum/#5", "none", KEY_META, "check/type", "enum", KEY_META, "default", "none", KEY_META, "description", "Character map to to map ISO-8859-1 to the displays character set. (upd16314, hd44780_koi8_r,\nhd44780_cp1251, hd44780_8859_5 are possible if compiled with additional\ncharmaps)", KEY_META, "gen/enum/type", "IMonCharmap", KEY_META, "type", "enum", KEY_END), + keyNew ("/imon/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/imon/#/device", KEY_VALUE, "/dev/lcd0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd0", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/imon/#/file", KEY_VALUE, "imon", KEY_META, "default", "imon", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/imon/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/imon/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/imon/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Display dimensions", KEY_META, "type", "string", KEY_END), + keyNew ("/imonlcd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a imonlcd driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "ImonlcdDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/imonlcd/#/backlight", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Set the backlight state", KEY_META, "type", "boolean", KEY_END), + keyNew ("/imonlcd/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/imonlcd/#/contrast", KEY_VALUE, "200", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "200", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/imonlcd/#/device", KEY_VALUE, "/dev/lcd0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd0", KEY_META, "description", "select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/imonlcd/#/discmode", KEY_VALUE, "0", KEY_META, "check/enum", "#1", KEY_META, "check/enum/#0", "0", KEY_META, "check/enum/#1", "1", KEY_META, "check/type", "enum", KEY_META, "default", "0", KEY_META, "description", "Set the disc mode\n0 => spin the \'slim\' disc - two disc segments,\n1 => their complement spinning;", KEY_META, "gen/enum/type", "IMonLCDDiscMode", KEY_META, "type", "enum", KEY_END), + keyNew ("/imonlcd/#/file", KEY_VALUE, "imonlcd", KEY_META, "default", "imonlcd", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/imonlcd/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/imonlcd/#/onexit", KEY_VALUE, "1", KEY_META, "check/range", "0-2", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1", KEY_META, "description", "Set the exit behavior\n0 means leave shutdown message,\n1 means show the big clock,\n2 means blank device", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/imonlcd/#/protocol", KEY_VALUE, "0", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "15c2:ffdc", KEY_META, "check/enum/#1", "15c2:0038", KEY_META, "check/enum/#2", "0", KEY_META, "check/enum/#3", "1", KEY_META, "check/type", "string", KEY_META, "default", "0", KEY_META, "description", "Specify which iMon protocol should be used\nChoose 0 for 15c2:ffdc device,\nChoose 1 for 15c2:0038 device", KEY_META, "gen/enum/#2/value", "0", KEY_META, "gen/enum/#3/value", "1", KEY_META, "gen/enum/type", "IMonLCDProtocol", KEY_META, "type", "string", KEY_END), + keyNew ("/imonlcd/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/imonlcd/#/size", KEY_VALUE, "96x16", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "96x16", KEY_META, "description", "Specify the size of the display in pixels", KEY_META, "type", "string", KEY_END), + keyNew ("/iowarrior/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a IOWarrior driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "IOWarriorDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/iowarrior/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/iowarrior/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/iowarrior/#/extendedmode", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If you have an HD66712, a KS0073 or another \'almost HD44780-compatible\',\nset this flag to get into extended mode (4-line linear).", KEY_META, "type", "boolean", KEY_END), + keyNew ("/iowarrior/#/file", KEY_VALUE, "IOWarrior", KEY_META, "default", "IOWarrior", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/iowarrior/#/lastline", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Specifies if the last line is pixel addressable (yes) or it controls an\nunderline effect (no).", KEY_META, "type", "boolean", KEY_END), + keyNew ("/iowarrior/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/iowarrior/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/iowarrior/#/serialnumber", KEY_VALUE, "00000674", KEY_META, "check/type", "any", KEY_META, "default", "00000674", KEY_META, "description", "serial number. Must be exactly as listed by usbview (if not given, the 1st IOWarrior found gets used)", KEY_META, "type", "string", KEY_END), + keyNew ("/iowarrior/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Display dimensions", KEY_META, "type", "string", KEY_END), + keyNew ("/irman/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a IrMan driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "IrManDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/irman/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/irman/#/config", KEY_VALUE, "/etc/irman.cfg", KEY_META, "check/type", "string", KEY_META, "default", "/etc/irman.cfg", KEY_META, "description", "Select the configuration file to use", KEY_META, "type", "string", KEY_END), + keyNew ("/irman/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/irman/#/device", KEY_VALUE, "/dev/irman", KEY_META, "check/type", "string", KEY_META, "default", "/dev/irman", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/irman/#/file", KEY_VALUE, "IrMan", KEY_META, "default", "IrMan", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/irman/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/irman/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/irtrans/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a irtrans driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "IrtransDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/irtrans/#/backlight", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Does the device have a backlight\?", KEY_META, "type", "boolean", KEY_END), + keyNew ("/irtrans/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/irtrans/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/irtrans/#/file", KEY_VALUE, "irtrans", KEY_META, "default", "irtrans", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/irtrans/#/hostname", KEY_VALUE, "localhost", KEY_META, "check/type", "string", KEY_META, "default", "localhost", KEY_META, "description", "IRTrans device to connect to", KEY_META, "type", "string", KEY_END), + keyNew ("/irtrans/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/irtrans/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/irtrans/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Specify the size of the display in pixels", KEY_META, "type", "string", KEY_END), + keyNew ("/joy/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a joy driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "JoyDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/joy/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/joy/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/joy/#/device", KEY_VALUE, "/dev/js0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/js0", KEY_META, "description", "Select the input device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/joy/#/file", KEY_VALUE, "joy", KEY_META, "default", "joy", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/joy/#/map_axis1neg", KEY_VALUE, "Left", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "set the axis map", KEY_META, "type", "string", KEY_END), + keyNew ("/joy/#/map_axis1pos", KEY_VALUE, "Right", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "set the axis map", KEY_META, "type", "string", KEY_END), + keyNew ("/joy/#/map_axis2neg", KEY_VALUE, "Up", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "set the axis map", KEY_META, "type", "string", KEY_END), + keyNew ("/joy/#/map_axis2pos", KEY_VALUE, "Down", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "set the axis map", KEY_META, "type", "string", KEY_END), + keyNew ("/joy/#/map_button1", KEY_VALUE, "Enter", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "set the button map", KEY_META, "type", "string", KEY_END), + keyNew ("/joy/#/map_button2", KEY_VALUE, "Escape", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "set the button map", KEY_META, "type", "string", KEY_END), + keyNew ("/joy/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/joy/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/lb216/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lb216 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Lb216DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/lb216/#/brightness", KEY_VALUE, "200", KEY_META, "check/range", "0-255", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "200", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/lb216/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the input device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/lb216/#/file", KEY_VALUE, "lb216", KEY_META, "default", "lb216", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/lb216/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/lb216/#/speed", KEY_VALUE, "9600", KEY_META, "check/range", "2400, 9600", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/lcdm001/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lcdm001 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Lcdm001DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/lcdm001/#/backkey", KEY_VALUE, "UpKey", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "LeftKey", KEY_META, "check/enum/#1", "RightKey", KEY_META, "check/enum/#2", "UpKey", KEY_META, "check/enum/#3", "DownKey", KEY_META, "check/type", "enum", KEY_META, "default", "UpKey", KEY_META, "description", "Normal Context: Back(Go to previous screen) \nMenu Context: Up/Left", KEY_META, "gen/enum/type", "Lcdm001Keys", KEY_META, "type", "enum", KEY_END), + keyNew ("/lcdm001/#/device", KEY_VALUE, "/dev/ttyS1", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/lcdm001/#/file", KEY_VALUE, "lcdm001", KEY_META, "default", "lcdm001", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/lcdm001/#/forwardkey", KEY_VALUE, "DownKey", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "LeftKey", KEY_META, "check/enum/#1", "RightKey", KEY_META, "check/enum/#2", "UpKey", KEY_META, "check/enum/#3", "DownKey", KEY_META, "check/type", "enum", KEY_META, "default", "DownKey", KEY_META, "description", "Normal Context: Forward(Go to next screen) \nMenu Context: Down/Right", KEY_META, "gen/enum/type", "Lcdm001Keys", KEY_META, "type", "enum", KEY_END), + keyNew ("/lcdm001/#/mainmenukey", KEY_VALUE, "RightKey", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "LeftKey", KEY_META, "check/enum/#1", "RightKey", KEY_META, "check/enum/#2", "UpKey", KEY_META, "check/enum/#3", "DownKey", KEY_META, "check/type", "enum", KEY_META, "default", "RightKey", KEY_META, "description", "Normal Context: Open main menu \nMenu Context: Exit/Cancel", KEY_META, "gen/enum/type", "Lcdm001Keys", KEY_META, "type", "enum", KEY_END), + keyNew ("/lcdm001/#/pausekey", KEY_VALUE, "LeftKey", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "LeftKey", KEY_META, "check/enum/#1", "RightKey", KEY_META, "check/enum/#2", "UpKey", KEY_META, "check/enum/#3", "DownKey", KEY_META, "check/type", "enum", KEY_META, "default", "LeftKey", KEY_META, "description", "Normal Context: Pause/Continue \nMenu Context: Enter/select", KEY_META, "gen/enum/type", "Lcdm001Keys", KEY_META, "type", "enum", KEY_END), + keyNew ("/lcterm/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lcterm driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "LctermDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/lcterm/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/lcterm/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/lcterm/#/device", KEY_VALUE, "/dev/ttyS1", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/lcterm/#/file", KEY_VALUE, "lcterm", KEY_META, "default", "lcterm", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/lcterm/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/lcterm/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/lcterm/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Specify the size of the display in pixels", KEY_META, "type", "string", KEY_END), + keyNew ("/linux_input/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a linux_input driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Linux_inputDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/linux_input/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/linux_input/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/linux_input/#/device", KEY_VALUE, "/dev/input/event0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/input/event0", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/linux_input/#/file", KEY_VALUE, "linux_input", KEY_META, "default", "linux_input", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/linux_input/#/key/_", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "specify a non-default key map, eg.: \n/linux_input/key/#01 = 1\n/linux_input/key/#28 = Enter", KEY_META, "type", "string", KEY_END), + keyNew ("/linux_input/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/linux_input/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/lirc/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lirc driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "LircDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/lirc/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/lirc/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/lirc/#/file", KEY_VALUE, "lirc", KEY_META, "default", "lirc", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/lirc/#/lircrc", KEY_VALUE, "~/.lircrc", KEY_META, "check/type", "string", KEY_META, "default", "~/.lircrc", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/lirc/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/lirc/#/prog", KEY_VALUE, "lcdd", KEY_META, "check/type", "string", KEY_META, "default", "lcdd", KEY_META, "description", "Must be the same as in your lircrc", KEY_META, "type", "string", KEY_END), + keyNew ("/lirc/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/lis/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lis driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "LisDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/lis/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness\n0-250 = 25%, 251-500 = 50%, 501-750 = 75%, 751-1000 = 100%", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/lis/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/lis/#/file", KEY_VALUE, "lis", KEY_META, "default", "lis", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/lis/#/lastline", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Specifies if the last line is pixel addressable (yes) or it only controls an\nunderline effect (no)", KEY_META, "type", "boolean", KEY_END), + keyNew ("/lis/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/lis/#/productid", KEY_VALUE, "0x6001", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{4})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size ProductID: 0x0000-0xFFFF is allowed", KEY_META, "default", "0x6001", KEY_META, "description", "USB Product ID. Change only if testing a compatible device.", KEY_META, "type", "string", KEY_END), + keyNew ("/lis/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/lis/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Columns by lines", KEY_META, "type", "string", KEY_END), + keyNew ("/lis/#/vendorid", KEY_VALUE, "0x0403", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{4})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size VendorID: 0x0000-0xFFFF is allowed", KEY_META, "default", "0x0403", KEY_META, "description", "USB Vendor ID. Change only if testing a compatible device.", KEY_META, "type", "string", KEY_END), + keyNew ("/md8800/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a MD8800 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "MD8800DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/md8800/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/md8800/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/md8800/#/device", KEY_VALUE, "/dev/ttyS1", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/md8800/#/file", KEY_VALUE, "MD8800", KEY_META, "default", "MD8800", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/md8800/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/md8800/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/md8800/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), + keyNew ("/mdm166a/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a mdm166a driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Mdm166aDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/mdm166a/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/mdm166a/#/clock", KEY_VALUE, "no", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "no", KEY_META, "check/enum/#1", "small", KEY_META, "check/enum/#2", "big", KEY_META, "check/type", "enum", KEY_META, "default", "no", KEY_META, "description", "Show self-running clock after LCDd shutdown", KEY_META, "type", "enum", KEY_END), + keyNew ("/mdm166a/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/mdm166a/#/dimming", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Dim display, no dimming gives full brightness", KEY_META, "type", "boolean", KEY_END), + keyNew ("/mdm166a/#/file", KEY_VALUE, "mdm166a", KEY_META, "default", "mdm166a", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/mdm166a/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/mdm166a/#/offdimming", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Dim display in case LCDd is inactive", KEY_META, "type", "boolean", KEY_END), + keyNew ("/mdm166a/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/menu/downkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), + keyNew ("/menu/enterkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), + keyNew ("/menu/leftkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), + keyNew ("/menu/menukey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), + keyNew ("/menu/permissivegoto", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If true the server allows transitions between different client`s menus", KEY_META, "type", "boolean", KEY_END), + keyNew ("/menu/rightkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), + keyNew ("/menu/upkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), + keyNew ("/ms6931/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a ms6931 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Ms6931DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/ms6931/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/ms6931/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/ms6931/#/device", KEY_VALUE, "/dev/ttyS1", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/ms6931/#/file", KEY_VALUE, "ms6931", KEY_META, "default", "ms6931", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/ms6931/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/ms6931/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/ms6931/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), + keyNew ("/mtc_s16209x/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a mtc_s16209x driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Mtc_s16209xDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/mtc_s16209x/#/brightness", KEY_VALUE, "200", KEY_META, "check/range", "0-255", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "200", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/mtc_s16209x/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/mtc_s16209x/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/mtc_s16209x/#/file", KEY_VALUE, "mtc_s16209x", KEY_META, "default", "mtc_s16209x", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/mtc_s16209x/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/mtc_s16209x/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/mtxorb/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a MtxOrb driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "MtxOrbDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/mtxorb/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/mtxorb/#/contrast", KEY_VALUE, "480", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "480", KEY_META, "description", "Set the initial contrast\nNOTE: The driver will ignore this if the display\nis a vfd or vkd as they don\'t have this feature", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/mtxorb/#/device", KEY_VALUE, "/dev/ttyS0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS0", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/mtxorb/#/file", KEY_VALUE, "MtxOrb", KEY_META, "default", "MtxOrb", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/mtxorb/#/hasadjustablebacklight", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Some old displays do not have an adjustable backlight but only can\nswitch the backlight on/off. If you experience randomly appearing block\ncharacters, try setting this to false.", KEY_META, "gen/struct/field", "hasAdjustableBacklight", KEY_META, "type", "boolean", KEY_END), + keyNew ("/mtxorb/#/keymap_a", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), + keyNew ("/mtxorb/#/keymap_b", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), + keyNew ("/mtxorb/#/keymap_c", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), + keyNew ("/mtxorb/#/keymap_d", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), + keyNew ("/mtxorb/#/keymap_e", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), + keyNew ("/mtxorb/#/keymap_f", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), + keyNew ("/mtxorb/#/keypad_test_mode", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "permits one to test keypad assignment", KEY_META, "type", "boolean", KEY_END), + keyNew ("/mtxorb/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/mtxorb/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), + keyNew ("/mtxorb/#/speed", KEY_VALUE, "19200", KEY_META, "check/range", "1200, 2400, 9600, 19200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "Set the communication", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/mtxorb/#/type", KEY_VALUE, "lcd", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "lcd", KEY_META, "check/enum/#1", "lkd", KEY_META, "check/enum/#2", "vfd", KEY_META, "check/enum/#3", "vkd", KEY_META, "check/type", "enum", KEY_META, "default", "lcd", KEY_META, "description", "Set the display type", KEY_META, "type", "enum", KEY_END), + keyNew ("/mx5000/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a mx5000 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Mx5000DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/mx5000/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/mx5000/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/mx5000/#/device", KEY_VALUE, "/dev/hiddev0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/hiddev0", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/mx5000/#/file", KEY_VALUE, "mx5000", KEY_META, "default", "mx5000", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/mx5000/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/mx5000/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/mx5000/#/waitafterrefresh", KEY_VALUE, "1000", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "[1-9]\\d*", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "WaitAfterRefresh must be a positive number", KEY_META, "default", "1000", KEY_META, "description", "Time to wait in ms after the refresh screen has been sent", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("/noritakevfd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a NoritakeVFD driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "NoritakeVFDDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/noritakevfd/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/noritakevfd/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/noritakevfd/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "device where the VFD is. Usual values are /dev/ttyS0 and /dev/ttyS1", KEY_META, "type", "string", KEY_END), + keyNew ("/noritakevfd/#/file", KEY_VALUE, "NoritakeVFD", KEY_META, "default", "NoritakeVFD", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/noritakevfd/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/noritakevfd/#/parity", KEY_VALUE, "0", KEY_META, "check/range", "0-2", KEY_META, "check/type", "unsigned_long", KEY_META, "default", "0", KEY_META, "description", "Set serial data parity\nMeaning: 0(=none), 1(=odd), 2(=even)", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("/noritakevfd/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/noritakevfd/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), + keyNew ("/noritakevfd/#/speed", KEY_VALUE, "19200", KEY_META, "check/range", "1200, 2400, 9600, 19200, 115200", KEY_META, "check/type", "unsigned_long", KEY_META, "default", "19200", KEY_META, "description", "set the serial port speed", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("/olimex_mod_lcd1x9/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a Olimex_MOD_LCD1x9 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Olimex_MOD_LCD1x9DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/olimex_mod_lcd1x9/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/olimex_mod_lcd1x9/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/olimex_mod_lcd1x9/#/device", KEY_VALUE, "/dev/i2c-0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/i2c-0", KEY_META, "description", "device file of the i2c controller", KEY_META, "type", "string", KEY_END), + keyNew ("/olimex_mod_lcd1x9/#/file", KEY_VALUE, "Olimex_MOD_LCD1x9", KEY_META, "default", "Olimex_MOD_LCD1x9", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/olimex_mod_lcd1x9/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/olimex_mod_lcd1x9/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/picolcd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a picolcd driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "PicolcdDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/picolcd/#/backlight", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Sets the initial state of the backlight upon start-up.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/picolcd/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness [default: 1000; legal: 0 - 1000]. Works only\nwith the 20x4 device", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/picolcd/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/picolcd/#/file", KEY_VALUE, "picolcd", KEY_META, "default", "picolcd", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/picolcd/#/key0light", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/picolcd/#/key1light", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/picolcd/#/key2light", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/picolcd/#/key3light", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/picolcd/#/key4light", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/picolcd/#/key5light", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/picolcd/#/keylights", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Light the keys\?", KEY_META, "type", "boolean", KEY_END), + keyNew ("/picolcd/#/keyrepeatdelay", KEY_VALUE, "300", KEY_META, "check/range", "0-3000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "300", KEY_META, "description", "Key auto repeat is only available if the picoLCD driver is built with\nlibusb-1.0. Use KeyRepeatDelay and KeyRepeatInterval to configure key auto\nrepeat.\n#\nKey auto repeat delay (time in ms from first key report to first repeat). Use\nzero to disable auto repeat.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/picolcd/#/keyrepeatinterval", KEY_VALUE, "200", KEY_META, "check/range", "0-3000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "200", KEY_META, "description", "Key auto repeat interval (time in ms between repeat reports). Only used if\nKeyRepeatDelay is not zero.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/picolcd/#/keytimeout", KEY_VALUE, "500", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "KeyTimeout is only used if the picoLCD driver is built with libusb-0.1. When\nbuilt with libusb-1.0 key and IR data is input asynchronously so there is no\nneed to wait for the USB data.\nKeyTimeout is the time in ms that LCDd spends waiting for a key press before\ncycling through other duties. Higher values make LCDd use less CPU time and\nmake key presses more detectable. Lower values make LCDd more responsive\nbut a little prone to missing key presses. 500 (.5 second) is the default\nand a balanced value.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/picolcd/#/linklights", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Link the key lights to the backlight\?", KEY_META, "type", "boolean", KEY_END), + keyNew ("/picolcd/#/lircflushthreshold", KEY_VALUE, "1000", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "[1-9]\\d{3,}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "LircFlushThreshold must be a positive number >1000", KEY_META, "default", "1000", KEY_META, "description", "Threshold in microseconds of the gap that triggers flushing the IR data\nto lirc [default: 8000; legal: 1000 - ]\nIf LircTime_us is on values greater than 32.767ms will disable the flush\nIf LircTime_us is off values greater than 1.999938s will disable the flush", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("/picolcd/#/lirchost", KEY_VALUE, "127.0.0.1", KEY_META, "check/type", "string", KEY_META, "default", "127.0.0.1", KEY_META, "description", "Host name or IP address of the LIRC instance that is to receive IR codes If not set, or set to an empty value, IR support is disabled.", KEY_META, "type", "string", KEY_END), + keyNew ("/picolcd/#/lircport", KEY_VALUE, "8765", KEY_META, "default", "8765", KEY_META, "description", "UDP port on which LIRC is listening", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/picolcd/#/lirctime_us", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "UDP data time unit for LIRC\nOn: times sent in microseconds (requires LIRC UDP driver that accepts this).\nOff: times sent in \'jiffies\' (1/16384s) (supported by standard LIRC UDP driver).", KEY_META, "type", "boolean", KEY_END), + keyNew ("/picolcd/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the brightness while the backlight is \'off\'.\nWorks only with the 20x4 device.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/picolcd/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/pyramid/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a pyramid driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "PyramidDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/pyramid/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "device to connect to", KEY_META, "type", "string", KEY_END), + keyNew ("/pyramid/#/file", KEY_VALUE, "pyramid", KEY_META, "default", "pyramid", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/rawserial/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a rawserial driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "RawserialDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/rawserial/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/rawserial/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/rawserial/#/device", KEY_VALUE, "/dev/cuaU0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/cuaU0", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/rawserial/#/file", KEY_VALUE, "rawserial", KEY_META, "default", "rawserial", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/rawserial/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/rawserial/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/rawserial/#/size", KEY_VALUE, "40x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "40x4", KEY_META, "description", "Specifies the size of the LCD. If this driver is loaded as a secondary driver\nit always adopts to the size of the primary driver. If loaded as the only\n(or primary) driver, the size can be set.", KEY_META, "type", "string", KEY_END), + keyNew ("/rawserial/#/speed", KEY_VALUE, "9600", KEY_META, "check/type", "unsigned_long", KEY_META, "default", "9600", KEY_META, "description", "Serial port baudrate [default: 9600]", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("/rawserial/#/updaterate", KEY_VALUE, "1", KEY_META, "check/type", "float", KEY_META, "default", "1", KEY_META, "description", "How often to dump the LCD contents out the port, in Hertz (times per second)\n1 = once per second, 4 is 4 times per second, 0.1 is once every 10 seconds.\n[default: 1; legal: 0.0005 - 10]", KEY_META, "type", "float", KEY_END), + keyNew ("/sed1330/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a sed1330 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Sed1330DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/sed1330/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/sed1330/#/cellsize", KEY_VALUE, "6x10", KEY_META, "check/type", "string", KEY_META, "check/validation", "[6-8]x([1-9][0-6]|[1-9])", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Width x Height of a character cell in pixels [legal: 6x7 - 8x16]", KEY_META, "default", "6x10", KEY_META, "description", "Width x Height of a character cell in pixels", KEY_META, "type", "string", KEY_END), + keyNew ("/sed1330/#/connectiontype", KEY_VALUE, "classic", KEY_META, "check/enum", "#1", KEY_META, "check/enum/#0", "classic", KEY_META, "check/enum/#1", "bitshaker", KEY_META, "check/type", "enum", KEY_META, "default", "classic", KEY_META, "description", "Select what type of connection", KEY_META, "type", "enum", KEY_END), + keyNew ("/sed1330/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/sed1330/#/file", KEY_VALUE, "sed1330", KEY_META, "default", "sed1330", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/sed1330/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/sed1330/#/port", KEY_VALUE, "0x378", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{3})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "Port where the LPT is. Common values are 0x278, 0x378 and 0x3BC", KEY_META, "type", "string", KEY_END), + keyNew ("/sed1330/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/sed1330/#/type", KEY_VALUE, "G321D", KEY_META, "check/enum", "#5", KEY_META, "check/enum/#0", "G321D", KEY_META, "check/enum/#1", "G121C", KEY_META, "check/enum/#2", "G242C", KEY_META, "check/enum/#3", "G191D", KEY_META, "check/enum/#4", "G2446", KEY_META, "check/enum/#5", "SP14Q002", KEY_META, "check/type", "enum", KEY_META, "default", "G321D", KEY_META, "description", "Type of LCD module.\nNote: Currently only tested with G321D & SP14Q002.", KEY_META, "type", "enum", KEY_END), + keyNew ("/sed1520/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a sed1520 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Sed1520DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/sed1520/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/sed1520/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/sed1520/#/delaymult", KEY_VALUE, "1", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1", KEY_META, "description", "On fast machines it may be necessary to slow down transfer to the display.\nIf this value is set to zero, delay is disabled. Any value greater than\nzero slows down each write by one microsecond.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/sed1520/#/file", KEY_VALUE, "sed1520", KEY_META, "default", "sed1520", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/sed1520/#/haveinverter", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "The original wiring used an inverter to drive the control lines. If you do\nnot use an inverter set haveInverter to no.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/sed1520/#/interfacetype", KEY_VALUE, "80", KEY_META, "check/range", "68, 80", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "80", KEY_META, "description", "Select the interface type (wiring) for the display. Supported values are\n68 for 68-style connection (RESET level high) and 80 for 80-style connection\n(RESET level low)", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/sed1520/#/invertedmapping", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "On some displays column data in memory is mapped to segment lines from right\nto left. This is called inverted mapping (not to be confused with\n\'haveInverter\' from above).", KEY_META, "type", "boolean", KEY_END), + keyNew ("/sed1520/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/sed1520/#/port", KEY_VALUE, "0x378", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{3})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "Port where the LPT is. Usual values are 0x278, 0x378 and 0x3BC", KEY_META, "type", "string", KEY_END), + keyNew ("/sed1520/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/sed1520/#/usehardreset", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "At least one display is reported (Everbouquet MG1203D) that requires sending\nthree times 0xFF before a reset during initialization.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/serialpos/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a serialPOS driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SerialPOSDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/serialpos/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/serialpos/#/cellsize", KEY_VALUE, "5x8", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "5x8", KEY_META, "description", "Specifies the cell size of each character cell on the display in characters.", KEY_META, "type", "string", KEY_END), + keyNew ("/serialpos/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/serialpos/#/custom_chars", KEY_VALUE, "0", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "^([1-9]\\d*|0)$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be any positive number including 0", KEY_META, "default", "0", KEY_META, "description", "Specifies the number of custom characters supported by the display.\nCustom characters are only used for the rendering of horizontal bars\nand vertical bars. For displays whose cell character cell widths are\nlower than the number of custom characters supported,\nthen custom characters will be used to render the horizontal bars.\nFor more information look at: https://github.com/lcdproc/lcdproc/blob/master/docs/lcdproc-user/drivers/serialPOS.docbook", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("/serialpos/#/device", KEY_VALUE, "/dev/ttyS0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS0", KEY_META, "description", "Device to use in serial mode", KEY_META, "type", "string", KEY_END), + keyNew ("/serialpos/#/file", KEY_VALUE, "serialPOS", KEY_META, "default", "serialPOS", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/serialpos/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/serialpos/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/serialpos/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Specifies the size of the display in characters.", KEY_META, "type", "string", KEY_END), + keyNew ("/serialpos/#/speed", KEY_VALUE, "9600", KEY_META, "check/range", "1200, 2400, 4800, 9600, 19200, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "communication baud rate with the display", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/serialpos/#/type", KEY_VALUE, "AEDEX", KEY_META, "check/enum", "#5", KEY_META, "check/enum/#0", "AEDEX", KEY_META, "check/enum/#1", "CD5220", KEY_META, "check/enum/#2", "Epson", KEY_META, "check/enum/#3", "Emax", KEY_META, "check/enum/#4", "LogicControls", KEY_META, "check/enum/#5", "Ultimate", KEY_META, "check/type", "enum", KEY_META, "default", "AEDEX", KEY_META, "description", "Set the communication protocol to use with the POS display.", KEY_META, "type", "enum", KEY_END), + keyNew ("/serialvfd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a serialVFD driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SerialVFDDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/serialvfd/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness. (4 steps 0-250, 251-500, 501-750, 751-1000)", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/serialvfd/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/serialvfd/#/custom-characters", KEY_VALUE, "0", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "^([1-9]\\d*|0)$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be any positive number including 0", KEY_META, "default", "0", KEY_META, "description", "Number of Custom-Characters. default is display type dependent", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("/serialvfd/#/device", KEY_VALUE, "/dev/ttyS1", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "Device to use in serial mode. Usual values are /dev/ttyS0 and /dev/ttyS1", KEY_META, "type", "string", KEY_END), + keyNew ("/serialvfd/#/file", KEY_VALUE, "serialVFD", KEY_META, "default", "serialVFD", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/serialvfd/#/iso_8859_1", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "enable ISO 8859 1 compatibility", KEY_META, "type", "boolean", KEY_END), + keyNew ("/serialvfd/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive\n(4 steps 0-250, 251-500, 501-750, 751-1000)", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/serialvfd/#/port", KEY_VALUE, "0x378", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{3})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "Portaddress where the LPT is. Used in parallel mode only. Usual values are 0x278, 0x378 and 0x3BC.", KEY_META, "type", "string", KEY_END), + keyNew ("/serialvfd/#/portwait", KEY_VALUE, "2", KEY_META, "check/range", "0-255", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "2", KEY_META, "description", "Set parallel port timing delay (us). Used in parallel mode only.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/serialvfd/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/serialvfd/#/size", KEY_VALUE, "20x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x2", KEY_META, "description", "Specifies the size of the VFD.", KEY_META, "type", "string", KEY_END), + keyNew ("/serialvfd/#/speed", KEY_VALUE, "9600", KEY_META, "check/range", "1200, 2400, 9600, 19200, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "set the serial port speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/serialvfd/#/type", KEY_VALUE, "0", KEY_META, "check/enum", "#_17", KEY_META, "check/enum/#0", "nec_fipc8367", KEY_META, "check/enum/#1", "kd_rev_2_1", KEY_META, "check/enum/#2", "noritake_vfd", KEY_META, "check/enum/#3", "futaba_vfd", KEY_META, "check/enum/#4", "iee_s03601-95b", KEY_META, "check/enum/#5", "iee_s03601-96-080", KEY_META, "check/enum/#6", "futaba_na202sd08fa", KEY_META, "check/enum/#7", "samsung_20s207da4/20s207da6", KEY_META, "check/enum/#8", "nixdorf_ba6x/vt100", KEY_META, "check/enum/#_10", "1", KEY_META, "check/enum/#_11", "2", KEY_META, "check/enum/#_12", "3", KEY_META, "check/enum/#_13", "4", KEY_META, "check/enum/#_14", "5", KEY_META, "check/enum/#_15", "6", KEY_META, "check/enum/#_16", "7", KEY_META, "check/enum/#_17", "8", KEY_META, "check/enum/#_9", "0", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Specifies the displaytype.[default: 0]\n0 NEC (FIPC8367 based) VFDs.\n1 KD Rev 2.1.\n2 Noritake VFDs (*).\n3 Futaba VFDs\n4 IEE S03601-95B\n5 IEE S03601-96-080 (*)\n6 Futaba NA202SD08FA (allmost IEE compatible)\n7 Samsung 20S207DA4 and 20S207DA6\n8 Nixdorf BA6x / VT100\n(* most should work, not tested yet.)", KEY_META, "gen/enum/type", "SerialVFDType", KEY_META, "gen/enum/value", "8", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/serialvfd/#/use_parallel", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "\'no\' if display connected serial, \'yes\' if connected parallel.\nI.e. serial by default", KEY_META, "type", "boolean", KEY_END), + keyNew ("/server/autorotate", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If set to no, LCDd will start with screen rotation disabled. This has the same effect as if the ToggleRotateKey had been pressed. Rotation will start if the ToggleRotateKey is pressed. Note that this setting does not turn off priority sorting of screens", KEY_META, "type", "boolean", KEY_END), + keyNew ("/server/backlight", KEY_VALUE, "open", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "off", KEY_META, "check/enum/#1", "on", KEY_META, "check/enum/#2", "open", KEY_META, "default", "open", KEY_META, "description", "Set master backlight setting. If set to \'open\' a client may control the backlight for its own screens (only)", KEY_META, "type", "enum", KEY_END), + keyNew ("/server/bind", KEY_VALUE, "127.0.0.1", KEY_META, "check/type", "string", KEY_META, "default", "127.0.0.1", KEY_META, "description", "Tells the driver to bind to the given interface", KEY_META, "opt", "a", KEY_META, "opt/long", "address", KEY_META, "type", "string", KEY_END), + keyNew ("/server/driverpath", KEY_VALUE, "server/drivers/", KEY_META, "check/type", "string", KEY_META, "check/validation", ".*[\\/]$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "The path has to contain a backslack (/) at the end", KEY_META, "default", "server/drivers/", KEY_META, "description", "Select the LCD size", KEY_META, "type", "string", KEY_END), + keyNew ("/server/drivers/#", KEY_META, "check/reference/restrict", "#_52", KEY_META, "check/reference/restrict/#0", "@/bayrad/#", KEY_META, "check/reference/restrict/#1", "@/cfontz/#", KEY_META, "check/reference/restrict/#2", "@/cfontzpacket/#", KEY_META, "check/reference/restrict/#3", "@/curses/#", KEY_META, "check/reference/restrict/#4", "@/cwlnx/#", KEY_META, "check/reference/restrict/#5", "@/ea65/#", KEY_META, "check/reference/restrict/#6", "@/eyeboxone/#", KEY_META, "check/reference/restrict/#7", "@/futaba/#", KEY_META, "check/reference/restrict/#8", "@/g15/#", KEY_META, "check/reference/restrict/#9", "@/glcd/#", KEY_META, "check/reference/restrict/#_10", "@/glcdlib/#", KEY_META, "check/reference/restrict/#_11", "@/glk/#", KEY_META, "check/reference/restrict/#_12", "@/hd44780/#", KEY_META, "check/reference/restrict/#_13", "@/icp_a106/#", KEY_META, "check/reference/restrict/#_14", "@/imon/#", KEY_META, "check/reference/restrict/#_15", "@/imonlcd/#", KEY_META, "check/reference/restrict/#_16", "@/iowarrior/#", KEY_META, "check/reference/restrict/#_17", "@/irman/#", KEY_META, "check/reference/restrict/#_18", "@/joy/#", KEY_META, "check/reference/restrict/#_19", "@/lb216/#", KEY_META, "check/reference/restrict/#_20", "@/lcdm001/#", KEY_META, "check/reference/restrict/#_21", "@/lcterm/#", KEY_META, "check/reference/restrict/#_22", "@/linux_input/#", KEY_META, "check/reference/restrict/#_23", "@/lirc/#", KEY_META, "check/reference/restrict/#_24", "@/lis/#", KEY_META, "check/reference/restrict/#_25", "@/md8800/#", KEY_META, "check/reference/restrict/#_26", "@/mdm166a/#", KEY_META, "check/reference/restrict/#_27", "@/ms6931/#", KEY_META, "check/reference/restrict/#_28", "@/mtc_s16209x/#", KEY_META, "check/reference/restrict/#_29", "@/mtxorb/#", KEY_META, "check/reference/restrict/#_30", "@/mx5000/#", KEY_META, "check/reference/restrict/#_31", "@/noritakevfd/#", KEY_META, "check/reference/restrict/#_32", "@/olimex_mod_lcd1x9/#", KEY_META, "check/reference/restrict/#_33", "@/picolcd/#", KEY_META, "check/reference/restrict/#_34", "@/pyramid/#", KEY_META, "check/reference/restrict/#_35", "@/rawserial/#", KEY_META, "check/reference/restrict/#_36", "@/sdeclcd/#", KEY_META, "check/reference/restrict/#_37", "@/sed1330/#", KEY_META, "check/reference/restrict/#_38", "@/sed1520/#", KEY_META, "check/reference/restrict/#_39", "@/serialpos/#", KEY_META, "check/reference/restrict/#_40", "@/serialvfd/#", KEY_META, "check/reference/restrict/#_41", "@/shuttlevfd/#", KEY_META, "check/reference/restrict/#_42", "@/sli/#", KEY_META, "check/reference/restrict/#_43", "@/stv5730/#", KEY_META, "check/reference/restrict/#_44", "@/svga/#", KEY_META, "check/reference/restrict/#_45", "@/t6963/#", KEY_META, "check/reference/restrict/#_46", "@/text/#", KEY_META, "check/reference/restrict/#_47", "@/tyan/#", KEY_META, "check/reference/restrict/#_48", "@/ula200/#", KEY_META, "check/reference/restrict/#_49", "@/vlsys_m428/#", KEY_META, "check/reference/restrict/#_50", "@/xosd/#", KEY_META, "check/reference/restrict/#_51", "@/yard2lcd/#", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "Tells the server to load a driver.\nThe given value is a reference the configuration of the driver, e.g. @/curses/#0", KEY_META, "type", "string", KEY_END), + keyNew ("/server/foreground", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "The server will stay in the foreground if set to yes", KEY_META, "opt", "f", KEY_META, "opt/arg", "none", KEY_META, "opt/long", "foreground", KEY_META, "type", "boolean", KEY_END), + keyNew ("/server/frameinterval", KEY_VALUE, "125000", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "[1-9]\\d*", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "FrameInterval must be a positive number", KEY_META, "default", "125000", KEY_META, "description", "Sets the interval in microseconds for updating the display [default: 125000 meaning 8Hz]", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("/server/goodbye/#", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "GoodBye message: each entry represents a display line", KEY_META, "type", "string", KEY_END), + keyNew ("/server/heartbeat", KEY_VALUE, "open", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "off", KEY_META, "check/enum/#1", "on", KEY_META, "check/enum/#2", "open", KEY_META, "default", "open", KEY_META, "description", "Set master heartbeat setting. If set to \'open\' a client may control the", KEY_META, "type", "enum", KEY_END), + keyNew ("/server/hello/#", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "Hello message: each entry represents a display line", KEY_META, "type", "string", KEY_END), + keyNew ("/server/nextscreenkey", KEY_VALUE, "Right", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), + keyNew ("/server/port", KEY_VALUE, "13666", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "13666", KEY_META, "description", "Listen on this specified port. [default: 13666]", KEY_META, "opt", "p", KEY_META, "opt/long", "port", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/server/prevscreenkey", KEY_VALUE, "Left", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), + keyNew ("/server/reportlevel", KEY_VALUE, "2", KEY_META, "check/range", "0-5", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "2", KEY_META, "description", "TSets the reporting level, defaults to warnings and errors only.", KEY_META, "opt", "r", KEY_META, "opt/long", "report-level", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/server/reporttosyslog", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Should we report to syslog instead of stderr\?", KEY_META, "opt", "s", KEY_META, "opt/arg", "none", KEY_META, "opt/long", "report-to-syslog", KEY_META, "type", "boolean", KEY_END), + keyNew ("/server/scrolldownkey", KEY_VALUE, "Down", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), + keyNew ("/server/scrollupkey", KEY_VALUE, "Up", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), + keyNew ("/server/serverscreen", KEY_VALUE, "on", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "off", KEY_META, "check/enum/#1", "on", KEY_META, "check/enum/#2", "blank", KEY_META, "default", "on", KEY_META, "description", "If yes, the the serverscreen will be rotated as a usual info screen. If no, it will be a background screen, only visible when no other screens are active. The special value \'blank\' is similar to no, but only a blank screen is displayed.", KEY_META, "opt", "i", KEY_META, "opt/long", "rotate-server-screen", KEY_META, "type", "enum", KEY_END), + keyNew ("/server/titlespeed", KEY_VALUE, "10", KEY_META, "check/range", "0-10", KEY_META, "default", "10", KEY_META, "description", "title scrolling speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/server/togglerotatekey", KEY_VALUE, "Enter", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), + keyNew ("/server/user", KEY_VALUE, "nobody", KEY_META, "check/type", "string", KEY_META, "default", "nobody", KEY_META, "description", "set to run as. LCDd will drop its root privileges and run as this user instead. [default: nobody]", KEY_META, "opt", "u", KEY_META, "opt/long", "user", KEY_META, "type", "string", KEY_END), + keyNew ("/server/waittime", KEY_VALUE, "4", KEY_META, "check/type", "float", KEY_META, "default", "4", KEY_META, "description", "Sets the default time in seconds to displays a screen", KEY_META, "opt", "w", KEY_META, "opt/long", "wait-time", KEY_META, "type", "float", KEY_END), + keyNew ("/sli/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a sli driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SliDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/sli/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/sli/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/sli/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/sli/#/file", KEY_VALUE, "sli", KEY_META, "default", "sli", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/sli/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/sli/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/sli/#/speed", KEY_VALUE, "19200", KEY_META, "check/range", "1200, 2400, 9600, 19200, 38400, 57600, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/stv5730/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a stv5730 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Stv5730DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/stv5730/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/stv5730/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/stv5730/#/file", KEY_VALUE, "stv5730", KEY_META, "default", "stv5730", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/stv5730/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/stv5730/#/port", KEY_VALUE, "0x378", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{3})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "Port the device is connected to", KEY_META, "type", "string", KEY_END), + keyNew ("/stv5730/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/sureelec/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a SureElec driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SureElecDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/sureelec/#/brightness", KEY_VALUE, "480", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "480", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/sureelec/#/contrast", KEY_VALUE, "480", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "480", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/sureelec/#/device", KEY_VALUE, "/dev/ttyUSB0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyUSB0", KEY_META, "description", "Port the device is connected to (by default first USB serial port)", KEY_META, "type", "string", KEY_END), + keyNew ("/sureelec/#/edition", KEY_VALUE, "2", KEY_META, "check/range", "1-3", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "2", KEY_META, "description", "Edition level of the device (can be 1, 2 or 3)", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/sureelec/#/file", KEY_VALUE, "SureElec", KEY_META, "default", "SureElec", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/sureelec/#/offbrightness", KEY_VALUE, "480", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "480", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/sureelec/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/sureelec/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "set display size\nNote: The size can be obtained directly from device for edition 2 & 3.", KEY_META, "type", "string", KEY_END), + keyNew ("/svga/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a svga driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SvgaDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/svga/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "1-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/svga/#/contrast", KEY_VALUE, "500", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/svga/#/file", KEY_VALUE, "svga", KEY_META, "default", "svga", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/svga/#/mode", KEY_VALUE, "G320x240x256", KEY_META, "check/type", "string", KEY_META, "default", "G320x240x256", KEY_META, "description", "svgalib mode to use [default: G320x240x256 ]\nlegal values are supported svgalib modes. See man7 pages for allowed values", KEY_META, "type", "string", KEY_END), + keyNew ("/svga/#/offbrightness", KEY_VALUE, "500", KEY_META, "check/range", "1-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/svga/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/svga/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), + keyNew ("/t6963/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a t6963 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "T6963DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/t6963/#/bidirectional", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Use LPT port in bi-directional mode. This should work on most LPT port and\nis required for proper timing!", KEY_META, "type", "boolean", KEY_END), + keyNew ("/t6963/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/t6963/#/cleargraphic", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Clear graphic memory on start-up.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/t6963/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/t6963/#/delaybus", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Insert additional delays into reads / writes.", KEY_META, "type", "boolean", KEY_END), + keyNew ("/t6963/#/file", KEY_VALUE, "t6963", KEY_META, "default", "t6963", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/t6963/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/t6963/#/port", KEY_VALUE, "0x378", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([2-3][0-9A-F]{2}|400)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. legal: 0x200 - 0x400", KEY_META, "default", "0x378", KEY_META, "description", "Parallel port to use", KEY_META, "type", "string", KEY_END), + keyNew ("/t6963/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/t6963/#/size", KEY_VALUE, "128x64", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "128x64", KEY_META, "description", "set display size in pixels", KEY_META, "type", "string", KEY_END), + keyNew ("/text/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a text driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "TextDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/text/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/text/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/text/#/file", KEY_VALUE, "text", KEY_META, "default", "text", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/text/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/text/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/text/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), + keyNew ("/tyan/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a tyan driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "TyanDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/tyan/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/tyan/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/tyan/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/tyan/#/file", KEY_VALUE, "tyan", KEY_META, "default", "tyan", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/tyan/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/tyan/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/tyan/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), + keyNew ("/tyan/#/speed", KEY_VALUE, "9600", KEY_META, "check/range", "4800, 9600", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/ula200/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a ula200 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Ula200DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/ula200/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/ula200/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/ula200/#/file", KEY_VALUE, "ula200", KEY_META, "default", "ula200", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/ula200/#/keymap_a", KEY_VALUE, "Up", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("/ula200/#/keymap_b", KEY_VALUE, "Down", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("/ula200/#/keymap_c", KEY_VALUE, "Left", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("/ula200/#/keymap_d", KEY_VALUE, "Right", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("/ula200/#/keymap_e", KEY_VALUE, "Enter", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("/ula200/#/keymap_f", KEY_VALUE, "Escape", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("/ula200/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/ula200/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/ula200/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Select the LCD size", KEY_META, "type", "string", KEY_END), + keyNew ("/vlsys_m428/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a vlsys_m428 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Vlsys_m428DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/vlsys_m428/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/vlsys_m428/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/vlsys_m428/#/device", KEY_VALUE, "/dev/ttyUSB0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyUSB0", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("/vlsys_m428/#/file", KEY_VALUE, "vlsys_m428", KEY_META, "default", "vlsys_m428", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/vlsys_m428/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/vlsys_m428/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/xosd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a xosd driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "XosdDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/xosd/#/Font", KEY_VALUE, "-*-terminus-*-r-*-*-*-320-*-*-*-*-*", KEY_META, "check/type", "string", KEY_META, "default", "-*-terminus-*-r-*-*-*-320-*-*-*-*-*", KEY_META, "description", "X font to use, in XLFD format, as given by \'xfontsel\'", KEY_META, "type", "string", KEY_END), + keyNew ("/xosd/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/xosd/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/xosd/#/file", KEY_VALUE, "xosd", KEY_META, "default", "xosd", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/xosd/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/xosd/#/offset", KEY_VALUE, "0x0", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid offset declaration. Examples: 200x200", KEY_META, "default", "0x0", KEY_META, "description", "Offset in pixels from the top-left corner of the monitor [default: 0x0]", KEY_META, "type", "string", KEY_END), + keyNew ("/xosd/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/xosd/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), + keyNew ("/yard2lcd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a yard2LCD driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Yard2LCDDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("/yard2lcd/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/yard2lcd/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/yard2lcd/#/file", KEY_VALUE, "yard2LCD", KEY_META, "default", "yard2LCD", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("/yard2lcd/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("/yard2lcd/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("/yard2lcd/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), + KS_END); +; + Elektra * e = elektraOpen ("/sw/lcdproc/lcdd/#0/current", defaults, error); + + if (e == NULL) + { + return -1; + } + + KeySet * contract = ksNew (1, + keyNew ("system/elektra/ensure/plugins/global/gopts", KEY_VALUE, "mounted", KEY_END), + KS_END); +; + + ElektraError * err = NULL; + elektraEnsure (e, contract, &err); + + if (err != NULL) + { + *error = err; + return -1; + } + + helpKey = elektraHelpKey (e); + if (helpKey != NULL) + { + elektraClose (e); + return 2; + } + + KeySet * defaultContext = ksNew (0, + KS_END); +; + ksAppend (elektraContext (e), defaultContext); + ksDel (defaultContext); + + *elektra = e; + return 0; +} + +/** + * Checks whether specload mode was invoked and if so, sends the specification over stdout + * in the format expected by specload. + * + * You MUST not output anything to stdout before invoking this function. Ideally invoking this + * is the first thing you do in your main()-function. + * + * This function will ONLY RETURN, if specload mode was NOT invoked. Otherwise it will call `exit()`. + * + * @param argc pass the value of argc from main + * @param argv pass the value of argv from main + */ +void doSpecloadCheck (int argc, const char ** argv) +{ + if (argc != 2 || strcmp (argv[1], "--elektra-spec") != 0) + { + return; + } + + KeySet * spec = ksNew (624, + keyNew ("spec/sw/lcdproc/lcdd/#0/current", KEY_META, "infos/plugins", "ini validation type", KEY_META, "mountpoint", "LCDd.conf", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/bayrad", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/bayrad/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a bayrad driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "BayradDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/bayrad/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/bayrad/#/file", KEY_META, "default", "bayrad", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/bayrad/#/speed", KEY_META, "check/range", "1200, 2400, 9600, 19200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a CFontz driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "CFontzDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "350", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/file", KEY_META, "default", "CFontz", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/newfirmware", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Set the firmware version (New means >= 2.0)", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness. This value is used when the display is normally switched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Select the LCD size", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/speed", KEY_META, "check/range", "1200, 2400, 9600, 19200, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/usb", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Is this driver using USB\?", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a CFontzPacket driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "CFontzPacketDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "350", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/file", KEY_META, "default", "CFontzPacket", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/model", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "533", KEY_META, "check/enum/#1", "631", KEY_META, "check/enum/#2", "633", KEY_META, "check/enum/#3", "635", KEY_META, "check/type", "enum", KEY_META, "default", "633", KEY_META, "description", "Select the LCD model", KEY_META, "gen/enum/type", "CFontzPacketModel", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness. This value is used when the display is normally switched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/oldfirmware", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Very old 633 firmware versions do not support partial screen updates using \'Send Data to LCD\' command (31). For those devices it may be necessary to enable this flag", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Override the LCD size known for the selected model. Usually setting this value should not be necessary.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/speed", KEY_META, "check/range", "19200, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "115200", KEY_META, "description", "Override the default communication speed known for the selected model. Default value depends on model.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/usb", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Enable the USB flag if the device is connected to an USB port. For serial ports leave it disabled.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a curses driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "CursesDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/background", KEY_META, "check/enum", "#7", KEY_META, "check/enum/#0", "red", KEY_META, "check/enum/#1", "black", KEY_META, "check/enum/#2", "green", KEY_META, "check/enum/#3", "yellow", KEY_META, "check/enum/#4", "blue", KEY_META, "check/enum/#5", "magenta", KEY_META, "check/enum/#6", "cyan", KEY_META, "check/enum/#7", "white", KEY_META, "check/type", "enum", KEY_META, "default", "cyan", KEY_META, "description", "background color when \"backlight\" is off", KEY_META, "gen/enum/type", "CursesColor", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/backlight", KEY_META, "check/enum", "#7", KEY_META, "check/enum/#0", "red", KEY_META, "check/enum/#1", "black", KEY_META, "check/enum/#2", "green", KEY_META, "check/enum/#3", "yellow", KEY_META, "check/enum/#4", "blue", KEY_META, "check/enum/#5", "magenta", KEY_META, "check/enum/#6", "cyan", KEY_META, "check/enum/#7", "white", KEY_META, "check/type", "enum", KEY_META, "default", "red", KEY_META, "description", "background color when \"backlight\" is on", KEY_META, "gen/enum/type", "CursesColor", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/drawborder", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "draw Border", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/file", KEY_META, "default", "curses", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/foreground", KEY_META, "check/enum", "#7", KEY_META, "check/enum/#0", "red", KEY_META, "check/enum/#1", "black", KEY_META, "check/enum/#2", "green", KEY_META, "check/enum/#3", "yellow", KEY_META, "check/enum/#4", "blue", KEY_META, "check/enum/#5", "magenta", KEY_META, "check/enum/#6", "cyan", KEY_META, "check/enum/#7", "white", KEY_META, "check/type", "enum", KEY_META, "default", "blue", KEY_META, "description", "Color settings", KEY_META, "gen/enum/type", "CursesColor", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/topleftx", KEY_META, "check/type", "unsigned_short", KEY_META, "check/validation", "([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "7", KEY_META, "description", "What position (X,Y) to start the left top corner at...", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/toplefty", KEY_META, "check/type", "unsigned_short", KEY_META, "check/validation", "([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "7", KEY_META, "description", "What position (X,Y) to start the left top corner at...", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/useacs", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "use ASC symbols for icons & bars", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a CwLnx driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "CwLnxDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/file", KEY_META, "default", "CwLnx", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/keymap_a", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/keymap_b", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/keymap_c", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/keymap_d", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/keymap_e", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/keymap_f", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/keypad", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If you have a keypad connected. Keypad layout is currently not configureable from the config file.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/keypad_test_mode", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "permits one to test keypad assignment", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/model", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "12232", KEY_META, "check/enum/#1", "12832", KEY_META, "check/enum/#2", "1602", KEY_META, "check/type", "enum", KEY_META, "default", "12232", KEY_META, "description", "Select the LCD model", KEY_META, "gen/enum/type", "CwLnxModel", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Select the LCD size. Default depends on model: \n12232: 20x4 \n12832: 21x4 \n1602: 16x2", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/speed", KEY_META, "check/range", "9600, 19200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ea65", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ea65/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a ea65 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Ea65DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ea65/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "As the VFD is self luminescent we don\'t have a backlight\nBut we can use the backlight functions to control the front LEDs\nBrightness 0 to 299 -> LEDs off\nBrightness 300 to 699 -> LEDs half bright\nBrightness 700 to 1000 -> LEDs full bright", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ea65/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ea65/#/file", KEY_META, "default", "ea65", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ea65/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "OffBrightness is the the value used for the \'backlight off\' state", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ea65/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a EyeboxOne driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "EyeboxOneDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/backlight", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Switch on the backlight\?", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/cursor", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Switch on the cursor\?", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/downkey", KEY_META, "check/type", "string", KEY_META, "default", "B", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/escapekey", KEY_META, "check/type", "string", KEY_META, "default", "P", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/file", KEY_META, "default", "EyeboxOne", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/keypad_test_mode", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "You can find out which key of your display sends which\ncharacter by setting keypad_test_mode to yes and running\nLCDd. LCDd will output all characters it receives.\nAfterwards you can modify the settings above and set\nkeypad_set_mode to no again.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/leftkey", KEY_META, "check/type", "string", KEY_META, "default", "D", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/rightkey", KEY_META, "check/type", "string", KEY_META, "default", "C", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Set the display size", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/speed", KEY_META, "check/range", "1200, 2400, 9600, 19200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/upkey", KEY_META, "check/type", "string", KEY_META, "default", "A", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/futaba", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/futaba/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a futaba driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "FutabaDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/futaba/#/file", KEY_META, "default", "futaba", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/g15", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/g15/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a g15 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "G15DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/g15/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/g15/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/g15/#/file", KEY_META, "default", "g15", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/g15/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/g15/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/g15/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x5", KEY_META, "description", "Display size (currently unused)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a glcd driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "GlcdDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/bidirectional", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Use LPT port in bi-directional mode. This should work on most LPT port and is required for proper timing!", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "800", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/cellsize", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "6x8", KEY_META, "description", "Width and height of a character cell in pixels. This value is only used the driver has been compiled with FreeType and it is enabled. Otherwise the default 6x8 cell is used.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/connectiontype", KEY_META, "check/enum", "#6", KEY_META, "check/enum/#0", "t6963", KEY_META, "check/enum/#1", "png", KEY_META, "check/enum/#2", "serdisplib", KEY_META, "check/enum/#3", "glcd2usb", KEY_META, "check/enum/#4", "x11", KEY_META, "check/enum/#5", "picolcdgfx", KEY_META, "check/enum/#6", "xyz", KEY_META, "check/type", "enum", KEY_META, "default", "t6963", KEY_META, "description", "Select what type of connection. See documentation for types.", KEY_META, "gen/enum/type", "GlcdConnectionType", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "600", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/delaybus", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Insert additional delays into reads / writes.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/file", KEY_META, "default", "glcd", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/fonthasicons", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Some fonts miss the Unicode characters used to represent icons. In this case the built-in 5x8 font can used if this option is turned off.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/keymap_a", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/keymap_b", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/keymap_c", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/keymap_d", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/keymap_e", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/keymap_f", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/keyrepeatdelay", KEY_META, "check/range", "0-3000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "Time (ms) from first key report to first repeat. Set to 0 to disable repeated key reports.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/keyrepeatinterval", KEY_META, "check/range", "0-3000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "Time (ms) between repeated key reports. Ignored if KeyRepeatDelay is disabled (set to zero).", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/normal_font", KEY_META, "check/type", "string", KEY_META, "default", "/usr/local/lib/X11/fonts/TTF/andalemo.ttf", KEY_META, "description", "Path to font file to use for FreeType rendering. This font must be monospace and should contain some special Unicode characters like arrows (Andale Mono is recommended and can be fetched at http://corefonts.sf.net).", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "100", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/picolcdgfx_inverted", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Inverts the pixels.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/picolcdgfx_keytimeout", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9][0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Number must be any positive integer >0", KEY_META, "default", "125", KEY_META, "description", "Time in ms for usb_read to wait on a key press.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/port", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([2-3][0-9A-F]{2}|400)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. legal: 0x200 - 0x400", KEY_META, "default", "0x378", KEY_META, "description", "Parallel port to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/serdisp_device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ppi0", KEY_META, "description", "The display device to use, e.g. serraw:/dev/ttyS0, parport:/dev/parport0 or USB:07c0/1501", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/serdisp_name", KEY_META, "check/type", "string", KEY_META, "default", "t6963", KEY_META, "description", "Name of the underlying serdisplib driver, e.g. ctinclud. See", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/serdisp_options", KEY_META, "check/type", "string", KEY_META, "default", "INVERT=1", KEY_META, "description", "Options string to pass to serdisplib during initialization. Use\nthis to set any display related options (e.g. wiring). The display size is\nalways set based on the Size configured above! By default, no options are\nset.\nImportant: The value must be quoted as it contains equal signs!", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "(640|[1-9]|[1-9][0-9]|[1-5][0-9][0-9]|6[0-3][0-9])x(480|[1-9]|[1-9][0-9]|[1-3][0-9][0-9]|4[0-7][0-9])", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. legal: 1x1 - 640x480", KEY_META, "default", "128x64", KEY_META, "description", "Width and height of the display in pixel. The supported sizes may depend on the ConnectionType", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/useft2", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If LCDproc has been compiled with FreeType 2 support this option can be used to turn if off intentionally.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/x11_backlightcolor", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{6}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Colors are in RRGGBB format prefixed with \"0x\"", KEY_META, "default", "0x80FF80", KEY_META, "description", "The color of the backlight as full brightness.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/x11_border", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "^([1-9]\\d*|0)$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "20", KEY_META, "description", "Adds a border (empty space) around the LCD portion of X11 window.", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/x11_inverted", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Inverts the pixels.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/x11_pixelcolor", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{6}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Colors are in RRGGBB format prefixed with \"0x\"", KEY_META, "default", "0x000000", KEY_META, "description", "The color of each dot at full contrast.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/x11_pixelsize", KEY_META, "check/type", "string", KEY_META, "check/validation", "\\d+\\+\\d+", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "[number]+[number] has to be provided, eg: 3+1 or 5+2", KEY_META, "default", "3+1", KEY_META, "description", "Each LCD dot is drawn in the X window as a filled rectangle of this size\n plus a gap between each filled rectangle. A PixelSize of 3+1\n would draw a 3x3 filled rectangle with a gap of 1 pixel to the right and\n bottom, effectively using a 4x4 area of the window. Default is 3+1.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a glcdlib driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "GlcdlibDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/CharEncoding", KEY_META, "check/type", "string", KEY_META, "default", "iso8859-2", KEY_META, "description", "character encoding to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/backlight", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/brightness", KEY_META, "check/range", "0-100", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "50", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/contrast", KEY_META, "check/range", "0-100", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "50", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/driver", KEY_META, "check/type", "string", KEY_META, "default", "image", KEY_META, "description", "\nSpecify which graphical display supported by graphlcd-base to use.\n Legal values for GRAPHLCD-DRIVER are\n specified in graphlcd\'s configuration file /etc/graphlcd.conf.\n For graphlcd 0.13 they comprise avrctl, framebuffer, gu140x32f, gu256x64-372, \n gu256x64C-3xx0, hd61830, image, ks0108, noritake800, sed1330, sed1520, serdisp, simlcd, t6963c\n", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/file", KEY_META, "default", "glcdlib", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/fontfile", KEY_META, "check/type", "string", KEY_META, "default", "/usr/share/fonts/corefonts/courbd.ttf", KEY_META, "description", "path to font file to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/invert", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/minfontfacesize", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "7x12", KEY_META, "description", "path to font file to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/pixelshiftx", KEY_META, "check/type", "short", KEY_META, "check/validation", "([0-9]+)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "0", KEY_META, "type", "short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/pixelshifty", KEY_META, "check/type", "short", KEY_META, "check/validation", "([0-9]+)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "2", KEY_META, "type", "short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/showbigborder", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/showdebugframe", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/showthinborder", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/textresolution", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x4", KEY_META, "description", "Text resolution in fixed width characters.\n(if it won\'t fit according to available physical pixel resolution\nand the minimum available font face size in pixels, then\n\'DebugBorder\' will automatically be turned on)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/upsidedown", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/useft2", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "no=use graphlcd bitmap fonts (they have only one size / font file)\nyes=use fonts supported by FreeType2 (needs Freetype2 support in\nlibglcdprocdriver and its dependants)", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glk", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glk/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a glk driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "GlkDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glk/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glk/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "select the serial device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glk/#/file", KEY_META, "default", "glk", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/glk/#/speed", KEY_META, "check/range", "9600, 19200, 38400, 57600, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "set the serial port speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a hd44780 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Hd44780DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/backlight", KEY_META, "check/enum", "#8", KEY_META, "check/enum/#0", "none", KEY_META, "check/enum/#1", "external", KEY_META, "check/enum/#2", "internal", KEY_META, "check/enum/#3", "internalCmds", KEY_META, "check/type", "enum", KEY_META, "default", "none", KEY_META, "description", "Specify if you have a switchable backlight and if yes, can select method for turning it on/off:\n#\n- none - no switchable backlight is available.\n- external - use external pin or any other method defined with ConnectionType backlight\n handling.\n- internal - means that backlight is handled using internal commands according\n to selected display model (with Model option). Depending on model,\n Brightness and OffBrightness options can be taken into account.\n- internalCmds - means that commands for turning on and off backlight are given\n with extra options BacklightOnCmd and BacklightOffCmd, which would be treated\n as catch up (last resort) for other types of displays which have similar features.\n#\nYou can provide multiple occurences of this option to use more than one method.\nDefault is model specific: Winstar OLED and PT6314 VFD enables internal backlight mode,\nfor others it is set to none.", KEY_META, "gen/enum/type", "HD44780Backlight", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/backlightcmdoff", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{4}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "4 bytes can be encoded, as integer number in big-endian order (0x0000-0xFFFF)", KEY_META, "default", "0x1234", KEY_META, "description", "Commands for disabling internal backlight for use with Backlight=internalCmds.\nUp to 4 bytes can be encoded, as integer number in big-endian order.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/backlightcmdon", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{4}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "4 bytes can be encoded, as integer number in big-endian order (0x0000-0xFFFF)", KEY_META, "default", "0x1223", KEY_META, "description", "Commands for enabling internal backlight for use with Backlight=internalCmds.\nUp to 4 bytes can be encoded, as integer number in big-endian order.\n#\nNOTE: this is advanced option, if command contains bits other than only brighness handling,\nthey must be set accordingly to not disrupt display state. If for example \'FUNCTION SET\' command\nis used for this purpose, bits of interface length (4-bit / 8-bit) must be set according to\nselected ConnectionType.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "800", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/charmap", KEY_META, "check/enum", "#7", KEY_META, "check/enum/#0", "hd44780_default", KEY_META, "check/enum/#1", "hd44780_euro", KEY_META, "check/enum/#2", "ea_ks0073", KEY_META, "check/enum/#3", "sed1278f_0b", KEY_META, "check/enum/#4", "hd44780_koi8_r", KEY_META, "check/enum/#5", "hd44780_cp1251", KEY_META, "check/enum/#6", "hd44780_8859_5", KEY_META, "check/enum/#7", "upd16314", KEY_META, "check/type", "enum", KEY_META, "default", "hd44780_default", KEY_META, "description", "Character map to to map ISO-8859-1 to the LCD\'s character set. (hd44780_koi8_r, hd44780_cp1251, hd44780_8859_5, upd16314 and weh001602a_1\nare possible if compiled with additional charmaps)", KEY_META, "gen/enum/type", "HD44780Charmap", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/connectiontype", KEY_META, "check/enum", "#_27", KEY_META, "check/enum/#0", "4bit", KEY_META, "check/enum/#1", "8bit", KEY_META, "check/enum/#2", "winamp", KEY_META, "check/enum/#3", "lcm162", KEY_META, "check/enum/#4", "serialLpt", KEY_META, "check/enum/#5", "picanlcd", KEY_META, "check/enum/#6", "lcdserializer", KEY_META, "check/enum/#7", "los-panel", KEY_META, "check/enum/#8", "vdr-lcd", KEY_META, "check/enum/#9", "vdr-wakeup", KEY_META, "check/enum/#_10", "ezio", KEY_META, "check/enum/#_11", "pertelian", KEY_META, "check/enum/#_12", "lis2", KEY_META, "check/enum/#_13", "mplay", KEY_META, "check/enum/#_14", "usblcd", KEY_META, "check/enum/#_15", "bwctusb", KEY_META, "check/enum/#_16", "lcd2usb", KEY_META, "check/enum/#_17", "usbtiny", KEY_META, "check/enum/#_18", "uss720", KEY_META, "check/enum/#_19", "USB-4-all", KEY_META, "check/enum/#_20", "ftdi", KEY_META, "check/enum/#_21", "i2c", KEY_META, "check/enum/#_22", "piplate", KEY_META, "check/enum/#_23", "spi", KEY_META, "check/enum/#_24", "pifacecad", KEY_META, "check/enum/#_25", "ethlcd", KEY_META, "check/enum/#_26", "raspberrypi", KEY_META, "check/enum/#_27", "gpio", KEY_META, "check/type", "enum", KEY_META, "default", "4bit", KEY_META, "description", "Select what type of connection. See documentation for available types:\n https://github.com/lcdproc/lcdproc/blob/master/docs/lcdproc-user/drivers/hd44780.docbook", KEY_META, "gen/enum/type", "HD44780ConnectionType", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "800", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/delaybus", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "You can reduce the inserted delays by setting this to false.\nOn fast PCs it is possible your LCD does not respond correctly.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/delaymult", KEY_META, "check/range", "1, 2, 4, 8, 16", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1", KEY_META, "description", "If your display is slow and cannot keep up with the flow of data from\nLCDd, garbage can appear on the LCDd. Set this delay factor to 2 or 4\nto increase the delays.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Device of the serial, I2C, or SPI interface", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/extendedmode", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If you have an HD66712, a KS0073 or another controller with \'extended mode\',\nset this flag to get into 4-line mode. On displays with just two lines, do\nnot set this flag.\nAs an additional restriction, controllers with and without extended mode\nAND 4 lines cannot be mixed for those connection types that support more\nthan one display!\nNOTE: This option is deprecated in favour of choosing Model=extended option.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/file", KEY_META, "default", "hd44780", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/fontbank", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "0", KEY_META, "check/enum/#1", "1", KEY_META, "check/enum/#2", "2", KEY_META, "check/enum/#3", "3", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Font bank to be used for some displays such as the WINSTAR WEH001602A\n0: English/Japanese (default)\n1: Western Europe I\n2: English/Rusian\n3: Western Europe II", KEY_META, "gen/enum/type", "HD44780Fontbank", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/keepalivedisplay", KEY_META, "check/range", "0-10", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Some displays (e.g. vdr-wakeup) need a message from the driver to that it\nis still alive. When set to a value bigger then null the character in the\nupper left corner is updated every seconds.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/keymatrix_4_1", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "If you have a keypad you can assign keystrings to the keys. See\ndocumentation for used terms and how to wire it. For example to give directly connected\nkey 4 the string \'Enter\', use:\n KeyDirect_4=Enter For matrix keys use the\nX and Y coordinates of the key: \n KeyMatrix_1_3=Enter", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/keymatrix_4_2", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "If you have a keypad you can assign keystrings to the keys. See\ndocumentation for used terms and how to wire it. For example to give directly connected\nkey 4 the string \'Enter\', use:\n KeyDirect_4=Enter For matrix keys use the\nX and Y coordinates of the key: \n KeyMatrix_1_3=Enter", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/keymatrix_4_3", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "If you have a keypad you can assign keystrings to the keys. See\ndocumentation for used terms and how to wire it. For example to give directly connected\nkey 4 the string \'Enter\', use:\n KeyDirect_4=Enter For matrix keys use the\nX and Y coordinates of the key: \n KeyMatrix_1_3=Enter", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/keymatrix_4_4", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "If you have a keypad you can assign keystrings to the keys. See\ndocumentation for used terms and how to wire it. For example to give directly connected\nkey 4 the string \'Enter\', use:\n KeyDirect_4=Enter For matrix keys use the\nX and Y coordinates of the key: \n KeyMatrix_1_3=Enter", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/keypad", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If you have a keypad connected.\nYou may also need to configure the keypad layout further on in this file.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/lastline", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Specifies if the last line is pixel addressable (yes) or it controls an\nunderline effect (no).", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/lineaddress", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a line Address. eg. 0x20, 0x10", KEY_META, "default", "0x20", KEY_META, "description", "In extended mode, on some controllers like the ST7036 (in 3 line mode) the next line in DDRAM won`t start 0x20 higher.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/model", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "standard", KEY_META, "check/enum/#1", "extended", KEY_META, "check/enum/#2", "winstar_oled", KEY_META, "check/enum/#3", "pt6314_vfd", KEY_META, "check/type", "enum", KEY_META, "default", "standard", KEY_META, "description", "Select model if have non-standard one which require extra initialization or handling or\n just want extra features it offers.\n Available: standard (default), extended, winstar_oled, pt6314_vfd\n - standard is default, use for LCDs not mentioned below.\n - extended, hd66712, ks0073: allows use 4-line \'extended\' mode,\n same as deprecated now option ExtendedMode=yes\n - winstar_oled, weh00xxyya: changes initialization for WINSTAR\'s WEH00xxyyA displays\n and allows handling brightness\n - pt6314_vfd: allows handling brightness on PTC\'s PT6314 VFDs\n This option should be independent of connection type.", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "300", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/outputport", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If you have the additional output port (\"bargraph\") and you want to be able to control it with the lcdproc OUTPUT command", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/port", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{3}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Port must begin with \"0x\", followed by 3 Hexadezimal values, eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "I/O address of the LPT port. Usual values are: 0x278, 0x378 and 0x3BC. For I2C connections this sets the slave address (usually 0x20).", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/refreshdisplay", KEY_META, "check/range", "0-20", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "If you experience occasional garbage on your display you can use this\noption as workaround. If set to a value bigger than null it forces a\nfull screen refresh seconds.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Specifies the size of the LCD. In case of multiple combined displays, this should be the total size.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/speed", KEY_META, "check/type", "unsigned_long", KEY_META, "default", "0", KEY_META, "description", "Bitrate of the serial port (0 for interface default)", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/vspan", KEY_META, "check/type", "string", KEY_META, "check/validation", "^([1-9][0-9]*(,[1-9][0-9]*)*)\?$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Declarations must look like this: 2,2 or 2,2,1", KEY_META, "default", "", KEY_META, "description", "For multiple combined displays: how many lines does each display have.\nVspan=2,2 means both displays have 2 lines.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a icp_a106 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Icp_a106DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Device of the serial, I2C, or SPI interface", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106/#/file", KEY_META, "default", "icp_a106", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x2", KEY_META, "description", "Display dimensions", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a imon driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "ImonDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#/charmap", KEY_META, "check/enum", "#5", KEY_META, "check/enum/#0", "hd44780_euro", KEY_META, "check/enum/#1", "upd16314", KEY_META, "check/enum/#2", "hd44780_koi8_r", KEY_META, "check/enum/#3", "hd44780_cp1251", KEY_META, "check/enum/#4", "hd44780_8859_5", KEY_META, "check/enum/#5", "none", KEY_META, "check/type", "enum", KEY_META, "default", "none", KEY_META, "description", "Character map to to map ISO-8859-1 to the displays character set. (upd16314, hd44780_koi8_r,\nhd44780_cp1251, hd44780_8859_5 are possible if compiled with additional\ncharmaps)", KEY_META, "gen/enum/type", "IMonCharmap", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd0", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#/file", KEY_META, "default", "imon", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Display dimensions", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a imonlcd driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "ImonlcdDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/backlight", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Set the backlight state", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "200", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd0", KEY_META, "description", "select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/discmode", KEY_META, "check/enum", "#1", KEY_META, "check/enum/#0", "0", KEY_META, "check/enum/#1", "1", KEY_META, "check/type", "enum", KEY_META, "default", "0", KEY_META, "description", "Set the disc mode\n0 => spin the \'slim\' disc - two disc segments,\n1 => their complement spinning;", KEY_META, "gen/enum/type", "IMonLCDDiscMode", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/file", KEY_META, "default", "imonlcd", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/onexit", KEY_META, "check/range", "0-2", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1", KEY_META, "description", "Set the exit behavior\n0 means leave shutdown message,\n1 means show the big clock,\n2 means blank device", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/protocol", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "15c2:ffdc", KEY_META, "check/enum/#1", "15c2:0038", KEY_META, "check/enum/#2", "0", KEY_META, "check/enum/#3", "1", KEY_META, "check/type", "string", KEY_META, "default", "0", KEY_META, "description", "Specify which iMon protocol should be used\nChoose 0 for 15c2:ffdc device,\nChoose 1 for 15c2:0038 device", KEY_META, "gen/enum/#2/value", "0", KEY_META, "gen/enum/#3/value", "1", KEY_META, "gen/enum/type", "IMonLCDProtocol", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "96x16", KEY_META, "description", "Specify the size of the display in pixels", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a IOWarrior driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "IOWarriorDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/extendedmode", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If you have an HD66712, a KS0073 or another \'almost HD44780-compatible\',\nset this flag to get into extended mode (4-line linear).", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/file", KEY_META, "default", "IOWarrior", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/lastline", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Specifies if the last line is pixel addressable (yes) or it controls an\nunderline effect (no).", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/serialnumber", KEY_META, "check/type", "any", KEY_META, "default", "00000674", KEY_META, "description", "serial number. Must be exactly as listed by usbview (if not given, the 1st IOWarrior found gets used)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Display dimensions", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a IrMan driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "IrManDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman/#/config", KEY_META, "check/type", "string", KEY_META, "default", "/etc/irman.cfg", KEY_META, "description", "Select the configuration file to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/irman", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman/#/file", KEY_META, "default", "IrMan", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a irtrans driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "IrtransDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#/backlight", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Does the device have a backlight\?", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#/file", KEY_META, "default", "irtrans", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#/hostname", KEY_META, "check/type", "string", KEY_META, "default", "localhost", KEY_META, "description", "IRTrans device to connect to", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Specify the size of the display in pixels", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a joy driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "JoyDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/js0", KEY_META, "description", "Select the input device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/file", KEY_META, "default", "joy", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/map_axis1neg", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "set the axis map", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/map_axis1pos", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "set the axis map", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/map_axis2neg", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "set the axis map", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/map_axis2pos", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "set the axis map", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/map_button1", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "set the button map", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/map_button2", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "set the button map", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lb216", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lb216/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lb216 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Lb216DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lb216/#/brightness", KEY_META, "check/range", "0-255", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "200", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lb216/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the input device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lb216/#/file", KEY_META, "default", "lb216", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lb216/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lb216/#/speed", KEY_META, "check/range", "2400, 9600", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lcdm001 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Lcdm001DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#/backkey", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "LeftKey", KEY_META, "check/enum/#1", "RightKey", KEY_META, "check/enum/#2", "UpKey", KEY_META, "check/enum/#3", "DownKey", KEY_META, "check/type", "enum", KEY_META, "default", "UpKey", KEY_META, "description", "Normal Context: Back(Go to previous screen) \nMenu Context: Up/Left", KEY_META, "gen/enum/type", "Lcdm001Keys", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#/file", KEY_META, "default", "lcdm001", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#/forwardkey", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "LeftKey", KEY_META, "check/enum/#1", "RightKey", KEY_META, "check/enum/#2", "UpKey", KEY_META, "check/enum/#3", "DownKey", KEY_META, "check/type", "enum", KEY_META, "default", "DownKey", KEY_META, "description", "Normal Context: Forward(Go to next screen) \nMenu Context: Down/Right", KEY_META, "gen/enum/type", "Lcdm001Keys", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#/mainmenukey", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "LeftKey", KEY_META, "check/enum/#1", "RightKey", KEY_META, "check/enum/#2", "UpKey", KEY_META, "check/enum/#3", "DownKey", KEY_META, "check/type", "enum", KEY_META, "default", "RightKey", KEY_META, "description", "Normal Context: Open main menu \nMenu Context: Exit/Cancel", KEY_META, "gen/enum/type", "Lcdm001Keys", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#/pausekey", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "LeftKey", KEY_META, "check/enum/#1", "RightKey", KEY_META, "check/enum/#2", "UpKey", KEY_META, "check/enum/#3", "DownKey", KEY_META, "check/type", "enum", KEY_META, "default", "LeftKey", KEY_META, "description", "Normal Context: Pause/Continue \nMenu Context: Enter/select", KEY_META, "gen/enum/type", "Lcdm001Keys", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lcterm driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "LctermDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm/#/file", KEY_META, "default", "lcterm", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Specify the size of the display in pixels", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a linux_input driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Linux_inputDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/input/event0", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input/#/file", KEY_META, "default", "linux_input", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input/#/key/_", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "specify a non-default key map, eg.: \n/linux_input/key/#01 = 1\n/linux_input/key/#28 = Enter", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lirc driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "LircDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc/#/file", KEY_META, "default", "lirc", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc/#/lircrc", KEY_META, "check/type", "string", KEY_META, "default", "~/.lircrc", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc/#/prog", KEY_META, "check/type", "string", KEY_META, "default", "lcdd", KEY_META, "description", "Must be the same as in your lircrc", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lis driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "LisDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness\n0-250 = 25%, 251-500 = 50%, 501-750 = 75%, 751-1000 = 100%", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/file", KEY_META, "default", "lis", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/lastline", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Specifies if the last line is pixel addressable (yes) or it only controls an\nunderline effect (no)", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/productid", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{4})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size ProductID: 0x0000-0xFFFF is allowed", KEY_META, "default", "0x6001", KEY_META, "description", "USB Product ID. Change only if testing a compatible device.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Columns by lines", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/vendorid", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{4})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size VendorID: 0x0000-0xFFFF is allowed", KEY_META, "default", "0x0403", KEY_META, "description", "USB Vendor ID. Change only if testing a compatible device.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a MD8800 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "MD8800DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800/#/file", KEY_META, "default", "MD8800", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a mdm166a driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Mdm166aDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#/clock", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "no", KEY_META, "check/enum/#1", "small", KEY_META, "check/enum/#2", "big", KEY_META, "check/type", "enum", KEY_META, "default", "no", KEY_META, "description", "Show self-running clock after LCDd shutdown", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#/dimming", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Dim display, no dimming gives full brightness", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#/file", KEY_META, "default", "mdm166a", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#/offdimming", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Dim display in case LCDd is inactive", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/menu/downkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/menu/enterkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/menu/leftkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/menu/menukey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/menu/permissivegoto", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If true the server allows transitions between different client`s menus", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/menu/rightkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/menu/upkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a ms6931 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Ms6931DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931/#/file", KEY_META, "default", "ms6931", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtc_s16209x", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtc_s16209x/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a mtc_s16209x driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Mtc_s16209xDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtc_s16209x/#/brightness", KEY_META, "check/range", "0-255", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "200", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtc_s16209x/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtc_s16209x/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtc_s16209x/#/file", KEY_META, "default", "mtc_s16209x", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtc_s16209x/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtc_s16209x/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a MtxOrb driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "MtxOrbDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "480", KEY_META, "description", "Set the initial contrast\nNOTE: The driver will ignore this if the display\nis a vfd or vkd as they don\'t have this feature", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS0", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/file", KEY_META, "default", "MtxOrb", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/hasadjustablebacklight", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Some old displays do not have an adjustable backlight but only can\nswitch the backlight on/off. If you experience randomly appearing block\ncharacters, try setting this to false.", KEY_META, "gen/struct/field", "hasAdjustableBacklight", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/keymap_a", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/keymap_b", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/keymap_c", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/keymap_d", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/keymap_e", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/keymap_f", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/keypad_test_mode", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "permits one to test keypad assignment", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/speed", KEY_META, "check/range", "1200, 2400, 9600, 19200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "Set the communication", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/type", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "lcd", KEY_META, "check/enum/#1", "lkd", KEY_META, "check/enum/#2", "vfd", KEY_META, "check/enum/#3", "vkd", KEY_META, "check/type", "enum", KEY_META, "default", "lcd", KEY_META, "description", "Set the display type", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a mx5000 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Mx5000DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/hiddev0", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000/#/file", KEY_META, "default", "mx5000", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000/#/waitafterrefresh", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "[1-9]\\d*", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "WaitAfterRefresh must be a positive number", KEY_META, "default", "1000", KEY_META, "description", "Time to wait in ms after the refresh screen has been sent", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a NoritakeVFD driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "NoritakeVFDDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "device where the VFD is. Usual values are /dev/ttyS0 and /dev/ttyS1", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/file", KEY_META, "default", "NoritakeVFD", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/parity", KEY_META, "check/range", "0-2", KEY_META, "check/type", "unsigned_long", KEY_META, "default", "0", KEY_META, "description", "Set serial data parity\nMeaning: 0(=none), 1(=odd), 2(=even)", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/speed", KEY_META, "check/range", "1200, 2400, 9600, 19200, 115200", KEY_META, "check/type", "unsigned_long", KEY_META, "default", "19200", KEY_META, "description", "set the serial port speed", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/olimex_mod_lcd1x9", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/olimex_mod_lcd1x9/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a Olimex_MOD_LCD1x9 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Olimex_MOD_LCD1x9DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/olimex_mod_lcd1x9/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/olimex_mod_lcd1x9/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/olimex_mod_lcd1x9/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/i2c-0", KEY_META, "description", "device file of the i2c controller", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/olimex_mod_lcd1x9/#/file", KEY_META, "default", "Olimex_MOD_LCD1x9", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/olimex_mod_lcd1x9/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/olimex_mod_lcd1x9/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a picolcd driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "PicolcdDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/backlight", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Sets the initial state of the backlight upon start-up.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness [default: 1000; legal: 0 - 1000]. Works only\nwith the 20x4 device", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/file", KEY_META, "default", "picolcd", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/key0light", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/key1light", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/key2light", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/key3light", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/key4light", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/key5light", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/keylights", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Light the keys\?", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/keyrepeatdelay", KEY_META, "check/range", "0-3000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "300", KEY_META, "description", "Key auto repeat is only available if the picoLCD driver is built with\nlibusb-1.0. Use KeyRepeatDelay and KeyRepeatInterval to configure key auto\nrepeat.\n#\nKey auto repeat delay (time in ms from first key report to first repeat). Use\nzero to disable auto repeat.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/keyrepeatinterval", KEY_META, "check/range", "0-3000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "200", KEY_META, "description", "Key auto repeat interval (time in ms between repeat reports). Only used if\nKeyRepeatDelay is not zero.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/keytimeout", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "KeyTimeout is only used if the picoLCD driver is built with libusb-0.1. When\nbuilt with libusb-1.0 key and IR data is input asynchronously so there is no\nneed to wait for the USB data.\nKeyTimeout is the time in ms that LCDd spends waiting for a key press before\ncycling through other duties. Higher values make LCDd use less CPU time and\nmake key presses more detectable. Lower values make LCDd more responsive\nbut a little prone to missing key presses. 500 (.5 second) is the default\nand a balanced value.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/linklights", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Link the key lights to the backlight\?", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/lircflushthreshold", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "[1-9]\\d{3,}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "LircFlushThreshold must be a positive number >1000", KEY_META, "default", "1000", KEY_META, "description", "Threshold in microseconds of the gap that triggers flushing the IR data\nto lirc [default: 8000; legal: 1000 - ]\nIf LircTime_us is on values greater than 32.767ms will disable the flush\nIf LircTime_us is off values greater than 1.999938s will disable the flush", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/lirchost", KEY_META, "check/type", "string", KEY_META, "default", "127.0.0.1", KEY_META, "description", "Host name or IP address of the LIRC instance that is to receive IR codes If not set, or set to an empty value, IR support is disabled.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/lircport", KEY_META, "default", "8765", KEY_META, "description", "UDP port on which LIRC is listening", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/lirctime_us", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "UDP data time unit for LIRC\nOn: times sent in microseconds (requires LIRC UDP driver that accepts this).\nOff: times sent in \'jiffies\' (1/16384s) (supported by standard LIRC UDP driver).", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the brightness while the backlight is \'off\'.\nWorks only with the 20x4 device.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/pyramid", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/pyramid/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a pyramid driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "PyramidDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/pyramid/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "device to connect to", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/pyramid/#/file", KEY_META, "default", "pyramid", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a rawserial driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "RawserialDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/cuaU0", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/file", KEY_META, "default", "rawserial", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "40x4", KEY_META, "description", "Specifies the size of the LCD. If this driver is loaded as a secondary driver\nit always adopts to the size of the primary driver. If loaded as the only\n(or primary) driver, the size can be set.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/speed", KEY_META, "check/type", "unsigned_long", KEY_META, "default", "9600", KEY_META, "description", "Serial port baudrate [default: 9600]", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/updaterate", KEY_META, "check/type", "float", KEY_META, "default", "1", KEY_META, "description", "How often to dump the LCD contents out the port, in Hertz (times per second)\n1 = once per second, 4 is 4 times per second, 0.1 is once every 10 seconds.\n[default: 1; legal: 0.0005 - 10]", KEY_META, "type", "float", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a sed1330 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Sed1330DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/cellsize", KEY_META, "check/type", "string", KEY_META, "check/validation", "[6-8]x([1-9][0-6]|[1-9])", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Width x Height of a character cell in pixels [legal: 6x7 - 8x16]", KEY_META, "default", "6x10", KEY_META, "description", "Width x Height of a character cell in pixels", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/connectiontype", KEY_META, "check/enum", "#1", KEY_META, "check/enum/#0", "classic", KEY_META, "check/enum/#1", "bitshaker", KEY_META, "check/type", "enum", KEY_META, "default", "classic", KEY_META, "description", "Select what type of connection", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/file", KEY_META, "default", "sed1330", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/port", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{3})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "Port where the LPT is. Common values are 0x278, 0x378 and 0x3BC", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/type", KEY_META, "check/enum", "#5", KEY_META, "check/enum/#0", "G321D", KEY_META, "check/enum/#1", "G121C", KEY_META, "check/enum/#2", "G242C", KEY_META, "check/enum/#3", "G191D", KEY_META, "check/enum/#4", "G2446", KEY_META, "check/enum/#5", "SP14Q002", KEY_META, "check/type", "enum", KEY_META, "default", "G321D", KEY_META, "description", "Type of LCD module.\nNote: Currently only tested with G321D & SP14Q002.", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a sed1520 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Sed1520DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/delaymult", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1", KEY_META, "description", "On fast machines it may be necessary to slow down transfer to the display.\nIf this value is set to zero, delay is disabled. Any value greater than\nzero slows down each write by one microsecond.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/file", KEY_META, "default", "sed1520", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/haveinverter", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "The original wiring used an inverter to drive the control lines. If you do\nnot use an inverter set haveInverter to no.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/interfacetype", KEY_META, "check/range", "68, 80", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "80", KEY_META, "description", "Select the interface type (wiring) for the display. Supported values are\n68 for 68-style connection (RESET level high) and 80 for 80-style connection\n(RESET level low)", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/invertedmapping", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "On some displays column data in memory is mapped to segment lines from right\nto left. This is called inverted mapping (not to be confused with\n\'haveInverter\' from above).", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/port", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{3})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "Port where the LPT is. Usual values are 0x278, 0x378 and 0x3BC", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/usehardreset", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "At least one display is reported (Everbouquet MG1203D) that requires sending\nthree times 0xFF before a reset during initialization.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a serialPOS driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SerialPOSDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/cellsize", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "5x8", KEY_META, "description", "Specifies the cell size of each character cell on the display in characters.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/custom_chars", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "^([1-9]\\d*|0)$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be any positive number including 0", KEY_META, "default", "0", KEY_META, "description", "Specifies the number of custom characters supported by the display.\nCustom characters are only used for the rendering of horizontal bars\nand vertical bars. For displays whose cell character cell widths are\nlower than the number of custom characters supported,\nthen custom characters will be used to render the horizontal bars.\nFor more information look at: https://github.com/lcdproc/lcdproc/blob/master/docs/lcdproc-user/drivers/serialPOS.docbook", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS0", KEY_META, "description", "Device to use in serial mode", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/file", KEY_META, "default", "serialPOS", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Specifies the size of the display in characters.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/speed", KEY_META, "check/range", "1200, 2400, 4800, 9600, 19200, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "communication baud rate with the display", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/type", KEY_META, "check/enum", "#5", KEY_META, "check/enum/#0", "AEDEX", KEY_META, "check/enum/#1", "CD5220", KEY_META, "check/enum/#2", "Epson", KEY_META, "check/enum/#3", "Emax", KEY_META, "check/enum/#4", "LogicControls", KEY_META, "check/enum/#5", "Ultimate", KEY_META, "check/type", "enum", KEY_META, "default", "AEDEX", KEY_META, "description", "Set the communication protocol to use with the POS display.", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a serialVFD driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SerialVFDDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness. (4 steps 0-250, 251-500, 501-750, 751-1000)", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/custom-characters", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "^([1-9]\\d*|0)$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be any positive number including 0", KEY_META, "default", "0", KEY_META, "description", "Number of Custom-Characters. default is display type dependent", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "Device to use in serial mode. Usual values are /dev/ttyS0 and /dev/ttyS1", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/file", KEY_META, "default", "serialVFD", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/iso_8859_1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "enable ISO 8859 1 compatibility", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive\n(4 steps 0-250, 251-500, 501-750, 751-1000)", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/port", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{3})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "Portaddress where the LPT is. Used in parallel mode only. Usual values are 0x278, 0x378 and 0x3BC.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/portwait", KEY_META, "check/range", "0-255", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "2", KEY_META, "description", "Set parallel port timing delay (us). Used in parallel mode only.", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x2", KEY_META, "description", "Specifies the size of the VFD.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/speed", KEY_META, "check/range", "1200, 2400, 9600, 19200, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "set the serial port speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/type", KEY_META, "check/enum", "#_17", KEY_META, "check/enum/#0", "nec_fipc8367", KEY_META, "check/enum/#1", "kd_rev_2_1", KEY_META, "check/enum/#2", "noritake_vfd", KEY_META, "check/enum/#3", "futaba_vfd", KEY_META, "check/enum/#4", "iee_s03601-95b", KEY_META, "check/enum/#5", "iee_s03601-96-080", KEY_META, "check/enum/#6", "futaba_na202sd08fa", KEY_META, "check/enum/#7", "samsung_20s207da4/20s207da6", KEY_META, "check/enum/#8", "nixdorf_ba6x/vt100", KEY_META, "check/enum/#_10", "1", KEY_META, "check/enum/#_11", "2", KEY_META, "check/enum/#_12", "3", KEY_META, "check/enum/#_13", "4", KEY_META, "check/enum/#_14", "5", KEY_META, "check/enum/#_15", "6", KEY_META, "check/enum/#_16", "7", KEY_META, "check/enum/#_17", "8", KEY_META, "check/enum/#_9", "0", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Specifies the displaytype.[default: 0]\n0 NEC (FIPC8367 based) VFDs.\n1 KD Rev 2.1.\n2 Noritake VFDs (*).\n3 Futaba VFDs\n4 IEE S03601-95B\n5 IEE S03601-96-080 (*)\n6 Futaba NA202SD08FA (allmost IEE compatible)\n7 Samsung 20S207DA4 and 20S207DA6\n8 Nixdorf BA6x / VT100\n(* most should work, not tested yet.)", KEY_META, "gen/enum/type", "SerialVFDType", KEY_META, "gen/enum/value", "8", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/use_parallel", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "\'no\' if display connected serial, \'yes\' if connected parallel.\nI.e. serial by default", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/autorotate", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If set to no, LCDd will start with screen rotation disabled. This has the same effect as if the ToggleRotateKey had been pressed. Rotation will start if the ToggleRotateKey is pressed. Note that this setting does not turn off priority sorting of screens", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/backlight", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "off", KEY_META, "check/enum/#1", "on", KEY_META, "check/enum/#2", "open", KEY_META, "default", "open", KEY_META, "description", "Set master backlight setting. If set to \'open\' a client may control the backlight for its own screens (only)", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/bind", KEY_META, "check/type", "string", KEY_META, "default", "127.0.0.1", KEY_META, "description", "Tells the driver to bind to the given interface", KEY_META, "opt", "a", KEY_META, "opt/long", "address", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/driverpath", KEY_META, "check/type", "string", KEY_META, "check/validation", ".*[\\/]$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "The path has to contain a backslack (/) at the end", KEY_META, "default", "server/drivers/", KEY_META, "description", "Select the LCD size", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/drivers", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/drivers/#", KEY_META, "check/reference/restrict", "#_52", KEY_META, "check/reference/restrict/#0", "@/bayrad/#", KEY_META, "check/reference/restrict/#1", "@/cfontz/#", KEY_META, "check/reference/restrict/#2", "@/cfontzpacket/#", KEY_META, "check/reference/restrict/#3", "@/curses/#", KEY_META, "check/reference/restrict/#4", "@/cwlnx/#", KEY_META, "check/reference/restrict/#5", "@/ea65/#", KEY_META, "check/reference/restrict/#6", "@/eyeboxone/#", KEY_META, "check/reference/restrict/#7", "@/futaba/#", KEY_META, "check/reference/restrict/#8", "@/g15/#", KEY_META, "check/reference/restrict/#9", "@/glcd/#", KEY_META, "check/reference/restrict/#_10", "@/glcdlib/#", KEY_META, "check/reference/restrict/#_11", "@/glk/#", KEY_META, "check/reference/restrict/#_12", "@/hd44780/#", KEY_META, "check/reference/restrict/#_13", "@/icp_a106/#", KEY_META, "check/reference/restrict/#_14", "@/imon/#", KEY_META, "check/reference/restrict/#_15", "@/imonlcd/#", KEY_META, "check/reference/restrict/#_16", "@/iowarrior/#", KEY_META, "check/reference/restrict/#_17", "@/irman/#", KEY_META, "check/reference/restrict/#_18", "@/joy/#", KEY_META, "check/reference/restrict/#_19", "@/lb216/#", KEY_META, "check/reference/restrict/#_20", "@/lcdm001/#", KEY_META, "check/reference/restrict/#_21", "@/lcterm/#", KEY_META, "check/reference/restrict/#_22", "@/linux_input/#", KEY_META, "check/reference/restrict/#_23", "@/lirc/#", KEY_META, "check/reference/restrict/#_24", "@/lis/#", KEY_META, "check/reference/restrict/#_25", "@/md8800/#", KEY_META, "check/reference/restrict/#_26", "@/mdm166a/#", KEY_META, "check/reference/restrict/#_27", "@/ms6931/#", KEY_META, "check/reference/restrict/#_28", "@/mtc_s16209x/#", KEY_META, "check/reference/restrict/#_29", "@/mtxorb/#", KEY_META, "check/reference/restrict/#_30", "@/mx5000/#", KEY_META, "check/reference/restrict/#_31", "@/noritakevfd/#", KEY_META, "check/reference/restrict/#_32", "@/olimex_mod_lcd1x9/#", KEY_META, "check/reference/restrict/#_33", "@/picolcd/#", KEY_META, "check/reference/restrict/#_34", "@/pyramid/#", KEY_META, "check/reference/restrict/#_35", "@/rawserial/#", KEY_META, "check/reference/restrict/#_36", "@/sdeclcd/#", KEY_META, "check/reference/restrict/#_37", "@/sed1330/#", KEY_META, "check/reference/restrict/#_38", "@/sed1520/#", KEY_META, "check/reference/restrict/#_39", "@/serialpos/#", KEY_META, "check/reference/restrict/#_40", "@/serialvfd/#", KEY_META, "check/reference/restrict/#_41", "@/shuttlevfd/#", KEY_META, "check/reference/restrict/#_42", "@/sli/#", KEY_META, "check/reference/restrict/#_43", "@/stv5730/#", KEY_META, "check/reference/restrict/#_44", "@/svga/#", KEY_META, "check/reference/restrict/#_45", "@/t6963/#", KEY_META, "check/reference/restrict/#_46", "@/text/#", KEY_META, "check/reference/restrict/#_47", "@/tyan/#", KEY_META, "check/reference/restrict/#_48", "@/ula200/#", KEY_META, "check/reference/restrict/#_49", "@/vlsys_m428/#", KEY_META, "check/reference/restrict/#_50", "@/xosd/#", KEY_META, "check/reference/restrict/#_51", "@/yard2lcd/#", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "Tells the server to load a driver.\nThe given value is a reference the configuration of the driver, e.g. @/curses/#0", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/foreground", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "The server will stay in the foreground if set to yes", KEY_META, "opt", "f", KEY_META, "opt/arg", "none", KEY_META, "opt/long", "foreground", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/frameinterval", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "[1-9]\\d*", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "FrameInterval must be a positive number", KEY_META, "default", "125000", KEY_META, "description", "Sets the interval in microseconds for updating the display [default: 125000 meaning 8Hz]", KEY_META, "type", "unsigned_long", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/goodbye/#", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "GoodBye message: each entry represents a display line", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/heartbeat", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "off", KEY_META, "check/enum/#1", "on", KEY_META, "check/enum/#2", "open", KEY_META, "default", "open", KEY_META, "description", "Set master heartbeat setting. If set to \'open\' a client may control the", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/hello/#", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "Hello message: each entry represents a display line", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/nextscreenkey", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/port", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "13666", KEY_META, "description", "Listen on this specified port. [default: 13666]", KEY_META, "opt", "p", KEY_META, "opt/long", "port", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/prevscreenkey", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/reportlevel", KEY_META, "check/range", "0-5", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "2", KEY_META, "description", "TSets the reporting level, defaults to warnings and errors only.", KEY_META, "opt", "r", KEY_META, "opt/long", "report-level", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/reporttosyslog", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Should we report to syslog instead of stderr\?", KEY_META, "opt", "s", KEY_META, "opt/arg", "none", KEY_META, "opt/long", "report-to-syslog", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/scrolldownkey", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/scrollupkey", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/serverscreen", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "off", KEY_META, "check/enum/#1", "on", KEY_META, "check/enum/#2", "blank", KEY_META, "default", "on", KEY_META, "description", "If yes, the the serverscreen will be rotated as a usual info screen. If no, it will be a background screen, only visible when no other screens are active. The special value \'blank\' is similar to no, but only a blank screen is displayed.", KEY_META, "opt", "i", KEY_META, "opt/long", "rotate-server-screen", KEY_META, "type", "enum", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/titlespeed", KEY_META, "check/range", "0-10", KEY_META, "default", "10", KEY_META, "description", "title scrolling speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/togglerotatekey", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/user", KEY_META, "check/type", "string", KEY_META, "default", "nobody", KEY_META, "description", "set to run as. LCDd will drop its root privileges and run as this user instead. [default: nobody]", KEY_META, "opt", "u", KEY_META, "opt/long", "user", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/waittime", KEY_META, "check/type", "float", KEY_META, "default", "4", KEY_META, "description", "Sets the default time in seconds to displays a screen", KEY_META, "opt", "w", KEY_META, "opt/long", "wait-time", KEY_META, "type", "float", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a sli driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SliDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli/#/file", KEY_META, "default", "sli", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli/#/speed", KEY_META, "check/range", "1200, 2400, 9600, 19200, 38400, 57600, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/stv5730", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/stv5730/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a stv5730 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Stv5730DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/stv5730/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/stv5730/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/stv5730/#/file", KEY_META, "default", "stv5730", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/stv5730/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/stv5730/#/port", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{3})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "Port the device is connected to", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/stv5730/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a SureElec driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SureElecDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "480", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "480", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyUSB0", KEY_META, "description", "Port the device is connected to (by default first USB serial port)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#/edition", KEY_META, "check/range", "1-3", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "2", KEY_META, "description", "Edition level of the device (can be 1, 2 or 3)", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#/file", KEY_META, "default", "SureElec", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "480", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "set display size\nNote: The size can be obtained directly from device for edition 2 & 3.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a svga driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SvgaDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga/#/brightness", KEY_META, "check/range", "1-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga/#/file", KEY_META, "default", "svga", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga/#/mode", KEY_META, "check/type", "string", KEY_META, "default", "G320x240x256", KEY_META, "description", "svgalib mode to use [default: G320x240x256 ]\nlegal values are supported svgalib modes. See man7 pages for allowed values", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga/#/offbrightness", KEY_META, "check/range", "1-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a t6963 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "T6963DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/bidirectional", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Use LPT port in bi-directional mode. This should work on most LPT port and\nis required for proper timing!", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/cleargraphic", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Clear graphic memory on start-up.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/delaybus", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Insert additional delays into reads / writes.", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/file", KEY_META, "default", "t6963", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/port", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([2-3][0-9A-F]{2}|400)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. legal: 0x200 - 0x400", KEY_META, "default", "0x378", KEY_META, "description", "Parallel port to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "128x64", KEY_META, "description", "set display size in pixels", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/text", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/text/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a text driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "TextDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/text/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/text/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/text/#/file", KEY_META, "default", "text", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/text/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/text/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/text/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a tyan driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "TyanDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#/file", KEY_META, "default", "tyan", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#/speed", KEY_META, "check/range", "4800, 9600", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a ula200 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Ula200DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/file", KEY_META, "default", "ula200", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/keymap_a", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/keymap_b", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/keymap_c", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/keymap_d", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/keymap_e", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/keymap_f", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Select the LCD size", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/vlsys_m428", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/vlsys_m428/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a vlsys_m428 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Vlsys_m428DriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/vlsys_m428/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/vlsys_m428/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/vlsys_m428/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyUSB0", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/vlsys_m428/#/file", KEY_META, "default", "vlsys_m428", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/vlsys_m428/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/vlsys_m428/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a xosd driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "XosdDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#/Font", KEY_META, "check/type", "string", KEY_META, "default", "-*-terminus-*-r-*-*-*-320-*-*-*-*-*", KEY_META, "description", "X font to use, in XLFD format, as given by \'xfontsel\'", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#/file", KEY_META, "default", "xosd", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#/offset", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid offset declaration. Examples: 200x200", KEY_META, "default", "0x0", KEY_META, "description", "Offset in pixels from the top-left corner of the monitor [default: 0x0]", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/yard2lcd", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/yard2lcd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a yard2LCD driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Yard2LCDDriverConfig", KEY_META, "type", "struct", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/yard2lcd/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/yard2lcd/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/yard2lcd/#/file", KEY_META, "default", "yard2LCD", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/yard2lcd/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/yard2lcd/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), + keyNew ("spec/sw/lcdproc/lcdd/#0/current/yard2lcd/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), + KS_END); +; + + Key * parentKey = keyNew ("spec/sw/lcdproc/lcdd/#0/current", KEY_END); + + KeySet * specloadConf = ksNew (1, keyNew ("system/sendspec", KEY_END), KS_END); + ElektraInvokeHandle * specload = elektraInvokeOpen ("specload", specloadConf, parentKey); + + int result = elektraInvoke2Args (specload, "sendspec", spec, parentKey); + + elektraInvokeClose (specload, parentKey); + keyDel (parentKey); + ksDel (specloadConf); + ksDel (spec); + + exit (result == ELEKTRA_PLUGIN_STATUS_SUCCESS ? EXIT_SUCCESS : EXIT_FAILURE); +} + +/** + * Extracts the help message from the @p errorKey used in elektraGetOpts(). + * + * @param errorKey The same Key as passed to elektraGetOpts() as errorKey. + * @param usage If this is not NULL, it will be used instead of the default usage line. + * @param prefix If this is not NULL, it will be inserted between the usage line and the options list. + * + * @return The full help message extracted from @p errorKey, or NULL if no help message was found. + * The returned string has to be freed with elektraFree(). + */ + +/** + * Outputs the help message to stdout + * + * @param usage If this is not NULL, it will be used instead of the default usage line. + * @param prefix If this is not NULL, it will be inserted between the usage line and the options list. + */ +void printHelpMessage (const char * usage, const char * prefix) +{ + if (helpKey == NULL) + { + return; + } + + char * help = elektraGetOptsHelpMessage (helpKey, usage, prefix); + printf ("%s", help); + elektraFree (help); + keyDel (helpKey); + helpKey = NULL; +} + +// clang-format off + +// clang-format on + +// ------------------------- +// Enum conversion functions +// ------------------------- + +ELEKTRA_KEY_TO_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + + if (strcmp (string, "533") == 0) + { + *variable = C_FONTZ_PACKET_MODEL_533; + return 1; + } + if (strcmp (string, "631") == 0) + { + *variable = C_FONTZ_PACKET_MODEL_631; + return 1; + } + if (strcmp (string, "633") == 0) + { + *variable = C_FONTZ_PACKET_MODEL_633; + return 1; + } + if (strcmp (string, "635") == 0) + { + *variable = C_FONTZ_PACKET_MODEL_635; + return 1; + } + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel) +{ + switch (value) + { + case C_FONTZ_PACKET_MODEL_533: + return elektraStrDup ("533"); + case C_FONTZ_PACKET_MODEL_631: + return elektraStrDup ("631"); + case C_FONTZ_PACKET_MODEL_633: + return elektraStrDup ("633"); + case C_FONTZ_PACKET_MODEL_635: + return elektraStrDup ("635"); + } + + // should be unreachable + return ""; +} +ELEKTRA_KEY_TO_SIGNATURE (CursesColor, EnumCursesColor) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + + if (strcmp (string, "red") == 0) + { + *variable = CURSES_COLOR_RED; + return 1; + } + if (strcmp (string, "black") == 0) + { + *variable = CURSES_COLOR_BLACK; + return 1; + } + if (strcmp (string, "green") == 0) + { + *variable = CURSES_COLOR_GREEN; + return 1; + } + if (strcmp (string, "yellow") == 0) + { + *variable = CURSES_COLOR_YELLOW; + return 1; + } + if (strcmp (string, "blue") == 0) + { + *variable = CURSES_COLOR_BLUE; + return 1; + } + if (strcmp (string, "magenta") == 0) + { + *variable = CURSES_COLOR_MAGENTA; + return 1; + } + if (strcmp (string, "cyan") == 0) + { + *variable = CURSES_COLOR_CYAN; + return 1; + } + if (strcmp (string, "white") == 0) + { + *variable = CURSES_COLOR_WHITE; + return 1; + } + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (CursesColor, EnumCursesColor) +{ + switch (value) + { + case CURSES_COLOR_RED: + return elektraStrDup ("red"); + case CURSES_COLOR_BLACK: + return elektraStrDup ("black"); + case CURSES_COLOR_GREEN: + return elektraStrDup ("green"); + case CURSES_COLOR_YELLOW: + return elektraStrDup ("yellow"); + case CURSES_COLOR_BLUE: + return elektraStrDup ("blue"); + case CURSES_COLOR_MAGENTA: + return elektraStrDup ("magenta"); + case CURSES_COLOR_CYAN: + return elektraStrDup ("cyan"); + case CURSES_COLOR_WHITE: + return elektraStrDup ("white"); + } + + // should be unreachable + return ""; +} +ELEKTRA_KEY_TO_SIGNATURE (CwLnxModel, EnumCwLnxModel) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + + if (strcmp (string, "12232") == 0) + { + *variable = CW_LNX_MODEL_12232; + return 1; + } + if (strcmp (string, "12832") == 0) + { + *variable = CW_LNX_MODEL_12832; + return 1; + } + if (strcmp (string, "1602") == 0) + { + *variable = CW_LNX_MODEL_1602; + return 1; + } + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (CwLnxModel, EnumCwLnxModel) +{ + switch (value) + { + case CW_LNX_MODEL_12232: + return elektraStrDup ("12232"); + case CW_LNX_MODEL_12832: + return elektraStrDup ("12832"); + case CW_LNX_MODEL_1602: + return elektraStrDup ("1602"); + } + + // should be unreachable + return ""; +} +ELEKTRA_KEY_TO_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + + if (strcmp (string, "t6963") == 0) + { + *variable = GLCD_CONNECTION_TYPE_T6963; + return 1; + } + if (strcmp (string, "png") == 0) + { + *variable = GLCD_CONNECTION_TYPE_PNG; + return 1; + } + if (strcmp (string, "serdisplib") == 0) + { + *variable = GLCD_CONNECTION_TYPE_SERDISPLIB; + return 1; + } + if (strcmp (string, "glcd2usb") == 0) + { + *variable = GLCD_CONNECTION_TYPE_GLCD2USB; + return 1; + } + if (strcmp (string, "x11") == 0) + { + *variable = GLCD_CONNECTION_TYPE_X11; + return 1; + } + if (strcmp (string, "picolcdgfx") == 0) + { + *variable = GLCD_CONNECTION_TYPE_PICOLCDGFX; + return 1; + } + if (strcmp (string, "xyz") == 0) + { + *variable = GLCD_CONNECTION_TYPE_XYZ; + return 1; + } + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType) +{ + switch (value) + { + case GLCD_CONNECTION_TYPE_T6963: + return elektraStrDup ("t6963"); + case GLCD_CONNECTION_TYPE_PNG: + return elektraStrDup ("png"); + case GLCD_CONNECTION_TYPE_SERDISPLIB: + return elektraStrDup ("serdisplib"); + case GLCD_CONNECTION_TYPE_GLCD2USB: + return elektraStrDup ("glcd2usb"); + case GLCD_CONNECTION_TYPE_X11: + return elektraStrDup ("x11"); + case GLCD_CONNECTION_TYPE_PICOLCDGFX: + return elektraStrDup ("picolcdgfx"); + case GLCD_CONNECTION_TYPE_XYZ: + return elektraStrDup ("xyz"); + } + + // should be unreachable + return ""; +} +ELEKTRA_KEY_TO_SIGNATURE (HD44780Backlight, EnumHD44780Backlight) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + + if (strcmp (string, "none") == 0) + { + *variable = H_D44780_BACKLIGHT_NONE; + return 1; + } + if (strcmp (string, "external") == 0) + { + *variable = H_D44780_BACKLIGHT_EXTERNAL; + return 1; + } + if (strcmp (string, "internal") == 0) + { + *variable = H_D44780_BACKLIGHT_INTERNAL; + return 1; + } + if (strcmp (string, "internalCmds") == 0) + { + *variable = H_D44780_BACKLIGHT_INTERNAL_CMDS; + return 1; + } + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (HD44780Backlight, EnumHD44780Backlight) +{ + switch (value) + { + case H_D44780_BACKLIGHT_NONE: + return elektraStrDup ("none"); + case H_D44780_BACKLIGHT_EXTERNAL: + return elektraStrDup ("external"); + case H_D44780_BACKLIGHT_INTERNAL: + return elektraStrDup ("internal"); + case H_D44780_BACKLIGHT_INTERNAL_CMDS: + return elektraStrDup ("internalCmds"); + } + + // should be unreachable + return ""; +} +ELEKTRA_KEY_TO_SIGNATURE (HD44780Charmap, EnumHD44780Charmap) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + + if (strcmp (string, "hd44780_default") == 0) + { + *variable = H_D44780_CHARMAP_HD44780_DEFAULT; + return 1; + } + if (strcmp (string, "hd44780_euro") == 0) + { + *variable = H_D44780_CHARMAP_HD44780_EURO; + return 1; + } + if (strcmp (string, "ea_ks0073") == 0) + { + *variable = H_D44780_CHARMAP_EA_KS0073; + return 1; + } + if (strcmp (string, "sed1278f_0b") == 0) + { + *variable = H_D44780_CHARMAP_SED1278F_0B; + return 1; + } + if (strcmp (string, "hd44780_koi8_r") == 0) + { + *variable = H_D44780_CHARMAP_HD44780_KOI8_R; + return 1; + } + if (strcmp (string, "hd44780_cp1251") == 0) + { + *variable = H_D44780_CHARMAP_HD44780_CP1251; + return 1; + } + if (strcmp (string, "hd44780_8859_5") == 0) + { + *variable = H_D44780_CHARMAP_HD44780_8859_5; + return 1; + } + if (strcmp (string, "upd16314") == 0) + { + *variable = H_D44780_CHARMAP_UPD16314; + return 1; + } + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (HD44780Charmap, EnumHD44780Charmap) +{ + switch (value) + { + case H_D44780_CHARMAP_HD44780_DEFAULT: + return elektraStrDup ("hd44780_default"); + case H_D44780_CHARMAP_HD44780_EURO: + return elektraStrDup ("hd44780_euro"); + case H_D44780_CHARMAP_EA_KS0073: + return elektraStrDup ("ea_ks0073"); + case H_D44780_CHARMAP_SED1278F_0B: + return elektraStrDup ("sed1278f_0b"); + case H_D44780_CHARMAP_HD44780_KOI8_R: + return elektraStrDup ("hd44780_koi8_r"); + case H_D44780_CHARMAP_HD44780_CP1251: + return elektraStrDup ("hd44780_cp1251"); + case H_D44780_CHARMAP_HD44780_8859_5: + return elektraStrDup ("hd44780_8859_5"); + case H_D44780_CHARMAP_UPD16314: + return elektraStrDup ("upd16314"); + } + + // should be unreachable + return ""; +} +ELEKTRA_KEY_TO_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + + if (strcmp (string, "4bit") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_4BIT; + return 1; + } + if (strcmp (string, "8bit") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_8BIT; + return 1; + } + if (strcmp (string, "winamp") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_WINAMP; + return 1; + } + if (strcmp (string, "lcm162") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_LCM162; + return 1; + } + if (strcmp (string, "serialLpt") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_SERIAL_LPT; + return 1; + } + if (strcmp (string, "picanlcd") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_PICANLCD; + return 1; + } + if (strcmp (string, "lcdserializer") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_LCDSERIALIZER; + return 1; + } + if (strcmp (string, "los-panel") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_LOS_PANEL; + return 1; + } + if (strcmp (string, "vdr-lcd") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_VDR_LCD; + return 1; + } + if (strcmp (string, "vdr-wakeup") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_VDR_WAKEUP; + return 1; + } + if (strcmp (string, "ezio") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_EZIO; + return 1; + } + if (strcmp (string, "pertelian") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_PERTELIAN; + return 1; + } + if (strcmp (string, "lis2") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_LIS2; + return 1; + } + if (strcmp (string, "mplay") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_MPLAY; + return 1; + } + if (strcmp (string, "usblcd") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_USBLCD; + return 1; + } + if (strcmp (string, "bwctusb") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_BWCTUSB; + return 1; + } + if (strcmp (string, "lcd2usb") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_LCD2USB; + return 1; + } + if (strcmp (string, "usbtiny") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_USBTINY; + return 1; + } + if (strcmp (string, "uss720") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_USS720; + return 1; + } + if (strcmp (string, "USB-4-all") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_U_S_B_4_ALL; + return 1; + } + if (strcmp (string, "ftdi") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_FTDI; + return 1; + } + if (strcmp (string, "i2c") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_I2C; + return 1; + } + if (strcmp (string, "piplate") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_PIPLATE; + return 1; + } + if (strcmp (string, "spi") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_SPI; + return 1; + } + if (strcmp (string, "pifacecad") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_PIFACECAD; + return 1; + } + if (strcmp (string, "ethlcd") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_ETHLCD; + return 1; + } + if (strcmp (string, "raspberrypi") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_RASPBERRYPI; + return 1; + } + if (strcmp (string, "gpio") == 0) + { + *variable = H_D44780_CONNECTION_TYPE_GPIO; + return 1; + } + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType) +{ + switch (value) + { + case H_D44780_CONNECTION_TYPE_4BIT: + return elektraStrDup ("4bit"); + case H_D44780_CONNECTION_TYPE_8BIT: + return elektraStrDup ("8bit"); + case H_D44780_CONNECTION_TYPE_WINAMP: + return elektraStrDup ("winamp"); + case H_D44780_CONNECTION_TYPE_LCM162: + return elektraStrDup ("lcm162"); + case H_D44780_CONNECTION_TYPE_SERIAL_LPT: + return elektraStrDup ("serialLpt"); + case H_D44780_CONNECTION_TYPE_PICANLCD: + return elektraStrDup ("picanlcd"); + case H_D44780_CONNECTION_TYPE_LCDSERIALIZER: + return elektraStrDup ("lcdserializer"); + case H_D44780_CONNECTION_TYPE_LOS_PANEL: + return elektraStrDup ("los-panel"); + case H_D44780_CONNECTION_TYPE_VDR_LCD: + return elektraStrDup ("vdr-lcd"); + case H_D44780_CONNECTION_TYPE_VDR_WAKEUP: + return elektraStrDup ("vdr-wakeup"); + case H_D44780_CONNECTION_TYPE_EZIO: + return elektraStrDup ("ezio"); + case H_D44780_CONNECTION_TYPE_PERTELIAN: + return elektraStrDup ("pertelian"); + case H_D44780_CONNECTION_TYPE_LIS2: + return elektraStrDup ("lis2"); + case H_D44780_CONNECTION_TYPE_MPLAY: + return elektraStrDup ("mplay"); + case H_D44780_CONNECTION_TYPE_USBLCD: + return elektraStrDup ("usblcd"); + case H_D44780_CONNECTION_TYPE_BWCTUSB: + return elektraStrDup ("bwctusb"); + case H_D44780_CONNECTION_TYPE_LCD2USB: + return elektraStrDup ("lcd2usb"); + case H_D44780_CONNECTION_TYPE_USBTINY: + return elektraStrDup ("usbtiny"); + case H_D44780_CONNECTION_TYPE_USS720: + return elektraStrDup ("uss720"); + case H_D44780_CONNECTION_TYPE_U_S_B_4_ALL: + return elektraStrDup ("USB-4-all"); + case H_D44780_CONNECTION_TYPE_FTDI: + return elektraStrDup ("ftdi"); + case H_D44780_CONNECTION_TYPE_I2C: + return elektraStrDup ("i2c"); + case H_D44780_CONNECTION_TYPE_PIPLATE: + return elektraStrDup ("piplate"); + case H_D44780_CONNECTION_TYPE_SPI: + return elektraStrDup ("spi"); + case H_D44780_CONNECTION_TYPE_PIFACECAD: + return elektraStrDup ("pifacecad"); + case H_D44780_CONNECTION_TYPE_ETHLCD: + return elektraStrDup ("ethlcd"); + case H_D44780_CONNECTION_TYPE_RASPBERRYPI: + return elektraStrDup ("raspberrypi"); + case H_D44780_CONNECTION_TYPE_GPIO: + return elektraStrDup ("gpio"); + } + + // should be unreachable + return ""; +} +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + switch (string[0]) +{ +case 'e': +*variable = ELEKTRA_ENUM_HD44780_MODEL_EXTENDED; +return 1; +case 'p': +*variable = ELEKTRA_ENUM_HD44780_MODEL_PT6314_VFD; +return 1; +case 's': +*variable = ELEKTRA_ENUM_HD44780_MODEL_STANDARD; +return 1; +case 'w': +*variable = ELEKTRA_ENUM_HD44780_MODEL_WINSTAR_OLED; +return 1; +} + + + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model) +{ + switch (value) + { + case ELEKTRA_ENUM_HD44780_MODEL_STANDARD: + return elektraStrDup ("standard"); + case ELEKTRA_ENUM_HD44780_MODEL_EXTENDED: + return elektraStrDup ("extended"); + case ELEKTRA_ENUM_HD44780_MODEL_WINSTAR_OLED: + return elektraStrDup ("winstar_oled"); + case ELEKTRA_ENUM_HD44780_MODEL_PT6314_VFD: + return elektraStrDup ("pt6314_vfd"); + } + + // should be unreachable + return ""; +} +ELEKTRA_KEY_TO_SIGNATURE (IMonCharmap, EnumIMonCharmap) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + + if (strcmp (string, "hd44780_euro") == 0) + { + *variable = I_MON_CHARMAP_HD44780_EURO; + return 1; + } + if (strcmp (string, "upd16314") == 0) + { + *variable = I_MON_CHARMAP_UPD16314; + return 1; + } + if (strcmp (string, "hd44780_koi8_r") == 0) + { + *variable = I_MON_CHARMAP_HD44780_KOI8_R; + return 1; + } + if (strcmp (string, "hd44780_cp1251") == 0) + { + *variable = I_MON_CHARMAP_HD44780_CP1251; + return 1; + } + if (strcmp (string, "hd44780_8859_5") == 0) + { + *variable = I_MON_CHARMAP_HD44780_8859_5; + return 1; + } + if (strcmp (string, "none") == 0) + { + *variable = I_MON_CHARMAP_NONE; + return 1; + } + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (IMonCharmap, EnumIMonCharmap) +{ + switch (value) + { + case I_MON_CHARMAP_HD44780_EURO: + return elektraStrDup ("hd44780_euro"); + case I_MON_CHARMAP_UPD16314: + return elektraStrDup ("upd16314"); + case I_MON_CHARMAP_HD44780_KOI8_R: + return elektraStrDup ("hd44780_koi8_r"); + case I_MON_CHARMAP_HD44780_CP1251: + return elektraStrDup ("hd44780_cp1251"); + case I_MON_CHARMAP_HD44780_8859_5: + return elektraStrDup ("hd44780_8859_5"); + case I_MON_CHARMAP_NONE: + return elektraStrDup ("none"); + } + + // should be unreachable + return ""; +} +ELEKTRA_KEY_TO_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + switch (string[0]) +{ +case '0': +*variable = I_MON_L_C_D_DISC_MODE_0; +return 1; +case '1': +*variable = I_MON_L_C_D_DISC_MODE_1; +return 1; +} + + + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode) +{ + switch (value) + { + case I_MON_L_C_D_DISC_MODE_0: + return elektraStrDup ("0"); + case I_MON_L_C_D_DISC_MODE_1: + return elektraStrDup ("1"); + } + + // should be unreachable + return ""; +} +ELEKTRA_KEY_TO_SIGNATURE (Lcdm001Keys, EnumLcdm001Keys) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + switch (string[0]) +{ +case 'D': +*variable = LCDM001_KEYS_DOWN_KEY; +return 1; +case 'L': +*variable = LCDM001_KEYS_LEFT_KEY; +return 1; +case 'R': +*variable = LCDM001_KEYS_RIGHT_KEY; +return 1; +case 'U': +*variable = LCDM001_KEYS_UP_KEY; +return 1; +} + + + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (Lcdm001Keys, EnumLcdm001Keys) +{ + switch (value) + { + case LCDM001_KEYS_LEFT_KEY: + return elektraStrDup ("LeftKey"); + case LCDM001_KEYS_RIGHT_KEY: + return elektraStrDup ("RightKey"); + case LCDM001_KEYS_UP_KEY: + return elektraStrDup ("UpKey"); + case LCDM001_KEYS_DOWN_KEY: + return elektraStrDup ("DownKey"); + } + + // should be unreachable + return ""; +} +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + switch (string[0]) +{ +case 'b': +*variable = ELEKTRA_ENUM_MDM166A_CLOCK_BIG; +return 1; +case 'n': +*variable = ELEKTRA_ENUM_MDM166A_CLOCK_NO; +return 1; +case 's': +*variable = ELEKTRA_ENUM_MDM166A_CLOCK_SMALL; +return 1; +} + + + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock) +{ + switch (value) + { + case ELEKTRA_ENUM_MDM166A_CLOCK_NO: + return elektraStrDup ("no"); + case ELEKTRA_ENUM_MDM166A_CLOCK_SMALL: + return elektraStrDup ("small"); + case ELEKTRA_ENUM_MDM166A_CLOCK_BIG: + return elektraStrDup ("big"); + } + + // should be unreachable + return ""; +} +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + + if (strcmp (string, "lcd") == 0) + { + *variable = ELEKTRA_ENUM_MTXORB_TYPE_LCD; + return 1; + } + if (strcmp (string, "lkd") == 0) + { + *variable = ELEKTRA_ENUM_MTXORB_TYPE_LKD; + return 1; + } + if (strcmp (string, "vfd") == 0) + { + *variable = ELEKTRA_ENUM_MTXORB_TYPE_VFD; + return 1; + } + if (strcmp (string, "vkd") == 0) + { + *variable = ELEKTRA_ENUM_MTXORB_TYPE_VKD; + return 1; + } + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType) +{ + switch (value) + { + case ELEKTRA_ENUM_MTXORB_TYPE_LCD: + return elektraStrDup ("lcd"); + case ELEKTRA_ENUM_MTXORB_TYPE_LKD: + return elektraStrDup ("lkd"); + case ELEKTRA_ENUM_MTXORB_TYPE_VFD: + return elektraStrDup ("vfd"); + case ELEKTRA_ENUM_MTXORB_TYPE_VKD: + return elektraStrDup ("vkd"); + } + + // should be unreachable + return ""; +} +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + switch (string[0]) +{ +case 'b': +*variable = ELEKTRA_ENUM_SED1330_CONNECTIONTYPE_BITSHAKER; +return 1; +case 'c': +*variable = ELEKTRA_ENUM_SED1330_CONNECTIONTYPE_CLASSIC; +return 1; +} + + + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype) +{ + switch (value) + { + case ELEKTRA_ENUM_SED1330_CONNECTIONTYPE_CLASSIC: + return elektraStrDup ("classic"); + case ELEKTRA_ENUM_SED1330_CONNECTIONTYPE_BITSHAKER: + return elektraStrDup ("bitshaker"); + } + + // should be unreachable + return ""; +} +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + + if (strcmp (string, "G321D") == 0) + { + *variable = ELEKTRA_ENUM_SED1330_TYPE_G321_D; + return 1; + } + if (strcmp (string, "G121C") == 0) + { + *variable = ELEKTRA_ENUM_SED1330_TYPE_G121_C; + return 1; + } + if (strcmp (string, "G242C") == 0) + { + *variable = ELEKTRA_ENUM_SED1330_TYPE_G242_C; + return 1; + } + if (strcmp (string, "G191D") == 0) + { + *variable = ELEKTRA_ENUM_SED1330_TYPE_G191_D; + return 1; + } + if (strcmp (string, "G2446") == 0) + { + *variable = ELEKTRA_ENUM_SED1330_TYPE_G2446; + return 1; + } + if (strcmp (string, "SP14Q002") == 0) + { + *variable = ELEKTRA_ENUM_SED1330_TYPE_S_P14_Q002; + return 1; + } + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type) +{ + switch (value) + { + case ELEKTRA_ENUM_SED1330_TYPE_G321_D: + return elektraStrDup ("G321D"); + case ELEKTRA_ENUM_SED1330_TYPE_G121_C: + return elektraStrDup ("G121C"); + case ELEKTRA_ENUM_SED1330_TYPE_G242_C: + return elektraStrDup ("G242C"); + case ELEKTRA_ENUM_SED1330_TYPE_G191_D: + return elektraStrDup ("G191D"); + case ELEKTRA_ENUM_SED1330_TYPE_G2446: + return elektraStrDup ("G2446"); + case ELEKTRA_ENUM_SED1330_TYPE_S_P14_Q002: + return elektraStrDup ("SP14Q002"); + } + + // should be unreachable + return ""; +} +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + + if (strcmp (string, "AEDEX") == 0) + { + *variable = ELEKTRA_ENUM_SERIALPOS_TYPE_A_E_D_E_X; + return 1; + } + if (strcmp (string, "CD5220") == 0) + { + *variable = ELEKTRA_ENUM_SERIALPOS_TYPE_C_D5220; + return 1; + } + if (strcmp (string, "Epson") == 0) + { + *variable = ELEKTRA_ENUM_SERIALPOS_TYPE_EPSON; + return 1; + } + if (strcmp (string, "Emax") == 0) + { + *variable = ELEKTRA_ENUM_SERIALPOS_TYPE_EMAX; + return 1; + } + if (strcmp (string, "LogicControls") == 0) + { + *variable = ELEKTRA_ENUM_SERIALPOS_TYPE_LOGIC_CONTROLS; + return 1; + } + if (strcmp (string, "Ultimate") == 0) + { + *variable = ELEKTRA_ENUM_SERIALPOS_TYPE_ULTIMATE; + return 1; + } + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType) +{ + switch (value) + { + case ELEKTRA_ENUM_SERIALPOS_TYPE_A_E_D_E_X: + return elektraStrDup ("AEDEX"); + case ELEKTRA_ENUM_SERIALPOS_TYPE_C_D5220: + return elektraStrDup ("CD5220"); + case ELEKTRA_ENUM_SERIALPOS_TYPE_EPSON: + return elektraStrDup ("Epson"); + case ELEKTRA_ENUM_SERIALPOS_TYPE_EMAX: + return elektraStrDup ("Emax"); + case ELEKTRA_ENUM_SERIALPOS_TYPE_LOGIC_CONTROLS: + return elektraStrDup ("LogicControls"); + case ELEKTRA_ENUM_SERIALPOS_TYPE_ULTIMATE: + return elektraStrDup ("Ultimate"); + } + + // should be unreachable + return ""; +} +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + + if (strcmp (string, "off") == 0) + { + *variable = ELEKTRA_ENUM_SERVER_BACKLIGHT_OFF; + return 1; + } + if (strcmp (string, "on") == 0) + { + *variable = ELEKTRA_ENUM_SERVER_BACKLIGHT_ON; + return 1; + } + if (strcmp (string, "open") == 0) + { + *variable = ELEKTRA_ENUM_SERVER_BACKLIGHT_OPEN; + return 1; + } + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight) +{ + switch (value) + { + case ELEKTRA_ENUM_SERVER_BACKLIGHT_OFF: + return elektraStrDup ("off"); + case ELEKTRA_ENUM_SERVER_BACKLIGHT_ON: + return elektraStrDup ("on"); + case ELEKTRA_ENUM_SERVER_BACKLIGHT_OPEN: + return elektraStrDup ("open"); + } + + // should be unreachable + return ""; +} +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + + if (strcmp (string, "off") == 0) + { + *variable = ELEKTRA_ENUM_SERVER_HEARTBEAT_OFF; + return 1; + } + if (strcmp (string, "on") == 0) + { + *variable = ELEKTRA_ENUM_SERVER_HEARTBEAT_ON; + return 1; + } + if (strcmp (string, "open") == 0) + { + *variable = ELEKTRA_ENUM_SERVER_HEARTBEAT_OPEN; + return 1; + } + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat) +{ + switch (value) + { + case ELEKTRA_ENUM_SERVER_HEARTBEAT_OFF: + return elektraStrDup ("off"); + case ELEKTRA_ENUM_SERVER_HEARTBEAT_ON: + return elektraStrDup ("on"); + case ELEKTRA_ENUM_SERVER_HEARTBEAT_OPEN: + return elektraStrDup ("open"); + } + + // should be unreachable + return ""; +} +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen) +{ + const char * string; + if (!elektraKeyToString (key, &string) || strlen (string) == 0) + { + return 0; + } + + + if (strcmp (string, "off") == 0) + { + *variable = ELEKTRA_ENUM_SERVER_SERVERSCREEN_OFF; + return 1; + } + if (strcmp (string, "on") == 0) + { + *variable = ELEKTRA_ENUM_SERVER_SERVERSCREEN_ON; + return 1; + } + if (strcmp (string, "blank") == 0) + { + *variable = ELEKTRA_ENUM_SERVER_SERVERSCREEN_BLANK; + return 1; + } + + return 0; +} + +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen) +{ + switch (value) + { + case ELEKTRA_ENUM_SERVER_SERVERSCREEN_OFF: + return elektraStrDup ("off"); + case ELEKTRA_ENUM_SERVER_SERVERSCREEN_ON: + return elektraStrDup ("on"); + case ELEKTRA_ENUM_SERVER_SERVERSCREEN_BLANK: + return elektraStrDup ("blank"); + } + + // should be unreachable + return ""; +} + +// ------------------------- +// Enum accessor functions +// ------------------------- + +ELEKTRA_GET_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel) +{ + CFontzPacketModel result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumCFontzPacketModel) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (CFontzPacketModel) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel) +{ + CFontzPacketModel result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumCFontzPacketModel) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (CFontzPacketModel) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel) +{ + char * string = ELEKTRA_TO_STRING (EnumCFontzPacketModel) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel) +{ + char * string = ELEKTRA_TO_STRING (EnumCFontzPacketModel) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} +ELEKTRA_GET_SIGNATURE (CursesColor, EnumCursesColor) +{ + CursesColor result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumCursesColor) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (CursesColor) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (CursesColor, EnumCursesColor) +{ + CursesColor result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumCursesColor) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (CursesColor) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (CursesColor, EnumCursesColor) +{ + char * string = ELEKTRA_TO_STRING (EnumCursesColor) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (CursesColor, EnumCursesColor) +{ + char * string = ELEKTRA_TO_STRING (EnumCursesColor) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} +ELEKTRA_GET_SIGNATURE (CwLnxModel, EnumCwLnxModel) +{ + CwLnxModel result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumCwLnxModel) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (CwLnxModel) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (CwLnxModel, EnumCwLnxModel) +{ + CwLnxModel result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumCwLnxModel) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (CwLnxModel) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (CwLnxModel, EnumCwLnxModel) +{ + char * string = ELEKTRA_TO_STRING (EnumCwLnxModel) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (CwLnxModel, EnumCwLnxModel) +{ + char * string = ELEKTRA_TO_STRING (EnumCwLnxModel) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} +ELEKTRA_GET_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType) +{ + GlcdConnectionType result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumGlcdConnectionType) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (GlcdConnectionType) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType) +{ + GlcdConnectionType result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumGlcdConnectionType) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (GlcdConnectionType) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType) +{ + char * string = ELEKTRA_TO_STRING (EnumGlcdConnectionType) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType) +{ + char * string = ELEKTRA_TO_STRING (EnumGlcdConnectionType) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} +ELEKTRA_GET_SIGNATURE (HD44780Backlight, EnumHD44780Backlight) +{ + HD44780Backlight result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumHD44780Backlight) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (HD44780Backlight) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (HD44780Backlight, EnumHD44780Backlight) +{ + HD44780Backlight result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumHD44780Backlight) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (HD44780Backlight) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (HD44780Backlight, EnumHD44780Backlight) +{ + char * string = ELEKTRA_TO_STRING (EnumHD44780Backlight) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (HD44780Backlight, EnumHD44780Backlight) +{ + char * string = ELEKTRA_TO_STRING (EnumHD44780Backlight) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} +ELEKTRA_GET_SIGNATURE (HD44780Charmap, EnumHD44780Charmap) +{ + HD44780Charmap result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumHD44780Charmap) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (HD44780Charmap) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (HD44780Charmap, EnumHD44780Charmap) +{ + HD44780Charmap result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumHD44780Charmap) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (HD44780Charmap) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (HD44780Charmap, EnumHD44780Charmap) +{ + char * string = ELEKTRA_TO_STRING (EnumHD44780Charmap) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (HD44780Charmap, EnumHD44780Charmap) +{ + char * string = ELEKTRA_TO_STRING (EnumHD44780Charmap) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} +ELEKTRA_GET_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType) +{ + HD44780ConnectionType result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumHD44780ConnectionType) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (HD44780ConnectionType) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType) +{ + HD44780ConnectionType result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumHD44780ConnectionType) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (HD44780ConnectionType) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType) +{ + char * string = ELEKTRA_TO_STRING (EnumHD44780ConnectionType) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType) +{ + char * string = ELEKTRA_TO_STRING (EnumHD44780ConnectionType) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} +ELEKTRA_GET_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model) +{ + ElektraEnumHd44780Model result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumHd44780Model) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumHd44780Model) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model) +{ + ElektraEnumHd44780Model result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumHd44780Model) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumHd44780Model) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model) +{ + char * string = ELEKTRA_TO_STRING (EnumHd44780Model) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model) +{ + char * string = ELEKTRA_TO_STRING (EnumHd44780Model) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} +ELEKTRA_GET_SIGNATURE (IMonCharmap, EnumIMonCharmap) +{ + IMonCharmap result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumIMonCharmap) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (IMonCharmap) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (IMonCharmap, EnumIMonCharmap) +{ + IMonCharmap result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumIMonCharmap) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (IMonCharmap) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (IMonCharmap, EnumIMonCharmap) +{ + char * string = ELEKTRA_TO_STRING (EnumIMonCharmap) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (IMonCharmap, EnumIMonCharmap) +{ + char * string = ELEKTRA_TO_STRING (EnumIMonCharmap) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} +ELEKTRA_GET_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode) +{ + IMonLCDDiscMode result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumIMonLCDDiscMode) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (IMonLCDDiscMode) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode) +{ + IMonLCDDiscMode result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumIMonLCDDiscMode) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (IMonLCDDiscMode) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode) +{ + char * string = ELEKTRA_TO_STRING (EnumIMonLCDDiscMode) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode) +{ + char * string = ELEKTRA_TO_STRING (EnumIMonLCDDiscMode) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} +ELEKTRA_GET_SIGNATURE (Lcdm001Keys, EnumLcdm001Keys) +{ + Lcdm001Keys result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumLcdm001Keys) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (Lcdm001Keys) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (Lcdm001Keys, EnumLcdm001Keys) +{ + Lcdm001Keys result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumLcdm001Keys) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (Lcdm001Keys) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (Lcdm001Keys, EnumLcdm001Keys) +{ + char * string = ELEKTRA_TO_STRING (EnumLcdm001Keys) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (Lcdm001Keys, EnumLcdm001Keys) +{ + char * string = ELEKTRA_TO_STRING (EnumLcdm001Keys) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} +ELEKTRA_GET_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock) +{ + ElektraEnumMdm166aClock result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumMdm166aClock) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumMdm166aClock) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock) +{ + ElektraEnumMdm166aClock result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumMdm166aClock) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumMdm166aClock) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock) +{ + char * string = ELEKTRA_TO_STRING (EnumMdm166aClock) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock) +{ + char * string = ELEKTRA_TO_STRING (EnumMdm166aClock) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} +ELEKTRA_GET_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType) +{ + ElektraEnumMtxorbType result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumMtxorbType) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumMtxorbType) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType) +{ + ElektraEnumMtxorbType result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumMtxorbType) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumMtxorbType) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType) +{ + char * string = ELEKTRA_TO_STRING (EnumMtxorbType) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType) +{ + char * string = ELEKTRA_TO_STRING (EnumMtxorbType) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} +ELEKTRA_GET_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype) +{ + ElektraEnumSed1330Connectiontype result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumSed1330Connectiontype) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumSed1330Connectiontype) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype) +{ + ElektraEnumSed1330Connectiontype result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumSed1330Connectiontype) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumSed1330Connectiontype) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype) +{ + char * string = ELEKTRA_TO_STRING (EnumSed1330Connectiontype) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype) +{ + char * string = ELEKTRA_TO_STRING (EnumSed1330Connectiontype) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} +ELEKTRA_GET_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type) +{ + ElektraEnumSed1330Type result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumSed1330Type) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumSed1330Type) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type) +{ + ElektraEnumSed1330Type result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumSed1330Type) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumSed1330Type) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type) +{ + char * string = ELEKTRA_TO_STRING (EnumSed1330Type) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type) +{ + char * string = ELEKTRA_TO_STRING (EnumSed1330Type) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} +ELEKTRA_GET_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType) +{ + ElektraEnumSerialposType result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumSerialposType) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumSerialposType) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType) +{ + ElektraEnumSerialposType result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumSerialposType) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumSerialposType) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType) +{ + char * string = ELEKTRA_TO_STRING (EnumSerialposType) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType) +{ + char * string = ELEKTRA_TO_STRING (EnumSerialposType) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} +ELEKTRA_GET_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight) +{ + ElektraEnumServerBacklight result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumServerBacklight) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumServerBacklight) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight) +{ + ElektraEnumServerBacklight result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumServerBacklight) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumServerBacklight) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight) +{ + char * string = ELEKTRA_TO_STRING (EnumServerBacklight) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight) +{ + char * string = ELEKTRA_TO_STRING (EnumServerBacklight) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} +ELEKTRA_GET_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat) +{ + ElektraEnumServerHeartbeat result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumServerHeartbeat) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumServerHeartbeat) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat) +{ + ElektraEnumServerHeartbeat result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumServerHeartbeat) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumServerHeartbeat) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat) +{ + char * string = ELEKTRA_TO_STRING (EnumServerHeartbeat) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat) +{ + char * string = ELEKTRA_TO_STRING (EnumServerHeartbeat) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} +ELEKTRA_GET_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen) +{ + ElektraEnumServerServerscreen result; + const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumServerServerscreen) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumServerServerscreen) 0; + } + return result; +} + +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen) +{ + ElektraEnumServerServerscreen result; + const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); + if (!ELEKTRA_KEY_TO (EnumServerServerscreen) (key, &result)) + { + elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); + return (ElektraEnumServerServerscreen) 0; + } + return result; +} + +ELEKTRA_SET_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen) +{ + char * string = ELEKTRA_TO_STRING (EnumServerServerscreen) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen) +{ + char * string = ELEKTRA_TO_STRING (EnumServerServerscreen) (value); + if (string == 0) + { + *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); + return; + } + elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); + elektraFree (string); +} + + +// clang-format off + +// clang-format on + +// ------------------------- +// Struct accessor functions +// ------------------------- + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (BayradDriverConfig, StructBayradDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 7 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "device", 7); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 7); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 7); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (BayradDriverConfig, StructBayradDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 7 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "device", 7); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 7); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 7); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const BayradDriverConfig *, StructBayradDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 7 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "device", 7); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 7); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 7); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const BayradDriverConfig *, StructBayradDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 7 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "device", 7); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 7); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 7); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (CFontzDriverConfig, StructCFontzDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "newfirmware", 14); + + + result->newfirmware = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 14); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "usb", 14); + + + result->usb = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (CFontzDriverConfig, StructCFontzDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "newfirmware", 14); + + + result->newfirmware = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 14); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "usb", 14); + + + result->usb = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const CFontzDriverConfig *, StructCFontzDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "newfirmware", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->newfirmware, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "usb", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->usb, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const CFontzDriverConfig *, StructCFontzDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "newfirmware", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->newfirmware, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "usb", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->usb, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (CFontzPacketDriverConfig, StructCFontzPacketDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "model", 14); + + + result->model = ELEKTRA_GET (EnumCFontzPacketModel) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "oldfirmware", 14); + + + result->oldfirmware = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 14); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "usb", 14); + + + result->usb = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (CFontzPacketDriverConfig, StructCFontzPacketDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "model", 14); + + + result->model = ELEKTRA_GET (EnumCFontzPacketModel) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "oldfirmware", 14); + + + result->oldfirmware = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 14); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "usb", 14); + + + result->usb = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const CFontzPacketDriverConfig *, StructCFontzPacketDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "model", 14); + + ELEKTRA_SET (EnumCFontzPacketModel) (elektra, field, value->model, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "oldfirmware", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->oldfirmware, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "usb", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->usb, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const CFontzPacketDriverConfig *, StructCFontzPacketDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "model", 14); + + ELEKTRA_SET (EnumCFontzPacketModel) (elektra, field, value->model, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "oldfirmware", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->oldfirmware, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "usb", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->usb, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (CursesDriverConfig, StructCursesDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 11 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "background", 11); + + + result->background = ELEKTRA_GET (EnumCursesColor) (elektra, field); + + strncpy (&field[nameLen], "backlight", 11); + + + result->backlight = ELEKTRA_GET (EnumCursesColor) (elektra, field); + + strncpy (&field[nameLen], "drawborder", 11); + + + result->drawborder = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "file", 11); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "foreground", 11); + + + result->foreground = ELEKTRA_GET (EnumCursesColor) (elektra, field); + + strncpy (&field[nameLen], "size", 11); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "topleftx", 11); + + + result->topleftx = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "toplefty", 11); + + + result->toplefty = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "useacs", 11); + + + result->useacs = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (CursesDriverConfig, StructCursesDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 11 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "background", 11); + + + result->background = ELEKTRA_GET (EnumCursesColor) (elektra, field); + + strncpy (&field[nameLen], "backlight", 11); + + + result->backlight = ELEKTRA_GET (EnumCursesColor) (elektra, field); + + strncpy (&field[nameLen], "drawborder", 11); + + + result->drawborder = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "file", 11); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "foreground", 11); + + + result->foreground = ELEKTRA_GET (EnumCursesColor) (elektra, field); + + strncpy (&field[nameLen], "size", 11); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "topleftx", 11); + + + result->topleftx = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "toplefty", 11); + + + result->toplefty = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "useacs", 11); + + + result->useacs = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const CursesDriverConfig *, StructCursesDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 11 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "background", 11); + + ELEKTRA_SET (EnumCursesColor) (elektra, field, value->background, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "backlight", 11); + + ELEKTRA_SET (EnumCursesColor) (elektra, field, value->backlight, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "drawborder", 11); + + ELEKTRA_SET (Boolean) (elektra, field, value->drawborder, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 11); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "foreground", 11); + + ELEKTRA_SET (EnumCursesColor) (elektra, field, value->foreground, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 11); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "topleftx", 11); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->topleftx, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "toplefty", 11); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->toplefty, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "useacs", 11); + + ELEKTRA_SET (Boolean) (elektra, field, value->useacs, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const CursesDriverConfig *, StructCursesDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 11 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "background", 11); + + ELEKTRA_SET (EnumCursesColor) (elektra, field, value->background, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "backlight", 11); + + ELEKTRA_SET (EnumCursesColor) (elektra, field, value->backlight, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "drawborder", 11); + + ELEKTRA_SET (Boolean) (elektra, field, value->drawborder, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 11); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "foreground", 11); + + ELEKTRA_SET (EnumCursesColor) (elektra, field, value->foreground, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 11); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "topleftx", 11); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->topleftx, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "toplefty", 11); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->toplefty, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "useacs", 11); + + ELEKTRA_SET (Boolean) (elektra, field, value->useacs, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (CwLnxDriverConfig, StructCwLnxDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 17 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "device", 17); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 17); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_a", 17); + + + result->keymapA = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_b", 17); + + + result->keymapB = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_c", 17); + + + result->keymapC = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_d", 17); + + + result->keymapD = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_e", 17); + + + result->keymapE = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_f", 17); + + + result->keymapF = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keypad", 17); + + + result->keypad = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "keypad_test_mode", 17); + + + result->keypadTestMode = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "model", 17); + + + result->model = ELEKTRA_GET (EnumCwLnxModel) (elektra, field); + + strncpy (&field[nameLen], "size", 17); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 17); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (CwLnxDriverConfig, StructCwLnxDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 17 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "device", 17); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 17); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_a", 17); + + + result->keymapA = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_b", 17); + + + result->keymapB = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_c", 17); + + + result->keymapC = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_d", 17); + + + result->keymapD = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_e", 17); + + + result->keymapE = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_f", 17); + + + result->keymapF = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keypad", 17); + + + result->keypad = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "keypad_test_mode", 17); + + + result->keypadTestMode = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "model", 17); + + + result->model = ELEKTRA_GET (EnumCwLnxModel) (elektra, field); + + strncpy (&field[nameLen], "size", 17); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 17); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const CwLnxDriverConfig *, StructCwLnxDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 17 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "device", 17); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 17); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_a", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymapA, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_b", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymapB, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_c", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymapC, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_d", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymapD, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_e", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymapE, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_f", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymapF, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keypad", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->keypad, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keypad_test_mode", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->keypadTestMode, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "model", 17); + + ELEKTRA_SET (EnumCwLnxModel) (elektra, field, value->model, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 17); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const CwLnxDriverConfig *, StructCwLnxDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 17 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "device", 17); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 17); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_a", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymapA, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_b", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymapB, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_c", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymapC, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_d", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymapD, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_e", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymapE, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_f", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymapF, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keypad", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->keypad, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keypad_test_mode", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->keypadTestMode, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "model", 17); + + ELEKTRA_SET (EnumCwLnxModel) (elektra, field, value->model, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 17); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Ea65DriverConfig, StructEa65DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Ea65DriverConfig, StructEa65DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const Ea65DriverConfig *, StructEa65DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Ea65DriverConfig *, StructEa65DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (EyeboxOneDriverConfig, StructEyeboxOneDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 17 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 17); + + + result->backlight = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "brightness", 17); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 17); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "cursor", 17); + + + result->cursor = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "device", 17); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "downkey", 17); + + + result->downkey = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "escapekey", 17); + + + result->escapekey = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 17); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keypad_test_mode", 17); + + + result->keypadTestMode = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "leftkey", 17); + + + result->leftkey = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 17); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 17); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "rightkey", 17); + + + result->rightkey = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "size", 17); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 17); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "upkey", 17); + + + result->upkey = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (EyeboxOneDriverConfig, StructEyeboxOneDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 17 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 17); + + + result->backlight = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "brightness", 17); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 17); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "cursor", 17); + + + result->cursor = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "device", 17); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "downkey", 17); + + + result->downkey = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "escapekey", 17); + + + result->escapekey = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 17); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keypad_test_mode", 17); + + + result->keypadTestMode = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "leftkey", 17); + + + result->leftkey = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 17); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 17); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "rightkey", 17); + + + result->rightkey = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "size", 17); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 17); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "upkey", 17); + + + result->upkey = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const EyeboxOneDriverConfig *, StructEyeboxOneDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 17 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "cursor", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->cursor, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 17); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "downkey", 17); + + ELEKTRA_SET (String) (elektra, field, value->downkey, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "escapekey", 17); + + ELEKTRA_SET (String) (elektra, field, value->escapekey, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 17); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keypad_test_mode", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->keypadTestMode, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "leftkey", 17); + + ELEKTRA_SET (String) (elektra, field, value->leftkey, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "rightkey", 17); + + ELEKTRA_SET (String) (elektra, field, value->rightkey, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 17); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "upkey", 17); + + ELEKTRA_SET (String) (elektra, field, value->upkey, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const EyeboxOneDriverConfig *, StructEyeboxOneDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 17 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "cursor", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->cursor, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 17); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "downkey", 17); + + ELEKTRA_SET (String) (elektra, field, value->downkey, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "escapekey", 17); + + ELEKTRA_SET (String) (elektra, field, value->escapekey, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 17); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keypad_test_mode", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->keypadTestMode, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "leftkey", 17); + + ELEKTRA_SET (String) (elektra, field, value->leftkey, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "rightkey", 17); + + ELEKTRA_SET (String) (elektra, field, value->rightkey, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 17); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "upkey", 17); + + ELEKTRA_SET (String) (elektra, field, value->upkey, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (FutabaDriverConfig, StructFutabaDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 5 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "file", 5); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (FutabaDriverConfig, StructFutabaDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 5 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "file", 5); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const FutabaDriverConfig *, StructFutabaDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 5 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "file", 5); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const FutabaDriverConfig *, StructFutabaDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 5 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "file", 5); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (G15DriverConfig, StructG15DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (G15DriverConfig, StructG15DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const G15DriverConfig *, StructG15DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const G15DriverConfig *, StructG15DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (GlcdDriverConfig, StructGlcdDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 22 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "bidirectional", 22); + + + result->bidirectional = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "brightness", 22); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "cellsize", 22); + + + result->cellsize = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "connectiontype", 22); + + + result->connectiontype = ELEKTRA_GET (EnumGlcdConnectionType) (elektra, field); + + strncpy (&field[nameLen], "contrast", 22); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "delaybus", 22); + + + result->delaybus = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "file", 22); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "fonthasicons", 22); + + + result->fonthasicons = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "keymap_a", 22); + + + result->keymapA = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_b", 22); + + + result->keymapB = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_c", 22); + + + result->keymapC = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_d", 22); + + + result->keymapD = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_e", 22); + + + result->keymapE = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_f", 22); + + + result->keymapF = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keyrepeatdelay", 22); + + + result->keyrepeatdelay = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "keyrepeatinterval", 22); + + + result->keyrepeatinterval = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "normal_font", 22); + + + result->normalFont = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 22); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "picolcdgfx_inverted", 22); + + + result->picolcdgfxInverted = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "picolcdgfx_keytimeout", 22); + + + result->picolcdgfxKeytimeout = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "port", 22); + + + result->port = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 22); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "serdisp_device", 22); + + + result->serdispDevice = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "serdisp_name", 22); + + + result->serdispName = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "serdisp_options", 22); + + + result->serdispOptions = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "size", 22); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "useft2", 22); + + + result->useft2 = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "x11_backlightcolor", 22); + + + result->x11Backlightcolor = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "x11_border", 22); + + + result->x11Border = ELEKTRA_GET (UnsignedLong) (elektra, field); + + strncpy (&field[nameLen], "x11_inverted", 22); + + + result->x11Inverted = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "x11_pixelcolor", 22); + + + result->x11Pixelcolor = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "x11_pixelsize", 22); + + + result->x11Pixelsize = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (GlcdDriverConfig, StructGlcdDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 22 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "bidirectional", 22); + + + result->bidirectional = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "brightness", 22); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "cellsize", 22); + + + result->cellsize = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "connectiontype", 22); + + + result->connectiontype = ELEKTRA_GET (EnumGlcdConnectionType) (elektra, field); + + strncpy (&field[nameLen], "contrast", 22); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "delaybus", 22); + + + result->delaybus = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "file", 22); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "fonthasicons", 22); + + + result->fonthasicons = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "keymap_a", 22); + + + result->keymapA = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_b", 22); + + + result->keymapB = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_c", 22); + + + result->keymapC = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_d", 22); + + + result->keymapD = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_e", 22); + + + result->keymapE = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_f", 22); + + + result->keymapF = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keyrepeatdelay", 22); + + + result->keyrepeatdelay = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "keyrepeatinterval", 22); + + + result->keyrepeatinterval = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "normal_font", 22); + + + result->normalFont = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 22); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "picolcdgfx_inverted", 22); + + + result->picolcdgfxInverted = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "picolcdgfx_keytimeout", 22); + + + result->picolcdgfxKeytimeout = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "port", 22); + + + result->port = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 22); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "serdisp_device", 22); + + + result->serdispDevice = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "serdisp_name", 22); + + + result->serdispName = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "serdisp_options", 22); + + + result->serdispOptions = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "size", 22); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "useft2", 22); + + + result->useft2 = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "x11_backlightcolor", 22); + + + result->x11Backlightcolor = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "x11_border", 22); + + + result->x11Border = ELEKTRA_GET (UnsignedLong) (elektra, field); + + strncpy (&field[nameLen], "x11_inverted", 22); + + + result->x11Inverted = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "x11_pixelcolor", 22); + + + result->x11Pixelcolor = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "x11_pixelsize", 22); + + + result->x11Pixelsize = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const GlcdDriverConfig *, StructGlcdDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 22 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "bidirectional", 22); + + ELEKTRA_SET (Boolean) (elektra, field, value->bidirectional, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 22); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "cellsize", 22); + + ELEKTRA_SET (String) (elektra, field, value->cellsize, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "connectiontype", 22); + + ELEKTRA_SET (EnumGlcdConnectionType) (elektra, field, value->connectiontype, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 22); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "delaybus", 22); + + ELEKTRA_SET (Boolean) (elektra, field, value->delaybus, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 22); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "fonthasicons", 22); + + ELEKTRA_SET (Boolean) (elektra, field, value->fonthasicons, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_a", 22); + + ELEKTRA_SET (String) (elektra, field, value->keymapA, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_b", 22); + + ELEKTRA_SET (String) (elektra, field, value->keymapB, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_c", 22); + + ELEKTRA_SET (String) (elektra, field, value->keymapC, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_d", 22); + + ELEKTRA_SET (String) (elektra, field, value->keymapD, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_e", 22); + + ELEKTRA_SET (String) (elektra, field, value->keymapE, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_f", 22); + + ELEKTRA_SET (String) (elektra, field, value->keymapF, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keyrepeatdelay", 22); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->keyrepeatdelay, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keyrepeatinterval", 22); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->keyrepeatinterval, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "normal_font", 22); + + ELEKTRA_SET (String) (elektra, field, value->normalFont, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 22); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "picolcdgfx_inverted", 22); + + ELEKTRA_SET (Boolean) (elektra, field, value->picolcdgfxInverted, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "picolcdgfx_keytimeout", 22); + + ELEKTRA_SET (String) (elektra, field, value->picolcdgfxKeytimeout, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "port", 22); + + ELEKTRA_SET (String) (elektra, field, value->port, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 22); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "serdisp_device", 22); + + ELEKTRA_SET (String) (elektra, field, value->serdispDevice, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "serdisp_name", 22); + + ELEKTRA_SET (String) (elektra, field, value->serdispName, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "serdisp_options", 22); + + ELEKTRA_SET (String) (elektra, field, value->serdispOptions, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 22); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "useft2", 22); + + ELEKTRA_SET (Boolean) (elektra, field, value->useft2, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "x11_backlightcolor", 22); + + ELEKTRA_SET (String) (elektra, field, value->x11Backlightcolor, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "x11_border", 22); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->x11Border, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "x11_inverted", 22); + + ELEKTRA_SET (Boolean) (elektra, field, value->x11Inverted, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "x11_pixelcolor", 22); + + ELEKTRA_SET (String) (elektra, field, value->x11Pixelcolor, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "x11_pixelsize", 22); + + ELEKTRA_SET (String) (elektra, field, value->x11Pixelsize, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const GlcdDriverConfig *, StructGlcdDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 22 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "bidirectional", 22); + + ELEKTRA_SET (Boolean) (elektra, field, value->bidirectional, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 22); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "cellsize", 22); + + ELEKTRA_SET (String) (elektra, field, value->cellsize, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "connectiontype", 22); + + ELEKTRA_SET (EnumGlcdConnectionType) (elektra, field, value->connectiontype, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 22); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "delaybus", 22); + + ELEKTRA_SET (Boolean) (elektra, field, value->delaybus, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 22); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "fonthasicons", 22); + + ELEKTRA_SET (Boolean) (elektra, field, value->fonthasicons, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_a", 22); + + ELEKTRA_SET (String) (elektra, field, value->keymapA, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_b", 22); + + ELEKTRA_SET (String) (elektra, field, value->keymapB, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_c", 22); + + ELEKTRA_SET (String) (elektra, field, value->keymapC, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_d", 22); + + ELEKTRA_SET (String) (elektra, field, value->keymapD, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_e", 22); + + ELEKTRA_SET (String) (elektra, field, value->keymapE, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_f", 22); + + ELEKTRA_SET (String) (elektra, field, value->keymapF, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keyrepeatdelay", 22); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->keyrepeatdelay, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keyrepeatinterval", 22); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->keyrepeatinterval, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "normal_font", 22); + + ELEKTRA_SET (String) (elektra, field, value->normalFont, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 22); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "picolcdgfx_inverted", 22); + + ELEKTRA_SET (Boolean) (elektra, field, value->picolcdgfxInverted, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "picolcdgfx_keytimeout", 22); + + ELEKTRA_SET (String) (elektra, field, value->picolcdgfxKeytimeout, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "port", 22); + + ELEKTRA_SET (String) (elektra, field, value->port, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 22); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "serdisp_device", 22); + + ELEKTRA_SET (String) (elektra, field, value->serdispDevice, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "serdisp_name", 22); + + ELEKTRA_SET (String) (elektra, field, value->serdispName, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "serdisp_options", 22); + + ELEKTRA_SET (String) (elektra, field, value->serdispOptions, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 22); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "useft2", 22); + + ELEKTRA_SET (Boolean) (elektra, field, value->useft2, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "x11_backlightcolor", 22); + + ELEKTRA_SET (String) (elektra, field, value->x11Backlightcolor, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "x11_border", 22); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->x11Border, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "x11_inverted", 22); + + ELEKTRA_SET (Boolean) (elektra, field, value->x11Inverted, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "x11_pixelcolor", 22); + + ELEKTRA_SET (String) (elektra, field, value->x11Pixelcolor, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "x11_pixelsize", 22); + + ELEKTRA_SET (String) (elektra, field, value->x11Pixelsize, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (GlcdlibDriverConfig, StructGlcdlibDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 16 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "CharEncoding", 16); + + + result->CharEncoding = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "backlight", 16); + + + result->backlight = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "brightness", 16); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 16); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "driver", 16); + + + result->driver = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 16); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "fontfile", 16); + + + result->fontfile = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "invert", 16); + + + result->invert = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "minfontfacesize", 16); + + + result->minfontfacesize = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 16); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "pixelshiftx", 16); + + + result->pixelshiftx = ELEKTRA_GET (Short) (elektra, field); + + strncpy (&field[nameLen], "pixelshifty", 16); + + + result->pixelshifty = ELEKTRA_GET (Short) (elektra, field); + + strncpy (&field[nameLen], "reboot", 16); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "showbigborder", 16); + + + result->showbigborder = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "showdebugframe", 16); + + + result->showdebugframe = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "showthinborder", 16); + + + result->showthinborder = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "textresolution", 16); + + + result->textresolution = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "upsidedown", 16); + + + result->upsidedown = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "useft2", 16); + + + result->useft2 = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (GlcdlibDriverConfig, StructGlcdlibDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 16 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "CharEncoding", 16); + + + result->CharEncoding = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "backlight", 16); + + + result->backlight = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "brightness", 16); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 16); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "driver", 16); + + + result->driver = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 16); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "fontfile", 16); + + + result->fontfile = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "invert", 16); + + + result->invert = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "minfontfacesize", 16); + + + result->minfontfacesize = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 16); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "pixelshiftx", 16); + + + result->pixelshiftx = ELEKTRA_GET (Short) (elektra, field); + + strncpy (&field[nameLen], "pixelshifty", 16); + + + result->pixelshifty = ELEKTRA_GET (Short) (elektra, field); + + strncpy (&field[nameLen], "reboot", 16); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "showbigborder", 16); + + + result->showbigborder = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "showdebugframe", 16); + + + result->showdebugframe = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "showthinborder", 16); + + + result->showthinborder = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "textresolution", 16); + + + result->textresolution = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "upsidedown", 16); + + + result->upsidedown = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "useft2", 16); + + + result->useft2 = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const GlcdlibDriverConfig *, StructGlcdlibDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 16 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "CharEncoding", 16); + + ELEKTRA_SET (String) (elektra, field, value->CharEncoding, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "backlight", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 16); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 16); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "driver", 16); + + ELEKTRA_SET (String) (elektra, field, value->driver, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 16); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "fontfile", 16); + + ELEKTRA_SET (String) (elektra, field, value->fontfile, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "invert", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->invert, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "minfontfacesize", 16); + + ELEKTRA_SET (String) (elektra, field, value->minfontfacesize, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 16); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "pixelshiftx", 16); + + ELEKTRA_SET (Short) (elektra, field, value->pixelshiftx, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "pixelshifty", 16); + + ELEKTRA_SET (Short) (elektra, field, value->pixelshifty, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "showbigborder", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->showbigborder, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "showdebugframe", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->showdebugframe, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "showthinborder", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->showthinborder, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "textresolution", 16); + + ELEKTRA_SET (String) (elektra, field, value->textresolution, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "upsidedown", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->upsidedown, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "useft2", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->useft2, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const GlcdlibDriverConfig *, StructGlcdlibDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 16 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "CharEncoding", 16); + + ELEKTRA_SET (String) (elektra, field, value->CharEncoding, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "backlight", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 16); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 16); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "driver", 16); + + ELEKTRA_SET (String) (elektra, field, value->driver, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 16); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "fontfile", 16); + + ELEKTRA_SET (String) (elektra, field, value->fontfile, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "invert", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->invert, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "minfontfacesize", 16); + + ELEKTRA_SET (String) (elektra, field, value->minfontfacesize, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 16); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "pixelshiftx", 16); + + ELEKTRA_SET (Short) (elektra, field, value->pixelshiftx, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "pixelshifty", 16); + + ELEKTRA_SET (Short) (elektra, field, value->pixelshifty, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "showbigborder", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->showbigborder, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "showdebugframe", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->showdebugframe, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "showthinborder", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->showthinborder, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "textresolution", 16); + + ELEKTRA_SET (String) (elektra, field, value->textresolution, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "upsidedown", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->upsidedown, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "useft2", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->useft2, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (GlkDriverConfig, StructGlkDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 9 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "contrast", 9); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 9); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 9); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 9); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (GlkDriverConfig, StructGlkDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 9 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "contrast", 9); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 9); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 9); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 9); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const GlkDriverConfig *, StructGlkDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 9 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "contrast", 9); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 9); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 9); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 9); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const GlkDriverConfig *, StructGlkDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 9 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "contrast", 9); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 9); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 9); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 9); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Hd44780DriverConfig, StructHd44780DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 17 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 17); + + + result->backlight = ELEKTRA_GET (EnumHD44780Backlight) (elektra, field); + + strncpy (&field[nameLen], "backlightcmdoff", 17); + + + result->backlightcmdoff = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "backlightcmdon", 17); + + + result->backlightcmdon = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "brightness", 17); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "charmap", 17); + + + result->charmap = ELEKTRA_GET (EnumHD44780Charmap) (elektra, field); + + strncpy (&field[nameLen], "connectiontype", 17); + + + result->connectiontype = ELEKTRA_GET (EnumHD44780ConnectionType) (elektra, field); + + strncpy (&field[nameLen], "contrast", 17); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "delaybus", 17); + + + result->delaybus = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "delaymult", 17); + + + result->delaymult = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 17); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "extendedmode", 17); + + + result->extendedmode = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "file", 17); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "fontbank", 17); + + + result->fontbank = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "keepalivedisplay", 17); + + + result->keepalivedisplay = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "keymatrix_4_1", 17); + + + result->keymatrix41 = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymatrix_4_2", 17); + + + result->keymatrix42 = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymatrix_4_3", 17); + + + result->keymatrix43 = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymatrix_4_4", 17); + + + result->keymatrix44 = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keypad", 17); + + + result->keypad = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "lastline", 17); + + + result->lastline = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "lineaddress", 17); + + + result->lineaddress = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "model", 17); + + + result->model = ELEKTRA_GET (EnumHd44780Model) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 17); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "outputport", 17); + + + result->outputport = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "port", 17); + + + result->port = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 17); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "refreshdisplay", 17); + + + result->refreshdisplay = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "size", 17); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 17); + + + result->speed = ELEKTRA_GET (UnsignedLong) (elektra, field); + + strncpy (&field[nameLen], "vspan", 17); + + + result->vspan = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Hd44780DriverConfig, StructHd44780DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 17 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 17); + + + result->backlight = ELEKTRA_GET (EnumHD44780Backlight) (elektra, field); + + strncpy (&field[nameLen], "backlightcmdoff", 17); + + + result->backlightcmdoff = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "backlightcmdon", 17); + + + result->backlightcmdon = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "brightness", 17); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "charmap", 17); + + + result->charmap = ELEKTRA_GET (EnumHD44780Charmap) (elektra, field); + + strncpy (&field[nameLen], "connectiontype", 17); + + + result->connectiontype = ELEKTRA_GET (EnumHD44780ConnectionType) (elektra, field); + + strncpy (&field[nameLen], "contrast", 17); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "delaybus", 17); + + + result->delaybus = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "delaymult", 17); + + + result->delaymult = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 17); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "extendedmode", 17); + + + result->extendedmode = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "file", 17); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "fontbank", 17); + + + result->fontbank = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "keepalivedisplay", 17); + + + result->keepalivedisplay = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "keymatrix_4_1", 17); + + + result->keymatrix41 = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymatrix_4_2", 17); + + + result->keymatrix42 = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymatrix_4_3", 17); + + + result->keymatrix43 = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymatrix_4_4", 17); + + + result->keymatrix44 = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keypad", 17); + + + result->keypad = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "lastline", 17); + + + result->lastline = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "lineaddress", 17); + + + result->lineaddress = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "model", 17); + + + result->model = ELEKTRA_GET (EnumHd44780Model) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 17); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "outputport", 17); + + + result->outputport = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "port", 17); + + + result->port = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 17); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "refreshdisplay", 17); + + + result->refreshdisplay = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "size", 17); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 17); + + + result->speed = ELEKTRA_GET (UnsignedLong) (elektra, field); + + strncpy (&field[nameLen], "vspan", 17); + + + result->vspan = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const Hd44780DriverConfig *, StructHd44780DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 17 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 17); + + ELEKTRA_SET (EnumHD44780Backlight) (elektra, field, value->backlight, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "backlightcmdoff", 17); + + ELEKTRA_SET (String) (elektra, field, value->backlightcmdoff, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "backlightcmdon", 17); + + ELEKTRA_SET (String) (elektra, field, value->backlightcmdon, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "charmap", 17); + + ELEKTRA_SET (EnumHD44780Charmap) (elektra, field, value->charmap, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "connectiontype", 17); + + ELEKTRA_SET (EnumHD44780ConnectionType) (elektra, field, value->connectiontype, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "delaybus", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->delaybus, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "delaymult", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->delaymult, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 17); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "extendedmode", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->extendedmode, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 17); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "fontbank", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->fontbank, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keepalivedisplay", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->keepalivedisplay, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymatrix_4_1", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymatrix41, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymatrix_4_2", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymatrix42, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymatrix_4_3", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymatrix43, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymatrix_4_4", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymatrix44, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keypad", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->keypad, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lastline", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->lastline, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lineaddress", 17); + + ELEKTRA_SET (String) (elektra, field, value->lineaddress, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "model", 17); + + ELEKTRA_SET (EnumHd44780Model) (elektra, field, value->model, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "outputport", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->outputport, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "port", 17); + + ELEKTRA_SET (String) (elektra, field, value->port, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "refreshdisplay", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->refreshdisplay, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 17); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 17); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "vspan", 17); + + ELEKTRA_SET (String) (elektra, field, value->vspan, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Hd44780DriverConfig *, StructHd44780DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 17 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 17); + + ELEKTRA_SET (EnumHD44780Backlight) (elektra, field, value->backlight, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "backlightcmdoff", 17); + + ELEKTRA_SET (String) (elektra, field, value->backlightcmdoff, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "backlightcmdon", 17); + + ELEKTRA_SET (String) (elektra, field, value->backlightcmdon, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "charmap", 17); + + ELEKTRA_SET (EnumHD44780Charmap) (elektra, field, value->charmap, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "connectiontype", 17); + + ELEKTRA_SET (EnumHD44780ConnectionType) (elektra, field, value->connectiontype, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "delaybus", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->delaybus, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "delaymult", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->delaymult, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 17); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "extendedmode", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->extendedmode, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 17); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "fontbank", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->fontbank, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keepalivedisplay", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->keepalivedisplay, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymatrix_4_1", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymatrix41, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymatrix_4_2", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymatrix42, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymatrix_4_3", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymatrix43, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymatrix_4_4", 17); + + ELEKTRA_SET (String) (elektra, field, value->keymatrix44, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keypad", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->keypad, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lastline", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->lastline, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lineaddress", 17); + + ELEKTRA_SET (String) (elektra, field, value->lineaddress, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "model", 17); + + ELEKTRA_SET (EnumHd44780Model) (elektra, field, value->model, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "outputport", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->outputport, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "port", 17); + + ELEKTRA_SET (String) (elektra, field, value->port, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "refreshdisplay", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->refreshdisplay, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 17); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 17); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "vspan", 17); + + ELEKTRA_SET (String) (elektra, field, value->vspan, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Icp_a106DriverConfig, StructIcp_a106DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Icp_a106DriverConfig, StructIcp_a106DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const Icp_a106DriverConfig *, StructIcp_a106DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Icp_a106DriverConfig *, StructIcp_a106DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (ImonDriverConfig, StructImonDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "charmap", 14); + + + result->charmap = ELEKTRA_GET (EnumIMonCharmap) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (ImonDriverConfig, StructImonDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "charmap", 14); + + + result->charmap = ELEKTRA_GET (EnumIMonCharmap) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const ImonDriverConfig *, StructImonDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "charmap", 14); + + ELEKTRA_SET (EnumIMonCharmap) (elektra, field, value->charmap, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const ImonDriverConfig *, StructImonDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "charmap", 14); + + ELEKTRA_SET (EnumIMonCharmap) (elektra, field, value->charmap, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (ImonlcdDriverConfig, StructImonlcdDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 14); + + + result->backlight = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "discmode", 14); + + + result->discmode = ELEKTRA_GET (EnumIMonLCDDiscMode) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "onexit", 14); + + + result->onexit = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "protocol", 14); + + + result->protocol = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (ImonlcdDriverConfig, StructImonlcdDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 14); + + + result->backlight = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "discmode", 14); + + + result->discmode = ELEKTRA_GET (EnumIMonLCDDiscMode) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "onexit", 14); + + + result->onexit = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "protocol", 14); + + + result->protocol = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const ImonlcdDriverConfig *, StructImonlcdDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "discmode", 14); + + ELEKTRA_SET (EnumIMonLCDDiscMode) (elektra, field, value->discmode, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "onexit", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->onexit, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "protocol", 14); + + ELEKTRA_SET (String) (elektra, field, value->protocol, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const ImonlcdDriverConfig *, StructImonlcdDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "discmode", 14); + + ELEKTRA_SET (EnumIMonLCDDiscMode) (elektra, field, value->discmode, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "onexit", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->onexit, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "protocol", 14); + + ELEKTRA_SET (String) (elektra, field, value->protocol, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (IOWarriorDriverConfig, StructIOWarriorDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "extendedmode", 14); + + + result->extendedmode = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "lastline", 14); + + + result->lastline = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "serialnumber", 14); + + + result->serialnumber = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (IOWarriorDriverConfig, StructIOWarriorDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "extendedmode", 14); + + + result->extendedmode = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "lastline", 14); + + + result->lastline = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "serialnumber", 14); + + + result->serialnumber = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const IOWarriorDriverConfig *, StructIOWarriorDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "extendedmode", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->extendedmode, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lastline", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->lastline, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "serialnumber", 14); + + ELEKTRA_SET (String) (elektra, field, value->serialnumber, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const IOWarriorDriverConfig *, StructIOWarriorDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "extendedmode", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->extendedmode, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lastline", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->lastline, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "serialnumber", 14); + + ELEKTRA_SET (String) (elektra, field, value->serialnumber, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (IrManDriverConfig, StructIrManDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "config", 14); + + + result->config = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (IrManDriverConfig, StructIrManDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "config", 14); + + + result->config = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const IrManDriverConfig *, StructIrManDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "config", 14); + + ELEKTRA_SET (String) (elektra, field, value->config, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const IrManDriverConfig *, StructIrManDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "config", 14); + + ELEKTRA_SET (String) (elektra, field, value->config, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (IrtransDriverConfig, StructIrtransDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 14); + + + result->backlight = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "hostname", 14); + + + result->hostname = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (IrtransDriverConfig, StructIrtransDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 14); + + + result->backlight = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "hostname", 14); + + + result->hostname = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const IrtransDriverConfig *, StructIrtransDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "hostname", 14); + + ELEKTRA_SET (String) (elektra, field, value->hostname, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const IrtransDriverConfig *, StructIrtransDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "hostname", 14); + + ELEKTRA_SET (String) (elektra, field, value->hostname, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (JoyDriverConfig, StructJoyDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "map_axis1neg", 14); + + + result->mapAxis1neg = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "map_axis1pos", 14); + + + result->mapAxis1pos = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "map_axis2neg", 14); + + + result->mapAxis2neg = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "map_axis2pos", 14); + + + result->mapAxis2pos = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "map_button1", 14); + + + result->mapButton1 = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "map_button2", 14); + + + result->mapButton2 = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (JoyDriverConfig, StructJoyDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "map_axis1neg", 14); + + + result->mapAxis1neg = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "map_axis1pos", 14); + + + result->mapAxis1pos = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "map_axis2neg", 14); + + + result->mapAxis2neg = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "map_axis2pos", 14); + + + result->mapAxis2pos = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "map_button1", 14); + + + result->mapButton1 = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "map_button2", 14); + + + result->mapButton2 = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const JoyDriverConfig *, StructJoyDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "map_axis1neg", 14); + + ELEKTRA_SET (String) (elektra, field, value->mapAxis1neg, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "map_axis1pos", 14); + + ELEKTRA_SET (String) (elektra, field, value->mapAxis1pos, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "map_axis2neg", 14); + + ELEKTRA_SET (String) (elektra, field, value->mapAxis2neg, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "map_axis2pos", 14); + + ELEKTRA_SET (String) (elektra, field, value->mapAxis2pos, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "map_button1", 14); + + ELEKTRA_SET (String) (elektra, field, value->mapButton1, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "map_button2", 14); + + ELEKTRA_SET (String) (elektra, field, value->mapButton2, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const JoyDriverConfig *, StructJoyDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "map_axis1neg", 14); + + ELEKTRA_SET (String) (elektra, field, value->mapAxis1neg, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "map_axis1pos", 14); + + ELEKTRA_SET (String) (elektra, field, value->mapAxis1pos, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "map_axis2neg", 14); + + ELEKTRA_SET (String) (elektra, field, value->mapAxis2neg, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "map_axis2pos", 14); + + ELEKTRA_SET (String) (elektra, field, value->mapAxis2pos, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "map_button1", 14); + + ELEKTRA_SET (String) (elektra, field, value->mapButton1, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "map_button2", 14); + + ELEKTRA_SET (String) (elektra, field, value->mapButton2, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Lb216DriverConfig, StructLb216DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 11 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 11); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 11); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 11); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 11); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "speed", 11); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Lb216DriverConfig, StructLb216DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 11 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 11); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 11); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 11); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 11); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "speed", 11); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const Lb216DriverConfig *, StructLb216DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 11 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 11); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 11); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 11); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 11); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 11); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Lb216DriverConfig *, StructLb216DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 11 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 11); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 11); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 11); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 11); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 11); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Lcdm001DriverConfig, StructLcdm001DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 12 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backkey", 12); + + + result->backkey = ELEKTRA_GET (EnumLcdm001Keys) (elektra, field); + + strncpy (&field[nameLen], "device", 12); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 12); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "forwardkey", 12); + + + result->forwardkey = ELEKTRA_GET (EnumLcdm001Keys) (elektra, field); + + strncpy (&field[nameLen], "mainmenukey", 12); + + + result->mainmenukey = ELEKTRA_GET (EnumLcdm001Keys) (elektra, field); + + strncpy (&field[nameLen], "pausekey", 12); + + + result->pausekey = ELEKTRA_GET (EnumLcdm001Keys) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Lcdm001DriverConfig, StructLcdm001DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 12 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backkey", 12); + + + result->backkey = ELEKTRA_GET (EnumLcdm001Keys) (elektra, field); + + strncpy (&field[nameLen], "device", 12); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 12); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "forwardkey", 12); + + + result->forwardkey = ELEKTRA_GET (EnumLcdm001Keys) (elektra, field); + + strncpy (&field[nameLen], "mainmenukey", 12); + + + result->mainmenukey = ELEKTRA_GET (EnumLcdm001Keys) (elektra, field); + + strncpy (&field[nameLen], "pausekey", 12); + + + result->pausekey = ELEKTRA_GET (EnumLcdm001Keys) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const Lcdm001DriverConfig *, StructLcdm001DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 12 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backkey", 12); + + ELEKTRA_SET (EnumLcdm001Keys) (elektra, field, value->backkey, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 12); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 12); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "forwardkey", 12); + + ELEKTRA_SET (EnumLcdm001Keys) (elektra, field, value->forwardkey, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "mainmenukey", 12); + + ELEKTRA_SET (EnumLcdm001Keys) (elektra, field, value->mainmenukey, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "pausekey", 12); + + ELEKTRA_SET (EnumLcdm001Keys) (elektra, field, value->pausekey, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Lcdm001DriverConfig *, StructLcdm001DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 12 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backkey", 12); + + ELEKTRA_SET (EnumLcdm001Keys) (elektra, field, value->backkey, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 12); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 12); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "forwardkey", 12); + + ELEKTRA_SET (EnumLcdm001Keys) (elektra, field, value->forwardkey, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "mainmenukey", 12); + + ELEKTRA_SET (EnumLcdm001Keys) (elektra, field, value->mainmenukey, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "pausekey", 12); + + ELEKTRA_SET (EnumLcdm001Keys) (elektra, field, value->pausekey, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (LctermDriverConfig, StructLctermDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (LctermDriverConfig, StructLctermDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const LctermDriverConfig *, StructLctermDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const LctermDriverConfig *, StructLctermDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Linux_inputDriverConfig, StructLinux_inputDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Linux_inputDriverConfig, StructLinux_inputDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const Linux_inputDriverConfig *, StructLinux_inputDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Linux_inputDriverConfig *, StructLinux_inputDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (LircDriverConfig, StructLircDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "lircrc", 14); + + + result->lircrc = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "prog", 14); + + + result->prog = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (LircDriverConfig, StructLircDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "lircrc", 14); + + + result->lircrc = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "prog", 14); + + + result->prog = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const LircDriverConfig *, StructLircDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lircrc", 14); + + ELEKTRA_SET (String) (elektra, field, value->lircrc, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "prog", 14); + + ELEKTRA_SET (String) (elektra, field, value->prog, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const LircDriverConfig *, StructLircDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lircrc", 14); + + ELEKTRA_SET (String) (elektra, field, value->lircrc, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "prog", 14); + + ELEKTRA_SET (String) (elektra, field, value->prog, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (LisDriverConfig, StructLisDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "lastline", 14); + + + result->lastline = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "productid", 14); + + + result->productid = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "vendorid", 14); + + + result->vendorid = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (LisDriverConfig, StructLisDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "lastline", 14); + + + result->lastline = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "productid", 14); + + + result->productid = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "vendorid", 14); + + + result->vendorid = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const LisDriverConfig *, StructLisDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lastline", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->lastline, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "productid", 14); + + ELEKTRA_SET (String) (elektra, field, value->productid, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "vendorid", 14); + + ELEKTRA_SET (String) (elektra, field, value->vendorid, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const LisDriverConfig *, StructLisDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lastline", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->lastline, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "productid", 14); + + ELEKTRA_SET (String) (elektra, field, value->productid, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "vendorid", 14); + + ELEKTRA_SET (String) (elektra, field, value->vendorid, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (MD8800DriverConfig, StructMD8800DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (MD8800DriverConfig, StructMD8800DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const MD8800DriverConfig *, StructMD8800DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const MD8800DriverConfig *, StructMD8800DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Mdm166aDriverConfig, StructMdm166aDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "clock", 14); + + + result->clock = ELEKTRA_GET (EnumMdm166aClock) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "dimming", 14); + + + result->dimming = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "offdimming", 14); + + + result->offdimming = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Mdm166aDriverConfig, StructMdm166aDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "clock", 14); + + + result->clock = ELEKTRA_GET (EnumMdm166aClock) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "dimming", 14); + + + result->dimming = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "offdimming", 14); + + + result->offdimming = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const Mdm166aDriverConfig *, StructMdm166aDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "clock", 14); + + ELEKTRA_SET (EnumMdm166aClock) (elektra, field, value->clock, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "dimming", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->dimming, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offdimming", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->offdimming, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Mdm166aDriverConfig *, StructMdm166aDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "clock", 14); + + ELEKTRA_SET (EnumMdm166aClock) (elektra, field, value->clock, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "dimming", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->dimming, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offdimming", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->offdimming, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Ms6931DriverConfig, StructMs6931DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Ms6931DriverConfig, StructMs6931DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const Ms6931DriverConfig *, StructMs6931DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Ms6931DriverConfig *, StructMs6931DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Mtc_s16209xDriverConfig, StructMtc_s16209xDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Mtc_s16209xDriverConfig, StructMtc_s16209xDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const Mtc_s16209xDriverConfig *, StructMtc_s16209xDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Mtc_s16209xDriverConfig *, StructMtc_s16209xDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (MtxOrbDriverConfig, StructMtxOrbDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 23 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 23); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 23); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 23); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 23); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "hasadjustablebacklight", 23); + + + result->hasAdjustableBacklight = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "keymap_a", 23); + + + result->keymapA = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_b", 23); + + + result->keymapB = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_c", 23); + + + result->keymapC = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_d", 23); + + + result->keymapD = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_e", 23); + + + result->keymapE = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_f", 23); + + + result->keymapF = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keypad_test_mode", 23); + + + result->keypadTestMode = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 23); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "size", 23); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 23); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "type", 23); + + + result->type = ELEKTRA_GET (EnumMtxorbType) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (MtxOrbDriverConfig, StructMtxOrbDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 23 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 23); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 23); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 23); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 23); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "hasadjustablebacklight", 23); + + + result->hasAdjustableBacklight = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "keymap_a", 23); + + + result->keymapA = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_b", 23); + + + result->keymapB = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_c", 23); + + + result->keymapC = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_d", 23); + + + result->keymapD = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_e", 23); + + + result->keymapE = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_f", 23); + + + result->keymapF = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keypad_test_mode", 23); + + + result->keypadTestMode = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 23); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "size", 23); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 23); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "type", 23); + + + result->type = ELEKTRA_GET (EnumMtxorbType) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const MtxOrbDriverConfig *, StructMtxOrbDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 23 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 23); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 23); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 23); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 23); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "hasadjustablebacklight", 23); + + ELEKTRA_SET (Boolean) (elektra, field, value->hasAdjustableBacklight, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_a", 23); + + ELEKTRA_SET (String) (elektra, field, value->keymapA, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_b", 23); + + ELEKTRA_SET (String) (elektra, field, value->keymapB, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_c", 23); + + ELEKTRA_SET (String) (elektra, field, value->keymapC, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_d", 23); + + ELEKTRA_SET (String) (elektra, field, value->keymapD, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_e", 23); + + ELEKTRA_SET (String) (elektra, field, value->keymapE, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_f", 23); + + ELEKTRA_SET (String) (elektra, field, value->keymapF, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keypad_test_mode", 23); + + ELEKTRA_SET (Boolean) (elektra, field, value->keypadTestMode, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 23); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 23); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 23); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "type", 23); + + ELEKTRA_SET (EnumMtxorbType) (elektra, field, value->type, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const MtxOrbDriverConfig *, StructMtxOrbDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 23 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 23); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 23); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 23); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 23); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "hasadjustablebacklight", 23); + + ELEKTRA_SET (Boolean) (elektra, field, value->hasAdjustableBacklight, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_a", 23); + + ELEKTRA_SET (String) (elektra, field, value->keymapA, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_b", 23); + + ELEKTRA_SET (String) (elektra, field, value->keymapB, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_c", 23); + + ELEKTRA_SET (String) (elektra, field, value->keymapC, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_d", 23); + + ELEKTRA_SET (String) (elektra, field, value->keymapD, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_e", 23); + + ELEKTRA_SET (String) (elektra, field, value->keymapE, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_f", 23); + + ELEKTRA_SET (String) (elektra, field, value->keymapF, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keypad_test_mode", 23); + + ELEKTRA_SET (Boolean) (elektra, field, value->keypadTestMode, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 23); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 23); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 23); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "type", 23); + + ELEKTRA_SET (EnumMtxorbType) (elektra, field, value->type, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Mx5000DriverConfig, StructMx5000DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 17 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 17); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 17); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 17); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 17); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 17); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 17); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "waitafterrefresh", 17); + + + result->waitafterrefresh = ELEKTRA_GET (UnsignedLong) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Mx5000DriverConfig, StructMx5000DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 17 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 17); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 17); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 17); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 17); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 17); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 17); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "waitafterrefresh", 17); + + + result->waitafterrefresh = ELEKTRA_GET (UnsignedLong) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const Mx5000DriverConfig *, StructMx5000DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 17 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 17); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 17); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "waitafterrefresh", 17); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->waitafterrefresh, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Mx5000DriverConfig *, StructMx5000DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 17 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 17); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 17); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 17); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 17); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "waitafterrefresh", 17); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->waitafterrefresh, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (NoritakeVFDDriverConfig, StructNoritakeVFDDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "parity", 14); + + + result->parity = ELEKTRA_GET (UnsignedLong) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 14); + + + result->speed = ELEKTRA_GET (UnsignedLong) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (NoritakeVFDDriverConfig, StructNoritakeVFDDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "parity", 14); + + + result->parity = ELEKTRA_GET (UnsignedLong) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 14); + + + result->speed = ELEKTRA_GET (UnsignedLong) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const NoritakeVFDDriverConfig *, StructNoritakeVFDDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "parity", 14); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->parity, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 14); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const NoritakeVFDDriverConfig *, StructNoritakeVFDDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "parity", 14); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->parity, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 14); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Olimex_MOD_LCD1x9DriverConfig, StructOlimex_MOD_LCD1x9DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Olimex_MOD_LCD1x9DriverConfig, StructOlimex_MOD_LCD1x9DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const Olimex_MOD_LCD1x9DriverConfig *, StructOlimex_MOD_LCD1x9DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Olimex_MOD_LCD1x9DriverConfig *, StructOlimex_MOD_LCD1x9DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (PicolcdDriverConfig, StructPicolcdDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 19 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 19); + + + result->backlight = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "brightness", 19); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 19); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 19); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "key0light", 19); + + + result->key0light = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "key1light", 19); + + + result->key1light = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "key2light", 19); + + + result->key2light = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "key3light", 19); + + + result->key3light = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "key4light", 19); + + + result->key4light = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "key5light", 19); + + + result->key5light = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "keylights", 19); + + + result->keylights = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "keyrepeatdelay", 19); + + + result->keyrepeatdelay = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "keyrepeatinterval", 19); + + + result->keyrepeatinterval = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "keytimeout", 19); + + + result->keytimeout = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "linklights", 19); + + + result->linklights = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "lircflushthreshold", 19); + + + result->lircflushthreshold = ELEKTRA_GET (UnsignedLong) (elektra, field); + + strncpy (&field[nameLen], "lirchost", 19); + + + result->lirchost = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "lircport", 19); + + + result->lircport = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "lirctime_us", 19); + + + result->lirctimeUs = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 19); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 19); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (PicolcdDriverConfig, StructPicolcdDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 19 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 19); + + + result->backlight = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "brightness", 19); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 19); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 19); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "key0light", 19); + + + result->key0light = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "key1light", 19); + + + result->key1light = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "key2light", 19); + + + result->key2light = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "key3light", 19); + + + result->key3light = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "key4light", 19); + + + result->key4light = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "key5light", 19); + + + result->key5light = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "keylights", 19); + + + result->keylights = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "keyrepeatdelay", 19); + + + result->keyrepeatdelay = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "keyrepeatinterval", 19); + + + result->keyrepeatinterval = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "keytimeout", 19); + + + result->keytimeout = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "linklights", 19); + + + result->linklights = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "lircflushthreshold", 19); + + + result->lircflushthreshold = ELEKTRA_GET (UnsignedLong) (elektra, field); + + strncpy (&field[nameLen], "lirchost", 19); + + + result->lirchost = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "lircport", 19); + + + result->lircport = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "lirctime_us", 19); + + + result->lirctimeUs = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 19); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 19); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const PicolcdDriverConfig *, StructPicolcdDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 19 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 19); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 19); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 19); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "key0light", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->key0light, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "key1light", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->key1light, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "key2light", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->key2light, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "key3light", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->key3light, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "key4light", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->key4light, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "key5light", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->key5light, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keylights", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->keylights, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keyrepeatdelay", 19); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->keyrepeatdelay, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keyrepeatinterval", 19); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->keyrepeatinterval, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keytimeout", 19); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->keytimeout, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "linklights", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->linklights, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lircflushthreshold", 19); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->lircflushthreshold, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lirchost", 19); + + ELEKTRA_SET (String) (elektra, field, value->lirchost, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lircport", 19); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->lircport, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lirctime_us", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->lirctimeUs, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 19); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const PicolcdDriverConfig *, StructPicolcdDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 19 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "backlight", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 19); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 19); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 19); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "key0light", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->key0light, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "key1light", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->key1light, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "key2light", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->key2light, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "key3light", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->key3light, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "key4light", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->key4light, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "key5light", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->key5light, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keylights", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->keylights, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keyrepeatdelay", 19); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->keyrepeatdelay, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keyrepeatinterval", 19); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->keyrepeatinterval, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keytimeout", 19); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->keytimeout, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "linklights", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->linklights, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lircflushthreshold", 19); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->lircflushthreshold, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lirchost", 19); + + ELEKTRA_SET (String) (elektra, field, value->lirchost, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lircport", 19); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->lircport, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "lirctime_us", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->lirctimeUs, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 19); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 19); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (PyramidDriverConfig, StructPyramidDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 7 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "device", 7); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 7); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (PyramidDriverConfig, StructPyramidDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 7 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "device", 7); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 7); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const PyramidDriverConfig *, StructPyramidDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 7 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "device", 7); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 7); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const PyramidDriverConfig *, StructPyramidDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 7 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "device", 7); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 7); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (RawserialDriverConfig, StructRawserialDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 14); + + + result->speed = ELEKTRA_GET (UnsignedLong) (elektra, field); + + strncpy (&field[nameLen], "updaterate", 14); + + + result->updaterate = ELEKTRA_GET (Float) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (RawserialDriverConfig, StructRawserialDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 14); + + + result->speed = ELEKTRA_GET (UnsignedLong) (elektra, field); + + strncpy (&field[nameLen], "updaterate", 14); + + + result->updaterate = ELEKTRA_GET (Float) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const RawserialDriverConfig *, StructRawserialDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 14); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "updaterate", 14); + + ELEKTRA_SET (Float) (elektra, field, value->updaterate, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const RawserialDriverConfig *, StructRawserialDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 14); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "updaterate", 14); + + ELEKTRA_SET (Float) (elektra, field, value->updaterate, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Sed1330DriverConfig, StructSed1330DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 15 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 15); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "cellsize", 15); + + + result->cellsize = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "connectiontype", 15); + + + result->connectiontype = ELEKTRA_GET (EnumSed1330Connectiontype) (elektra, field); + + strncpy (&field[nameLen], "contrast", 15); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 15); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 15); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "port", 15); + + + result->port = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 15); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "type", 15); + + + result->type = ELEKTRA_GET (EnumSed1330Type) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Sed1330DriverConfig, StructSed1330DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 15 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 15); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "cellsize", 15); + + + result->cellsize = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "connectiontype", 15); + + + result->connectiontype = ELEKTRA_GET (EnumSed1330Connectiontype) (elektra, field); + + strncpy (&field[nameLen], "contrast", 15); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 15); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 15); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "port", 15); + + + result->port = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 15); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "type", 15); + + + result->type = ELEKTRA_GET (EnumSed1330Type) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const Sed1330DriverConfig *, StructSed1330DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 15 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 15); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "cellsize", 15); + + ELEKTRA_SET (String) (elektra, field, value->cellsize, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "connectiontype", 15); + + ELEKTRA_SET (EnumSed1330Connectiontype) (elektra, field, value->connectiontype, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 15); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 15); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 15); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "port", 15); + + ELEKTRA_SET (String) (elektra, field, value->port, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 15); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "type", 15); + + ELEKTRA_SET (EnumSed1330Type) (elektra, field, value->type, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Sed1330DriverConfig *, StructSed1330DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 15 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 15); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "cellsize", 15); + + ELEKTRA_SET (String) (elektra, field, value->cellsize, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "connectiontype", 15); + + ELEKTRA_SET (EnumSed1330Connectiontype) (elektra, field, value->connectiontype, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 15); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 15); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 15); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "port", 15); + + ELEKTRA_SET (String) (elektra, field, value->port, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 15); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "type", 15); + + ELEKTRA_SET (EnumSed1330Type) (elektra, field, value->type, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Sed1520DriverConfig, StructSed1520DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 16 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 16); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 16); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "delaymult", 16); + + + result->delaymult = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 16); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "haveinverter", 16); + + + result->haveinverter = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "interfacetype", 16); + + + result->interfacetype = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "invertedmapping", 16); + + + result->invertedmapping = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 16); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "port", 16); + + + result->port = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 16); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "usehardreset", 16); + + + result->usehardreset = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Sed1520DriverConfig, StructSed1520DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 16 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 16); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 16); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "delaymult", 16); + + + result->delaymult = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 16); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "haveinverter", 16); + + + result->haveinverter = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "interfacetype", 16); + + + result->interfacetype = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "invertedmapping", 16); + + + result->invertedmapping = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 16); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "port", 16); + + + result->port = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 16); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "usehardreset", 16); + + + result->usehardreset = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const Sed1520DriverConfig *, StructSed1520DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 16 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 16); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 16); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "delaymult", 16); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->delaymult, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 16); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "haveinverter", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->haveinverter, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "interfacetype", 16); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->interfacetype, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "invertedmapping", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->invertedmapping, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 16); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "port", 16); + + ELEKTRA_SET (String) (elektra, field, value->port, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "usehardreset", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->usehardreset, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Sed1520DriverConfig *, StructSed1520DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 16 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 16); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 16); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "delaymult", 16); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->delaymult, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 16); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "haveinverter", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->haveinverter, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "interfacetype", 16); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->interfacetype, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "invertedmapping", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->invertedmapping, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 16); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "port", 16); + + ELEKTRA_SET (String) (elektra, field, value->port, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "usehardreset", 16); + + ELEKTRA_SET (Boolean) (elektra, field, value->usehardreset, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (SerialPOSDriverConfig, StructSerialPOSDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "cellsize", 14); + + + result->cellsize = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "custom_chars", 14); + + + result->customChars = ELEKTRA_GET (UnsignedLong) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 14); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "type", 14); + + + result->type = ELEKTRA_GET (EnumSerialposType) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SerialPOSDriverConfig, StructSerialPOSDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "cellsize", 14); + + + result->cellsize = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "custom_chars", 14); + + + result->customChars = ELEKTRA_GET (UnsignedLong) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 14); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "type", 14); + + + result->type = ELEKTRA_GET (EnumSerialposType) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const SerialPOSDriverConfig *, StructSerialPOSDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "cellsize", 14); + + ELEKTRA_SET (String) (elektra, field, value->cellsize, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "custom_chars", 14); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->customChars, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "type", 14); + + ELEKTRA_SET (EnumSerialposType) (elektra, field, value->type, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SerialPOSDriverConfig *, StructSerialPOSDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "cellsize", 14); + + ELEKTRA_SET (String) (elektra, field, value->cellsize, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "custom_chars", 14); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->customChars, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "type", 14); + + ELEKTRA_SET (EnumSerialposType) (elektra, field, value->type, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (SerialVFDDriverConfig, StructSerialVFDDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 18 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 18); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 18); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "custom-characters", 18); + + + result->custom_characters = ELEKTRA_GET (UnsignedLong) (elektra, field); + + strncpy (&field[nameLen], "device", 18); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 18); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "iso_8859_1", 18); + + + result->iso88591 = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 18); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "port", 18); + + + result->port = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "portwait", 18); + + + result->portwait = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 18); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 18); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 18); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "type", 18); + + + result->type = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "use_parallel", 18); + + + result->useParallel = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SerialVFDDriverConfig, StructSerialVFDDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 18 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 18); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 18); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "custom-characters", 18); + + + result->custom_characters = ELEKTRA_GET (UnsignedLong) (elektra, field); + + strncpy (&field[nameLen], "device", 18); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 18); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "iso_8859_1", 18); + + + result->iso88591 = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 18); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "port", 18); + + + result->port = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "portwait", 18); + + + result->portwait = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 18); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 18); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 18); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "type", 18); + + + result->type = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "use_parallel", 18); + + + result->useParallel = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const SerialVFDDriverConfig *, StructSerialVFDDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 18 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 18); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 18); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "custom-characters", 18); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->custom_characters, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 18); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 18); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "iso_8859_1", 18); + + ELEKTRA_SET (Boolean) (elektra, field, value->iso88591, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 18); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "port", 18); + + ELEKTRA_SET (String) (elektra, field, value->port, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "portwait", 18); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->portwait, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 18); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 18); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 18); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "type", 18); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->type, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "use_parallel", 18); + + ELEKTRA_SET (Boolean) (elektra, field, value->useParallel, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SerialVFDDriverConfig *, StructSerialVFDDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 18 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 18); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 18); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "custom-characters", 18); + + ELEKTRA_SET (UnsignedLong) (elektra, field, value->custom_characters, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 18); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 18); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "iso_8859_1", 18); + + ELEKTRA_SET (Boolean) (elektra, field, value->iso88591, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 18); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "port", 18); + + ELEKTRA_SET (String) (elektra, field, value->port, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "portwait", 18); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->portwait, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 18); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 18); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 18); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "type", 18); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->type, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "use_parallel", 18); + + ELEKTRA_SET (Boolean) (elektra, field, value->useParallel, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (SliDriverConfig, StructSliDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "speed", 14); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SliDriverConfig, StructSliDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "speed", 14); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const SliDriverConfig *, StructSliDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SliDriverConfig *, StructSliDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Stv5730DriverConfig, StructStv5730DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "port", 14); + + + result->port = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Stv5730DriverConfig, StructStv5730DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "port", 14); + + + result->port = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const Stv5730DriverConfig *, StructStv5730DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "port", 14); + + ELEKTRA_SET (String) (elektra, field, value->port, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Stv5730DriverConfig *, StructStv5730DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "port", 14); + + ELEKTRA_SET (String) (elektra, field, value->port, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (SureElecDriverConfig, StructSureElecDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "edition", 14); + + + result->edition = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SureElecDriverConfig, StructSureElecDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "edition", 14); + + + result->edition = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const SureElecDriverConfig *, StructSureElecDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "edition", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->edition, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SureElecDriverConfig *, StructSureElecDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "edition", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->edition, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (SvgaDriverConfig, StructSvgaDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "mode", 14); + + + result->mode = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SvgaDriverConfig, StructSvgaDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "mode", 14); + + + result->mode = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const SvgaDriverConfig *, StructSvgaDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "mode", 14); + + ELEKTRA_SET (String) (elektra, field, value->mode, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SvgaDriverConfig *, StructSvgaDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "mode", 14); + + ELEKTRA_SET (String) (elektra, field, value->mode, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (T6963DriverConfig, StructT6963DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "bidirectional", 14); + + + result->bidirectional = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "cleargraphic", 14); + + + result->cleargraphic = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "delaybus", 14); + + + result->delaybus = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "port", 14); + + + result->port = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (T6963DriverConfig, StructT6963DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "bidirectional", 14); + + + result->bidirectional = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "cleargraphic", 14); + + + result->cleargraphic = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "delaybus", 14); + + + result->delaybus = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "port", 14); + + + result->port = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const T6963DriverConfig *, StructT6963DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "bidirectional", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->bidirectional, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "cleargraphic", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->cleargraphic, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "delaybus", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->delaybus, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "port", 14); + + ELEKTRA_SET (String) (elektra, field, value->port, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const T6963DriverConfig *, StructT6963DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "bidirectional", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->bidirectional, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "cleargraphic", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->cleargraphic, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "delaybus", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->delaybus, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "port", 14); + + ELEKTRA_SET (String) (elektra, field, value->port, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (TextDriverConfig, StructTextDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (TextDriverConfig, StructTextDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const TextDriverConfig *, StructTextDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const TextDriverConfig *, StructTextDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (TyanDriverConfig, StructTyanDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 14); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (TyanDriverConfig, StructTyanDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "speed", 14); + + + result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const TyanDriverConfig *, StructTyanDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const TyanDriverConfig *, StructTyanDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "speed", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Ula200DriverConfig, StructUla200DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_a", 14); + + + result->keymapA = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_b", 14); + + + result->keymapB = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_c", 14); + + + result->keymapC = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_d", 14); + + + result->keymapD = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_e", 14); + + + result->keymapE = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_f", 14); + + + result->keymapF = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Ula200DriverConfig, StructUla200DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_a", 14); + + + result->keymapA = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_b", 14); + + + result->keymapB = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_c", 14); + + + result->keymapC = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_d", 14); + + + result->keymapD = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_e", 14); + + + result->keymapE = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "keymap_f", 14); + + + result->keymapF = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const Ula200DriverConfig *, StructUla200DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_a", 14); + + ELEKTRA_SET (String) (elektra, field, value->keymapA, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_b", 14); + + ELEKTRA_SET (String) (elektra, field, value->keymapB, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_c", 14); + + ELEKTRA_SET (String) (elektra, field, value->keymapC, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_d", 14); + + ELEKTRA_SET (String) (elektra, field, value->keymapD, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_e", 14); + + ELEKTRA_SET (String) (elektra, field, value->keymapE, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_f", 14); + + ELEKTRA_SET (String) (elektra, field, value->keymapF, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Ula200DriverConfig *, StructUla200DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_a", 14); + + ELEKTRA_SET (String) (elektra, field, value->keymapA, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_b", 14); + + ELEKTRA_SET (String) (elektra, field, value->keymapB, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_c", 14); + + ELEKTRA_SET (String) (elektra, field, value->keymapC, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_d", 14); + + ELEKTRA_SET (String) (elektra, field, value->keymapD, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_e", 14); + + ELEKTRA_SET (String) (elektra, field, value->keymapE, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "keymap_f", 14); + + ELEKTRA_SET (String) (elektra, field, value->keymapF, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Vlsys_m428DriverConfig, StructVlsys_m428DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Vlsys_m428DriverConfig, StructVlsys_m428DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "device", 14); + + + result->device = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const Vlsys_m428DriverConfig *, StructVlsys_m428DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Vlsys_m428DriverConfig *, StructVlsys_m428DriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "device", 14); + + ELEKTRA_SET (String) (elektra, field, value->device, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (XosdDriverConfig, StructXosdDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "Font", 14); + + + result->Font = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "offset", 14); + + + result->offset = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (XosdDriverConfig, StructXosdDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "Font", 14); + + + result->Font = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "offset", 14); + + + result->offset = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const XosdDriverConfig *, StructXosdDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "Font", 14); + + ELEKTRA_SET (String) (elektra, field, value->Font, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offset", 14); + + ELEKTRA_SET (String) (elektra, field, value->offset, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const XosdDriverConfig *, StructXosdDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "Font", 14); + + ELEKTRA_SET (String) (elektra, field, value->Font, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offset", 14); + + ELEKTRA_SET (String) (elektra, field, value->offset, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Yard2LCDDriverConfig, StructYard2LCDDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Yard2LCDDriverConfig, StructYard2LCDDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + + result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "contrast", 14); + + + result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "file", 14); + + + result->file = ELEKTRA_GET (String) (elektra, field); + + strncpy (&field[nameLen], "offbrightness", 14); + + + result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); + + strncpy (&field[nameLen], "reboot", 14); + + + result->reboot = ELEKTRA_GET (Boolean) (elektra, field); + + strncpy (&field[nameLen], "size", 14); + + + result->size = ELEKTRA_GET (String) (elektra, field); + + elektraFree (field); +} + +ELEKTRA_SET_SIGNATURE (const Yard2LCDDriverConfig *, StructYard2LCDDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Yard2LCDDriverConfig *, StructYard2LCDDriverConfig) +{ + size_t nameLen = strlen (keyname); + char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); + strcpy (field, keyname); + field[nameLen] = '/'; + ++nameLen; + + elektraWriteArrayNumber (&field[nameLen], index); + nameLen = strlen (field); + field[nameLen] = '/'; + ++nameLen; + + strncpy (&field[nameLen], "brightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "contrast", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "file", 14); + + ELEKTRA_SET (String) (elektra, field, value->file, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "offbrightness", 14); + + ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "reboot", 14); + + ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); + if (error != NULL) + { + return; + } + + strncpy (&field[nameLen], "size", 14); + + ELEKTRA_SET (String) (elektra, field, value->size, error); + if (error != NULL) + { + return; + } + +} + diff --git a/server/elektragen.h b/server/elektragen.h new file mode 100644 index 00000000..2bc09e43 --- /dev/null +++ b/server/elektragen.h @@ -0,0 +1,34830 @@ +// clang-format off + + +// clang-format on +/** + * @file + * + * This file was automatically generated using `kdb gen elektra`. + * Any changes will be overwritten, when the file is regenerated. + * + * @copyright BSD Zero Clause License + * + * Copyright (C) 2019 Elektra Initiative (https://libelektra.org) + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH + * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND + * FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, + * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM + * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR + * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + * PERFORMANCE OF THIS SOFTWARE. + */ + + +#ifndef ELEKTRAGEN_H +#define ELEKTRAGEN_H + +#ifdef __cplusplus +extern "C" { +#endif + +#include + +#include +#include + + + +#define ELEKTRA_CONTEXT_SET(contextTag) elektraSetContextualValue##contextTag + +// clang-format off + +// clang-format on + +typedef enum +{ + C_FONTZ_PACKET_MODEL_533 = 0, + C_FONTZ_PACKET_MODEL_631 = 1, + C_FONTZ_PACKET_MODEL_633 = 2, + C_FONTZ_PACKET_MODEL_635 = 3, +} CFontzPacketModel; + +typedef enum +{ + CURSES_COLOR_RED = 0, + CURSES_COLOR_BLACK = 1, + CURSES_COLOR_GREEN = 2, + CURSES_COLOR_YELLOW = 3, + CURSES_COLOR_BLUE = 4, + CURSES_COLOR_MAGENTA = 5, + CURSES_COLOR_CYAN = 6, + CURSES_COLOR_WHITE = 7, +} CursesColor; + +typedef enum +{ + CW_LNX_MODEL_12232 = 0, + CW_LNX_MODEL_12832 = 1, + CW_LNX_MODEL_1602 = 2, +} CwLnxModel; + +typedef enum +{ + GLCD_CONNECTION_TYPE_T6963 = 0, + GLCD_CONNECTION_TYPE_PNG = 1, + GLCD_CONNECTION_TYPE_SERDISPLIB = 2, + GLCD_CONNECTION_TYPE_GLCD2USB = 3, + GLCD_CONNECTION_TYPE_X11 = 4, + GLCD_CONNECTION_TYPE_PICOLCDGFX = 5, + GLCD_CONNECTION_TYPE_XYZ = 6, +} GlcdConnectionType; + +typedef enum +{ + H_D44780_BACKLIGHT_NONE = 0, + H_D44780_BACKLIGHT_EXTERNAL = 1, + H_D44780_BACKLIGHT_INTERNAL = 2, + H_D44780_BACKLIGHT_INTERNAL_CMDS = 3, +} HD44780Backlight; + +typedef enum +{ + H_D44780_CHARMAP_HD44780_DEFAULT = 0, + H_D44780_CHARMAP_HD44780_EURO = 1, + H_D44780_CHARMAP_EA_KS0073 = 2, + H_D44780_CHARMAP_SED1278F_0B = 3, + H_D44780_CHARMAP_HD44780_KOI8_R = 4, + H_D44780_CHARMAP_HD44780_CP1251 = 5, + H_D44780_CHARMAP_HD44780_8859_5 = 6, + H_D44780_CHARMAP_UPD16314 = 7, +} HD44780Charmap; + +typedef enum +{ + H_D44780_CONNECTION_TYPE_4BIT = 0, + H_D44780_CONNECTION_TYPE_8BIT = 1, + H_D44780_CONNECTION_TYPE_WINAMP = 2, + H_D44780_CONNECTION_TYPE_LCM162 = 3, + H_D44780_CONNECTION_TYPE_SERIAL_LPT = 4, + H_D44780_CONNECTION_TYPE_PICANLCD = 5, + H_D44780_CONNECTION_TYPE_LCDSERIALIZER = 6, + H_D44780_CONNECTION_TYPE_LOS_PANEL = 7, + H_D44780_CONNECTION_TYPE_VDR_LCD = 8, + H_D44780_CONNECTION_TYPE_VDR_WAKEUP = 9, + H_D44780_CONNECTION_TYPE_EZIO = 10, + H_D44780_CONNECTION_TYPE_PERTELIAN = 11, + H_D44780_CONNECTION_TYPE_LIS2 = 12, + H_D44780_CONNECTION_TYPE_MPLAY = 13, + H_D44780_CONNECTION_TYPE_USBLCD = 14, + H_D44780_CONNECTION_TYPE_BWCTUSB = 15, + H_D44780_CONNECTION_TYPE_LCD2USB = 16, + H_D44780_CONNECTION_TYPE_USBTINY = 17, + H_D44780_CONNECTION_TYPE_USS720 = 18, + H_D44780_CONNECTION_TYPE_U_S_B_4_ALL = 19, + H_D44780_CONNECTION_TYPE_FTDI = 20, + H_D44780_CONNECTION_TYPE_I2C = 21, + H_D44780_CONNECTION_TYPE_PIPLATE = 22, + H_D44780_CONNECTION_TYPE_SPI = 23, + H_D44780_CONNECTION_TYPE_PIFACECAD = 24, + H_D44780_CONNECTION_TYPE_ETHLCD = 25, + H_D44780_CONNECTION_TYPE_RASPBERRYPI = 26, + H_D44780_CONNECTION_TYPE_GPIO = 27, +} HD44780ConnectionType; + +typedef enum +{ + ELEKTRA_ENUM_HD44780_MODEL_STANDARD = 0, + ELEKTRA_ENUM_HD44780_MODEL_EXTENDED = 1, + ELEKTRA_ENUM_HD44780_MODEL_WINSTAR_OLED = 2, + ELEKTRA_ENUM_HD44780_MODEL_PT6314_VFD = 3, +} ElektraEnumHd44780Model; + +typedef enum +{ + I_MON_CHARMAP_HD44780_EURO = 0, + I_MON_CHARMAP_UPD16314 = 1, + I_MON_CHARMAP_HD44780_KOI8_R = 2, + I_MON_CHARMAP_HD44780_CP1251 = 3, + I_MON_CHARMAP_HD44780_8859_5 = 4, + I_MON_CHARMAP_NONE = 5, +} IMonCharmap; + +typedef enum +{ + I_MON_L_C_D_DISC_MODE_0 = 0, + I_MON_L_C_D_DISC_MODE_1 = 1, +} IMonLCDDiscMode; + +typedef enum +{ + LCDM001_KEYS_LEFT_KEY = 0, + LCDM001_KEYS_RIGHT_KEY = 1, + LCDM001_KEYS_UP_KEY = 2, + LCDM001_KEYS_DOWN_KEY = 3, +} Lcdm001Keys; + +typedef enum +{ + ELEKTRA_ENUM_MDM166A_CLOCK_NO = 0, + ELEKTRA_ENUM_MDM166A_CLOCK_SMALL = 1, + ELEKTRA_ENUM_MDM166A_CLOCK_BIG = 2, +} ElektraEnumMdm166aClock; + +typedef enum +{ + ELEKTRA_ENUM_MTXORB_TYPE_LCD = 0, + ELEKTRA_ENUM_MTXORB_TYPE_LKD = 1, + ELEKTRA_ENUM_MTXORB_TYPE_VFD = 2, + ELEKTRA_ENUM_MTXORB_TYPE_VKD = 3, +} ElektraEnumMtxorbType; + +typedef enum +{ + ELEKTRA_ENUM_SED1330_CONNECTIONTYPE_CLASSIC = 0, + ELEKTRA_ENUM_SED1330_CONNECTIONTYPE_BITSHAKER = 1, +} ElektraEnumSed1330Connectiontype; + +typedef enum +{ + ELEKTRA_ENUM_SED1330_TYPE_G321_D = 0, + ELEKTRA_ENUM_SED1330_TYPE_G121_C = 1, + ELEKTRA_ENUM_SED1330_TYPE_G242_C = 2, + ELEKTRA_ENUM_SED1330_TYPE_G191_D = 3, + ELEKTRA_ENUM_SED1330_TYPE_G2446 = 4, + ELEKTRA_ENUM_SED1330_TYPE_S_P14_Q002 = 5, +} ElektraEnumSed1330Type; + +typedef enum +{ + ELEKTRA_ENUM_SERIALPOS_TYPE_A_E_D_E_X = 0, + ELEKTRA_ENUM_SERIALPOS_TYPE_C_D5220 = 1, + ELEKTRA_ENUM_SERIALPOS_TYPE_EPSON = 2, + ELEKTRA_ENUM_SERIALPOS_TYPE_EMAX = 3, + ELEKTRA_ENUM_SERIALPOS_TYPE_LOGIC_CONTROLS = 4, + ELEKTRA_ENUM_SERIALPOS_TYPE_ULTIMATE = 5, +} ElektraEnumSerialposType; + +typedef enum +{ + ELEKTRA_ENUM_SERVER_BACKLIGHT_OFF = 0, + ELEKTRA_ENUM_SERVER_BACKLIGHT_ON = 1, + ELEKTRA_ENUM_SERVER_BACKLIGHT_OPEN = 2, +} ElektraEnumServerBacklight; + +typedef enum +{ + ELEKTRA_ENUM_SERVER_HEARTBEAT_OFF = 0, + ELEKTRA_ENUM_SERVER_HEARTBEAT_ON = 1, + ELEKTRA_ENUM_SERVER_HEARTBEAT_OPEN = 2, +} ElektraEnumServerHeartbeat; + +typedef enum +{ + ELEKTRA_ENUM_SERVER_SERVERSCREEN_OFF = 0, + ELEKTRA_ENUM_SERVER_SERVERSCREEN_ON = 1, + ELEKTRA_ENUM_SERVER_SERVERSCREEN_BLANK = 2, +} ElektraEnumServerServerscreen; + + +ELEKTRA_KEY_TO_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel); +ELEKTRA_TO_STRING_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel); + +ELEKTRA_GET_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel); +ELEKTRA_SET_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel); + +ELEKTRA_KEY_TO_SIGNATURE (CursesColor, EnumCursesColor); +ELEKTRA_TO_STRING_SIGNATURE (CursesColor, EnumCursesColor); + +ELEKTRA_GET_SIGNATURE (CursesColor, EnumCursesColor); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (CursesColor, EnumCursesColor); +ELEKTRA_SET_SIGNATURE (CursesColor, EnumCursesColor); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (CursesColor, EnumCursesColor); + +ELEKTRA_KEY_TO_SIGNATURE (CwLnxModel, EnumCwLnxModel); +ELEKTRA_TO_STRING_SIGNATURE (CwLnxModel, EnumCwLnxModel); + +ELEKTRA_GET_SIGNATURE (CwLnxModel, EnumCwLnxModel); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (CwLnxModel, EnumCwLnxModel); +ELEKTRA_SET_SIGNATURE (CwLnxModel, EnumCwLnxModel); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (CwLnxModel, EnumCwLnxModel); + +ELEKTRA_KEY_TO_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType); +ELEKTRA_TO_STRING_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType); + +ELEKTRA_GET_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType); +ELEKTRA_SET_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType); + +ELEKTRA_KEY_TO_SIGNATURE (HD44780Backlight, EnumHD44780Backlight); +ELEKTRA_TO_STRING_SIGNATURE (HD44780Backlight, EnumHD44780Backlight); + +ELEKTRA_GET_SIGNATURE (HD44780Backlight, EnumHD44780Backlight); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (HD44780Backlight, EnumHD44780Backlight); +ELEKTRA_SET_SIGNATURE (HD44780Backlight, EnumHD44780Backlight); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (HD44780Backlight, EnumHD44780Backlight); + +ELEKTRA_KEY_TO_SIGNATURE (HD44780Charmap, EnumHD44780Charmap); +ELEKTRA_TO_STRING_SIGNATURE (HD44780Charmap, EnumHD44780Charmap); + +ELEKTRA_GET_SIGNATURE (HD44780Charmap, EnumHD44780Charmap); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (HD44780Charmap, EnumHD44780Charmap); +ELEKTRA_SET_SIGNATURE (HD44780Charmap, EnumHD44780Charmap); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (HD44780Charmap, EnumHD44780Charmap); + +ELEKTRA_KEY_TO_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType); +ELEKTRA_TO_STRING_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType); + +ELEKTRA_GET_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType); +ELEKTRA_SET_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType); + +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model); +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model); + +ELEKTRA_GET_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model); +ELEKTRA_SET_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model); + +ELEKTRA_KEY_TO_SIGNATURE (IMonCharmap, EnumIMonCharmap); +ELEKTRA_TO_STRING_SIGNATURE (IMonCharmap, EnumIMonCharmap); + +ELEKTRA_GET_SIGNATURE (IMonCharmap, EnumIMonCharmap); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (IMonCharmap, EnumIMonCharmap); +ELEKTRA_SET_SIGNATURE (IMonCharmap, EnumIMonCharmap); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (IMonCharmap, EnumIMonCharmap); + +ELEKTRA_KEY_TO_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode); +ELEKTRA_TO_STRING_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode); + +ELEKTRA_GET_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode); +ELEKTRA_SET_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode); + +ELEKTRA_KEY_TO_SIGNATURE (Lcdm001Keys, EnumLcdm001Keys); +ELEKTRA_TO_STRING_SIGNATURE (Lcdm001Keys, EnumLcdm001Keys); + +ELEKTRA_GET_SIGNATURE (Lcdm001Keys, EnumLcdm001Keys); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (Lcdm001Keys, EnumLcdm001Keys); +ELEKTRA_SET_SIGNATURE (Lcdm001Keys, EnumLcdm001Keys); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (Lcdm001Keys, EnumLcdm001Keys); + +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock); +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock); + +ELEKTRA_GET_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock); +ELEKTRA_SET_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock); + +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType); +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType); + +ELEKTRA_GET_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType); +ELEKTRA_SET_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType); + +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype); +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype); + +ELEKTRA_GET_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype); +ELEKTRA_SET_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype); + +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type); +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type); + +ELEKTRA_GET_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type); +ELEKTRA_SET_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type); + +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType); +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType); + +ELEKTRA_GET_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType); +ELEKTRA_SET_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType); + +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight); +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight); + +ELEKTRA_GET_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight); +ELEKTRA_SET_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight); + +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat); +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat); + +ELEKTRA_GET_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat); +ELEKTRA_SET_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat); + +ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen); +ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen); + +ELEKTRA_GET_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen); +ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen); +ELEKTRA_SET_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen); + + + +// clang-format off + +// clang-format on + +#define ELEKTRA_STRUCT_FREE(typeName) ELEKTRA_CONCAT (elektraFree, typeName) +#define ELEKTRA_STRUCT_FREE_SIGNATURE(cType, typeName) void ELEKTRA_STRUCT_FREE (typeName) (cType * ptr) + +typedef struct BayradDriverConfig +{ + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t speed; + +} BayradDriverConfig; + +typedef struct CFontzDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_boolean_t newfirmware; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * size; + + + kdb_unsigned_short_t speed; + + + kdb_boolean_t usb; + +} CFontzDriverConfig; + +typedef struct CFontzPacketDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + CFontzPacketModel model; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t oldfirmware; + + + kdb_boolean_t reboot; + + + const char * size; + + + kdb_unsigned_short_t speed; + + + kdb_boolean_t usb; + +} CFontzPacketDriverConfig; + +typedef struct CursesDriverConfig +{ + + CursesColor background; + + + CursesColor backlight; + + + kdb_boolean_t drawborder; + + + const char * file; + + + CursesColor foreground; + + + const char * size; + + + kdb_unsigned_short_t topleftx; + + + kdb_unsigned_short_t toplefty; + + + kdb_boolean_t useacs; + +} CursesDriverConfig; + +typedef struct CwLnxDriverConfig +{ + + const char * device; + + + const char * file; + + + const char * keymapA; + + + const char * keymapB; + + + const char * keymapC; + + + const char * keymapD; + + + const char * keymapE; + + + const char * keymapF; + + + kdb_boolean_t keypad; + + + kdb_boolean_t keypadTestMode; + + + CwLnxModel model; + + + const char * size; + + + kdb_unsigned_short_t speed; + +} CwLnxDriverConfig; + +typedef struct Ea65DriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + +} Ea65DriverConfig; + +typedef struct EyeboxOneDriverConfig +{ + + kdb_boolean_t backlight; + + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + kdb_boolean_t cursor; + + + const char * device; + + + const char * downkey; + + + const char * escapekey; + + + const char * file; + + + kdb_boolean_t keypadTestMode; + + + const char * leftkey; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * rightkey; + + + const char * size; + + + kdb_unsigned_short_t speed; + + + const char * upkey; + +} EyeboxOneDriverConfig; + +typedef struct FutabaDriverConfig +{ + + const char * file; + +} FutabaDriverConfig; + +typedef struct G15DriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * size; + +} G15DriverConfig; + +typedef struct GlcdDriverConfig +{ + + kdb_boolean_t bidirectional; + + + kdb_unsigned_short_t brightness; + + + const char * cellsize; + + + GlcdConnectionType connectiontype; + + + kdb_unsigned_short_t contrast; + + + kdb_boolean_t delaybus; + + + const char * file; + + + kdb_boolean_t fonthasicons; + + + const char * keymapA; + + + const char * keymapB; + + + const char * keymapC; + + + const char * keymapD; + + + const char * keymapE; + + + const char * keymapF; + + + kdb_unsigned_short_t keyrepeatdelay; + + + kdb_unsigned_short_t keyrepeatinterval; + + + const char * normalFont; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t picolcdgfxInverted; + + + const char * picolcdgfxKeytimeout; + + + const char * port; + + + kdb_boolean_t reboot; + + + const char * serdispDevice; + + + const char * serdispName; + + + const char * serdispOptions; + + + const char * size; + + + kdb_boolean_t useft2; + + + const char * x11Backlightcolor; + + + kdb_unsigned_long_t x11Border; + + + kdb_boolean_t x11Inverted; + + + const char * x11Pixelcolor; + + + const char * x11Pixelsize; + +} GlcdDriverConfig; + +typedef struct GlcdlibDriverConfig +{ + + const char * CharEncoding; + + + kdb_boolean_t backlight; + + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * driver; + + + const char * file; + + + const char * fontfile; + + + kdb_boolean_t invert; + + + const char * minfontfacesize; + + + kdb_unsigned_short_t offbrightness; + + + kdb_short_t pixelshiftx; + + + kdb_short_t pixelshifty; + + + kdb_boolean_t reboot; + + + kdb_boolean_t showbigborder; + + + kdb_boolean_t showdebugframe; + + + kdb_boolean_t showthinborder; + + + const char * textresolution; + + + kdb_boolean_t upsidedown; + + + kdb_boolean_t useft2; + +} GlcdlibDriverConfig; + +typedef struct GlkDriverConfig +{ + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t speed; + +} GlkDriverConfig; + +typedef struct Hd44780DriverConfig +{ + + HD44780Backlight backlight; + + + const char * backlightcmdoff; + + + const char * backlightcmdon; + + + kdb_unsigned_short_t brightness; + + + HD44780Charmap charmap; + + + HD44780ConnectionType connectiontype; + + + kdb_unsigned_short_t contrast; + + + kdb_boolean_t delaybus; + + + kdb_unsigned_short_t delaymult; + + + const char * device; + + + kdb_boolean_t extendedmode; + + + const char * file; + + + kdb_unsigned_short_t fontbank; + + + kdb_unsigned_short_t keepalivedisplay; + + + const char * keymatrix41; + + + const char * keymatrix42; + + + const char * keymatrix43; + + + const char * keymatrix44; + + + kdb_boolean_t keypad; + + + kdb_boolean_t lastline; + + + const char * lineaddress; + + + ElektraEnumHd44780Model model; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t outputport; + + + const char * port; + + + kdb_boolean_t reboot; + + + kdb_unsigned_short_t refreshdisplay; + + + const char * size; + + + kdb_unsigned_long_t speed; + + + const char * vspan; + +} Hd44780DriverConfig; + +typedef struct Icp_a106DriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * size; + +} Icp_a106DriverConfig; + +typedef struct ImonDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + IMonCharmap charmap; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * size; + +} ImonDriverConfig; + +typedef struct ImonlcdDriverConfig +{ + + kdb_boolean_t backlight; + + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + IMonLCDDiscMode discmode; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_unsigned_short_t onexit; + + + const char * protocol; + + + kdb_boolean_t reboot; + + + const char * size; + +} ImonlcdDriverConfig; + +typedef struct IOWarriorDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + kdb_boolean_t extendedmode; + + + const char * file; + + + kdb_boolean_t lastline; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * serialnumber; + + + const char * size; + +} IOWarriorDriverConfig; + +typedef struct IrManDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + const char * config; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + +} IrManDriverConfig; + +typedef struct IrtransDriverConfig +{ + + kdb_boolean_t backlight; + + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * file; + + + const char * hostname; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * size; + +} IrtransDriverConfig; + +typedef struct JoyDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + const char * mapAxis1neg; + + + const char * mapAxis1pos; + + + const char * mapAxis2neg; + + + const char * mapAxis2pos; + + + const char * mapButton1; + + + const char * mapButton2; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + +} JoyDriverConfig; + +typedef struct Lb216DriverConfig +{ + + kdb_unsigned_short_t brightness; + + + const char * device; + + + const char * file; + + + kdb_boolean_t reboot; + + + kdb_unsigned_short_t speed; + +} Lb216DriverConfig; + +typedef struct Lcdm001DriverConfig +{ + + Lcdm001Keys backkey; + + + const char * device; + + + const char * file; + + + Lcdm001Keys forwardkey; + + + Lcdm001Keys mainmenukey; + + + Lcdm001Keys pausekey; + +} Lcdm001DriverConfig; + +typedef struct LctermDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * size; + +} LctermDriverConfig; + +typedef struct Linux_inputDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + +} Linux_inputDriverConfig; + +typedef struct LircDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * file; + + + const char * lircrc; + + + kdb_unsigned_short_t offbrightness; + + + const char * prog; + + + kdb_boolean_t reboot; + +} LircDriverConfig; + +typedef struct LisDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * file; + + + kdb_boolean_t lastline; + + + kdb_unsigned_short_t offbrightness; + + + const char * productid; + + + kdb_boolean_t reboot; + + + const char * size; + + + const char * vendorid; + +} LisDriverConfig; + +typedef struct MD8800DriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * size; + +} MD8800DriverConfig; + +typedef struct Mdm166aDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + ElektraEnumMdm166aClock clock; + + + kdb_unsigned_short_t contrast; + + + kdb_boolean_t dimming; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t offdimming; + + + kdb_boolean_t reboot; + +} Mdm166aDriverConfig; + +typedef struct Ms6931DriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * size; + +} Ms6931DriverConfig; + +typedef struct Mtc_s16209xDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + +} Mtc_s16209xDriverConfig; + +typedef struct MtxOrbDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_boolean_t hasAdjustableBacklight; + + + const char * keymapA; + + + const char * keymapB; + + + const char * keymapC; + + + const char * keymapD; + + + const char * keymapE; + + + const char * keymapF; + + + kdb_boolean_t keypadTestMode; + + + kdb_unsigned_short_t offbrightness; + + + const char * size; + + + kdb_unsigned_short_t speed; + + + ElektraEnumMtxorbType type; + +} MtxOrbDriverConfig; + +typedef struct Mx5000DriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + kdb_unsigned_long_t waitafterrefresh; + +} Mx5000DriverConfig; + +typedef struct NoritakeVFDDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_unsigned_long_t parity; + + + kdb_boolean_t reboot; + + + const char * size; + + + kdb_unsigned_long_t speed; + +} NoritakeVFDDriverConfig; + +typedef struct Olimex_MOD_LCD1x9DriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + +} Olimex_MOD_LCD1x9DriverConfig; + +typedef struct PicolcdDriverConfig +{ + + kdb_boolean_t backlight; + + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * file; + + + kdb_boolean_t key0light; + + + kdb_boolean_t key1light; + + + kdb_boolean_t key2light; + + + kdb_boolean_t key3light; + + + kdb_boolean_t key4light; + + + kdb_boolean_t key5light; + + + kdb_boolean_t keylights; + + + kdb_unsigned_short_t keyrepeatdelay; + + + kdb_unsigned_short_t keyrepeatinterval; + + + kdb_unsigned_short_t keytimeout; + + + kdb_boolean_t linklights; + + + kdb_unsigned_long_t lircflushthreshold; + + + const char * lirchost; + + + kdb_unsigned_short_t lircport; + + + kdb_boolean_t lirctimeUs; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + +} PicolcdDriverConfig; + +typedef struct PyramidDriverConfig +{ + + const char * device; + + + const char * file; + +} PyramidDriverConfig; + +typedef struct RawserialDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * size; + + + kdb_unsigned_long_t speed; + + + kdb_float_t updaterate; + +} RawserialDriverConfig; + +typedef struct Sed1330DriverConfig +{ + + kdb_unsigned_short_t brightness; + + + const char * cellsize; + + + ElektraEnumSed1330Connectiontype connectiontype; + + + kdb_unsigned_short_t contrast; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + const char * port; + + + kdb_boolean_t reboot; + + + ElektraEnumSed1330Type type; + +} Sed1330DriverConfig; + +typedef struct Sed1520DriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + kdb_unsigned_short_t delaymult; + + + const char * file; + + + kdb_boolean_t haveinverter; + + + kdb_unsigned_short_t interfacetype; + + + kdb_boolean_t invertedmapping; + + + kdb_unsigned_short_t offbrightness; + + + const char * port; + + + kdb_boolean_t reboot; + + + kdb_boolean_t usehardreset; + +} Sed1520DriverConfig; + +typedef struct SerialPOSDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + const char * cellsize; + + + kdb_unsigned_short_t contrast; + + + kdb_unsigned_long_t customChars; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * size; + + + kdb_unsigned_short_t speed; + + + ElektraEnumSerialposType type; + +} SerialPOSDriverConfig; + +typedef struct SerialVFDDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + kdb_unsigned_long_t custom_characters; + + + const char * device; + + + const char * file; + + + kdb_boolean_t iso88591; + + + kdb_unsigned_short_t offbrightness; + + + const char * port; + + + kdb_unsigned_short_t portwait; + + + kdb_boolean_t reboot; + + + const char * size; + + + kdb_unsigned_short_t speed; + + + kdb_unsigned_short_t type; + + + kdb_boolean_t useParallel; + +} SerialVFDDriverConfig; + +typedef struct SliDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + kdb_unsigned_short_t speed; + +} SliDriverConfig; + +typedef struct Stv5730DriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + const char * port; + + + kdb_boolean_t reboot; + +} Stv5730DriverConfig; + +typedef struct SureElecDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + kdb_unsigned_short_t edition; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * size; + +} SureElecDriverConfig; + +typedef struct SvgaDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * file; + + + const char * mode; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * size; + +} SvgaDriverConfig; + +typedef struct T6963DriverConfig +{ + + kdb_boolean_t bidirectional; + + + kdb_unsigned_short_t brightness; + + + kdb_boolean_t cleargraphic; + + + kdb_unsigned_short_t contrast; + + + kdb_boolean_t delaybus; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + const char * port; + + + kdb_boolean_t reboot; + + + const char * size; + +} T6963DriverConfig; + +typedef struct TextDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * size; + +} TextDriverConfig; + +typedef struct TyanDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * size; + + + kdb_unsigned_short_t speed; + +} TyanDriverConfig; + +typedef struct Ula200DriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * file; + + + const char * keymapA; + + + const char * keymapB; + + + const char * keymapC; + + + const char * keymapD; + + + const char * keymapE; + + + const char * keymapF; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * size; + +} Ula200DriverConfig; + +typedef struct Vlsys_m428DriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * device; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + +} Vlsys_m428DriverConfig; + +typedef struct XosdDriverConfig +{ + + const char * Font; + + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + const char * offset; + + + kdb_boolean_t reboot; + + + const char * size; + +} XosdDriverConfig; + +typedef struct Yard2LCDDriverConfig +{ + + kdb_unsigned_short_t brightness; + + + kdb_unsigned_short_t contrast; + + + const char * file; + + + kdb_unsigned_short_t offbrightness; + + + kdb_boolean_t reboot; + + + const char * size; + +} Yard2LCDDriverConfig; + + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (BayradDriverConfig, StructBayradDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (BayradDriverConfig, StructBayradDriverConfig); +ELEKTRA_SET_SIGNATURE (const BayradDriverConfig *, StructBayradDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const BayradDriverConfig *, StructBayradDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (CFontzDriverConfig, StructCFontzDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (CFontzDriverConfig, StructCFontzDriverConfig); +ELEKTRA_SET_SIGNATURE (const CFontzDriverConfig *, StructCFontzDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const CFontzDriverConfig *, StructCFontzDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (CFontzPacketDriverConfig, StructCFontzPacketDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (CFontzPacketDriverConfig, StructCFontzPacketDriverConfig); +ELEKTRA_SET_SIGNATURE (const CFontzPacketDriverConfig *, StructCFontzPacketDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const CFontzPacketDriverConfig *, StructCFontzPacketDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (CursesDriverConfig, StructCursesDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (CursesDriverConfig, StructCursesDriverConfig); +ELEKTRA_SET_SIGNATURE (const CursesDriverConfig *, StructCursesDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const CursesDriverConfig *, StructCursesDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (CwLnxDriverConfig, StructCwLnxDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (CwLnxDriverConfig, StructCwLnxDriverConfig); +ELEKTRA_SET_SIGNATURE (const CwLnxDriverConfig *, StructCwLnxDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const CwLnxDriverConfig *, StructCwLnxDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Ea65DriverConfig, StructEa65DriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Ea65DriverConfig, StructEa65DriverConfig); +ELEKTRA_SET_SIGNATURE (const Ea65DriverConfig *, StructEa65DriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Ea65DriverConfig *, StructEa65DriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (EyeboxOneDriverConfig, StructEyeboxOneDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (EyeboxOneDriverConfig, StructEyeboxOneDriverConfig); +ELEKTRA_SET_SIGNATURE (const EyeboxOneDriverConfig *, StructEyeboxOneDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const EyeboxOneDriverConfig *, StructEyeboxOneDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (FutabaDriverConfig, StructFutabaDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (FutabaDriverConfig, StructFutabaDriverConfig); +ELEKTRA_SET_SIGNATURE (const FutabaDriverConfig *, StructFutabaDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const FutabaDriverConfig *, StructFutabaDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (G15DriverConfig, StructG15DriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (G15DriverConfig, StructG15DriverConfig); +ELEKTRA_SET_SIGNATURE (const G15DriverConfig *, StructG15DriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const G15DriverConfig *, StructG15DriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (GlcdDriverConfig, StructGlcdDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (GlcdDriverConfig, StructGlcdDriverConfig); +ELEKTRA_SET_SIGNATURE (const GlcdDriverConfig *, StructGlcdDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const GlcdDriverConfig *, StructGlcdDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (GlcdlibDriverConfig, StructGlcdlibDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (GlcdlibDriverConfig, StructGlcdlibDriverConfig); +ELEKTRA_SET_SIGNATURE (const GlcdlibDriverConfig *, StructGlcdlibDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const GlcdlibDriverConfig *, StructGlcdlibDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (GlkDriverConfig, StructGlkDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (GlkDriverConfig, StructGlkDriverConfig); +ELEKTRA_SET_SIGNATURE (const GlkDriverConfig *, StructGlkDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const GlkDriverConfig *, StructGlkDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Hd44780DriverConfig, StructHd44780DriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Hd44780DriverConfig, StructHd44780DriverConfig); +ELEKTRA_SET_SIGNATURE (const Hd44780DriverConfig *, StructHd44780DriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Hd44780DriverConfig *, StructHd44780DriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Icp_a106DriverConfig, StructIcp_a106DriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Icp_a106DriverConfig, StructIcp_a106DriverConfig); +ELEKTRA_SET_SIGNATURE (const Icp_a106DriverConfig *, StructIcp_a106DriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Icp_a106DriverConfig *, StructIcp_a106DriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (ImonDriverConfig, StructImonDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (ImonDriverConfig, StructImonDriverConfig); +ELEKTRA_SET_SIGNATURE (const ImonDriverConfig *, StructImonDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const ImonDriverConfig *, StructImonDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (ImonlcdDriverConfig, StructImonlcdDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (ImonlcdDriverConfig, StructImonlcdDriverConfig); +ELEKTRA_SET_SIGNATURE (const ImonlcdDriverConfig *, StructImonlcdDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const ImonlcdDriverConfig *, StructImonlcdDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (IOWarriorDriverConfig, StructIOWarriorDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (IOWarriorDriverConfig, StructIOWarriorDriverConfig); +ELEKTRA_SET_SIGNATURE (const IOWarriorDriverConfig *, StructIOWarriorDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const IOWarriorDriverConfig *, StructIOWarriorDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (IrManDriverConfig, StructIrManDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (IrManDriverConfig, StructIrManDriverConfig); +ELEKTRA_SET_SIGNATURE (const IrManDriverConfig *, StructIrManDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const IrManDriverConfig *, StructIrManDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (IrtransDriverConfig, StructIrtransDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (IrtransDriverConfig, StructIrtransDriverConfig); +ELEKTRA_SET_SIGNATURE (const IrtransDriverConfig *, StructIrtransDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const IrtransDriverConfig *, StructIrtransDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (JoyDriverConfig, StructJoyDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (JoyDriverConfig, StructJoyDriverConfig); +ELEKTRA_SET_SIGNATURE (const JoyDriverConfig *, StructJoyDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const JoyDriverConfig *, StructJoyDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Lb216DriverConfig, StructLb216DriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Lb216DriverConfig, StructLb216DriverConfig); +ELEKTRA_SET_SIGNATURE (const Lb216DriverConfig *, StructLb216DriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Lb216DriverConfig *, StructLb216DriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Lcdm001DriverConfig, StructLcdm001DriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Lcdm001DriverConfig, StructLcdm001DriverConfig); +ELEKTRA_SET_SIGNATURE (const Lcdm001DriverConfig *, StructLcdm001DriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Lcdm001DriverConfig *, StructLcdm001DriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (LctermDriverConfig, StructLctermDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (LctermDriverConfig, StructLctermDriverConfig); +ELEKTRA_SET_SIGNATURE (const LctermDriverConfig *, StructLctermDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const LctermDriverConfig *, StructLctermDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Linux_inputDriverConfig, StructLinux_inputDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Linux_inputDriverConfig, StructLinux_inputDriverConfig); +ELEKTRA_SET_SIGNATURE (const Linux_inputDriverConfig *, StructLinux_inputDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Linux_inputDriverConfig *, StructLinux_inputDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (LircDriverConfig, StructLircDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (LircDriverConfig, StructLircDriverConfig); +ELEKTRA_SET_SIGNATURE (const LircDriverConfig *, StructLircDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const LircDriverConfig *, StructLircDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (LisDriverConfig, StructLisDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (LisDriverConfig, StructLisDriverConfig); +ELEKTRA_SET_SIGNATURE (const LisDriverConfig *, StructLisDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const LisDriverConfig *, StructLisDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (MD8800DriverConfig, StructMD8800DriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (MD8800DriverConfig, StructMD8800DriverConfig); +ELEKTRA_SET_SIGNATURE (const MD8800DriverConfig *, StructMD8800DriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const MD8800DriverConfig *, StructMD8800DriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Mdm166aDriverConfig, StructMdm166aDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Mdm166aDriverConfig, StructMdm166aDriverConfig); +ELEKTRA_SET_SIGNATURE (const Mdm166aDriverConfig *, StructMdm166aDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Mdm166aDriverConfig *, StructMdm166aDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Ms6931DriverConfig, StructMs6931DriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Ms6931DriverConfig, StructMs6931DriverConfig); +ELEKTRA_SET_SIGNATURE (const Ms6931DriverConfig *, StructMs6931DriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Ms6931DriverConfig *, StructMs6931DriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Mtc_s16209xDriverConfig, StructMtc_s16209xDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Mtc_s16209xDriverConfig, StructMtc_s16209xDriverConfig); +ELEKTRA_SET_SIGNATURE (const Mtc_s16209xDriverConfig *, StructMtc_s16209xDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Mtc_s16209xDriverConfig *, StructMtc_s16209xDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (MtxOrbDriverConfig, StructMtxOrbDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (MtxOrbDriverConfig, StructMtxOrbDriverConfig); +ELEKTRA_SET_SIGNATURE (const MtxOrbDriverConfig *, StructMtxOrbDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const MtxOrbDriverConfig *, StructMtxOrbDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Mx5000DriverConfig, StructMx5000DriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Mx5000DriverConfig, StructMx5000DriverConfig); +ELEKTRA_SET_SIGNATURE (const Mx5000DriverConfig *, StructMx5000DriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Mx5000DriverConfig *, StructMx5000DriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (NoritakeVFDDriverConfig, StructNoritakeVFDDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (NoritakeVFDDriverConfig, StructNoritakeVFDDriverConfig); +ELEKTRA_SET_SIGNATURE (const NoritakeVFDDriverConfig *, StructNoritakeVFDDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const NoritakeVFDDriverConfig *, StructNoritakeVFDDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Olimex_MOD_LCD1x9DriverConfig, StructOlimex_MOD_LCD1x9DriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Olimex_MOD_LCD1x9DriverConfig, StructOlimex_MOD_LCD1x9DriverConfig); +ELEKTRA_SET_SIGNATURE (const Olimex_MOD_LCD1x9DriverConfig *, StructOlimex_MOD_LCD1x9DriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Olimex_MOD_LCD1x9DriverConfig *, StructOlimex_MOD_LCD1x9DriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (PicolcdDriverConfig, StructPicolcdDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (PicolcdDriverConfig, StructPicolcdDriverConfig); +ELEKTRA_SET_SIGNATURE (const PicolcdDriverConfig *, StructPicolcdDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const PicolcdDriverConfig *, StructPicolcdDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (PyramidDriverConfig, StructPyramidDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (PyramidDriverConfig, StructPyramidDriverConfig); +ELEKTRA_SET_SIGNATURE (const PyramidDriverConfig *, StructPyramidDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const PyramidDriverConfig *, StructPyramidDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (RawserialDriverConfig, StructRawserialDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (RawserialDriverConfig, StructRawserialDriverConfig); +ELEKTRA_SET_SIGNATURE (const RawserialDriverConfig *, StructRawserialDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const RawserialDriverConfig *, StructRawserialDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Sed1330DriverConfig, StructSed1330DriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Sed1330DriverConfig, StructSed1330DriverConfig); +ELEKTRA_SET_SIGNATURE (const Sed1330DriverConfig *, StructSed1330DriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Sed1330DriverConfig *, StructSed1330DriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Sed1520DriverConfig, StructSed1520DriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Sed1520DriverConfig, StructSed1520DriverConfig); +ELEKTRA_SET_SIGNATURE (const Sed1520DriverConfig *, StructSed1520DriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Sed1520DriverConfig *, StructSed1520DriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (SerialPOSDriverConfig, StructSerialPOSDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SerialPOSDriverConfig, StructSerialPOSDriverConfig); +ELEKTRA_SET_SIGNATURE (const SerialPOSDriverConfig *, StructSerialPOSDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SerialPOSDriverConfig *, StructSerialPOSDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (SerialVFDDriverConfig, StructSerialVFDDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SerialVFDDriverConfig, StructSerialVFDDriverConfig); +ELEKTRA_SET_SIGNATURE (const SerialVFDDriverConfig *, StructSerialVFDDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SerialVFDDriverConfig *, StructSerialVFDDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (SliDriverConfig, StructSliDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SliDriverConfig, StructSliDriverConfig); +ELEKTRA_SET_SIGNATURE (const SliDriverConfig *, StructSliDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SliDriverConfig *, StructSliDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Stv5730DriverConfig, StructStv5730DriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Stv5730DriverConfig, StructStv5730DriverConfig); +ELEKTRA_SET_SIGNATURE (const Stv5730DriverConfig *, StructStv5730DriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Stv5730DriverConfig *, StructStv5730DriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (SureElecDriverConfig, StructSureElecDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SureElecDriverConfig, StructSureElecDriverConfig); +ELEKTRA_SET_SIGNATURE (const SureElecDriverConfig *, StructSureElecDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SureElecDriverConfig *, StructSureElecDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (SvgaDriverConfig, StructSvgaDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SvgaDriverConfig, StructSvgaDriverConfig); +ELEKTRA_SET_SIGNATURE (const SvgaDriverConfig *, StructSvgaDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SvgaDriverConfig *, StructSvgaDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (T6963DriverConfig, StructT6963DriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (T6963DriverConfig, StructT6963DriverConfig); +ELEKTRA_SET_SIGNATURE (const T6963DriverConfig *, StructT6963DriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const T6963DriverConfig *, StructT6963DriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (TextDriverConfig, StructTextDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (TextDriverConfig, StructTextDriverConfig); +ELEKTRA_SET_SIGNATURE (const TextDriverConfig *, StructTextDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const TextDriverConfig *, StructTextDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (TyanDriverConfig, StructTyanDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (TyanDriverConfig, StructTyanDriverConfig); +ELEKTRA_SET_SIGNATURE (const TyanDriverConfig *, StructTyanDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const TyanDriverConfig *, StructTyanDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Ula200DriverConfig, StructUla200DriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Ula200DriverConfig, StructUla200DriverConfig); +ELEKTRA_SET_SIGNATURE (const Ula200DriverConfig *, StructUla200DriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Ula200DriverConfig *, StructUla200DriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Vlsys_m428DriverConfig, StructVlsys_m428DriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Vlsys_m428DriverConfig, StructVlsys_m428DriverConfig); +ELEKTRA_SET_SIGNATURE (const Vlsys_m428DriverConfig *, StructVlsys_m428DriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Vlsys_m428DriverConfig *, StructVlsys_m428DriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (XosdDriverConfig, StructXosdDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (XosdDriverConfig, StructXosdDriverConfig); +ELEKTRA_SET_SIGNATURE (const XosdDriverConfig *, StructXosdDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const XosdDriverConfig *, StructXosdDriverConfig); + + +ELEKTRA_GET_OUT_PTR_SIGNATURE (Yard2LCDDriverConfig, StructYard2LCDDriverConfig); +ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Yard2LCDDriverConfig, StructYard2LCDDriverConfig); +ELEKTRA_SET_SIGNATURE (const Yard2LCDDriverConfig *, StructYard2LCDDriverConfig); +ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Yard2LCDDriverConfig *, StructYard2LCDDriverConfig); + + + +// clang-format off + +// clang-format on + +// clang-format off + +/** +* Tag name for 'bayrad/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_BAYRAD Bayrad + +/** +* Tag name for 'bayrad/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_BAYRAD_DEVICE BayradDevice + +/** +* Tag name for 'bayrad/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_BAYRAD_FILE BayradFile + +/** +* Tag name for 'bayrad/#/speed' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_BAYRAD_SPEED BayradSpeed + +/** +* Tag name for 'cfontz/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZ Cfontz + +/** +* Tag name for 'cfontz/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZ_BRIGHTNESS CfontzBrightness + +/** +* Tag name for 'cfontz/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZ_CONTRAST CfontzContrast + +/** +* Tag name for 'cfontz/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZ_DEVICE CfontzDevice + +/** +* Tag name for 'cfontz/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZ_FILE CfontzFile + +/** +* Tag name for 'cfontz/#/newfirmware' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZ_NEWFIRMWARE CfontzNewfirmware + +/** +* Tag name for 'cfontz/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZ_OFFBRIGHTNESS CfontzOffbrightness + +/** +* Tag name for 'cfontz/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZ_REBOOT CfontzReboot + +/** +* Tag name for 'cfontz/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZ_SIZE CfontzSize + +/** +* Tag name for 'cfontz/#/speed' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZ_SPEED CfontzSpeed + +/** +* Tag name for 'cfontz/#/usb' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZ_USB CfontzUsb + +/** +* Tag name for 'cfontzpacket/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZPACKET Cfontzpacket + +/** +* Tag name for 'cfontzpacket/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZPACKET_BRIGHTNESS CfontzpacketBrightness + +/** +* Tag name for 'cfontzpacket/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZPACKET_CONTRAST CfontzpacketContrast + +/** +* Tag name for 'cfontzpacket/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZPACKET_DEVICE CfontzpacketDevice + +/** +* Tag name for 'cfontzpacket/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZPACKET_FILE CfontzpacketFile + +/** +* Tag name for 'cfontzpacket/#/model' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZPACKET_MODEL CfontzpacketModel + +/** +* Tag name for 'cfontzpacket/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZPACKET_OFFBRIGHTNESS CfontzpacketOffbrightness + +/** +* Tag name for 'cfontzpacket/#/oldfirmware' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZPACKET_OLDFIRMWARE CfontzpacketOldfirmware + +/** +* Tag name for 'cfontzpacket/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZPACKET_REBOOT CfontzpacketReboot + +/** +* Tag name for 'cfontzpacket/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZPACKET_SIZE CfontzpacketSize + +/** +* Tag name for 'cfontzpacket/#/speed' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZPACKET_SPEED CfontzpacketSpeed + +/** +* Tag name for 'cfontzpacket/#/usb' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CFONTZPACKET_USB CfontzpacketUsb + +/** +* Tag name for 'curses/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CURSES Curses + +/** +* Tag name for 'curses/#/background' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CURSES_BACKGROUND CursesBackground + +/** +* Tag name for 'curses/#/backlight' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CURSES_BACKLIGHT CursesBacklight + +/** +* Tag name for 'curses/#/drawborder' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CURSES_DRAWBORDER CursesDrawborder + +/** +* Tag name for 'curses/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CURSES_FILE CursesFile + +/** +* Tag name for 'curses/#/foreground' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CURSES_FOREGROUND CursesForeground + +/** +* Tag name for 'curses/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CURSES_SIZE CursesSize + +/** +* Tag name for 'curses/#/topleftx' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CURSES_TOPLEFTX CursesTopleftx + +/** +* Tag name for 'curses/#/toplefty' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CURSES_TOPLEFTY CursesToplefty + +/** +* Tag name for 'curses/#/useacs' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CURSES_USEACS CursesUseacs + +/** +* Tag name for 'cwlnx/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CWLNX Cwlnx + +/** +* Tag name for 'cwlnx/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CWLNX_DEVICE CwlnxDevice + +/** +* Tag name for 'cwlnx/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CWLNX_FILE CwlnxFile + +/** +* Tag name for 'cwlnx/#/keymap_a' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CWLNX_KEYMAP_A CwlnxKeymapA + +/** +* Tag name for 'cwlnx/#/keymap_b' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CWLNX_KEYMAP_B CwlnxKeymapB + +/** +* Tag name for 'cwlnx/#/keymap_c' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CWLNX_KEYMAP_C CwlnxKeymapC + +/** +* Tag name for 'cwlnx/#/keymap_d' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CWLNX_KEYMAP_D CwlnxKeymapD + +/** +* Tag name for 'cwlnx/#/keymap_e' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CWLNX_KEYMAP_E CwlnxKeymapE + +/** +* Tag name for 'cwlnx/#/keymap_f' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CWLNX_KEYMAP_F CwlnxKeymapF + +/** +* Tag name for 'cwlnx/#/keypad' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CWLNX_KEYPAD CwlnxKeypad + +/** +* Tag name for 'cwlnx/#/keypad_test_mode' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CWLNX_KEYPAD_TEST_MODE CwlnxKeypadTestMode + +/** +* Tag name for 'cwlnx/#/model' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CWLNX_MODEL CwlnxModel + +/** +* Tag name for 'cwlnx/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CWLNX_SIZE CwlnxSize + +/** +* Tag name for 'cwlnx/#/speed' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_CWLNX_SPEED CwlnxSpeed + +/** +* Tag name for 'ea65/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EA65 Ea65 + +/** +* Tag name for 'ea65/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EA65_BRIGHTNESS Ea65Brightness + +/** +* Tag name for 'ea65/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EA65_CONTRAST Ea65Contrast + +/** +* Tag name for 'ea65/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EA65_FILE Ea65File + +/** +* Tag name for 'ea65/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EA65_OFFBRIGHTNESS Ea65Offbrightness + +/** +* Tag name for 'ea65/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EA65_REBOOT Ea65Reboot + +/** +* Tag name for 'eyeboxone/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EYEBOXONE Eyeboxone + +/** +* Tag name for 'eyeboxone/#/backlight' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EYEBOXONE_BACKLIGHT EyeboxoneBacklight + +/** +* Tag name for 'eyeboxone/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EYEBOXONE_BRIGHTNESS EyeboxoneBrightness + +/** +* Tag name for 'eyeboxone/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EYEBOXONE_CONTRAST EyeboxoneContrast + +/** +* Tag name for 'eyeboxone/#/cursor' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EYEBOXONE_CURSOR EyeboxoneCursor + +/** +* Tag name for 'eyeboxone/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EYEBOXONE_DEVICE EyeboxoneDevice + +/** +* Tag name for 'eyeboxone/#/downkey' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EYEBOXONE_DOWNKEY EyeboxoneDownkey + +/** +* Tag name for 'eyeboxone/#/escapekey' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EYEBOXONE_ESCAPEKEY EyeboxoneEscapekey + +/** +* Tag name for 'eyeboxone/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EYEBOXONE_FILE EyeboxoneFile + +/** +* Tag name for 'eyeboxone/#/keypad_test_mode' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EYEBOXONE_KEYPAD_TEST_MODE EyeboxoneKeypadTestMode + +/** +* Tag name for 'eyeboxone/#/leftkey' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EYEBOXONE_LEFTKEY EyeboxoneLeftkey + +/** +* Tag name for 'eyeboxone/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EYEBOXONE_OFFBRIGHTNESS EyeboxoneOffbrightness + +/** +* Tag name for 'eyeboxone/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EYEBOXONE_REBOOT EyeboxoneReboot + +/** +* Tag name for 'eyeboxone/#/rightkey' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EYEBOXONE_RIGHTKEY EyeboxoneRightkey + +/** +* Tag name for 'eyeboxone/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EYEBOXONE_SIZE EyeboxoneSize + +/** +* Tag name for 'eyeboxone/#/speed' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EYEBOXONE_SPEED EyeboxoneSpeed + +/** +* Tag name for 'eyeboxone/#/upkey' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_EYEBOXONE_UPKEY EyeboxoneUpkey + +/** +* Tag name for 'futaba/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_FUTABA Futaba + +/** +* Tag name for 'futaba/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_FUTABA_FILE FutabaFile + +/** +* Tag name for 'g15/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_G15 G15 + +/** +* Tag name for 'g15/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_G15_BRIGHTNESS G15Brightness + +/** +* Tag name for 'g15/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_G15_CONTRAST G15Contrast + +/** +* Tag name for 'g15/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_G15_FILE G15File + +/** +* Tag name for 'g15/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_G15_OFFBRIGHTNESS G15Offbrightness + +/** +* Tag name for 'g15/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_G15_REBOOT G15Reboot + +/** +* Tag name for 'g15/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_G15_SIZE G15Size + +/** +* Tag name for 'glcd/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD Glcd + +/** +* Tag name for 'glcd/#/bidirectional' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_BIDIRECTIONAL GlcdBidirectional + +/** +* Tag name for 'glcd/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_BRIGHTNESS GlcdBrightness + +/** +* Tag name for 'glcd/#/cellsize' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_CELLSIZE GlcdCellsize + +/** +* Tag name for 'glcd/#/connectiontype' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_CONNECTIONTYPE GlcdConnectiontype + +/** +* Tag name for 'glcd/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_CONTRAST GlcdContrast + +/** +* Tag name for 'glcd/#/delaybus' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_DELAYBUS GlcdDelaybus + +/** +* Tag name for 'glcd/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_FILE GlcdFile + +/** +* Tag name for 'glcd/#/fonthasicons' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_FONTHASICONS GlcdFonthasicons + +/** +* Tag name for 'glcd/#/keymap_a' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_KEYMAP_A GlcdKeymapA + +/** +* Tag name for 'glcd/#/keymap_b' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_KEYMAP_B GlcdKeymapB + +/** +* Tag name for 'glcd/#/keymap_c' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_KEYMAP_C GlcdKeymapC + +/** +* Tag name for 'glcd/#/keymap_d' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_KEYMAP_D GlcdKeymapD + +/** +* Tag name for 'glcd/#/keymap_e' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_KEYMAP_E GlcdKeymapE + +/** +* Tag name for 'glcd/#/keymap_f' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_KEYMAP_F GlcdKeymapF + +/** +* Tag name for 'glcd/#/keyrepeatdelay' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_KEYREPEATDELAY GlcdKeyrepeatdelay + +/** +* Tag name for 'glcd/#/keyrepeatinterval' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_KEYREPEATINTERVAL GlcdKeyrepeatinterval + +/** +* Tag name for 'glcd/#/normal_font' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_NORMAL_FONT GlcdNormalFont + +/** +* Tag name for 'glcd/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_OFFBRIGHTNESS GlcdOffbrightness + +/** +* Tag name for 'glcd/#/picolcdgfx_inverted' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_PICOLCDGFX_INVERTED GlcdPicolcdgfxInverted + +/** +* Tag name for 'glcd/#/picolcdgfx_keytimeout' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_PICOLCDGFX_KEYTIMEOUT GlcdPicolcdgfxKeytimeout + +/** +* Tag name for 'glcd/#/port' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_PORT GlcdPort + +/** +* Tag name for 'glcd/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_REBOOT GlcdReboot + +/** +* Tag name for 'glcd/#/serdisp_device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_SERDISP_DEVICE GlcdSerdispDevice + +/** +* Tag name for 'glcd/#/serdisp_name' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_SERDISP_NAME GlcdSerdispName + +/** +* Tag name for 'glcd/#/serdisp_options' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_SERDISP_OPTIONS GlcdSerdispOptions + +/** +* Tag name for 'glcd/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_SIZE GlcdSize + +/** +* Tag name for 'glcd/#/useft2' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_USEFT2 GlcdUseft2 + +/** +* Tag name for 'glcd/#/x11_backlightcolor' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_X11_BACKLIGHTCOLOR GlcdX11Backlightcolor + +/** +* Tag name for 'glcd/#/x11_border' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_X11_BORDER GlcdX11Border + +/** +* Tag name for 'glcd/#/x11_inverted' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_X11_INVERTED GlcdX11Inverted + +/** +* Tag name for 'glcd/#/x11_pixelcolor' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_X11_PIXELCOLOR GlcdX11Pixelcolor + +/** +* Tag name for 'glcd/#/x11_pixelsize' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCD_X11_PIXELSIZE GlcdX11Pixelsize + +/** +* Tag name for 'glcdlib/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB Glcdlib + +/** +* Tag name for 'glcdlib/#/CharEncoding' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_CHARENCODING GlcdlibCharEncoding + +/** +* Tag name for 'glcdlib/#/backlight' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_BACKLIGHT GlcdlibBacklight + +/** +* Tag name for 'glcdlib/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_BRIGHTNESS GlcdlibBrightness + +/** +* Tag name for 'glcdlib/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_CONTRAST GlcdlibContrast + +/** +* Tag name for 'glcdlib/#/driver' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_DRIVER GlcdlibDriver + +/** +* Tag name for 'glcdlib/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_FILE GlcdlibFile + +/** +* Tag name for 'glcdlib/#/fontfile' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_FONTFILE GlcdlibFontfile + +/** +* Tag name for 'glcdlib/#/invert' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_INVERT GlcdlibInvert + +/** +* Tag name for 'glcdlib/#/minfontfacesize' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_MINFONTFACESIZE GlcdlibMinfontfacesize + +/** +* Tag name for 'glcdlib/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_OFFBRIGHTNESS GlcdlibOffbrightness + +/** +* Tag name for 'glcdlib/#/pixelshiftx' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_PIXELSHIFTX GlcdlibPixelshiftx + +/** +* Tag name for 'glcdlib/#/pixelshifty' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_PIXELSHIFTY GlcdlibPixelshifty + +/** +* Tag name for 'glcdlib/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_REBOOT GlcdlibReboot + +/** +* Tag name for 'glcdlib/#/showbigborder' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_SHOWBIGBORDER GlcdlibShowbigborder + +/** +* Tag name for 'glcdlib/#/showdebugframe' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_SHOWDEBUGFRAME GlcdlibShowdebugframe + +/** +* Tag name for 'glcdlib/#/showthinborder' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_SHOWTHINBORDER GlcdlibShowthinborder + +/** +* Tag name for 'glcdlib/#/textresolution' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_TEXTRESOLUTION GlcdlibTextresolution + +/** +* Tag name for 'glcdlib/#/upsidedown' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_UPSIDEDOWN GlcdlibUpsidedown + +/** +* Tag name for 'glcdlib/#/useft2' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLCDLIB_USEFT2 GlcdlibUseft2 + +/** +* Tag name for 'glk/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLK Glk + +/** +* Tag name for 'glk/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLK_CONTRAST GlkContrast + +/** +* Tag name for 'glk/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLK_DEVICE GlkDevice + +/** +* Tag name for 'glk/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLK_FILE GlkFile + +/** +* Tag name for 'glk/#/speed' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_GLK_SPEED GlkSpeed + +/** +* Tag name for 'hd44780/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780 Hd44780 + +/** +* Tag name for 'hd44780/#/backlight' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_BACKLIGHT Hd44780Backlight + +/** +* Tag name for 'hd44780/#/backlightcmdoff' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_BACKLIGHTCMDOFF Hd44780Backlightcmdoff + +/** +* Tag name for 'hd44780/#/backlightcmdon' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_BACKLIGHTCMDON Hd44780Backlightcmdon + +/** +* Tag name for 'hd44780/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_BRIGHTNESS Hd44780Brightness + +/** +* Tag name for 'hd44780/#/charmap' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_CHARMAP Hd44780Charmap + +/** +* Tag name for 'hd44780/#/connectiontype' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_CONNECTIONTYPE Hd44780Connectiontype + +/** +* Tag name for 'hd44780/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_CONTRAST Hd44780Contrast + +/** +* Tag name for 'hd44780/#/delaybus' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_DELAYBUS Hd44780Delaybus + +/** +* Tag name for 'hd44780/#/delaymult' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_DELAYMULT Hd44780Delaymult + +/** +* Tag name for 'hd44780/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_DEVICE Hd44780Device + +/** +* Tag name for 'hd44780/#/extendedmode' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_EXTENDEDMODE Hd44780Extendedmode + +/** +* Tag name for 'hd44780/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_FILE Hd44780File + +/** +* Tag name for 'hd44780/#/fontbank' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_FONTBANK Hd44780Fontbank + +/** +* Tag name for 'hd44780/#/keepalivedisplay' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_KEEPALIVEDISPLAY Hd44780Keepalivedisplay + +/** +* Tag name for 'hd44780/#/keymatrix_4_1' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_KEYMATRIX_4_1 Hd44780Keymatrix41 + +/** +* Tag name for 'hd44780/#/keymatrix_4_2' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_KEYMATRIX_4_2 Hd44780Keymatrix42 + +/** +* Tag name for 'hd44780/#/keymatrix_4_3' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_KEYMATRIX_4_3 Hd44780Keymatrix43 + +/** +* Tag name for 'hd44780/#/keymatrix_4_4' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_KEYMATRIX_4_4 Hd44780Keymatrix44 + +/** +* Tag name for 'hd44780/#/keypad' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_KEYPAD Hd44780Keypad + +/** +* Tag name for 'hd44780/#/lastline' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_LASTLINE Hd44780Lastline + +/** +* Tag name for 'hd44780/#/lineaddress' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_LINEADDRESS Hd44780Lineaddress + +/** +* Tag name for 'hd44780/#/model' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_MODEL Hd44780Model + +/** +* Tag name for 'hd44780/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_OFFBRIGHTNESS Hd44780Offbrightness + +/** +* Tag name for 'hd44780/#/outputport' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_OUTPUTPORT Hd44780Outputport + +/** +* Tag name for 'hd44780/#/port' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_PORT Hd44780Port + +/** +* Tag name for 'hd44780/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_REBOOT Hd44780Reboot + +/** +* Tag name for 'hd44780/#/refreshdisplay' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_REFRESHDISPLAY Hd44780Refreshdisplay + +/** +* Tag name for 'hd44780/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_SIZE Hd44780Size + +/** +* Tag name for 'hd44780/#/speed' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_SPEED Hd44780Speed + +/** +* Tag name for 'hd44780/#/vspan' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_HD44780_VSPAN Hd44780Vspan + +/** +* Tag name for 'icp_a106/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ICP_A106 IcpA106 + +/** +* Tag name for 'icp_a106/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ICP_A106_BRIGHTNESS IcpA106Brightness + +/** +* Tag name for 'icp_a106/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ICP_A106_CONTRAST IcpA106Contrast + +/** +* Tag name for 'icp_a106/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ICP_A106_DEVICE IcpA106Device + +/** +* Tag name for 'icp_a106/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ICP_A106_FILE IcpA106File + +/** +* Tag name for 'icp_a106/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ICP_A106_OFFBRIGHTNESS IcpA106Offbrightness + +/** +* Tag name for 'icp_a106/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ICP_A106_REBOOT IcpA106Reboot + +/** +* Tag name for 'icp_a106/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ICP_A106_SIZE IcpA106Size + +/** +* Tag name for 'imon/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMON Imon + +/** +* Tag name for 'imon/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMON_BRIGHTNESS ImonBrightness + +/** +* Tag name for 'imon/#/charmap' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMON_CHARMAP ImonCharmap + +/** +* Tag name for 'imon/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMON_CONTRAST ImonContrast + +/** +* Tag name for 'imon/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMON_DEVICE ImonDevice + +/** +* Tag name for 'imon/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMON_FILE ImonFile + +/** +* Tag name for 'imon/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMON_OFFBRIGHTNESS ImonOffbrightness + +/** +* Tag name for 'imon/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMON_REBOOT ImonReboot + +/** +* Tag name for 'imon/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMON_SIZE ImonSize + +/** +* Tag name for 'imonlcd/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMONLCD Imonlcd + +/** +* Tag name for 'imonlcd/#/backlight' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMONLCD_BACKLIGHT ImonlcdBacklight + +/** +* Tag name for 'imonlcd/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMONLCD_BRIGHTNESS ImonlcdBrightness + +/** +* Tag name for 'imonlcd/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMONLCD_CONTRAST ImonlcdContrast + +/** +* Tag name for 'imonlcd/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMONLCD_DEVICE ImonlcdDevice + +/** +* Tag name for 'imonlcd/#/discmode' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMONLCD_DISCMODE ImonlcdDiscmode + +/** +* Tag name for 'imonlcd/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMONLCD_FILE ImonlcdFile + +/** +* Tag name for 'imonlcd/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMONLCD_OFFBRIGHTNESS ImonlcdOffbrightness + +/** +* Tag name for 'imonlcd/#/onexit' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMONLCD_ONEXIT ImonlcdOnexit + +/** +* Tag name for 'imonlcd/#/protocol' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMONLCD_PROTOCOL ImonlcdProtocol + +/** +* Tag name for 'imonlcd/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMONLCD_REBOOT ImonlcdReboot + +/** +* Tag name for 'imonlcd/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IMONLCD_SIZE ImonlcdSize + +/** +* Tag name for 'iowarrior/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IOWARRIOR Iowarrior + +/** +* Tag name for 'iowarrior/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IOWARRIOR_BRIGHTNESS IowarriorBrightness + +/** +* Tag name for 'iowarrior/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IOWARRIOR_CONTRAST IowarriorContrast + +/** +* Tag name for 'iowarrior/#/extendedmode' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IOWARRIOR_EXTENDEDMODE IowarriorExtendedmode + +/** +* Tag name for 'iowarrior/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IOWARRIOR_FILE IowarriorFile + +/** +* Tag name for 'iowarrior/#/lastline' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IOWARRIOR_LASTLINE IowarriorLastline + +/** +* Tag name for 'iowarrior/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IOWARRIOR_OFFBRIGHTNESS IowarriorOffbrightness + +/** +* Tag name for 'iowarrior/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IOWARRIOR_REBOOT IowarriorReboot + +/** +* Tag name for 'iowarrior/#/serialnumber' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IOWARRIOR_SERIALNUMBER IowarriorSerialnumber + +/** +* Tag name for 'iowarrior/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IOWARRIOR_SIZE IowarriorSize + +/** +* Tag name for 'irman/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IRMAN Irman + +/** +* Tag name for 'irman/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IRMAN_BRIGHTNESS IrmanBrightness + +/** +* Tag name for 'irman/#/config' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IRMAN_CONFIG IrmanConfig + +/** +* Tag name for 'irman/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IRMAN_CONTRAST IrmanContrast + +/** +* Tag name for 'irman/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IRMAN_DEVICE IrmanDevice + +/** +* Tag name for 'irman/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IRMAN_FILE IrmanFile + +/** +* Tag name for 'irman/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IRMAN_OFFBRIGHTNESS IrmanOffbrightness + +/** +* Tag name for 'irman/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IRMAN_REBOOT IrmanReboot + +/** +* Tag name for 'irtrans/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IRTRANS Irtrans + +/** +* Tag name for 'irtrans/#/backlight' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IRTRANS_BACKLIGHT IrtransBacklight + +/** +* Tag name for 'irtrans/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IRTRANS_BRIGHTNESS IrtransBrightness + +/** +* Tag name for 'irtrans/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IRTRANS_CONTRAST IrtransContrast + +/** +* Tag name for 'irtrans/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IRTRANS_FILE IrtransFile + +/** +* Tag name for 'irtrans/#/hostname' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IRTRANS_HOSTNAME IrtransHostname + +/** +* Tag name for 'irtrans/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IRTRANS_OFFBRIGHTNESS IrtransOffbrightness + +/** +* Tag name for 'irtrans/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IRTRANS_REBOOT IrtransReboot + +/** +* Tag name for 'irtrans/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_IRTRANS_SIZE IrtransSize + +/** +* Tag name for 'joy/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_JOY Joy + +/** +* Tag name for 'joy/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_JOY_BRIGHTNESS JoyBrightness + +/** +* Tag name for 'joy/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_JOY_CONTRAST JoyContrast + +/** +* Tag name for 'joy/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_JOY_DEVICE JoyDevice + +/** +* Tag name for 'joy/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_JOY_FILE JoyFile + +/** +* Tag name for 'joy/#/map_axis1neg' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_JOY_MAP_AXIS1NEG JoyMapAxis1neg + +/** +* Tag name for 'joy/#/map_axis1pos' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_JOY_MAP_AXIS1POS JoyMapAxis1pos + +/** +* Tag name for 'joy/#/map_axis2neg' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_JOY_MAP_AXIS2NEG JoyMapAxis2neg + +/** +* Tag name for 'joy/#/map_axis2pos' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_JOY_MAP_AXIS2POS JoyMapAxis2pos + +/** +* Tag name for 'joy/#/map_button1' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_JOY_MAP_BUTTON1 JoyMapButton1 + +/** +* Tag name for 'joy/#/map_button2' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_JOY_MAP_BUTTON2 JoyMapButton2 + +/** +* Tag name for 'joy/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_JOY_OFFBRIGHTNESS JoyOffbrightness + +/** +* Tag name for 'joy/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_JOY_REBOOT JoyReboot + +/** +* Tag name for 'lb216/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LB216 Lb216 + +/** +* Tag name for 'lb216/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LB216_BRIGHTNESS Lb216Brightness + +/** +* Tag name for 'lb216/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LB216_DEVICE Lb216Device + +/** +* Tag name for 'lb216/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LB216_FILE Lb216File + +/** +* Tag name for 'lb216/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LB216_REBOOT Lb216Reboot + +/** +* Tag name for 'lb216/#/speed' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LB216_SPEED Lb216Speed + +/** +* Tag name for 'lcdm001/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LCDM001 Lcdm001 + +/** +* Tag name for 'lcdm001/#/backkey' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LCDM001_BACKKEY Lcdm001Backkey + +/** +* Tag name for 'lcdm001/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LCDM001_DEVICE Lcdm001Device + +/** +* Tag name for 'lcdm001/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LCDM001_FILE Lcdm001File + +/** +* Tag name for 'lcdm001/#/forwardkey' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LCDM001_FORWARDKEY Lcdm001Forwardkey + +/** +* Tag name for 'lcdm001/#/mainmenukey' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LCDM001_MAINMENUKEY Lcdm001Mainmenukey + +/** +* Tag name for 'lcdm001/#/pausekey' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LCDM001_PAUSEKEY Lcdm001Pausekey + +/** +* Tag name for 'lcterm/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LCTERM Lcterm + +/** +* Tag name for 'lcterm/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LCTERM_BRIGHTNESS LctermBrightness + +/** +* Tag name for 'lcterm/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LCTERM_CONTRAST LctermContrast + +/** +* Tag name for 'lcterm/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LCTERM_DEVICE LctermDevice + +/** +* Tag name for 'lcterm/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LCTERM_FILE LctermFile + +/** +* Tag name for 'lcterm/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LCTERM_OFFBRIGHTNESS LctermOffbrightness + +/** +* Tag name for 'lcterm/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LCTERM_REBOOT LctermReboot + +/** +* Tag name for 'lcterm/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LCTERM_SIZE LctermSize + +/** +* Tag name for 'linux_input/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LINUX_INPUT LinuxInput + +/** +* Tag name for 'linux_input/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LINUX_INPUT_BRIGHTNESS LinuxInputBrightness + +/** +* Tag name for 'linux_input/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LINUX_INPUT_CONTRAST LinuxInputContrast + +/** +* Tag name for 'linux_input/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LINUX_INPUT_DEVICE LinuxInputDevice + +/** +* Tag name for 'linux_input/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LINUX_INPUT_FILE LinuxInputFile + +/** +* Tag name for 'linux_input/#/key/_' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* - const char * name1: Replaces occurence no. 1 of _ in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LINUX_INPUT_KEY LinuxInputKey + +/** +* Tag name for 'linux_input/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LINUX_INPUT_OFFBRIGHTNESS LinuxInputOffbrightness + +/** +* Tag name for 'linux_input/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LINUX_INPUT_REBOOT LinuxInputReboot + +/** +* Tag name for 'lirc/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIRC Lirc + +/** +* Tag name for 'lirc/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIRC_BRIGHTNESS LircBrightness + +/** +* Tag name for 'lirc/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIRC_CONTRAST LircContrast + +/** +* Tag name for 'lirc/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIRC_FILE LircFile + +/** +* Tag name for 'lirc/#/lircrc' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIRC_LIRCRC LircLircrc + +/** +* Tag name for 'lirc/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIRC_OFFBRIGHTNESS LircOffbrightness + +/** +* Tag name for 'lirc/#/prog' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIRC_PROG LircProg + +/** +* Tag name for 'lirc/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIRC_REBOOT LircReboot + +/** +* Tag name for 'lis/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIS Lis + +/** +* Tag name for 'lis/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIS_BRIGHTNESS LisBrightness + +/** +* Tag name for 'lis/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIS_CONTRAST LisContrast + +/** +* Tag name for 'lis/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIS_FILE LisFile + +/** +* Tag name for 'lis/#/lastline' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIS_LASTLINE LisLastline + +/** +* Tag name for 'lis/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIS_OFFBRIGHTNESS LisOffbrightness + +/** +* Tag name for 'lis/#/productid' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIS_PRODUCTID LisProductid + +/** +* Tag name for 'lis/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIS_REBOOT LisReboot + +/** +* Tag name for 'lis/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIS_SIZE LisSize + +/** +* Tag name for 'lis/#/vendorid' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_LIS_VENDORID LisVendorid + +/** +* Tag name for 'md8800/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MD8800 Md8800 + +/** +* Tag name for 'md8800/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MD8800_BRIGHTNESS Md8800Brightness + +/** +* Tag name for 'md8800/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MD8800_CONTRAST Md8800Contrast + +/** +* Tag name for 'md8800/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MD8800_DEVICE Md8800Device + +/** +* Tag name for 'md8800/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MD8800_FILE Md8800File + +/** +* Tag name for 'md8800/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MD8800_OFFBRIGHTNESS Md8800Offbrightness + +/** +* Tag name for 'md8800/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MD8800_REBOOT Md8800Reboot + +/** +* Tag name for 'md8800/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MD8800_SIZE Md8800Size + +/** +* Tag name for 'mdm166a/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MDM166A Mdm166a + +/** +* Tag name for 'mdm166a/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MDM166A_BRIGHTNESS Mdm166aBrightness + +/** +* Tag name for 'mdm166a/#/clock' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MDM166A_CLOCK Mdm166aClock + +/** +* Tag name for 'mdm166a/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MDM166A_CONTRAST Mdm166aContrast + +/** +* Tag name for 'mdm166a/#/dimming' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MDM166A_DIMMING Mdm166aDimming + +/** +* Tag name for 'mdm166a/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MDM166A_FILE Mdm166aFile + +/** +* Tag name for 'mdm166a/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MDM166A_OFFBRIGHTNESS Mdm166aOffbrightness + +/** +* Tag name for 'mdm166a/#/offdimming' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MDM166A_OFFDIMMING Mdm166aOffdimming + +/** +* Tag name for 'mdm166a/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MDM166A_REBOOT Mdm166aReboot + +/** +* Tag name for 'menu/downkey' +* +*/// +#define ELEKTRA_TAG_MENU_DOWNKEY MenuDownkey + +/** +* Tag name for 'menu/enterkey' +* +*/// +#define ELEKTRA_TAG_MENU_ENTERKEY MenuEnterkey + +/** +* Tag name for 'menu/leftkey' +* +*/// +#define ELEKTRA_TAG_MENU_LEFTKEY MenuLeftkey + +/** +* Tag name for 'menu/menukey' +* +*/// +#define ELEKTRA_TAG_MENU_MENUKEY MenuMenukey + +/** +* Tag name for 'menu/permissivegoto' +* +*/// +#define ELEKTRA_TAG_MENU_PERMISSIVEGOTO MenuPermissivegoto + +/** +* Tag name for 'menu/rightkey' +* +*/// +#define ELEKTRA_TAG_MENU_RIGHTKEY MenuRightkey + +/** +* Tag name for 'menu/upkey' +* +*/// +#define ELEKTRA_TAG_MENU_UPKEY MenuUpkey + +/** +* Tag name for 'ms6931/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MS6931 Ms6931 + +/** +* Tag name for 'ms6931/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MS6931_BRIGHTNESS Ms6931Brightness + +/** +* Tag name for 'ms6931/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MS6931_CONTRAST Ms6931Contrast + +/** +* Tag name for 'ms6931/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MS6931_DEVICE Ms6931Device + +/** +* Tag name for 'ms6931/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MS6931_FILE Ms6931File + +/** +* Tag name for 'ms6931/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MS6931_OFFBRIGHTNESS Ms6931Offbrightness + +/** +* Tag name for 'ms6931/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MS6931_REBOOT Ms6931Reboot + +/** +* Tag name for 'ms6931/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MS6931_SIZE Ms6931Size + +/** +* Tag name for 'mtc_s16209x/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTC_S16209X MtcS16209x + +/** +* Tag name for 'mtc_s16209x/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTC_S16209X_BRIGHTNESS MtcS16209xBrightness + +/** +* Tag name for 'mtc_s16209x/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTC_S16209X_CONTRAST MtcS16209xContrast + +/** +* Tag name for 'mtc_s16209x/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTC_S16209X_DEVICE MtcS16209xDevice + +/** +* Tag name for 'mtc_s16209x/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTC_S16209X_FILE MtcS16209xFile + +/** +* Tag name for 'mtc_s16209x/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTC_S16209X_OFFBRIGHTNESS MtcS16209xOffbrightness + +/** +* Tag name for 'mtc_s16209x/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTC_S16209X_REBOOT MtcS16209xReboot + +/** +* Tag name for 'mtxorb/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTXORB Mtxorb + +/** +* Tag name for 'mtxorb/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTXORB_BRIGHTNESS MtxorbBrightness + +/** +* Tag name for 'mtxorb/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTXORB_CONTRAST MtxorbContrast + +/** +* Tag name for 'mtxorb/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTXORB_DEVICE MtxorbDevice + +/** +* Tag name for 'mtxorb/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTXORB_FILE MtxorbFile + +/** +* Tag name for 'mtxorb/#/hasadjustablebacklight' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTXORB_HASADJUSTABLEBACKLIGHT MtxorbHasadjustablebacklight + +/** +* Tag name for 'mtxorb/#/keymap_a' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTXORB_KEYMAP_A MtxorbKeymapA + +/** +* Tag name for 'mtxorb/#/keymap_b' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTXORB_KEYMAP_B MtxorbKeymapB + +/** +* Tag name for 'mtxorb/#/keymap_c' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTXORB_KEYMAP_C MtxorbKeymapC + +/** +* Tag name for 'mtxorb/#/keymap_d' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTXORB_KEYMAP_D MtxorbKeymapD + +/** +* Tag name for 'mtxorb/#/keymap_e' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTXORB_KEYMAP_E MtxorbKeymapE + +/** +* Tag name for 'mtxorb/#/keymap_f' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTXORB_KEYMAP_F MtxorbKeymapF + +/** +* Tag name for 'mtxorb/#/keypad_test_mode' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTXORB_KEYPAD_TEST_MODE MtxorbKeypadTestMode + +/** +* Tag name for 'mtxorb/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTXORB_OFFBRIGHTNESS MtxorbOffbrightness + +/** +* Tag name for 'mtxorb/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTXORB_SIZE MtxorbSize + +/** +* Tag name for 'mtxorb/#/speed' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTXORB_SPEED MtxorbSpeed + +/** +* Tag name for 'mtxorb/#/type' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MTXORB_TYPE MtxorbType + +/** +* Tag name for 'mx5000/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MX5000 Mx5000 + +/** +* Tag name for 'mx5000/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MX5000_BRIGHTNESS Mx5000Brightness + +/** +* Tag name for 'mx5000/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MX5000_CONTRAST Mx5000Contrast + +/** +* Tag name for 'mx5000/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MX5000_DEVICE Mx5000Device + +/** +* Tag name for 'mx5000/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MX5000_FILE Mx5000File + +/** +* Tag name for 'mx5000/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MX5000_OFFBRIGHTNESS Mx5000Offbrightness + +/** +* Tag name for 'mx5000/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MX5000_REBOOT Mx5000Reboot + +/** +* Tag name for 'mx5000/#/waitafterrefresh' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_MX5000_WAITAFTERREFRESH Mx5000Waitafterrefresh + +/** +* Tag name for 'noritakevfd/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_NORITAKEVFD Noritakevfd + +/** +* Tag name for 'noritakevfd/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_NORITAKEVFD_BRIGHTNESS NoritakevfdBrightness + +/** +* Tag name for 'noritakevfd/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_NORITAKEVFD_CONTRAST NoritakevfdContrast + +/** +* Tag name for 'noritakevfd/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_NORITAKEVFD_DEVICE NoritakevfdDevice + +/** +* Tag name for 'noritakevfd/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_NORITAKEVFD_FILE NoritakevfdFile + +/** +* Tag name for 'noritakevfd/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_NORITAKEVFD_OFFBRIGHTNESS NoritakevfdOffbrightness + +/** +* Tag name for 'noritakevfd/#/parity' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_NORITAKEVFD_PARITY NoritakevfdParity + +/** +* Tag name for 'noritakevfd/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_NORITAKEVFD_REBOOT NoritakevfdReboot + +/** +* Tag name for 'noritakevfd/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_NORITAKEVFD_SIZE NoritakevfdSize + +/** +* Tag name for 'noritakevfd/#/speed' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_NORITAKEVFD_SPEED NoritakevfdSpeed + +/** +* Tag name for 'olimex_mod_lcd1x9/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_OLIMEX_MOD_LCD1X9 OlimexModLcd1x9 + +/** +* Tag name for 'olimex_mod_lcd1x9/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_OLIMEX_MOD_LCD1X9_BRIGHTNESS OlimexModLcd1x9Brightness + +/** +* Tag name for 'olimex_mod_lcd1x9/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_OLIMEX_MOD_LCD1X9_CONTRAST OlimexModLcd1x9Contrast + +/** +* Tag name for 'olimex_mod_lcd1x9/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_OLIMEX_MOD_LCD1X9_DEVICE OlimexModLcd1x9Device + +/** +* Tag name for 'olimex_mod_lcd1x9/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_OLIMEX_MOD_LCD1X9_FILE OlimexModLcd1x9File + +/** +* Tag name for 'olimex_mod_lcd1x9/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_OLIMEX_MOD_LCD1X9_OFFBRIGHTNESS OlimexModLcd1x9Offbrightness + +/** +* Tag name for 'olimex_mod_lcd1x9/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_OLIMEX_MOD_LCD1X9_REBOOT OlimexModLcd1x9Reboot + +/** +* Tag name for 'picolcd/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD Picolcd + +/** +* Tag name for 'picolcd/#/backlight' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_BACKLIGHT PicolcdBacklight + +/** +* Tag name for 'picolcd/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_BRIGHTNESS PicolcdBrightness + +/** +* Tag name for 'picolcd/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_CONTRAST PicolcdContrast + +/** +* Tag name for 'picolcd/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_FILE PicolcdFile + +/** +* Tag name for 'picolcd/#/key0light' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_KEY0LIGHT PicolcdKey0light + +/** +* Tag name for 'picolcd/#/key1light' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_KEY1LIGHT PicolcdKey1light + +/** +* Tag name for 'picolcd/#/key2light' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_KEY2LIGHT PicolcdKey2light + +/** +* Tag name for 'picolcd/#/key3light' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_KEY3LIGHT PicolcdKey3light + +/** +* Tag name for 'picolcd/#/key4light' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_KEY4LIGHT PicolcdKey4light + +/** +* Tag name for 'picolcd/#/key5light' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_KEY5LIGHT PicolcdKey5light + +/** +* Tag name for 'picolcd/#/keylights' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_KEYLIGHTS PicolcdKeylights + +/** +* Tag name for 'picolcd/#/keyrepeatdelay' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_KEYREPEATDELAY PicolcdKeyrepeatdelay + +/** +* Tag name for 'picolcd/#/keyrepeatinterval' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_KEYREPEATINTERVAL PicolcdKeyrepeatinterval + +/** +* Tag name for 'picolcd/#/keytimeout' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_KEYTIMEOUT PicolcdKeytimeout + +/** +* Tag name for 'picolcd/#/linklights' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_LINKLIGHTS PicolcdLinklights + +/** +* Tag name for 'picolcd/#/lircflushthreshold' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_LIRCFLUSHTHRESHOLD PicolcdLircflushthreshold + +/** +* Tag name for 'picolcd/#/lirchost' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_LIRCHOST PicolcdLirchost + +/** +* Tag name for 'picolcd/#/lircport' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_LIRCPORT PicolcdLircport + +/** +* Tag name for 'picolcd/#/lirctime_us' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_LIRCTIME_US PicolcdLirctimeUs + +/** +* Tag name for 'picolcd/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_OFFBRIGHTNESS PicolcdOffbrightness + +/** +* Tag name for 'picolcd/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PICOLCD_REBOOT PicolcdReboot + +/** +* Tag name for 'pyramid/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PYRAMID Pyramid + +/** +* Tag name for 'pyramid/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PYRAMID_DEVICE PyramidDevice + +/** +* Tag name for 'pyramid/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_PYRAMID_FILE PyramidFile + +/** +* Tag name for 'rawserial/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_RAWSERIAL Rawserial + +/** +* Tag name for 'rawserial/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_RAWSERIAL_BRIGHTNESS RawserialBrightness + +/** +* Tag name for 'rawserial/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_RAWSERIAL_CONTRAST RawserialContrast + +/** +* Tag name for 'rawserial/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_RAWSERIAL_DEVICE RawserialDevice + +/** +* Tag name for 'rawserial/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_RAWSERIAL_FILE RawserialFile + +/** +* Tag name for 'rawserial/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_RAWSERIAL_OFFBRIGHTNESS RawserialOffbrightness + +/** +* Tag name for 'rawserial/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_RAWSERIAL_REBOOT RawserialReboot + +/** +* Tag name for 'rawserial/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_RAWSERIAL_SIZE RawserialSize + +/** +* Tag name for 'rawserial/#/speed' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_RAWSERIAL_SPEED RawserialSpeed + +/** +* Tag name for 'rawserial/#/updaterate' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_RAWSERIAL_UPDATERATE RawserialUpdaterate + +/** +* Tag name for 'sed1330/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1330 Sed1330 + +/** +* Tag name for 'sed1330/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1330_BRIGHTNESS Sed1330Brightness + +/** +* Tag name for 'sed1330/#/cellsize' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1330_CELLSIZE Sed1330Cellsize + +/** +* Tag name for 'sed1330/#/connectiontype' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1330_CONNECTIONTYPE Sed1330Connectiontype + +/** +* Tag name for 'sed1330/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1330_CONTRAST Sed1330Contrast + +/** +* Tag name for 'sed1330/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1330_FILE Sed1330File + +/** +* Tag name for 'sed1330/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1330_OFFBRIGHTNESS Sed1330Offbrightness + +/** +* Tag name for 'sed1330/#/port' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1330_PORT Sed1330Port + +/** +* Tag name for 'sed1330/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1330_REBOOT Sed1330Reboot + +/** +* Tag name for 'sed1330/#/type' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1330_TYPE Sed1330Type + +/** +* Tag name for 'sed1520/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1520 Sed1520 + +/** +* Tag name for 'sed1520/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1520_BRIGHTNESS Sed1520Brightness + +/** +* Tag name for 'sed1520/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1520_CONTRAST Sed1520Contrast + +/** +* Tag name for 'sed1520/#/delaymult' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1520_DELAYMULT Sed1520Delaymult + +/** +* Tag name for 'sed1520/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1520_FILE Sed1520File + +/** +* Tag name for 'sed1520/#/haveinverter' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1520_HAVEINVERTER Sed1520Haveinverter + +/** +* Tag name for 'sed1520/#/interfacetype' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1520_INTERFACETYPE Sed1520Interfacetype + +/** +* Tag name for 'sed1520/#/invertedmapping' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1520_INVERTEDMAPPING Sed1520Invertedmapping + +/** +* Tag name for 'sed1520/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1520_OFFBRIGHTNESS Sed1520Offbrightness + +/** +* Tag name for 'sed1520/#/port' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1520_PORT Sed1520Port + +/** +* Tag name for 'sed1520/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1520_REBOOT Sed1520Reboot + +/** +* Tag name for 'sed1520/#/usehardreset' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SED1520_USEHARDRESET Sed1520Usehardreset + +/** +* Tag name for 'serialpos/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALPOS Serialpos + +/** +* Tag name for 'serialpos/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALPOS_BRIGHTNESS SerialposBrightness + +/** +* Tag name for 'serialpos/#/cellsize' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALPOS_CELLSIZE SerialposCellsize + +/** +* Tag name for 'serialpos/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALPOS_CONTRAST SerialposContrast + +/** +* Tag name for 'serialpos/#/custom_chars' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALPOS_CUSTOM_CHARS SerialposCustomChars + +/** +* Tag name for 'serialpos/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALPOS_DEVICE SerialposDevice + +/** +* Tag name for 'serialpos/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALPOS_FILE SerialposFile + +/** +* Tag name for 'serialpos/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALPOS_OFFBRIGHTNESS SerialposOffbrightness + +/** +* Tag name for 'serialpos/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALPOS_REBOOT SerialposReboot + +/** +* Tag name for 'serialpos/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALPOS_SIZE SerialposSize + +/** +* Tag name for 'serialpos/#/speed' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALPOS_SPEED SerialposSpeed + +/** +* Tag name for 'serialpos/#/type' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALPOS_TYPE SerialposType + +/** +* Tag name for 'serialvfd/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALVFD Serialvfd + +/** +* Tag name for 'serialvfd/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALVFD_BRIGHTNESS SerialvfdBrightness + +/** +* Tag name for 'serialvfd/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALVFD_CONTRAST SerialvfdContrast + +/** +* Tag name for 'serialvfd/#/custom-characters' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALVFD_CUSTOM_CHARACTERS SerialvfdCustomCharacters + +/** +* Tag name for 'serialvfd/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALVFD_DEVICE SerialvfdDevice + +/** +* Tag name for 'serialvfd/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALVFD_FILE SerialvfdFile + +/** +* Tag name for 'serialvfd/#/iso_8859_1' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALVFD_ISO_8859_1 SerialvfdIso88591 + +/** +* Tag name for 'serialvfd/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALVFD_OFFBRIGHTNESS SerialvfdOffbrightness + +/** +* Tag name for 'serialvfd/#/port' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALVFD_PORT SerialvfdPort + +/** +* Tag name for 'serialvfd/#/portwait' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALVFD_PORTWAIT SerialvfdPortwait + +/** +* Tag name for 'serialvfd/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALVFD_REBOOT SerialvfdReboot + +/** +* Tag name for 'serialvfd/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALVFD_SIZE SerialvfdSize + +/** +* Tag name for 'serialvfd/#/speed' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALVFD_SPEED SerialvfdSpeed + +/** +* Tag name for 'serialvfd/#/type' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALVFD_TYPE SerialvfdType + +/** +* Tag name for 'serialvfd/#/use_parallel' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERIALVFD_USE_PARALLEL SerialvfdUseParallel + +/** +* Tag name for 'server/autorotate' +* +*/// +#define ELEKTRA_TAG_SERVER_AUTOROTATE ServerAutorotate + +/** +* Tag name for 'server/backlight' +* +*/// +#define ELEKTRA_TAG_SERVER_BACKLIGHT ServerBacklight + +/** +* Tag name for 'server/bind' +* +*/// +#define ELEKTRA_TAG_SERVER_BIND ServerBind + +/** +* Tag name for 'server/driverpath' +* +*/// +#define ELEKTRA_TAG_SERVER_DRIVERPATH ServerDriverpath + +/** +* Tag name for 'server/drivers/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERVER_DRIVERS ServerDrivers + +/** +* Tag name for 'server/foreground' +* +*/// +#define ELEKTRA_TAG_SERVER_FOREGROUND ServerForeground + +/** +* Tag name for 'server/frameinterval' +* +*/// +#define ELEKTRA_TAG_SERVER_FRAMEINTERVAL ServerFrameinterval + +/** +* Tag name for 'server/goodbye/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERVER_GOODBYE ServerGoodbye + +/** +* Tag name for 'server/heartbeat' +* +*/// +#define ELEKTRA_TAG_SERVER_HEARTBEAT ServerHeartbeat + +/** +* Tag name for 'server/hello/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SERVER_HELLO ServerHello + +/** +* Tag name for 'server/nextscreenkey' +* +*/// +#define ELEKTRA_TAG_SERVER_NEXTSCREENKEY ServerNextscreenkey + +/** +* Tag name for 'server/port' +* +*/// +#define ELEKTRA_TAG_SERVER_PORT ServerPort + +/** +* Tag name for 'server/prevscreenkey' +* +*/// +#define ELEKTRA_TAG_SERVER_PREVSCREENKEY ServerPrevscreenkey + +/** +* Tag name for 'server/reportlevel' +* +*/// +#define ELEKTRA_TAG_SERVER_REPORTLEVEL ServerReportlevel + +/** +* Tag name for 'server/reporttosyslog' +* +*/// +#define ELEKTRA_TAG_SERVER_REPORTTOSYSLOG ServerReporttosyslog + +/** +* Tag name for 'server/scrolldownkey' +* +*/// +#define ELEKTRA_TAG_SERVER_SCROLLDOWNKEY ServerScrolldownkey + +/** +* Tag name for 'server/scrollupkey' +* +*/// +#define ELEKTRA_TAG_SERVER_SCROLLUPKEY ServerScrollupkey + +/** +* Tag name for 'server/serverscreen' +* +*/// +#define ELEKTRA_TAG_SERVER_SERVERSCREEN ServerServerscreen + +/** +* Tag name for 'server/titlespeed' +* +*/// +#define ELEKTRA_TAG_SERVER_TITLESPEED ServerTitlespeed + +/** +* Tag name for 'server/togglerotatekey' +* +*/// +#define ELEKTRA_TAG_SERVER_TOGGLEROTATEKEY ServerTogglerotatekey + +/** +* Tag name for 'server/user' +* +*/// +#define ELEKTRA_TAG_SERVER_USER ServerUser + +/** +* Tag name for 'server/waittime' +* +*/// +#define ELEKTRA_TAG_SERVER_WAITTIME ServerWaittime + +/** +* Tag name for 'sli/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SLI Sli + +/** +* Tag name for 'sli/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SLI_BRIGHTNESS SliBrightness + +/** +* Tag name for 'sli/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SLI_CONTRAST SliContrast + +/** +* Tag name for 'sli/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SLI_DEVICE SliDevice + +/** +* Tag name for 'sli/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SLI_FILE SliFile + +/** +* Tag name for 'sli/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SLI_OFFBRIGHTNESS SliOffbrightness + +/** +* Tag name for 'sli/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SLI_REBOOT SliReboot + +/** +* Tag name for 'sli/#/speed' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SLI_SPEED SliSpeed + +/** +* Tag name for 'stv5730/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_STV5730 Stv5730 + +/** +* Tag name for 'stv5730/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_STV5730_BRIGHTNESS Stv5730Brightness + +/** +* Tag name for 'stv5730/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_STV5730_CONTRAST Stv5730Contrast + +/** +* Tag name for 'stv5730/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_STV5730_FILE Stv5730File + +/** +* Tag name for 'stv5730/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_STV5730_OFFBRIGHTNESS Stv5730Offbrightness + +/** +* Tag name for 'stv5730/#/port' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_STV5730_PORT Stv5730Port + +/** +* Tag name for 'stv5730/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_STV5730_REBOOT Stv5730Reboot + +/** +* Tag name for 'sureelec/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SUREELEC Sureelec + +/** +* Tag name for 'sureelec/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SUREELEC_BRIGHTNESS SureelecBrightness + +/** +* Tag name for 'sureelec/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SUREELEC_CONTRAST SureelecContrast + +/** +* Tag name for 'sureelec/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SUREELEC_DEVICE SureelecDevice + +/** +* Tag name for 'sureelec/#/edition' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SUREELEC_EDITION SureelecEdition + +/** +* Tag name for 'sureelec/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SUREELEC_FILE SureelecFile + +/** +* Tag name for 'sureelec/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SUREELEC_OFFBRIGHTNESS SureelecOffbrightness + +/** +* Tag name for 'sureelec/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SUREELEC_REBOOT SureelecReboot + +/** +* Tag name for 'sureelec/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SUREELEC_SIZE SureelecSize + +/** +* Tag name for 'svga/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SVGA Svga + +/** +* Tag name for 'svga/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SVGA_BRIGHTNESS SvgaBrightness + +/** +* Tag name for 'svga/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SVGA_CONTRAST SvgaContrast + +/** +* Tag name for 'svga/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SVGA_FILE SvgaFile + +/** +* Tag name for 'svga/#/mode' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SVGA_MODE SvgaMode + +/** +* Tag name for 'svga/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SVGA_OFFBRIGHTNESS SvgaOffbrightness + +/** +* Tag name for 'svga/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SVGA_REBOOT SvgaReboot + +/** +* Tag name for 'svga/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_SVGA_SIZE SvgaSize + +/** +* Tag name for 't6963/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_T6963 T6963 + +/** +* Tag name for 't6963/#/bidirectional' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_T6963_BIDIRECTIONAL T6963Bidirectional + +/** +* Tag name for 't6963/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_T6963_BRIGHTNESS T6963Brightness + +/** +* Tag name for 't6963/#/cleargraphic' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_T6963_CLEARGRAPHIC T6963Cleargraphic + +/** +* Tag name for 't6963/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_T6963_CONTRAST T6963Contrast + +/** +* Tag name for 't6963/#/delaybus' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_T6963_DELAYBUS T6963Delaybus + +/** +* Tag name for 't6963/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_T6963_FILE T6963File + +/** +* Tag name for 't6963/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_T6963_OFFBRIGHTNESS T6963Offbrightness + +/** +* Tag name for 't6963/#/port' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_T6963_PORT T6963Port + +/** +* Tag name for 't6963/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_T6963_REBOOT T6963Reboot + +/** +* Tag name for 't6963/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_T6963_SIZE T6963Size + +/** +* Tag name for 'text/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_TEXT Text + +/** +* Tag name for 'text/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_TEXT_BRIGHTNESS TextBrightness + +/** +* Tag name for 'text/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_TEXT_CONTRAST TextContrast + +/** +* Tag name for 'text/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_TEXT_FILE TextFile + +/** +* Tag name for 'text/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_TEXT_OFFBRIGHTNESS TextOffbrightness + +/** +* Tag name for 'text/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_TEXT_REBOOT TextReboot + +/** +* Tag name for 'text/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_TEXT_SIZE TextSize + +/** +* Tag name for 'tyan/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_TYAN Tyan + +/** +* Tag name for 'tyan/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_TYAN_BRIGHTNESS TyanBrightness + +/** +* Tag name for 'tyan/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_TYAN_CONTRAST TyanContrast + +/** +* Tag name for 'tyan/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_TYAN_DEVICE TyanDevice + +/** +* Tag name for 'tyan/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_TYAN_FILE TyanFile + +/** +* Tag name for 'tyan/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_TYAN_OFFBRIGHTNESS TyanOffbrightness + +/** +* Tag name for 'tyan/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_TYAN_REBOOT TyanReboot + +/** +* Tag name for 'tyan/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_TYAN_SIZE TyanSize + +/** +* Tag name for 'tyan/#/speed' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_TYAN_SPEED TyanSpeed + +/** +* Tag name for 'ula200/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ULA200 Ula200 + +/** +* Tag name for 'ula200/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ULA200_BRIGHTNESS Ula200Brightness + +/** +* Tag name for 'ula200/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ULA200_CONTRAST Ula200Contrast + +/** +* Tag name for 'ula200/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ULA200_FILE Ula200File + +/** +* Tag name for 'ula200/#/keymap_a' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ULA200_KEYMAP_A Ula200KeymapA + +/** +* Tag name for 'ula200/#/keymap_b' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ULA200_KEYMAP_B Ula200KeymapB + +/** +* Tag name for 'ula200/#/keymap_c' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ULA200_KEYMAP_C Ula200KeymapC + +/** +* Tag name for 'ula200/#/keymap_d' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ULA200_KEYMAP_D Ula200KeymapD + +/** +* Tag name for 'ula200/#/keymap_e' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ULA200_KEYMAP_E Ula200KeymapE + +/** +* Tag name for 'ula200/#/keymap_f' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ULA200_KEYMAP_F Ula200KeymapF + +/** +* Tag name for 'ula200/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ULA200_OFFBRIGHTNESS Ula200Offbrightness + +/** +* Tag name for 'ula200/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ULA200_REBOOT Ula200Reboot + +/** +* Tag name for 'ula200/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_ULA200_SIZE Ula200Size + +/** +* Tag name for 'vlsys_m428/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_VLSYS_M428 VlsysM428 + +/** +* Tag name for 'vlsys_m428/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_VLSYS_M428_BRIGHTNESS VlsysM428Brightness + +/** +* Tag name for 'vlsys_m428/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_VLSYS_M428_CONTRAST VlsysM428Contrast + +/** +* Tag name for 'vlsys_m428/#/device' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_VLSYS_M428_DEVICE VlsysM428Device + +/** +* Tag name for 'vlsys_m428/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_VLSYS_M428_FILE VlsysM428File + +/** +* Tag name for 'vlsys_m428/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_VLSYS_M428_OFFBRIGHTNESS VlsysM428Offbrightness + +/** +* Tag name for 'vlsys_m428/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_VLSYS_M428_REBOOT VlsysM428Reboot + +/** +* Tag name for 'xosd/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_XOSD Xosd + +/** +* Tag name for 'xosd/#/Font' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_XOSD_FONT XosdFont + +/** +* Tag name for 'xosd/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_XOSD_BRIGHTNESS XosdBrightness + +/** +* Tag name for 'xosd/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_XOSD_CONTRAST XosdContrast + +/** +* Tag name for 'xosd/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_XOSD_FILE XosdFile + +/** +* Tag name for 'xosd/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_XOSD_OFFBRIGHTNESS XosdOffbrightness + +/** +* Tag name for 'xosd/#/offset' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_XOSD_OFFSET XosdOffset + +/** +* Tag name for 'xosd/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_XOSD_REBOOT XosdReboot + +/** +* Tag name for 'xosd/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_XOSD_SIZE XosdSize + +/** +* Tag name for 'yard2lcd/#' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_YARD2LCD Yard2lcd + +/** +* Tag name for 'yard2lcd/#/brightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_YARD2LCD_BRIGHTNESS Yard2lcdBrightness + +/** +* Tag name for 'yard2lcd/#/contrast' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_YARD2LCD_CONTRAST Yard2lcdContrast + +/** +* Tag name for 'yard2lcd/#/file' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_YARD2LCD_FILE Yard2lcdFile + +/** +* Tag name for 'yard2lcd/#/offbrightness' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_YARD2LCD_OFFBRIGHTNESS Yard2lcdOffbrightness + +/** +* Tag name for 'yard2lcd/#/reboot' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_YARD2LCD_REBOOT Yard2lcdReboot + +/** +* Tag name for 'yard2lcd/#/size' +* +* Required arguments: +* +* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. +* +* +*/// +#define ELEKTRA_TAG_YARD2LCD_SIZE Yard2lcdSize +// clang-format on + + +// clang-format off + +// clang-format on + +// clang-format off + +// clang-format on + + +// clang-format off + +// clang-format on + + + + +// clang-format off + +// clang-format on + +// local helper macros to determine the length of a 64 bit integer +#define elektra_len19(x) ((x) < 10000000000000000000ULL ? 19 : 20) +#define elektra_len18(x) ((x) < 1000000000000000000ULL ? 18 : elektra_len19 (x)) +#define elektra_len17(x) ((x) < 100000000000000000ULL ? 17 : elektra_len18 (x)) +#define elektra_len16(x) ((x) < 10000000000000000ULL ? 16 : elektra_len17 (x)) +#define elektra_len15(x) ((x) < 1000000000000000ULL ? 15 : elektra_len16 (x)) +#define elektra_len14(x) ((x) < 100000000000000ULL ? 14 : elektra_len15 (x)) +#define elektra_len13(x) ((x) < 10000000000000ULL ? 13 : elektra_len14 (x)) +#define elektra_len12(x) ((x) < 1000000000000ULL ? 12 : elektra_len13 (x)) +#define elektra_len11(x) ((x) < 100000000000ULL ? 11 : elektra_len12 (x)) +#define elektra_len10(x) ((x) < 10000000000ULL ? 10 : elektra_len11 (x)) +#define elektra_len09(x) ((x) < 1000000000ULL ? 9 : elektra_len10 (x)) +#define elektra_len08(x) ((x) < 100000000ULL ? 8 : elektra_len09 (x)) +#define elektra_len07(x) ((x) < 10000000ULL ? 7 : elektra_len08 (x)) +#define elektra_len06(x) ((x) < 1000000ULL ? 6 : elektra_len07 (x)) +#define elektra_len05(x) ((x) < 100000ULL ? 5 : elektra_len06 (x)) +#define elektra_len04(x) ((x) < 10000ULL ? 4 : elektra_len05 (x)) +#define elektra_len03(x) ((x) < 1000ULL ? 3 : elektra_len04 (x)) +#define elektra_len02(x) ((x) < 100ULL ? 2 : elektra_len03 (x)) +#define elektra_len01(x) ((x) < 10ULL ? 1 : elektra_len02 (x)) +#define elektra_len00(x) ((x) < 0ULL ? 0 : elektra_len01 (x)) +#define elektra_len(x) elektra_len00 (x) + +#define ELEKTRA_SIZE(tagName) ELEKTRA_CONCAT (elektraSize, tagName) + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'bayrad/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Bayrad) (Elektra * elektra, BayradDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("bayrad/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructBayradDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'bayrad/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'bayrad/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Bayrad) (Elektra * elektra, const BayradDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("bayrad/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructBayradDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'bayrad/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Bayrad) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "bayrad"); +} + + + +/** + * Get the value of 'bayrad/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'bayrad/#/device'. + */// +static inline const char * ELEKTRA_GET (BayradDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("bayrad/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'bayrad/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'bayrad/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (BayradDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("bayrad/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'bayrad/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'bayrad/#/file'. + */// +static inline const char * ELEKTRA_GET (BayradFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("bayrad/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'bayrad/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'bayrad/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (BayradFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("bayrad/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'bayrad/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'bayrad/#/speed'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (BayradSpeed) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("bayrad/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'bayrad/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'bayrad/#/speed'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (BayradSpeed) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("bayrad/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'cfontz/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Cfontz) (Elektra * elektra, CFontzDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructCFontzDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'cfontz/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontz/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Cfontz) (Elektra * elektra, const CFontzDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructCFontzDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'cfontz/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Cfontz) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "cfontz"); +} + + + +/** + * Get the value of 'cfontz/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontz/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (CfontzBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontz/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontz/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontz/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontz/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (CfontzContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontz/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontz/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontz/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontz/#/device'. + */// +static inline const char * ELEKTRA_GET (CfontzDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontz/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontz/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontz/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontz/#/file'. + */// +static inline const char * ELEKTRA_GET (CfontzFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontz/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontz/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontz/#/newfirmware'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontz/#/newfirmware'. + */// +static inline kdb_boolean_t ELEKTRA_GET (CfontzNewfirmware) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/newfirmware", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontz/#/newfirmware'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontz/#/newfirmware'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzNewfirmware) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/newfirmware", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontz/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontz/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (CfontzOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontz/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontz/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontz/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontz/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (CfontzReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontz/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontz/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontz/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontz/#/size'. + */// +static inline const char * ELEKTRA_GET (CfontzSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontz/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontz/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontz/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontz/#/speed'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (CfontzSpeed) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontz/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontz/#/speed'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzSpeed) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontz/#/usb'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontz/#/usb'. + */// +static inline kdb_boolean_t ELEKTRA_GET (CfontzUsb) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/usb", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontz/#/usb'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontz/#/usb'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzUsb) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontz/%*.*s%lld/usb", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'cfontzpacket/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Cfontzpacket) (Elektra * elektra, CFontzPacketDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructCFontzPacketDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'cfontzpacket/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontzpacket/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Cfontzpacket) (Elektra * elektra, const CFontzPacketDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructCFontzPacketDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'cfontzpacket/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Cfontzpacket) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "cfontzpacket"); +} + + + +/** + * Get the value of 'cfontzpacket/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontzpacket/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (CfontzpacketBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontzpacket/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontzpacket/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzpacketBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontzpacket/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontzpacket/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (CfontzpacketContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontzpacket/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontzpacket/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzpacketContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontzpacket/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontzpacket/#/device'. + */// +static inline const char * ELEKTRA_GET (CfontzpacketDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontzpacket/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontzpacket/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzpacketDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontzpacket/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontzpacket/#/file'. + */// +static inline const char * ELEKTRA_GET (CfontzpacketFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontzpacket/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontzpacket/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzpacketFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontzpacket/#/model'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontzpacket/#/model'. + */// +static inline CFontzPacketModel ELEKTRA_GET (CfontzpacketModel) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/model", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + CFontzPacketModel result = ELEKTRA_GET (EnumCFontzPacketModel) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontzpacket/#/model'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontzpacket/#/model'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzpacketModel) (Elektra * elektra, + CFontzPacketModel value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/model", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumCFontzPacketModel) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontzpacket/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontzpacket/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (CfontzpacketOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontzpacket/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontzpacket/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzpacketOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontzpacket/#/oldfirmware'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontzpacket/#/oldfirmware'. + */// +static inline kdb_boolean_t ELEKTRA_GET (CfontzpacketOldfirmware) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/oldfirmware", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontzpacket/#/oldfirmware'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontzpacket/#/oldfirmware'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzpacketOldfirmware) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/oldfirmware", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontzpacket/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontzpacket/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (CfontzpacketReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontzpacket/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontzpacket/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzpacketReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontzpacket/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontzpacket/#/size'. + */// +static inline const char * ELEKTRA_GET (CfontzpacketSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontzpacket/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontzpacket/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzpacketSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontzpacket/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontzpacket/#/speed'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (CfontzpacketSpeed) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontzpacket/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontzpacket/#/speed'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzpacketSpeed) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cfontzpacket/#/usb'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cfontzpacket/#/usb'. + */// +static inline kdb_boolean_t ELEKTRA_GET (CfontzpacketUsb) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/usb", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cfontzpacket/#/usb'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cfontzpacket/#/usb'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CfontzpacketUsb) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cfontzpacket/%*.*s%lld/usb", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'curses/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Curses) (Elektra * elektra, CursesDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructCursesDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'curses/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'curses/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Curses) (Elektra * elektra, const CursesDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructCursesDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'curses/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Curses) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "curses"); +} + + + +/** + * Get the value of 'curses/#/background'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'curses/#/background'. + */// +static inline CursesColor ELEKTRA_GET (CursesBackground) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/background", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + CursesColor result = ELEKTRA_GET (EnumCursesColor) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'curses/#/background'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'curses/#/background'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CursesBackground) (Elektra * elektra, + CursesColor value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/background", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumCursesColor) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'curses/#/backlight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'curses/#/backlight'. + */// +static inline CursesColor ELEKTRA_GET (CursesBacklight) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + CursesColor result = ELEKTRA_GET (EnumCursesColor) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'curses/#/backlight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'curses/#/backlight'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CursesBacklight) (Elektra * elektra, + CursesColor value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumCursesColor) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'curses/#/drawborder'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'curses/#/drawborder'. + */// +static inline kdb_boolean_t ELEKTRA_GET (CursesDrawborder) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/drawborder", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'curses/#/drawborder'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'curses/#/drawborder'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CursesDrawborder) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/drawborder", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'curses/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'curses/#/file'. + */// +static inline const char * ELEKTRA_GET (CursesFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'curses/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'curses/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CursesFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'curses/#/foreground'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'curses/#/foreground'. + */// +static inline CursesColor ELEKTRA_GET (CursesForeground) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/foreground", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + CursesColor result = ELEKTRA_GET (EnumCursesColor) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'curses/#/foreground'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'curses/#/foreground'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CursesForeground) (Elektra * elektra, + CursesColor value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/foreground", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumCursesColor) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'curses/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'curses/#/size'. + */// +static inline const char * ELEKTRA_GET (CursesSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'curses/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'curses/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CursesSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'curses/#/topleftx'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'curses/#/topleftx'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (CursesTopleftx) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/topleftx", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'curses/#/topleftx'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'curses/#/topleftx'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CursesTopleftx) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/topleftx", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'curses/#/toplefty'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'curses/#/toplefty'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (CursesToplefty) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/toplefty", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'curses/#/toplefty'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'curses/#/toplefty'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CursesToplefty) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/toplefty", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'curses/#/useacs'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'curses/#/useacs'. + */// +static inline kdb_boolean_t ELEKTRA_GET (CursesUseacs) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/useacs", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'curses/#/useacs'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'curses/#/useacs'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CursesUseacs) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("curses/%*.*s%lld/useacs", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'cwlnx/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Cwlnx) (Elektra * elektra, CwLnxDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructCwLnxDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'cwlnx/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cwlnx/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Cwlnx) (Elektra * elektra, const CwLnxDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructCwLnxDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'cwlnx/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Cwlnx) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "cwlnx"); +} + + + +/** + * Get the value of 'cwlnx/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cwlnx/#/device'. + */// +static inline const char * ELEKTRA_GET (CwlnxDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cwlnx/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cwlnx/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CwlnxDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cwlnx/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cwlnx/#/file'. + */// +static inline const char * ELEKTRA_GET (CwlnxFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cwlnx/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cwlnx/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CwlnxFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cwlnx/#/keymap_a'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cwlnx/#/keymap_a'. + */// +static inline const char * ELEKTRA_GET (CwlnxKeymapA) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_a", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cwlnx/#/keymap_a'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cwlnx/#/keymap_a'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CwlnxKeymapA) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_a", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cwlnx/#/keymap_b'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cwlnx/#/keymap_b'. + */// +static inline const char * ELEKTRA_GET (CwlnxKeymapB) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_b", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cwlnx/#/keymap_b'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cwlnx/#/keymap_b'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CwlnxKeymapB) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_b", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cwlnx/#/keymap_c'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cwlnx/#/keymap_c'. + */// +static inline const char * ELEKTRA_GET (CwlnxKeymapC) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_c", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cwlnx/#/keymap_c'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cwlnx/#/keymap_c'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CwlnxKeymapC) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_c", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cwlnx/#/keymap_d'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cwlnx/#/keymap_d'. + */// +static inline const char * ELEKTRA_GET (CwlnxKeymapD) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_d", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cwlnx/#/keymap_d'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cwlnx/#/keymap_d'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CwlnxKeymapD) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_d", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cwlnx/#/keymap_e'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cwlnx/#/keymap_e'. + */// +static inline const char * ELEKTRA_GET (CwlnxKeymapE) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_e", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cwlnx/#/keymap_e'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cwlnx/#/keymap_e'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CwlnxKeymapE) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_e", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cwlnx/#/keymap_f'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cwlnx/#/keymap_f'. + */// +static inline const char * ELEKTRA_GET (CwlnxKeymapF) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_f", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cwlnx/#/keymap_f'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cwlnx/#/keymap_f'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CwlnxKeymapF) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_f", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cwlnx/#/keypad'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cwlnx/#/keypad'. + */// +static inline kdb_boolean_t ELEKTRA_GET (CwlnxKeypad) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/keypad", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cwlnx/#/keypad'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cwlnx/#/keypad'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CwlnxKeypad) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/keypad", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cwlnx/#/keypad_test_mode'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cwlnx/#/keypad_test_mode'. + */// +static inline kdb_boolean_t ELEKTRA_GET (CwlnxKeypadTestMode) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/keypad_test_mode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cwlnx/#/keypad_test_mode'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cwlnx/#/keypad_test_mode'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CwlnxKeypadTestMode) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/keypad_test_mode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cwlnx/#/model'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cwlnx/#/model'. + */// +static inline CwLnxModel ELEKTRA_GET (CwlnxModel) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/model", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + CwLnxModel result = ELEKTRA_GET (EnumCwLnxModel) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cwlnx/#/model'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cwlnx/#/model'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CwlnxModel) (Elektra * elektra, + CwLnxModel value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/model", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumCwLnxModel) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cwlnx/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cwlnx/#/size'. + */// +static inline const char * ELEKTRA_GET (CwlnxSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cwlnx/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cwlnx/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CwlnxSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'cwlnx/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'cwlnx/#/speed'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (CwlnxSpeed) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'cwlnx/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'cwlnx/#/speed'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (CwlnxSpeed) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("cwlnx/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'ea65/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Ea65) (Elektra * elektra, Ea65DriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("ea65/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructEa65DriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'ea65/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ea65/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ea65) (Elektra * elektra, const Ea65DriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ea65/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructEa65DriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'ea65/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Ea65) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "ea65"); +} + + + +/** + * Get the value of 'ea65/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ea65/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Ea65Brightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ea65/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ea65/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ea65/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ea65Brightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ea65/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ea65/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ea65/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Ea65Contrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ea65/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ea65/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ea65/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ea65Contrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ea65/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ea65/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ea65/#/file'. + */// +static inline const char * ELEKTRA_GET (Ea65File) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ea65/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ea65/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ea65/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ea65File) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ea65/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ea65/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ea65/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Ea65Offbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ea65/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ea65/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ea65/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ea65Offbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ea65/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ea65/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ea65/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Ea65Reboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ea65/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ea65/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ea65/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ea65Reboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ea65/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'eyeboxone/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Eyeboxone) (Elektra * elektra, EyeboxOneDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructEyeboxOneDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'eyeboxone/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'eyeboxone/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Eyeboxone) (Elektra * elektra, const EyeboxOneDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructEyeboxOneDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'eyeboxone/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Eyeboxone) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "eyeboxone"); +} + + + +/** + * Get the value of 'eyeboxone/#/backlight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'eyeboxone/#/backlight'. + */// +static inline kdb_boolean_t ELEKTRA_GET (EyeboxoneBacklight) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'eyeboxone/#/backlight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'eyeboxone/#/backlight'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (EyeboxoneBacklight) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'eyeboxone/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'eyeboxone/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (EyeboxoneBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'eyeboxone/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'eyeboxone/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (EyeboxoneBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'eyeboxone/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'eyeboxone/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (EyeboxoneContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'eyeboxone/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'eyeboxone/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (EyeboxoneContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'eyeboxone/#/cursor'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'eyeboxone/#/cursor'. + */// +static inline kdb_boolean_t ELEKTRA_GET (EyeboxoneCursor) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/cursor", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'eyeboxone/#/cursor'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'eyeboxone/#/cursor'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (EyeboxoneCursor) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/cursor", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'eyeboxone/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'eyeboxone/#/device'. + */// +static inline const char * ELEKTRA_GET (EyeboxoneDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'eyeboxone/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'eyeboxone/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (EyeboxoneDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'eyeboxone/#/downkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'eyeboxone/#/downkey'. + */// +static inline const char * ELEKTRA_GET (EyeboxoneDownkey) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/downkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'eyeboxone/#/downkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'eyeboxone/#/downkey'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (EyeboxoneDownkey) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/downkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'eyeboxone/#/escapekey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'eyeboxone/#/escapekey'. + */// +static inline const char * ELEKTRA_GET (EyeboxoneEscapekey) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/escapekey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'eyeboxone/#/escapekey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'eyeboxone/#/escapekey'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (EyeboxoneEscapekey) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/escapekey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'eyeboxone/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'eyeboxone/#/file'. + */// +static inline const char * ELEKTRA_GET (EyeboxoneFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'eyeboxone/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'eyeboxone/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (EyeboxoneFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'eyeboxone/#/keypad_test_mode'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'eyeboxone/#/keypad_test_mode'. + */// +static inline kdb_boolean_t ELEKTRA_GET (EyeboxoneKeypadTestMode) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/keypad_test_mode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'eyeboxone/#/keypad_test_mode'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'eyeboxone/#/keypad_test_mode'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (EyeboxoneKeypadTestMode) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/keypad_test_mode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'eyeboxone/#/leftkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'eyeboxone/#/leftkey'. + */// +static inline const char * ELEKTRA_GET (EyeboxoneLeftkey) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/leftkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'eyeboxone/#/leftkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'eyeboxone/#/leftkey'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (EyeboxoneLeftkey) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/leftkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'eyeboxone/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'eyeboxone/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (EyeboxoneOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'eyeboxone/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'eyeboxone/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (EyeboxoneOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'eyeboxone/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'eyeboxone/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (EyeboxoneReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'eyeboxone/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'eyeboxone/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (EyeboxoneReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'eyeboxone/#/rightkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'eyeboxone/#/rightkey'. + */// +static inline const char * ELEKTRA_GET (EyeboxoneRightkey) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/rightkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'eyeboxone/#/rightkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'eyeboxone/#/rightkey'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (EyeboxoneRightkey) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/rightkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'eyeboxone/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'eyeboxone/#/size'. + */// +static inline const char * ELEKTRA_GET (EyeboxoneSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'eyeboxone/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'eyeboxone/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (EyeboxoneSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'eyeboxone/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'eyeboxone/#/speed'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (EyeboxoneSpeed) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'eyeboxone/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'eyeboxone/#/speed'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (EyeboxoneSpeed) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'eyeboxone/#/upkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'eyeboxone/#/upkey'. + */// +static inline const char * ELEKTRA_GET (EyeboxoneUpkey) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/upkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'eyeboxone/#/upkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'eyeboxone/#/upkey'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (EyeboxoneUpkey) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("eyeboxone/%*.*s%lld/upkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'futaba/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Futaba) (Elektra * elektra, FutabaDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("futaba/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructFutabaDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'futaba/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'futaba/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Futaba) (Elektra * elektra, const FutabaDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("futaba/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructFutabaDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'futaba/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Futaba) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "futaba"); +} + + + +/** + * Get the value of 'futaba/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'futaba/#/file'. + */// +static inline const char * ELEKTRA_GET (FutabaFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("futaba/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'futaba/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'futaba/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (FutabaFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("futaba/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'g15/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (G15) (Elektra * elektra, G15DriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("g15/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructG15DriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'g15/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'g15/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (G15) (Elektra * elektra, const G15DriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("g15/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructG15DriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'g15/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (G15) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "g15"); +} + + + +/** + * Get the value of 'g15/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'g15/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (G15Brightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("g15/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'g15/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'g15/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (G15Brightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("g15/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'g15/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'g15/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (G15Contrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("g15/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'g15/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'g15/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (G15Contrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("g15/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'g15/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'g15/#/file'. + */// +static inline const char * ELEKTRA_GET (G15File) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("g15/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'g15/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'g15/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (G15File) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("g15/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'g15/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'g15/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (G15Offbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("g15/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'g15/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'g15/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (G15Offbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("g15/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'g15/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'g15/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (G15Reboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("g15/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'g15/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'g15/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (G15Reboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("g15/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'g15/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'g15/#/size'. + */// +static inline const char * ELEKTRA_GET (G15Size) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("g15/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'g15/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'g15/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (G15Size) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("g15/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'glcd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Glcd) (Elektra * elektra, GlcdDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructGlcdDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'glcd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Glcd) (Elektra * elektra, const GlcdDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructGlcdDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'glcd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Glcd) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "glcd"); +} + + + +/** + * Get the value of 'glcd/#/bidirectional'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/bidirectional'. + */// +static inline kdb_boolean_t ELEKTRA_GET (GlcdBidirectional) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/bidirectional", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/bidirectional'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/bidirectional'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdBidirectional) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/bidirectional", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (GlcdBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/cellsize'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/cellsize'. + */// +static inline const char * ELEKTRA_GET (GlcdCellsize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/cellsize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/cellsize'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/cellsize'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdCellsize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/cellsize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/connectiontype'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/connectiontype'. + */// +static inline GlcdConnectionType ELEKTRA_GET (GlcdConnectiontype) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/connectiontype", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + GlcdConnectionType result = ELEKTRA_GET (EnumGlcdConnectionType) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/connectiontype'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/connectiontype'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdConnectiontype) (Elektra * elektra, + GlcdConnectionType value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/connectiontype", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumGlcdConnectionType) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (GlcdContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/delaybus'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/delaybus'. + */// +static inline kdb_boolean_t ELEKTRA_GET (GlcdDelaybus) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/delaybus", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/delaybus'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/delaybus'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdDelaybus) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/delaybus", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/file'. + */// +static inline const char * ELEKTRA_GET (GlcdFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/fonthasicons'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/fonthasicons'. + */// +static inline kdb_boolean_t ELEKTRA_GET (GlcdFonthasicons) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/fonthasicons", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/fonthasicons'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/fonthasicons'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdFonthasicons) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/fonthasicons", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/keymap_a'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/keymap_a'. + */// +static inline const char * ELEKTRA_GET (GlcdKeymapA) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/keymap_a", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/keymap_a'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/keymap_a'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdKeymapA) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/keymap_a", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/keymap_b'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/keymap_b'. + */// +static inline const char * ELEKTRA_GET (GlcdKeymapB) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/keymap_b", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/keymap_b'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/keymap_b'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdKeymapB) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/keymap_b", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/keymap_c'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/keymap_c'. + */// +static inline const char * ELEKTRA_GET (GlcdKeymapC) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/keymap_c", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/keymap_c'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/keymap_c'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdKeymapC) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/keymap_c", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/keymap_d'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/keymap_d'. + */// +static inline const char * ELEKTRA_GET (GlcdKeymapD) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/keymap_d", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/keymap_d'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/keymap_d'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdKeymapD) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/keymap_d", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/keymap_e'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/keymap_e'. + */// +static inline const char * ELEKTRA_GET (GlcdKeymapE) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/keymap_e", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/keymap_e'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/keymap_e'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdKeymapE) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/keymap_e", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/keymap_f'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/keymap_f'. + */// +static inline const char * ELEKTRA_GET (GlcdKeymapF) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/keymap_f", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/keymap_f'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/keymap_f'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdKeymapF) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/keymap_f", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/keyrepeatdelay'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/keyrepeatdelay'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (GlcdKeyrepeatdelay) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/keyrepeatdelay", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/keyrepeatdelay'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/keyrepeatdelay'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdKeyrepeatdelay) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/keyrepeatdelay", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/keyrepeatinterval'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/keyrepeatinterval'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (GlcdKeyrepeatinterval) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/keyrepeatinterval", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/keyrepeatinterval'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/keyrepeatinterval'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdKeyrepeatinterval) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/keyrepeatinterval", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/normal_font'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/normal_font'. + */// +static inline const char * ELEKTRA_GET (GlcdNormalFont) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/normal_font", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/normal_font'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/normal_font'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdNormalFont) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/normal_font", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (GlcdOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/picolcdgfx_inverted'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/picolcdgfx_inverted'. + */// +static inline kdb_boolean_t ELEKTRA_GET (GlcdPicolcdgfxInverted) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/picolcdgfx_inverted", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/picolcdgfx_inverted'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/picolcdgfx_inverted'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdPicolcdgfxInverted) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/picolcdgfx_inverted", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/picolcdgfx_keytimeout'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/picolcdgfx_keytimeout'. + */// +static inline const char * ELEKTRA_GET (GlcdPicolcdgfxKeytimeout) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/picolcdgfx_keytimeout", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/picolcdgfx_keytimeout'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/picolcdgfx_keytimeout'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdPicolcdgfxKeytimeout) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/picolcdgfx_keytimeout", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/port'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/port'. + */// +static inline const char * ELEKTRA_GET (GlcdPort) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/port'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/port'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdPort) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (GlcdReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/serdisp_device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/serdisp_device'. + */// +static inline const char * ELEKTRA_GET (GlcdSerdispDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/serdisp_device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/serdisp_device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/serdisp_device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdSerdispDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/serdisp_device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/serdisp_name'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/serdisp_name'. + */// +static inline const char * ELEKTRA_GET (GlcdSerdispName) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/serdisp_name", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/serdisp_name'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/serdisp_name'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdSerdispName) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/serdisp_name", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/serdisp_options'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/serdisp_options'. + */// +static inline const char * ELEKTRA_GET (GlcdSerdispOptions) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/serdisp_options", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/serdisp_options'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/serdisp_options'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdSerdispOptions) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/serdisp_options", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/size'. + */// +static inline const char * ELEKTRA_GET (GlcdSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/useft2'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/useft2'. + */// +static inline kdb_boolean_t ELEKTRA_GET (GlcdUseft2) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/useft2", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/useft2'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/useft2'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdUseft2) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/useft2", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/x11_backlightcolor'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/x11_backlightcolor'. + */// +static inline const char * ELEKTRA_GET (GlcdX11Backlightcolor) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/x11_backlightcolor", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/x11_backlightcolor'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/x11_backlightcolor'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdX11Backlightcolor) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/x11_backlightcolor", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/x11_border'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/x11_border'. + */// +static inline kdb_unsigned_long_t ELEKTRA_GET (GlcdX11Border) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/x11_border", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/x11_border'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/x11_border'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdX11Border) (Elektra * elektra, + kdb_unsigned_long_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/x11_border", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/x11_inverted'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/x11_inverted'. + */// +static inline kdb_boolean_t ELEKTRA_GET (GlcdX11Inverted) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/x11_inverted", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/x11_inverted'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/x11_inverted'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdX11Inverted) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/x11_inverted", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/x11_pixelcolor'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/x11_pixelcolor'. + */// +static inline const char * ELEKTRA_GET (GlcdX11Pixelcolor) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/x11_pixelcolor", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/x11_pixelcolor'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/x11_pixelcolor'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdX11Pixelcolor) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/x11_pixelcolor", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcd/#/x11_pixelsize'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcd/#/x11_pixelsize'. + */// +static inline const char * ELEKTRA_GET (GlcdX11Pixelsize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/x11_pixelsize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcd/#/x11_pixelsize'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcd/#/x11_pixelsize'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdX11Pixelsize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcd/%*.*s%lld/x11_pixelsize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'glcdlib/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Glcdlib) (Elektra * elektra, GlcdlibDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructGlcdlibDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'glcdlib/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Glcdlib) (Elektra * elektra, const GlcdlibDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructGlcdlibDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'glcdlib/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Glcdlib) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "glcdlib"); +} + + + +/** + * Get the value of 'glcdlib/#/CharEncoding'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/CharEncoding'. + */// +static inline const char * ELEKTRA_GET (GlcdlibCharEncoding) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/CharEncoding", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/CharEncoding'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/CharEncoding'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibCharEncoding) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/CharEncoding", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/backlight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/backlight'. + */// +static inline kdb_boolean_t ELEKTRA_GET (GlcdlibBacklight) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/backlight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/backlight'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibBacklight) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (GlcdlibBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (GlcdlibContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/driver'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/driver'. + */// +static inline const char * ELEKTRA_GET (GlcdlibDriver) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/driver", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/driver'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/driver'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibDriver) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/driver", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/file'. + */// +static inline const char * ELEKTRA_GET (GlcdlibFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/fontfile'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/fontfile'. + */// +static inline const char * ELEKTRA_GET (GlcdlibFontfile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/fontfile", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/fontfile'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/fontfile'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibFontfile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/fontfile", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/invert'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/invert'. + */// +static inline kdb_boolean_t ELEKTRA_GET (GlcdlibInvert) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/invert", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/invert'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/invert'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibInvert) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/invert", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/minfontfacesize'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/minfontfacesize'. + */// +static inline const char * ELEKTRA_GET (GlcdlibMinfontfacesize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/minfontfacesize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/minfontfacesize'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/minfontfacesize'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibMinfontfacesize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/minfontfacesize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (GlcdlibOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/pixelshiftx'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/pixelshiftx'. + */// +static inline kdb_short_t ELEKTRA_GET (GlcdlibPixelshiftx) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/pixelshiftx", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_short_t result = ELEKTRA_GET (Short) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/pixelshiftx'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/pixelshiftx'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibPixelshiftx) (Elektra * elektra, + kdb_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/pixelshiftx", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Short) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/pixelshifty'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/pixelshifty'. + */// +static inline kdb_short_t ELEKTRA_GET (GlcdlibPixelshifty) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/pixelshifty", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_short_t result = ELEKTRA_GET (Short) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/pixelshifty'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/pixelshifty'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibPixelshifty) (Elektra * elektra, + kdb_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/pixelshifty", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Short) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (GlcdlibReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/showbigborder'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/showbigborder'. + */// +static inline kdb_boolean_t ELEKTRA_GET (GlcdlibShowbigborder) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/showbigborder", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/showbigborder'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/showbigborder'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibShowbigborder) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/showbigborder", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/showdebugframe'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/showdebugframe'. + */// +static inline kdb_boolean_t ELEKTRA_GET (GlcdlibShowdebugframe) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/showdebugframe", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/showdebugframe'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/showdebugframe'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibShowdebugframe) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/showdebugframe", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/showthinborder'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/showthinborder'. + */// +static inline kdb_boolean_t ELEKTRA_GET (GlcdlibShowthinborder) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/showthinborder", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/showthinborder'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/showthinborder'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibShowthinborder) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/showthinborder", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/textresolution'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/textresolution'. + */// +static inline const char * ELEKTRA_GET (GlcdlibTextresolution) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/textresolution", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/textresolution'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/textresolution'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibTextresolution) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/textresolution", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/upsidedown'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/upsidedown'. + */// +static inline kdb_boolean_t ELEKTRA_GET (GlcdlibUpsidedown) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/upsidedown", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/upsidedown'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/upsidedown'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibUpsidedown) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/upsidedown", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glcdlib/#/useft2'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glcdlib/#/useft2'. + */// +static inline kdb_boolean_t ELEKTRA_GET (GlcdlibUseft2) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/useft2", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glcdlib/#/useft2'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glcdlib/#/useft2'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlcdlibUseft2) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glcdlib/%*.*s%lld/useft2", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'glk/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Glk) (Elektra * elektra, GlkDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("glk/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructGlkDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'glk/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glk/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Glk) (Elektra * elektra, const GlkDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glk/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructGlkDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'glk/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Glk) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "glk"); +} + + + +/** + * Get the value of 'glk/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glk/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (GlkContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glk/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glk/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glk/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlkContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glk/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glk/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glk/#/device'. + */// +static inline const char * ELEKTRA_GET (GlkDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glk/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glk/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glk/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlkDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glk/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glk/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glk/#/file'. + */// +static inline const char * ELEKTRA_GET (GlkFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glk/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glk/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glk/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlkFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glk/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'glk/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'glk/#/speed'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (GlkSpeed) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("glk/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'glk/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'glk/#/speed'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (GlkSpeed) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("glk/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'hd44780/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Hd44780) (Elektra * elektra, Hd44780DriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructHd44780DriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'hd44780/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780) (Elektra * elektra, const Hd44780DriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructHd44780DriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'hd44780/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Hd44780) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "hd44780"); +} + + + +/** + * Get the value of 'hd44780/#/backlight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/backlight'. + */// +static inline HD44780Backlight ELEKTRA_GET (Hd44780Backlight) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + HD44780Backlight result = ELEKTRA_GET (EnumHD44780Backlight) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/backlight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/backlight'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Backlight) (Elektra * elektra, + HD44780Backlight value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumHD44780Backlight) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/backlightcmdoff'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/backlightcmdoff'. + */// +static inline const char * ELEKTRA_GET (Hd44780Backlightcmdoff) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/backlightcmdoff", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/backlightcmdoff'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/backlightcmdoff'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Backlightcmdoff) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/backlightcmdoff", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/backlightcmdon'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/backlightcmdon'. + */// +static inline const char * ELEKTRA_GET (Hd44780Backlightcmdon) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/backlightcmdon", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/backlightcmdon'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/backlightcmdon'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Backlightcmdon) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/backlightcmdon", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Hd44780Brightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Brightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/charmap'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/charmap'. + */// +static inline HD44780Charmap ELEKTRA_GET (Hd44780Charmap) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/charmap", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + HD44780Charmap result = ELEKTRA_GET (EnumHD44780Charmap) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/charmap'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/charmap'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Charmap) (Elektra * elektra, + HD44780Charmap value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/charmap", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumHD44780Charmap) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/connectiontype'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/connectiontype'. + */// +static inline HD44780ConnectionType ELEKTRA_GET (Hd44780Connectiontype) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/connectiontype", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + HD44780ConnectionType result = ELEKTRA_GET (EnumHD44780ConnectionType) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/connectiontype'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/connectiontype'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Connectiontype) (Elektra * elektra, + HD44780ConnectionType value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/connectiontype", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumHD44780ConnectionType) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Hd44780Contrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Contrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/delaybus'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/delaybus'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Hd44780Delaybus) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/delaybus", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/delaybus'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/delaybus'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Delaybus) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/delaybus", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/delaymult'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/delaymult'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Hd44780Delaymult) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/delaymult", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/delaymult'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/delaymult'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Delaymult) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/delaymult", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/device'. + */// +static inline const char * ELEKTRA_GET (Hd44780Device) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Device) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/extendedmode'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/extendedmode'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Hd44780Extendedmode) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/extendedmode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/extendedmode'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/extendedmode'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Extendedmode) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/extendedmode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/file'. + */// +static inline const char * ELEKTRA_GET (Hd44780File) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780File) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/fontbank'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/fontbank'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Hd44780Fontbank) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/fontbank", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/fontbank'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/fontbank'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Fontbank) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/fontbank", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/keepalivedisplay'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/keepalivedisplay'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Hd44780Keepalivedisplay) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/keepalivedisplay", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/keepalivedisplay'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/keepalivedisplay'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Keepalivedisplay) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/keepalivedisplay", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/keymatrix_4_1'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/keymatrix_4_1'. + */// +static inline const char * ELEKTRA_GET (Hd44780Keymatrix41) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/keymatrix_4_1", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/keymatrix_4_1'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/keymatrix_4_1'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Keymatrix41) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/keymatrix_4_1", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/keymatrix_4_2'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/keymatrix_4_2'. + */// +static inline const char * ELEKTRA_GET (Hd44780Keymatrix42) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/keymatrix_4_2", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/keymatrix_4_2'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/keymatrix_4_2'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Keymatrix42) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/keymatrix_4_2", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/keymatrix_4_3'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/keymatrix_4_3'. + */// +static inline const char * ELEKTRA_GET (Hd44780Keymatrix43) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/keymatrix_4_3", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/keymatrix_4_3'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/keymatrix_4_3'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Keymatrix43) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/keymatrix_4_3", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/keymatrix_4_4'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/keymatrix_4_4'. + */// +static inline const char * ELEKTRA_GET (Hd44780Keymatrix44) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/keymatrix_4_4", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/keymatrix_4_4'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/keymatrix_4_4'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Keymatrix44) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/keymatrix_4_4", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/keypad'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/keypad'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Hd44780Keypad) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/keypad", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/keypad'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/keypad'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Keypad) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/keypad", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/lastline'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/lastline'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Hd44780Lastline) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/lastline", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/lastline'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/lastline'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Lastline) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/lastline", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/lineaddress'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/lineaddress'. + */// +static inline const char * ELEKTRA_GET (Hd44780Lineaddress) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/lineaddress", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/lineaddress'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/lineaddress'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Lineaddress) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/lineaddress", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/model'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/model'. + */// +static inline ElektraEnumHd44780Model ELEKTRA_GET (Hd44780Model) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/model", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ElektraEnumHd44780Model result = ELEKTRA_GET (EnumHd44780Model) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/model'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/model'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Model) (Elektra * elektra, + ElektraEnumHd44780Model value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/model", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumHd44780Model) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Hd44780Offbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Offbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/outputport'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/outputport'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Hd44780Outputport) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/outputport", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/outputport'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/outputport'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Outputport) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/outputport", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/port'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/port'. + */// +static inline const char * ELEKTRA_GET (Hd44780Port) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/port'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/port'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Port) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Hd44780Reboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Reboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/refreshdisplay'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/refreshdisplay'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Hd44780Refreshdisplay) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/refreshdisplay", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/refreshdisplay'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/refreshdisplay'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Refreshdisplay) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/refreshdisplay", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/size'. + */// +static inline const char * ELEKTRA_GET (Hd44780Size) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Size) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/speed'. + */// +static inline kdb_unsigned_long_t ELEKTRA_GET (Hd44780Speed) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/speed'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Speed) (Elektra * elektra, + kdb_unsigned_long_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'hd44780/#/vspan'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'hd44780/#/vspan'. + */// +static inline const char * ELEKTRA_GET (Hd44780Vspan) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/vspan", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'hd44780/#/vspan'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'hd44780/#/vspan'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Hd44780Vspan) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("hd44780/%*.*s%lld/vspan", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'icp_a106/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (IcpA106) (Elektra * elektra, Icp_a106DriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("icp_a106/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructIcp_a106DriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'icp_a106/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'icp_a106/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IcpA106) (Elektra * elektra, const Icp_a106DriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("icp_a106/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructIcp_a106DriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'icp_a106/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (IcpA106) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "icp_a106"); +} + + + +/** + * Get the value of 'icp_a106/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'icp_a106/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (IcpA106Brightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("icp_a106/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'icp_a106/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'icp_a106/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IcpA106Brightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("icp_a106/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'icp_a106/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'icp_a106/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (IcpA106Contrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("icp_a106/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'icp_a106/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'icp_a106/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IcpA106Contrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("icp_a106/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'icp_a106/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'icp_a106/#/device'. + */// +static inline const char * ELEKTRA_GET (IcpA106Device) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("icp_a106/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'icp_a106/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'icp_a106/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IcpA106Device) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("icp_a106/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'icp_a106/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'icp_a106/#/file'. + */// +static inline const char * ELEKTRA_GET (IcpA106File) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("icp_a106/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'icp_a106/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'icp_a106/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IcpA106File) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("icp_a106/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'icp_a106/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'icp_a106/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (IcpA106Offbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("icp_a106/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'icp_a106/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'icp_a106/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IcpA106Offbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("icp_a106/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'icp_a106/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'icp_a106/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (IcpA106Reboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("icp_a106/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'icp_a106/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'icp_a106/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IcpA106Reboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("icp_a106/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'icp_a106/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'icp_a106/#/size'. + */// +static inline const char * ELEKTRA_GET (IcpA106Size) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("icp_a106/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'icp_a106/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'icp_a106/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IcpA106Size) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("icp_a106/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'imon/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Imon) (Elektra * elektra, ImonDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructImonDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'imon/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imon/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Imon) (Elektra * elektra, const ImonDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructImonDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'imon/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Imon) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "imon"); +} + + + +/** + * Get the value of 'imon/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imon/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (ImonBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imon/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imon/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'imon/#/charmap'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imon/#/charmap'. + */// +static inline IMonCharmap ELEKTRA_GET (ImonCharmap) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld/charmap", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + IMonCharmap result = ELEKTRA_GET (EnumIMonCharmap) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imon/#/charmap'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imon/#/charmap'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonCharmap) (Elektra * elektra, + IMonCharmap value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld/charmap", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumIMonCharmap) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'imon/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imon/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (ImonContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imon/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imon/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'imon/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imon/#/device'. + */// +static inline const char * ELEKTRA_GET (ImonDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imon/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imon/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'imon/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imon/#/file'. + */// +static inline const char * ELEKTRA_GET (ImonFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imon/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imon/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'imon/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imon/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (ImonOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imon/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imon/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'imon/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imon/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (ImonReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imon/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imon/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'imon/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imon/#/size'. + */// +static inline const char * ELEKTRA_GET (ImonSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imon/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imon/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imon/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'imonlcd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Imonlcd) (Elektra * elektra, ImonlcdDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructImonlcdDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'imonlcd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imonlcd/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Imonlcd) (Elektra * elektra, const ImonlcdDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructImonlcdDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'imonlcd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Imonlcd) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "imonlcd"); +} + + + +/** + * Get the value of 'imonlcd/#/backlight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imonlcd/#/backlight'. + */// +static inline kdb_boolean_t ELEKTRA_GET (ImonlcdBacklight) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imonlcd/#/backlight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imonlcd/#/backlight'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonlcdBacklight) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'imonlcd/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imonlcd/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (ImonlcdBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imonlcd/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imonlcd/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonlcdBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'imonlcd/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imonlcd/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (ImonlcdContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imonlcd/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imonlcd/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonlcdContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'imonlcd/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imonlcd/#/device'. + */// +static inline const char * ELEKTRA_GET (ImonlcdDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imonlcd/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imonlcd/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonlcdDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'imonlcd/#/discmode'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imonlcd/#/discmode'. + */// +static inline IMonLCDDiscMode ELEKTRA_GET (ImonlcdDiscmode) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/discmode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + IMonLCDDiscMode result = ELEKTRA_GET (EnumIMonLCDDiscMode) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imonlcd/#/discmode'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imonlcd/#/discmode'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonlcdDiscmode) (Elektra * elektra, + IMonLCDDiscMode value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/discmode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumIMonLCDDiscMode) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'imonlcd/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imonlcd/#/file'. + */// +static inline const char * ELEKTRA_GET (ImonlcdFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imonlcd/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imonlcd/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonlcdFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'imonlcd/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imonlcd/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (ImonlcdOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imonlcd/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imonlcd/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonlcdOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'imonlcd/#/onexit'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imonlcd/#/onexit'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (ImonlcdOnexit) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/onexit", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imonlcd/#/onexit'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imonlcd/#/onexit'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonlcdOnexit) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/onexit", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'imonlcd/#/protocol'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imonlcd/#/protocol'. + */// +static inline const char * ELEKTRA_GET (ImonlcdProtocol) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/protocol", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imonlcd/#/protocol'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imonlcd/#/protocol'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonlcdProtocol) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/protocol", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'imonlcd/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imonlcd/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (ImonlcdReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imonlcd/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imonlcd/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonlcdReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'imonlcd/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'imonlcd/#/size'. + */// +static inline const char * ELEKTRA_GET (ImonlcdSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'imonlcd/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'imonlcd/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ImonlcdSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("imonlcd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'iowarrior/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Iowarrior) (Elektra * elektra, IOWarriorDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructIOWarriorDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'iowarrior/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'iowarrior/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Iowarrior) (Elektra * elektra, const IOWarriorDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructIOWarriorDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'iowarrior/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Iowarrior) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "iowarrior"); +} + + + +/** + * Get the value of 'iowarrior/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'iowarrior/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (IowarriorBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'iowarrior/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'iowarrior/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IowarriorBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'iowarrior/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'iowarrior/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (IowarriorContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'iowarrior/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'iowarrior/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IowarriorContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'iowarrior/#/extendedmode'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'iowarrior/#/extendedmode'. + */// +static inline kdb_boolean_t ELEKTRA_GET (IowarriorExtendedmode) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/extendedmode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'iowarrior/#/extendedmode'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'iowarrior/#/extendedmode'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IowarriorExtendedmode) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/extendedmode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'iowarrior/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'iowarrior/#/file'. + */// +static inline const char * ELEKTRA_GET (IowarriorFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'iowarrior/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'iowarrior/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IowarriorFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'iowarrior/#/lastline'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'iowarrior/#/lastline'. + */// +static inline kdb_boolean_t ELEKTRA_GET (IowarriorLastline) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/lastline", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'iowarrior/#/lastline'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'iowarrior/#/lastline'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IowarriorLastline) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/lastline", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'iowarrior/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'iowarrior/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (IowarriorOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'iowarrior/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'iowarrior/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IowarriorOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'iowarrior/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'iowarrior/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (IowarriorReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'iowarrior/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'iowarrior/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IowarriorReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'iowarrior/#/serialnumber'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'iowarrior/#/serialnumber'. + */// +static inline const char * ELEKTRA_GET (IowarriorSerialnumber) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/serialnumber", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'iowarrior/#/serialnumber'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'iowarrior/#/serialnumber'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IowarriorSerialnumber) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/serialnumber", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'iowarrior/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'iowarrior/#/size'. + */// +static inline const char * ELEKTRA_GET (IowarriorSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'iowarrior/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'iowarrior/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IowarriorSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("iowarrior/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'irman/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Irman) (Elektra * elektra, IrManDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("irman/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructIrManDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'irman/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'irman/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Irman) (Elektra * elektra, const IrManDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("irman/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructIrManDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'irman/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Irman) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "irman"); +} + + + +/** + * Get the value of 'irman/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'irman/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (IrmanBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("irman/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'irman/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'irman/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IrmanBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("irman/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'irman/#/config'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'irman/#/config'. + */// +static inline const char * ELEKTRA_GET (IrmanConfig) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("irman/%*.*s%lld/config", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'irman/#/config'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'irman/#/config'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IrmanConfig) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("irman/%*.*s%lld/config", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'irman/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'irman/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (IrmanContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("irman/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'irman/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'irman/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IrmanContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("irman/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'irman/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'irman/#/device'. + */// +static inline const char * ELEKTRA_GET (IrmanDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("irman/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'irman/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'irman/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IrmanDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("irman/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'irman/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'irman/#/file'. + */// +static inline const char * ELEKTRA_GET (IrmanFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("irman/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'irman/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'irman/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IrmanFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("irman/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'irman/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'irman/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (IrmanOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("irman/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'irman/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'irman/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IrmanOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("irman/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'irman/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'irman/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (IrmanReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("irman/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'irman/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'irman/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IrmanReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("irman/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'irtrans/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Irtrans) (Elektra * elektra, IrtransDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructIrtransDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'irtrans/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'irtrans/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Irtrans) (Elektra * elektra, const IrtransDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructIrtransDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'irtrans/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Irtrans) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "irtrans"); +} + + + +/** + * Get the value of 'irtrans/#/backlight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'irtrans/#/backlight'. + */// +static inline kdb_boolean_t ELEKTRA_GET (IrtransBacklight) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'irtrans/#/backlight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'irtrans/#/backlight'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IrtransBacklight) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'irtrans/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'irtrans/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (IrtransBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'irtrans/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'irtrans/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IrtransBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'irtrans/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'irtrans/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (IrtransContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'irtrans/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'irtrans/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IrtransContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'irtrans/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'irtrans/#/file'. + */// +static inline const char * ELEKTRA_GET (IrtransFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'irtrans/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'irtrans/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IrtransFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'irtrans/#/hostname'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'irtrans/#/hostname'. + */// +static inline const char * ELEKTRA_GET (IrtransHostname) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld/hostname", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'irtrans/#/hostname'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'irtrans/#/hostname'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IrtransHostname) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld/hostname", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'irtrans/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'irtrans/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (IrtransOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'irtrans/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'irtrans/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IrtransOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'irtrans/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'irtrans/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (IrtransReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'irtrans/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'irtrans/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IrtransReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'irtrans/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'irtrans/#/size'. + */// +static inline const char * ELEKTRA_GET (IrtransSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'irtrans/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'irtrans/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (IrtransSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("irtrans/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'joy/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Joy) (Elektra * elektra, JoyDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructJoyDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'joy/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'joy/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Joy) (Elektra * elektra, const JoyDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructJoyDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'joy/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Joy) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "joy"); +} + + + +/** + * Get the value of 'joy/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'joy/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (JoyBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'joy/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'joy/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (JoyBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'joy/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'joy/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (JoyContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'joy/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'joy/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (JoyContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'joy/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'joy/#/device'. + */// +static inline const char * ELEKTRA_GET (JoyDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'joy/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'joy/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (JoyDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'joy/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'joy/#/file'. + */// +static inline const char * ELEKTRA_GET (JoyFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'joy/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'joy/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (JoyFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'joy/#/map_axis1neg'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'joy/#/map_axis1neg'. + */// +static inline const char * ELEKTRA_GET (JoyMapAxis1neg) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/map_axis1neg", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'joy/#/map_axis1neg'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'joy/#/map_axis1neg'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (JoyMapAxis1neg) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/map_axis1neg", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'joy/#/map_axis1pos'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'joy/#/map_axis1pos'. + */// +static inline const char * ELEKTRA_GET (JoyMapAxis1pos) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/map_axis1pos", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'joy/#/map_axis1pos'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'joy/#/map_axis1pos'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (JoyMapAxis1pos) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/map_axis1pos", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'joy/#/map_axis2neg'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'joy/#/map_axis2neg'. + */// +static inline const char * ELEKTRA_GET (JoyMapAxis2neg) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/map_axis2neg", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'joy/#/map_axis2neg'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'joy/#/map_axis2neg'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (JoyMapAxis2neg) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/map_axis2neg", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'joy/#/map_axis2pos'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'joy/#/map_axis2pos'. + */// +static inline const char * ELEKTRA_GET (JoyMapAxis2pos) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/map_axis2pos", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'joy/#/map_axis2pos'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'joy/#/map_axis2pos'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (JoyMapAxis2pos) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/map_axis2pos", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'joy/#/map_button1'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'joy/#/map_button1'. + */// +static inline const char * ELEKTRA_GET (JoyMapButton1) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/map_button1", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'joy/#/map_button1'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'joy/#/map_button1'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (JoyMapButton1) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/map_button1", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'joy/#/map_button2'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'joy/#/map_button2'. + */// +static inline const char * ELEKTRA_GET (JoyMapButton2) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/map_button2", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'joy/#/map_button2'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'joy/#/map_button2'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (JoyMapButton2) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/map_button2", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'joy/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'joy/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (JoyOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'joy/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'joy/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (JoyOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'joy/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'joy/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (JoyReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'joy/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'joy/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (JoyReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("joy/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'lb216/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Lb216) (Elektra * elektra, Lb216DriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("lb216/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructLb216DriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'lb216/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lb216/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lb216) (Elektra * elektra, const Lb216DriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lb216/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructLb216DriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'lb216/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Lb216) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "lb216"); +} + + + +/** + * Get the value of 'lb216/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lb216/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Lb216Brightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lb216/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lb216/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lb216/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lb216Brightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lb216/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lb216/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lb216/#/device'. + */// +static inline const char * ELEKTRA_GET (Lb216Device) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lb216/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lb216/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lb216/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lb216Device) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lb216/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lb216/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lb216/#/file'. + */// +static inline const char * ELEKTRA_GET (Lb216File) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lb216/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lb216/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lb216/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lb216File) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lb216/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lb216/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lb216/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Lb216Reboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lb216/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lb216/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lb216/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lb216Reboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lb216/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lb216/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lb216/#/speed'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Lb216Speed) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lb216/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lb216/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lb216/#/speed'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lb216Speed) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lb216/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'lcdm001/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Lcdm001) (Elektra * elektra, Lcdm001DriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructLcdm001DriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'lcdm001/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lcdm001/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lcdm001) (Elektra * elektra, const Lcdm001DriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructLcdm001DriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'lcdm001/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Lcdm001) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "lcdm001"); +} + + + +/** + * Get the value of 'lcdm001/#/backkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lcdm001/#/backkey'. + */// +static inline Lcdm001Keys ELEKTRA_GET (Lcdm001Backkey) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld/backkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + Lcdm001Keys result = ELEKTRA_GET (EnumLcdm001Keys) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lcdm001/#/backkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lcdm001/#/backkey'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lcdm001Backkey) (Elektra * elektra, + Lcdm001Keys value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld/backkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumLcdm001Keys) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lcdm001/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lcdm001/#/device'. + */// +static inline const char * ELEKTRA_GET (Lcdm001Device) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lcdm001/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lcdm001/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lcdm001Device) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lcdm001/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lcdm001/#/file'. + */// +static inline const char * ELEKTRA_GET (Lcdm001File) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lcdm001/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lcdm001/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lcdm001File) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lcdm001/#/forwardkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lcdm001/#/forwardkey'. + */// +static inline Lcdm001Keys ELEKTRA_GET (Lcdm001Forwardkey) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld/forwardkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + Lcdm001Keys result = ELEKTRA_GET (EnumLcdm001Keys) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lcdm001/#/forwardkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lcdm001/#/forwardkey'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lcdm001Forwardkey) (Elektra * elektra, + Lcdm001Keys value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld/forwardkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumLcdm001Keys) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lcdm001/#/mainmenukey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lcdm001/#/mainmenukey'. + */// +static inline Lcdm001Keys ELEKTRA_GET (Lcdm001Mainmenukey) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld/mainmenukey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + Lcdm001Keys result = ELEKTRA_GET (EnumLcdm001Keys) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lcdm001/#/mainmenukey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lcdm001/#/mainmenukey'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lcdm001Mainmenukey) (Elektra * elektra, + Lcdm001Keys value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld/mainmenukey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumLcdm001Keys) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lcdm001/#/pausekey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lcdm001/#/pausekey'. + */// +static inline Lcdm001Keys ELEKTRA_GET (Lcdm001Pausekey) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld/pausekey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + Lcdm001Keys result = ELEKTRA_GET (EnumLcdm001Keys) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lcdm001/#/pausekey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lcdm001/#/pausekey'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lcdm001Pausekey) (Elektra * elektra, + Lcdm001Keys value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lcdm001/%*.*s%lld/pausekey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumLcdm001Keys) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'lcterm/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Lcterm) (Elektra * elektra, LctermDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("lcterm/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructLctermDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'lcterm/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lcterm/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lcterm) (Elektra * elektra, const LctermDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lcterm/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructLctermDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'lcterm/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Lcterm) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "lcterm"); +} + + + +/** + * Get the value of 'lcterm/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lcterm/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (LctermBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lcterm/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lcterm/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lcterm/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LctermBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lcterm/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lcterm/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lcterm/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (LctermContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lcterm/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lcterm/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lcterm/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LctermContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lcterm/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lcterm/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lcterm/#/device'. + */// +static inline const char * ELEKTRA_GET (LctermDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lcterm/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lcterm/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lcterm/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LctermDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lcterm/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lcterm/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lcterm/#/file'. + */// +static inline const char * ELEKTRA_GET (LctermFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lcterm/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lcterm/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lcterm/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LctermFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lcterm/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lcterm/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lcterm/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (LctermOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lcterm/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lcterm/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lcterm/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LctermOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lcterm/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lcterm/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lcterm/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (LctermReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lcterm/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lcterm/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lcterm/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LctermReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lcterm/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lcterm/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lcterm/#/size'. + */// +static inline const char * ELEKTRA_GET (LctermSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lcterm/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lcterm/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lcterm/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LctermSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lcterm/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'linux_input/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (LinuxInput) (Elektra * elektra, Linux_inputDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("linux_input/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructLinux_inputDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'linux_input/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'linux_input/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LinuxInput) (Elektra * elektra, const Linux_inputDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("linux_input/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructLinux_inputDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'linux_input/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (LinuxInput) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "linux_input"); +} + + + +/** + * Get the value of 'linux_input/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'linux_input/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (LinuxInputBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("linux_input/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'linux_input/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'linux_input/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LinuxInputBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("linux_input/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'linux_input/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'linux_input/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (LinuxInputContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("linux_input/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'linux_input/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'linux_input/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LinuxInputContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("linux_input/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'linux_input/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'linux_input/#/device'. + */// +static inline const char * ELEKTRA_GET (LinuxInputDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("linux_input/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'linux_input/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'linux_input/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LinuxInputDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("linux_input/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'linux_input/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'linux_input/#/file'. + */// +static inline const char * ELEKTRA_GET (LinuxInputFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("linux_input/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'linux_input/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'linux_input/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LinuxInputFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("linux_input/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'linux_input/#/key/_'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param name1 Replaces occurence no. 1 of _ in the keyname. + * + * @return the value of 'linux_input/#/key/_'. + */// +static inline const char * ELEKTRA_GET (LinuxInputKey) (Elektra * elektra , + kdb_long_long_t index1 , + const char * name1 ) +{ + + + char * name = elektraFormat ("linux_input/%*.*s%lld/key/%s", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 , + name1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'linux_input/#/key/_'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'linux_input/#/key/_'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param name1 Replaces occurence no. 1 of _ in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LinuxInputKey) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, + const char * name1, ElektraError ** error) +{ + + + char * name = elektraFormat ("linux_input/%*.*s%lld/key/%s", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 , + name1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'linux_input/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'linux_input/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (LinuxInputOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("linux_input/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'linux_input/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'linux_input/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LinuxInputOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("linux_input/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'linux_input/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'linux_input/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (LinuxInputReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("linux_input/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'linux_input/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'linux_input/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LinuxInputReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("linux_input/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'lirc/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Lirc) (Elektra * elektra, LircDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("lirc/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructLircDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'lirc/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lirc/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lirc) (Elektra * elektra, const LircDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lirc/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructLircDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'lirc/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Lirc) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "lirc"); +} + + + +/** + * Get the value of 'lirc/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lirc/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (LircBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lirc/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lirc/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lirc/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LircBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lirc/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lirc/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lirc/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (LircContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lirc/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lirc/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lirc/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LircContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lirc/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lirc/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lirc/#/file'. + */// +static inline const char * ELEKTRA_GET (LircFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lirc/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lirc/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lirc/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LircFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lirc/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lirc/#/lircrc'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lirc/#/lircrc'. + */// +static inline const char * ELEKTRA_GET (LircLircrc) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lirc/%*.*s%lld/lircrc", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lirc/#/lircrc'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lirc/#/lircrc'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LircLircrc) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lirc/%*.*s%lld/lircrc", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lirc/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lirc/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (LircOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lirc/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lirc/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lirc/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LircOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lirc/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lirc/#/prog'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lirc/#/prog'. + */// +static inline const char * ELEKTRA_GET (LircProg) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lirc/%*.*s%lld/prog", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lirc/#/prog'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lirc/#/prog'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LircProg) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lirc/%*.*s%lld/prog", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lirc/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lirc/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (LircReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lirc/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lirc/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lirc/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LircReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lirc/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'lis/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Lis) (Elektra * elektra, LisDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructLisDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'lis/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lis/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Lis) (Elektra * elektra, const LisDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructLisDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'lis/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Lis) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "lis"); +} + + + +/** + * Get the value of 'lis/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lis/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (LisBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lis/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lis/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LisBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lis/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lis/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (LisContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lis/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lis/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LisContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lis/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lis/#/file'. + */// +static inline const char * ELEKTRA_GET (LisFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lis/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lis/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LisFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lis/#/lastline'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lis/#/lastline'. + */// +static inline kdb_boolean_t ELEKTRA_GET (LisLastline) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/lastline", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lis/#/lastline'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lis/#/lastline'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LisLastline) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/lastline", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lis/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lis/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (LisOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lis/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lis/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LisOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lis/#/productid'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lis/#/productid'. + */// +static inline const char * ELEKTRA_GET (LisProductid) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/productid", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lis/#/productid'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lis/#/productid'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LisProductid) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/productid", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lis/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lis/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (LisReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lis/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lis/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LisReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lis/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lis/#/size'. + */// +static inline const char * ELEKTRA_GET (LisSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lis/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lis/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LisSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'lis/#/vendorid'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'lis/#/vendorid'. + */// +static inline const char * ELEKTRA_GET (LisVendorid) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/vendorid", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'lis/#/vendorid'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'lis/#/vendorid'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (LisVendorid) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("lis/%*.*s%lld/vendorid", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'md8800/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Md8800) (Elektra * elektra, MD8800DriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("md8800/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructMD8800DriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'md8800/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'md8800/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Md8800) (Elektra * elektra, const MD8800DriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("md8800/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructMD8800DriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'md8800/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Md8800) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "md8800"); +} + + + +/** + * Get the value of 'md8800/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'md8800/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Md8800Brightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("md8800/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'md8800/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'md8800/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Md8800Brightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("md8800/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'md8800/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'md8800/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Md8800Contrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("md8800/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'md8800/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'md8800/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Md8800Contrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("md8800/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'md8800/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'md8800/#/device'. + */// +static inline const char * ELEKTRA_GET (Md8800Device) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("md8800/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'md8800/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'md8800/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Md8800Device) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("md8800/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'md8800/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'md8800/#/file'. + */// +static inline const char * ELEKTRA_GET (Md8800File) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("md8800/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'md8800/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'md8800/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Md8800File) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("md8800/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'md8800/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'md8800/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Md8800Offbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("md8800/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'md8800/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'md8800/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Md8800Offbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("md8800/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'md8800/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'md8800/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Md8800Reboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("md8800/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'md8800/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'md8800/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Md8800Reboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("md8800/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'md8800/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'md8800/#/size'. + */// +static inline const char * ELEKTRA_GET (Md8800Size) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("md8800/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'md8800/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'md8800/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Md8800Size) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("md8800/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'mdm166a/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Mdm166a) (Elektra * elektra, Mdm166aDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructMdm166aDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'mdm166a/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mdm166a/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mdm166a) (Elektra * elektra, const Mdm166aDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructMdm166aDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'mdm166a/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Mdm166a) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "mdm166a"); +} + + + +/** + * Get the value of 'mdm166a/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mdm166a/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Mdm166aBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mdm166a/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mdm166a/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mdm166aBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mdm166a/#/clock'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mdm166a/#/clock'. + */// +static inline ElektraEnumMdm166aClock ELEKTRA_GET (Mdm166aClock) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld/clock", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ElektraEnumMdm166aClock result = ELEKTRA_GET (EnumMdm166aClock) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mdm166a/#/clock'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mdm166a/#/clock'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mdm166aClock) (Elektra * elektra, + ElektraEnumMdm166aClock value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld/clock", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumMdm166aClock) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mdm166a/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mdm166a/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Mdm166aContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mdm166a/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mdm166a/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mdm166aContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mdm166a/#/dimming'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mdm166a/#/dimming'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Mdm166aDimming) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld/dimming", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mdm166a/#/dimming'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mdm166a/#/dimming'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mdm166aDimming) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld/dimming", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mdm166a/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mdm166a/#/file'. + */// +static inline const char * ELEKTRA_GET (Mdm166aFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mdm166a/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mdm166a/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mdm166aFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mdm166a/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mdm166a/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Mdm166aOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mdm166a/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mdm166a/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mdm166aOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mdm166a/#/offdimming'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mdm166a/#/offdimming'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Mdm166aOffdimming) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld/offdimming", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mdm166a/#/offdimming'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mdm166a/#/offdimming'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mdm166aOffdimming) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld/offdimming", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mdm166a/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mdm166a/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Mdm166aReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mdm166a/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mdm166a/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mdm166aReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mdm166a/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'menu/downkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'menu/downkey'. + */// +static inline const char * ELEKTRA_GET (MenuDownkey) (Elektra * elektra ) +{ + + return ELEKTRA_GET (String) (elektra, "menu/downkey"); +} + + +/** + * Set the value of 'menu/downkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'menu/downkey'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MenuDownkey) (Elektra * elektra, + const char * value, ElektraError ** error) +{ + + ELEKTRA_SET (String) (elektra, "menu/downkey", value, error); +} + + + + +/** + * Get the value of 'menu/enterkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'menu/enterkey'. + */// +static inline const char * ELEKTRA_GET (MenuEnterkey) (Elektra * elektra ) +{ + + return ELEKTRA_GET (String) (elektra, "menu/enterkey"); +} + + +/** + * Set the value of 'menu/enterkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'menu/enterkey'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MenuEnterkey) (Elektra * elektra, + const char * value, ElektraError ** error) +{ + + ELEKTRA_SET (String) (elektra, "menu/enterkey", value, error); +} + + + + +/** + * Get the value of 'menu/leftkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'menu/leftkey'. + */// +static inline const char * ELEKTRA_GET (MenuLeftkey) (Elektra * elektra ) +{ + + return ELEKTRA_GET (String) (elektra, "menu/leftkey"); +} + + +/** + * Set the value of 'menu/leftkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'menu/leftkey'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MenuLeftkey) (Elektra * elektra, + const char * value, ElektraError ** error) +{ + + ELEKTRA_SET (String) (elektra, "menu/leftkey", value, error); +} + + + + +/** + * Get the value of 'menu/menukey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'menu/menukey'. + */// +static inline const char * ELEKTRA_GET (MenuMenukey) (Elektra * elektra ) +{ + + return ELEKTRA_GET (String) (elektra, "menu/menukey"); +} + + +/** + * Set the value of 'menu/menukey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'menu/menukey'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MenuMenukey) (Elektra * elektra, + const char * value, ElektraError ** error) +{ + + ELEKTRA_SET (String) (elektra, "menu/menukey", value, error); +} + + + + +/** + * Get the value of 'menu/permissivegoto'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'menu/permissivegoto'. + */// +static inline kdb_boolean_t ELEKTRA_GET (MenuPermissivegoto) (Elektra * elektra ) +{ + + return ELEKTRA_GET (Boolean) (elektra, "menu/permissivegoto"); +} + + +/** + * Set the value of 'menu/permissivegoto'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'menu/permissivegoto'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MenuPermissivegoto) (Elektra * elektra, + kdb_boolean_t value, ElektraError ** error) +{ + + ELEKTRA_SET (Boolean) (elektra, "menu/permissivegoto", value, error); +} + + + + +/** + * Get the value of 'menu/rightkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'menu/rightkey'. + */// +static inline const char * ELEKTRA_GET (MenuRightkey) (Elektra * elektra ) +{ + + return ELEKTRA_GET (String) (elektra, "menu/rightkey"); +} + + +/** + * Set the value of 'menu/rightkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'menu/rightkey'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MenuRightkey) (Elektra * elektra, + const char * value, ElektraError ** error) +{ + + ELEKTRA_SET (String) (elektra, "menu/rightkey", value, error); +} + + + + +/** + * Get the value of 'menu/upkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'menu/upkey'. + */// +static inline const char * ELEKTRA_GET (MenuUpkey) (Elektra * elektra ) +{ + + return ELEKTRA_GET (String) (elektra, "menu/upkey"); +} + + +/** + * Set the value of 'menu/upkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'menu/upkey'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MenuUpkey) (Elektra * elektra, + const char * value, ElektraError ** error) +{ + + ELEKTRA_SET (String) (elektra, "menu/upkey", value, error); +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'ms6931/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Ms6931) (Elektra * elektra, Ms6931DriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("ms6931/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructMs6931DriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'ms6931/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ms6931/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ms6931) (Elektra * elektra, const Ms6931DriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ms6931/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructMs6931DriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'ms6931/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Ms6931) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "ms6931"); +} + + + +/** + * Get the value of 'ms6931/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ms6931/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Ms6931Brightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ms6931/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ms6931/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ms6931/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ms6931Brightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ms6931/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ms6931/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ms6931/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Ms6931Contrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ms6931/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ms6931/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ms6931/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ms6931Contrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ms6931/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ms6931/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ms6931/#/device'. + */// +static inline const char * ELEKTRA_GET (Ms6931Device) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ms6931/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ms6931/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ms6931/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ms6931Device) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ms6931/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ms6931/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ms6931/#/file'. + */// +static inline const char * ELEKTRA_GET (Ms6931File) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ms6931/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ms6931/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ms6931/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ms6931File) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ms6931/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ms6931/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ms6931/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Ms6931Offbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ms6931/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ms6931/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ms6931/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ms6931Offbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ms6931/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ms6931/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ms6931/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Ms6931Reboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ms6931/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ms6931/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ms6931/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ms6931Reboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ms6931/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ms6931/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ms6931/#/size'. + */// +static inline const char * ELEKTRA_GET (Ms6931Size) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ms6931/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ms6931/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ms6931/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ms6931Size) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ms6931/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'mtc_s16209x/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (MtcS16209x) (Elektra * elektra, Mtc_s16209xDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("mtc_s16209x/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructMtc_s16209xDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'mtc_s16209x/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtc_s16209x/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtcS16209x) (Elektra * elektra, const Mtc_s16209xDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtc_s16209x/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructMtc_s16209xDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'mtc_s16209x/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (MtcS16209x) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "mtc_s16209x"); +} + + + +/** + * Get the value of 'mtc_s16209x/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtc_s16209x/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (MtcS16209xBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtc_s16209x/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtc_s16209x/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtcS16209xBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtc_s16209x/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtc_s16209x/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (MtcS16209xContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtc_s16209x/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtc_s16209x/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtcS16209xContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtc_s16209x/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtc_s16209x/#/device'. + */// +static inline const char * ELEKTRA_GET (MtcS16209xDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtc_s16209x/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtc_s16209x/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtcS16209xDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtc_s16209x/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtc_s16209x/#/file'. + */// +static inline const char * ELEKTRA_GET (MtcS16209xFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtc_s16209x/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtc_s16209x/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtcS16209xFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtc_s16209x/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtc_s16209x/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (MtcS16209xOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtc_s16209x/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtc_s16209x/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtcS16209xOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtc_s16209x/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtc_s16209x/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (MtcS16209xReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtc_s16209x/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtc_s16209x/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtcS16209xReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'mtxorb/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Mtxorb) (Elektra * elektra, MtxOrbDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructMtxOrbDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'mtxorb/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtxorb/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mtxorb) (Elektra * elektra, const MtxOrbDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructMtxOrbDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'mtxorb/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Mtxorb) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "mtxorb"); +} + + + +/** + * Get the value of 'mtxorb/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtxorb/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (MtxorbBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtxorb/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtxorb/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtxorbBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtxorb/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtxorb/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (MtxorbContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtxorb/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtxorb/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtxorbContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtxorb/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtxorb/#/device'. + */// +static inline const char * ELEKTRA_GET (MtxorbDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtxorb/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtxorb/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtxorbDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtxorb/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtxorb/#/file'. + */// +static inline const char * ELEKTRA_GET (MtxorbFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtxorb/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtxorb/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtxorbFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtxorb/#/hasadjustablebacklight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtxorb/#/hasadjustablebacklight'. + */// +static inline kdb_boolean_t ELEKTRA_GET (MtxorbHasadjustablebacklight) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/hasadjustablebacklight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtxorb/#/hasadjustablebacklight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtxorb/#/hasadjustablebacklight'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtxorbHasadjustablebacklight) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/hasadjustablebacklight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtxorb/#/keymap_a'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtxorb/#/keymap_a'. + */// +static inline const char * ELEKTRA_GET (MtxorbKeymapA) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_a", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtxorb/#/keymap_a'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtxorb/#/keymap_a'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtxorbKeymapA) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_a", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtxorb/#/keymap_b'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtxorb/#/keymap_b'. + */// +static inline const char * ELEKTRA_GET (MtxorbKeymapB) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_b", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtxorb/#/keymap_b'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtxorb/#/keymap_b'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtxorbKeymapB) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_b", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtxorb/#/keymap_c'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtxorb/#/keymap_c'. + */// +static inline const char * ELEKTRA_GET (MtxorbKeymapC) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_c", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtxorb/#/keymap_c'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtxorb/#/keymap_c'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtxorbKeymapC) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_c", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtxorb/#/keymap_d'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtxorb/#/keymap_d'. + */// +static inline const char * ELEKTRA_GET (MtxorbKeymapD) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_d", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtxorb/#/keymap_d'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtxorb/#/keymap_d'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtxorbKeymapD) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_d", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtxorb/#/keymap_e'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtxorb/#/keymap_e'. + */// +static inline const char * ELEKTRA_GET (MtxorbKeymapE) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_e", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtxorb/#/keymap_e'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtxorb/#/keymap_e'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtxorbKeymapE) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_e", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtxorb/#/keymap_f'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtxorb/#/keymap_f'. + */// +static inline const char * ELEKTRA_GET (MtxorbKeymapF) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_f", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtxorb/#/keymap_f'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtxorb/#/keymap_f'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtxorbKeymapF) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_f", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtxorb/#/keypad_test_mode'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtxorb/#/keypad_test_mode'. + */// +static inline kdb_boolean_t ELEKTRA_GET (MtxorbKeypadTestMode) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/keypad_test_mode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtxorb/#/keypad_test_mode'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtxorb/#/keypad_test_mode'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtxorbKeypadTestMode) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/keypad_test_mode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtxorb/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtxorb/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (MtxorbOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtxorb/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtxorb/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtxorbOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtxorb/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtxorb/#/size'. + */// +static inline const char * ELEKTRA_GET (MtxorbSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtxorb/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtxorb/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtxorbSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtxorb/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtxorb/#/speed'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (MtxorbSpeed) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtxorb/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtxorb/#/speed'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtxorbSpeed) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mtxorb/#/type'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mtxorb/#/type'. + */// +static inline ElektraEnumMtxorbType ELEKTRA_GET (MtxorbType) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/type", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ElektraEnumMtxorbType result = ELEKTRA_GET (EnumMtxorbType) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mtxorb/#/type'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mtxorb/#/type'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (MtxorbType) (Elektra * elektra, + ElektraEnumMtxorbType value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mtxorb/%*.*s%lld/type", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumMtxorbType) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'mx5000/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Mx5000) (Elektra * elektra, Mx5000DriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("mx5000/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructMx5000DriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'mx5000/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mx5000/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mx5000) (Elektra * elektra, const Mx5000DriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mx5000/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructMx5000DriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'mx5000/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Mx5000) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "mx5000"); +} + + + +/** + * Get the value of 'mx5000/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mx5000/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Mx5000Brightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mx5000/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mx5000/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mx5000/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mx5000Brightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mx5000/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mx5000/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mx5000/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Mx5000Contrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mx5000/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mx5000/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mx5000/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mx5000Contrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mx5000/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mx5000/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mx5000/#/device'. + */// +static inline const char * ELEKTRA_GET (Mx5000Device) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mx5000/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mx5000/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mx5000/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mx5000Device) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mx5000/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mx5000/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mx5000/#/file'. + */// +static inline const char * ELEKTRA_GET (Mx5000File) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mx5000/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mx5000/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mx5000/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mx5000File) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mx5000/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mx5000/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mx5000/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Mx5000Offbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mx5000/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mx5000/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mx5000/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mx5000Offbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mx5000/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mx5000/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mx5000/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Mx5000Reboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mx5000/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mx5000/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mx5000/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mx5000Reboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mx5000/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'mx5000/#/waitafterrefresh'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'mx5000/#/waitafterrefresh'. + */// +static inline kdb_unsigned_long_t ELEKTRA_GET (Mx5000Waitafterrefresh) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("mx5000/%*.*s%lld/waitafterrefresh", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'mx5000/#/waitafterrefresh'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'mx5000/#/waitafterrefresh'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Mx5000Waitafterrefresh) (Elektra * elektra, + kdb_unsigned_long_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("mx5000/%*.*s%lld/waitafterrefresh", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'noritakevfd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Noritakevfd) (Elektra * elektra, NoritakeVFDDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructNoritakeVFDDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'noritakevfd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'noritakevfd/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Noritakevfd) (Elektra * elektra, const NoritakeVFDDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructNoritakeVFDDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'noritakevfd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Noritakevfd) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "noritakevfd"); +} + + + +/** + * Get the value of 'noritakevfd/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'noritakevfd/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (NoritakevfdBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'noritakevfd/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'noritakevfd/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (NoritakevfdBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'noritakevfd/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'noritakevfd/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (NoritakevfdContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'noritakevfd/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'noritakevfd/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (NoritakevfdContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'noritakevfd/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'noritakevfd/#/device'. + */// +static inline const char * ELEKTRA_GET (NoritakevfdDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'noritakevfd/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'noritakevfd/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (NoritakevfdDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'noritakevfd/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'noritakevfd/#/file'. + */// +static inline const char * ELEKTRA_GET (NoritakevfdFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'noritakevfd/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'noritakevfd/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (NoritakevfdFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'noritakevfd/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'noritakevfd/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (NoritakevfdOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'noritakevfd/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'noritakevfd/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (NoritakevfdOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'noritakevfd/#/parity'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'noritakevfd/#/parity'. + */// +static inline kdb_unsigned_long_t ELEKTRA_GET (NoritakevfdParity) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/parity", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'noritakevfd/#/parity'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'noritakevfd/#/parity'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (NoritakevfdParity) (Elektra * elektra, + kdb_unsigned_long_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/parity", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'noritakevfd/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'noritakevfd/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (NoritakevfdReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'noritakevfd/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'noritakevfd/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (NoritakevfdReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'noritakevfd/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'noritakevfd/#/size'. + */// +static inline const char * ELEKTRA_GET (NoritakevfdSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'noritakevfd/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'noritakevfd/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (NoritakevfdSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'noritakevfd/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'noritakevfd/#/speed'. + */// +static inline kdb_unsigned_long_t ELEKTRA_GET (NoritakevfdSpeed) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'noritakevfd/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'noritakevfd/#/speed'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (NoritakevfdSpeed) (Elektra * elektra, + kdb_unsigned_long_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("noritakevfd/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'olimex_mod_lcd1x9/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (OlimexModLcd1x9) (Elektra * elektra, Olimex_MOD_LCD1x9DriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructOlimex_MOD_LCD1x9DriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'olimex_mod_lcd1x9/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'olimex_mod_lcd1x9/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (OlimexModLcd1x9) (Elektra * elektra, const Olimex_MOD_LCD1x9DriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructOlimex_MOD_LCD1x9DriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'olimex_mod_lcd1x9/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (OlimexModLcd1x9) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "olimex_mod_lcd1x9"); +} + + + +/** + * Get the value of 'olimex_mod_lcd1x9/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'olimex_mod_lcd1x9/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (OlimexModLcd1x9Brightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'olimex_mod_lcd1x9/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'olimex_mod_lcd1x9/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (OlimexModLcd1x9Brightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'olimex_mod_lcd1x9/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'olimex_mod_lcd1x9/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (OlimexModLcd1x9Contrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'olimex_mod_lcd1x9/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'olimex_mod_lcd1x9/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (OlimexModLcd1x9Contrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'olimex_mod_lcd1x9/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'olimex_mod_lcd1x9/#/device'. + */// +static inline const char * ELEKTRA_GET (OlimexModLcd1x9Device) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'olimex_mod_lcd1x9/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'olimex_mod_lcd1x9/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (OlimexModLcd1x9Device) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'olimex_mod_lcd1x9/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'olimex_mod_lcd1x9/#/file'. + */// +static inline const char * ELEKTRA_GET (OlimexModLcd1x9File) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'olimex_mod_lcd1x9/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'olimex_mod_lcd1x9/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (OlimexModLcd1x9File) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'olimex_mod_lcd1x9/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'olimex_mod_lcd1x9/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (OlimexModLcd1x9Offbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'olimex_mod_lcd1x9/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'olimex_mod_lcd1x9/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (OlimexModLcd1x9Offbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'olimex_mod_lcd1x9/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'olimex_mod_lcd1x9/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (OlimexModLcd1x9Reboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'olimex_mod_lcd1x9/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'olimex_mod_lcd1x9/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (OlimexModLcd1x9Reboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'picolcd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Picolcd) (Elektra * elektra, PicolcdDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructPicolcdDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'picolcd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Picolcd) (Elektra * elektra, const PicolcdDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructPicolcdDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'picolcd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Picolcd) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "picolcd"); +} + + + +/** + * Get the value of 'picolcd/#/backlight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/backlight'. + */// +static inline kdb_boolean_t ELEKTRA_GET (PicolcdBacklight) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/backlight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/backlight'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdBacklight) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (PicolcdBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (PicolcdContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/file'. + */// +static inline const char * ELEKTRA_GET (PicolcdFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/key0light'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/key0light'. + */// +static inline kdb_boolean_t ELEKTRA_GET (PicolcdKey0light) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/key0light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/key0light'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/key0light'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdKey0light) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/key0light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/key1light'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/key1light'. + */// +static inline kdb_boolean_t ELEKTRA_GET (PicolcdKey1light) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/key1light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/key1light'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/key1light'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdKey1light) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/key1light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/key2light'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/key2light'. + */// +static inline kdb_boolean_t ELEKTRA_GET (PicolcdKey2light) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/key2light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/key2light'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/key2light'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdKey2light) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/key2light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/key3light'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/key3light'. + */// +static inline kdb_boolean_t ELEKTRA_GET (PicolcdKey3light) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/key3light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/key3light'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/key3light'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdKey3light) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/key3light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/key4light'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/key4light'. + */// +static inline kdb_boolean_t ELEKTRA_GET (PicolcdKey4light) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/key4light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/key4light'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/key4light'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdKey4light) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/key4light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/key5light'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/key5light'. + */// +static inline kdb_boolean_t ELEKTRA_GET (PicolcdKey5light) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/key5light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/key5light'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/key5light'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdKey5light) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/key5light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/keylights'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/keylights'. + */// +static inline kdb_boolean_t ELEKTRA_GET (PicolcdKeylights) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/keylights", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/keylights'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/keylights'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdKeylights) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/keylights", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/keyrepeatdelay'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/keyrepeatdelay'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (PicolcdKeyrepeatdelay) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/keyrepeatdelay", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/keyrepeatdelay'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/keyrepeatdelay'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdKeyrepeatdelay) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/keyrepeatdelay", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/keyrepeatinterval'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/keyrepeatinterval'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (PicolcdKeyrepeatinterval) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/keyrepeatinterval", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/keyrepeatinterval'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/keyrepeatinterval'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdKeyrepeatinterval) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/keyrepeatinterval", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/keytimeout'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/keytimeout'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (PicolcdKeytimeout) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/keytimeout", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/keytimeout'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/keytimeout'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdKeytimeout) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/keytimeout", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/linklights'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/linklights'. + */// +static inline kdb_boolean_t ELEKTRA_GET (PicolcdLinklights) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/linklights", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/linklights'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/linklights'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdLinklights) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/linklights", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/lircflushthreshold'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/lircflushthreshold'. + */// +static inline kdb_unsigned_long_t ELEKTRA_GET (PicolcdLircflushthreshold) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/lircflushthreshold", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/lircflushthreshold'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/lircflushthreshold'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdLircflushthreshold) (Elektra * elektra, + kdb_unsigned_long_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/lircflushthreshold", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/lirchost'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/lirchost'. + */// +static inline const char * ELEKTRA_GET (PicolcdLirchost) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/lirchost", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/lirchost'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/lirchost'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdLirchost) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/lirchost", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/lircport'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/lircport'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (PicolcdLircport) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/lircport", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/lircport'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/lircport'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdLircport) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/lircport", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/lirctime_us'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/lirctime_us'. + */// +static inline kdb_boolean_t ELEKTRA_GET (PicolcdLirctimeUs) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/lirctime_us", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/lirctime_us'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/lirctime_us'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdLirctimeUs) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/lirctime_us", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (PicolcdOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'picolcd/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'picolcd/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (PicolcdReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'picolcd/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'picolcd/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PicolcdReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("picolcd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'pyramid/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Pyramid) (Elektra * elektra, PyramidDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("pyramid/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructPyramidDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'pyramid/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'pyramid/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Pyramid) (Elektra * elektra, const PyramidDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("pyramid/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructPyramidDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'pyramid/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Pyramid) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "pyramid"); +} + + + +/** + * Get the value of 'pyramid/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'pyramid/#/device'. + */// +static inline const char * ELEKTRA_GET (PyramidDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("pyramid/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'pyramid/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'pyramid/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PyramidDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("pyramid/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'pyramid/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'pyramid/#/file'. + */// +static inline const char * ELEKTRA_GET (PyramidFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("pyramid/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'pyramid/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'pyramid/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (PyramidFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("pyramid/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'rawserial/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Rawserial) (Elektra * elektra, RawserialDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructRawserialDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'rawserial/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'rawserial/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Rawserial) (Elektra * elektra, const RawserialDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructRawserialDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'rawserial/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Rawserial) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "rawserial"); +} + + + +/** + * Get the value of 'rawserial/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'rawserial/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (RawserialBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'rawserial/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'rawserial/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (RawserialBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'rawserial/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'rawserial/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (RawserialContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'rawserial/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'rawserial/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (RawserialContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'rawserial/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'rawserial/#/device'. + */// +static inline const char * ELEKTRA_GET (RawserialDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'rawserial/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'rawserial/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (RawserialDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'rawserial/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'rawserial/#/file'. + */// +static inline const char * ELEKTRA_GET (RawserialFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'rawserial/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'rawserial/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (RawserialFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'rawserial/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'rawserial/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (RawserialOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'rawserial/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'rawserial/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (RawserialOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'rawserial/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'rawserial/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (RawserialReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'rawserial/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'rawserial/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (RawserialReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'rawserial/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'rawserial/#/size'. + */// +static inline const char * ELEKTRA_GET (RawserialSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'rawserial/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'rawserial/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (RawserialSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'rawserial/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'rawserial/#/speed'. + */// +static inline kdb_unsigned_long_t ELEKTRA_GET (RawserialSpeed) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'rawserial/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'rawserial/#/speed'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (RawserialSpeed) (Elektra * elektra, + kdb_unsigned_long_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'rawserial/#/updaterate'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'rawserial/#/updaterate'. + */// +static inline kdb_float_t ELEKTRA_GET (RawserialUpdaterate) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/updaterate", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_float_t result = ELEKTRA_GET (Float) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'rawserial/#/updaterate'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'rawserial/#/updaterate'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (RawserialUpdaterate) (Elektra * elektra, + kdb_float_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("rawserial/%*.*s%lld/updaterate", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Float) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'sed1330/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Sed1330) (Elektra * elektra, Sed1330DriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructSed1330DriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'sed1330/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1330/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1330) (Elektra * elektra, const Sed1330DriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructSed1330DriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'sed1330/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Sed1330) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "sed1330"); +} + + + +/** + * Get the value of 'sed1330/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1330/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Sed1330Brightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1330/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1330/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1330Brightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1330/#/cellsize'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1330/#/cellsize'. + */// +static inline const char * ELEKTRA_GET (Sed1330Cellsize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/cellsize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1330/#/cellsize'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1330/#/cellsize'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1330Cellsize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/cellsize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1330/#/connectiontype'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1330/#/connectiontype'. + */// +static inline ElektraEnumSed1330Connectiontype ELEKTRA_GET (Sed1330Connectiontype) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/connectiontype", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ElektraEnumSed1330Connectiontype result = ELEKTRA_GET (EnumSed1330Connectiontype) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1330/#/connectiontype'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1330/#/connectiontype'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1330Connectiontype) (Elektra * elektra, + ElektraEnumSed1330Connectiontype value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/connectiontype", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumSed1330Connectiontype) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1330/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1330/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Sed1330Contrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1330/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1330/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1330Contrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1330/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1330/#/file'. + */// +static inline const char * ELEKTRA_GET (Sed1330File) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1330/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1330/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1330File) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1330/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1330/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Sed1330Offbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1330/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1330/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1330Offbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1330/#/port'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1330/#/port'. + */// +static inline const char * ELEKTRA_GET (Sed1330Port) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1330/#/port'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1330/#/port'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1330Port) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1330/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1330/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Sed1330Reboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1330/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1330/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1330Reboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1330/#/type'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1330/#/type'. + */// +static inline ElektraEnumSed1330Type ELEKTRA_GET (Sed1330Type) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/type", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ElektraEnumSed1330Type result = ELEKTRA_GET (EnumSed1330Type) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1330/#/type'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1330/#/type'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1330Type) (Elektra * elektra, + ElektraEnumSed1330Type value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1330/%*.*s%lld/type", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumSed1330Type) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'sed1520/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Sed1520) (Elektra * elektra, Sed1520DriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructSed1520DriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'sed1520/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1520/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1520) (Elektra * elektra, const Sed1520DriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructSed1520DriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'sed1520/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Sed1520) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "sed1520"); +} + + + +/** + * Get the value of 'sed1520/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1520/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Sed1520Brightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1520/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1520/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1520Brightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1520/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1520/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Sed1520Contrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1520/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1520/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1520Contrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1520/#/delaymult'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1520/#/delaymult'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Sed1520Delaymult) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/delaymult", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1520/#/delaymult'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1520/#/delaymult'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1520Delaymult) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/delaymult", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1520/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1520/#/file'. + */// +static inline const char * ELEKTRA_GET (Sed1520File) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1520/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1520/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1520File) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1520/#/haveinverter'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1520/#/haveinverter'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Sed1520Haveinverter) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/haveinverter", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1520/#/haveinverter'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1520/#/haveinverter'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1520Haveinverter) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/haveinverter", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1520/#/interfacetype'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1520/#/interfacetype'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Sed1520Interfacetype) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/interfacetype", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1520/#/interfacetype'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1520/#/interfacetype'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1520Interfacetype) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/interfacetype", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1520/#/invertedmapping'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1520/#/invertedmapping'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Sed1520Invertedmapping) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/invertedmapping", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1520/#/invertedmapping'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1520/#/invertedmapping'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1520Invertedmapping) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/invertedmapping", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1520/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1520/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Sed1520Offbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1520/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1520/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1520Offbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1520/#/port'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1520/#/port'. + */// +static inline const char * ELEKTRA_GET (Sed1520Port) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1520/#/port'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1520/#/port'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1520Port) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1520/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1520/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Sed1520Reboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1520/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1520/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1520Reboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sed1520/#/usehardreset'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sed1520/#/usehardreset'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Sed1520Usehardreset) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/usehardreset", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sed1520/#/usehardreset'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sed1520/#/usehardreset'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sed1520Usehardreset) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sed1520/%*.*s%lld/usehardreset", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'serialpos/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Serialpos) (Elektra * elektra, SerialPOSDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructSerialPOSDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'serialpos/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialpos/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Serialpos) (Elektra * elektra, const SerialPOSDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructSerialPOSDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'serialpos/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Serialpos) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "serialpos"); +} + + + +/** + * Get the value of 'serialpos/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialpos/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SerialposBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialpos/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialpos/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialposBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialpos/#/cellsize'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialpos/#/cellsize'. + */// +static inline const char * ELEKTRA_GET (SerialposCellsize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/cellsize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialpos/#/cellsize'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialpos/#/cellsize'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialposCellsize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/cellsize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialpos/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialpos/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SerialposContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialpos/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialpos/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialposContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialpos/#/custom_chars'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialpos/#/custom_chars'. + */// +static inline kdb_unsigned_long_t ELEKTRA_GET (SerialposCustomChars) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/custom_chars", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialpos/#/custom_chars'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialpos/#/custom_chars'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialposCustomChars) (Elektra * elektra, + kdb_unsigned_long_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/custom_chars", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialpos/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialpos/#/device'. + */// +static inline const char * ELEKTRA_GET (SerialposDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialpos/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialpos/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialposDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialpos/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialpos/#/file'. + */// +static inline const char * ELEKTRA_GET (SerialposFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialpos/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialpos/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialposFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialpos/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialpos/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SerialposOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialpos/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialpos/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialposOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialpos/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialpos/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (SerialposReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialpos/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialpos/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialposReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialpos/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialpos/#/size'. + */// +static inline const char * ELEKTRA_GET (SerialposSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialpos/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialpos/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialposSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialpos/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialpos/#/speed'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SerialposSpeed) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialpos/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialpos/#/speed'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialposSpeed) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialpos/#/type'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialpos/#/type'. + */// +static inline ElektraEnumSerialposType ELEKTRA_GET (SerialposType) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/type", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ElektraEnumSerialposType result = ELEKTRA_GET (EnumSerialposType) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialpos/#/type'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialpos/#/type'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialposType) (Elektra * elektra, + ElektraEnumSerialposType value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialpos/%*.*s%lld/type", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (EnumSerialposType) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'serialvfd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Serialvfd) (Elektra * elektra, SerialVFDDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructSerialVFDDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'serialvfd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialvfd/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Serialvfd) (Elektra * elektra, const SerialVFDDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructSerialVFDDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'serialvfd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Serialvfd) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "serialvfd"); +} + + + +/** + * Get the value of 'serialvfd/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialvfd/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SerialvfdBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialvfd/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialvfd/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialvfdBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialvfd/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialvfd/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SerialvfdContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialvfd/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialvfd/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialvfdContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialvfd/#/custom-characters'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialvfd/#/custom-characters'. + */// +static inline kdb_unsigned_long_t ELEKTRA_GET (SerialvfdCustomCharacters) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/custom-characters", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialvfd/#/custom-characters'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialvfd/#/custom-characters'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialvfdCustomCharacters) (Elektra * elektra, + kdb_unsigned_long_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/custom-characters", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialvfd/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialvfd/#/device'. + */// +static inline const char * ELEKTRA_GET (SerialvfdDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialvfd/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialvfd/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialvfdDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialvfd/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialvfd/#/file'. + */// +static inline const char * ELEKTRA_GET (SerialvfdFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialvfd/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialvfd/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialvfdFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialvfd/#/iso_8859_1'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialvfd/#/iso_8859_1'. + */// +static inline kdb_boolean_t ELEKTRA_GET (SerialvfdIso88591) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/iso_8859_1", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialvfd/#/iso_8859_1'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialvfd/#/iso_8859_1'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialvfdIso88591) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/iso_8859_1", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialvfd/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialvfd/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SerialvfdOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialvfd/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialvfd/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialvfdOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialvfd/#/port'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialvfd/#/port'. + */// +static inline const char * ELEKTRA_GET (SerialvfdPort) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialvfd/#/port'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialvfd/#/port'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialvfdPort) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialvfd/#/portwait'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialvfd/#/portwait'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SerialvfdPortwait) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/portwait", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialvfd/#/portwait'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialvfd/#/portwait'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialvfdPortwait) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/portwait", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialvfd/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialvfd/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (SerialvfdReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialvfd/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialvfd/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialvfdReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialvfd/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialvfd/#/size'. + */// +static inline const char * ELEKTRA_GET (SerialvfdSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialvfd/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialvfd/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialvfdSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialvfd/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialvfd/#/speed'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SerialvfdSpeed) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialvfd/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialvfd/#/speed'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialvfdSpeed) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialvfd/#/type'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialvfd/#/type'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SerialvfdType) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/type", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialvfd/#/type'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialvfd/#/type'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialvfdType) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/type", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'serialvfd/#/use_parallel'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'serialvfd/#/use_parallel'. + */// +static inline kdb_boolean_t ELEKTRA_GET (SerialvfdUseParallel) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/use_parallel", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'serialvfd/#/use_parallel'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'serialvfd/#/use_parallel'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SerialvfdUseParallel) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("serialvfd/%*.*s%lld/use_parallel", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'server/autorotate'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/autorotate'. + */// +static inline kdb_boolean_t ELEKTRA_GET (ServerAutorotate) (Elektra * elektra ) +{ + + return ELEKTRA_GET (Boolean) (elektra, "server/autorotate"); +} + + +/** + * Set the value of 'server/autorotate'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/autorotate'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerAutorotate) (Elektra * elektra, + kdb_boolean_t value, ElektraError ** error) +{ + + ELEKTRA_SET (Boolean) (elektra, "server/autorotate", value, error); +} + + + + +/** + * Get the value of 'server/backlight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/backlight'. + */// +static inline ElektraEnumServerBacklight ELEKTRA_GET (ServerBacklight) (Elektra * elektra ) +{ + + return ELEKTRA_GET (EnumServerBacklight) (elektra, "server/backlight"); +} + + +/** + * Set the value of 'server/backlight'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/backlight'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerBacklight) (Elektra * elektra, + ElektraEnumServerBacklight value, ElektraError ** error) +{ + + ELEKTRA_SET (EnumServerBacklight) (elektra, "server/backlight", value, error); +} + + + + +/** + * Get the value of 'server/bind'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/bind'. + */// +static inline const char * ELEKTRA_GET (ServerBind) (Elektra * elektra ) +{ + + return ELEKTRA_GET (String) (elektra, "server/bind"); +} + + +/** + * Set the value of 'server/bind'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/bind'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerBind) (Elektra * elektra, + const char * value, ElektraError ** error) +{ + + ELEKTRA_SET (String) (elektra, "server/bind", value, error); +} + + + + +/** + * Get the value of 'server/driverpath'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/driverpath'. + */// +static inline const char * ELEKTRA_GET (ServerDriverpath) (Elektra * elektra ) +{ + + return ELEKTRA_GET (String) (elektra, "server/driverpath"); +} + + +/** + * Set the value of 'server/driverpath'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/driverpath'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerDriverpath) (Elektra * elektra, + const char * value, ElektraError ** error) +{ + + ELEKTRA_SET (String) (elektra, "server/driverpath", value, error); +} + + + + +/** + * Get the value of 'server/drivers/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'server/drivers/#'. + */// +static inline const char * ELEKTRA_GET (ServerDrivers) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("server/drivers/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'server/drivers/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/drivers/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerDrivers) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("server/drivers/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +/** + * Get the size of the array 'server/drivers/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (ServerDrivers) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "server/drivers"); +} + + + +/** + * Get the value of 'server/foreground'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/foreground'. + */// +static inline kdb_boolean_t ELEKTRA_GET (ServerForeground) (Elektra * elektra ) +{ + + return ELEKTRA_GET (Boolean) (elektra, "server/foreground"); +} + + +/** + * Set the value of 'server/foreground'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/foreground'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerForeground) (Elektra * elektra, + kdb_boolean_t value, ElektraError ** error) +{ + + ELEKTRA_SET (Boolean) (elektra, "server/foreground", value, error); +} + + + + +/** + * Get the value of 'server/frameinterval'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/frameinterval'. + */// +static inline kdb_unsigned_long_t ELEKTRA_GET (ServerFrameinterval) (Elektra * elektra ) +{ + + return ELEKTRA_GET (UnsignedLong) (elektra, "server/frameinterval"); +} + + +/** + * Set the value of 'server/frameinterval'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/frameinterval'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerFrameinterval) (Elektra * elektra, + kdb_unsigned_long_t value, ElektraError ** error) +{ + + ELEKTRA_SET (UnsignedLong) (elektra, "server/frameinterval", value, error); +} + + + + +/** + * Get the value of 'server/goodbye/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'server/goodbye/#'. + */// +static inline const char * ELEKTRA_GET (ServerGoodbye) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("server/goodbye/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'server/goodbye/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/goodbye/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerGoodbye) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("server/goodbye/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +/** + * Get the size of the array 'server/goodbye/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (ServerGoodbye) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "server/goodbye"); +} + + + +/** + * Get the value of 'server/heartbeat'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/heartbeat'. + */// +static inline ElektraEnumServerHeartbeat ELEKTRA_GET (ServerHeartbeat) (Elektra * elektra ) +{ + + return ELEKTRA_GET (EnumServerHeartbeat) (elektra, "server/heartbeat"); +} + + +/** + * Set the value of 'server/heartbeat'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/heartbeat'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerHeartbeat) (Elektra * elektra, + ElektraEnumServerHeartbeat value, ElektraError ** error) +{ + + ELEKTRA_SET (EnumServerHeartbeat) (elektra, "server/heartbeat", value, error); +} + + + + +/** + * Get the value of 'server/hello/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'server/hello/#'. + */// +static inline const char * ELEKTRA_GET (ServerHello) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("server/hello/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'server/hello/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/hello/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerHello) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("server/hello/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +/** + * Get the size of the array 'server/hello/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (ServerHello) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "server/hello"); +} + + + +/** + * Get the value of 'server/nextscreenkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/nextscreenkey'. + */// +static inline const char * ELEKTRA_GET (ServerNextscreenkey) (Elektra * elektra ) +{ + + return ELEKTRA_GET (String) (elektra, "server/nextscreenkey"); +} + + +/** + * Set the value of 'server/nextscreenkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/nextscreenkey'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerNextscreenkey) (Elektra * elektra, + const char * value, ElektraError ** error) +{ + + ELEKTRA_SET (String) (elektra, "server/nextscreenkey", value, error); +} + + + + +/** + * Get the value of 'server/port'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/port'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (ServerPort) (Elektra * elektra ) +{ + + return ELEKTRA_GET (UnsignedShort) (elektra, "server/port"); +} + + +/** + * Set the value of 'server/port'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/port'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerPort) (Elektra * elektra, + kdb_unsigned_short_t value, ElektraError ** error) +{ + + ELEKTRA_SET (UnsignedShort) (elektra, "server/port", value, error); +} + + + + +/** + * Get the value of 'server/prevscreenkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/prevscreenkey'. + */// +static inline const char * ELEKTRA_GET (ServerPrevscreenkey) (Elektra * elektra ) +{ + + return ELEKTRA_GET (String) (elektra, "server/prevscreenkey"); +} + + +/** + * Set the value of 'server/prevscreenkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/prevscreenkey'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerPrevscreenkey) (Elektra * elektra, + const char * value, ElektraError ** error) +{ + + ELEKTRA_SET (String) (elektra, "server/prevscreenkey", value, error); +} + + + + +/** + * Get the value of 'server/reportlevel'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/reportlevel'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (ServerReportlevel) (Elektra * elektra ) +{ + + return ELEKTRA_GET (UnsignedShort) (elektra, "server/reportlevel"); +} + + +/** + * Set the value of 'server/reportlevel'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/reportlevel'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerReportlevel) (Elektra * elektra, + kdb_unsigned_short_t value, ElektraError ** error) +{ + + ELEKTRA_SET (UnsignedShort) (elektra, "server/reportlevel", value, error); +} + + + + +/** + * Get the value of 'server/reporttosyslog'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/reporttosyslog'. + */// +static inline kdb_boolean_t ELEKTRA_GET (ServerReporttosyslog) (Elektra * elektra ) +{ + + return ELEKTRA_GET (Boolean) (elektra, "server/reporttosyslog"); +} + + +/** + * Set the value of 'server/reporttosyslog'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/reporttosyslog'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerReporttosyslog) (Elektra * elektra, + kdb_boolean_t value, ElektraError ** error) +{ + + ELEKTRA_SET (Boolean) (elektra, "server/reporttosyslog", value, error); +} + + + + +/** + * Get the value of 'server/scrolldownkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/scrolldownkey'. + */// +static inline const char * ELEKTRA_GET (ServerScrolldownkey) (Elektra * elektra ) +{ + + return ELEKTRA_GET (String) (elektra, "server/scrolldownkey"); +} + + +/** + * Set the value of 'server/scrolldownkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/scrolldownkey'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerScrolldownkey) (Elektra * elektra, + const char * value, ElektraError ** error) +{ + + ELEKTRA_SET (String) (elektra, "server/scrolldownkey", value, error); +} + + + + +/** + * Get the value of 'server/scrollupkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/scrollupkey'. + */// +static inline const char * ELEKTRA_GET (ServerScrollupkey) (Elektra * elektra ) +{ + + return ELEKTRA_GET (String) (elektra, "server/scrollupkey"); +} + + +/** + * Set the value of 'server/scrollupkey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/scrollupkey'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerScrollupkey) (Elektra * elektra, + const char * value, ElektraError ** error) +{ + + ELEKTRA_SET (String) (elektra, "server/scrollupkey", value, error); +} + + + + +/** + * Get the value of 'server/serverscreen'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/serverscreen'. + */// +static inline ElektraEnumServerServerscreen ELEKTRA_GET (ServerServerscreen) (Elektra * elektra ) +{ + + return ELEKTRA_GET (EnumServerServerscreen) (elektra, "server/serverscreen"); +} + + +/** + * Set the value of 'server/serverscreen'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/serverscreen'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerServerscreen) (Elektra * elektra, + ElektraEnumServerServerscreen value, ElektraError ** error) +{ + + ELEKTRA_SET (EnumServerServerscreen) (elektra, "server/serverscreen", value, error); +} + + + + +/** + * Get the value of 'server/titlespeed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/titlespeed'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (ServerTitlespeed) (Elektra * elektra ) +{ + + return ELEKTRA_GET (UnsignedShort) (elektra, "server/titlespeed"); +} + + +/** + * Set the value of 'server/titlespeed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/titlespeed'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerTitlespeed) (Elektra * elektra, + kdb_unsigned_short_t value, ElektraError ** error) +{ + + ELEKTRA_SET (UnsignedShort) (elektra, "server/titlespeed", value, error); +} + + + + +/** + * Get the value of 'server/togglerotatekey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/togglerotatekey'. + */// +static inline const char * ELEKTRA_GET (ServerTogglerotatekey) (Elektra * elektra ) +{ + + return ELEKTRA_GET (String) (elektra, "server/togglerotatekey"); +} + + +/** + * Set the value of 'server/togglerotatekey'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/togglerotatekey'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerTogglerotatekey) (Elektra * elektra, + const char * value, ElektraError ** error) +{ + + ELEKTRA_SET (String) (elektra, "server/togglerotatekey", value, error); +} + + + + +/** + * Get the value of 'server/user'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/user'. + */// +static inline const char * ELEKTRA_GET (ServerUser) (Elektra * elektra ) +{ + + return ELEKTRA_GET (String) (elektra, "server/user"); +} + + +/** + * Set the value of 'server/user'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/user'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerUser) (Elektra * elektra, + const char * value, ElektraError ** error) +{ + + ELEKTRA_SET (String) (elektra, "server/user", value, error); +} + + + + +/** + * Get the value of 'server/waittime'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + * + * @return the value of 'server/waittime'. + */// +static inline kdb_float_t ELEKTRA_GET (ServerWaittime) (Elektra * elektra ) +{ + + return ELEKTRA_GET (Float) (elektra, "server/waittime"); +} + + +/** + * Set the value of 'server/waittime'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'server/waittime'. + + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (ServerWaittime) (Elektra * elektra, + kdb_float_t value, ElektraError ** error) +{ + + ELEKTRA_SET (Float) (elektra, "server/waittime", value, error); +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'sli/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Sli) (Elektra * elektra, SliDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("sli/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructSliDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'sli/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sli/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sli) (Elektra * elektra, const SliDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sli/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructSliDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'sli/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Sli) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "sli"); +} + + + +/** + * Get the value of 'sli/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sli/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SliBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sli/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sli/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sli/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SliBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sli/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sli/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sli/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SliContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sli/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sli/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sli/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SliContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sli/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sli/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sli/#/device'. + */// +static inline const char * ELEKTRA_GET (SliDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sli/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sli/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sli/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SliDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sli/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sli/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sli/#/file'. + */// +static inline const char * ELEKTRA_GET (SliFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sli/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sli/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sli/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SliFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sli/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sli/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sli/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SliOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sli/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sli/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sli/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SliOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sli/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sli/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sli/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (SliReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sli/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sli/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sli/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SliReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sli/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sli/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sli/#/speed'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SliSpeed) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sli/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sli/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sli/#/speed'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SliSpeed) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sli/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'stv5730/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Stv5730) (Elektra * elektra, Stv5730DriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("stv5730/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructStv5730DriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'stv5730/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'stv5730/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Stv5730) (Elektra * elektra, const Stv5730DriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("stv5730/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructStv5730DriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'stv5730/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Stv5730) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "stv5730"); +} + + + +/** + * Get the value of 'stv5730/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'stv5730/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Stv5730Brightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("stv5730/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'stv5730/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'stv5730/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Stv5730Brightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("stv5730/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'stv5730/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'stv5730/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Stv5730Contrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("stv5730/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'stv5730/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'stv5730/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Stv5730Contrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("stv5730/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'stv5730/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'stv5730/#/file'. + */// +static inline const char * ELEKTRA_GET (Stv5730File) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("stv5730/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'stv5730/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'stv5730/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Stv5730File) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("stv5730/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'stv5730/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'stv5730/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Stv5730Offbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("stv5730/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'stv5730/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'stv5730/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Stv5730Offbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("stv5730/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'stv5730/#/port'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'stv5730/#/port'. + */// +static inline const char * ELEKTRA_GET (Stv5730Port) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("stv5730/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'stv5730/#/port'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'stv5730/#/port'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Stv5730Port) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("stv5730/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'stv5730/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'stv5730/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Stv5730Reboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("stv5730/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'stv5730/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'stv5730/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Stv5730Reboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("stv5730/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'sureelec/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Sureelec) (Elektra * elektra, SureElecDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructSureElecDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'sureelec/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sureelec/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Sureelec) (Elektra * elektra, const SureElecDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructSureElecDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'sureelec/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Sureelec) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "sureelec"); +} + + + +/** + * Get the value of 'sureelec/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sureelec/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SureelecBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sureelec/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sureelec/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SureelecBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sureelec/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sureelec/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SureelecContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sureelec/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sureelec/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SureelecContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sureelec/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sureelec/#/device'. + */// +static inline const char * ELEKTRA_GET (SureelecDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sureelec/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sureelec/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SureelecDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sureelec/#/edition'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sureelec/#/edition'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SureelecEdition) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld/edition", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sureelec/#/edition'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sureelec/#/edition'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SureelecEdition) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld/edition", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sureelec/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sureelec/#/file'. + */// +static inline const char * ELEKTRA_GET (SureelecFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sureelec/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sureelec/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SureelecFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sureelec/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sureelec/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SureelecOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sureelec/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sureelec/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SureelecOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sureelec/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sureelec/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (SureelecReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sureelec/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sureelec/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SureelecReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'sureelec/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'sureelec/#/size'. + */// +static inline const char * ELEKTRA_GET (SureelecSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'sureelec/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'sureelec/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SureelecSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("sureelec/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'svga/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Svga) (Elektra * elektra, SvgaDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("svga/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructSvgaDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'svga/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'svga/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Svga) (Elektra * elektra, const SvgaDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("svga/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructSvgaDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'svga/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Svga) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "svga"); +} + + + +/** + * Get the value of 'svga/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'svga/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SvgaBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("svga/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'svga/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'svga/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SvgaBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("svga/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'svga/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'svga/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SvgaContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("svga/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'svga/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'svga/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SvgaContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("svga/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'svga/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'svga/#/file'. + */// +static inline const char * ELEKTRA_GET (SvgaFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("svga/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'svga/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'svga/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SvgaFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("svga/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'svga/#/mode'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'svga/#/mode'. + */// +static inline const char * ELEKTRA_GET (SvgaMode) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("svga/%*.*s%lld/mode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'svga/#/mode'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'svga/#/mode'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SvgaMode) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("svga/%*.*s%lld/mode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'svga/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'svga/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (SvgaOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("svga/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'svga/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'svga/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SvgaOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("svga/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'svga/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'svga/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (SvgaReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("svga/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'svga/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'svga/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SvgaReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("svga/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'svga/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'svga/#/size'. + */// +static inline const char * ELEKTRA_GET (SvgaSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("svga/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'svga/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'svga/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (SvgaSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("svga/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 't6963/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (T6963) (Elektra * elektra, T6963DriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructT6963DriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 't6963/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 't6963/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (T6963) (Elektra * elektra, const T6963DriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructT6963DriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 't6963/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (T6963) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "t6963"); +} + + + +/** + * Get the value of 't6963/#/bidirectional'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 't6963/#/bidirectional'. + */// +static inline kdb_boolean_t ELEKTRA_GET (T6963Bidirectional) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/bidirectional", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 't6963/#/bidirectional'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 't6963/#/bidirectional'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (T6963Bidirectional) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/bidirectional", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 't6963/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 't6963/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (T6963Brightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 't6963/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 't6963/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (T6963Brightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 't6963/#/cleargraphic'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 't6963/#/cleargraphic'. + */// +static inline kdb_boolean_t ELEKTRA_GET (T6963Cleargraphic) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/cleargraphic", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 't6963/#/cleargraphic'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 't6963/#/cleargraphic'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (T6963Cleargraphic) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/cleargraphic", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 't6963/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 't6963/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (T6963Contrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 't6963/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 't6963/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (T6963Contrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 't6963/#/delaybus'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 't6963/#/delaybus'. + */// +static inline kdb_boolean_t ELEKTRA_GET (T6963Delaybus) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/delaybus", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 't6963/#/delaybus'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 't6963/#/delaybus'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (T6963Delaybus) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/delaybus", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 't6963/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 't6963/#/file'. + */// +static inline const char * ELEKTRA_GET (T6963File) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 't6963/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 't6963/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (T6963File) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 't6963/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 't6963/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (T6963Offbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 't6963/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 't6963/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (T6963Offbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 't6963/#/port'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 't6963/#/port'. + */// +static inline const char * ELEKTRA_GET (T6963Port) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 't6963/#/port'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 't6963/#/port'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (T6963Port) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 't6963/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 't6963/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (T6963Reboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 't6963/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 't6963/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (T6963Reboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 't6963/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 't6963/#/size'. + */// +static inline const char * ELEKTRA_GET (T6963Size) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 't6963/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 't6963/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (T6963Size) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("t6963/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'text/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Text) (Elektra * elektra, TextDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("text/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructTextDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'text/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'text/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Text) (Elektra * elektra, const TextDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("text/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructTextDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'text/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Text) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "text"); +} + + + +/** + * Get the value of 'text/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'text/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (TextBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("text/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'text/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'text/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (TextBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("text/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'text/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'text/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (TextContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("text/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'text/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'text/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (TextContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("text/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'text/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'text/#/file'. + */// +static inline const char * ELEKTRA_GET (TextFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("text/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'text/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'text/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (TextFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("text/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'text/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'text/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (TextOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("text/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'text/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'text/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (TextOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("text/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'text/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'text/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (TextReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("text/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'text/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'text/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (TextReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("text/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'text/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'text/#/size'. + */// +static inline const char * ELEKTRA_GET (TextSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("text/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'text/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'text/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (TextSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("text/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'tyan/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Tyan) (Elektra * elektra, TyanDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructTyanDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'tyan/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'tyan/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Tyan) (Elektra * elektra, const TyanDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructTyanDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'tyan/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Tyan) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "tyan"); +} + + + +/** + * Get the value of 'tyan/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'tyan/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (TyanBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'tyan/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'tyan/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (TyanBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'tyan/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'tyan/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (TyanContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'tyan/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'tyan/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (TyanContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'tyan/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'tyan/#/device'. + */// +static inline const char * ELEKTRA_GET (TyanDevice) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'tyan/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'tyan/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (TyanDevice) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'tyan/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'tyan/#/file'. + */// +static inline const char * ELEKTRA_GET (TyanFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'tyan/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'tyan/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (TyanFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'tyan/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'tyan/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (TyanOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'tyan/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'tyan/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (TyanOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'tyan/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'tyan/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (TyanReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'tyan/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'tyan/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (TyanReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'tyan/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'tyan/#/size'. + */// +static inline const char * ELEKTRA_GET (TyanSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'tyan/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'tyan/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (TyanSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'tyan/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'tyan/#/speed'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (TyanSpeed) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'tyan/#/speed'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'tyan/#/speed'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (TyanSpeed) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("tyan/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'ula200/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Ula200) (Elektra * elektra, Ula200DriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructUla200DriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'ula200/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ula200/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ula200) (Elektra * elektra, const Ula200DriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructUla200DriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'ula200/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Ula200) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "ula200"); +} + + + +/** + * Get the value of 'ula200/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ula200/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Ula200Brightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ula200/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ula200/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ula200Brightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ula200/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ula200/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Ula200Contrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ula200/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ula200/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ula200Contrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ula200/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ula200/#/file'. + */// +static inline const char * ELEKTRA_GET (Ula200File) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ula200/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ula200/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ula200File) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ula200/#/keymap_a'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ula200/#/keymap_a'. + */// +static inline const char * ELEKTRA_GET (Ula200KeymapA) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/keymap_a", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ula200/#/keymap_a'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ula200/#/keymap_a'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ula200KeymapA) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/keymap_a", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ula200/#/keymap_b'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ula200/#/keymap_b'. + */// +static inline const char * ELEKTRA_GET (Ula200KeymapB) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/keymap_b", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ula200/#/keymap_b'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ula200/#/keymap_b'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ula200KeymapB) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/keymap_b", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ula200/#/keymap_c'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ula200/#/keymap_c'. + */// +static inline const char * ELEKTRA_GET (Ula200KeymapC) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/keymap_c", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ula200/#/keymap_c'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ula200/#/keymap_c'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ula200KeymapC) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/keymap_c", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ula200/#/keymap_d'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ula200/#/keymap_d'. + */// +static inline const char * ELEKTRA_GET (Ula200KeymapD) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/keymap_d", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ula200/#/keymap_d'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ula200/#/keymap_d'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ula200KeymapD) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/keymap_d", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ula200/#/keymap_e'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ula200/#/keymap_e'. + */// +static inline const char * ELEKTRA_GET (Ula200KeymapE) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/keymap_e", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ula200/#/keymap_e'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ula200/#/keymap_e'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ula200KeymapE) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/keymap_e", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ula200/#/keymap_f'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ula200/#/keymap_f'. + */// +static inline const char * ELEKTRA_GET (Ula200KeymapF) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/keymap_f", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ula200/#/keymap_f'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ula200/#/keymap_f'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ula200KeymapF) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/keymap_f", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ula200/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ula200/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Ula200Offbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ula200/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ula200/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ula200Offbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ula200/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ula200/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Ula200Reboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ula200/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ula200/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ula200Reboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'ula200/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'ula200/#/size'. + */// +static inline const char * ELEKTRA_GET (Ula200Size) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'ula200/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'ula200/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Ula200Size) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("ula200/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'vlsys_m428/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (VlsysM428) (Elektra * elektra, Vlsys_m428DriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("vlsys_m428/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructVlsys_m428DriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'vlsys_m428/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'vlsys_m428/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (VlsysM428) (Elektra * elektra, const Vlsys_m428DriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("vlsys_m428/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructVlsys_m428DriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'vlsys_m428/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (VlsysM428) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "vlsys_m428"); +} + + + +/** + * Get the value of 'vlsys_m428/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'vlsys_m428/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (VlsysM428Brightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("vlsys_m428/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'vlsys_m428/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'vlsys_m428/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (VlsysM428Brightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("vlsys_m428/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'vlsys_m428/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'vlsys_m428/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (VlsysM428Contrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("vlsys_m428/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'vlsys_m428/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'vlsys_m428/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (VlsysM428Contrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("vlsys_m428/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'vlsys_m428/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'vlsys_m428/#/device'. + */// +static inline const char * ELEKTRA_GET (VlsysM428Device) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("vlsys_m428/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'vlsys_m428/#/device'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'vlsys_m428/#/device'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (VlsysM428Device) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("vlsys_m428/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'vlsys_m428/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'vlsys_m428/#/file'. + */// +static inline const char * ELEKTRA_GET (VlsysM428File) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("vlsys_m428/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'vlsys_m428/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'vlsys_m428/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (VlsysM428File) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("vlsys_m428/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'vlsys_m428/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'vlsys_m428/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (VlsysM428Offbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("vlsys_m428/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'vlsys_m428/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'vlsys_m428/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (VlsysM428Offbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("vlsys_m428/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'vlsys_m428/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'vlsys_m428/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (VlsysM428Reboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("vlsys_m428/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'vlsys_m428/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'vlsys_m428/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (VlsysM428Reboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("vlsys_m428/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'xosd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Xosd) (Elektra * elektra, XosdDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructXosdDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'xosd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'xosd/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Xosd) (Elektra * elektra, const XosdDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructXosdDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'xosd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Xosd) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "xosd"); +} + + + +/** + * Get the value of 'xosd/#/Font'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'xosd/#/Font'. + */// +static inline const char * ELEKTRA_GET (XosdFont) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld/Font", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'xosd/#/Font'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'xosd/#/Font'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (XosdFont) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld/Font", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'xosd/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'xosd/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (XosdBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'xosd/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'xosd/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (XosdBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'xosd/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'xosd/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (XosdContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'xosd/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'xosd/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (XosdContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'xosd/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'xosd/#/file'. + */// +static inline const char * ELEKTRA_GET (XosdFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'xosd/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'xosd/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (XosdFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'xosd/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'xosd/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (XosdOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'xosd/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'xosd/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (XosdOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'xosd/#/offset'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'xosd/#/offset'. + */// +static inline const char * ELEKTRA_GET (XosdOffset) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld/offset", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'xosd/#/offset'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'xosd/#/offset'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (XosdOffset) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld/offset", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'xosd/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'xosd/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (XosdReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'xosd/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'xosd/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (XosdReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'xosd/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'xosd/#/size'. + */// +static inline const char * ELEKTRA_GET (XosdSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'xosd/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'xosd/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (XosdSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("xosd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + +// clang-format off + +// clang-format on + + + +/** + * Get the value of 'yard2lcd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param result The value will be stored in the referenced variable. + * @param index1 Replaces occurence no. 1 of # in the keyname. + */// +static inline void ELEKTRA_GET (Yard2lcd) (Elektra * elektra, Yard2LCDDriverConfig *result , + kdb_long_long_t index1 + ) +{ + + + char * name = elektraFormat ("yard2lcd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_GET (StructYard2LCDDriverConfig) (elektra, name, result); + elektraFree (name); + +} + + +/** + * Set the value of 'yard2lcd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'yard2lcd/#'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Yard2lcd) (Elektra * elektra, const Yard2LCDDriverConfig * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("yard2lcd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (StructYard2LCDDriverConfig) (elektra, name, value, error); + elektraFree (name); + +} + + + +/** + * Get the size of the array 'yard2lcd/#'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + + */// +static inline kdb_long_long_t ELEKTRA_SIZE (Yard2lcd) (Elektra * elektra ) +{ + + return elektraArraySize (elektra, "yard2lcd"); +} + + + +/** + * Get the value of 'yard2lcd/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'yard2lcd/#/brightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Yard2lcdBrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("yard2lcd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'yard2lcd/#/brightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'yard2lcd/#/brightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Yard2lcdBrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("yard2lcd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'yard2lcd/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'yard2lcd/#/contrast'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Yard2lcdContrast) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("yard2lcd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'yard2lcd/#/contrast'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'yard2lcd/#/contrast'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Yard2lcdContrast) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("yard2lcd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'yard2lcd/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'yard2lcd/#/file'. + */// +static inline const char * ELEKTRA_GET (Yard2lcdFile) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("yard2lcd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'yard2lcd/#/file'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'yard2lcd/#/file'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Yard2lcdFile) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("yard2lcd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'yard2lcd/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'yard2lcd/#/offbrightness'. + */// +static inline kdb_unsigned_short_t ELEKTRA_GET (Yard2lcdOffbrightness) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("yard2lcd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'yard2lcd/#/offbrightness'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'yard2lcd/#/offbrightness'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Yard2lcdOffbrightness) (Elektra * elektra, + kdb_unsigned_short_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("yard2lcd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'yard2lcd/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'yard2lcd/#/reboot'. + */// +static inline kdb_boolean_t ELEKTRA_GET (Yard2lcdReboot) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("yard2lcd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'yard2lcd/#/reboot'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'yard2lcd/#/reboot'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Yard2lcdReboot) (Elektra * elektra, + kdb_boolean_t value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("yard2lcd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (Boolean) (elektra, name, value, error); + elektraFree (name); + +} + + + + +/** + * Get the value of 'yard2lcd/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param index1 Replaces occurence no. 1 of # in the keyname. + * + * @return the value of 'yard2lcd/#/size'. + */// +static inline const char * ELEKTRA_GET (Yard2lcdSize) (Elektra * elektra , + kdb_long_long_t index1 ) +{ + + + char * name = elektraFormat ("yard2lcd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + const char * result = ELEKTRA_GET (String) (elektra, name); + elektraFree (name); + return result; + +} + + +/** + * Set the value of 'yard2lcd/#/size'. + * + * @param elektra Instance of Elektra. Create with loadConfiguration(). + * @param value The value of 'yard2lcd/#/size'. + * @param index1 Replaces occurence no. 1 of # in the keyname. + * @param error Pass a reference to an ElektraError pointer. + * Will only be set in case of an error. + */// +static inline void ELEKTRA_SET (Yard2lcdSize) (Elektra * elektra, + const char * value, + kdb_long_long_t index1, ElektraError ** error) +{ + + + char * name = elektraFormat ("yard2lcd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); + ELEKTRA_SET (String) (elektra, name, value, error); + elektraFree (name); + +} + + +#undef elektra_len19 +#undef elektra_len18 +#undef elektra_len17 +#undef elektra_len16 +#undef elektra_len15 +#undef elektra_len14 +#undef elektra_len13 +#undef elektra_len12 +#undef elektra_len11 +#undef elektra_len10 +#undef elektra_len09 +#undef elektra_len08 +#undef elektra_len07 +#undef elektra_len06 +#undef elektra_len05 +#undef elektra_len04 +#undef elektra_len03 +#undef elektra_len02 +#undef elektra_len01 +#undef elektra_len00 +#undef elektra_len + + +int loadConfiguration (Elektra ** elektra, ElektraError ** error); +void printHelpMessage (const char * usage, const char * prefix); +void doSpecloadCheck (int argc, const char ** argv); + + +/** + * @param elektra The elektra instance initialized with loadConfiguration(). + * @param tag The tag to look up. + * + * @return The value stored at the given key. + */// +#define elektraGet(elektra, tag) ELEKTRA_GET (tag) (elektra) + + +/** + * @param elektra The elektra instance initialized with loadConfiguration(). + * @param tag The tag to look up. + * @param ... Variable arguments depending on the given tag. + * + * @return The value stored at the given key. + */// +#define elektraGetV(elektra, tag, ...) ELEKTRA_GET (tag) (elektra, __VA_ARGS__) + + +/** + * @param elektra The elektra instance initialized with loadConfiguration(). + * @param tag The tag to look up. + * @param result Points to the struct into which results will be stored. + */// +#define elektraGet2(elektra, result, tag) ELEKTRA_GET (tag) (elektra, result) + + +/** + * @param elektra The elektra instance initialized with loadConfiguration(). + * @param result Points to the struct into which results will be stored. + * @param tag The tag to look up. + * @param ... Variable arguments depending on the given tag. + */// +#define elektraGet2V(elektra, result, tag, ...) ELEKTRA_GET (tag) (elektra, result, __VA_ARGS__) + + +/** + * @param elektra The elektra instance initialized with the loadConfiguration(). + * @param tag The tag to write to. + * @param value The new value. + * @param error Pass a reference to an ElektraError pointer. + */// +#define elektraSet(elektra, tag, value, error) ELEKTRA_SET (tag) (elektra, value, error) + + +/** + * @param elektra The elektra instance initialized with the loadConfiguration(). + * @param tag The tag to write to. + * @param value The new value. + * @param error Pass a reference to an ElektraError pointer. + * @param ... Variable arguments depending on the given tag. + */// +#define elektraSetV(elektra, tag, value, error, ...) ELEKTRA_SET (tag) (elektra, value, __VA_ARGS__, error) + + +/** + * @param elektra The elektra instance initialized with loadConfiguration(). + * @param tag The array tag to look up. + * + * @return The size of the array below the given key. + */// +#define elektraSize(elektra, tag) ELEKTRA_SIZE (tag) (elektra) + + +/** + * @param elektra The elektra instance initialized with loadConfiguration(). + * @param tag The array tag to look up. + * @param ... Variable arguments depending on the given tag. + * + * @return The size of the array below the given key. + */// +#define elektraSizeV(elektra, tag, ...) ELEKTRA_SIZE (tag) (elektra, __VA_ARGS__) + + +/** + * @param elektra The elektra instance initialized with loadConfiguration(). + * @param contextTag The context tag for the contextual value you want to set. + * @param value The actual value you want to set. + */// +#define elektraContextSet(elektra, contextTag, value) ELEKTRA_CONTEXT_SET (contextTag) (elektra, value) + + +/** + * @param elektra The elektra instance initialized with loadConfiguration(). + * @param contextTag The context tag for the contextual value you want to set. + * @param value The actual value you want to set. + * @param ... Variable arguments depending on the given tag. + */// +#define elektraContextSetV(elektra, contextTag, value, ...) ELEKTRA_CONTEXT_SET (contextTag) (elektra, value, __VA_ARGS__) + +#ifdef __cplusplus +} +#endif + +#endif // ELEKTRAGEN_H diff --git a/server/specification/LCDd-spec.ini b/server/specification/LCDd-spec.ini index d222afc3..cfda0b76 100644 --- a/server/specification/LCDd-spec.ini +++ b/server/specification/LCDd-spec.ini @@ -4,6 +4,7 @@ mountpoint = LCDd.conf infos/plugins = ini validation type ; TODO: Until the max plugin error is not fixed, some specifications will be left commented out +; TODO: sizes width/height as separate keys ;============================================================================= ;============================================================================= @@ -337,31 +338,6 @@ type = string default = "bayrad" description = name of the shared library to load (without prefix and extension) -[bayrad/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast - -[bayrad/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 - -[bayrad/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 - -[bayrad/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO: fix -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - [bayrad/#/device] type = string check/type = string @@ -453,6 +429,12 @@ check/type = boolean default = 0 ; TODO: fix description = "Set the firmware version (New means >= 2.0)" +[cfontz/#/usb] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = "Is this driver using USB?" + ;CFontzPacket ;================================================== [cfontzpacket] @@ -569,31 +551,6 @@ type = string default = "curses" description = name of the shared library to load (without prefix and extension) -[curses/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast - -[curses/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 - -[curses/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 - -[curses/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO: fix -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - [curses/#/foreground] type = enum check/type = enum @@ -700,31 +657,6 @@ type = string default = "CwLnx" description = name of the shared library to load (without prefix and extension) -[cwlnx/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast - -[cwlnx/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 - -[cwlnx/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 - -[cwlnx/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO: fix -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - [cwlnx/#/model] type = enum check/type = enum @@ -1524,24 +1456,6 @@ default = 500 check/range = 0-1000 description = Set the initial contrast -[glk/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 - -[glk/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 - -[glk/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO: fix -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - [glk/#/device] type = string check/type = string @@ -2449,25 +2363,12 @@ type = string default = "lb216" description = name of the shared library to load (without prefix and extension) -[lb216/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast - [lb216/#/brightness] type = unsigned_short check/type = unsigned_short default = 200 check/range = 0-255 -[lb216/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 - [lb216/#/reboot] type = boolean check/type = boolean @@ -2507,31 +2408,6 @@ type = string default = "lcdm001" description = name of the shared library to load (without prefix and extension) -[lcdm001/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast - -[lcdm001/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 - -[lcdm001/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 - -[lcdm001/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO: fix -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - [lcdm001/#/device] type = string check/type = string @@ -2540,29 +2416,53 @@ default = /dev/ttyS1 description = "select the device to use" [lcdm001/#/pausekey] -type = string -check/type = string +type = enum +check/type = enum +check/enum = #3 +check/enum/#0 = LeftKey +check/enum/#1 = RightKey +check/enum/#2 = UpKey +check/enum/#3 = DownKey +gen/enum/type = Lcdm001Keys default = LeftKey description = "Normal Context: Pause/Continue Menu Context: Enter/select" [lcdm001/#/backkey] -type = string -check/type = string +type = enum +check/type = enum +check/enum = #3 +check/enum/#0 = LeftKey +check/enum/#1 = RightKey +check/enum/#2 = UpKey +check/enum/#3 = DownKey +gen/enum/type = Lcdm001Keys default = UpKey description = "Normal Context: Back(Go to previous screen) Menu Context: Up/Left" [lcdm001/#/forwardkey] -type = string -check/type = string +type = enum +check/type = enum +check/enum = #3 +check/enum/#0 = LeftKey +check/enum/#1 = RightKey +check/enum/#2 = UpKey +check/enum/#3 = DownKey +gen/enum/type = Lcdm001Keys default = DownKey description = "Normal Context: Forward(Go to next screen) Menu Context: Down/Right" [lcdm001/#/mainmenukey] -type = string -check/type = string +type = enum +check/type = enum +check/enum = #3 +check/enum/#0 = LeftKey +check/enum/#1 = RightKey +check/enum/#2 = UpKey +check/enum/#3 = DownKey +gen/enum/type = Lcdm001Keys default = RightKey description = "Normal Context: Open main menu Menu Context: Exit/Cancel" @@ -3108,12 +3008,6 @@ description = "Set the initial off-brightness This value is used when the display is normally switched off in case LCDd is inactive" -[mtxorb/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO: fix -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - [mtxorb/#/device] type = string check/type = string @@ -3134,7 +3028,7 @@ description = display size type = enum check/type = enum check/enum = #3 -check/enum/#0 = lcd lkd, vfd, vkd +check/enum/#0 = lcd check/enum/#1 = lkd check/enum/#2 = vfd check/enum/#3 = vkd @@ -3144,6 +3038,7 @@ description = "Set the display type" [mtxorb/#/hasadjustablebacklight] type = boolean check/type = boolean +gen/struct/field = hasAdjustableBacklight default = 0 ; TODO: fix description = "Some old displays do not have an adjustable backlight but only can switch the backlight on/off. If you experience randomly appearing block @@ -3154,7 +3049,13 @@ type = unsigned_short check/type = unsigned_short check/range = 1200, 2400, 9600, 19200 default = 19200 -description = Set the communication +description = Set the communication + +[mtxorb/#/keypad_test_mode] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +description = permits one to test keypad assignment [mtxorb/#/keymap_a] type = string @@ -3590,31 +3491,6 @@ type = string default = "pyramid" description = name of the shared library to load (without prefix and extension) -[pyramid/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast - -[pyramid/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 - -[pyramid/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 - -[pyramid/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO: fix -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - [pyramid/#/device] type = string check/type = string From 63582f2dca609a0603d630697dfb7182447ff910 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Thu, 16 May 2019 13:05:37 +0200 Subject: [PATCH 09/72] all: fix gitingores --- .gitignore | 4 ---- clients/lcdexec/{.cvsignore => .gitignore} | 0 clients/lcdproc/{.cvsignore => .gitignore} | 0 clients/lcdvc/{.cvsignore => .gitignore} | 0 server/{.cvsignore => .gitignore} | 0 server/drivers/{.cvsignore => .gitignore} | 0 6 files changed, 4 deletions(-) rename clients/lcdexec/{.cvsignore => .gitignore} (100%) rename clients/lcdproc/{.cvsignore => .gitignore} (100%) rename clients/lcdvc/{.cvsignore => .gitignore} (100%) rename server/{.cvsignore => .gitignore} (100%) rename server/drivers/{.cvsignore => .gitignore} (100%) diff --git a/.gitignore b/.gitignore index 6c2c2b0f..6b2158ed 100644 --- a/.gitignore +++ b/.gitignore @@ -217,10 +217,6 @@ pip-log.txt Makefile Makefile.in -LCDd -lcdproc -lcdexec -lcdvc Doxyfile aclocal.m4 autom4te.cache diff --git a/clients/lcdexec/.cvsignore b/clients/lcdexec/.gitignore similarity index 100% rename from clients/lcdexec/.cvsignore rename to clients/lcdexec/.gitignore diff --git a/clients/lcdproc/.cvsignore b/clients/lcdproc/.gitignore similarity index 100% rename from clients/lcdproc/.cvsignore rename to clients/lcdproc/.gitignore diff --git a/clients/lcdvc/.cvsignore b/clients/lcdvc/.gitignore similarity index 100% rename from clients/lcdvc/.cvsignore rename to clients/lcdvc/.gitignore diff --git a/server/.cvsignore b/server/.gitignore similarity index 100% rename from server/.cvsignore rename to server/.gitignore diff --git a/server/drivers/.cvsignore b/server/drivers/.gitignore similarity index 100% rename from server/drivers/.cvsignore rename to server/drivers/.gitignore From 3b1994502026f64a200ccdec4b0b1bff77ce31b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Thu, 16 May 2019 13:07:03 +0200 Subject: [PATCH 10/72] lcdproc: base config --- clients/lcdproc/Makefile.am | 3 +- clients/lcdproc/batt.c | 2 + clients/lcdproc/chrono.c | 1 + clients/lcdproc/cpu.c | 1 + clients/lcdproc/cpu_smp.c | 1 + clients/lcdproc/disk.c | 1 + clients/lcdproc/iface.c | 3 +- clients/lcdproc/iface.h | 2 + clients/lcdproc/load.c | 1 + clients/lcdproc/main.c | 45 +- clients/lcdproc/main.h | 10 +- clients/lcdproc/mem.c | 1 + clients/lcdproc/screen_config.h | 13 + .../lcdproc/specification/lcdproc-spec.ini | 420 +++++++++++++++++- 14 files changed, 471 insertions(+), 33 deletions(-) create mode 100644 clients/lcdproc/screen_config.h diff --git a/clients/lcdproc/Makefile.am b/clients/lcdproc/Makefile.am index 68da36e5..3ee880e6 100644 --- a/clients/lcdproc/Makefile.am +++ b/clients/lcdproc/Makefile.am @@ -6,6 +6,7 @@ bin_PROGRAMS = lcdproc lcdproc_SOURCES = main.c main.h mode.c mode.h batt.c batt.h chrono.c chrono.h cpu.c cpu.h cpu_smp.c cpu_smp.h disk.c disk.h load.c load.h mem.c mem.h eyebox.c eyebox.h machine.h machine_Linux.c machine_OpenBSD.c machine_FreeBSD.c machine_NetBSD.c machine_Darwin.c machine_SunOS.c util.c util.h iface.c iface.h nodist_lcdproc_SOURCES = elektragen.c elektragen.h lcdproc.$(OBJEXT): elektragen.c elektragen.h +BUILT_SOURCES= elektragen.c elektragen.h CLEANFILES = elektragen.c elektragen.h @@ -21,6 +22,6 @@ EXTRA_DIST = $(sysconf_DATA) KDB ?= kdb elektragen.c elektragen.h: specification/lcdproc-spec.ini - $(KDB) gen -F ni=specification/lcdproc-spec.ini elektra "spec/sw/lcdproc/lcdproc/#0/current" elektragen initFn=loadConfiguration specloadFn=doSpecloadCheck helpFn=printHelpMessage + $(KDB) gen -F ni=specification/lcdproc-spec.ini elektra "spec/sw/lcdproc/lcdproc/#0/current" elektragen initFn=loadConfiguration specloadFn=doSpecloadCheck helpFn=printHelpMessage headers=screen_config.h ## EOF diff --git a/clients/lcdproc/batt.c b/clients/lcdproc/batt.c index adf6b831..edeb89e8 100644 --- a/clients/lcdproc/batt.c +++ b/clients/lcdproc/batt.c @@ -23,6 +23,8 @@ #include "batt.h" #include "machine.h" +#include "elektragen.h" + /** Map status code > status text */ typedef struct { int status; diff --git a/clients/lcdproc/chrono.c b/clients/lcdproc/chrono.c index 908b74ae..d8fdab7a 100644 --- a/clients/lcdproc/chrono.c +++ b/clients/lcdproc/chrono.c @@ -45,6 +45,7 @@ #include "machine.h" #include "chrono.h" +#include "elektragen.h" static char *tickTime(char *time, int heartbeat); diff --git a/clients/lcdproc/cpu.c b/clients/lcdproc/cpu.c index 7157d690..02fe3dc4 100644 --- a/clients/lcdproc/cpu.c +++ b/clients/lcdproc/cpu.c @@ -27,6 +27,7 @@ #include "cpu.h" #include "util.h" +#include "elektragen.h" /** * CPU screen shows info about percentage of the CPU being used diff --git a/clients/lcdproc/cpu_smp.c b/clients/lcdproc/cpu_smp.c index 11c8e5eb..50fa330d 100644 --- a/clients/lcdproc/cpu_smp.c +++ b/clients/lcdproc/cpu_smp.c @@ -41,6 +41,7 @@ #include "machine.h" #include "cpu_smp.h" +#include "elektragen.h" /** * CPU screen shows info about percentage of the CPU being used diff --git a/clients/lcdproc/disk.c b/clients/lcdproc/disk.c index 77aeb790..ee1dec27 100644 --- a/clients/lcdproc/disk.c +++ b/clients/lcdproc/disk.c @@ -30,6 +30,7 @@ #include "disk.h" #include "util.h" +#include "elektragen.h" /** * Gives disk stats. diff --git a/clients/lcdproc/iface.c b/clients/lcdproc/iface.c index af44a2ef..f736eb74 100644 --- a/clients/lcdproc/iface.c +++ b/clients/lcdproc/iface.c @@ -29,10 +29,11 @@ #include "util.h" #include "iface.h" +#include "elektragen.h" + #define UNSET_INT -1 #define UNSET_STR "\01" - static int iface_count = 0; /* number of interfaces */ static IfaceUnit unit = IFACE_UNIT_BYTE; /* default unit label is Bytes */ static int transfer_screen = 0; /* by default, transfer screen is not shown */ diff --git a/clients/lcdproc/iface.h b/clients/lcdproc/iface.h index 3d53da74..a708db5d 100644 --- a/clients/lcdproc/iface.h +++ b/clients/lcdproc/iface.h @@ -15,6 +15,8 @@ #ifndef IFACE_H #define IFACE_H +#include "elektragen.h" + /** max number of interfaces in multi-interface mode */ #define MAX_INTERFACES 3 diff --git a/clients/lcdproc/load.c b/clients/lcdproc/load.c index 520185fa..a1aee033 100644 --- a/clients/lcdproc/load.c +++ b/clients/lcdproc/load.c @@ -26,6 +26,7 @@ #include "machine.h" #include "load.h" +#include "elektragen.h" /** * Shows a display very similar to "xload"'s histogram. diff --git a/clients/lcdproc/main.c b/clients/lcdproc/main.c index 411e40a0..029c18b9 100644 --- a/clients/lcdproc/main.c +++ b/clients/lcdproc/main.c @@ -36,8 +36,8 @@ #include "mode.h" #include "shared/sockets.h" #include "shared/report.h" -#include "shared/configfile.h" -#include "getopt.h" /* This is our local getopt.h! */ + +#include "elektragen.h" /* Import screens */ #include "batt.h" @@ -105,21 +105,21 @@ ScreenMode sequence[] = { /* flags default ACTIVE will run by default */ /* longname which on off inv timer flags */ - { "CPU", 'C', 1, 2, 0, 0xffff, ACTIVE, cpu_screen, ELEKTRA_GET(ELEKTRA_TAG_CPU_ACTIVE) }, // [C]PU - { "Iface", 'I', 1, 2, 0, 0xffff, 0, iface_screen, ELEKTRA_GET(ELEKTRA_TAG_IFACE_ACTIVE) }, // [I]face - { "Memory", 'M', 4, 16, 0, 0xffff, ACTIVE, mem_screen, ELEKTRA_GET(ELEKTRA_TAG_MEMORY_ACTIVE) }, // [M]emory - { "Load", 'L', 64, 128, 1, 0xffff, ACTIVE, xload_screen, ELEKTRA_GET(ELEKTRA_TAG_LOAD_ACTIVE) }, // [L]oad (load histogram) - { "TimeDate", 'T', 4, 64, 0, 0xffff, ACTIVE, time_screen, ELEKTRA_GET(ELEKTRA_TAG_TIMEDATE_ACTIVE) }, // [T]ime/Date - { "About", 'A', 999, 9999, 0, 0xffff, ACTIVE, credit_screen, ELEKTRA_GET(ELEKTRA_TAG_ABOUT_ACTIVE) }, // [A]bout (credits) - { "SMP-CPU", 'P', 1, 2, 0, 0xffff, 0, cpu_smp_screen, ELEKTRA_GET(ELEKTRA_TAG_SMPCPU_ACTIVE) }, // CPU_SM[P] - { "OldTime", 'O', 4, 64, 0, 0xffff, 0, clock_screen, ELEKTRA_GET(ELEKTRA_TAG_OLDTIME_ACTIVE) }, // [O]ld Timescreen - { "BigClock", 'K', 4, 64, 0, 0xffff, 0, big_clock_screen, ELEKTRA_GET(ELEKTRA_TAG_BIGCLOCK_ACTIVE) }, // big cloc[K] - { "Uptime", 'U', 4, 128, 0, 0xffff, 0, uptime_screen, ELEKTRA_GET(ELEKTRA_TAG_UPTIME_ACTIVE) }, // Old [U]ptime Screen - { "Battery", 'B', 32, 256, 1, 0xffff, 0, battery_screen, ELEKTRA_GET(ELEKTRA_TAG_BATTERY_ACTIVE) }, // [B]attery Status - { "CPUGraph", 'G', 1, 2, 0, 0xffff, 0, cpu_graph_screen, ELEKTRA_GET(ELEKTRA_TAG_CPUGRAPH_ACTIVE) }, // CPU histogram [G]raph - { "ProcSize", 'S', 16, 256, 1, 0xffff, 0, mem_top_screen, ELEKTRA_GET(ELEKTRA_TAG_PROCSIZE_ACTIVE) }, // [S]ize of biggest processes - { "Disk", 'D', 256, 256, 1, 0xffff, 0, disk_screen, ELEKTRA_GET(ELEKTRA_TAG_DISK_ACTIVE) }, // [D]isk stats - { "MiniClock", 'N', 4, 64, 0, 0xffff, 0, mini_clock_screen, ELEKTRA_GET(ELEKTRA_TAG_MINICLOCK_ACTIVE) }, // Mi[n]i clock + { "CPU", 'C', 1, 2, 0, 0xffff, ACTIVE, cpu_screen, ELEKTRA_GET(ELEKTRA_TAG_CPU) }, // [C]PU + { "Iface", 'I', 1, 2, 0, 0xffff, 0, iface_screen, ELEKTRA_GET(ELEKTRA_TAG_IFACE) }, // [I]face + { "Memory", 'M', 4, 16, 0, 0xffff, ACTIVE, mem_screen, ELEKTRA_GET(ELEKTRA_TAG_MEMORY) }, // [M]emory + { "Load", 'L', 64, 128, 1, 0xffff, ACTIVE, xload_screen, ELEKTRA_GET(ELEKTRA_TAG_LOAD) }, // [L]oad (load histogram) + { "TimeDate", 'T', 4, 64, 0, 0xffff, ACTIVE, time_screen, ELEKTRA_GET(ELEKTRA_TAG_TIMEDATE) }, // [T]ime/Date + { "About", 'A', 999, 9999, 0, 0xffff, ACTIVE, credit_screen, ELEKTRA_GET(ELEKTRA_TAG_ABOUT) }, // [A]bout (credits) + { "SMP-CPU", 'P', 1, 2, 0, 0xffff, 0, cpu_smp_screen, ELEKTRA_GET(ELEKTRA_TAG_SMPCPU) }, // CPU_SM[P] + { "OldTime", 'O', 4, 64, 0, 0xffff, 0, clock_screen, ELEKTRA_GET(ELEKTRA_TAG_OLDTIME) }, // [O]ld Timescreen + { "BigClock", 'K', 4, 64, 0, 0xffff, 0, big_clock_screen, ELEKTRA_GET(ELEKTRA_TAG_BIGCLOCK) }, // big cloc[K] + { "Uptime", 'U', 4, 128, 0, 0xffff, 0, uptime_screen, ELEKTRA_GET(ELEKTRA_TAG_UPTIME) }, // Old [U]ptime Screen + { "Battery", 'B', 32, 256, 1, 0xffff, 0, battery_screen, ELEKTRA_GET(ELEKTRA_TAG_BATTERY) }, // [B]attery Status + { "CPUGraph", 'G', 1, 2, 0, 0xffff, 0, cpu_graph_screen, ELEKTRA_GET(ELEKTRA_TAG_CPUGRAPH) }, // CPU histogram [G]raph + { "ProcSize", 'S', 16, 256, 1, 0xffff, 0, mem_top_screen, ELEKTRA_GET(ELEKTRA_TAG_PROCSIZE) }, // [S]ize of biggest processes + { "Disk", 'D', 256, 256, 1, 0xffff, 0, disk_screen, ELEKTRA_GET(ELEKTRA_TAG_DISK) }, // [D]isk stats + { "MiniClock", 'N', 4, 64, 0, 0xffff, 0, mini_clock_screen, ELEKTRA_GET(ELEKTRA_TAG_MINICLOCK) }, // Mi[n]i clock { NULL, 0, 0, 0, 0, 0, 0, NULL}, // No more.. all done. }; @@ -383,10 +383,13 @@ process_config() */ for (int k = 0; sequence[k].which != 0; k++) { if (sequence[k].longname != NULL) { - // TODO: sequence[k].on_time = config_get_int(sequence[k].longname, "OnTime", 0, sequence[k].on_time); - // TODO: sequence[k].off_time = config_get_int(sequence[k].longname, "OffTime", 0, sequence[k].off_time); - // TODO: sequence[k].show_invisible = config_get_bool(sequence[k].longname, "ShowInvisible", 0, sequence[k].show_invisible); - if (sequence[k].is_active(elektra)) + ScreenBaseConfig base_config; + sequence[k].get_base_config(elektra, &base_config); + + sequence[k].on_time = base_config.on_time; + sequence[k].off_time = base_config.off_time; + sequence[k].show_invisible = base_config.show_invisible; + if (base_config.active) sequence[k].flags |= ACTIVE; else sequence[k].flags &= (~ACTIVE); diff --git a/clients/lcdproc/main.h b/clients/lcdproc/main.h index f75dacfd..84a0ebb1 100644 --- a/clients/lcdproc/main.h +++ b/clients/lcdproc/main.h @@ -14,12 +14,8 @@ #include "shared/defines.h" -#ifdef DEBUG -#include "elektragen.h" -#define DEBUG 1 // FIXME: fix debug stuff -#else -#include "elektragen.h" -#endif +#include +#include "screen_config.h" #ifndef TRUE # define TRUE 1 @@ -61,7 +57,7 @@ typedef struct _screen_mode int timer; /**< Time since last update */ int flags; /**< See mode flags defines */ int (*func)(int,int,int *, Elektra *); /**< Pointer to init / update function */ - kdb_boolean_t (*is_active)(Elektra *); /**< Pointer to elektraGet function for active key */ + ScreenBaseConfig (*get_base_config)(Elektra *, ScreenBaseConfig *); /**< Pointer to elektraGet function for base config */ } ScreenMode; /* mode flags */ diff --git a/clients/lcdproc/mem.c b/clients/lcdproc/mem.c index 8bd00504..68e3ba14 100644 --- a/clients/lcdproc/mem.c +++ b/clients/lcdproc/mem.c @@ -28,6 +28,7 @@ #include "mem.h" #include "util.h" +#include "elektragen.h" /** * Mem Screen displays info about memory and swap usage... diff --git a/clients/lcdproc/screen_config.h b/clients/lcdproc/screen_config.h new file mode 100644 index 00000000..91764d1e --- /dev/null +++ b/clients/lcdproc/screen_config.h @@ -0,0 +1,13 @@ +#ifndef SCREEN_CONFIG_H +#define SCREEN_CONFIG_H + +#include + +typedef struct { + kdb_boolean_t active; + kdb_unsigned_long_t on_time; + kdb_unsigned_long_t off_time; + kdb_boolean_t show_invisible; +} ScreenBaseConfig; + +#endif \ No newline at end of file diff --git a/clients/lcdproc/specification/lcdproc-spec.ini b/clients/lcdproc/specification/lcdproc-spec.ini index e3ae0709..4937c3cd 100644 --- a/clients/lcdproc/specification/lcdproc-spec.ini +++ b/clients/lcdproc/specification/lcdproc-spec.ini @@ -72,42 +72,94 @@ opt/long = version ;CPU ;================================================== +[cpu] +type = struct +check/type = any +default = "" +gen/struct/type = ScreenBaseConfig +gen/struct/alloc = 0 +gen/struct/create = 0 + [cpu/active] type = boolean check/type = boolean default = 1 ; TODO: fix +gen/struct/field = active description = Show screen +[cpu/ontime] +type = unsigned_long +check/type = unsigned_long +default = 1 +gen/struct/field = on_time + +[cpu/offtime] +type = unsigned_long +check/type = unsigned_long +default = 2 +gen/struct/field = off_time + [cpu/showinvisible] type = boolean check/type = boolean default = 0 ; TODO: fix +gen/struct/field = show_invisible ;Iface ;================================================== +[iface] +type = struct +check/type = any +default = "" +gen/struct/type = ScreenBaseConfig +gen/struct/alloc = 0 +gen/struct/create = 0 + [iface/active] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 0 ; TODO: fix +gen/struct/field = active description = Show screen +[iface/ontime] +type = unsigned_long +check/type = unsigned_long +default = 1 +gen/struct/field = on_time + +[iface/offtime] +type = unsigned_long +check/type = unsigned_long +default = 2 +gen/struct/field = off_time + +[iface/showinvisible] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +gen/struct/field = show_invisible + [iface/interface] type = string check/type = any default = "" array = #2 +gen/struct/field/ignore = 1 [iface/interface/#/name] type = string check/type = string default = "" description = Interface name +gen/struct/field/ignore = 1 [iface/interface/#/alias] type = string check/type = string default = "" description = Interface alias name to display +gen/struct/field/ignore = 1 [iface/unit] type = enum @@ -118,168 +170,530 @@ check/enum/#2 = packet gen/enum/type = IfaceUnit default = byte description = Units to display [default: byte ... legal: byte, bit, packet] +gen/struct/field/ignore = 1 [iface/transfer] type = boolean check/type = boolean default = 0 ; TODO: fix description = add screen with transferred traffic +gen/struct/field/ignore = 1 ;Memory ;================================================== +[memory] +type = struct +check/type = any +default = "" +gen/struct/type = ScreenBaseConfig +gen/struct/alloc = 0 +gen/struct/create = 0 + [memory/active] type = boolean check/type = boolean default = 1 ; TODO: fix +gen/struct/field = active description = Show screen +[memory/ontime] +type = unsigned_long +check/type = unsigned_long +default = 4 +gen/struct/field = on_time + +[memory/offtime] +type = unsigned_long +check/type = unsigned_long +default = 16 +gen/struct/field = off_time + +[memory/showinvisible] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +gen/struct/field = show_invisible + ;Load ;================================================== +[load] +type = struct +check/type = any +default = "" +gen/struct/type = ScreenBaseConfig +gen/struct/alloc = 0 +gen/struct/create = 0 + [load/active] type = boolean check/type = boolean default = 1 ; TODO: fix +gen/struct/field = active description = Show screen +[load/ontime] +type = unsigned_long +check/type = unsigned_long +default = 64 +gen/struct/field = on_time + +[load/offtime] +type = unsigned_long +check/type = unsigned_long +default = 128 +gen/struct/field = off_time + +[load/showinvisible] +type = boolean +check/type = boolean +default = 1 ; TODO: fix +gen/struct/field = show_invisible + [load/lowload] type = float check/type = float default = 0.05 description = Min Load Avg at which the backlight will be turned off [default: 0.05] +gen/struct/field/ignore = 1 [load/highload] type = float check/type = float default = 1.3 description = Max Load Avg at which the backlight will start blinking [default: 1.3] +gen/struct/field/ignore = 1 ;TimeDate ;================================================== +[timedate] +type = struct +check/type = any +default = "" +gen/struct/type = ScreenBaseConfig +gen/struct/alloc = 0 +gen/struct/create = 0 + [timedate/active] type = boolean check/type = boolean default = 1 ; TODO: fix +gen/struct/field = active description = Show screen +[timedate/ontime] +type = unsigned_long +check/type = unsigned_long +default = 4 +gen/struct/field = on_time + +[timedate/offtime] +type = unsigned_long +check/type = unsigned_long +default = 64 +gen/struct/field = off_time + +[timedate/showinvisible] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +gen/struct/field = show_invisible + [timedate/timeformat] type = string check/type = string default = "%H:%M:%S" description = "time format [default: %H:%M:%S; legal: see strftime(3)]" +gen/struct/field/ignore = 1 [timedate/dateformat] type = string check/type = string default = "%x" description = "date format [default: %x; legal: see strftime(3)]" +gen/struct/field/ignore = 1 ;About ;================================================== +[about] +type = struct +check/type = any +default = "" +gen/struct/type = ScreenBaseConfig +gen/struct/alloc = 0 +gen/struct/create = 0 + [about/active] type = boolean check/type = boolean default = 1 ; TODO: fix +gen/struct/field = active description = Show screen +[about/ontime] +type = unsigned_long +check/type = unsigned_long +default = 999 +gen/struct/field = on_time + +[about/offtime] +type = unsigned_long +check/type = unsigned_long +default = 9999 +gen/struct/field = off_time + +[about/showinvisible] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +gen/struct/field = show_invisible + ;SMP-CPU ;================================================== +[smpcpu] +type = struct +check/type = any +default = "" +gen/struct/type = ScreenBaseConfig +gen/struct/alloc = 0 +gen/struct/create = 0 + [smpcpu/active] type = boolean check/type = boolean default = 0 ; TODO: fix +gen/struct/field = active description = Show screen +[smpcpu/ontime] +type = unsigned_long +check/type = unsigned_long +default = 1 +gen/struct/field = on_time + +[smpcpu/offtime] +type = unsigned_long +check/type = unsigned_long +default = 2 +gen/struct/field = off_time + +[smpcpu/showinvisible] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +gen/struct/field = show_invisible + ;OldTime ;================================================== +[oldtime] +type = struct +check/type = any +default = "" +gen/struct/type = ScreenBaseConfig +gen/struct/alloc = 0 +gen/struct/create = 0 + [oldtime/active] type = boolean check/type = boolean default = 0 ; TODO: fix +gen/struct/field = active description = Show screen +[oldtime/ontime] +type = unsigned_long +check/type = unsigned_long +default = 4 +gen/struct/field = on_time + +[oldtime/offtime] +type = unsigned_long +check/type = unsigned_long +default = 64 +gen/struct/field = off_time + +[oldtime/showinvisible] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +gen/struct/field = show_invisible + [oldtime/showtitle] type = boolean check/type = boolean default = 1 ; TODO: fix description = "Display the title bar in two-line mode. Note that with four lines or more the title is always shown. [default: true; legal: true, false]" +gen/struct/field/ignore = 1 [oldtime/timeformat] type = string check/type = string default = "%H:%M:%S" description = "time format [default: %H:%M:%S; legal: see strftime(3)]" +gen/struct/field/ignore = 1 [oldtime/dateformat] type = string check/type = string default = "%x" description = "date format [default: %x; legal: see strftime(3)]" +gen/struct/field/ignore = 1 ;BigClock ;================================================== +[bigclock] +type = struct +check/type = any +default = "" +gen/struct/type = ScreenBaseConfig +gen/struct/alloc = 0 +gen/struct/create = 0 + [bigclock/active] type = boolean check/type = boolean default = 0 ; TODO: fix +gen/struct/field = active description = Show screen +[bigclock/ontime] +type = unsigned_long +check/type = unsigned_long +default = 4 +gen/struct/field = on_time + +[bigclock/offtime] +type = unsigned_long +check/type = unsigned_long +default = 64 +gen/struct/field = off_time + +[bigclock/showinvisible] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +gen/struct/field = show_invisible + [bigclock/showsecs] type = boolean check/type = boolean default = 1 ; TODO: fix description = Show seconds +gen/struct/field/ignore = 1 ;Battery ;================================================== +[battery] +type = struct +check/type = any +default = "" +gen/struct/type = ScreenBaseConfig +gen/struct/alloc = 0 +gen/struct/create = 0 + [battery/active] type = boolean check/type = boolean default = 0 ; TODO: fix +gen/struct/field = active description = Show screen +[battery/ontime] +type = unsigned_long +check/type = unsigned_long +default = 32 +gen/struct/field = on_time + +[battery/offtime] +type = unsigned_long +check/type = unsigned_long +default = 256 +gen/struct/field = off_time + +[battery/showinvisible] +type = boolean +check/type = boolean +default = 1 ; TODO: fix +gen/struct/field = show_invisible + ;Uptime ;================================================== +[uptime] +type = struct +check/type = any +default = "" +gen/struct/type = ScreenBaseConfig +gen/struct/alloc = 0 +gen/struct/create = 0 + [uptime/active] type = boolean check/type = boolean default = 0 ; TODO: fix +gen/struct/field = active description = Show screen +[uptime/ontime] +type = unsigned_long +check/type = unsigned_long +default = 4 +gen/struct/field = on_time + +[uptime/offtime] +type = unsigned_long +check/type = unsigned_long +default = 128 +gen/struct/field = off_time + +[uptime/showinvisible] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +gen/struct/field = show_invisible + ;CPUGraph ;================================================== +[cpugraph] +type = struct +check/type = any +default = "" +gen/struct/type = ScreenBaseConfig +gen/struct/alloc = 0 +gen/struct/create = 0 + [cpugraph/active] type = boolean check/type = boolean default = 0 ; TODO: fix +gen/struct/field = active description = Show screen +[cpugraph/ontime] +type = unsigned_long +check/type = unsigned_long +default = 1 +gen/struct/field = on_time + +[cpugraph/offtime] +type = unsigned_long +check/type = unsigned_long +default = 2 +gen/struct/field = off_time + +[cpugraph/showinvisible] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +gen/struct/field = show_invisible + ;ProcSize ;================================================== +[procsize] +type = struct +check/type = any +default = "" +gen/struct/type = ScreenBaseConfig +gen/struct/alloc = 0 +gen/struct/create = 0 + [procsize/active] type = boolean check/type = boolean default = 0 ; TODO: fix +gen/struct/field = active description = Show screen +[procsize/ontime] +type = unsigned_long +check/type = unsigned_long +default = 16 +gen/struct/field = on_time + +[procsize/offtime] +type = unsigned_long +check/type = unsigned_long +default = 256 +gen/struct/field = off_time + +[procsize/showinvisible] +type = boolean +check/type = boolean +default = 1 ; TODO: fix +gen/struct/field = show_invisible + ;Disk ;================================================== +[disk] +type = struct +check/type = any +default = "" +gen/struct/type = ScreenBaseConfig +gen/struct/alloc = 0 +gen/struct/create = 0 + [disk/active] type = boolean check/type = boolean default = 0 ; TODO: fix +gen/struct/field = active description = Show screen +[disk/ontime] +type = unsigned_long +check/type = unsigned_long +default = 256 +gen/struct/field = on_time + +[disk/offtime] +type = unsigned_long +check/type = unsigned_long +default = 256 +gen/struct/field = off_time + +[disk/showinvisible] +type = boolean +check/type = boolean +default = 1 ; TODO: fix +gen/struct/field = show_invisible + ;MiniClock ;================================================== +[miniclock] +type = struct +check/type = any +default = "" +gen/struct/type = ScreenBaseConfig +gen/struct/alloc = 0 +gen/struct/create = 0 + [miniclock/active] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 0 ; TODO: fix +gen/struct/field = active description = Show screen +[miniclock/ontime] +type = unsigned_long +check/type = unsigned_long +default = 4 +gen/struct/field = on_time + +[miniclock/offtime] +type = unsigned_long +check/type = unsigned_long +default = 64 +gen/struct/field = off_time + +[miniclock/showinvisible] +type = boolean +check/type = boolean +default = 0 ; TODO: fix +gen/struct/field = show_invisible + [miniclock/timeformat] type = string check/type = string default = "%H:%M" -description = "time format [default: %H:%M; legal: see strftime(3)]" \ No newline at end of file +description = "time format [default: %H:%M; legal: see strftime(3)]" +gen/struct/field/ignore = 1 From bbb132b488ecc2501e132c519aeccff5fbcd353a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Thu, 16 May 2019 13:12:29 +0200 Subject: [PATCH 11/72] all: update TODOs --- clients/lcdproc/main.c | 4 +- .../lcdproc/specification/lcdproc-spec.ini | 70 +++--- clients/lcdvc/lcdvc.c | 2 +- clients/lcdvc/specification/lcdvc-spec.ini | 6 +- server/drivers/lcd.h | 8 - server/main.c | 2 +- server/specification/LCDd-spec.ini | 218 +++++++++--------- 7 files changed, 151 insertions(+), 159 deletions(-) diff --git a/clients/lcdproc/main.c b/clients/lcdproc/main.c index 029c18b9..1d73cec2 100644 --- a/clients/lcdproc/main.c +++ b/clients/lcdproc/main.c @@ -258,7 +258,7 @@ main(int argc, const char **argv) set_reporting("lcdproc", report_level, report_dest); - // TODO /* parse non-option arguments: modes to add/delete */ + // TODO (elektra): /* parse non-option arguments: modes to add/delete */ /*if (argc > max(optind, 1)) { int i; @@ -334,7 +334,7 @@ main(int argc, const char **argv) return EXIT_SUCCESS; } -static void on_fatal_error(ElektraError * error) // TODO: finalize method +static void on_fatal_error(ElektraError * error) // TODO (elektra): finalize method { fprintf(stderr, "ERROR: %s\n", elektraErrorDescription(error)); exit(EXIT_FAILURE); diff --git a/clients/lcdproc/specification/lcdproc-spec.ini b/clients/lcdproc/specification/lcdproc-spec.ini index 4937c3cd..7b74873f 100644 --- a/clients/lcdproc/specification/lcdproc-spec.ini +++ b/clients/lcdproc/specification/lcdproc-spec.ini @@ -33,13 +33,13 @@ description = set reporting level [lcdproc/reporttosyslog] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = report to syslog ? [lcdproc/foreground] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = report to syslog ? opt = f opt/long = foreground @@ -83,7 +83,7 @@ gen/struct/create = 0 [cpu/active] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix gen/struct/field = active description = Show screen @@ -102,7 +102,7 @@ gen/struct/field = off_time [cpu/showinvisible] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix gen/struct/field = show_invisible ;Iface @@ -118,7 +118,7 @@ gen/struct/create = 0 [iface/active] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix gen/struct/field = active description = Show screen @@ -137,7 +137,7 @@ gen/struct/field = off_time [iface/showinvisible] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix gen/struct/field = show_invisible [iface/interface] @@ -175,7 +175,7 @@ gen/struct/field/ignore = 1 [iface/transfer] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = add screen with transferred traffic gen/struct/field/ignore = 1 @@ -192,7 +192,7 @@ gen/struct/create = 0 [memory/active] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix gen/struct/field = active description = Show screen @@ -211,7 +211,7 @@ gen/struct/field = off_time [memory/showinvisible] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix gen/struct/field = show_invisible ;Load @@ -227,7 +227,7 @@ gen/struct/create = 0 [load/active] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix gen/struct/field = active description = Show screen @@ -246,7 +246,7 @@ gen/struct/field = off_time [load/showinvisible] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix gen/struct/field = show_invisible [load/lowload] @@ -276,7 +276,7 @@ gen/struct/create = 0 [timedate/active] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix gen/struct/field = active description = Show screen @@ -295,7 +295,7 @@ gen/struct/field = off_time [timedate/showinvisible] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix gen/struct/field = show_invisible [timedate/timeformat] @@ -325,7 +325,7 @@ gen/struct/create = 0 [about/active] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix gen/struct/field = active description = Show screen @@ -344,7 +344,7 @@ gen/struct/field = off_time [about/showinvisible] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix gen/struct/field = show_invisible ;SMP-CPU @@ -360,7 +360,7 @@ gen/struct/create = 0 [smpcpu/active] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix gen/struct/field = active description = Show screen @@ -379,7 +379,7 @@ gen/struct/field = off_time [smpcpu/showinvisible] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix gen/struct/field = show_invisible ;OldTime @@ -395,7 +395,7 @@ gen/struct/create = 0 [oldtime/active] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix gen/struct/field = active description = Show screen @@ -414,13 +414,13 @@ gen/struct/field = off_time [oldtime/showinvisible] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix gen/struct/field = show_invisible [oldtime/showtitle] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix description = "Display the title bar in two-line mode. Note that with four lines or more the title is always shown. [default: true; legal: true, false]" gen/struct/field/ignore = 1 @@ -452,7 +452,7 @@ gen/struct/create = 0 [bigclock/active] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix gen/struct/field = active description = Show screen @@ -471,13 +471,13 @@ gen/struct/field = off_time [bigclock/showinvisible] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix gen/struct/field = show_invisible [bigclock/showsecs] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix description = Show seconds gen/struct/field/ignore = 1 @@ -494,7 +494,7 @@ gen/struct/create = 0 [battery/active] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix gen/struct/field = active description = Show screen @@ -513,7 +513,7 @@ gen/struct/field = off_time [battery/showinvisible] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix gen/struct/field = show_invisible ;Uptime @@ -529,7 +529,7 @@ gen/struct/create = 0 [uptime/active] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix gen/struct/field = active description = Show screen @@ -548,7 +548,7 @@ gen/struct/field = off_time [uptime/showinvisible] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix gen/struct/field = show_invisible ;CPUGraph @@ -564,7 +564,7 @@ gen/struct/create = 0 [cpugraph/active] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix gen/struct/field = active description = Show screen @@ -583,7 +583,7 @@ gen/struct/field = off_time [cpugraph/showinvisible] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix gen/struct/field = show_invisible ;ProcSize @@ -599,7 +599,7 @@ gen/struct/create = 0 [procsize/active] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix gen/struct/field = active description = Show screen @@ -618,7 +618,7 @@ gen/struct/field = off_time [procsize/showinvisible] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix gen/struct/field = show_invisible ;Disk @@ -634,7 +634,7 @@ gen/struct/create = 0 [disk/active] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix gen/struct/field = active description = Show screen @@ -653,7 +653,7 @@ gen/struct/field = off_time [disk/showinvisible] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix gen/struct/field = show_invisible ;MiniClock @@ -669,7 +669,7 @@ gen/struct/create = 0 [miniclock/active] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix gen/struct/field = active description = Show screen @@ -688,7 +688,7 @@ gen/struct/field = off_time [miniclock/showinvisible] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix gen/struct/field = show_invisible [miniclock/timeformat] diff --git a/clients/lcdvc/lcdvc.c b/clients/lcdvc/lcdvc.c index 6ababad0..4013edf0 100644 --- a/clients/lcdvc/lcdvc.c +++ b/clients/lcdvc/lcdvc.c @@ -128,7 +128,7 @@ static void exit_program(int val) exit(val); } -static void on_fatal_error(ElektraError * error) // TODO: finalize method +static void on_fatal_error(ElektraError * error) // TODO (elektra): finalize method { fprintf(stderr, "ERROR: %s\n", elektraErrorDescription(error)); exit(EXIT_FAILURE); diff --git a/clients/lcdvc/specification/lcdvc-spec.ini b/clients/lcdvc/specification/lcdvc-spec.ini index 986fb5eb..f5831051 100644 --- a/clients/lcdvc/specification/lcdvc-spec.ini +++ b/clients/lcdvc/specification/lcdvc-spec.ini @@ -1,7 +1,7 @@ [] mountpoint = lcdvc.conf ;infos/plugins = dump validation tpoe range ipaddr path -infos/plugin = dump validation type +infos/plugin = ini validation type [/lcdvc/address] check/ipaddr = @@ -33,7 +33,7 @@ opt/long=report-level [/lcdvc/reporttosyslog] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Should we report to syslog instead of stderr? opt=s opt/long=report-to-syslog @@ -80,7 +80,7 @@ description = "vcsa device to use" [/lcdvc/foreground] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = "whether to run in foreground" opt=f opt/long=foreground diff --git a/server/drivers/lcd.h b/server/drivers/lcd.h index e5aa2256..6562d3fe 100644 --- a/server/drivers/lcd.h +++ b/server/drivers/lcd.h @@ -200,14 +200,6 @@ typedef struct lcd_logical_driver { int (*store_private_ptr) (struct lcd_logical_driver * driver, void * private_data); /* Store the driver's private data */ - /* TODO: remove; all unset just here to avoid compile errors */ - short (*config_get_bool) (const char *sectionname, const char *keyname, int skip, short default_value); - long int (*config_get_int) (const char *sectionname, const char *keyname, int skip, long int default_value); - double (*config_get_float) (const char *sectionname, const char *keyname, int skip, double default_value); - const char *( *config_get_string)(const char *sectionname, const char *keyname, int skip, const char *default_value); - int (*config_has_section) (const char *sectionname); - int (*config_has_key) (const char *sectionname, const char *keyname); - /* Display properties functions (for drivers that adapt to other loaded drivers) */ int (*request_display_width) (); int (*request_display_height) (); diff --git a/server/main.c b/server/main.c index c598b1bb..92852bdd 100644 --- a/server/main.c +++ b/server/main.c @@ -277,7 +277,7 @@ clear_settings(void) num_drivers = 0; } -static void on_fatal_error(ElektraError * error) // TODO: finalize method +static void on_fatal_error(ElektraError * error) // TODO (elektra): finalize method { fprintf(stderr, "ERROR: %s\n", elektraErrorDescription(error)); exit(EXIT_FAILURE); diff --git a/server/specification/LCDd-spec.ini b/server/specification/LCDd-spec.ini index cfda0b76..825c269c 100644 --- a/server/specification/LCDd-spec.ini +++ b/server/specification/LCDd-spec.ini @@ -3,8 +3,8 @@ mountpoint = LCDd.conf ;infos/plugins = dump validation enum range ipaddr path network type infos/plugins = ini validation type -; TODO: Until the max plugin error is not fixed, some specifications will be left commented out -; TODO: sizes width/height as separate keys +; TODO (elektra): Until the max plugin error is not fixed, some specifications will be left commented out +; TODO (elektra): sizes width/height as separate keys ;============================================================================= ;============================================================================= @@ -22,7 +22,7 @@ description = Select the LCD size [server/drivers] default = "" -array = #0 ; TODO: max drivers +array = #0 ; TODO (elektra): max drivers [server/drivers/#] type = string @@ -114,7 +114,7 @@ opt/long = report-level [server/reporttosyslog] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Should we report to syslog instead of stderr? opt = s opt/long = report-to-syslog @@ -131,7 +131,7 @@ opt/long = user [server/foreground] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = The server will stay in the foreground if set to yes opt = f opt/long = foreground @@ -161,7 +161,7 @@ description = "Sets the interval in microseconds for updating the display [defau [server/waittime] type = float check/type = float -; TODO: bigger than 2 +; TODO (elektra): bigger than 2 default = 4 description = Sets the default time in seconds to displays a screen opt = w @@ -170,7 +170,7 @@ opt/long = wait-time [server/autorotate] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix description = If set to no, LCDd will start with screen rotation disabled. This has the\ same effect as if the ToggleRotateKey had been pressed. Rotation will start\ if the ToggleRotateKey is pressed. Note that this setting does not turn off\ @@ -272,7 +272,7 @@ Assign the key string returned by the driver to the ...Key setting." [menu/permissivegoto] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = If true the server allows transitions between different client`s menus [menu/menukey] @@ -397,7 +397,7 @@ switched off in case LCDd is inactive [cfontz/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [cfontz/#/device] @@ -426,13 +426,13 @@ description = Set the communication speed [cfontz/#/newfirmware] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = "Set the firmware version (New means >= 2.0)" [cfontz/#/usb] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = "Is this driver using USB?" ;CFontzPacket @@ -480,7 +480,7 @@ switched off in case LCDd is inactive [cfontzpacket/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [cfontzpacket/#/model] @@ -505,13 +505,13 @@ default = /dev/lcd [cfontzpacket/#/usb] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Enable the USB flag if the device is connected to an USB port. For serial ports leave it disabled. [cfontzpacket/#/oldfirmware] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Very old 633 firmware versions do not support partial screen updates using\ 'Send Data to LCD' command (31). For those devices it may be necessary to\ enable this flag @@ -629,13 +629,13 @@ description = What position (X,Y) to start the left top corner at... [curses/#/useacs] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = use ASC symbols for icons & bars [curses/#/drawborder] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix description = draw Border ;CwLnx @@ -694,7 +694,7 @@ description = Set the communication speed [cwlnx/#/keypad] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix description = If you have a keypad connected. Keypad layout is currently not configureable from the config file. [cwlnx/#/keymap_a] @@ -773,7 +773,7 @@ standard keypad." [cwlnx/#/keypad_test_mode] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = permits one to test keypad assignment ;ea65 @@ -823,7 +823,7 @@ description = OffBrightness is the the value used for the 'backlight off' state [ea65/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this ;EyeboxOne @@ -867,7 +867,7 @@ check/range = 0-1000 [eyeboxone/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [eyeboxone/#/device] @@ -889,13 +889,13 @@ description = Set the display size [eyeboxone/#/backlight] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix description = Switch on the backlight? [eyeboxone/#/cursor] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Switch on the cursor? [eyeboxone/#/speed] @@ -939,7 +939,7 @@ description = "Enter Key is a \r character, so it's hardcoded in the driver" [eyeboxone/#/keypad_test_mode] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = "You can find out which key of your display sends which character by setting keypad_test_mode to yes and running LCDd. LCDd will output all characters it receives. @@ -1006,7 +1006,7 @@ check/range = 0-1000 [g15/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [g15/#/size] @@ -1059,7 +1059,7 @@ check/range = 0-1000 [glcd/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [glcd/#/connectiontype] @@ -1100,7 +1100,7 @@ default 6x8 cell is used. [glcd/#/useft2] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix description = If LCDproc has been compiled with FreeType 2 support this option can be used\ to turn if off intentionally. @@ -1116,7 +1116,7 @@ is recommended and can be fetched at http://corefonts.sf.net). [glcd/#/fonthasicons] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix description = Some fonts miss the Unicode characters used to represent icons. In this case\ the built-in 5x8 font can used if this option is turned off. @@ -1188,14 +1188,14 @@ description = Parallel port to use [glcd/#/bidirectional] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix description = Use LPT port in bi-directional mode. This should work on most LPT port\ and is required for proper timing! [glcd/#/delaybus] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Insert additional delays into reads / writes. [glcd/#/serdisp_name] @@ -1214,7 +1214,7 @@ description = The display device to use, e.g. serraw:/dev/ttyS0,\ parport:/dev/parport0 or USB:07c0/1501 -;TODO: Are quotes really required now when switching to libelektra? +;TODO (elektra): Are quotes really required now when switching to libelektra? [glcd/#/serdisp_options] type = string @@ -1268,7 +1268,7 @@ description = Adds a border (empty space) around the LCD portion of X11 window. [glcd/#/x11_inverted] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Inverts the pixels. [glcd/#/picolcdgfx_keytimeout] @@ -1283,7 +1283,7 @@ description = Time in ms for usb_read to wait on a key press. [glcd/#/picolcdgfx_inverted] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Inverts the pixels. ;glcdlib @@ -1327,7 +1327,7 @@ check/range = 0-1000 [glcdlib/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [glcdlib/#/driver] @@ -1351,7 +1351,7 @@ description = "character encoding to use" [glcdlib/#/useft2] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix description = "no=use graphlcd bitmap fonts (they have only one size / font file) yes=use fonts supported by FreeType2 (needs Freetype2 support in libglcdprocdriver and its dependants)" @@ -1387,32 +1387,32 @@ description = "path to font file to use" [glcdlib/#/backlight] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix [glcdlib/#/upsidedown] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix [glcdlib/#/invert] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix [glcdlib/#/showdebugframe] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix [glcdlib/#/showbigborder] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix [glcdlib/#/showthinborder] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix [glcdlib/#/pixelshiftx] type = short @@ -1511,7 +1511,7 @@ check/range = 0-1000 [hd44780/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [hd44780/#/connectiontype] @@ -1597,7 +1597,7 @@ description = "Bitrate of the serial port (0 for interface default)" [hd44780/#/keypad] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = "If you have a keypad connected. You may also need to configure the keypad layout further on in this file." @@ -1655,14 +1655,14 @@ Up to 4 bytes can be encoded, as integer number in big-endian order." [hd44780/#/outputport] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = If you have the additional output port ("bargraph") and you want to\ be able to control it with the lcdproc OUTPUT command [hd44780/#/lastline] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix description = "Specifies if the last line is pixel addressable (yes) or it controls an underline effect (no)." @@ -1689,7 +1689,7 @@ Vspan=2,2 means both displays have 2 lines." [hd44780/#/extendedmode] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = "If you have an HD66712, a KS0073 or another controller with 'extended mode', set this flag to get into 4-line mode. On displays with just two lines, do not set this flag. @@ -1771,7 +1771,7 @@ full screen refresh seconds." [hd44780/#/delaybus] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix description = "You can reduce the inserted delays by setting this to false. On fast PCs it is possible your LCD does not respond correctly." @@ -1861,7 +1861,7 @@ check/range = 0-1000 [icp_a106/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [icp_a106/#/device] @@ -1921,7 +1921,7 @@ check/range = 0-1000 [iowarrior/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [iowarrior/#/size] @@ -1943,14 +1943,14 @@ description = serial number. Must be exactly as listed by usbview\ [iowarrior/#/extendedmode] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = "If you have an HD66712, a KS0073 or another 'almost HD44780-compatible', set this flag to get into extended mode (4-line linear)." [iowarrior/#/lastline] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix description = "Specifies if the last line is pixel addressable (yes) or it controls an underline effect (no)." @@ -1995,7 +1995,7 @@ check/range = 0-1000 [imon/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [imon/#/device] @@ -2071,7 +2071,7 @@ check/range = 0-1000 [imonlcd/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [imonlcd/#/protocol] @@ -2119,7 +2119,7 @@ description = Specify the size of the display in pixels [imonlcd/#/backlight] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix description = "Set the backlight state" [imonlcd/#/discmode] @@ -2175,7 +2175,7 @@ check/range = 0-1000 [irman/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [irman/#/device] @@ -2233,13 +2233,13 @@ check/range = 0-1000 [irtrans/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [irtrans/#/backlight] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = "Does the device have a backlight?" [irtrans/#/hostname] @@ -2298,7 +2298,7 @@ check/range = 0-1000 [joy/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [joy/#/device] @@ -2372,7 +2372,7 @@ check/range = 0-255 [lb216/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [lb216/#/device] @@ -2509,7 +2509,7 @@ check/range = 0-1000 [lcterm/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [lcterm/#/device] @@ -2569,7 +2569,7 @@ check/range = 0-1000 [linux_input/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [linux_input/#/device] @@ -2628,7 +2628,7 @@ check/range = 0-1000 [lirc/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [lirc/#/lircrc] @@ -2687,7 +2687,7 @@ check/range = 0-1000 [lis/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [lis/#/size] @@ -2720,7 +2720,7 @@ description = USB Product ID. Change only if testing a compatible device. [lis/#/lastline] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix description = "Specifies if the last line is pixel addressable (yes) or it only controls an underline effect (no)" @@ -2768,7 +2768,7 @@ switched off in case LCDd is inactive" [md8800/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [md8800/#/device] @@ -2829,7 +2829,7 @@ check/range = 0-1000 [mdm166a/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [mdm166a/#/clock] @@ -2845,13 +2845,13 @@ description = "Show self-running clock after LCDd shutdown" [mdm166a/#/dimming] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = "Dim display, no dimming gives full brightness" [mdm166a/#/offdimming] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = "Dim display in case LCDd is inactive" ;ms6931 @@ -2895,7 +2895,7 @@ check/range = 0-1000 [ms6931/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [ms6931/#/device] @@ -2955,7 +2955,7 @@ check/range = 0-1000 [mtc_s16209x/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [mtc_s16209x/#/device] @@ -3039,7 +3039,7 @@ description = "Set the display type" type = boolean check/type = boolean gen/struct/field = hasAdjustableBacklight -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = "Some old displays do not have an adjustable backlight but only can switch the backlight on/off. If you experience randomly appearing block characters, try setting this to false." @@ -3054,7 +3054,7 @@ description = Set the communication [mtxorb/#/keypad_test_mode] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = permits one to test keypad assignment [mtxorb/#/keymap_a] @@ -3134,7 +3134,7 @@ check/range = 0-1000 [mx5000/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [mx5000/#/device] @@ -3197,7 +3197,7 @@ switched off in case LCDd is inactive" [noritakevfd/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [noritakevfd/#/device] @@ -3272,7 +3272,7 @@ check/range = 0-1000 [olimex_mod_lcd1x9/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [olimex_mod_lcd1x9/#/device] @@ -3327,7 +3327,7 @@ Works only with the 20x4 device." [picolcd/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [picolcd/#/keytimeout] @@ -3367,25 +3367,25 @@ KeyRepeatDelay is not zero." [picolcd/#/backlight] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix description = Sets the initial state of the backlight upon start-up. [picolcd/#/linklights] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Link the key lights to the backlight? [picolcd/#/keylights] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix description = Light the keys? [picolcd/#/key0light] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix description = "If Keylights is on, the you can unlight specific keys below: Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. There is no LED for the +/- keys. This is a handy way to indicate to users @@ -3394,7 +3394,7 @@ which keys are disabled." [picolcd/#/key1light] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix description = "If Keylights is on, the you can unlight specific keys below: Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. There is no LED for the +/- keys. This is a handy way to indicate to users @@ -3403,7 +3403,7 @@ which keys are disabled." [picolcd/#/key2light] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix description = "If Keylights is on, the you can unlight specific keys below: Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. There is no LED for the +/- keys. This is a handy way to indicate to users @@ -3412,7 +3412,7 @@ which keys are disabled." [picolcd/#/key3light] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix description = "If Keylights is on, the you can unlight specific keys below: Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. There is no LED for the +/- keys. This is a handy way to indicate to users @@ -3421,7 +3421,7 @@ which keys are disabled." [picolcd/#/key4light] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix description = "If Keylights is on, the you can unlight specific keys below: Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. There is no LED for the +/- keys. This is a handy way to indicate to users @@ -3430,7 +3430,7 @@ which keys are disabled." [picolcd/#/key5light] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix description = "If Keylights is on, the you can unlight specific keys below: Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. There is no LED for the +/- keys. This is a handy way to indicate to users @@ -3454,7 +3454,7 @@ description = UDP port on which LIRC is listening [picolcd/#/lirctime_us] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = "UDP data time unit for LIRC On: times sent in microseconds (requires LIRC UDP driver that accepts this). Off: times sent in 'jiffies' (1/16384s) (supported by standard LIRC UDP driver)." @@ -3539,7 +3539,7 @@ check/range = 0-1000 [rawserial/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [rawserial/#/device] @@ -3615,7 +3615,7 @@ check/range = 0-1000 [sed1330/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [sed1330/#/port] @@ -3700,7 +3700,7 @@ check/range = 0-1000 [sed1520/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [sed1520/#/port] @@ -3733,14 +3733,14 @@ zero slows down each write by one microsecond." [sed1520/#/haveinverter] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix description = "The original wiring used an inverter to drive the control lines. If you do not use an inverter set haveInverter to no." [sed1520/#/invertedmapping] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = "On some displays column data in memory is mapped to segment lines from right to left. This is called inverted mapping (not to be confused with 'haveInverter' from above)." @@ -3748,7 +3748,7 @@ to left. This is called inverted mapping (not to be confused with [sed1520/#/usehardreset] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = "At least one display is reported (Everbouquet MG1203D) that requires sending three times 0xFF before a reset during initialization." @@ -3793,7 +3793,7 @@ check/range = 0-1000 [serialpos/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [serialpos/#/device] @@ -3901,7 +3901,7 @@ switched off in case LCDd is inactive [serialvfd/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [serialvfd/#/type] @@ -3952,7 +3952,7 @@ description = "Specifies the displaytype.[default: 0] [serialvfd/#/use_parallel] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = "'no' if display connected serial, 'yes' if connected parallel. I.e. serial by default" @@ -4007,7 +4007,7 @@ description = set the serial port speed [serialvfd/#/iso_8859_1] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix description = "enable ISO 8859 1 compatibility" ;stv5730 @@ -4051,7 +4051,7 @@ check/range = 0-1000 [stv5730/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [stv5730/#/port] @@ -4107,7 +4107,7 @@ switched off in case LCDd is inactive" [sureelec/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [sureelec/#/device] @@ -4175,7 +4175,7 @@ check/range = 1-1000 [svga/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [svga/#/mode] @@ -4235,7 +4235,7 @@ check/range = 0-1000 [text/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [text/#/size] @@ -4288,7 +4288,7 @@ check/range = 0-1000 [t6963/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [t6963/#/size] @@ -4312,20 +4312,20 @@ description = Parallel port to use [t6963/#/bidirectional] type = boolean check/type = boolean -default = 1 ; TODO: fix +default = 1 ; TODO (elektra): fix description = "Use LPT port in bi-directional mode. This should work on most LPT port and is required for proper timing!" [t6963/#/delaybus] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = "Insert additional delays into reads / writes." [t6963/#/cleargraphic] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = "Clear graphic memory on start-up." ;tyan @@ -4369,7 +4369,7 @@ check/range = 0-1000 [tyan/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [tyan/#/device] @@ -4437,7 +4437,7 @@ check/range = 0-1000 [ula200/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [ula200/#/size] @@ -4563,7 +4563,7 @@ check/range = 0-1000 [sli/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [sli/#/device] @@ -4621,7 +4621,7 @@ check/range = 0-1000 [vlsys_m428/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [vlsys_m428/#/device] @@ -4672,7 +4672,7 @@ check/range = 0-1000 [xosd/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [xosd/#/size] @@ -4740,7 +4740,7 @@ check/range = 0-1000 [yard2lcd/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO: fix +default = 0 ; TODO (elektra): fix description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [yard2lcd/#/size] From 9a9d124f6a7c90fcd2c51a114ac09c4e51f96fe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Thu, 16 May 2019 13:56:57 +0200 Subject: [PATCH 12/72] lcdproc: screens defined on command-line --- clients/lcdproc/main.c | 103 ++++++++---------- clients/lcdproc/main.h | 3 +- .../lcdproc/specification/lcdproc-spec.ini | 53 +++++++++ 3 files changed, 99 insertions(+), 60 deletions(-) diff --git a/clients/lcdproc/main.c b/clients/lcdproc/main.c index 1d73cec2..de133a44 100644 --- a/clients/lcdproc/main.c +++ b/clients/lcdproc/main.c @@ -104,23 +104,23 @@ static const char * help_prefix = ScreenMode sequence[] = { /* flags default ACTIVE will run by default */ - /* longname which on off inv timer flags */ - { "CPU", 'C', 1, 2, 0, 0xffff, ACTIVE, cpu_screen, ELEKTRA_GET(ELEKTRA_TAG_CPU) }, // [C]PU - { "Iface", 'I', 1, 2, 0, 0xffff, 0, iface_screen, ELEKTRA_GET(ELEKTRA_TAG_IFACE) }, // [I]face - { "Memory", 'M', 4, 16, 0, 0xffff, ACTIVE, mem_screen, ELEKTRA_GET(ELEKTRA_TAG_MEMORY) }, // [M]emory - { "Load", 'L', 64, 128, 1, 0xffff, ACTIVE, xload_screen, ELEKTRA_GET(ELEKTRA_TAG_LOAD) }, // [L]oad (load histogram) - { "TimeDate", 'T', 4, 64, 0, 0xffff, ACTIVE, time_screen, ELEKTRA_GET(ELEKTRA_TAG_TIMEDATE) }, // [T]ime/Date - { "About", 'A', 999, 9999, 0, 0xffff, ACTIVE, credit_screen, ELEKTRA_GET(ELEKTRA_TAG_ABOUT) }, // [A]bout (credits) - { "SMP-CPU", 'P', 1, 2, 0, 0xffff, 0, cpu_smp_screen, ELEKTRA_GET(ELEKTRA_TAG_SMPCPU) }, // CPU_SM[P] - { "OldTime", 'O', 4, 64, 0, 0xffff, 0, clock_screen, ELEKTRA_GET(ELEKTRA_TAG_OLDTIME) }, // [O]ld Timescreen - { "BigClock", 'K', 4, 64, 0, 0xffff, 0, big_clock_screen, ELEKTRA_GET(ELEKTRA_TAG_BIGCLOCK) }, // big cloc[K] - { "Uptime", 'U', 4, 128, 0, 0xffff, 0, uptime_screen, ELEKTRA_GET(ELEKTRA_TAG_UPTIME) }, // Old [U]ptime Screen - { "Battery", 'B', 32, 256, 1, 0xffff, 0, battery_screen, ELEKTRA_GET(ELEKTRA_TAG_BATTERY) }, // [B]attery Status - { "CPUGraph", 'G', 1, 2, 0, 0xffff, 0, cpu_graph_screen, ELEKTRA_GET(ELEKTRA_TAG_CPUGRAPH) }, // CPU histogram [G]raph - { "ProcSize", 'S', 16, 256, 1, 0xffff, 0, mem_top_screen, ELEKTRA_GET(ELEKTRA_TAG_PROCSIZE) }, // [S]ize of biggest processes - { "Disk", 'D', 256, 256, 1, 0xffff, 0, disk_screen, ELEKTRA_GET(ELEKTRA_TAG_DISK) }, // [D]isk stats - { "MiniClock", 'N', 4, 64, 0, 0xffff, 0, mini_clock_screen, ELEKTRA_GET(ELEKTRA_TAG_MINICLOCK) }, // Mi[n]i clock - { NULL, 0, 0, 0, 0, 0, 0, NULL}, // No more.. all done. + /* screen longname which on off inv timer flags func base_conf*/ + { LCDPROC_SCREEN_CPU, "CPU", 'C', 1, 2, 0, 0xffff, ACTIVE, cpu_screen, ELEKTRA_GET(ELEKTRA_TAG_CPU) }, // [C]PU + { LCDPROC_SCREEN_IFACE, "Iface", 'I', 1, 2, 0, 0xffff, 0, iface_screen, ELEKTRA_GET(ELEKTRA_TAG_IFACE) }, // [I]face + { LCDPROC_SCREEN_MEMORY, "Memory", 'M', 4, 16, 0, 0xffff, ACTIVE, mem_screen, ELEKTRA_GET(ELEKTRA_TAG_MEMORY) }, // [M]emory + { LCDPROC_SCREEN_LOAD, "Load", 'L', 64, 128, 1, 0xffff, ACTIVE, xload_screen, ELEKTRA_GET(ELEKTRA_TAG_LOAD) }, // [L]oad (load histogram) + { LCDPROC_SCREEN_TIME_DATE, "TimeDate", 'T', 4, 64, 0, 0xffff, ACTIVE, time_screen, ELEKTRA_GET(ELEKTRA_TAG_TIMEDATE) }, // [T]ime/Date + { LCDPROC_SCREEN_ABOUT, "About", 'A', 999, 9999, 0, 0xffff, ACTIVE, credit_screen, ELEKTRA_GET(ELEKTRA_TAG_ABOUT) }, // [A]bout (credits) + { LCDPROC_SCREEN_SMP_CPU, "SMP-CPU", 'P', 1, 2, 0, 0xffff, 0, cpu_smp_screen, ELEKTRA_GET(ELEKTRA_TAG_SMPCPU) }, // CPU_SM[P] + { LCDPROC_SCREEN_OLD_TIME, "OldTime", 'O', 4, 64, 0, 0xffff, 0, clock_screen, ELEKTRA_GET(ELEKTRA_TAG_OLDTIME) }, // [O]ld Timescreen + { LCDPROC_SCREEN_BIG_CLOCK, "BigClock", 'K', 4, 64, 0, 0xffff, 0, big_clock_screen, ELEKTRA_GET(ELEKTRA_TAG_BIGCLOCK) }, // big cloc[K] + { LCDPROC_SCREEN_UPTIME, "Uptime", 'U', 4, 128, 0, 0xffff, 0, uptime_screen, ELEKTRA_GET(ELEKTRA_TAG_UPTIME) }, // Old [U]ptime Screen + { LCDPROC_SCREEN_BATTERY, "Battery", 'B', 32, 256, 1, 0xffff, 0, battery_screen, ELEKTRA_GET(ELEKTRA_TAG_BATTERY) }, // [B]attery Status + { LCDPROC_SCREEN_CPU_GRAPH, "CPUGraph", 'G', 1, 2, 0, 0xffff, 0, cpu_graph_screen, ELEKTRA_GET(ELEKTRA_TAG_CPUGRAPH) }, // CPU histogram [G]raph + { LCDPROC_SCREEN_PROC_SIZE, "ProcSize", 'S', 16, 256, 1, 0xffff, 0, mem_top_screen, ELEKTRA_GET(ELEKTRA_TAG_PROCSIZE) }, // [S]ize of biggest processes + { LCDPROC_SCREEN_DISK, "Disk", 'D', 256, 256, 1, 0xffff, 0, disk_screen, ELEKTRA_GET(ELEKTRA_TAG_DISK) }, // [D]isk stats + { LCDPROC_SCREEN_MINI_CLOCK, "MiniClock", 'N', 4, 64, 0, 0xffff, 0, mini_clock_screen, ELEKTRA_GET(ELEKTRA_TAG_MINICLOCK) }, // Mi[n]i clock + { 0, NULL, 0, 0, 0, 0, 0, 0, NULL}, // No more.. all done. }; @@ -178,14 +178,12 @@ bool check_protocol_version(int major, int minor) /** Enables or disables (and deletes) a screen */ static int -set_mode(int shortname, char *longname, int state) +set_mode(LcdprocScreen screen, int state) { int k; for (k = 0; sequence[k].which != 0; k++) { - if (((sequence[k].longname != NULL) && - (0 == strcasecmp(longname, sequence[k].longname))) || - (toupper(shortname) == sequence[k].which)) { + if (sequence[k].screen == screen) { if (!state) { /* * clean both the active and initialized bits @@ -197,8 +195,9 @@ set_mode(int shortname, char *longname, int state) sock_printf(sock, "screen_del %c\n", sequence[k].which); } } - else + else { sequence[k].flags |= ACTIVE; + } return 1; /* found */ } } @@ -257,32 +256,6 @@ main(int argc, const char **argv) /* Set reporting settings */ set_reporting("lcdproc", report_level, report_dest); - - // TODO (elektra): /* parse non-option arguments: modes to add/delete */ - /*if (argc > max(optind, 1)) { - int i; - - / * - * if no config file was read, ignore hard coded default - * modes - * / - if (cfgresult == 0) - clear_modes(); - - / * turn additional options on or off (using ! as prefix) * / - for (i = max(optind, 1); i < argc; i++) { - int state = (*argv[i] == '!') ? 0 : 1; - const char *name = (state) ? argv[i] : argv[i] + 1; - int shortname = (strlen(name) == 1) ? name[0] : '\0'; - int found = set_mode(shortname, name, state); - - if (!found) { - fprintf(stderr, "Invalid Screen: %s\n", name); - return (EXIT_FAILURE); - } - } - }*/ - /* Connect to the server... */ sock = sock_connect(server, port); if (sock < 0) { @@ -382,17 +355,29 @@ process_config() * defaults */ for (int k = 0; sequence[k].which != 0; k++) { - if (sequence[k].longname != NULL) { - ScreenBaseConfig base_config; - sequence[k].get_base_config(elektra, &base_config); - - sequence[k].on_time = base_config.on_time; - sequence[k].off_time = base_config.off_time; - sequence[k].show_invisible = base_config.show_invisible; - if (base_config.active) - sequence[k].flags |= ACTIVE; - else - sequence[k].flags &= (~ACTIVE); + ScreenBaseConfig base_config; + sequence[k].get_base_config(elektra, &base_config); + + sequence[k].on_time = base_config.on_time; + sequence[k].off_time = base_config.off_time; + sequence[k].show_invisible = base_config.show_invisible; + if (base_config.active) + sequence[k].flags |= ACTIVE; + else + sequence[k].flags &= (~ACTIVE); + } + + /* read enabled screens, if defined */ + kdb_long_long_t screen_count = elektraSize(elektra, ELEKTRA_TAG_LCDPROC_SCREENS); + if(screen_count > 0) + { + /* unset defaults */ + clear_modes(); + + for (kdb_long_long_t i = 0; i < screen_count; ++i) + { + LcdprocScreen screen = elektraGetV(elektra, ELEKTRA_TAG_LCDPROC_SCREENS, i); + set_mode(screen, 1); } } diff --git a/clients/lcdproc/main.h b/clients/lcdproc/main.h index 84a0ebb1..131fa655 100644 --- a/clients/lcdproc/main.h +++ b/clients/lcdproc/main.h @@ -14,7 +14,7 @@ #include "shared/defines.h" -#include +#include "elektragen.h" #include "screen_config.h" #ifndef TRUE @@ -49,6 +49,7 @@ extern int lcd_cellhgt; /** Screen data structure */ typedef struct _screen_mode { + LcdprocScreen screen; /** < Which screen is it (enum)? */ char *longname; /**< Which screen is it (long name)? */ char which; /**< Which screen is it (short name)? */ int on_time; /**< How often to update while visible? */ diff --git a/clients/lcdproc/specification/lcdproc-spec.ini b/clients/lcdproc/specification/lcdproc-spec.ini index 7b74873f..d380e5c8 100644 --- a/clients/lcdproc/specification/lcdproc-spec.ini +++ b/clients/lcdproc/specification/lcdproc-spec.ini @@ -70,6 +70,59 @@ description = print version information and exit opt = v opt/long = version +[lcdproc/screens/#] +type = enum +check/type = enum +check/enum = #_30 +check/enum/#1 = cpu +check/enum/#2 = iface +check/enum/#3 = memory +check/enum/#4 = load +check/enum/#5 = time_date +check/enum/#6 = about +check/enum/#7 = smp_cpu +check/enum/#8 = old_time +check/enum/#9 = big_clock +check/enum/#_10 = uptime +check/enum/#_11 = battery +check/enum/#_12 = cpu_graph +check/enum/#_13 = proc_size +check/enum/#_14 = disk +check/enum/#_15 = mini_clock +check/enum/#_16 = C +gen/enum/#_16/value = LCDPROC_SCREEN_CPU +check/enum/#_17 = I +gen/enum/#_17/value = LCDPROC_SCREEN_IFACE +check/enum/#_18 = M +gen/enum/#_18/value = LCDPROC_SCREEN_MEMORY +check/enum/#_19 = L +gen/enum/#_19/value = LCDPROC_SCREEN_LOAD +check/enum/#_20 = T +gen/enum/#_20/value = LCDPROC_SCREEN_TIME_DATE +check/enum/#_21 = A +gen/enum/#_21/value = LCDPROC_SCREEN_ABOUT +check/enum/#_22 = P +gen/enum/#_22/value = LCDPROC_SCREEN_SMP_CPU +check/enum/#_23 = O +gen/enum/#_23/value = LCDPROC_SCREEN_OLD_TIME +check/enum/#_24 = K +gen/enum/#_24/value = LCDPROC_SCREEN_BIG_CLOCK +check/enum/#_25 = U +gen/enum/#_25/value = LCDPROC_SCREEN_UPTIME +check/enum/#_26 = B +gen/enum/#_26/value = LCDPROC_SCREEN_BATTERY +check/enum/#_27 = G +gen/enum/#_27/value = LCDPROC_SCREEN_CPU_GRAPH +check/enum/#_28 = S +gen/enum/#_28/value = LCDPROC_SCREEN_PROC_SIZE +check/enum/#_29 = D +gen/enum/#_29/value = LCDPROC_SCREEN_DISK +check/enum/#_30 = N +gen/enum/#_30/value = LCDPROC_SCREEN_MINI_CLOCK +gen/enum/type = LcdprocScreen +default = "" ; TODO: opt doesn't need default +args = remaining + ;CPU ;================================================== [cpu] From 30344e775009e25969a7e8f012c6eb1a24a08a4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Mon, 20 May 2019 00:19:59 +0200 Subject: [PATCH 13/72] server: update spec --- server/specification/LCDd-spec.ini | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/server/specification/LCDd-spec.ini b/server/specification/LCDd-spec.ini index 825c269c..e8d8cb8e 100644 --- a/server/specification/LCDd-spec.ini +++ b/server/specification/LCDd-spec.ini @@ -23,11 +23,7 @@ description = Select the LCD size [server/drivers] default = "" array = #0 ; TODO (elektra): max drivers - -[server/drivers/#] -type = string -check/type = string -default = "" +check/reference = single check/reference/restrict = #_52 check/reference/restrict/#0 = @/bayrad/# check/reference/restrict/#1 = @/cfontz/# @@ -84,6 +80,11 @@ check/reference/restrict/#_51 = @/yard2lcd/# description = "Tells the server to load a driver. The given value is a reference the configuration of the driver, e.g. @/curses/#0" +[server/drivers/#] +type = string +check/type = string +default = "" + [server/bind] type = string ;check/ipaddr = From dbac557d24e3477bba82c314961bafd309a1b7a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Mon, 20 May 2019 00:21:27 +0200 Subject: [PATCH 14/72] server: remove ignored files --- server/elektragen.c | 18843 ----------------------- server/elektragen.h | 34830 ------------------------------------------ 2 files changed, 53673 deletions(-) delete mode 100644 server/elektragen.c delete mode 100644 server/elektragen.h diff --git a/server/elektragen.c b/server/elektragen.c deleted file mode 100644 index 3827e1bf..00000000 --- a/server/elektragen.c +++ /dev/null @@ -1,18843 +0,0 @@ -// clang-format off - - -// clang-format on -/** - * @file - * - * This file was automatically generated using `kdb gen elektra`. - * Any changes will be overwritten, when the file is regenerated. - * - * @copyright BSD Zero Clause License - * - * Copyright (C) 2019 Elektra Initiative (https://libelektra.org) - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND - * FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR - * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -#include "elektragen.h" - - - -#include -#include -#include - -#include -#include -#include - -#include - -static Key * helpKey = NULL; - - -/** - * Initializes an instance of Elektra for the application '/sw/lcdproc/lcdd/#0/current'. - * - * This can be invoked as many times as you want, however it is not a cheap operation, - * so you should try to reuse the Elektra handle as much as possible. - * - * @param elektra A reference to where the Elektra instance shall be stored. - * Has to be disposed of with elektraClose(). - * @param error A reference to an ElektraError pointer. Will be passed to elektraOpen(). - * - * @retval 0 on success, @p elektra will be set, @p error will be unchanged - * @retval -1 on error, @p elektra will be unchanged, @p error will be set - * @retval 1 specload mode, exit as soon as possible and must DO NOT write anything to stdout, - * @p elektra and @p error are both unchanged - * @retval 2 help mode, '-h' or '--help' was specified call printHelpMessage and exit - * @p elektra and @p error are both unchanged - * IMPORTANT: there will be memory leaks, if you don't call printHelpMessage !! - * - * @see elektraOpen - */// -int loadConfiguration (Elektra ** elektra, ElektraError ** error) -{ - KeySet * defaults = ksNew (571, - keyNew("", KEY_META, "infos/plugins", "ini validation type", KEY_META, "mountpoint", "LCDd.conf", KEY_END), - keyNew ("/bayrad/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a bayrad driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "BayradDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/bayrad/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/bayrad/#/file", KEY_VALUE, "bayrad", KEY_META, "default", "bayrad", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/bayrad/#/speed", KEY_VALUE, "9600", KEY_META, "check/range", "1200, 2400, 9600, 19200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/cfontz/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a CFontz driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "CFontzDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/cfontz/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/cfontz/#/contrast", KEY_VALUE, "350", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "350", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/cfontz/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/cfontz/#/file", KEY_VALUE, "CFontz", KEY_META, "default", "CFontz", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/cfontz/#/newfirmware", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Set the firmware version (New means >= 2.0)", KEY_META, "type", "boolean", KEY_END), - keyNew ("/cfontz/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness. This value is used when the display is normally switched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/cfontz/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/cfontz/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Select the LCD size", KEY_META, "type", "string", KEY_END), - keyNew ("/cfontz/#/speed", KEY_VALUE, "9600", KEY_META, "check/range", "1200, 2400, 9600, 19200, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/cfontz/#/usb", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Is this driver using USB\?", KEY_META, "type", "boolean", KEY_END), - keyNew ("/cfontzpacket/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a CFontzPacket driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "CFontzPacketDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/cfontzpacket/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/cfontzpacket/#/contrast", KEY_VALUE, "350", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "350", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/cfontzpacket/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "type", "string", KEY_END), - keyNew ("/cfontzpacket/#/file", KEY_VALUE, "CFontzPacket", KEY_META, "default", "CFontzPacket", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/cfontzpacket/#/model", KEY_VALUE, "633", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "533", KEY_META, "check/enum/#1", "631", KEY_META, "check/enum/#2", "633", KEY_META, "check/enum/#3", "635", KEY_META, "check/type", "enum", KEY_META, "default", "633", KEY_META, "description", "Select the LCD model", KEY_META, "gen/enum/type", "CFontzPacketModel", KEY_META, "type", "enum", KEY_END), - keyNew ("/cfontzpacket/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness. This value is used when the display is normally switched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/cfontzpacket/#/oldfirmware", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Very old 633 firmware versions do not support partial screen updates using \'Send Data to LCD\' command (31). For those devices it may be necessary to enable this flag", KEY_META, "type", "boolean", KEY_END), - keyNew ("/cfontzpacket/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/cfontzpacket/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Override the LCD size known for the selected model. Usually setting this value should not be necessary.", KEY_META, "type", "string", KEY_END), - keyNew ("/cfontzpacket/#/speed", KEY_VALUE, "115200", KEY_META, "check/range", "19200, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "115200", KEY_META, "description", "Override the default communication speed known for the selected model. Default value depends on model.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/cfontzpacket/#/usb", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Enable the USB flag if the device is connected to an USB port. For serial ports leave it disabled.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/curses/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a curses driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "CursesDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/curses/#/background", KEY_VALUE, "cyan", KEY_META, "check/enum", "#7", KEY_META, "check/enum/#0", "red", KEY_META, "check/enum/#1", "black", KEY_META, "check/enum/#2", "green", KEY_META, "check/enum/#3", "yellow", KEY_META, "check/enum/#4", "blue", KEY_META, "check/enum/#5", "magenta", KEY_META, "check/enum/#6", "cyan", KEY_META, "check/enum/#7", "white", KEY_META, "check/type", "enum", KEY_META, "default", "cyan", KEY_META, "description", "background color when \"backlight\" is off", KEY_META, "gen/enum/type", "CursesColor", KEY_META, "type", "enum", KEY_END), - keyNew ("/curses/#/backlight", KEY_VALUE, "red", KEY_META, "check/enum", "#7", KEY_META, "check/enum/#0", "red", KEY_META, "check/enum/#1", "black", KEY_META, "check/enum/#2", "green", KEY_META, "check/enum/#3", "yellow", KEY_META, "check/enum/#4", "blue", KEY_META, "check/enum/#5", "magenta", KEY_META, "check/enum/#6", "cyan", KEY_META, "check/enum/#7", "white", KEY_META, "check/type", "enum", KEY_META, "default", "red", KEY_META, "description", "background color when \"backlight\" is on", KEY_META, "gen/enum/type", "CursesColor", KEY_META, "type", "enum", KEY_END), - keyNew ("/curses/#/drawborder", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "draw Border", KEY_META, "type", "boolean", KEY_END), - keyNew ("/curses/#/file", KEY_VALUE, "curses", KEY_META, "default", "curses", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/curses/#/foreground", KEY_VALUE, "blue", KEY_META, "check/enum", "#7", KEY_META, "check/enum/#0", "red", KEY_META, "check/enum/#1", "black", KEY_META, "check/enum/#2", "green", KEY_META, "check/enum/#3", "yellow", KEY_META, "check/enum/#4", "blue", KEY_META, "check/enum/#5", "magenta", KEY_META, "check/enum/#6", "cyan", KEY_META, "check/enum/#7", "white", KEY_META, "check/type", "enum", KEY_META, "default", "blue", KEY_META, "description", "Color settings", KEY_META, "gen/enum/type", "CursesColor", KEY_META, "type", "enum", KEY_END), - keyNew ("/curses/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), - keyNew ("/curses/#/topleftx", KEY_VALUE, "7", KEY_META, "check/type", "unsigned_short", KEY_META, "check/validation", "([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "7", KEY_META, "description", "What position (X,Y) to start the left top corner at...", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/curses/#/toplefty", KEY_VALUE, "7", KEY_META, "check/type", "unsigned_short", KEY_META, "check/validation", "([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "7", KEY_META, "description", "What position (X,Y) to start the left top corner at...", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/curses/#/useacs", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "use ASC symbols for icons & bars", KEY_META, "type", "boolean", KEY_END), - keyNew ("/cwlnx/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a CwLnx driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "CwLnxDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/cwlnx/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/cwlnx/#/file", KEY_VALUE, "CwLnx", KEY_META, "default", "CwLnx", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/cwlnx/#/keymap_a", KEY_VALUE, "Up", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("/cwlnx/#/keymap_b", KEY_VALUE, "Down", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("/cwlnx/#/keymap_c", KEY_VALUE, "Left", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("/cwlnx/#/keymap_d", KEY_VALUE, "Right", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("/cwlnx/#/keymap_e", KEY_VALUE, "Enter", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("/cwlnx/#/keymap_f", KEY_VALUE, "Escape", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("/cwlnx/#/keypad", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If you have a keypad connected. Keypad layout is currently not configureable from the config file.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/cwlnx/#/keypad_test_mode", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "permits one to test keypad assignment", KEY_META, "type", "boolean", KEY_END), - keyNew ("/cwlnx/#/model", KEY_VALUE, "12232", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "12232", KEY_META, "check/enum/#1", "12832", KEY_META, "check/enum/#2", "1602", KEY_META, "check/type", "enum", KEY_META, "default", "12232", KEY_META, "description", "Select the LCD model", KEY_META, "gen/enum/type", "CwLnxModel", KEY_META, "type", "enum", KEY_END), - keyNew ("/cwlnx/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Select the LCD size. Default depends on model: \n12232: 20x4 \n12832: 21x4 \n1602: 16x2", KEY_META, "type", "string", KEY_END), - keyNew ("/cwlnx/#/speed", KEY_VALUE, "19200", KEY_META, "check/range", "9600, 19200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/ea65/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a ea65 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Ea65DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/ea65/#/brightness", KEY_VALUE, "500", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "As the VFD is self luminescent we don\'t have a backlight\nBut we can use the backlight functions to control the front LEDs\nBrightness 0 to 299 -> LEDs off\nBrightness 300 to 699 -> LEDs half bright\nBrightness 700 to 1000 -> LEDs full bright", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/ea65/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/ea65/#/file", KEY_VALUE, "ea65", KEY_META, "default", "ea65", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/ea65/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "OffBrightness is the the value used for the \'backlight off\' state", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/ea65/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/eyeboxone/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a EyeboxOne driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "EyeboxOneDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/eyeboxone/#/backlight", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Switch on the backlight\?", KEY_META, "type", "boolean", KEY_END), - keyNew ("/eyeboxone/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/eyeboxone/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/eyeboxone/#/cursor", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Switch on the cursor\?", KEY_META, "type", "boolean", KEY_END), - keyNew ("/eyeboxone/#/device", KEY_VALUE, "/dev/ttyS1", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/eyeboxone/#/downkey", KEY_VALUE, "B", KEY_META, "check/type", "string", KEY_META, "default", "B", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), - keyNew ("/eyeboxone/#/escapekey", KEY_VALUE, "P", KEY_META, "check/type", "string", KEY_META, "default", "P", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), - keyNew ("/eyeboxone/#/file", KEY_VALUE, "EyeboxOne", KEY_META, "default", "EyeboxOne", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/eyeboxone/#/keypad_test_mode", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "You can find out which key of your display sends which\ncharacter by setting keypad_test_mode to yes and running\nLCDd. LCDd will output all characters it receives.\nAfterwards you can modify the settings above and set\nkeypad_set_mode to no again.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/eyeboxone/#/leftkey", KEY_VALUE, "D", KEY_META, "check/type", "string", KEY_META, "default", "D", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), - keyNew ("/eyeboxone/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/eyeboxone/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/eyeboxone/#/rightkey", KEY_VALUE, "C", KEY_META, "check/type", "string", KEY_META, "default", "C", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), - keyNew ("/eyeboxone/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Set the display size", KEY_META, "type", "string", KEY_END), - keyNew ("/eyeboxone/#/speed", KEY_VALUE, "19200", KEY_META, "check/range", "1200, 2400, 9600, 19200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/eyeboxone/#/upkey", KEY_VALUE, "A", KEY_META, "check/type", "string", KEY_META, "default", "A", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), - keyNew ("/futaba/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a futaba driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "FutabaDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/futaba/#/file", KEY_VALUE, "futaba", KEY_META, "default", "futaba", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/g15/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a g15 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "G15DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/g15/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/g15/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/g15/#/file", KEY_VALUE, "g15", KEY_META, "default", "g15", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/g15/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/g15/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/g15/#/size", KEY_VALUE, "20x5", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x5", KEY_META, "description", "Display size (currently unused)", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a glcd driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "GlcdDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/glcd/#/bidirectional", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Use LPT port in bi-directional mode. This should work on most LPT port and is required for proper timing!", KEY_META, "type", "boolean", KEY_END), - keyNew ("/glcd/#/brightness", KEY_VALUE, "800", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "800", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/glcd/#/cellsize", KEY_VALUE, "6x8", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "6x8", KEY_META, "description", "Width and height of a character cell in pixels. This value is only used the driver has been compiled with FreeType and it is enabled. Otherwise the default 6x8 cell is used.", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#/connectiontype", KEY_VALUE, "t6963", KEY_META, "check/enum", "#6", KEY_META, "check/enum/#0", "t6963", KEY_META, "check/enum/#1", "png", KEY_META, "check/enum/#2", "serdisplib", KEY_META, "check/enum/#3", "glcd2usb", KEY_META, "check/enum/#4", "x11", KEY_META, "check/enum/#5", "picolcdgfx", KEY_META, "check/enum/#6", "xyz", KEY_META, "check/type", "enum", KEY_META, "default", "t6963", KEY_META, "description", "Select what type of connection. See documentation for types.", KEY_META, "gen/enum/type", "GlcdConnectionType", KEY_META, "type", "enum", KEY_END), - keyNew ("/glcd/#/contrast", KEY_VALUE, "600", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "600", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/glcd/#/delaybus", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Insert additional delays into reads / writes.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/glcd/#/file", KEY_VALUE, "glcd", KEY_META, "default", "glcd", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#/fonthasicons", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Some fonts miss the Unicode characters used to represent icons. In this case the built-in 5x8 font can used if this option is turned off.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/glcd/#/keymap_a", KEY_VALUE, "Up", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#/keymap_b", KEY_VALUE, "Down", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#/keymap_c", KEY_VALUE, "Left", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#/keymap_d", KEY_VALUE, "Right", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#/keymap_e", KEY_VALUE, "Enter", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#/keymap_f", KEY_VALUE, "Escape", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#/keyrepeatdelay", KEY_VALUE, "500", KEY_META, "check/range", "0-3000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "Time (ms) from first key report to first repeat. Set to 0 to disable repeated key reports.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/glcd/#/keyrepeatinterval", KEY_VALUE, "500", KEY_META, "check/range", "0-3000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "Time (ms) between repeated key reports. Ignored if KeyRepeatDelay is disabled (set to zero).", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/glcd/#/normal_font", KEY_VALUE, "/usr/local/lib/X11/fonts/TTF/andalemo.ttf", KEY_META, "check/type", "string", KEY_META, "default", "/usr/local/lib/X11/fonts/TTF/andalemo.ttf", KEY_META, "description", "Path to font file to use for FreeType rendering. This font must be monospace and should contain some special Unicode characters like arrows (Andale Mono is recommended and can be fetched at http://corefonts.sf.net).", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#/offbrightness", KEY_VALUE, "100", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "100", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/glcd/#/picolcdgfx_inverted", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Inverts the pixels.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/glcd/#/picolcdgfx_keytimeout", KEY_VALUE, "125", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9][0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Number must be any positive integer >0", KEY_META, "default", "125", KEY_META, "description", "Time in ms for usb_read to wait on a key press.", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#/port", KEY_VALUE, "0x378", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([2-3][0-9A-F]{2}|400)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. legal: 0x200 - 0x400", KEY_META, "default", "0x378", KEY_META, "description", "Parallel port to use", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/glcd/#/serdisp_device", KEY_VALUE, "/dev/ppi0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ppi0", KEY_META, "description", "The display device to use, e.g. serraw:/dev/ttyS0, parport:/dev/parport0 or USB:07c0/1501", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#/serdisp_name", KEY_VALUE, "t6963", KEY_META, "check/type", "string", KEY_META, "default", "t6963", KEY_META, "description", "Name of the underlying serdisplib driver, e.g. ctinclud. See", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#/serdisp_options", KEY_VALUE, "INVERT=1", KEY_META, "check/type", "string", KEY_META, "default", "INVERT=1", KEY_META, "description", "Options string to pass to serdisplib during initialization. Use\nthis to set any display related options (e.g. wiring). The display size is\nalways set based on the Size configured above! By default, no options are\nset.\nImportant: The value must be quoted as it contains equal signs!", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#/size", KEY_VALUE, "128x64", KEY_META, "check/type", "string", KEY_META, "check/validation", "(640|[1-9]|[1-9][0-9]|[1-5][0-9][0-9]|6[0-3][0-9])x(480|[1-9]|[1-9][0-9]|[1-3][0-9][0-9]|4[0-7][0-9])", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. legal: 1x1 - 640x480", KEY_META, "default", "128x64", KEY_META, "description", "Width and height of the display in pixel. The supported sizes may depend on the ConnectionType", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#/useft2", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If LCDproc has been compiled with FreeType 2 support this option can be used to turn if off intentionally.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/glcd/#/x11_backlightcolor", KEY_VALUE, "0x80FF80", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{6}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Colors are in RRGGBB format prefixed with \"0x\"", KEY_META, "default", "0x80FF80", KEY_META, "description", "The color of the backlight as full brightness.", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#/x11_border", KEY_VALUE, "20", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "^([1-9]\\d*|0)$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "20", KEY_META, "description", "Adds a border (empty space) around the LCD portion of X11 window.", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("/glcd/#/x11_inverted", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Inverts the pixels.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/glcd/#/x11_pixelcolor", KEY_VALUE, "0x000000", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{6}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Colors are in RRGGBB format prefixed with \"0x\"", KEY_META, "default", "0x000000", KEY_META, "description", "The color of each dot at full contrast.", KEY_META, "type", "string", KEY_END), - keyNew ("/glcd/#/x11_pixelsize", KEY_VALUE, "3+1", KEY_META, "check/type", "string", KEY_META, "check/validation", "\\d+\\+\\d+", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "[number]+[number] has to be provided, eg: 3+1 or 5+2", KEY_META, "default", "3+1", KEY_META, "description", "Each LCD dot is drawn in the X window as a filled rectangle of this size\n plus a gap between each filled rectangle. A PixelSize of 3+1\n would draw a 3x3 filled rectangle with a gap of 1 pixel to the right and\n bottom, effectively using a 4x4 area of the window. Default is 3+1.", KEY_META, "type", "string", KEY_END), - keyNew ("/glcdlib/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a glcdlib driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "GlcdlibDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/glcdlib/#/CharEncoding", KEY_VALUE, "iso8859-2", KEY_META, "check/type", "string", KEY_META, "default", "iso8859-2", KEY_META, "description", "character encoding to use", KEY_META, "type", "string", KEY_END), - keyNew ("/glcdlib/#/backlight", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), - keyNew ("/glcdlib/#/brightness", KEY_VALUE, "50", KEY_META, "check/range", "0-100", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "50", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/glcdlib/#/contrast", KEY_VALUE, "50", KEY_META, "check/range", "0-100", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "50", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/glcdlib/#/driver", KEY_VALUE, "image", KEY_META, "check/type", "string", KEY_META, "default", "image", KEY_META, "description", "\nSpecify which graphical display supported by graphlcd-base to use.\n Legal values for GRAPHLCD-DRIVER are\n specified in graphlcd\'s configuration file /etc/graphlcd.conf.\n For graphlcd 0.13 they comprise avrctl, framebuffer, gu140x32f, gu256x64-372, \n gu256x64C-3xx0, hd61830, image, ks0108, noritake800, sed1330, sed1520, serdisp, simlcd, t6963c\n", KEY_META, "type", "string", KEY_END), - keyNew ("/glcdlib/#/file", KEY_VALUE, "glcdlib", KEY_META, "default", "glcdlib", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/glcdlib/#/fontfile", KEY_VALUE, "/usr/share/fonts/corefonts/courbd.ttf", KEY_META, "check/type", "string", KEY_META, "default", "/usr/share/fonts/corefonts/courbd.ttf", KEY_META, "description", "path to font file to use", KEY_META, "type", "string", KEY_END), - keyNew ("/glcdlib/#/invert", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), - keyNew ("/glcdlib/#/minfontfacesize", KEY_VALUE, "7x12", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "7x12", KEY_META, "description", "path to font file to use", KEY_META, "type", "string", KEY_END), - keyNew ("/glcdlib/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/glcdlib/#/pixelshiftx", KEY_VALUE, "0", KEY_META, "check/type", "short", KEY_META, "check/validation", "([0-9]+)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "0", KEY_META, "type", "short", KEY_END), - keyNew ("/glcdlib/#/pixelshifty", KEY_VALUE, "2", KEY_META, "check/type", "short", KEY_META, "check/validation", "([0-9]+)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "2", KEY_META, "type", "short", KEY_END), - keyNew ("/glcdlib/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/glcdlib/#/showbigborder", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), - keyNew ("/glcdlib/#/showdebugframe", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), - keyNew ("/glcdlib/#/showthinborder", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "type", "boolean", KEY_END), - keyNew ("/glcdlib/#/textresolution", KEY_VALUE, "16x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x4", KEY_META, "description", "Text resolution in fixed width characters.\n(if it won\'t fit according to available physical pixel resolution\nand the minimum available font face size in pixels, then\n\'DebugBorder\' will automatically be turned on)", KEY_META, "type", "string", KEY_END), - keyNew ("/glcdlib/#/upsidedown", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), - keyNew ("/glcdlib/#/useft2", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "no=use graphlcd bitmap fonts (they have only one size / font file)\nyes=use fonts supported by FreeType2 (needs Freetype2 support in\nlibglcdprocdriver and its dependants)", KEY_META, "type", "boolean", KEY_END), - keyNew ("/glk/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a glk driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "GlkDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/glk/#/contrast", KEY_VALUE, "500", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/glk/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "select the serial device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/glk/#/file", KEY_VALUE, "glk", KEY_META, "default", "glk", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/glk/#/speed", KEY_VALUE, "19200", KEY_META, "check/range", "9600, 19200, 38400, 57600, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "set the serial port speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/hd44780/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a hd44780 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Hd44780DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/hd44780/#/backlight", KEY_VALUE, "none", KEY_META, "check/enum", "#8", KEY_META, "check/enum/#0", "none", KEY_META, "check/enum/#1", "external", KEY_META, "check/enum/#2", "internal", KEY_META, "check/enum/#3", "internalCmds", KEY_META, "check/type", "enum", KEY_META, "default", "none", KEY_META, "description", "Specify if you have a switchable backlight and if yes, can select method for turning it on/off:\n#\n- none - no switchable backlight is available.\n- external - use external pin or any other method defined with ConnectionType backlight\n handling.\n- internal - means that backlight is handled using internal commands according\n to selected display model (with Model option). Depending on model,\n Brightness and OffBrightness options can be taken into account.\n- internalCmds - means that commands for turning on and off backlight are given\n with extra options BacklightOnCmd and BacklightOffCmd, which would be treated\n as catch up (last resort) for other types of displays which have similar features.\n#\nYou can provide multiple occurences of this option to use more than one method.\nDefault is model specific: Winstar OLED and PT6314 VFD enables internal backlight mode,\nfor others it is set to none.", KEY_META, "gen/enum/type", "HD44780Backlight", KEY_META, "type", "enum", KEY_END), - keyNew ("/hd44780/#/backlightcmdoff", KEY_VALUE, "0x1234", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{4}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "4 bytes can be encoded, as integer number in big-endian order (0x0000-0xFFFF)", KEY_META, "default", "0x1234", KEY_META, "description", "Commands for disabling internal backlight for use with Backlight=internalCmds.\nUp to 4 bytes can be encoded, as integer number in big-endian order.", KEY_META, "type", "string", KEY_END), - keyNew ("/hd44780/#/backlightcmdon", KEY_VALUE, "0x1223", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{4}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "4 bytes can be encoded, as integer number in big-endian order (0x0000-0xFFFF)", KEY_META, "default", "0x1223", KEY_META, "description", "Commands for enabling internal backlight for use with Backlight=internalCmds.\nUp to 4 bytes can be encoded, as integer number in big-endian order.\n#\nNOTE: this is advanced option, if command contains bits other than only brighness handling,\nthey must be set accordingly to not disrupt display state. If for example \'FUNCTION SET\' command\nis used for this purpose, bits of interface length (4-bit / 8-bit) must be set according to\nselected ConnectionType.", KEY_META, "type", "string", KEY_END), - keyNew ("/hd44780/#/brightness", KEY_VALUE, "800", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "800", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/hd44780/#/charmap", KEY_VALUE, "hd44780_default", KEY_META, "check/enum", "#7", KEY_META, "check/enum/#0", "hd44780_default", KEY_META, "check/enum/#1", "hd44780_euro", KEY_META, "check/enum/#2", "ea_ks0073", KEY_META, "check/enum/#3", "sed1278f_0b", KEY_META, "check/enum/#4", "hd44780_koi8_r", KEY_META, "check/enum/#5", "hd44780_cp1251", KEY_META, "check/enum/#6", "hd44780_8859_5", KEY_META, "check/enum/#7", "upd16314", KEY_META, "check/type", "enum", KEY_META, "default", "hd44780_default", KEY_META, "description", "Character map to to map ISO-8859-1 to the LCD\'s character set. (hd44780_koi8_r, hd44780_cp1251, hd44780_8859_5, upd16314 and weh001602a_1\nare possible if compiled with additional charmaps)", KEY_META, "gen/enum/type", "HD44780Charmap", KEY_META, "type", "enum", KEY_END), - keyNew ("/hd44780/#/connectiontype", KEY_VALUE, "4bit", KEY_META, "check/enum", "#_27", KEY_META, "check/enum/#0", "4bit", KEY_META, "check/enum/#1", "8bit", KEY_META, "check/enum/#2", "winamp", KEY_META, "check/enum/#3", "lcm162", KEY_META, "check/enum/#4", "serialLpt", KEY_META, "check/enum/#5", "picanlcd", KEY_META, "check/enum/#6", "lcdserializer", KEY_META, "check/enum/#7", "los-panel", KEY_META, "check/enum/#8", "vdr-lcd", KEY_META, "check/enum/#9", "vdr-wakeup", KEY_META, "check/enum/#_10", "ezio", KEY_META, "check/enum/#_11", "pertelian", KEY_META, "check/enum/#_12", "lis2", KEY_META, "check/enum/#_13", "mplay", KEY_META, "check/enum/#_14", "usblcd", KEY_META, "check/enum/#_15", "bwctusb", KEY_META, "check/enum/#_16", "lcd2usb", KEY_META, "check/enum/#_17", "usbtiny", KEY_META, "check/enum/#_18", "uss720", KEY_META, "check/enum/#_19", "USB-4-all", KEY_META, "check/enum/#_20", "ftdi", KEY_META, "check/enum/#_21", "i2c", KEY_META, "check/enum/#_22", "piplate", KEY_META, "check/enum/#_23", "spi", KEY_META, "check/enum/#_24", "pifacecad", KEY_META, "check/enum/#_25", "ethlcd", KEY_META, "check/enum/#_26", "raspberrypi", KEY_META, "check/enum/#_27", "gpio", KEY_META, "check/type", "enum", KEY_META, "default", "4bit", KEY_META, "description", "Select what type of connection. See documentation for available types:\n https://github.com/lcdproc/lcdproc/blob/master/docs/lcdproc-user/drivers/hd44780.docbook", KEY_META, "gen/enum/type", "HD44780ConnectionType", KEY_META, "type", "enum", KEY_END), - keyNew ("/hd44780/#/contrast", KEY_VALUE, "800", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "800", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/hd44780/#/delaybus", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "You can reduce the inserted delays by setting this to false.\nOn fast PCs it is possible your LCD does not respond correctly.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/hd44780/#/delaymult", KEY_VALUE, "1", KEY_META, "check/range", "1, 2, 4, 8, 16", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1", KEY_META, "description", "If your display is slow and cannot keep up with the flow of data from\nLCDd, garbage can appear on the LCDd. Set this delay factor to 2 or 4\nto increase the delays.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/hd44780/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Device of the serial, I2C, or SPI interface", KEY_META, "type", "string", KEY_END), - keyNew ("/hd44780/#/extendedmode", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If you have an HD66712, a KS0073 or another controller with \'extended mode\',\nset this flag to get into 4-line mode. On displays with just two lines, do\nnot set this flag.\nAs an additional restriction, controllers with and without extended mode\nAND 4 lines cannot be mixed for those connection types that support more\nthan one display!\nNOTE: This option is deprecated in favour of choosing Model=extended option.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/hd44780/#/file", KEY_VALUE, "hd44780", KEY_META, "default", "hd44780", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/hd44780/#/fontbank", KEY_VALUE, "0", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "0", KEY_META, "check/enum/#1", "1", KEY_META, "check/enum/#2", "2", KEY_META, "check/enum/#3", "3", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Font bank to be used for some displays such as the WINSTAR WEH001602A\n0: English/Japanese (default)\n1: Western Europe I\n2: English/Rusian\n3: Western Europe II", KEY_META, "gen/enum/type", "HD44780Fontbank", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/hd44780/#/keepalivedisplay", KEY_VALUE, "0", KEY_META, "check/range", "0-10", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Some displays (e.g. vdr-wakeup) need a message from the driver to that it\nis still alive. When set to a value bigger then null the character in the\nupper left corner is updated every seconds.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/hd44780/#/keymatrix_4_1", KEY_VALUE, "Enter", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "If you have a keypad you can assign keystrings to the keys. See\ndocumentation for used terms and how to wire it. For example to give directly connected\nkey 4 the string \'Enter\', use:\n KeyDirect_4=Enter For matrix keys use the\nX and Y coordinates of the key: \n KeyMatrix_1_3=Enter", KEY_META, "type", "string", KEY_END), - keyNew ("/hd44780/#/keymatrix_4_2", KEY_VALUE, "Up", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "If you have a keypad you can assign keystrings to the keys. See\ndocumentation for used terms and how to wire it. For example to give directly connected\nkey 4 the string \'Enter\', use:\n KeyDirect_4=Enter For matrix keys use the\nX and Y coordinates of the key: \n KeyMatrix_1_3=Enter", KEY_META, "type", "string", KEY_END), - keyNew ("/hd44780/#/keymatrix_4_3", KEY_VALUE, "Down", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "If you have a keypad you can assign keystrings to the keys. See\ndocumentation for used terms and how to wire it. For example to give directly connected\nkey 4 the string \'Enter\', use:\n KeyDirect_4=Enter For matrix keys use the\nX and Y coordinates of the key: \n KeyMatrix_1_3=Enter", KEY_META, "type", "string", KEY_END), - keyNew ("/hd44780/#/keymatrix_4_4", KEY_VALUE, "Escape", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "If you have a keypad you can assign keystrings to the keys. See\ndocumentation for used terms and how to wire it. For example to give directly connected\nkey 4 the string \'Enter\', use:\n KeyDirect_4=Enter For matrix keys use the\nX and Y coordinates of the key: \n KeyMatrix_1_3=Enter", KEY_META, "type", "string", KEY_END), - keyNew ("/hd44780/#/keypad", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If you have a keypad connected.\nYou may also need to configure the keypad layout further on in this file.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/hd44780/#/lastline", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Specifies if the last line is pixel addressable (yes) or it controls an\nunderline effect (no).", KEY_META, "type", "boolean", KEY_END), - keyNew ("/hd44780/#/lineaddress", KEY_VALUE, "0x20", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a line Address. eg. 0x20, 0x10", KEY_META, "default", "0x20", KEY_META, "description", "In extended mode, on some controllers like the ST7036 (in 3 line mode) the next line in DDRAM won`t start 0x20 higher.", KEY_META, "type", "string", KEY_END), - keyNew ("/hd44780/#/model", KEY_VALUE, "standard", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "standard", KEY_META, "check/enum/#1", "extended", KEY_META, "check/enum/#2", "winstar_oled", KEY_META, "check/enum/#3", "pt6314_vfd", KEY_META, "check/type", "enum", KEY_META, "default", "standard", KEY_META, "description", "Select model if have non-standard one which require extra initialization or handling or\n just want extra features it offers.\n Available: standard (default), extended, winstar_oled, pt6314_vfd\n - standard is default, use for LCDs not mentioned below.\n - extended, hd66712, ks0073: allows use 4-line \'extended\' mode,\n same as deprecated now option ExtendedMode=yes\n - winstar_oled, weh00xxyya: changes initialization for WINSTAR\'s WEH00xxyyA displays\n and allows handling brightness\n - pt6314_vfd: allows handling brightness on PTC\'s PT6314 VFDs\n This option should be independent of connection type.", KEY_META, "type", "enum", KEY_END), - keyNew ("/hd44780/#/offbrightness", KEY_VALUE, "300", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "300", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/hd44780/#/outputport", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If you have the additional output port (\"bargraph\") and you want to be able to control it with the lcdproc OUTPUT command", KEY_META, "type", "boolean", KEY_END), - keyNew ("/hd44780/#/port", KEY_VALUE, "0x378", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{3}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Port must begin with \"0x\", followed by 3 Hexadezimal values, eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "I/O address of the LPT port. Usual values are: 0x278, 0x378 and 0x3BC. For I2C connections this sets the slave address (usually 0x20).", KEY_META, "type", "string", KEY_END), - keyNew ("/hd44780/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/hd44780/#/refreshdisplay", KEY_VALUE, "0", KEY_META, "check/range", "0-20", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "If you experience occasional garbage on your display you can use this\noption as workaround. If set to a value bigger than null it forces a\nfull screen refresh seconds.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/hd44780/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Specifies the size of the LCD. In case of multiple combined displays, this should be the total size.", KEY_META, "type", "string", KEY_END), - keyNew ("/hd44780/#/speed", KEY_VALUE, "0", KEY_META, "check/type", "unsigned_long", KEY_META, "default", "0", KEY_META, "description", "Bitrate of the serial port (0 for interface default)", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("/hd44780/#/vspan", KEY_META, "check/type", "string", KEY_META, "check/validation", "^([1-9][0-9]*(,[1-9][0-9]*)*)\?$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Declarations must look like this: 2,2 or 2,2,1", KEY_META, "default", "", KEY_META, "description", "For multiple combined displays: how many lines does each display have.\nVspan=2,2 means both displays have 2 lines.", KEY_META, "type", "string", KEY_END), - keyNew ("/icp_a106/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a icp_a106 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Icp_a106DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/icp_a106/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/icp_a106/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/icp_a106/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Device of the serial, I2C, or SPI interface", KEY_META, "type", "string", KEY_END), - keyNew ("/icp_a106/#/file", KEY_VALUE, "icp_a106", KEY_META, "default", "icp_a106", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/icp_a106/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/icp_a106/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/icp_a106/#/size", KEY_VALUE, "20x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x2", KEY_META, "description", "Display dimensions", KEY_META, "type", "string", KEY_END), - keyNew ("/imon/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a imon driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "ImonDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/imon/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/imon/#/charmap", KEY_VALUE, "none", KEY_META, "check/enum", "#5", KEY_META, "check/enum/#0", "hd44780_euro", KEY_META, "check/enum/#1", "upd16314", KEY_META, "check/enum/#2", "hd44780_koi8_r", KEY_META, "check/enum/#3", "hd44780_cp1251", KEY_META, "check/enum/#4", "hd44780_8859_5", KEY_META, "check/enum/#5", "none", KEY_META, "check/type", "enum", KEY_META, "default", "none", KEY_META, "description", "Character map to to map ISO-8859-1 to the displays character set. (upd16314, hd44780_koi8_r,\nhd44780_cp1251, hd44780_8859_5 are possible if compiled with additional\ncharmaps)", KEY_META, "gen/enum/type", "IMonCharmap", KEY_META, "type", "enum", KEY_END), - keyNew ("/imon/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/imon/#/device", KEY_VALUE, "/dev/lcd0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd0", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/imon/#/file", KEY_VALUE, "imon", KEY_META, "default", "imon", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/imon/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/imon/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/imon/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Display dimensions", KEY_META, "type", "string", KEY_END), - keyNew ("/imonlcd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a imonlcd driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "ImonlcdDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/imonlcd/#/backlight", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Set the backlight state", KEY_META, "type", "boolean", KEY_END), - keyNew ("/imonlcd/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/imonlcd/#/contrast", KEY_VALUE, "200", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "200", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/imonlcd/#/device", KEY_VALUE, "/dev/lcd0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd0", KEY_META, "description", "select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/imonlcd/#/discmode", KEY_VALUE, "0", KEY_META, "check/enum", "#1", KEY_META, "check/enum/#0", "0", KEY_META, "check/enum/#1", "1", KEY_META, "check/type", "enum", KEY_META, "default", "0", KEY_META, "description", "Set the disc mode\n0 => spin the \'slim\' disc - two disc segments,\n1 => their complement spinning;", KEY_META, "gen/enum/type", "IMonLCDDiscMode", KEY_META, "type", "enum", KEY_END), - keyNew ("/imonlcd/#/file", KEY_VALUE, "imonlcd", KEY_META, "default", "imonlcd", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/imonlcd/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/imonlcd/#/onexit", KEY_VALUE, "1", KEY_META, "check/range", "0-2", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1", KEY_META, "description", "Set the exit behavior\n0 means leave shutdown message,\n1 means show the big clock,\n2 means blank device", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/imonlcd/#/protocol", KEY_VALUE, "0", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "15c2:ffdc", KEY_META, "check/enum/#1", "15c2:0038", KEY_META, "check/enum/#2", "0", KEY_META, "check/enum/#3", "1", KEY_META, "check/type", "string", KEY_META, "default", "0", KEY_META, "description", "Specify which iMon protocol should be used\nChoose 0 for 15c2:ffdc device,\nChoose 1 for 15c2:0038 device", KEY_META, "gen/enum/#2/value", "0", KEY_META, "gen/enum/#3/value", "1", KEY_META, "gen/enum/type", "IMonLCDProtocol", KEY_META, "type", "string", KEY_END), - keyNew ("/imonlcd/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/imonlcd/#/size", KEY_VALUE, "96x16", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "96x16", KEY_META, "description", "Specify the size of the display in pixels", KEY_META, "type", "string", KEY_END), - keyNew ("/iowarrior/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a IOWarrior driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "IOWarriorDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/iowarrior/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/iowarrior/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/iowarrior/#/extendedmode", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If you have an HD66712, a KS0073 or another \'almost HD44780-compatible\',\nset this flag to get into extended mode (4-line linear).", KEY_META, "type", "boolean", KEY_END), - keyNew ("/iowarrior/#/file", KEY_VALUE, "IOWarrior", KEY_META, "default", "IOWarrior", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/iowarrior/#/lastline", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Specifies if the last line is pixel addressable (yes) or it controls an\nunderline effect (no).", KEY_META, "type", "boolean", KEY_END), - keyNew ("/iowarrior/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/iowarrior/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/iowarrior/#/serialnumber", KEY_VALUE, "00000674", KEY_META, "check/type", "any", KEY_META, "default", "00000674", KEY_META, "description", "serial number. Must be exactly as listed by usbview (if not given, the 1st IOWarrior found gets used)", KEY_META, "type", "string", KEY_END), - keyNew ("/iowarrior/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Display dimensions", KEY_META, "type", "string", KEY_END), - keyNew ("/irman/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a IrMan driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "IrManDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/irman/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/irman/#/config", KEY_VALUE, "/etc/irman.cfg", KEY_META, "check/type", "string", KEY_META, "default", "/etc/irman.cfg", KEY_META, "description", "Select the configuration file to use", KEY_META, "type", "string", KEY_END), - keyNew ("/irman/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/irman/#/device", KEY_VALUE, "/dev/irman", KEY_META, "check/type", "string", KEY_META, "default", "/dev/irman", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/irman/#/file", KEY_VALUE, "IrMan", KEY_META, "default", "IrMan", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/irman/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/irman/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/irtrans/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a irtrans driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "IrtransDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/irtrans/#/backlight", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Does the device have a backlight\?", KEY_META, "type", "boolean", KEY_END), - keyNew ("/irtrans/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/irtrans/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/irtrans/#/file", KEY_VALUE, "irtrans", KEY_META, "default", "irtrans", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/irtrans/#/hostname", KEY_VALUE, "localhost", KEY_META, "check/type", "string", KEY_META, "default", "localhost", KEY_META, "description", "IRTrans device to connect to", KEY_META, "type", "string", KEY_END), - keyNew ("/irtrans/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/irtrans/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/irtrans/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Specify the size of the display in pixels", KEY_META, "type", "string", KEY_END), - keyNew ("/joy/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a joy driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "JoyDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/joy/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/joy/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/joy/#/device", KEY_VALUE, "/dev/js0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/js0", KEY_META, "description", "Select the input device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/joy/#/file", KEY_VALUE, "joy", KEY_META, "default", "joy", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/joy/#/map_axis1neg", KEY_VALUE, "Left", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "set the axis map", KEY_META, "type", "string", KEY_END), - keyNew ("/joy/#/map_axis1pos", KEY_VALUE, "Right", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "set the axis map", KEY_META, "type", "string", KEY_END), - keyNew ("/joy/#/map_axis2neg", KEY_VALUE, "Up", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "set the axis map", KEY_META, "type", "string", KEY_END), - keyNew ("/joy/#/map_axis2pos", KEY_VALUE, "Down", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "set the axis map", KEY_META, "type", "string", KEY_END), - keyNew ("/joy/#/map_button1", KEY_VALUE, "Enter", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "set the button map", KEY_META, "type", "string", KEY_END), - keyNew ("/joy/#/map_button2", KEY_VALUE, "Escape", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "set the button map", KEY_META, "type", "string", KEY_END), - keyNew ("/joy/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/joy/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/lb216/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lb216 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Lb216DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/lb216/#/brightness", KEY_VALUE, "200", KEY_META, "check/range", "0-255", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "200", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/lb216/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the input device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/lb216/#/file", KEY_VALUE, "lb216", KEY_META, "default", "lb216", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/lb216/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/lb216/#/speed", KEY_VALUE, "9600", KEY_META, "check/range", "2400, 9600", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/lcdm001/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lcdm001 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Lcdm001DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/lcdm001/#/backkey", KEY_VALUE, "UpKey", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "LeftKey", KEY_META, "check/enum/#1", "RightKey", KEY_META, "check/enum/#2", "UpKey", KEY_META, "check/enum/#3", "DownKey", KEY_META, "check/type", "enum", KEY_META, "default", "UpKey", KEY_META, "description", "Normal Context: Back(Go to previous screen) \nMenu Context: Up/Left", KEY_META, "gen/enum/type", "Lcdm001Keys", KEY_META, "type", "enum", KEY_END), - keyNew ("/lcdm001/#/device", KEY_VALUE, "/dev/ttyS1", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/lcdm001/#/file", KEY_VALUE, "lcdm001", KEY_META, "default", "lcdm001", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/lcdm001/#/forwardkey", KEY_VALUE, "DownKey", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "LeftKey", KEY_META, "check/enum/#1", "RightKey", KEY_META, "check/enum/#2", "UpKey", KEY_META, "check/enum/#3", "DownKey", KEY_META, "check/type", "enum", KEY_META, "default", "DownKey", KEY_META, "description", "Normal Context: Forward(Go to next screen) \nMenu Context: Down/Right", KEY_META, "gen/enum/type", "Lcdm001Keys", KEY_META, "type", "enum", KEY_END), - keyNew ("/lcdm001/#/mainmenukey", KEY_VALUE, "RightKey", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "LeftKey", KEY_META, "check/enum/#1", "RightKey", KEY_META, "check/enum/#2", "UpKey", KEY_META, "check/enum/#3", "DownKey", KEY_META, "check/type", "enum", KEY_META, "default", "RightKey", KEY_META, "description", "Normal Context: Open main menu \nMenu Context: Exit/Cancel", KEY_META, "gen/enum/type", "Lcdm001Keys", KEY_META, "type", "enum", KEY_END), - keyNew ("/lcdm001/#/pausekey", KEY_VALUE, "LeftKey", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "LeftKey", KEY_META, "check/enum/#1", "RightKey", KEY_META, "check/enum/#2", "UpKey", KEY_META, "check/enum/#3", "DownKey", KEY_META, "check/type", "enum", KEY_META, "default", "LeftKey", KEY_META, "description", "Normal Context: Pause/Continue \nMenu Context: Enter/select", KEY_META, "gen/enum/type", "Lcdm001Keys", KEY_META, "type", "enum", KEY_END), - keyNew ("/lcterm/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lcterm driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "LctermDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/lcterm/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/lcterm/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/lcterm/#/device", KEY_VALUE, "/dev/ttyS1", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/lcterm/#/file", KEY_VALUE, "lcterm", KEY_META, "default", "lcterm", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/lcterm/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/lcterm/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/lcterm/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Specify the size of the display in pixels", KEY_META, "type", "string", KEY_END), - keyNew ("/linux_input/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a linux_input driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Linux_inputDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/linux_input/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/linux_input/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/linux_input/#/device", KEY_VALUE, "/dev/input/event0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/input/event0", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/linux_input/#/file", KEY_VALUE, "linux_input", KEY_META, "default", "linux_input", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/linux_input/#/key/_", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "specify a non-default key map, eg.: \n/linux_input/key/#01 = 1\n/linux_input/key/#28 = Enter", KEY_META, "type", "string", KEY_END), - keyNew ("/linux_input/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/linux_input/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/lirc/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lirc driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "LircDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/lirc/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/lirc/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/lirc/#/file", KEY_VALUE, "lirc", KEY_META, "default", "lirc", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/lirc/#/lircrc", KEY_VALUE, "~/.lircrc", KEY_META, "check/type", "string", KEY_META, "default", "~/.lircrc", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/lirc/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/lirc/#/prog", KEY_VALUE, "lcdd", KEY_META, "check/type", "string", KEY_META, "default", "lcdd", KEY_META, "description", "Must be the same as in your lircrc", KEY_META, "type", "string", KEY_END), - keyNew ("/lirc/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/lis/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lis driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "LisDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/lis/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness\n0-250 = 25%, 251-500 = 50%, 501-750 = 75%, 751-1000 = 100%", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/lis/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/lis/#/file", KEY_VALUE, "lis", KEY_META, "default", "lis", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/lis/#/lastline", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Specifies if the last line is pixel addressable (yes) or it only controls an\nunderline effect (no)", KEY_META, "type", "boolean", KEY_END), - keyNew ("/lis/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/lis/#/productid", KEY_VALUE, "0x6001", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{4})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size ProductID: 0x0000-0xFFFF is allowed", KEY_META, "default", "0x6001", KEY_META, "description", "USB Product ID. Change only if testing a compatible device.", KEY_META, "type", "string", KEY_END), - keyNew ("/lis/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/lis/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Columns by lines", KEY_META, "type", "string", KEY_END), - keyNew ("/lis/#/vendorid", KEY_VALUE, "0x0403", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{4})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size VendorID: 0x0000-0xFFFF is allowed", KEY_META, "default", "0x0403", KEY_META, "description", "USB Vendor ID. Change only if testing a compatible device.", KEY_META, "type", "string", KEY_END), - keyNew ("/md8800/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a MD8800 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "MD8800DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/md8800/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/md8800/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/md8800/#/device", KEY_VALUE, "/dev/ttyS1", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/md8800/#/file", KEY_VALUE, "MD8800", KEY_META, "default", "MD8800", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/md8800/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/md8800/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/md8800/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), - keyNew ("/mdm166a/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a mdm166a driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Mdm166aDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/mdm166a/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/mdm166a/#/clock", KEY_VALUE, "no", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "no", KEY_META, "check/enum/#1", "small", KEY_META, "check/enum/#2", "big", KEY_META, "check/type", "enum", KEY_META, "default", "no", KEY_META, "description", "Show self-running clock after LCDd shutdown", KEY_META, "type", "enum", KEY_END), - keyNew ("/mdm166a/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/mdm166a/#/dimming", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Dim display, no dimming gives full brightness", KEY_META, "type", "boolean", KEY_END), - keyNew ("/mdm166a/#/file", KEY_VALUE, "mdm166a", KEY_META, "default", "mdm166a", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/mdm166a/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/mdm166a/#/offdimming", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Dim display in case LCDd is inactive", KEY_META, "type", "boolean", KEY_END), - keyNew ("/mdm166a/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/menu/downkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), - keyNew ("/menu/enterkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), - keyNew ("/menu/leftkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), - keyNew ("/menu/menukey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), - keyNew ("/menu/permissivegoto", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If true the server allows transitions between different client`s menus", KEY_META, "type", "boolean", KEY_END), - keyNew ("/menu/rightkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), - keyNew ("/menu/upkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), - keyNew ("/ms6931/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a ms6931 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Ms6931DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/ms6931/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/ms6931/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/ms6931/#/device", KEY_VALUE, "/dev/ttyS1", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/ms6931/#/file", KEY_VALUE, "ms6931", KEY_META, "default", "ms6931", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/ms6931/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/ms6931/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/ms6931/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), - keyNew ("/mtc_s16209x/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a mtc_s16209x driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Mtc_s16209xDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/mtc_s16209x/#/brightness", KEY_VALUE, "200", KEY_META, "check/range", "0-255", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "200", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/mtc_s16209x/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/mtc_s16209x/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/mtc_s16209x/#/file", KEY_VALUE, "mtc_s16209x", KEY_META, "default", "mtc_s16209x", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/mtc_s16209x/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/mtc_s16209x/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/mtxorb/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a MtxOrb driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "MtxOrbDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/mtxorb/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/mtxorb/#/contrast", KEY_VALUE, "480", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "480", KEY_META, "description", "Set the initial contrast\nNOTE: The driver will ignore this if the display\nis a vfd or vkd as they don\'t have this feature", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/mtxorb/#/device", KEY_VALUE, "/dev/ttyS0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS0", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/mtxorb/#/file", KEY_VALUE, "MtxOrb", KEY_META, "default", "MtxOrb", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/mtxorb/#/hasadjustablebacklight", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Some old displays do not have an adjustable backlight but only can\nswitch the backlight on/off. If you experience randomly appearing block\ncharacters, try setting this to false.", KEY_META, "gen/struct/field", "hasAdjustableBacklight", KEY_META, "type", "boolean", KEY_END), - keyNew ("/mtxorb/#/keymap_a", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), - keyNew ("/mtxorb/#/keymap_b", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), - keyNew ("/mtxorb/#/keymap_c", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), - keyNew ("/mtxorb/#/keymap_d", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), - keyNew ("/mtxorb/#/keymap_e", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), - keyNew ("/mtxorb/#/keymap_f", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), - keyNew ("/mtxorb/#/keypad_test_mode", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "permits one to test keypad assignment", KEY_META, "type", "boolean", KEY_END), - keyNew ("/mtxorb/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/mtxorb/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), - keyNew ("/mtxorb/#/speed", KEY_VALUE, "19200", KEY_META, "check/range", "1200, 2400, 9600, 19200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "Set the communication", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/mtxorb/#/type", KEY_VALUE, "lcd", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "lcd", KEY_META, "check/enum/#1", "lkd", KEY_META, "check/enum/#2", "vfd", KEY_META, "check/enum/#3", "vkd", KEY_META, "check/type", "enum", KEY_META, "default", "lcd", KEY_META, "description", "Set the display type", KEY_META, "type", "enum", KEY_END), - keyNew ("/mx5000/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a mx5000 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Mx5000DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/mx5000/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/mx5000/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/mx5000/#/device", KEY_VALUE, "/dev/hiddev0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/hiddev0", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/mx5000/#/file", KEY_VALUE, "mx5000", KEY_META, "default", "mx5000", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/mx5000/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/mx5000/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/mx5000/#/waitafterrefresh", KEY_VALUE, "1000", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "[1-9]\\d*", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "WaitAfterRefresh must be a positive number", KEY_META, "default", "1000", KEY_META, "description", "Time to wait in ms after the refresh screen has been sent", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("/noritakevfd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a NoritakeVFD driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "NoritakeVFDDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/noritakevfd/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/noritakevfd/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/noritakevfd/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "device where the VFD is. Usual values are /dev/ttyS0 and /dev/ttyS1", KEY_META, "type", "string", KEY_END), - keyNew ("/noritakevfd/#/file", KEY_VALUE, "NoritakeVFD", KEY_META, "default", "NoritakeVFD", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/noritakevfd/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/noritakevfd/#/parity", KEY_VALUE, "0", KEY_META, "check/range", "0-2", KEY_META, "check/type", "unsigned_long", KEY_META, "default", "0", KEY_META, "description", "Set serial data parity\nMeaning: 0(=none), 1(=odd), 2(=even)", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("/noritakevfd/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/noritakevfd/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), - keyNew ("/noritakevfd/#/speed", KEY_VALUE, "19200", KEY_META, "check/range", "1200, 2400, 9600, 19200, 115200", KEY_META, "check/type", "unsigned_long", KEY_META, "default", "19200", KEY_META, "description", "set the serial port speed", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("/olimex_mod_lcd1x9/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a Olimex_MOD_LCD1x9 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Olimex_MOD_LCD1x9DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/olimex_mod_lcd1x9/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/olimex_mod_lcd1x9/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/olimex_mod_lcd1x9/#/device", KEY_VALUE, "/dev/i2c-0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/i2c-0", KEY_META, "description", "device file of the i2c controller", KEY_META, "type", "string", KEY_END), - keyNew ("/olimex_mod_lcd1x9/#/file", KEY_VALUE, "Olimex_MOD_LCD1x9", KEY_META, "default", "Olimex_MOD_LCD1x9", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/olimex_mod_lcd1x9/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/olimex_mod_lcd1x9/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/picolcd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a picolcd driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "PicolcdDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/picolcd/#/backlight", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Sets the initial state of the backlight upon start-up.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/picolcd/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness [default: 1000; legal: 0 - 1000]. Works only\nwith the 20x4 device", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/picolcd/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/picolcd/#/file", KEY_VALUE, "picolcd", KEY_META, "default", "picolcd", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/picolcd/#/key0light", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/picolcd/#/key1light", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/picolcd/#/key2light", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/picolcd/#/key3light", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/picolcd/#/key4light", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/picolcd/#/key5light", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/picolcd/#/keylights", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Light the keys\?", KEY_META, "type", "boolean", KEY_END), - keyNew ("/picolcd/#/keyrepeatdelay", KEY_VALUE, "300", KEY_META, "check/range", "0-3000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "300", KEY_META, "description", "Key auto repeat is only available if the picoLCD driver is built with\nlibusb-1.0. Use KeyRepeatDelay and KeyRepeatInterval to configure key auto\nrepeat.\n#\nKey auto repeat delay (time in ms from first key report to first repeat). Use\nzero to disable auto repeat.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/picolcd/#/keyrepeatinterval", KEY_VALUE, "200", KEY_META, "check/range", "0-3000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "200", KEY_META, "description", "Key auto repeat interval (time in ms between repeat reports). Only used if\nKeyRepeatDelay is not zero.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/picolcd/#/keytimeout", KEY_VALUE, "500", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "KeyTimeout is only used if the picoLCD driver is built with libusb-0.1. When\nbuilt with libusb-1.0 key and IR data is input asynchronously so there is no\nneed to wait for the USB data.\nKeyTimeout is the time in ms that LCDd spends waiting for a key press before\ncycling through other duties. Higher values make LCDd use less CPU time and\nmake key presses more detectable. Lower values make LCDd more responsive\nbut a little prone to missing key presses. 500 (.5 second) is the default\nand a balanced value.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/picolcd/#/linklights", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Link the key lights to the backlight\?", KEY_META, "type", "boolean", KEY_END), - keyNew ("/picolcd/#/lircflushthreshold", KEY_VALUE, "1000", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "[1-9]\\d{3,}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "LircFlushThreshold must be a positive number >1000", KEY_META, "default", "1000", KEY_META, "description", "Threshold in microseconds of the gap that triggers flushing the IR data\nto lirc [default: 8000; legal: 1000 - ]\nIf LircTime_us is on values greater than 32.767ms will disable the flush\nIf LircTime_us is off values greater than 1.999938s will disable the flush", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("/picolcd/#/lirchost", KEY_VALUE, "127.0.0.1", KEY_META, "check/type", "string", KEY_META, "default", "127.0.0.1", KEY_META, "description", "Host name or IP address of the LIRC instance that is to receive IR codes If not set, or set to an empty value, IR support is disabled.", KEY_META, "type", "string", KEY_END), - keyNew ("/picolcd/#/lircport", KEY_VALUE, "8765", KEY_META, "default", "8765", KEY_META, "description", "UDP port on which LIRC is listening", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/picolcd/#/lirctime_us", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "UDP data time unit for LIRC\nOn: times sent in microseconds (requires LIRC UDP driver that accepts this).\nOff: times sent in \'jiffies\' (1/16384s) (supported by standard LIRC UDP driver).", KEY_META, "type", "boolean", KEY_END), - keyNew ("/picolcd/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the brightness while the backlight is \'off\'.\nWorks only with the 20x4 device.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/picolcd/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/pyramid/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a pyramid driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "PyramidDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/pyramid/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "device to connect to", KEY_META, "type", "string", KEY_END), - keyNew ("/pyramid/#/file", KEY_VALUE, "pyramid", KEY_META, "default", "pyramid", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/rawserial/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a rawserial driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "RawserialDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/rawserial/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/rawserial/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/rawserial/#/device", KEY_VALUE, "/dev/cuaU0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/cuaU0", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/rawserial/#/file", KEY_VALUE, "rawserial", KEY_META, "default", "rawserial", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/rawserial/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/rawserial/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/rawserial/#/size", KEY_VALUE, "40x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "40x4", KEY_META, "description", "Specifies the size of the LCD. If this driver is loaded as a secondary driver\nit always adopts to the size of the primary driver. If loaded as the only\n(or primary) driver, the size can be set.", KEY_META, "type", "string", KEY_END), - keyNew ("/rawserial/#/speed", KEY_VALUE, "9600", KEY_META, "check/type", "unsigned_long", KEY_META, "default", "9600", KEY_META, "description", "Serial port baudrate [default: 9600]", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("/rawserial/#/updaterate", KEY_VALUE, "1", KEY_META, "check/type", "float", KEY_META, "default", "1", KEY_META, "description", "How often to dump the LCD contents out the port, in Hertz (times per second)\n1 = once per second, 4 is 4 times per second, 0.1 is once every 10 seconds.\n[default: 1; legal: 0.0005 - 10]", KEY_META, "type", "float", KEY_END), - keyNew ("/sed1330/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a sed1330 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Sed1330DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/sed1330/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/sed1330/#/cellsize", KEY_VALUE, "6x10", KEY_META, "check/type", "string", KEY_META, "check/validation", "[6-8]x([1-9][0-6]|[1-9])", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Width x Height of a character cell in pixels [legal: 6x7 - 8x16]", KEY_META, "default", "6x10", KEY_META, "description", "Width x Height of a character cell in pixels", KEY_META, "type", "string", KEY_END), - keyNew ("/sed1330/#/connectiontype", KEY_VALUE, "classic", KEY_META, "check/enum", "#1", KEY_META, "check/enum/#0", "classic", KEY_META, "check/enum/#1", "bitshaker", KEY_META, "check/type", "enum", KEY_META, "default", "classic", KEY_META, "description", "Select what type of connection", KEY_META, "type", "enum", KEY_END), - keyNew ("/sed1330/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/sed1330/#/file", KEY_VALUE, "sed1330", KEY_META, "default", "sed1330", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/sed1330/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/sed1330/#/port", KEY_VALUE, "0x378", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{3})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "Port where the LPT is. Common values are 0x278, 0x378 and 0x3BC", KEY_META, "type", "string", KEY_END), - keyNew ("/sed1330/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/sed1330/#/type", KEY_VALUE, "G321D", KEY_META, "check/enum", "#5", KEY_META, "check/enum/#0", "G321D", KEY_META, "check/enum/#1", "G121C", KEY_META, "check/enum/#2", "G242C", KEY_META, "check/enum/#3", "G191D", KEY_META, "check/enum/#4", "G2446", KEY_META, "check/enum/#5", "SP14Q002", KEY_META, "check/type", "enum", KEY_META, "default", "G321D", KEY_META, "description", "Type of LCD module.\nNote: Currently only tested with G321D & SP14Q002.", KEY_META, "type", "enum", KEY_END), - keyNew ("/sed1520/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a sed1520 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Sed1520DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/sed1520/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/sed1520/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/sed1520/#/delaymult", KEY_VALUE, "1", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1", KEY_META, "description", "On fast machines it may be necessary to slow down transfer to the display.\nIf this value is set to zero, delay is disabled. Any value greater than\nzero slows down each write by one microsecond.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/sed1520/#/file", KEY_VALUE, "sed1520", KEY_META, "default", "sed1520", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/sed1520/#/haveinverter", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "The original wiring used an inverter to drive the control lines. If you do\nnot use an inverter set haveInverter to no.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/sed1520/#/interfacetype", KEY_VALUE, "80", KEY_META, "check/range", "68, 80", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "80", KEY_META, "description", "Select the interface type (wiring) for the display. Supported values are\n68 for 68-style connection (RESET level high) and 80 for 80-style connection\n(RESET level low)", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/sed1520/#/invertedmapping", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "On some displays column data in memory is mapped to segment lines from right\nto left. This is called inverted mapping (not to be confused with\n\'haveInverter\' from above).", KEY_META, "type", "boolean", KEY_END), - keyNew ("/sed1520/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/sed1520/#/port", KEY_VALUE, "0x378", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{3})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "Port where the LPT is. Usual values are 0x278, 0x378 and 0x3BC", KEY_META, "type", "string", KEY_END), - keyNew ("/sed1520/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/sed1520/#/usehardreset", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "At least one display is reported (Everbouquet MG1203D) that requires sending\nthree times 0xFF before a reset during initialization.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/serialpos/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a serialPOS driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SerialPOSDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/serialpos/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/serialpos/#/cellsize", KEY_VALUE, "5x8", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "5x8", KEY_META, "description", "Specifies the cell size of each character cell on the display in characters.", KEY_META, "type", "string", KEY_END), - keyNew ("/serialpos/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/serialpos/#/custom_chars", KEY_VALUE, "0", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "^([1-9]\\d*|0)$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be any positive number including 0", KEY_META, "default", "0", KEY_META, "description", "Specifies the number of custom characters supported by the display.\nCustom characters are only used for the rendering of horizontal bars\nand vertical bars. For displays whose cell character cell widths are\nlower than the number of custom characters supported,\nthen custom characters will be used to render the horizontal bars.\nFor more information look at: https://github.com/lcdproc/lcdproc/blob/master/docs/lcdproc-user/drivers/serialPOS.docbook", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("/serialpos/#/device", KEY_VALUE, "/dev/ttyS0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS0", KEY_META, "description", "Device to use in serial mode", KEY_META, "type", "string", KEY_END), - keyNew ("/serialpos/#/file", KEY_VALUE, "serialPOS", KEY_META, "default", "serialPOS", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/serialpos/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/serialpos/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/serialpos/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Specifies the size of the display in characters.", KEY_META, "type", "string", KEY_END), - keyNew ("/serialpos/#/speed", KEY_VALUE, "9600", KEY_META, "check/range", "1200, 2400, 4800, 9600, 19200, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "communication baud rate with the display", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/serialpos/#/type", KEY_VALUE, "AEDEX", KEY_META, "check/enum", "#5", KEY_META, "check/enum/#0", "AEDEX", KEY_META, "check/enum/#1", "CD5220", KEY_META, "check/enum/#2", "Epson", KEY_META, "check/enum/#3", "Emax", KEY_META, "check/enum/#4", "LogicControls", KEY_META, "check/enum/#5", "Ultimate", KEY_META, "check/type", "enum", KEY_META, "default", "AEDEX", KEY_META, "description", "Set the communication protocol to use with the POS display.", KEY_META, "type", "enum", KEY_END), - keyNew ("/serialvfd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a serialVFD driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SerialVFDDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/serialvfd/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness. (4 steps 0-250, 251-500, 501-750, 751-1000)", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/serialvfd/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/serialvfd/#/custom-characters", KEY_VALUE, "0", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "^([1-9]\\d*|0)$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be any positive number including 0", KEY_META, "default", "0", KEY_META, "description", "Number of Custom-Characters. default is display type dependent", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("/serialvfd/#/device", KEY_VALUE, "/dev/ttyS1", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "Device to use in serial mode. Usual values are /dev/ttyS0 and /dev/ttyS1", KEY_META, "type", "string", KEY_END), - keyNew ("/serialvfd/#/file", KEY_VALUE, "serialVFD", KEY_META, "default", "serialVFD", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/serialvfd/#/iso_8859_1", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "enable ISO 8859 1 compatibility", KEY_META, "type", "boolean", KEY_END), - keyNew ("/serialvfd/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive\n(4 steps 0-250, 251-500, 501-750, 751-1000)", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/serialvfd/#/port", KEY_VALUE, "0x378", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{3})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "Portaddress where the LPT is. Used in parallel mode only. Usual values are 0x278, 0x378 and 0x3BC.", KEY_META, "type", "string", KEY_END), - keyNew ("/serialvfd/#/portwait", KEY_VALUE, "2", KEY_META, "check/range", "0-255", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "2", KEY_META, "description", "Set parallel port timing delay (us). Used in parallel mode only.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/serialvfd/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/serialvfd/#/size", KEY_VALUE, "20x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x2", KEY_META, "description", "Specifies the size of the VFD.", KEY_META, "type", "string", KEY_END), - keyNew ("/serialvfd/#/speed", KEY_VALUE, "9600", KEY_META, "check/range", "1200, 2400, 9600, 19200, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "set the serial port speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/serialvfd/#/type", KEY_VALUE, "0", KEY_META, "check/enum", "#_17", KEY_META, "check/enum/#0", "nec_fipc8367", KEY_META, "check/enum/#1", "kd_rev_2_1", KEY_META, "check/enum/#2", "noritake_vfd", KEY_META, "check/enum/#3", "futaba_vfd", KEY_META, "check/enum/#4", "iee_s03601-95b", KEY_META, "check/enum/#5", "iee_s03601-96-080", KEY_META, "check/enum/#6", "futaba_na202sd08fa", KEY_META, "check/enum/#7", "samsung_20s207da4/20s207da6", KEY_META, "check/enum/#8", "nixdorf_ba6x/vt100", KEY_META, "check/enum/#_10", "1", KEY_META, "check/enum/#_11", "2", KEY_META, "check/enum/#_12", "3", KEY_META, "check/enum/#_13", "4", KEY_META, "check/enum/#_14", "5", KEY_META, "check/enum/#_15", "6", KEY_META, "check/enum/#_16", "7", KEY_META, "check/enum/#_17", "8", KEY_META, "check/enum/#_9", "0", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Specifies the displaytype.[default: 0]\n0 NEC (FIPC8367 based) VFDs.\n1 KD Rev 2.1.\n2 Noritake VFDs (*).\n3 Futaba VFDs\n4 IEE S03601-95B\n5 IEE S03601-96-080 (*)\n6 Futaba NA202SD08FA (allmost IEE compatible)\n7 Samsung 20S207DA4 and 20S207DA6\n8 Nixdorf BA6x / VT100\n(* most should work, not tested yet.)", KEY_META, "gen/enum/type", "SerialVFDType", KEY_META, "gen/enum/value", "8", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/serialvfd/#/use_parallel", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "\'no\' if display connected serial, \'yes\' if connected parallel.\nI.e. serial by default", KEY_META, "type", "boolean", KEY_END), - keyNew ("/server/autorotate", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If set to no, LCDd will start with screen rotation disabled. This has the same effect as if the ToggleRotateKey had been pressed. Rotation will start if the ToggleRotateKey is pressed. Note that this setting does not turn off priority sorting of screens", KEY_META, "type", "boolean", KEY_END), - keyNew ("/server/backlight", KEY_VALUE, "open", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "off", KEY_META, "check/enum/#1", "on", KEY_META, "check/enum/#2", "open", KEY_META, "default", "open", KEY_META, "description", "Set master backlight setting. If set to \'open\' a client may control the backlight for its own screens (only)", KEY_META, "type", "enum", KEY_END), - keyNew ("/server/bind", KEY_VALUE, "127.0.0.1", KEY_META, "check/type", "string", KEY_META, "default", "127.0.0.1", KEY_META, "description", "Tells the driver to bind to the given interface", KEY_META, "opt", "a", KEY_META, "opt/long", "address", KEY_META, "type", "string", KEY_END), - keyNew ("/server/driverpath", KEY_VALUE, "server/drivers/", KEY_META, "check/type", "string", KEY_META, "check/validation", ".*[\\/]$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "The path has to contain a backslack (/) at the end", KEY_META, "default", "server/drivers/", KEY_META, "description", "Select the LCD size", KEY_META, "type", "string", KEY_END), - keyNew ("/server/drivers/#", KEY_META, "check/reference/restrict", "#_52", KEY_META, "check/reference/restrict/#0", "@/bayrad/#", KEY_META, "check/reference/restrict/#1", "@/cfontz/#", KEY_META, "check/reference/restrict/#2", "@/cfontzpacket/#", KEY_META, "check/reference/restrict/#3", "@/curses/#", KEY_META, "check/reference/restrict/#4", "@/cwlnx/#", KEY_META, "check/reference/restrict/#5", "@/ea65/#", KEY_META, "check/reference/restrict/#6", "@/eyeboxone/#", KEY_META, "check/reference/restrict/#7", "@/futaba/#", KEY_META, "check/reference/restrict/#8", "@/g15/#", KEY_META, "check/reference/restrict/#9", "@/glcd/#", KEY_META, "check/reference/restrict/#_10", "@/glcdlib/#", KEY_META, "check/reference/restrict/#_11", "@/glk/#", KEY_META, "check/reference/restrict/#_12", "@/hd44780/#", KEY_META, "check/reference/restrict/#_13", "@/icp_a106/#", KEY_META, "check/reference/restrict/#_14", "@/imon/#", KEY_META, "check/reference/restrict/#_15", "@/imonlcd/#", KEY_META, "check/reference/restrict/#_16", "@/iowarrior/#", KEY_META, "check/reference/restrict/#_17", "@/irman/#", KEY_META, "check/reference/restrict/#_18", "@/joy/#", KEY_META, "check/reference/restrict/#_19", "@/lb216/#", KEY_META, "check/reference/restrict/#_20", "@/lcdm001/#", KEY_META, "check/reference/restrict/#_21", "@/lcterm/#", KEY_META, "check/reference/restrict/#_22", "@/linux_input/#", KEY_META, "check/reference/restrict/#_23", "@/lirc/#", KEY_META, "check/reference/restrict/#_24", "@/lis/#", KEY_META, "check/reference/restrict/#_25", "@/md8800/#", KEY_META, "check/reference/restrict/#_26", "@/mdm166a/#", KEY_META, "check/reference/restrict/#_27", "@/ms6931/#", KEY_META, "check/reference/restrict/#_28", "@/mtc_s16209x/#", KEY_META, "check/reference/restrict/#_29", "@/mtxorb/#", KEY_META, "check/reference/restrict/#_30", "@/mx5000/#", KEY_META, "check/reference/restrict/#_31", "@/noritakevfd/#", KEY_META, "check/reference/restrict/#_32", "@/olimex_mod_lcd1x9/#", KEY_META, "check/reference/restrict/#_33", "@/picolcd/#", KEY_META, "check/reference/restrict/#_34", "@/pyramid/#", KEY_META, "check/reference/restrict/#_35", "@/rawserial/#", KEY_META, "check/reference/restrict/#_36", "@/sdeclcd/#", KEY_META, "check/reference/restrict/#_37", "@/sed1330/#", KEY_META, "check/reference/restrict/#_38", "@/sed1520/#", KEY_META, "check/reference/restrict/#_39", "@/serialpos/#", KEY_META, "check/reference/restrict/#_40", "@/serialvfd/#", KEY_META, "check/reference/restrict/#_41", "@/shuttlevfd/#", KEY_META, "check/reference/restrict/#_42", "@/sli/#", KEY_META, "check/reference/restrict/#_43", "@/stv5730/#", KEY_META, "check/reference/restrict/#_44", "@/svga/#", KEY_META, "check/reference/restrict/#_45", "@/t6963/#", KEY_META, "check/reference/restrict/#_46", "@/text/#", KEY_META, "check/reference/restrict/#_47", "@/tyan/#", KEY_META, "check/reference/restrict/#_48", "@/ula200/#", KEY_META, "check/reference/restrict/#_49", "@/vlsys_m428/#", KEY_META, "check/reference/restrict/#_50", "@/xosd/#", KEY_META, "check/reference/restrict/#_51", "@/yard2lcd/#", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "Tells the server to load a driver.\nThe given value is a reference the configuration of the driver, e.g. @/curses/#0", KEY_META, "type", "string", KEY_END), - keyNew ("/server/foreground", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "The server will stay in the foreground if set to yes", KEY_META, "opt", "f", KEY_META, "opt/arg", "none", KEY_META, "opt/long", "foreground", KEY_META, "type", "boolean", KEY_END), - keyNew ("/server/frameinterval", KEY_VALUE, "125000", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "[1-9]\\d*", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "FrameInterval must be a positive number", KEY_META, "default", "125000", KEY_META, "description", "Sets the interval in microseconds for updating the display [default: 125000 meaning 8Hz]", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("/server/goodbye/#", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "GoodBye message: each entry represents a display line", KEY_META, "type", "string", KEY_END), - keyNew ("/server/heartbeat", KEY_VALUE, "open", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "off", KEY_META, "check/enum/#1", "on", KEY_META, "check/enum/#2", "open", KEY_META, "default", "open", KEY_META, "description", "Set master heartbeat setting. If set to \'open\' a client may control the", KEY_META, "type", "enum", KEY_END), - keyNew ("/server/hello/#", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "Hello message: each entry represents a display line", KEY_META, "type", "string", KEY_END), - keyNew ("/server/nextscreenkey", KEY_VALUE, "Right", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), - keyNew ("/server/port", KEY_VALUE, "13666", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "13666", KEY_META, "description", "Listen on this specified port. [default: 13666]", KEY_META, "opt", "p", KEY_META, "opt/long", "port", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/server/prevscreenkey", KEY_VALUE, "Left", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), - keyNew ("/server/reportlevel", KEY_VALUE, "2", KEY_META, "check/range", "0-5", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "2", KEY_META, "description", "TSets the reporting level, defaults to warnings and errors only.", KEY_META, "opt", "r", KEY_META, "opt/long", "report-level", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/server/reporttosyslog", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Should we report to syslog instead of stderr\?", KEY_META, "opt", "s", KEY_META, "opt/arg", "none", KEY_META, "opt/long", "report-to-syslog", KEY_META, "type", "boolean", KEY_END), - keyNew ("/server/scrolldownkey", KEY_VALUE, "Down", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), - keyNew ("/server/scrollupkey", KEY_VALUE, "Up", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), - keyNew ("/server/serverscreen", KEY_VALUE, "on", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "off", KEY_META, "check/enum/#1", "on", KEY_META, "check/enum/#2", "blank", KEY_META, "default", "on", KEY_META, "description", "If yes, the the serverscreen will be rotated as a usual info screen. If no, it will be a background screen, only visible when no other screens are active. The special value \'blank\' is similar to no, but only a blank screen is displayed.", KEY_META, "opt", "i", KEY_META, "opt/long", "rotate-server-screen", KEY_META, "type", "enum", KEY_END), - keyNew ("/server/titlespeed", KEY_VALUE, "10", KEY_META, "check/range", "0-10", KEY_META, "default", "10", KEY_META, "description", "title scrolling speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/server/togglerotatekey", KEY_VALUE, "Enter", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), - keyNew ("/server/user", KEY_VALUE, "nobody", KEY_META, "check/type", "string", KEY_META, "default", "nobody", KEY_META, "description", "set to run as. LCDd will drop its root privileges and run as this user instead. [default: nobody]", KEY_META, "opt", "u", KEY_META, "opt/long", "user", KEY_META, "type", "string", KEY_END), - keyNew ("/server/waittime", KEY_VALUE, "4", KEY_META, "check/type", "float", KEY_META, "default", "4", KEY_META, "description", "Sets the default time in seconds to displays a screen", KEY_META, "opt", "w", KEY_META, "opt/long", "wait-time", KEY_META, "type", "float", KEY_END), - keyNew ("/sli/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a sli driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SliDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/sli/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/sli/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/sli/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/sli/#/file", KEY_VALUE, "sli", KEY_META, "default", "sli", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/sli/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/sli/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/sli/#/speed", KEY_VALUE, "19200", KEY_META, "check/range", "1200, 2400, 9600, 19200, 38400, 57600, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/stv5730/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a stv5730 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Stv5730DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/stv5730/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/stv5730/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/stv5730/#/file", KEY_VALUE, "stv5730", KEY_META, "default", "stv5730", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/stv5730/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/stv5730/#/port", KEY_VALUE, "0x378", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{3})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "Port the device is connected to", KEY_META, "type", "string", KEY_END), - keyNew ("/stv5730/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/sureelec/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a SureElec driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SureElecDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/sureelec/#/brightness", KEY_VALUE, "480", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "480", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/sureelec/#/contrast", KEY_VALUE, "480", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "480", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/sureelec/#/device", KEY_VALUE, "/dev/ttyUSB0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyUSB0", KEY_META, "description", "Port the device is connected to (by default first USB serial port)", KEY_META, "type", "string", KEY_END), - keyNew ("/sureelec/#/edition", KEY_VALUE, "2", KEY_META, "check/range", "1-3", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "2", KEY_META, "description", "Edition level of the device (can be 1, 2 or 3)", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/sureelec/#/file", KEY_VALUE, "SureElec", KEY_META, "default", "SureElec", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/sureelec/#/offbrightness", KEY_VALUE, "480", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "480", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/sureelec/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/sureelec/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "set display size\nNote: The size can be obtained directly from device for edition 2 & 3.", KEY_META, "type", "string", KEY_END), - keyNew ("/svga/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a svga driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SvgaDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/svga/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "1-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/svga/#/contrast", KEY_VALUE, "500", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/svga/#/file", KEY_VALUE, "svga", KEY_META, "default", "svga", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/svga/#/mode", KEY_VALUE, "G320x240x256", KEY_META, "check/type", "string", KEY_META, "default", "G320x240x256", KEY_META, "description", "svgalib mode to use [default: G320x240x256 ]\nlegal values are supported svgalib modes. See man7 pages for allowed values", KEY_META, "type", "string", KEY_END), - keyNew ("/svga/#/offbrightness", KEY_VALUE, "500", KEY_META, "check/range", "1-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/svga/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/svga/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), - keyNew ("/t6963/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a t6963 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "T6963DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/t6963/#/bidirectional", KEY_VALUE, "1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Use LPT port in bi-directional mode. This should work on most LPT port and\nis required for proper timing!", KEY_META, "type", "boolean", KEY_END), - keyNew ("/t6963/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/t6963/#/cleargraphic", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Clear graphic memory on start-up.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/t6963/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/t6963/#/delaybus", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Insert additional delays into reads / writes.", KEY_META, "type", "boolean", KEY_END), - keyNew ("/t6963/#/file", KEY_VALUE, "t6963", KEY_META, "default", "t6963", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/t6963/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/t6963/#/port", KEY_VALUE, "0x378", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([2-3][0-9A-F]{2}|400)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. legal: 0x200 - 0x400", KEY_META, "default", "0x378", KEY_META, "description", "Parallel port to use", KEY_META, "type", "string", KEY_END), - keyNew ("/t6963/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/t6963/#/size", KEY_VALUE, "128x64", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "128x64", KEY_META, "description", "set display size in pixels", KEY_META, "type", "string", KEY_END), - keyNew ("/text/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a text driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "TextDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/text/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/text/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/text/#/file", KEY_VALUE, "text", KEY_META, "default", "text", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/text/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/text/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/text/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), - keyNew ("/tyan/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a tyan driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "TyanDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/tyan/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/tyan/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/tyan/#/device", KEY_VALUE, "/dev/lcd", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/tyan/#/file", KEY_VALUE, "tyan", KEY_META, "default", "tyan", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/tyan/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/tyan/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/tyan/#/size", KEY_VALUE, "16x2", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), - keyNew ("/tyan/#/speed", KEY_VALUE, "9600", KEY_META, "check/range", "4800, 9600", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/ula200/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a ula200 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Ula200DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/ula200/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/ula200/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/ula200/#/file", KEY_VALUE, "ula200", KEY_META, "default", "ula200", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/ula200/#/keymap_a", KEY_VALUE, "Up", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("/ula200/#/keymap_b", KEY_VALUE, "Down", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("/ula200/#/keymap_c", KEY_VALUE, "Left", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("/ula200/#/keymap_d", KEY_VALUE, "Right", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("/ula200/#/keymap_e", KEY_VALUE, "Enter", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("/ula200/#/keymap_f", KEY_VALUE, "Escape", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("/ula200/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/ula200/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/ula200/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Select the LCD size", KEY_META, "type", "string", KEY_END), - keyNew ("/vlsys_m428/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a vlsys_m428 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Vlsys_m428DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/vlsys_m428/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/vlsys_m428/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/vlsys_m428/#/device", KEY_VALUE, "/dev/ttyUSB0", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyUSB0", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("/vlsys_m428/#/file", KEY_VALUE, "vlsys_m428", KEY_META, "default", "vlsys_m428", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/vlsys_m428/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/vlsys_m428/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/xosd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a xosd driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "XosdDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/xosd/#/Font", KEY_VALUE, "-*-terminus-*-r-*-*-*-320-*-*-*-*-*", KEY_META, "check/type", "string", KEY_META, "default", "-*-terminus-*-r-*-*-*-320-*-*-*-*-*", KEY_META, "description", "X font to use, in XLFD format, as given by \'xfontsel\'", KEY_META, "type", "string", KEY_END), - keyNew ("/xosd/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/xosd/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/xosd/#/file", KEY_VALUE, "xosd", KEY_META, "default", "xosd", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/xosd/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/xosd/#/offset", KEY_VALUE, "0x0", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid offset declaration. Examples: 200x200", KEY_META, "default", "0x0", KEY_META, "description", "Offset in pixels from the top-left corner of the monitor [default: 0x0]", KEY_META, "type", "string", KEY_END), - keyNew ("/xosd/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/xosd/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), - keyNew ("/yard2lcd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a yard2LCD driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Yard2LCDDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("/yard2lcd/#/brightness", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/yard2lcd/#/contrast", KEY_VALUE, "1000", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/yard2lcd/#/file", KEY_VALUE, "yard2LCD", KEY_META, "default", "yard2LCD", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("/yard2lcd/#/offbrightness", KEY_VALUE, "0", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("/yard2lcd/#/reboot", KEY_VALUE, "0", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("/yard2lcd/#/size", KEY_VALUE, "20x4", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), - KS_END); -; - Elektra * e = elektraOpen ("/sw/lcdproc/lcdd/#0/current", defaults, error); - - if (e == NULL) - { - return -1; - } - - KeySet * contract = ksNew (1, - keyNew ("system/elektra/ensure/plugins/global/gopts", KEY_VALUE, "mounted", KEY_END), - KS_END); -; - - ElektraError * err = NULL; - elektraEnsure (e, contract, &err); - - if (err != NULL) - { - *error = err; - return -1; - } - - helpKey = elektraHelpKey (e); - if (helpKey != NULL) - { - elektraClose (e); - return 2; - } - - KeySet * defaultContext = ksNew (0, - KS_END); -; - ksAppend (elektraContext (e), defaultContext); - ksDel (defaultContext); - - *elektra = e; - return 0; -} - -/** - * Checks whether specload mode was invoked and if so, sends the specification over stdout - * in the format expected by specload. - * - * You MUST not output anything to stdout before invoking this function. Ideally invoking this - * is the first thing you do in your main()-function. - * - * This function will ONLY RETURN, if specload mode was NOT invoked. Otherwise it will call `exit()`. - * - * @param argc pass the value of argc from main - * @param argv pass the value of argv from main - */ -void doSpecloadCheck (int argc, const char ** argv) -{ - if (argc != 2 || strcmp (argv[1], "--elektra-spec") != 0) - { - return; - } - - KeySet * spec = ksNew (624, - keyNew ("spec/sw/lcdproc/lcdd/#0/current", KEY_META, "infos/plugins", "ini validation type", KEY_META, "mountpoint", "LCDd.conf", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/bayrad", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/bayrad/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a bayrad driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "BayradDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/bayrad/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/bayrad/#/file", KEY_META, "default", "bayrad", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/bayrad/#/speed", KEY_META, "check/range", "1200, 2400, 9600, 19200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a CFontz driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "CFontzDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "350", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/file", KEY_META, "default", "CFontz", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/newfirmware", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Set the firmware version (New means >= 2.0)", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness. This value is used when the display is normally switched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Select the LCD size", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/speed", KEY_META, "check/range", "1200, 2400, 9600, 19200, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontz/#/usb", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Is this driver using USB\?", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a CFontzPacket driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "CFontzPacketDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "350", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/file", KEY_META, "default", "CFontzPacket", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/model", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "533", KEY_META, "check/enum/#1", "631", KEY_META, "check/enum/#2", "633", KEY_META, "check/enum/#3", "635", KEY_META, "check/type", "enum", KEY_META, "default", "633", KEY_META, "description", "Select the LCD model", KEY_META, "gen/enum/type", "CFontzPacketModel", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness. This value is used when the display is normally switched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/oldfirmware", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Very old 633 firmware versions do not support partial screen updates using \'Send Data to LCD\' command (31). For those devices it may be necessary to enable this flag", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Override the LCD size known for the selected model. Usually setting this value should not be necessary.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/speed", KEY_META, "check/range", "19200, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "115200", KEY_META, "description", "Override the default communication speed known for the selected model. Default value depends on model.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cfontzpacket/#/usb", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Enable the USB flag if the device is connected to an USB port. For serial ports leave it disabled.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a curses driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "CursesDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/background", KEY_META, "check/enum", "#7", KEY_META, "check/enum/#0", "red", KEY_META, "check/enum/#1", "black", KEY_META, "check/enum/#2", "green", KEY_META, "check/enum/#3", "yellow", KEY_META, "check/enum/#4", "blue", KEY_META, "check/enum/#5", "magenta", KEY_META, "check/enum/#6", "cyan", KEY_META, "check/enum/#7", "white", KEY_META, "check/type", "enum", KEY_META, "default", "cyan", KEY_META, "description", "background color when \"backlight\" is off", KEY_META, "gen/enum/type", "CursesColor", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/backlight", KEY_META, "check/enum", "#7", KEY_META, "check/enum/#0", "red", KEY_META, "check/enum/#1", "black", KEY_META, "check/enum/#2", "green", KEY_META, "check/enum/#3", "yellow", KEY_META, "check/enum/#4", "blue", KEY_META, "check/enum/#5", "magenta", KEY_META, "check/enum/#6", "cyan", KEY_META, "check/enum/#7", "white", KEY_META, "check/type", "enum", KEY_META, "default", "red", KEY_META, "description", "background color when \"backlight\" is on", KEY_META, "gen/enum/type", "CursesColor", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/drawborder", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "draw Border", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/file", KEY_META, "default", "curses", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/foreground", KEY_META, "check/enum", "#7", KEY_META, "check/enum/#0", "red", KEY_META, "check/enum/#1", "black", KEY_META, "check/enum/#2", "green", KEY_META, "check/enum/#3", "yellow", KEY_META, "check/enum/#4", "blue", KEY_META, "check/enum/#5", "magenta", KEY_META, "check/enum/#6", "cyan", KEY_META, "check/enum/#7", "white", KEY_META, "check/type", "enum", KEY_META, "default", "blue", KEY_META, "description", "Color settings", KEY_META, "gen/enum/type", "CursesColor", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/topleftx", KEY_META, "check/type", "unsigned_short", KEY_META, "check/validation", "([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "7", KEY_META, "description", "What position (X,Y) to start the left top corner at...", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/toplefty", KEY_META, "check/type", "unsigned_short", KEY_META, "check/validation", "([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "7", KEY_META, "description", "What position (X,Y) to start the left top corner at...", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/curses/#/useacs", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "use ASC symbols for icons & bars", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a CwLnx driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "CwLnxDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/file", KEY_META, "default", "CwLnx", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/keymap_a", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/keymap_b", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/keymap_c", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/keymap_d", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/keymap_e", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/keymap_f", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "If you have a non-standard keypad you can associate any keystrings to keys.\nThere are 6 input keys in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n\nThe built-in default mapping hardcoded in the driver.\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/keypad", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If you have a keypad connected. Keypad layout is currently not configureable from the config file.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/keypad_test_mode", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "permits one to test keypad assignment", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/model", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "12232", KEY_META, "check/enum/#1", "12832", KEY_META, "check/enum/#2", "1602", KEY_META, "check/type", "enum", KEY_META, "default", "12232", KEY_META, "description", "Select the LCD model", KEY_META, "gen/enum/type", "CwLnxModel", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Select the LCD size. Default depends on model: \n12232: 20x4 \n12832: 21x4 \n1602: 16x2", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/cwlnx/#/speed", KEY_META, "check/range", "9600, 19200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ea65", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ea65/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a ea65 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Ea65DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ea65/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "As the VFD is self luminescent we don\'t have a backlight\nBut we can use the backlight functions to control the front LEDs\nBrightness 0 to 299 -> LEDs off\nBrightness 300 to 699 -> LEDs half bright\nBrightness 700 to 1000 -> LEDs full bright", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ea65/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ea65/#/file", KEY_META, "default", "ea65", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ea65/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "OffBrightness is the the value used for the \'backlight off\' state", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ea65/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a EyeboxOne driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "EyeboxOneDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/backlight", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Switch on the backlight\?", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/cursor", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Switch on the cursor\?", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/downkey", KEY_META, "check/type", "string", KEY_META, "default", "B", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/escapekey", KEY_META, "check/type", "string", KEY_META, "default", "P", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/file", KEY_META, "default", "EyeboxOne", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/keypad_test_mode", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "You can find out which key of your display sends which\ncharacter by setting keypad_test_mode to yes and running\nLCDd. LCDd will output all characters it receives.\nAfterwards you can modify the settings above and set\nkeypad_set_mode to no again.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/leftkey", KEY_META, "check/type", "string", KEY_META, "default", "D", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/rightkey", KEY_META, "check/type", "string", KEY_META, "default", "C", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Set the display size", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/speed", KEY_META, "check/range", "1200, 2400, 9600, 19200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/eyeboxone/#/upkey", KEY_META, "check/type", "string", KEY_META, "default", "A", KEY_META, "description", "Enter Key is a \r character, so it\'s hardcoded in the driver", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/futaba", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/futaba/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a futaba driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "FutabaDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/futaba/#/file", KEY_META, "default", "futaba", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/g15", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/g15/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a g15 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "G15DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/g15/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/g15/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/g15/#/file", KEY_META, "default", "g15", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/g15/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/g15/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/g15/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x5", KEY_META, "description", "Display size (currently unused)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a glcd driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "GlcdDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/bidirectional", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Use LPT port in bi-directional mode. This should work on most LPT port and is required for proper timing!", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "800", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/cellsize", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "6x8", KEY_META, "description", "Width and height of a character cell in pixels. This value is only used the driver has been compiled with FreeType and it is enabled. Otherwise the default 6x8 cell is used.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/connectiontype", KEY_META, "check/enum", "#6", KEY_META, "check/enum/#0", "t6963", KEY_META, "check/enum/#1", "png", KEY_META, "check/enum/#2", "serdisplib", KEY_META, "check/enum/#3", "glcd2usb", KEY_META, "check/enum/#4", "x11", KEY_META, "check/enum/#5", "picolcdgfx", KEY_META, "check/enum/#6", "xyz", KEY_META, "check/type", "enum", KEY_META, "default", "t6963", KEY_META, "description", "Select what type of connection. See documentation for types.", KEY_META, "gen/enum/type", "GlcdConnectionType", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "600", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/delaybus", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Insert additional delays into reads / writes.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/file", KEY_META, "default", "glcd", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/fonthasicons", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Some fonts miss the Unicode characters used to represent icons. In this case the built-in 5x8 font can used if this option is turned off.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/keymap_a", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/keymap_b", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/keymap_c", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/keymap_d", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/keymap_e", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/keymap_f", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "Assign key strings to keys. There may be up to 16 keys numbered \'A\' to \'Z\'.\nBy default keys \'A\' to \'F\' are assigned Up, Down, Left, Right, Enter, Escape.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/keyrepeatdelay", KEY_META, "check/range", "0-3000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "Time (ms) from first key report to first repeat. Set to 0 to disable repeated key reports.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/keyrepeatinterval", KEY_META, "check/range", "0-3000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "Time (ms) between repeated key reports. Ignored if KeyRepeatDelay is disabled (set to zero).", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/normal_font", KEY_META, "check/type", "string", KEY_META, "default", "/usr/local/lib/X11/fonts/TTF/andalemo.ttf", KEY_META, "description", "Path to font file to use for FreeType rendering. This font must be monospace and should contain some special Unicode characters like arrows (Andale Mono is recommended and can be fetched at http://corefonts.sf.net).", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "100", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/picolcdgfx_inverted", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Inverts the pixels.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/picolcdgfx_keytimeout", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9][0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Number must be any positive integer >0", KEY_META, "default", "125", KEY_META, "description", "Time in ms for usb_read to wait on a key press.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/port", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([2-3][0-9A-F]{2}|400)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. legal: 0x200 - 0x400", KEY_META, "default", "0x378", KEY_META, "description", "Parallel port to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/serdisp_device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ppi0", KEY_META, "description", "The display device to use, e.g. serraw:/dev/ttyS0, parport:/dev/parport0 or USB:07c0/1501", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/serdisp_name", KEY_META, "check/type", "string", KEY_META, "default", "t6963", KEY_META, "description", "Name of the underlying serdisplib driver, e.g. ctinclud. See", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/serdisp_options", KEY_META, "check/type", "string", KEY_META, "default", "INVERT=1", KEY_META, "description", "Options string to pass to serdisplib during initialization. Use\nthis to set any display related options (e.g. wiring). The display size is\nalways set based on the Size configured above! By default, no options are\nset.\nImportant: The value must be quoted as it contains equal signs!", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "(640|[1-9]|[1-9][0-9]|[1-5][0-9][0-9]|6[0-3][0-9])x(480|[1-9]|[1-9][0-9]|[1-3][0-9][0-9]|4[0-7][0-9])", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. legal: 1x1 - 640x480", KEY_META, "default", "128x64", KEY_META, "description", "Width and height of the display in pixel. The supported sizes may depend on the ConnectionType", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/useft2", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If LCDproc has been compiled with FreeType 2 support this option can be used to turn if off intentionally.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/x11_backlightcolor", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{6}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Colors are in RRGGBB format prefixed with \"0x\"", KEY_META, "default", "0x80FF80", KEY_META, "description", "The color of the backlight as full brightness.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/x11_border", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "^([1-9]\\d*|0)$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "20", KEY_META, "description", "Adds a border (empty space) around the LCD portion of X11 window.", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/x11_inverted", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Inverts the pixels.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/x11_pixelcolor", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{6}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Colors are in RRGGBB format prefixed with \"0x\"", KEY_META, "default", "0x000000", KEY_META, "description", "The color of each dot at full contrast.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcd/#/x11_pixelsize", KEY_META, "check/type", "string", KEY_META, "check/validation", "\\d+\\+\\d+", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "[number]+[number] has to be provided, eg: 3+1 or 5+2", KEY_META, "default", "3+1", KEY_META, "description", "Each LCD dot is drawn in the X window as a filled rectangle of this size\n plus a gap between each filled rectangle. A PixelSize of 3+1\n would draw a 3x3 filled rectangle with a gap of 1 pixel to the right and\n bottom, effectively using a 4x4 area of the window. Default is 3+1.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a glcdlib driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "GlcdlibDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/CharEncoding", KEY_META, "check/type", "string", KEY_META, "default", "iso8859-2", KEY_META, "description", "character encoding to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/backlight", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/brightness", KEY_META, "check/range", "0-100", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "50", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/contrast", KEY_META, "check/range", "0-100", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "50", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/driver", KEY_META, "check/type", "string", KEY_META, "default", "image", KEY_META, "description", "\nSpecify which graphical display supported by graphlcd-base to use.\n Legal values for GRAPHLCD-DRIVER are\n specified in graphlcd\'s configuration file /etc/graphlcd.conf.\n For graphlcd 0.13 they comprise avrctl, framebuffer, gu140x32f, gu256x64-372, \n gu256x64C-3xx0, hd61830, image, ks0108, noritake800, sed1330, sed1520, serdisp, simlcd, t6963c\n", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/file", KEY_META, "default", "glcdlib", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/fontfile", KEY_META, "check/type", "string", KEY_META, "default", "/usr/share/fonts/corefonts/courbd.ttf", KEY_META, "description", "path to font file to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/invert", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/minfontfacesize", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "7x12", KEY_META, "description", "path to font file to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/pixelshiftx", KEY_META, "check/type", "short", KEY_META, "check/validation", "([0-9]+)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "0", KEY_META, "type", "short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/pixelshifty", KEY_META, "check/type", "short", KEY_META, "check/validation", "([0-9]+)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be a positive number", KEY_META, "default", "2", KEY_META, "type", "short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/showbigborder", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/showdebugframe", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/showthinborder", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/textresolution", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x4", KEY_META, "description", "Text resolution in fixed width characters.\n(if it won\'t fit according to available physical pixel resolution\nand the minimum available font face size in pixels, then\n\'DebugBorder\' will automatically be turned on)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/upsidedown", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glcdlib/#/useft2", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "no=use graphlcd bitmap fonts (they have only one size / font file)\nyes=use fonts supported by FreeType2 (needs Freetype2 support in\nlibglcdprocdriver and its dependants)", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glk", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glk/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a glk driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "GlkDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glk/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glk/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "select the serial device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glk/#/file", KEY_META, "default", "glk", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/glk/#/speed", KEY_META, "check/range", "9600, 19200, 38400, 57600, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "set the serial port speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a hd44780 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Hd44780DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/backlight", KEY_META, "check/enum", "#8", KEY_META, "check/enum/#0", "none", KEY_META, "check/enum/#1", "external", KEY_META, "check/enum/#2", "internal", KEY_META, "check/enum/#3", "internalCmds", KEY_META, "check/type", "enum", KEY_META, "default", "none", KEY_META, "description", "Specify if you have a switchable backlight and if yes, can select method for turning it on/off:\n#\n- none - no switchable backlight is available.\n- external - use external pin or any other method defined with ConnectionType backlight\n handling.\n- internal - means that backlight is handled using internal commands according\n to selected display model (with Model option). Depending on model,\n Brightness and OffBrightness options can be taken into account.\n- internalCmds - means that commands for turning on and off backlight are given\n with extra options BacklightOnCmd and BacklightOffCmd, which would be treated\n as catch up (last resort) for other types of displays which have similar features.\n#\nYou can provide multiple occurences of this option to use more than one method.\nDefault is model specific: Winstar OLED and PT6314 VFD enables internal backlight mode,\nfor others it is set to none.", KEY_META, "gen/enum/type", "HD44780Backlight", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/backlightcmdoff", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{4}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "4 bytes can be encoded, as integer number in big-endian order (0x0000-0xFFFF)", KEY_META, "default", "0x1234", KEY_META, "description", "Commands for disabling internal backlight for use with Backlight=internalCmds.\nUp to 4 bytes can be encoded, as integer number in big-endian order.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/backlightcmdon", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{4}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "4 bytes can be encoded, as integer number in big-endian order (0x0000-0xFFFF)", KEY_META, "default", "0x1223", KEY_META, "description", "Commands for enabling internal backlight for use with Backlight=internalCmds.\nUp to 4 bytes can be encoded, as integer number in big-endian order.\n#\nNOTE: this is advanced option, if command contains bits other than only brighness handling,\nthey must be set accordingly to not disrupt display state. If for example \'FUNCTION SET\' command\nis used for this purpose, bits of interface length (4-bit / 8-bit) must be set according to\nselected ConnectionType.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "800", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/charmap", KEY_META, "check/enum", "#7", KEY_META, "check/enum/#0", "hd44780_default", KEY_META, "check/enum/#1", "hd44780_euro", KEY_META, "check/enum/#2", "ea_ks0073", KEY_META, "check/enum/#3", "sed1278f_0b", KEY_META, "check/enum/#4", "hd44780_koi8_r", KEY_META, "check/enum/#5", "hd44780_cp1251", KEY_META, "check/enum/#6", "hd44780_8859_5", KEY_META, "check/enum/#7", "upd16314", KEY_META, "check/type", "enum", KEY_META, "default", "hd44780_default", KEY_META, "description", "Character map to to map ISO-8859-1 to the LCD\'s character set. (hd44780_koi8_r, hd44780_cp1251, hd44780_8859_5, upd16314 and weh001602a_1\nare possible if compiled with additional charmaps)", KEY_META, "gen/enum/type", "HD44780Charmap", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/connectiontype", KEY_META, "check/enum", "#_27", KEY_META, "check/enum/#0", "4bit", KEY_META, "check/enum/#1", "8bit", KEY_META, "check/enum/#2", "winamp", KEY_META, "check/enum/#3", "lcm162", KEY_META, "check/enum/#4", "serialLpt", KEY_META, "check/enum/#5", "picanlcd", KEY_META, "check/enum/#6", "lcdserializer", KEY_META, "check/enum/#7", "los-panel", KEY_META, "check/enum/#8", "vdr-lcd", KEY_META, "check/enum/#9", "vdr-wakeup", KEY_META, "check/enum/#_10", "ezio", KEY_META, "check/enum/#_11", "pertelian", KEY_META, "check/enum/#_12", "lis2", KEY_META, "check/enum/#_13", "mplay", KEY_META, "check/enum/#_14", "usblcd", KEY_META, "check/enum/#_15", "bwctusb", KEY_META, "check/enum/#_16", "lcd2usb", KEY_META, "check/enum/#_17", "usbtiny", KEY_META, "check/enum/#_18", "uss720", KEY_META, "check/enum/#_19", "USB-4-all", KEY_META, "check/enum/#_20", "ftdi", KEY_META, "check/enum/#_21", "i2c", KEY_META, "check/enum/#_22", "piplate", KEY_META, "check/enum/#_23", "spi", KEY_META, "check/enum/#_24", "pifacecad", KEY_META, "check/enum/#_25", "ethlcd", KEY_META, "check/enum/#_26", "raspberrypi", KEY_META, "check/enum/#_27", "gpio", KEY_META, "check/type", "enum", KEY_META, "default", "4bit", KEY_META, "description", "Select what type of connection. See documentation for available types:\n https://github.com/lcdproc/lcdproc/blob/master/docs/lcdproc-user/drivers/hd44780.docbook", KEY_META, "gen/enum/type", "HD44780ConnectionType", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "800", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/delaybus", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "You can reduce the inserted delays by setting this to false.\nOn fast PCs it is possible your LCD does not respond correctly.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/delaymult", KEY_META, "check/range", "1, 2, 4, 8, 16", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1", KEY_META, "description", "If your display is slow and cannot keep up with the flow of data from\nLCDd, garbage can appear on the LCDd. Set this delay factor to 2 or 4\nto increase the delays.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Device of the serial, I2C, or SPI interface", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/extendedmode", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If you have an HD66712, a KS0073 or another controller with \'extended mode\',\nset this flag to get into 4-line mode. On displays with just two lines, do\nnot set this flag.\nAs an additional restriction, controllers with and without extended mode\nAND 4 lines cannot be mixed for those connection types that support more\nthan one display!\nNOTE: This option is deprecated in favour of choosing Model=extended option.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/file", KEY_META, "default", "hd44780", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/fontbank", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "0", KEY_META, "check/enum/#1", "1", KEY_META, "check/enum/#2", "2", KEY_META, "check/enum/#3", "3", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Font bank to be used for some displays such as the WINSTAR WEH001602A\n0: English/Japanese (default)\n1: Western Europe I\n2: English/Rusian\n3: Western Europe II", KEY_META, "gen/enum/type", "HD44780Fontbank", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/keepalivedisplay", KEY_META, "check/range", "0-10", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Some displays (e.g. vdr-wakeup) need a message from the driver to that it\nis still alive. When set to a value bigger then null the character in the\nupper left corner is updated every seconds.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/keymatrix_4_1", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "If you have a keypad you can assign keystrings to the keys. See\ndocumentation for used terms and how to wire it. For example to give directly connected\nkey 4 the string \'Enter\', use:\n KeyDirect_4=Enter For matrix keys use the\nX and Y coordinates of the key: \n KeyMatrix_1_3=Enter", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/keymatrix_4_2", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "If you have a keypad you can assign keystrings to the keys. See\ndocumentation for used terms and how to wire it. For example to give directly connected\nkey 4 the string \'Enter\', use:\n KeyDirect_4=Enter For matrix keys use the\nX and Y coordinates of the key: \n KeyMatrix_1_3=Enter", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/keymatrix_4_3", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "If you have a keypad you can assign keystrings to the keys. See\ndocumentation for used terms and how to wire it. For example to give directly connected\nkey 4 the string \'Enter\', use:\n KeyDirect_4=Enter For matrix keys use the\nX and Y coordinates of the key: \n KeyMatrix_1_3=Enter", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/keymatrix_4_4", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "If you have a keypad you can assign keystrings to the keys. See\ndocumentation for used terms and how to wire it. For example to give directly connected\nkey 4 the string \'Enter\', use:\n KeyDirect_4=Enter For matrix keys use the\nX and Y coordinates of the key: \n KeyMatrix_1_3=Enter", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/keypad", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If you have a keypad connected.\nYou may also need to configure the keypad layout further on in this file.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/lastline", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Specifies if the last line is pixel addressable (yes) or it controls an\nunderline effect (no).", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/lineaddress", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a line Address. eg. 0x20, 0x10", KEY_META, "default", "0x20", KEY_META, "description", "In extended mode, on some controllers like the ST7036 (in 3 line mode) the next line in DDRAM won`t start 0x20 higher.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/model", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "standard", KEY_META, "check/enum/#1", "extended", KEY_META, "check/enum/#2", "winstar_oled", KEY_META, "check/enum/#3", "pt6314_vfd", KEY_META, "check/type", "enum", KEY_META, "default", "standard", KEY_META, "description", "Select model if have non-standard one which require extra initialization or handling or\n just want extra features it offers.\n Available: standard (default), extended, winstar_oled, pt6314_vfd\n - standard is default, use for LCDs not mentioned below.\n - extended, hd66712, ks0073: allows use 4-line \'extended\' mode,\n same as deprecated now option ExtendedMode=yes\n - winstar_oled, weh00xxyya: changes initialization for WINSTAR\'s WEH00xxyyA displays\n and allows handling brightness\n - pt6314_vfd: allows handling brightness on PTC\'s PT6314 VFDs\n This option should be independent of connection type.", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "300", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/outputport", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If you have the additional output port (\"bargraph\") and you want to be able to control it with the lcdproc OUTPUT command", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/port", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x[0-9A-F]{3}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Port must begin with \"0x\", followed by 3 Hexadezimal values, eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "I/O address of the LPT port. Usual values are: 0x278, 0x378 and 0x3BC. For I2C connections this sets the slave address (usually 0x20).", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/refreshdisplay", KEY_META, "check/range", "0-20", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "If you experience occasional garbage on your display you can use this\noption as workaround. If set to a value bigger than null it forces a\nfull screen refresh seconds.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Specifies the size of the LCD. In case of multiple combined displays, this should be the total size.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/speed", KEY_META, "check/type", "unsigned_long", KEY_META, "default", "0", KEY_META, "description", "Bitrate of the serial port (0 for interface default)", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/hd44780/#/vspan", KEY_META, "check/type", "string", KEY_META, "check/validation", "^([1-9][0-9]*(,[1-9][0-9]*)*)\?$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Declarations must look like this: 2,2 or 2,2,1", KEY_META, "default", "", KEY_META, "description", "For multiple combined displays: how many lines does each display have.\nVspan=2,2 means both displays have 2 lines.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a icp_a106 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Icp_a106DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Device of the serial, I2C, or SPI interface", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106/#/file", KEY_META, "default", "icp_a106", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/icp_a106/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x2", KEY_META, "description", "Display dimensions", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a imon driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "ImonDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#/charmap", KEY_META, "check/enum", "#5", KEY_META, "check/enum/#0", "hd44780_euro", KEY_META, "check/enum/#1", "upd16314", KEY_META, "check/enum/#2", "hd44780_koi8_r", KEY_META, "check/enum/#3", "hd44780_cp1251", KEY_META, "check/enum/#4", "hd44780_8859_5", KEY_META, "check/enum/#5", "none", KEY_META, "check/type", "enum", KEY_META, "default", "none", KEY_META, "description", "Character map to to map ISO-8859-1 to the displays character set. (upd16314, hd44780_koi8_r,\nhd44780_cp1251, hd44780_8859_5 are possible if compiled with additional\ncharmaps)", KEY_META, "gen/enum/type", "IMonCharmap", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd0", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#/file", KEY_META, "default", "imon", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imon/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Display dimensions", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a imonlcd driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "ImonlcdDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/backlight", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Set the backlight state", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "200", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd0", KEY_META, "description", "select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/discmode", KEY_META, "check/enum", "#1", KEY_META, "check/enum/#0", "0", KEY_META, "check/enum/#1", "1", KEY_META, "check/type", "enum", KEY_META, "default", "0", KEY_META, "description", "Set the disc mode\n0 => spin the \'slim\' disc - two disc segments,\n1 => their complement spinning;", KEY_META, "gen/enum/type", "IMonLCDDiscMode", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/file", KEY_META, "default", "imonlcd", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/onexit", KEY_META, "check/range", "0-2", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1", KEY_META, "description", "Set the exit behavior\n0 means leave shutdown message,\n1 means show the big clock,\n2 means blank device", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/protocol", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "15c2:ffdc", KEY_META, "check/enum/#1", "15c2:0038", KEY_META, "check/enum/#2", "0", KEY_META, "check/enum/#3", "1", KEY_META, "check/type", "string", KEY_META, "default", "0", KEY_META, "description", "Specify which iMon protocol should be used\nChoose 0 for 15c2:ffdc device,\nChoose 1 for 15c2:0038 device", KEY_META, "gen/enum/#2/value", "0", KEY_META, "gen/enum/#3/value", "1", KEY_META, "gen/enum/type", "IMonLCDProtocol", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/imonlcd/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "96x16", KEY_META, "description", "Specify the size of the display in pixels", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a IOWarrior driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "IOWarriorDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/extendedmode", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If you have an HD66712, a KS0073 or another \'almost HD44780-compatible\',\nset this flag to get into extended mode (4-line linear).", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/file", KEY_META, "default", "IOWarrior", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/lastline", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Specifies if the last line is pixel addressable (yes) or it controls an\nunderline effect (no).", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/serialnumber", KEY_META, "check/type", "any", KEY_META, "default", "00000674", KEY_META, "description", "serial number. Must be exactly as listed by usbview (if not given, the 1st IOWarrior found gets used)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/iowarrior/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Display dimensions", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a IrMan driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "IrManDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman/#/config", KEY_META, "check/type", "string", KEY_META, "default", "/etc/irman.cfg", KEY_META, "description", "Select the configuration file to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/irman", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman/#/file", KEY_META, "default", "IrMan", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irman/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a irtrans driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "IrtransDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#/backlight", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Does the device have a backlight\?", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#/file", KEY_META, "default", "irtrans", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#/hostname", KEY_META, "check/type", "string", KEY_META, "default", "localhost", KEY_META, "description", "IRTrans device to connect to", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/irtrans/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Specify the size of the display in pixels", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a joy driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "JoyDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/js0", KEY_META, "description", "Select the input device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/file", KEY_META, "default", "joy", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/map_axis1neg", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "set the axis map", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/map_axis1pos", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "set the axis map", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/map_axis2neg", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "set the axis map", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/map_axis2pos", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "set the axis map", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/map_button1", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "set the button map", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/map_button2", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "set the button map", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/joy/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lb216", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lb216/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lb216 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Lb216DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lb216/#/brightness", KEY_META, "check/range", "0-255", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "200", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lb216/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the input device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lb216/#/file", KEY_META, "default", "lb216", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lb216/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lb216/#/speed", KEY_META, "check/range", "2400, 9600", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lcdm001 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Lcdm001DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#/backkey", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "LeftKey", KEY_META, "check/enum/#1", "RightKey", KEY_META, "check/enum/#2", "UpKey", KEY_META, "check/enum/#3", "DownKey", KEY_META, "check/type", "enum", KEY_META, "default", "UpKey", KEY_META, "description", "Normal Context: Back(Go to previous screen) \nMenu Context: Up/Left", KEY_META, "gen/enum/type", "Lcdm001Keys", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#/file", KEY_META, "default", "lcdm001", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#/forwardkey", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "LeftKey", KEY_META, "check/enum/#1", "RightKey", KEY_META, "check/enum/#2", "UpKey", KEY_META, "check/enum/#3", "DownKey", KEY_META, "check/type", "enum", KEY_META, "default", "DownKey", KEY_META, "description", "Normal Context: Forward(Go to next screen) \nMenu Context: Down/Right", KEY_META, "gen/enum/type", "Lcdm001Keys", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#/mainmenukey", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "LeftKey", KEY_META, "check/enum/#1", "RightKey", KEY_META, "check/enum/#2", "UpKey", KEY_META, "check/enum/#3", "DownKey", KEY_META, "check/type", "enum", KEY_META, "default", "RightKey", KEY_META, "description", "Normal Context: Open main menu \nMenu Context: Exit/Cancel", KEY_META, "gen/enum/type", "Lcdm001Keys", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcdm001/#/pausekey", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "LeftKey", KEY_META, "check/enum/#1", "RightKey", KEY_META, "check/enum/#2", "UpKey", KEY_META, "check/enum/#3", "DownKey", KEY_META, "check/type", "enum", KEY_META, "default", "LeftKey", KEY_META, "description", "Normal Context: Pause/Continue \nMenu Context: Enter/select", KEY_META, "gen/enum/type", "Lcdm001Keys", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lcterm driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "LctermDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm/#/file", KEY_META, "default", "lcterm", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lcterm/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Specify the size of the display in pixels", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a linux_input driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Linux_inputDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/input/event0", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input/#/file", KEY_META, "default", "linux_input", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input/#/key/_", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "specify a non-default key map, eg.: \n/linux_input/key/#01 = 1\n/linux_input/key/#28 = Enter", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/linux_input/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lirc driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "LircDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc/#/file", KEY_META, "default", "lirc", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc/#/lircrc", KEY_META, "check/type", "string", KEY_META, "default", "~/.lircrc", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc/#/prog", KEY_META, "check/type", "string", KEY_META, "default", "lcdd", KEY_META, "description", "Must be the same as in your lircrc", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lirc/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a lis driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "LisDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness\n0-250 = 25%, 251-500 = 50%, 501-750 = 75%, 751-1000 = 100%", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/file", KEY_META, "default", "lis", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/lastline", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Specifies if the last line is pixel addressable (yes) or it only controls an\nunderline effect (no)", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/productid", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{4})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size ProductID: 0x0000-0xFFFF is allowed", KEY_META, "default", "0x6001", KEY_META, "description", "USB Product ID. Change only if testing a compatible device.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Columns by lines", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/lis/#/vendorid", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{4})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size VendorID: 0x0000-0xFFFF is allowed", KEY_META, "default", "0x0403", KEY_META, "description", "USB Vendor ID. Change only if testing a compatible device.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a MD8800 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "MD8800DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800/#/file", KEY_META, "default", "MD8800", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/md8800/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a mdm166a driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Mdm166aDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#/clock", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "no", KEY_META, "check/enum/#1", "small", KEY_META, "check/enum/#2", "big", KEY_META, "check/type", "enum", KEY_META, "default", "no", KEY_META, "description", "Show self-running clock after LCDd shutdown", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#/dimming", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Dim display, no dimming gives full brightness", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#/file", KEY_META, "default", "mdm166a", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#/offdimming", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Dim display in case LCDd is inactive", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mdm166a/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/menu/downkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/menu/enterkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/menu/leftkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/menu/menukey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/menu/permissivegoto", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "If true the server allows transitions between different client`s menus", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/menu/rightkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/menu/upkey", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Up to six keys are supported. The MenuKey (to enter and exit the menu), the\nEnterKey (to select values) and at least one movement keys are required.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a ms6931 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Ms6931DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "select the device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931/#/file", KEY_META, "default", "ms6931", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ms6931/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtc_s16209x", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtc_s16209x/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a mtc_s16209x driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Mtc_s16209xDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtc_s16209x/#/brightness", KEY_META, "check/range", "0-255", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "200", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtc_s16209x/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtc_s16209x/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtc_s16209x/#/file", KEY_META, "default", "mtc_s16209x", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtc_s16209x/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtc_s16209x/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a MtxOrb driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "MtxOrbDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "480", KEY_META, "description", "Set the initial contrast\nNOTE: The driver will ignore this if the display\nis a vfd or vkd as they don\'t have this feature", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS0", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/file", KEY_META, "default", "MtxOrb", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/hasadjustablebacklight", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Some old displays do not have an adjustable backlight but only can\nswitch the backlight on/off. If you experience randomly appearing block\ncharacters, try setting this to false.", KEY_META, "gen/struct/field", "hasAdjustableBacklight", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/keymap_a", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/keymap_b", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/keymap_c", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/keymap_d", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/keymap_e", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/keymap_f", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "By default no keys are mapped, meaning the keypad is not used at all.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/keypad_test_mode", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "permits one to test keypad assignment", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/speed", KEY_META, "check/range", "1200, 2400, 9600, 19200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "Set the communication", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mtxorb/#/type", KEY_META, "check/enum", "#3", KEY_META, "check/enum/#0", "lcd", KEY_META, "check/enum/#1", "lkd", KEY_META, "check/enum/#2", "vfd", KEY_META, "check/enum/#3", "vkd", KEY_META, "check/type", "enum", KEY_META, "default", "lcd", KEY_META, "description", "Set the display type", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a mx5000 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Mx5000DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/hiddev0", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000/#/file", KEY_META, "default", "mx5000", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/mx5000/#/waitafterrefresh", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "[1-9]\\d*", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "WaitAfterRefresh must be a positive number", KEY_META, "default", "1000", KEY_META, "description", "Time to wait in ms after the refresh screen has been sent", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a NoritakeVFD driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "NoritakeVFDDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "device where the VFD is. Usual values are /dev/ttyS0 and /dev/ttyS1", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/file", KEY_META, "default", "NoritakeVFD", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/parity", KEY_META, "check/range", "0-2", KEY_META, "check/type", "unsigned_long", KEY_META, "default", "0", KEY_META, "description", "Set serial data parity\nMeaning: 0(=none), 1(=odd), 2(=even)", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "display size", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/noritakevfd/#/speed", KEY_META, "check/range", "1200, 2400, 9600, 19200, 115200", KEY_META, "check/type", "unsigned_long", KEY_META, "default", "19200", KEY_META, "description", "set the serial port speed", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/olimex_mod_lcd1x9", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/olimex_mod_lcd1x9/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a Olimex_MOD_LCD1x9 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Olimex_MOD_LCD1x9DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/olimex_mod_lcd1x9/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/olimex_mod_lcd1x9/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/olimex_mod_lcd1x9/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/i2c-0", KEY_META, "description", "device file of the i2c controller", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/olimex_mod_lcd1x9/#/file", KEY_META, "default", "Olimex_MOD_LCD1x9", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/olimex_mod_lcd1x9/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/olimex_mod_lcd1x9/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a picolcd driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "PicolcdDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/backlight", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Sets the initial state of the backlight upon start-up.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness [default: 1000; legal: 0 - 1000]. Works only\nwith the 20x4 device", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/file", KEY_META, "default", "picolcd", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/key0light", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/key1light", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/key2light", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/key3light", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/key4light", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/key5light", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If Keylights is on, the you can unlight specific keys below:\nKey0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys.\nThere is no LED for the +/- keys. This is a handy way to indicate to users\nwhich keys are disabled.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/keylights", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Light the keys\?", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/keyrepeatdelay", KEY_META, "check/range", "0-3000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "300", KEY_META, "description", "Key auto repeat is only available if the picoLCD driver is built with\nlibusb-1.0. Use KeyRepeatDelay and KeyRepeatInterval to configure key auto\nrepeat.\n#\nKey auto repeat delay (time in ms from first key report to first repeat). Use\nzero to disable auto repeat.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/keyrepeatinterval", KEY_META, "check/range", "0-3000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "200", KEY_META, "description", "Key auto repeat interval (time in ms between repeat reports). Only used if\nKeyRepeatDelay is not zero.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/keytimeout", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "KeyTimeout is only used if the picoLCD driver is built with libusb-0.1. When\nbuilt with libusb-1.0 key and IR data is input asynchronously so there is no\nneed to wait for the USB data.\nKeyTimeout is the time in ms that LCDd spends waiting for a key press before\ncycling through other duties. Higher values make LCDd use less CPU time and\nmake key presses more detectable. Lower values make LCDd more responsive\nbut a little prone to missing key presses. 500 (.5 second) is the default\nand a balanced value.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/linklights", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Link the key lights to the backlight\?", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/lircflushthreshold", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "[1-9]\\d{3,}", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "LircFlushThreshold must be a positive number >1000", KEY_META, "default", "1000", KEY_META, "description", "Threshold in microseconds of the gap that triggers flushing the IR data\nto lirc [default: 8000; legal: 1000 - ]\nIf LircTime_us is on values greater than 32.767ms will disable the flush\nIf LircTime_us is off values greater than 1.999938s will disable the flush", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/lirchost", KEY_META, "check/type", "string", KEY_META, "default", "127.0.0.1", KEY_META, "description", "Host name or IP address of the LIRC instance that is to receive IR codes If not set, or set to an empty value, IR support is disabled.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/lircport", KEY_META, "default", "8765", KEY_META, "description", "UDP port on which LIRC is listening", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/lirctime_us", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "UDP data time unit for LIRC\nOn: times sent in microseconds (requires LIRC UDP driver that accepts this).\nOff: times sent in \'jiffies\' (1/16384s) (supported by standard LIRC UDP driver).", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the brightness while the backlight is \'off\'.\nWorks only with the 20x4 device.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/picolcd/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/pyramid", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/pyramid/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a pyramid driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "PyramidDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/pyramid/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "device to connect to", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/pyramid/#/file", KEY_META, "default", "pyramid", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a rawserial driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "RawserialDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/cuaU0", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/file", KEY_META, "default", "rawserial", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "40x4", KEY_META, "description", "Specifies the size of the LCD. If this driver is loaded as a secondary driver\nit always adopts to the size of the primary driver. If loaded as the only\n(or primary) driver, the size can be set.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/speed", KEY_META, "check/type", "unsigned_long", KEY_META, "default", "9600", KEY_META, "description", "Serial port baudrate [default: 9600]", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/rawserial/#/updaterate", KEY_META, "check/type", "float", KEY_META, "default", "1", KEY_META, "description", "How often to dump the LCD contents out the port, in Hertz (times per second)\n1 = once per second, 4 is 4 times per second, 0.1 is once every 10 seconds.\n[default: 1; legal: 0.0005 - 10]", KEY_META, "type", "float", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a sed1330 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Sed1330DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/cellsize", KEY_META, "check/type", "string", KEY_META, "check/validation", "[6-8]x([1-9][0-6]|[1-9])", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Width x Height of a character cell in pixels [legal: 6x7 - 8x16]", KEY_META, "default", "6x10", KEY_META, "description", "Width x Height of a character cell in pixels", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/connectiontype", KEY_META, "check/enum", "#1", KEY_META, "check/enum/#0", "classic", KEY_META, "check/enum/#1", "bitshaker", KEY_META, "check/type", "enum", KEY_META, "default", "classic", KEY_META, "description", "Select what type of connection", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/file", KEY_META, "default", "sed1330", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/port", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{3})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "Port where the LPT is. Common values are 0x278, 0x378 and 0x3BC", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1330/#/type", KEY_META, "check/enum", "#5", KEY_META, "check/enum/#0", "G321D", KEY_META, "check/enum/#1", "G121C", KEY_META, "check/enum/#2", "G242C", KEY_META, "check/enum/#3", "G191D", KEY_META, "check/enum/#4", "G2446", KEY_META, "check/enum/#5", "SP14Q002", KEY_META, "check/type", "enum", KEY_META, "default", "G321D", KEY_META, "description", "Type of LCD module.\nNote: Currently only tested with G321D & SP14Q002.", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a sed1520 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Sed1520DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/delaymult", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1", KEY_META, "description", "On fast machines it may be necessary to slow down transfer to the display.\nIf this value is set to zero, delay is disabled. Any value greater than\nzero slows down each write by one microsecond.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/file", KEY_META, "default", "sed1520", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/haveinverter", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "The original wiring used an inverter to drive the control lines. If you do\nnot use an inverter set haveInverter to no.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/interfacetype", KEY_META, "check/range", "68, 80", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "80", KEY_META, "description", "Select the interface type (wiring) for the display. Supported values are\n68 for 68-style connection (RESET level high) and 80 for 80-style connection\n(RESET level low)", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/invertedmapping", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "On some displays column data in memory is mapped to segment lines from right\nto left. This is called inverted mapping (not to be confused with\n\'haveInverter\' from above).", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/port", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{3})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "Port where the LPT is. Usual values are 0x278, 0x378 and 0x3BC", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sed1520/#/usehardreset", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "At least one display is reported (Everbouquet MG1203D) that requires sending\nthree times 0xFF before a reset during initialization.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a serialPOS driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SerialPOSDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/cellsize", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "5x8", KEY_META, "description", "Specifies the cell size of each character cell on the display in characters.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/custom_chars", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "^([1-9]\\d*|0)$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be any positive number including 0", KEY_META, "default", "0", KEY_META, "description", "Specifies the number of custom characters supported by the display.\nCustom characters are only used for the rendering of horizontal bars\nand vertical bars. For displays whose cell character cell widths are\nlower than the number of custom characters supported,\nthen custom characters will be used to render the horizontal bars.\nFor more information look at: https://github.com/lcdproc/lcdproc/blob/master/docs/lcdproc-user/drivers/serialPOS.docbook", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS0", KEY_META, "description", "Device to use in serial mode", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/file", KEY_META, "default", "serialPOS", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "Specifies the size of the display in characters.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/speed", KEY_META, "check/range", "1200, 2400, 4800, 9600, 19200, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "communication baud rate with the display", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialpos/#/type", KEY_META, "check/enum", "#5", KEY_META, "check/enum/#0", "AEDEX", KEY_META, "check/enum/#1", "CD5220", KEY_META, "check/enum/#2", "Epson", KEY_META, "check/enum/#3", "Emax", KEY_META, "check/enum/#4", "LogicControls", KEY_META, "check/enum/#5", "Ultimate", KEY_META, "check/type", "enum", KEY_META, "default", "AEDEX", KEY_META, "description", "Set the communication protocol to use with the POS display.", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a serialVFD driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SerialVFDDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial brightness. (4 steps 0-250, 251-500, 501-750, 751-1000)", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/custom-characters", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "^([1-9]\\d*|0)$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Must be any positive number including 0", KEY_META, "default", "0", KEY_META, "description", "Number of Custom-Characters. default is display type dependent", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyS1", KEY_META, "description", "Device to use in serial mode. Usual values are /dev/ttyS0 and /dev/ttyS1", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/file", KEY_META, "default", "serialVFD", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/iso_8859_1", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "enable ISO 8859 1 compatibility", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive\n(4 steps 0-250, 251-500, 501-750, 751-1000)", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/port", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{3})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "Portaddress where the LPT is. Used in parallel mode only. Usual values are 0x278, 0x378 and 0x3BC.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/portwait", KEY_META, "check/range", "0-255", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "2", KEY_META, "description", "Set parallel port timing delay (us). Used in parallel mode only.", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x2", KEY_META, "description", "Specifies the size of the VFD.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/speed", KEY_META, "check/range", "1200, 2400, 9600, 19200, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "set the serial port speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/type", KEY_META, "check/enum", "#_17", KEY_META, "check/enum/#0", "nec_fipc8367", KEY_META, "check/enum/#1", "kd_rev_2_1", KEY_META, "check/enum/#2", "noritake_vfd", KEY_META, "check/enum/#3", "futaba_vfd", KEY_META, "check/enum/#4", "iee_s03601-95b", KEY_META, "check/enum/#5", "iee_s03601-96-080", KEY_META, "check/enum/#6", "futaba_na202sd08fa", KEY_META, "check/enum/#7", "samsung_20s207da4/20s207da6", KEY_META, "check/enum/#8", "nixdorf_ba6x/vt100", KEY_META, "check/enum/#_10", "1", KEY_META, "check/enum/#_11", "2", KEY_META, "check/enum/#_12", "3", KEY_META, "check/enum/#_13", "4", KEY_META, "check/enum/#_14", "5", KEY_META, "check/enum/#_15", "6", KEY_META, "check/enum/#_16", "7", KEY_META, "check/enum/#_17", "8", KEY_META, "check/enum/#_9", "0", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "description", "Specifies the displaytype.[default: 0]\n0 NEC (FIPC8367 based) VFDs.\n1 KD Rev 2.1.\n2 Noritake VFDs (*).\n3 Futaba VFDs\n4 IEE S03601-95B\n5 IEE S03601-96-080 (*)\n6 Futaba NA202SD08FA (allmost IEE compatible)\n7 Samsung 20S207DA4 and 20S207DA6\n8 Nixdorf BA6x / VT100\n(* most should work, not tested yet.)", KEY_META, "gen/enum/type", "SerialVFDType", KEY_META, "gen/enum/value", "8", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/serialvfd/#/use_parallel", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "\'no\' if display connected serial, \'yes\' if connected parallel.\nI.e. serial by default", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/autorotate", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "If set to no, LCDd will start with screen rotation disabled. This has the same effect as if the ToggleRotateKey had been pressed. Rotation will start if the ToggleRotateKey is pressed. Note that this setting does not turn off priority sorting of screens", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/backlight", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "off", KEY_META, "check/enum/#1", "on", KEY_META, "check/enum/#2", "open", KEY_META, "default", "open", KEY_META, "description", "Set master backlight setting. If set to \'open\' a client may control the backlight for its own screens (only)", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/bind", KEY_META, "check/type", "string", KEY_META, "default", "127.0.0.1", KEY_META, "description", "Tells the driver to bind to the given interface", KEY_META, "opt", "a", KEY_META, "opt/long", "address", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/driverpath", KEY_META, "check/type", "string", KEY_META, "check/validation", ".*[\\/]$", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "The path has to contain a backslack (/) at the end", KEY_META, "default", "server/drivers/", KEY_META, "description", "Select the LCD size", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/drivers", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/drivers/#", KEY_META, "check/reference/restrict", "#_52", KEY_META, "check/reference/restrict/#0", "@/bayrad/#", KEY_META, "check/reference/restrict/#1", "@/cfontz/#", KEY_META, "check/reference/restrict/#2", "@/cfontzpacket/#", KEY_META, "check/reference/restrict/#3", "@/curses/#", KEY_META, "check/reference/restrict/#4", "@/cwlnx/#", KEY_META, "check/reference/restrict/#5", "@/ea65/#", KEY_META, "check/reference/restrict/#6", "@/eyeboxone/#", KEY_META, "check/reference/restrict/#7", "@/futaba/#", KEY_META, "check/reference/restrict/#8", "@/g15/#", KEY_META, "check/reference/restrict/#9", "@/glcd/#", KEY_META, "check/reference/restrict/#_10", "@/glcdlib/#", KEY_META, "check/reference/restrict/#_11", "@/glk/#", KEY_META, "check/reference/restrict/#_12", "@/hd44780/#", KEY_META, "check/reference/restrict/#_13", "@/icp_a106/#", KEY_META, "check/reference/restrict/#_14", "@/imon/#", KEY_META, "check/reference/restrict/#_15", "@/imonlcd/#", KEY_META, "check/reference/restrict/#_16", "@/iowarrior/#", KEY_META, "check/reference/restrict/#_17", "@/irman/#", KEY_META, "check/reference/restrict/#_18", "@/joy/#", KEY_META, "check/reference/restrict/#_19", "@/lb216/#", KEY_META, "check/reference/restrict/#_20", "@/lcdm001/#", KEY_META, "check/reference/restrict/#_21", "@/lcterm/#", KEY_META, "check/reference/restrict/#_22", "@/linux_input/#", KEY_META, "check/reference/restrict/#_23", "@/lirc/#", KEY_META, "check/reference/restrict/#_24", "@/lis/#", KEY_META, "check/reference/restrict/#_25", "@/md8800/#", KEY_META, "check/reference/restrict/#_26", "@/mdm166a/#", KEY_META, "check/reference/restrict/#_27", "@/ms6931/#", KEY_META, "check/reference/restrict/#_28", "@/mtc_s16209x/#", KEY_META, "check/reference/restrict/#_29", "@/mtxorb/#", KEY_META, "check/reference/restrict/#_30", "@/mx5000/#", KEY_META, "check/reference/restrict/#_31", "@/noritakevfd/#", KEY_META, "check/reference/restrict/#_32", "@/olimex_mod_lcd1x9/#", KEY_META, "check/reference/restrict/#_33", "@/picolcd/#", KEY_META, "check/reference/restrict/#_34", "@/pyramid/#", KEY_META, "check/reference/restrict/#_35", "@/rawserial/#", KEY_META, "check/reference/restrict/#_36", "@/sdeclcd/#", KEY_META, "check/reference/restrict/#_37", "@/sed1330/#", KEY_META, "check/reference/restrict/#_38", "@/sed1520/#", KEY_META, "check/reference/restrict/#_39", "@/serialpos/#", KEY_META, "check/reference/restrict/#_40", "@/serialvfd/#", KEY_META, "check/reference/restrict/#_41", "@/shuttlevfd/#", KEY_META, "check/reference/restrict/#_42", "@/sli/#", KEY_META, "check/reference/restrict/#_43", "@/stv5730/#", KEY_META, "check/reference/restrict/#_44", "@/svga/#", KEY_META, "check/reference/restrict/#_45", "@/t6963/#", KEY_META, "check/reference/restrict/#_46", "@/text/#", KEY_META, "check/reference/restrict/#_47", "@/tyan/#", KEY_META, "check/reference/restrict/#_48", "@/ula200/#", KEY_META, "check/reference/restrict/#_49", "@/vlsys_m428/#", KEY_META, "check/reference/restrict/#_50", "@/xosd/#", KEY_META, "check/reference/restrict/#_51", "@/yard2lcd/#", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "Tells the server to load a driver.\nThe given value is a reference the configuration of the driver, e.g. @/curses/#0", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/foreground", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "The server will stay in the foreground if set to yes", KEY_META, "opt", "f", KEY_META, "opt/arg", "none", KEY_META, "opt/long", "foreground", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/frameinterval", KEY_META, "check/type", "unsigned_long", KEY_META, "check/validation", "[1-9]\\d*", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "FrameInterval must be a positive number", KEY_META, "default", "125000", KEY_META, "description", "Sets the interval in microseconds for updating the display [default: 125000 meaning 8Hz]", KEY_META, "type", "unsigned_long", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/goodbye/#", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "GoodBye message: each entry represents a display line", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/heartbeat", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "off", KEY_META, "check/enum/#1", "on", KEY_META, "check/enum/#2", "open", KEY_META, "default", "open", KEY_META, "description", "Set master heartbeat setting. If set to \'open\' a client may control the", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/hello/#", KEY_META, "check/type", "string", KEY_META, "default", "", KEY_META, "description", "Hello message: each entry represents a display line", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/nextscreenkey", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/port", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "13666", KEY_META, "description", "Listen on this specified port. [default: 13666]", KEY_META, "opt", "p", KEY_META, "opt/long", "port", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/prevscreenkey", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/reportlevel", KEY_META, "check/range", "0-5", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "2", KEY_META, "description", "TSets the reporting level, defaults to warnings and errors only.", KEY_META, "opt", "r", KEY_META, "opt/long", "report-level", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/reporttosyslog", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Should we report to syslog instead of stderr\?", KEY_META, "opt", "s", KEY_META, "opt/arg", "none", KEY_META, "opt/long", "report-to-syslog", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/scrolldownkey", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/scrollupkey", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/serverscreen", KEY_META, "check/enum", "#2", KEY_META, "check/enum/#0", "off", KEY_META, "check/enum/#1", "on", KEY_META, "check/enum/#2", "blank", KEY_META, "default", "on", KEY_META, "description", "If yes, the the serverscreen will be rotated as a usual info screen. If no, it will be a background screen, only visible when no other screens are active. The special value \'blank\' is similar to no, but only a blank screen is displayed.", KEY_META, "opt", "i", KEY_META, "opt/long", "rotate-server-screen", KEY_META, "type", "enum", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/titlespeed", KEY_META, "check/range", "0-10", KEY_META, "default", "10", KEY_META, "description", "title scrolling speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/togglerotatekey", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "The \'...Key=\' lines define what the server does with keypresses that\ndon\'t go to any client. The ToggleRotateKey stops rotation of screens, while\nthe PrevScreenKey and NextScreenKey go back / forward one screen (even if\nrotation is disabled.\nAssign the key string returned by the driver to the ...Key setting.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/user", KEY_META, "check/type", "string", KEY_META, "default", "nobody", KEY_META, "description", "set to run as. LCDd will drop its root privileges and run as this user instead. [default: nobody]", KEY_META, "opt", "u", KEY_META, "opt/long", "user", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/server/waittime", KEY_META, "check/type", "float", KEY_META, "default", "4", KEY_META, "description", "Sets the default time in seconds to displays a screen", KEY_META, "opt", "w", KEY_META, "opt/long", "wait-time", KEY_META, "type", "float", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a sli driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SliDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli/#/file", KEY_META, "default", "sli", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sli/#/speed", KEY_META, "check/range", "1200, 2400, 9600, 19200, 38400, 57600, 115200", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "19200", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/stv5730", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/stv5730/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a stv5730 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Stv5730DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/stv5730/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/stv5730/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/stv5730/#/file", KEY_META, "default", "stv5730", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/stv5730/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/stv5730/#/port", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([0-9A-F]{3})", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC", KEY_META, "default", "0x378", KEY_META, "description", "Port the device is connected to", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/stv5730/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a SureElec driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SureElecDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "480", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "480", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyUSB0", KEY_META, "description", "Port the device is connected to (by default first USB serial port)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#/edition", KEY_META, "check/range", "1-3", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "2", KEY_META, "description", "Edition level of the device (can be 1, 2 or 3)", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#/file", KEY_META, "default", "SureElec", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "480", KEY_META, "description", "Set the initial off-brightness\nThis value is used when the display is normally\nswitched off in case LCDd is inactive", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/sureelec/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "set display size\nNote: The size can be obtained directly from device for edition 2 & 3.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a svga driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "SvgaDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga/#/brightness", KEY_META, "check/range", "1-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga/#/file", KEY_META, "default", "svga", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga/#/mode", KEY_META, "check/type", "string", KEY_META, "default", "G320x240x256", KEY_META, "description", "svgalib mode to use [default: G320x240x256 ]\nlegal values are supported svgalib modes. See man7 pages for allowed values", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga/#/offbrightness", KEY_META, "check/range", "1-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "500", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/svga/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a t6963 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "T6963DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/bidirectional", KEY_META, "check/type", "boolean", KEY_META, "default", "1", KEY_META, "description", "Use LPT port in bi-directional mode. This should work on most LPT port and\nis required for proper timing!", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/cleargraphic", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Clear graphic memory on start-up.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/delaybus", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Insert additional delays into reads / writes.", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/file", KEY_META, "default", "t6963", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/port", KEY_META, "check/type", "string", KEY_META, "check/validation", "0x([2-3][0-9A-F]{2}|400)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid port declaration. legal: 0x200 - 0x400", KEY_META, "default", "0x378", KEY_META, "description", "Parallel port to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/t6963/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "128x64", KEY_META, "description", "set display size in pixels", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/text", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/text/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a text driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "TextDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/text/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/text/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/text/#/file", KEY_META, "default", "text", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/text/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/text/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/text/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a tyan driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "TyanDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/lcd", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#/file", KEY_META, "default", "tyan", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "16x2", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/tyan/#/speed", KEY_META, "check/range", "4800, 9600", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "9600", KEY_META, "description", "Set the communication speed", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a ula200 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Ula200DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/file", KEY_META, "default", "ula200", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/keymap_a", KEY_META, "check/type", "string", KEY_META, "default", "Up", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/keymap_b", KEY_META, "check/type", "string", KEY_META, "default", "Down", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/keymap_c", KEY_META, "check/type", "string", KEY_META, "default", "Left", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/keymap_d", KEY_META, "check/type", "string", KEY_META, "default", "Right", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/keymap_e", KEY_META, "check/type", "string", KEY_META, "default", "Enter", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/keymap_f", KEY_META, "check/type", "string", KEY_META, "default", "Escape", KEY_META, "description", "If you have a non standard keypad you can associate any keystrings to keys.\nThere are 6 input key in the CwLnx hardware that generate characters\nfrom \'A\' to \'F\'.\n#\nYou can leave those unchanged if you have a standard keypad.\nYou can change it if you want to report other keystrings or have a non\nstandard keypad.", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/ula200/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "Select the LCD size", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/vlsys_m428", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/vlsys_m428/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a vlsys_m428 driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Vlsys_m428DriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/vlsys_m428/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/vlsys_m428/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/vlsys_m428/#/device", KEY_META, "check/type", "string", KEY_META, "default", "/dev/ttyUSB0", KEY_META, "description", "Select the output device to use", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/vlsys_m428/#/file", KEY_META, "default", "vlsys_m428", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/vlsys_m428/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/vlsys_m428/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a xosd driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "XosdDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#/Font", KEY_META, "check/type", "string", KEY_META, "default", "-*-terminus-*-r-*-*-*-320-*-*-*-*-*", KEY_META, "description", "X font to use, in XLFD format, as given by \'xfontsel\'", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#/file", KEY_META, "default", "xosd", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#/offset", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid offset declaration. Examples: 200x200", KEY_META, "default", "0x0", KEY_META, "description", "Offset in pixels from the top-left corner of the monitor [default: 0x0]", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/xosd/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/yard2lcd", KEY_META, "array", "#0", KEY_META, "default", "", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/yard2lcd/#", KEY_META, "check/type", "any", KEY_META, "default", "", KEY_META, "description", "Configuration for a yard2LCD driver.", KEY_META, "gen/struct/alloc", "0", KEY_META, "gen/struct/type", "Yard2LCDDriverConfig", KEY_META, "type", "struct", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/yard2lcd/#/brightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/yard2lcd/#/contrast", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "1000", KEY_META, "description", "Set the initial contrast", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/yard2lcd/#/file", KEY_META, "default", "yard2LCD", KEY_META, "description", "name of the shared library to load (without prefix and extension)", KEY_META, "type", "string", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/yard2lcd/#/offbrightness", KEY_META, "check/range", "0-1000", KEY_META, "check/type", "unsigned_short", KEY_META, "default", "0", KEY_META, "type", "unsigned_short", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/yard2lcd/#/reboot", KEY_META, "check/type", "boolean", KEY_META, "default", "0", KEY_META, "description", "Reinitialize the LCD`s BIOS normally you shouldn`t need this", KEY_META, "type", "boolean", KEY_END), - keyNew ("spec/sw/lcdproc/lcdd/#0/current/yard2lcd/#/size", KEY_META, "check/type", "string", KEY_META, "check/validation", "([1-9]+[0-9]*)x([1-9]+[0-9]*)", KEY_META, "check/validation/match", "LINE", KEY_META, "check/validation/message", "Not a valid size declaration. Examples: 20x4, 19x3, 40x150", KEY_META, "default", "20x4", KEY_META, "description", "set display size", KEY_META, "type", "string", KEY_END), - KS_END); -; - - Key * parentKey = keyNew ("spec/sw/lcdproc/lcdd/#0/current", KEY_END); - - KeySet * specloadConf = ksNew (1, keyNew ("system/sendspec", KEY_END), KS_END); - ElektraInvokeHandle * specload = elektraInvokeOpen ("specload", specloadConf, parentKey); - - int result = elektraInvoke2Args (specload, "sendspec", spec, parentKey); - - elektraInvokeClose (specload, parentKey); - keyDel (parentKey); - ksDel (specloadConf); - ksDel (spec); - - exit (result == ELEKTRA_PLUGIN_STATUS_SUCCESS ? EXIT_SUCCESS : EXIT_FAILURE); -} - -/** - * Extracts the help message from the @p errorKey used in elektraGetOpts(). - * - * @param errorKey The same Key as passed to elektraGetOpts() as errorKey. - * @param usage If this is not NULL, it will be used instead of the default usage line. - * @param prefix If this is not NULL, it will be inserted between the usage line and the options list. - * - * @return The full help message extracted from @p errorKey, or NULL if no help message was found. - * The returned string has to be freed with elektraFree(). - */ - -/** - * Outputs the help message to stdout - * - * @param usage If this is not NULL, it will be used instead of the default usage line. - * @param prefix If this is not NULL, it will be inserted between the usage line and the options list. - */ -void printHelpMessage (const char * usage, const char * prefix) -{ - if (helpKey == NULL) - { - return; - } - - char * help = elektraGetOptsHelpMessage (helpKey, usage, prefix); - printf ("%s", help); - elektraFree (help); - keyDel (helpKey); - helpKey = NULL; -} - -// clang-format off - -// clang-format on - -// ------------------------- -// Enum conversion functions -// ------------------------- - -ELEKTRA_KEY_TO_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - - if (strcmp (string, "533") == 0) - { - *variable = C_FONTZ_PACKET_MODEL_533; - return 1; - } - if (strcmp (string, "631") == 0) - { - *variable = C_FONTZ_PACKET_MODEL_631; - return 1; - } - if (strcmp (string, "633") == 0) - { - *variable = C_FONTZ_PACKET_MODEL_633; - return 1; - } - if (strcmp (string, "635") == 0) - { - *variable = C_FONTZ_PACKET_MODEL_635; - return 1; - } - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel) -{ - switch (value) - { - case C_FONTZ_PACKET_MODEL_533: - return elektraStrDup ("533"); - case C_FONTZ_PACKET_MODEL_631: - return elektraStrDup ("631"); - case C_FONTZ_PACKET_MODEL_633: - return elektraStrDup ("633"); - case C_FONTZ_PACKET_MODEL_635: - return elektraStrDup ("635"); - } - - // should be unreachable - return ""; -} -ELEKTRA_KEY_TO_SIGNATURE (CursesColor, EnumCursesColor) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - - if (strcmp (string, "red") == 0) - { - *variable = CURSES_COLOR_RED; - return 1; - } - if (strcmp (string, "black") == 0) - { - *variable = CURSES_COLOR_BLACK; - return 1; - } - if (strcmp (string, "green") == 0) - { - *variable = CURSES_COLOR_GREEN; - return 1; - } - if (strcmp (string, "yellow") == 0) - { - *variable = CURSES_COLOR_YELLOW; - return 1; - } - if (strcmp (string, "blue") == 0) - { - *variable = CURSES_COLOR_BLUE; - return 1; - } - if (strcmp (string, "magenta") == 0) - { - *variable = CURSES_COLOR_MAGENTA; - return 1; - } - if (strcmp (string, "cyan") == 0) - { - *variable = CURSES_COLOR_CYAN; - return 1; - } - if (strcmp (string, "white") == 0) - { - *variable = CURSES_COLOR_WHITE; - return 1; - } - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (CursesColor, EnumCursesColor) -{ - switch (value) - { - case CURSES_COLOR_RED: - return elektraStrDup ("red"); - case CURSES_COLOR_BLACK: - return elektraStrDup ("black"); - case CURSES_COLOR_GREEN: - return elektraStrDup ("green"); - case CURSES_COLOR_YELLOW: - return elektraStrDup ("yellow"); - case CURSES_COLOR_BLUE: - return elektraStrDup ("blue"); - case CURSES_COLOR_MAGENTA: - return elektraStrDup ("magenta"); - case CURSES_COLOR_CYAN: - return elektraStrDup ("cyan"); - case CURSES_COLOR_WHITE: - return elektraStrDup ("white"); - } - - // should be unreachable - return ""; -} -ELEKTRA_KEY_TO_SIGNATURE (CwLnxModel, EnumCwLnxModel) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - - if (strcmp (string, "12232") == 0) - { - *variable = CW_LNX_MODEL_12232; - return 1; - } - if (strcmp (string, "12832") == 0) - { - *variable = CW_LNX_MODEL_12832; - return 1; - } - if (strcmp (string, "1602") == 0) - { - *variable = CW_LNX_MODEL_1602; - return 1; - } - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (CwLnxModel, EnumCwLnxModel) -{ - switch (value) - { - case CW_LNX_MODEL_12232: - return elektraStrDup ("12232"); - case CW_LNX_MODEL_12832: - return elektraStrDup ("12832"); - case CW_LNX_MODEL_1602: - return elektraStrDup ("1602"); - } - - // should be unreachable - return ""; -} -ELEKTRA_KEY_TO_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - - if (strcmp (string, "t6963") == 0) - { - *variable = GLCD_CONNECTION_TYPE_T6963; - return 1; - } - if (strcmp (string, "png") == 0) - { - *variable = GLCD_CONNECTION_TYPE_PNG; - return 1; - } - if (strcmp (string, "serdisplib") == 0) - { - *variable = GLCD_CONNECTION_TYPE_SERDISPLIB; - return 1; - } - if (strcmp (string, "glcd2usb") == 0) - { - *variable = GLCD_CONNECTION_TYPE_GLCD2USB; - return 1; - } - if (strcmp (string, "x11") == 0) - { - *variable = GLCD_CONNECTION_TYPE_X11; - return 1; - } - if (strcmp (string, "picolcdgfx") == 0) - { - *variable = GLCD_CONNECTION_TYPE_PICOLCDGFX; - return 1; - } - if (strcmp (string, "xyz") == 0) - { - *variable = GLCD_CONNECTION_TYPE_XYZ; - return 1; - } - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType) -{ - switch (value) - { - case GLCD_CONNECTION_TYPE_T6963: - return elektraStrDup ("t6963"); - case GLCD_CONNECTION_TYPE_PNG: - return elektraStrDup ("png"); - case GLCD_CONNECTION_TYPE_SERDISPLIB: - return elektraStrDup ("serdisplib"); - case GLCD_CONNECTION_TYPE_GLCD2USB: - return elektraStrDup ("glcd2usb"); - case GLCD_CONNECTION_TYPE_X11: - return elektraStrDup ("x11"); - case GLCD_CONNECTION_TYPE_PICOLCDGFX: - return elektraStrDup ("picolcdgfx"); - case GLCD_CONNECTION_TYPE_XYZ: - return elektraStrDup ("xyz"); - } - - // should be unreachable - return ""; -} -ELEKTRA_KEY_TO_SIGNATURE (HD44780Backlight, EnumHD44780Backlight) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - - if (strcmp (string, "none") == 0) - { - *variable = H_D44780_BACKLIGHT_NONE; - return 1; - } - if (strcmp (string, "external") == 0) - { - *variable = H_D44780_BACKLIGHT_EXTERNAL; - return 1; - } - if (strcmp (string, "internal") == 0) - { - *variable = H_D44780_BACKLIGHT_INTERNAL; - return 1; - } - if (strcmp (string, "internalCmds") == 0) - { - *variable = H_D44780_BACKLIGHT_INTERNAL_CMDS; - return 1; - } - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (HD44780Backlight, EnumHD44780Backlight) -{ - switch (value) - { - case H_D44780_BACKLIGHT_NONE: - return elektraStrDup ("none"); - case H_D44780_BACKLIGHT_EXTERNAL: - return elektraStrDup ("external"); - case H_D44780_BACKLIGHT_INTERNAL: - return elektraStrDup ("internal"); - case H_D44780_BACKLIGHT_INTERNAL_CMDS: - return elektraStrDup ("internalCmds"); - } - - // should be unreachable - return ""; -} -ELEKTRA_KEY_TO_SIGNATURE (HD44780Charmap, EnumHD44780Charmap) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - - if (strcmp (string, "hd44780_default") == 0) - { - *variable = H_D44780_CHARMAP_HD44780_DEFAULT; - return 1; - } - if (strcmp (string, "hd44780_euro") == 0) - { - *variable = H_D44780_CHARMAP_HD44780_EURO; - return 1; - } - if (strcmp (string, "ea_ks0073") == 0) - { - *variable = H_D44780_CHARMAP_EA_KS0073; - return 1; - } - if (strcmp (string, "sed1278f_0b") == 0) - { - *variable = H_D44780_CHARMAP_SED1278F_0B; - return 1; - } - if (strcmp (string, "hd44780_koi8_r") == 0) - { - *variable = H_D44780_CHARMAP_HD44780_KOI8_R; - return 1; - } - if (strcmp (string, "hd44780_cp1251") == 0) - { - *variable = H_D44780_CHARMAP_HD44780_CP1251; - return 1; - } - if (strcmp (string, "hd44780_8859_5") == 0) - { - *variable = H_D44780_CHARMAP_HD44780_8859_5; - return 1; - } - if (strcmp (string, "upd16314") == 0) - { - *variable = H_D44780_CHARMAP_UPD16314; - return 1; - } - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (HD44780Charmap, EnumHD44780Charmap) -{ - switch (value) - { - case H_D44780_CHARMAP_HD44780_DEFAULT: - return elektraStrDup ("hd44780_default"); - case H_D44780_CHARMAP_HD44780_EURO: - return elektraStrDup ("hd44780_euro"); - case H_D44780_CHARMAP_EA_KS0073: - return elektraStrDup ("ea_ks0073"); - case H_D44780_CHARMAP_SED1278F_0B: - return elektraStrDup ("sed1278f_0b"); - case H_D44780_CHARMAP_HD44780_KOI8_R: - return elektraStrDup ("hd44780_koi8_r"); - case H_D44780_CHARMAP_HD44780_CP1251: - return elektraStrDup ("hd44780_cp1251"); - case H_D44780_CHARMAP_HD44780_8859_5: - return elektraStrDup ("hd44780_8859_5"); - case H_D44780_CHARMAP_UPD16314: - return elektraStrDup ("upd16314"); - } - - // should be unreachable - return ""; -} -ELEKTRA_KEY_TO_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - - if (strcmp (string, "4bit") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_4BIT; - return 1; - } - if (strcmp (string, "8bit") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_8BIT; - return 1; - } - if (strcmp (string, "winamp") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_WINAMP; - return 1; - } - if (strcmp (string, "lcm162") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_LCM162; - return 1; - } - if (strcmp (string, "serialLpt") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_SERIAL_LPT; - return 1; - } - if (strcmp (string, "picanlcd") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_PICANLCD; - return 1; - } - if (strcmp (string, "lcdserializer") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_LCDSERIALIZER; - return 1; - } - if (strcmp (string, "los-panel") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_LOS_PANEL; - return 1; - } - if (strcmp (string, "vdr-lcd") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_VDR_LCD; - return 1; - } - if (strcmp (string, "vdr-wakeup") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_VDR_WAKEUP; - return 1; - } - if (strcmp (string, "ezio") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_EZIO; - return 1; - } - if (strcmp (string, "pertelian") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_PERTELIAN; - return 1; - } - if (strcmp (string, "lis2") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_LIS2; - return 1; - } - if (strcmp (string, "mplay") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_MPLAY; - return 1; - } - if (strcmp (string, "usblcd") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_USBLCD; - return 1; - } - if (strcmp (string, "bwctusb") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_BWCTUSB; - return 1; - } - if (strcmp (string, "lcd2usb") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_LCD2USB; - return 1; - } - if (strcmp (string, "usbtiny") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_USBTINY; - return 1; - } - if (strcmp (string, "uss720") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_USS720; - return 1; - } - if (strcmp (string, "USB-4-all") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_U_S_B_4_ALL; - return 1; - } - if (strcmp (string, "ftdi") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_FTDI; - return 1; - } - if (strcmp (string, "i2c") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_I2C; - return 1; - } - if (strcmp (string, "piplate") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_PIPLATE; - return 1; - } - if (strcmp (string, "spi") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_SPI; - return 1; - } - if (strcmp (string, "pifacecad") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_PIFACECAD; - return 1; - } - if (strcmp (string, "ethlcd") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_ETHLCD; - return 1; - } - if (strcmp (string, "raspberrypi") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_RASPBERRYPI; - return 1; - } - if (strcmp (string, "gpio") == 0) - { - *variable = H_D44780_CONNECTION_TYPE_GPIO; - return 1; - } - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType) -{ - switch (value) - { - case H_D44780_CONNECTION_TYPE_4BIT: - return elektraStrDup ("4bit"); - case H_D44780_CONNECTION_TYPE_8BIT: - return elektraStrDup ("8bit"); - case H_D44780_CONNECTION_TYPE_WINAMP: - return elektraStrDup ("winamp"); - case H_D44780_CONNECTION_TYPE_LCM162: - return elektraStrDup ("lcm162"); - case H_D44780_CONNECTION_TYPE_SERIAL_LPT: - return elektraStrDup ("serialLpt"); - case H_D44780_CONNECTION_TYPE_PICANLCD: - return elektraStrDup ("picanlcd"); - case H_D44780_CONNECTION_TYPE_LCDSERIALIZER: - return elektraStrDup ("lcdserializer"); - case H_D44780_CONNECTION_TYPE_LOS_PANEL: - return elektraStrDup ("los-panel"); - case H_D44780_CONNECTION_TYPE_VDR_LCD: - return elektraStrDup ("vdr-lcd"); - case H_D44780_CONNECTION_TYPE_VDR_WAKEUP: - return elektraStrDup ("vdr-wakeup"); - case H_D44780_CONNECTION_TYPE_EZIO: - return elektraStrDup ("ezio"); - case H_D44780_CONNECTION_TYPE_PERTELIAN: - return elektraStrDup ("pertelian"); - case H_D44780_CONNECTION_TYPE_LIS2: - return elektraStrDup ("lis2"); - case H_D44780_CONNECTION_TYPE_MPLAY: - return elektraStrDup ("mplay"); - case H_D44780_CONNECTION_TYPE_USBLCD: - return elektraStrDup ("usblcd"); - case H_D44780_CONNECTION_TYPE_BWCTUSB: - return elektraStrDup ("bwctusb"); - case H_D44780_CONNECTION_TYPE_LCD2USB: - return elektraStrDup ("lcd2usb"); - case H_D44780_CONNECTION_TYPE_USBTINY: - return elektraStrDup ("usbtiny"); - case H_D44780_CONNECTION_TYPE_USS720: - return elektraStrDup ("uss720"); - case H_D44780_CONNECTION_TYPE_U_S_B_4_ALL: - return elektraStrDup ("USB-4-all"); - case H_D44780_CONNECTION_TYPE_FTDI: - return elektraStrDup ("ftdi"); - case H_D44780_CONNECTION_TYPE_I2C: - return elektraStrDup ("i2c"); - case H_D44780_CONNECTION_TYPE_PIPLATE: - return elektraStrDup ("piplate"); - case H_D44780_CONNECTION_TYPE_SPI: - return elektraStrDup ("spi"); - case H_D44780_CONNECTION_TYPE_PIFACECAD: - return elektraStrDup ("pifacecad"); - case H_D44780_CONNECTION_TYPE_ETHLCD: - return elektraStrDup ("ethlcd"); - case H_D44780_CONNECTION_TYPE_RASPBERRYPI: - return elektraStrDup ("raspberrypi"); - case H_D44780_CONNECTION_TYPE_GPIO: - return elektraStrDup ("gpio"); - } - - // should be unreachable - return ""; -} -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - switch (string[0]) -{ -case 'e': -*variable = ELEKTRA_ENUM_HD44780_MODEL_EXTENDED; -return 1; -case 'p': -*variable = ELEKTRA_ENUM_HD44780_MODEL_PT6314_VFD; -return 1; -case 's': -*variable = ELEKTRA_ENUM_HD44780_MODEL_STANDARD; -return 1; -case 'w': -*variable = ELEKTRA_ENUM_HD44780_MODEL_WINSTAR_OLED; -return 1; -} - - - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model) -{ - switch (value) - { - case ELEKTRA_ENUM_HD44780_MODEL_STANDARD: - return elektraStrDup ("standard"); - case ELEKTRA_ENUM_HD44780_MODEL_EXTENDED: - return elektraStrDup ("extended"); - case ELEKTRA_ENUM_HD44780_MODEL_WINSTAR_OLED: - return elektraStrDup ("winstar_oled"); - case ELEKTRA_ENUM_HD44780_MODEL_PT6314_VFD: - return elektraStrDup ("pt6314_vfd"); - } - - // should be unreachable - return ""; -} -ELEKTRA_KEY_TO_SIGNATURE (IMonCharmap, EnumIMonCharmap) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - - if (strcmp (string, "hd44780_euro") == 0) - { - *variable = I_MON_CHARMAP_HD44780_EURO; - return 1; - } - if (strcmp (string, "upd16314") == 0) - { - *variable = I_MON_CHARMAP_UPD16314; - return 1; - } - if (strcmp (string, "hd44780_koi8_r") == 0) - { - *variable = I_MON_CHARMAP_HD44780_KOI8_R; - return 1; - } - if (strcmp (string, "hd44780_cp1251") == 0) - { - *variable = I_MON_CHARMAP_HD44780_CP1251; - return 1; - } - if (strcmp (string, "hd44780_8859_5") == 0) - { - *variable = I_MON_CHARMAP_HD44780_8859_5; - return 1; - } - if (strcmp (string, "none") == 0) - { - *variable = I_MON_CHARMAP_NONE; - return 1; - } - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (IMonCharmap, EnumIMonCharmap) -{ - switch (value) - { - case I_MON_CHARMAP_HD44780_EURO: - return elektraStrDup ("hd44780_euro"); - case I_MON_CHARMAP_UPD16314: - return elektraStrDup ("upd16314"); - case I_MON_CHARMAP_HD44780_KOI8_R: - return elektraStrDup ("hd44780_koi8_r"); - case I_MON_CHARMAP_HD44780_CP1251: - return elektraStrDup ("hd44780_cp1251"); - case I_MON_CHARMAP_HD44780_8859_5: - return elektraStrDup ("hd44780_8859_5"); - case I_MON_CHARMAP_NONE: - return elektraStrDup ("none"); - } - - // should be unreachable - return ""; -} -ELEKTRA_KEY_TO_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - switch (string[0]) -{ -case '0': -*variable = I_MON_L_C_D_DISC_MODE_0; -return 1; -case '1': -*variable = I_MON_L_C_D_DISC_MODE_1; -return 1; -} - - - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode) -{ - switch (value) - { - case I_MON_L_C_D_DISC_MODE_0: - return elektraStrDup ("0"); - case I_MON_L_C_D_DISC_MODE_1: - return elektraStrDup ("1"); - } - - // should be unreachable - return ""; -} -ELEKTRA_KEY_TO_SIGNATURE (Lcdm001Keys, EnumLcdm001Keys) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - switch (string[0]) -{ -case 'D': -*variable = LCDM001_KEYS_DOWN_KEY; -return 1; -case 'L': -*variable = LCDM001_KEYS_LEFT_KEY; -return 1; -case 'R': -*variable = LCDM001_KEYS_RIGHT_KEY; -return 1; -case 'U': -*variable = LCDM001_KEYS_UP_KEY; -return 1; -} - - - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (Lcdm001Keys, EnumLcdm001Keys) -{ - switch (value) - { - case LCDM001_KEYS_LEFT_KEY: - return elektraStrDup ("LeftKey"); - case LCDM001_KEYS_RIGHT_KEY: - return elektraStrDup ("RightKey"); - case LCDM001_KEYS_UP_KEY: - return elektraStrDup ("UpKey"); - case LCDM001_KEYS_DOWN_KEY: - return elektraStrDup ("DownKey"); - } - - // should be unreachable - return ""; -} -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - switch (string[0]) -{ -case 'b': -*variable = ELEKTRA_ENUM_MDM166A_CLOCK_BIG; -return 1; -case 'n': -*variable = ELEKTRA_ENUM_MDM166A_CLOCK_NO; -return 1; -case 's': -*variable = ELEKTRA_ENUM_MDM166A_CLOCK_SMALL; -return 1; -} - - - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock) -{ - switch (value) - { - case ELEKTRA_ENUM_MDM166A_CLOCK_NO: - return elektraStrDup ("no"); - case ELEKTRA_ENUM_MDM166A_CLOCK_SMALL: - return elektraStrDup ("small"); - case ELEKTRA_ENUM_MDM166A_CLOCK_BIG: - return elektraStrDup ("big"); - } - - // should be unreachable - return ""; -} -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - - if (strcmp (string, "lcd") == 0) - { - *variable = ELEKTRA_ENUM_MTXORB_TYPE_LCD; - return 1; - } - if (strcmp (string, "lkd") == 0) - { - *variable = ELEKTRA_ENUM_MTXORB_TYPE_LKD; - return 1; - } - if (strcmp (string, "vfd") == 0) - { - *variable = ELEKTRA_ENUM_MTXORB_TYPE_VFD; - return 1; - } - if (strcmp (string, "vkd") == 0) - { - *variable = ELEKTRA_ENUM_MTXORB_TYPE_VKD; - return 1; - } - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType) -{ - switch (value) - { - case ELEKTRA_ENUM_MTXORB_TYPE_LCD: - return elektraStrDup ("lcd"); - case ELEKTRA_ENUM_MTXORB_TYPE_LKD: - return elektraStrDup ("lkd"); - case ELEKTRA_ENUM_MTXORB_TYPE_VFD: - return elektraStrDup ("vfd"); - case ELEKTRA_ENUM_MTXORB_TYPE_VKD: - return elektraStrDup ("vkd"); - } - - // should be unreachable - return ""; -} -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - switch (string[0]) -{ -case 'b': -*variable = ELEKTRA_ENUM_SED1330_CONNECTIONTYPE_BITSHAKER; -return 1; -case 'c': -*variable = ELEKTRA_ENUM_SED1330_CONNECTIONTYPE_CLASSIC; -return 1; -} - - - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype) -{ - switch (value) - { - case ELEKTRA_ENUM_SED1330_CONNECTIONTYPE_CLASSIC: - return elektraStrDup ("classic"); - case ELEKTRA_ENUM_SED1330_CONNECTIONTYPE_BITSHAKER: - return elektraStrDup ("bitshaker"); - } - - // should be unreachable - return ""; -} -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - - if (strcmp (string, "G321D") == 0) - { - *variable = ELEKTRA_ENUM_SED1330_TYPE_G321_D; - return 1; - } - if (strcmp (string, "G121C") == 0) - { - *variable = ELEKTRA_ENUM_SED1330_TYPE_G121_C; - return 1; - } - if (strcmp (string, "G242C") == 0) - { - *variable = ELEKTRA_ENUM_SED1330_TYPE_G242_C; - return 1; - } - if (strcmp (string, "G191D") == 0) - { - *variable = ELEKTRA_ENUM_SED1330_TYPE_G191_D; - return 1; - } - if (strcmp (string, "G2446") == 0) - { - *variable = ELEKTRA_ENUM_SED1330_TYPE_G2446; - return 1; - } - if (strcmp (string, "SP14Q002") == 0) - { - *variable = ELEKTRA_ENUM_SED1330_TYPE_S_P14_Q002; - return 1; - } - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type) -{ - switch (value) - { - case ELEKTRA_ENUM_SED1330_TYPE_G321_D: - return elektraStrDup ("G321D"); - case ELEKTRA_ENUM_SED1330_TYPE_G121_C: - return elektraStrDup ("G121C"); - case ELEKTRA_ENUM_SED1330_TYPE_G242_C: - return elektraStrDup ("G242C"); - case ELEKTRA_ENUM_SED1330_TYPE_G191_D: - return elektraStrDup ("G191D"); - case ELEKTRA_ENUM_SED1330_TYPE_G2446: - return elektraStrDup ("G2446"); - case ELEKTRA_ENUM_SED1330_TYPE_S_P14_Q002: - return elektraStrDup ("SP14Q002"); - } - - // should be unreachable - return ""; -} -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - - if (strcmp (string, "AEDEX") == 0) - { - *variable = ELEKTRA_ENUM_SERIALPOS_TYPE_A_E_D_E_X; - return 1; - } - if (strcmp (string, "CD5220") == 0) - { - *variable = ELEKTRA_ENUM_SERIALPOS_TYPE_C_D5220; - return 1; - } - if (strcmp (string, "Epson") == 0) - { - *variable = ELEKTRA_ENUM_SERIALPOS_TYPE_EPSON; - return 1; - } - if (strcmp (string, "Emax") == 0) - { - *variable = ELEKTRA_ENUM_SERIALPOS_TYPE_EMAX; - return 1; - } - if (strcmp (string, "LogicControls") == 0) - { - *variable = ELEKTRA_ENUM_SERIALPOS_TYPE_LOGIC_CONTROLS; - return 1; - } - if (strcmp (string, "Ultimate") == 0) - { - *variable = ELEKTRA_ENUM_SERIALPOS_TYPE_ULTIMATE; - return 1; - } - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType) -{ - switch (value) - { - case ELEKTRA_ENUM_SERIALPOS_TYPE_A_E_D_E_X: - return elektraStrDup ("AEDEX"); - case ELEKTRA_ENUM_SERIALPOS_TYPE_C_D5220: - return elektraStrDup ("CD5220"); - case ELEKTRA_ENUM_SERIALPOS_TYPE_EPSON: - return elektraStrDup ("Epson"); - case ELEKTRA_ENUM_SERIALPOS_TYPE_EMAX: - return elektraStrDup ("Emax"); - case ELEKTRA_ENUM_SERIALPOS_TYPE_LOGIC_CONTROLS: - return elektraStrDup ("LogicControls"); - case ELEKTRA_ENUM_SERIALPOS_TYPE_ULTIMATE: - return elektraStrDup ("Ultimate"); - } - - // should be unreachable - return ""; -} -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - - if (strcmp (string, "off") == 0) - { - *variable = ELEKTRA_ENUM_SERVER_BACKLIGHT_OFF; - return 1; - } - if (strcmp (string, "on") == 0) - { - *variable = ELEKTRA_ENUM_SERVER_BACKLIGHT_ON; - return 1; - } - if (strcmp (string, "open") == 0) - { - *variable = ELEKTRA_ENUM_SERVER_BACKLIGHT_OPEN; - return 1; - } - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight) -{ - switch (value) - { - case ELEKTRA_ENUM_SERVER_BACKLIGHT_OFF: - return elektraStrDup ("off"); - case ELEKTRA_ENUM_SERVER_BACKLIGHT_ON: - return elektraStrDup ("on"); - case ELEKTRA_ENUM_SERVER_BACKLIGHT_OPEN: - return elektraStrDup ("open"); - } - - // should be unreachable - return ""; -} -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - - if (strcmp (string, "off") == 0) - { - *variable = ELEKTRA_ENUM_SERVER_HEARTBEAT_OFF; - return 1; - } - if (strcmp (string, "on") == 0) - { - *variable = ELEKTRA_ENUM_SERVER_HEARTBEAT_ON; - return 1; - } - if (strcmp (string, "open") == 0) - { - *variable = ELEKTRA_ENUM_SERVER_HEARTBEAT_OPEN; - return 1; - } - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat) -{ - switch (value) - { - case ELEKTRA_ENUM_SERVER_HEARTBEAT_OFF: - return elektraStrDup ("off"); - case ELEKTRA_ENUM_SERVER_HEARTBEAT_ON: - return elektraStrDup ("on"); - case ELEKTRA_ENUM_SERVER_HEARTBEAT_OPEN: - return elektraStrDup ("open"); - } - - // should be unreachable - return ""; -} -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen) -{ - const char * string; - if (!elektraKeyToString (key, &string) || strlen (string) == 0) - { - return 0; - } - - - if (strcmp (string, "off") == 0) - { - *variable = ELEKTRA_ENUM_SERVER_SERVERSCREEN_OFF; - return 1; - } - if (strcmp (string, "on") == 0) - { - *variable = ELEKTRA_ENUM_SERVER_SERVERSCREEN_ON; - return 1; - } - if (strcmp (string, "blank") == 0) - { - *variable = ELEKTRA_ENUM_SERVER_SERVERSCREEN_BLANK; - return 1; - } - - return 0; -} - -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen) -{ - switch (value) - { - case ELEKTRA_ENUM_SERVER_SERVERSCREEN_OFF: - return elektraStrDup ("off"); - case ELEKTRA_ENUM_SERVER_SERVERSCREEN_ON: - return elektraStrDup ("on"); - case ELEKTRA_ENUM_SERVER_SERVERSCREEN_BLANK: - return elektraStrDup ("blank"); - } - - // should be unreachable - return ""; -} - -// ------------------------- -// Enum accessor functions -// ------------------------- - -ELEKTRA_GET_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel) -{ - CFontzPacketModel result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumCFontzPacketModel) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (CFontzPacketModel) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel) -{ - CFontzPacketModel result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumCFontzPacketModel) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (CFontzPacketModel) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel) -{ - char * string = ELEKTRA_TO_STRING (EnumCFontzPacketModel) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel) -{ - char * string = ELEKTRA_TO_STRING (EnumCFontzPacketModel) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} -ELEKTRA_GET_SIGNATURE (CursesColor, EnumCursesColor) -{ - CursesColor result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumCursesColor) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (CursesColor) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (CursesColor, EnumCursesColor) -{ - CursesColor result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumCursesColor) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (CursesColor) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (CursesColor, EnumCursesColor) -{ - char * string = ELEKTRA_TO_STRING (EnumCursesColor) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (CursesColor, EnumCursesColor) -{ - char * string = ELEKTRA_TO_STRING (EnumCursesColor) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} -ELEKTRA_GET_SIGNATURE (CwLnxModel, EnumCwLnxModel) -{ - CwLnxModel result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumCwLnxModel) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (CwLnxModel) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (CwLnxModel, EnumCwLnxModel) -{ - CwLnxModel result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumCwLnxModel) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (CwLnxModel) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (CwLnxModel, EnumCwLnxModel) -{ - char * string = ELEKTRA_TO_STRING (EnumCwLnxModel) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (CwLnxModel, EnumCwLnxModel) -{ - char * string = ELEKTRA_TO_STRING (EnumCwLnxModel) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} -ELEKTRA_GET_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType) -{ - GlcdConnectionType result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumGlcdConnectionType) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (GlcdConnectionType) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType) -{ - GlcdConnectionType result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumGlcdConnectionType) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (GlcdConnectionType) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType) -{ - char * string = ELEKTRA_TO_STRING (EnumGlcdConnectionType) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType) -{ - char * string = ELEKTRA_TO_STRING (EnumGlcdConnectionType) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} -ELEKTRA_GET_SIGNATURE (HD44780Backlight, EnumHD44780Backlight) -{ - HD44780Backlight result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumHD44780Backlight) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (HD44780Backlight) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (HD44780Backlight, EnumHD44780Backlight) -{ - HD44780Backlight result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumHD44780Backlight) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (HD44780Backlight) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (HD44780Backlight, EnumHD44780Backlight) -{ - char * string = ELEKTRA_TO_STRING (EnumHD44780Backlight) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (HD44780Backlight, EnumHD44780Backlight) -{ - char * string = ELEKTRA_TO_STRING (EnumHD44780Backlight) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} -ELEKTRA_GET_SIGNATURE (HD44780Charmap, EnumHD44780Charmap) -{ - HD44780Charmap result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumHD44780Charmap) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (HD44780Charmap) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (HD44780Charmap, EnumHD44780Charmap) -{ - HD44780Charmap result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumHD44780Charmap) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (HD44780Charmap) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (HD44780Charmap, EnumHD44780Charmap) -{ - char * string = ELEKTRA_TO_STRING (EnumHD44780Charmap) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (HD44780Charmap, EnumHD44780Charmap) -{ - char * string = ELEKTRA_TO_STRING (EnumHD44780Charmap) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} -ELEKTRA_GET_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType) -{ - HD44780ConnectionType result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumHD44780ConnectionType) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (HD44780ConnectionType) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType) -{ - HD44780ConnectionType result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumHD44780ConnectionType) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (HD44780ConnectionType) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType) -{ - char * string = ELEKTRA_TO_STRING (EnumHD44780ConnectionType) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType) -{ - char * string = ELEKTRA_TO_STRING (EnumHD44780ConnectionType) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} -ELEKTRA_GET_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model) -{ - ElektraEnumHd44780Model result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumHd44780Model) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumHd44780Model) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model) -{ - ElektraEnumHd44780Model result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumHd44780Model) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumHd44780Model) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model) -{ - char * string = ELEKTRA_TO_STRING (EnumHd44780Model) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model) -{ - char * string = ELEKTRA_TO_STRING (EnumHd44780Model) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} -ELEKTRA_GET_SIGNATURE (IMonCharmap, EnumIMonCharmap) -{ - IMonCharmap result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumIMonCharmap) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (IMonCharmap) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (IMonCharmap, EnumIMonCharmap) -{ - IMonCharmap result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumIMonCharmap) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (IMonCharmap) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (IMonCharmap, EnumIMonCharmap) -{ - char * string = ELEKTRA_TO_STRING (EnumIMonCharmap) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (IMonCharmap, EnumIMonCharmap) -{ - char * string = ELEKTRA_TO_STRING (EnumIMonCharmap) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} -ELEKTRA_GET_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode) -{ - IMonLCDDiscMode result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumIMonLCDDiscMode) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (IMonLCDDiscMode) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode) -{ - IMonLCDDiscMode result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumIMonLCDDiscMode) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (IMonLCDDiscMode) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode) -{ - char * string = ELEKTRA_TO_STRING (EnumIMonLCDDiscMode) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode) -{ - char * string = ELEKTRA_TO_STRING (EnumIMonLCDDiscMode) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} -ELEKTRA_GET_SIGNATURE (Lcdm001Keys, EnumLcdm001Keys) -{ - Lcdm001Keys result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumLcdm001Keys) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (Lcdm001Keys) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (Lcdm001Keys, EnumLcdm001Keys) -{ - Lcdm001Keys result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumLcdm001Keys) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (Lcdm001Keys) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (Lcdm001Keys, EnumLcdm001Keys) -{ - char * string = ELEKTRA_TO_STRING (EnumLcdm001Keys) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (Lcdm001Keys, EnumLcdm001Keys) -{ - char * string = ELEKTRA_TO_STRING (EnumLcdm001Keys) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} -ELEKTRA_GET_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock) -{ - ElektraEnumMdm166aClock result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumMdm166aClock) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumMdm166aClock) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock) -{ - ElektraEnumMdm166aClock result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumMdm166aClock) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumMdm166aClock) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock) -{ - char * string = ELEKTRA_TO_STRING (EnumMdm166aClock) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock) -{ - char * string = ELEKTRA_TO_STRING (EnumMdm166aClock) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} -ELEKTRA_GET_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType) -{ - ElektraEnumMtxorbType result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumMtxorbType) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumMtxorbType) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType) -{ - ElektraEnumMtxorbType result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumMtxorbType) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumMtxorbType) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType) -{ - char * string = ELEKTRA_TO_STRING (EnumMtxorbType) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType) -{ - char * string = ELEKTRA_TO_STRING (EnumMtxorbType) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} -ELEKTRA_GET_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype) -{ - ElektraEnumSed1330Connectiontype result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumSed1330Connectiontype) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumSed1330Connectiontype) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype) -{ - ElektraEnumSed1330Connectiontype result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumSed1330Connectiontype) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumSed1330Connectiontype) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype) -{ - char * string = ELEKTRA_TO_STRING (EnumSed1330Connectiontype) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype) -{ - char * string = ELEKTRA_TO_STRING (EnumSed1330Connectiontype) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} -ELEKTRA_GET_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type) -{ - ElektraEnumSed1330Type result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumSed1330Type) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumSed1330Type) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type) -{ - ElektraEnumSed1330Type result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumSed1330Type) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumSed1330Type) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type) -{ - char * string = ELEKTRA_TO_STRING (EnumSed1330Type) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type) -{ - char * string = ELEKTRA_TO_STRING (EnumSed1330Type) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} -ELEKTRA_GET_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType) -{ - ElektraEnumSerialposType result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumSerialposType) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumSerialposType) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType) -{ - ElektraEnumSerialposType result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumSerialposType) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumSerialposType) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType) -{ - char * string = ELEKTRA_TO_STRING (EnumSerialposType) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType) -{ - char * string = ELEKTRA_TO_STRING (EnumSerialposType) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} -ELEKTRA_GET_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight) -{ - ElektraEnumServerBacklight result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumServerBacklight) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumServerBacklight) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight) -{ - ElektraEnumServerBacklight result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumServerBacklight) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumServerBacklight) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight) -{ - char * string = ELEKTRA_TO_STRING (EnumServerBacklight) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight) -{ - char * string = ELEKTRA_TO_STRING (EnumServerBacklight) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} -ELEKTRA_GET_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat) -{ - ElektraEnumServerHeartbeat result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumServerHeartbeat) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumServerHeartbeat) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat) -{ - ElektraEnumServerHeartbeat result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumServerHeartbeat) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumServerHeartbeat) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat) -{ - char * string = ELEKTRA_TO_STRING (EnumServerHeartbeat) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat) -{ - char * string = ELEKTRA_TO_STRING (EnumServerHeartbeat) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} -ELEKTRA_GET_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen) -{ - ElektraEnumServerServerscreen result; - const Key * key = elektraFindKey (elektra, keyname, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumServerServerscreen) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumServerServerscreen) 0; - } - return result; -} - -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen) -{ - ElektraEnumServerServerscreen result; - const Key * key = elektraFindArrayElementKey (elektra, keyname, index, KDB_TYPE_ENUM); - if (!ELEKTRA_KEY_TO (EnumServerServerscreen) (key, &result)) - { - elektraFatalError (elektra, elektraErrorConversionFromString (KDB_TYPE_ENUM, keyname, keyString (key))); - return (ElektraEnumServerServerscreen) 0; - } - return result; -} - -ELEKTRA_SET_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen) -{ - char * string = ELEKTRA_TO_STRING (EnumServerServerscreen) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawString (elektra, keyname, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen) -{ - char * string = ELEKTRA_TO_STRING (EnumServerServerscreen) (value); - if (string == 0) - { - *error = elektraErrorConversionToString (KDB_TYPE_ENUM, keyname); - return; - } - elektraSetRawStringArrayElement (elektra, keyname, index, string, KDB_TYPE_ENUM, error); - elektraFree (string); -} - - -// clang-format off - -// clang-format on - -// ------------------------- -// Struct accessor functions -// ------------------------- - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (BayradDriverConfig, StructBayradDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 7 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "device", 7); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 7); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 7); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (BayradDriverConfig, StructBayradDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 7 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "device", 7); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 7); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 7); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const BayradDriverConfig *, StructBayradDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 7 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "device", 7); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 7); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 7); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const BayradDriverConfig *, StructBayradDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 7 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "device", 7); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 7); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 7); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (CFontzDriverConfig, StructCFontzDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "newfirmware", 14); - - - result->newfirmware = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 14); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "usb", 14); - - - result->usb = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (CFontzDriverConfig, StructCFontzDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "newfirmware", 14); - - - result->newfirmware = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 14); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "usb", 14); - - - result->usb = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const CFontzDriverConfig *, StructCFontzDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "newfirmware", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->newfirmware, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "usb", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->usb, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const CFontzDriverConfig *, StructCFontzDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "newfirmware", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->newfirmware, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "usb", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->usb, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (CFontzPacketDriverConfig, StructCFontzPacketDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "model", 14); - - - result->model = ELEKTRA_GET (EnumCFontzPacketModel) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "oldfirmware", 14); - - - result->oldfirmware = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 14); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "usb", 14); - - - result->usb = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (CFontzPacketDriverConfig, StructCFontzPacketDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "model", 14); - - - result->model = ELEKTRA_GET (EnumCFontzPacketModel) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "oldfirmware", 14); - - - result->oldfirmware = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 14); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "usb", 14); - - - result->usb = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const CFontzPacketDriverConfig *, StructCFontzPacketDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "model", 14); - - ELEKTRA_SET (EnumCFontzPacketModel) (elektra, field, value->model, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "oldfirmware", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->oldfirmware, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "usb", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->usb, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const CFontzPacketDriverConfig *, StructCFontzPacketDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "model", 14); - - ELEKTRA_SET (EnumCFontzPacketModel) (elektra, field, value->model, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "oldfirmware", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->oldfirmware, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "usb", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->usb, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (CursesDriverConfig, StructCursesDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 11 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "background", 11); - - - result->background = ELEKTRA_GET (EnumCursesColor) (elektra, field); - - strncpy (&field[nameLen], "backlight", 11); - - - result->backlight = ELEKTRA_GET (EnumCursesColor) (elektra, field); - - strncpy (&field[nameLen], "drawborder", 11); - - - result->drawborder = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "file", 11); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "foreground", 11); - - - result->foreground = ELEKTRA_GET (EnumCursesColor) (elektra, field); - - strncpy (&field[nameLen], "size", 11); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "topleftx", 11); - - - result->topleftx = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "toplefty", 11); - - - result->toplefty = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "useacs", 11); - - - result->useacs = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (CursesDriverConfig, StructCursesDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 11 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "background", 11); - - - result->background = ELEKTRA_GET (EnumCursesColor) (elektra, field); - - strncpy (&field[nameLen], "backlight", 11); - - - result->backlight = ELEKTRA_GET (EnumCursesColor) (elektra, field); - - strncpy (&field[nameLen], "drawborder", 11); - - - result->drawborder = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "file", 11); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "foreground", 11); - - - result->foreground = ELEKTRA_GET (EnumCursesColor) (elektra, field); - - strncpy (&field[nameLen], "size", 11); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "topleftx", 11); - - - result->topleftx = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "toplefty", 11); - - - result->toplefty = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "useacs", 11); - - - result->useacs = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const CursesDriverConfig *, StructCursesDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 11 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "background", 11); - - ELEKTRA_SET (EnumCursesColor) (elektra, field, value->background, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "backlight", 11); - - ELEKTRA_SET (EnumCursesColor) (elektra, field, value->backlight, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "drawborder", 11); - - ELEKTRA_SET (Boolean) (elektra, field, value->drawborder, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 11); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "foreground", 11); - - ELEKTRA_SET (EnumCursesColor) (elektra, field, value->foreground, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 11); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "topleftx", 11); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->topleftx, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "toplefty", 11); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->toplefty, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "useacs", 11); - - ELEKTRA_SET (Boolean) (elektra, field, value->useacs, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const CursesDriverConfig *, StructCursesDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 11 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "background", 11); - - ELEKTRA_SET (EnumCursesColor) (elektra, field, value->background, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "backlight", 11); - - ELEKTRA_SET (EnumCursesColor) (elektra, field, value->backlight, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "drawborder", 11); - - ELEKTRA_SET (Boolean) (elektra, field, value->drawborder, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 11); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "foreground", 11); - - ELEKTRA_SET (EnumCursesColor) (elektra, field, value->foreground, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 11); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "topleftx", 11); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->topleftx, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "toplefty", 11); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->toplefty, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "useacs", 11); - - ELEKTRA_SET (Boolean) (elektra, field, value->useacs, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (CwLnxDriverConfig, StructCwLnxDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 17 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "device", 17); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 17); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_a", 17); - - - result->keymapA = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_b", 17); - - - result->keymapB = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_c", 17); - - - result->keymapC = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_d", 17); - - - result->keymapD = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_e", 17); - - - result->keymapE = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_f", 17); - - - result->keymapF = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keypad", 17); - - - result->keypad = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "keypad_test_mode", 17); - - - result->keypadTestMode = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "model", 17); - - - result->model = ELEKTRA_GET (EnumCwLnxModel) (elektra, field); - - strncpy (&field[nameLen], "size", 17); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 17); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (CwLnxDriverConfig, StructCwLnxDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 17 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "device", 17); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 17); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_a", 17); - - - result->keymapA = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_b", 17); - - - result->keymapB = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_c", 17); - - - result->keymapC = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_d", 17); - - - result->keymapD = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_e", 17); - - - result->keymapE = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_f", 17); - - - result->keymapF = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keypad", 17); - - - result->keypad = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "keypad_test_mode", 17); - - - result->keypadTestMode = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "model", 17); - - - result->model = ELEKTRA_GET (EnumCwLnxModel) (elektra, field); - - strncpy (&field[nameLen], "size", 17); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 17); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const CwLnxDriverConfig *, StructCwLnxDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 17 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "device", 17); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 17); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_a", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymapA, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_b", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymapB, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_c", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymapC, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_d", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymapD, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_e", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymapE, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_f", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymapF, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keypad", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->keypad, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keypad_test_mode", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->keypadTestMode, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "model", 17); - - ELEKTRA_SET (EnumCwLnxModel) (elektra, field, value->model, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 17); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const CwLnxDriverConfig *, StructCwLnxDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 17 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "device", 17); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 17); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_a", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymapA, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_b", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymapB, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_c", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymapC, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_d", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymapD, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_e", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymapE, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_f", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymapF, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keypad", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->keypad, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keypad_test_mode", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->keypadTestMode, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "model", 17); - - ELEKTRA_SET (EnumCwLnxModel) (elektra, field, value->model, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 17); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Ea65DriverConfig, StructEa65DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Ea65DriverConfig, StructEa65DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const Ea65DriverConfig *, StructEa65DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Ea65DriverConfig *, StructEa65DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (EyeboxOneDriverConfig, StructEyeboxOneDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 17 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 17); - - - result->backlight = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "brightness", 17); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 17); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "cursor", 17); - - - result->cursor = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "device", 17); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "downkey", 17); - - - result->downkey = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "escapekey", 17); - - - result->escapekey = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 17); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keypad_test_mode", 17); - - - result->keypadTestMode = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "leftkey", 17); - - - result->leftkey = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 17); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 17); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "rightkey", 17); - - - result->rightkey = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "size", 17); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 17); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "upkey", 17); - - - result->upkey = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (EyeboxOneDriverConfig, StructEyeboxOneDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 17 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 17); - - - result->backlight = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "brightness", 17); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 17); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "cursor", 17); - - - result->cursor = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "device", 17); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "downkey", 17); - - - result->downkey = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "escapekey", 17); - - - result->escapekey = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 17); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keypad_test_mode", 17); - - - result->keypadTestMode = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "leftkey", 17); - - - result->leftkey = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 17); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 17); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "rightkey", 17); - - - result->rightkey = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "size", 17); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 17); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "upkey", 17); - - - result->upkey = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const EyeboxOneDriverConfig *, StructEyeboxOneDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 17 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "cursor", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->cursor, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 17); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "downkey", 17); - - ELEKTRA_SET (String) (elektra, field, value->downkey, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "escapekey", 17); - - ELEKTRA_SET (String) (elektra, field, value->escapekey, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 17); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keypad_test_mode", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->keypadTestMode, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "leftkey", 17); - - ELEKTRA_SET (String) (elektra, field, value->leftkey, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "rightkey", 17); - - ELEKTRA_SET (String) (elektra, field, value->rightkey, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 17); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "upkey", 17); - - ELEKTRA_SET (String) (elektra, field, value->upkey, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const EyeboxOneDriverConfig *, StructEyeboxOneDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 17 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "cursor", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->cursor, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 17); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "downkey", 17); - - ELEKTRA_SET (String) (elektra, field, value->downkey, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "escapekey", 17); - - ELEKTRA_SET (String) (elektra, field, value->escapekey, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 17); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keypad_test_mode", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->keypadTestMode, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "leftkey", 17); - - ELEKTRA_SET (String) (elektra, field, value->leftkey, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "rightkey", 17); - - ELEKTRA_SET (String) (elektra, field, value->rightkey, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 17); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "upkey", 17); - - ELEKTRA_SET (String) (elektra, field, value->upkey, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (FutabaDriverConfig, StructFutabaDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 5 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "file", 5); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (FutabaDriverConfig, StructFutabaDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 5 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "file", 5); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const FutabaDriverConfig *, StructFutabaDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 5 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "file", 5); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const FutabaDriverConfig *, StructFutabaDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 5 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "file", 5); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (G15DriverConfig, StructG15DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (G15DriverConfig, StructG15DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const G15DriverConfig *, StructG15DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const G15DriverConfig *, StructG15DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (GlcdDriverConfig, StructGlcdDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 22 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "bidirectional", 22); - - - result->bidirectional = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "brightness", 22); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "cellsize", 22); - - - result->cellsize = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "connectiontype", 22); - - - result->connectiontype = ELEKTRA_GET (EnumGlcdConnectionType) (elektra, field); - - strncpy (&field[nameLen], "contrast", 22); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "delaybus", 22); - - - result->delaybus = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "file", 22); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "fonthasicons", 22); - - - result->fonthasicons = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "keymap_a", 22); - - - result->keymapA = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_b", 22); - - - result->keymapB = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_c", 22); - - - result->keymapC = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_d", 22); - - - result->keymapD = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_e", 22); - - - result->keymapE = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_f", 22); - - - result->keymapF = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keyrepeatdelay", 22); - - - result->keyrepeatdelay = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "keyrepeatinterval", 22); - - - result->keyrepeatinterval = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "normal_font", 22); - - - result->normalFont = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 22); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "picolcdgfx_inverted", 22); - - - result->picolcdgfxInverted = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "picolcdgfx_keytimeout", 22); - - - result->picolcdgfxKeytimeout = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "port", 22); - - - result->port = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 22); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "serdisp_device", 22); - - - result->serdispDevice = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "serdisp_name", 22); - - - result->serdispName = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "serdisp_options", 22); - - - result->serdispOptions = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "size", 22); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "useft2", 22); - - - result->useft2 = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "x11_backlightcolor", 22); - - - result->x11Backlightcolor = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "x11_border", 22); - - - result->x11Border = ELEKTRA_GET (UnsignedLong) (elektra, field); - - strncpy (&field[nameLen], "x11_inverted", 22); - - - result->x11Inverted = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "x11_pixelcolor", 22); - - - result->x11Pixelcolor = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "x11_pixelsize", 22); - - - result->x11Pixelsize = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (GlcdDriverConfig, StructGlcdDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 22 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "bidirectional", 22); - - - result->bidirectional = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "brightness", 22); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "cellsize", 22); - - - result->cellsize = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "connectiontype", 22); - - - result->connectiontype = ELEKTRA_GET (EnumGlcdConnectionType) (elektra, field); - - strncpy (&field[nameLen], "contrast", 22); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "delaybus", 22); - - - result->delaybus = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "file", 22); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "fonthasicons", 22); - - - result->fonthasicons = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "keymap_a", 22); - - - result->keymapA = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_b", 22); - - - result->keymapB = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_c", 22); - - - result->keymapC = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_d", 22); - - - result->keymapD = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_e", 22); - - - result->keymapE = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_f", 22); - - - result->keymapF = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keyrepeatdelay", 22); - - - result->keyrepeatdelay = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "keyrepeatinterval", 22); - - - result->keyrepeatinterval = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "normal_font", 22); - - - result->normalFont = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 22); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "picolcdgfx_inverted", 22); - - - result->picolcdgfxInverted = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "picolcdgfx_keytimeout", 22); - - - result->picolcdgfxKeytimeout = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "port", 22); - - - result->port = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 22); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "serdisp_device", 22); - - - result->serdispDevice = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "serdisp_name", 22); - - - result->serdispName = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "serdisp_options", 22); - - - result->serdispOptions = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "size", 22); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "useft2", 22); - - - result->useft2 = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "x11_backlightcolor", 22); - - - result->x11Backlightcolor = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "x11_border", 22); - - - result->x11Border = ELEKTRA_GET (UnsignedLong) (elektra, field); - - strncpy (&field[nameLen], "x11_inverted", 22); - - - result->x11Inverted = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "x11_pixelcolor", 22); - - - result->x11Pixelcolor = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "x11_pixelsize", 22); - - - result->x11Pixelsize = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const GlcdDriverConfig *, StructGlcdDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 22 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "bidirectional", 22); - - ELEKTRA_SET (Boolean) (elektra, field, value->bidirectional, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 22); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "cellsize", 22); - - ELEKTRA_SET (String) (elektra, field, value->cellsize, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "connectiontype", 22); - - ELEKTRA_SET (EnumGlcdConnectionType) (elektra, field, value->connectiontype, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 22); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "delaybus", 22); - - ELEKTRA_SET (Boolean) (elektra, field, value->delaybus, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 22); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "fonthasicons", 22); - - ELEKTRA_SET (Boolean) (elektra, field, value->fonthasicons, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_a", 22); - - ELEKTRA_SET (String) (elektra, field, value->keymapA, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_b", 22); - - ELEKTRA_SET (String) (elektra, field, value->keymapB, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_c", 22); - - ELEKTRA_SET (String) (elektra, field, value->keymapC, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_d", 22); - - ELEKTRA_SET (String) (elektra, field, value->keymapD, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_e", 22); - - ELEKTRA_SET (String) (elektra, field, value->keymapE, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_f", 22); - - ELEKTRA_SET (String) (elektra, field, value->keymapF, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keyrepeatdelay", 22); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->keyrepeatdelay, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keyrepeatinterval", 22); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->keyrepeatinterval, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "normal_font", 22); - - ELEKTRA_SET (String) (elektra, field, value->normalFont, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 22); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "picolcdgfx_inverted", 22); - - ELEKTRA_SET (Boolean) (elektra, field, value->picolcdgfxInverted, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "picolcdgfx_keytimeout", 22); - - ELEKTRA_SET (String) (elektra, field, value->picolcdgfxKeytimeout, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "port", 22); - - ELEKTRA_SET (String) (elektra, field, value->port, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 22); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "serdisp_device", 22); - - ELEKTRA_SET (String) (elektra, field, value->serdispDevice, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "serdisp_name", 22); - - ELEKTRA_SET (String) (elektra, field, value->serdispName, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "serdisp_options", 22); - - ELEKTRA_SET (String) (elektra, field, value->serdispOptions, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 22); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "useft2", 22); - - ELEKTRA_SET (Boolean) (elektra, field, value->useft2, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "x11_backlightcolor", 22); - - ELEKTRA_SET (String) (elektra, field, value->x11Backlightcolor, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "x11_border", 22); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->x11Border, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "x11_inverted", 22); - - ELEKTRA_SET (Boolean) (elektra, field, value->x11Inverted, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "x11_pixelcolor", 22); - - ELEKTRA_SET (String) (elektra, field, value->x11Pixelcolor, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "x11_pixelsize", 22); - - ELEKTRA_SET (String) (elektra, field, value->x11Pixelsize, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const GlcdDriverConfig *, StructGlcdDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 22 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "bidirectional", 22); - - ELEKTRA_SET (Boolean) (elektra, field, value->bidirectional, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 22); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "cellsize", 22); - - ELEKTRA_SET (String) (elektra, field, value->cellsize, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "connectiontype", 22); - - ELEKTRA_SET (EnumGlcdConnectionType) (elektra, field, value->connectiontype, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 22); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "delaybus", 22); - - ELEKTRA_SET (Boolean) (elektra, field, value->delaybus, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 22); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "fonthasicons", 22); - - ELEKTRA_SET (Boolean) (elektra, field, value->fonthasicons, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_a", 22); - - ELEKTRA_SET (String) (elektra, field, value->keymapA, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_b", 22); - - ELEKTRA_SET (String) (elektra, field, value->keymapB, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_c", 22); - - ELEKTRA_SET (String) (elektra, field, value->keymapC, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_d", 22); - - ELEKTRA_SET (String) (elektra, field, value->keymapD, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_e", 22); - - ELEKTRA_SET (String) (elektra, field, value->keymapE, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_f", 22); - - ELEKTRA_SET (String) (elektra, field, value->keymapF, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keyrepeatdelay", 22); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->keyrepeatdelay, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keyrepeatinterval", 22); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->keyrepeatinterval, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "normal_font", 22); - - ELEKTRA_SET (String) (elektra, field, value->normalFont, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 22); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "picolcdgfx_inverted", 22); - - ELEKTRA_SET (Boolean) (elektra, field, value->picolcdgfxInverted, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "picolcdgfx_keytimeout", 22); - - ELEKTRA_SET (String) (elektra, field, value->picolcdgfxKeytimeout, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "port", 22); - - ELEKTRA_SET (String) (elektra, field, value->port, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 22); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "serdisp_device", 22); - - ELEKTRA_SET (String) (elektra, field, value->serdispDevice, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "serdisp_name", 22); - - ELEKTRA_SET (String) (elektra, field, value->serdispName, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "serdisp_options", 22); - - ELEKTRA_SET (String) (elektra, field, value->serdispOptions, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 22); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "useft2", 22); - - ELEKTRA_SET (Boolean) (elektra, field, value->useft2, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "x11_backlightcolor", 22); - - ELEKTRA_SET (String) (elektra, field, value->x11Backlightcolor, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "x11_border", 22); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->x11Border, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "x11_inverted", 22); - - ELEKTRA_SET (Boolean) (elektra, field, value->x11Inverted, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "x11_pixelcolor", 22); - - ELEKTRA_SET (String) (elektra, field, value->x11Pixelcolor, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "x11_pixelsize", 22); - - ELEKTRA_SET (String) (elektra, field, value->x11Pixelsize, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (GlcdlibDriverConfig, StructGlcdlibDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 16 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "CharEncoding", 16); - - - result->CharEncoding = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "backlight", 16); - - - result->backlight = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "brightness", 16); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 16); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "driver", 16); - - - result->driver = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 16); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "fontfile", 16); - - - result->fontfile = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "invert", 16); - - - result->invert = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "minfontfacesize", 16); - - - result->minfontfacesize = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 16); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "pixelshiftx", 16); - - - result->pixelshiftx = ELEKTRA_GET (Short) (elektra, field); - - strncpy (&field[nameLen], "pixelshifty", 16); - - - result->pixelshifty = ELEKTRA_GET (Short) (elektra, field); - - strncpy (&field[nameLen], "reboot", 16); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "showbigborder", 16); - - - result->showbigborder = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "showdebugframe", 16); - - - result->showdebugframe = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "showthinborder", 16); - - - result->showthinborder = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "textresolution", 16); - - - result->textresolution = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "upsidedown", 16); - - - result->upsidedown = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "useft2", 16); - - - result->useft2 = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (GlcdlibDriverConfig, StructGlcdlibDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 16 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "CharEncoding", 16); - - - result->CharEncoding = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "backlight", 16); - - - result->backlight = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "brightness", 16); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 16); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "driver", 16); - - - result->driver = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 16); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "fontfile", 16); - - - result->fontfile = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "invert", 16); - - - result->invert = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "minfontfacesize", 16); - - - result->minfontfacesize = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 16); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "pixelshiftx", 16); - - - result->pixelshiftx = ELEKTRA_GET (Short) (elektra, field); - - strncpy (&field[nameLen], "pixelshifty", 16); - - - result->pixelshifty = ELEKTRA_GET (Short) (elektra, field); - - strncpy (&field[nameLen], "reboot", 16); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "showbigborder", 16); - - - result->showbigborder = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "showdebugframe", 16); - - - result->showdebugframe = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "showthinborder", 16); - - - result->showthinborder = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "textresolution", 16); - - - result->textresolution = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "upsidedown", 16); - - - result->upsidedown = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "useft2", 16); - - - result->useft2 = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const GlcdlibDriverConfig *, StructGlcdlibDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 16 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "CharEncoding", 16); - - ELEKTRA_SET (String) (elektra, field, value->CharEncoding, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "backlight", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 16); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 16); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "driver", 16); - - ELEKTRA_SET (String) (elektra, field, value->driver, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 16); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "fontfile", 16); - - ELEKTRA_SET (String) (elektra, field, value->fontfile, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "invert", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->invert, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "minfontfacesize", 16); - - ELEKTRA_SET (String) (elektra, field, value->minfontfacesize, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 16); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "pixelshiftx", 16); - - ELEKTRA_SET (Short) (elektra, field, value->pixelshiftx, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "pixelshifty", 16); - - ELEKTRA_SET (Short) (elektra, field, value->pixelshifty, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "showbigborder", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->showbigborder, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "showdebugframe", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->showdebugframe, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "showthinborder", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->showthinborder, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "textresolution", 16); - - ELEKTRA_SET (String) (elektra, field, value->textresolution, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "upsidedown", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->upsidedown, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "useft2", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->useft2, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const GlcdlibDriverConfig *, StructGlcdlibDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 16 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "CharEncoding", 16); - - ELEKTRA_SET (String) (elektra, field, value->CharEncoding, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "backlight", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 16); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 16); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "driver", 16); - - ELEKTRA_SET (String) (elektra, field, value->driver, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 16); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "fontfile", 16); - - ELEKTRA_SET (String) (elektra, field, value->fontfile, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "invert", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->invert, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "minfontfacesize", 16); - - ELEKTRA_SET (String) (elektra, field, value->minfontfacesize, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 16); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "pixelshiftx", 16); - - ELEKTRA_SET (Short) (elektra, field, value->pixelshiftx, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "pixelshifty", 16); - - ELEKTRA_SET (Short) (elektra, field, value->pixelshifty, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "showbigborder", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->showbigborder, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "showdebugframe", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->showdebugframe, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "showthinborder", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->showthinborder, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "textresolution", 16); - - ELEKTRA_SET (String) (elektra, field, value->textresolution, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "upsidedown", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->upsidedown, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "useft2", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->useft2, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (GlkDriverConfig, StructGlkDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 9 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "contrast", 9); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 9); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 9); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 9); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (GlkDriverConfig, StructGlkDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 9 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "contrast", 9); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 9); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 9); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 9); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const GlkDriverConfig *, StructGlkDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 9 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "contrast", 9); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 9); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 9); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 9); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const GlkDriverConfig *, StructGlkDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 9 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "contrast", 9); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 9); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 9); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 9); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Hd44780DriverConfig, StructHd44780DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 17 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 17); - - - result->backlight = ELEKTRA_GET (EnumHD44780Backlight) (elektra, field); - - strncpy (&field[nameLen], "backlightcmdoff", 17); - - - result->backlightcmdoff = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "backlightcmdon", 17); - - - result->backlightcmdon = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "brightness", 17); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "charmap", 17); - - - result->charmap = ELEKTRA_GET (EnumHD44780Charmap) (elektra, field); - - strncpy (&field[nameLen], "connectiontype", 17); - - - result->connectiontype = ELEKTRA_GET (EnumHD44780ConnectionType) (elektra, field); - - strncpy (&field[nameLen], "contrast", 17); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "delaybus", 17); - - - result->delaybus = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "delaymult", 17); - - - result->delaymult = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 17); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "extendedmode", 17); - - - result->extendedmode = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "file", 17); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "fontbank", 17); - - - result->fontbank = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "keepalivedisplay", 17); - - - result->keepalivedisplay = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "keymatrix_4_1", 17); - - - result->keymatrix41 = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymatrix_4_2", 17); - - - result->keymatrix42 = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymatrix_4_3", 17); - - - result->keymatrix43 = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymatrix_4_4", 17); - - - result->keymatrix44 = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keypad", 17); - - - result->keypad = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "lastline", 17); - - - result->lastline = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "lineaddress", 17); - - - result->lineaddress = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "model", 17); - - - result->model = ELEKTRA_GET (EnumHd44780Model) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 17); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "outputport", 17); - - - result->outputport = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "port", 17); - - - result->port = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 17); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "refreshdisplay", 17); - - - result->refreshdisplay = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "size", 17); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 17); - - - result->speed = ELEKTRA_GET (UnsignedLong) (elektra, field); - - strncpy (&field[nameLen], "vspan", 17); - - - result->vspan = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Hd44780DriverConfig, StructHd44780DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 17 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 17); - - - result->backlight = ELEKTRA_GET (EnumHD44780Backlight) (elektra, field); - - strncpy (&field[nameLen], "backlightcmdoff", 17); - - - result->backlightcmdoff = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "backlightcmdon", 17); - - - result->backlightcmdon = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "brightness", 17); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "charmap", 17); - - - result->charmap = ELEKTRA_GET (EnumHD44780Charmap) (elektra, field); - - strncpy (&field[nameLen], "connectiontype", 17); - - - result->connectiontype = ELEKTRA_GET (EnumHD44780ConnectionType) (elektra, field); - - strncpy (&field[nameLen], "contrast", 17); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "delaybus", 17); - - - result->delaybus = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "delaymult", 17); - - - result->delaymult = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 17); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "extendedmode", 17); - - - result->extendedmode = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "file", 17); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "fontbank", 17); - - - result->fontbank = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "keepalivedisplay", 17); - - - result->keepalivedisplay = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "keymatrix_4_1", 17); - - - result->keymatrix41 = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymatrix_4_2", 17); - - - result->keymatrix42 = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymatrix_4_3", 17); - - - result->keymatrix43 = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymatrix_4_4", 17); - - - result->keymatrix44 = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keypad", 17); - - - result->keypad = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "lastline", 17); - - - result->lastline = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "lineaddress", 17); - - - result->lineaddress = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "model", 17); - - - result->model = ELEKTRA_GET (EnumHd44780Model) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 17); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "outputport", 17); - - - result->outputport = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "port", 17); - - - result->port = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 17); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "refreshdisplay", 17); - - - result->refreshdisplay = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "size", 17); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 17); - - - result->speed = ELEKTRA_GET (UnsignedLong) (elektra, field); - - strncpy (&field[nameLen], "vspan", 17); - - - result->vspan = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const Hd44780DriverConfig *, StructHd44780DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 17 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 17); - - ELEKTRA_SET (EnumHD44780Backlight) (elektra, field, value->backlight, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "backlightcmdoff", 17); - - ELEKTRA_SET (String) (elektra, field, value->backlightcmdoff, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "backlightcmdon", 17); - - ELEKTRA_SET (String) (elektra, field, value->backlightcmdon, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "charmap", 17); - - ELEKTRA_SET (EnumHD44780Charmap) (elektra, field, value->charmap, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "connectiontype", 17); - - ELEKTRA_SET (EnumHD44780ConnectionType) (elektra, field, value->connectiontype, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "delaybus", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->delaybus, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "delaymult", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->delaymult, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 17); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "extendedmode", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->extendedmode, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 17); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "fontbank", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->fontbank, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keepalivedisplay", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->keepalivedisplay, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymatrix_4_1", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymatrix41, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymatrix_4_2", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymatrix42, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymatrix_4_3", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymatrix43, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymatrix_4_4", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymatrix44, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keypad", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->keypad, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lastline", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->lastline, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lineaddress", 17); - - ELEKTRA_SET (String) (elektra, field, value->lineaddress, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "model", 17); - - ELEKTRA_SET (EnumHd44780Model) (elektra, field, value->model, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "outputport", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->outputport, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "port", 17); - - ELEKTRA_SET (String) (elektra, field, value->port, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "refreshdisplay", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->refreshdisplay, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 17); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 17); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "vspan", 17); - - ELEKTRA_SET (String) (elektra, field, value->vspan, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Hd44780DriverConfig *, StructHd44780DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 17 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 17); - - ELEKTRA_SET (EnumHD44780Backlight) (elektra, field, value->backlight, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "backlightcmdoff", 17); - - ELEKTRA_SET (String) (elektra, field, value->backlightcmdoff, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "backlightcmdon", 17); - - ELEKTRA_SET (String) (elektra, field, value->backlightcmdon, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "charmap", 17); - - ELEKTRA_SET (EnumHD44780Charmap) (elektra, field, value->charmap, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "connectiontype", 17); - - ELEKTRA_SET (EnumHD44780ConnectionType) (elektra, field, value->connectiontype, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "delaybus", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->delaybus, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "delaymult", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->delaymult, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 17); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "extendedmode", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->extendedmode, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 17); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "fontbank", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->fontbank, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keepalivedisplay", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->keepalivedisplay, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymatrix_4_1", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymatrix41, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymatrix_4_2", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymatrix42, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymatrix_4_3", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymatrix43, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymatrix_4_4", 17); - - ELEKTRA_SET (String) (elektra, field, value->keymatrix44, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keypad", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->keypad, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lastline", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->lastline, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lineaddress", 17); - - ELEKTRA_SET (String) (elektra, field, value->lineaddress, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "model", 17); - - ELEKTRA_SET (EnumHd44780Model) (elektra, field, value->model, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "outputport", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->outputport, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "port", 17); - - ELEKTRA_SET (String) (elektra, field, value->port, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "refreshdisplay", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->refreshdisplay, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 17); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 17); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "vspan", 17); - - ELEKTRA_SET (String) (elektra, field, value->vspan, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Icp_a106DriverConfig, StructIcp_a106DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Icp_a106DriverConfig, StructIcp_a106DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const Icp_a106DriverConfig *, StructIcp_a106DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Icp_a106DriverConfig *, StructIcp_a106DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (ImonDriverConfig, StructImonDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "charmap", 14); - - - result->charmap = ELEKTRA_GET (EnumIMonCharmap) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (ImonDriverConfig, StructImonDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "charmap", 14); - - - result->charmap = ELEKTRA_GET (EnumIMonCharmap) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const ImonDriverConfig *, StructImonDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "charmap", 14); - - ELEKTRA_SET (EnumIMonCharmap) (elektra, field, value->charmap, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const ImonDriverConfig *, StructImonDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "charmap", 14); - - ELEKTRA_SET (EnumIMonCharmap) (elektra, field, value->charmap, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (ImonlcdDriverConfig, StructImonlcdDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 14); - - - result->backlight = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "discmode", 14); - - - result->discmode = ELEKTRA_GET (EnumIMonLCDDiscMode) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "onexit", 14); - - - result->onexit = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "protocol", 14); - - - result->protocol = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (ImonlcdDriverConfig, StructImonlcdDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 14); - - - result->backlight = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "discmode", 14); - - - result->discmode = ELEKTRA_GET (EnumIMonLCDDiscMode) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "onexit", 14); - - - result->onexit = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "protocol", 14); - - - result->protocol = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const ImonlcdDriverConfig *, StructImonlcdDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "discmode", 14); - - ELEKTRA_SET (EnumIMonLCDDiscMode) (elektra, field, value->discmode, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "onexit", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->onexit, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "protocol", 14); - - ELEKTRA_SET (String) (elektra, field, value->protocol, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const ImonlcdDriverConfig *, StructImonlcdDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "discmode", 14); - - ELEKTRA_SET (EnumIMonLCDDiscMode) (elektra, field, value->discmode, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "onexit", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->onexit, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "protocol", 14); - - ELEKTRA_SET (String) (elektra, field, value->protocol, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (IOWarriorDriverConfig, StructIOWarriorDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "extendedmode", 14); - - - result->extendedmode = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "lastline", 14); - - - result->lastline = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "serialnumber", 14); - - - result->serialnumber = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (IOWarriorDriverConfig, StructIOWarriorDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "extendedmode", 14); - - - result->extendedmode = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "lastline", 14); - - - result->lastline = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "serialnumber", 14); - - - result->serialnumber = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const IOWarriorDriverConfig *, StructIOWarriorDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "extendedmode", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->extendedmode, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lastline", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->lastline, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "serialnumber", 14); - - ELEKTRA_SET (String) (elektra, field, value->serialnumber, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const IOWarriorDriverConfig *, StructIOWarriorDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "extendedmode", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->extendedmode, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lastline", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->lastline, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "serialnumber", 14); - - ELEKTRA_SET (String) (elektra, field, value->serialnumber, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (IrManDriverConfig, StructIrManDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "config", 14); - - - result->config = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (IrManDriverConfig, StructIrManDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "config", 14); - - - result->config = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const IrManDriverConfig *, StructIrManDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "config", 14); - - ELEKTRA_SET (String) (elektra, field, value->config, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const IrManDriverConfig *, StructIrManDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "config", 14); - - ELEKTRA_SET (String) (elektra, field, value->config, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (IrtransDriverConfig, StructIrtransDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 14); - - - result->backlight = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "hostname", 14); - - - result->hostname = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (IrtransDriverConfig, StructIrtransDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 14); - - - result->backlight = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "hostname", 14); - - - result->hostname = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const IrtransDriverConfig *, StructIrtransDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "hostname", 14); - - ELEKTRA_SET (String) (elektra, field, value->hostname, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const IrtransDriverConfig *, StructIrtransDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "hostname", 14); - - ELEKTRA_SET (String) (elektra, field, value->hostname, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (JoyDriverConfig, StructJoyDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "map_axis1neg", 14); - - - result->mapAxis1neg = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "map_axis1pos", 14); - - - result->mapAxis1pos = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "map_axis2neg", 14); - - - result->mapAxis2neg = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "map_axis2pos", 14); - - - result->mapAxis2pos = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "map_button1", 14); - - - result->mapButton1 = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "map_button2", 14); - - - result->mapButton2 = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (JoyDriverConfig, StructJoyDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "map_axis1neg", 14); - - - result->mapAxis1neg = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "map_axis1pos", 14); - - - result->mapAxis1pos = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "map_axis2neg", 14); - - - result->mapAxis2neg = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "map_axis2pos", 14); - - - result->mapAxis2pos = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "map_button1", 14); - - - result->mapButton1 = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "map_button2", 14); - - - result->mapButton2 = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const JoyDriverConfig *, StructJoyDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "map_axis1neg", 14); - - ELEKTRA_SET (String) (elektra, field, value->mapAxis1neg, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "map_axis1pos", 14); - - ELEKTRA_SET (String) (elektra, field, value->mapAxis1pos, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "map_axis2neg", 14); - - ELEKTRA_SET (String) (elektra, field, value->mapAxis2neg, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "map_axis2pos", 14); - - ELEKTRA_SET (String) (elektra, field, value->mapAxis2pos, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "map_button1", 14); - - ELEKTRA_SET (String) (elektra, field, value->mapButton1, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "map_button2", 14); - - ELEKTRA_SET (String) (elektra, field, value->mapButton2, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const JoyDriverConfig *, StructJoyDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "map_axis1neg", 14); - - ELEKTRA_SET (String) (elektra, field, value->mapAxis1neg, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "map_axis1pos", 14); - - ELEKTRA_SET (String) (elektra, field, value->mapAxis1pos, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "map_axis2neg", 14); - - ELEKTRA_SET (String) (elektra, field, value->mapAxis2neg, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "map_axis2pos", 14); - - ELEKTRA_SET (String) (elektra, field, value->mapAxis2pos, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "map_button1", 14); - - ELEKTRA_SET (String) (elektra, field, value->mapButton1, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "map_button2", 14); - - ELEKTRA_SET (String) (elektra, field, value->mapButton2, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Lb216DriverConfig, StructLb216DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 11 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 11); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 11); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 11); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 11); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "speed", 11); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Lb216DriverConfig, StructLb216DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 11 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 11); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 11); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 11); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 11); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "speed", 11); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const Lb216DriverConfig *, StructLb216DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 11 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 11); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 11); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 11); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 11); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 11); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Lb216DriverConfig *, StructLb216DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 11 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 11); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 11); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 11); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 11); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 11); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Lcdm001DriverConfig, StructLcdm001DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 12 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backkey", 12); - - - result->backkey = ELEKTRA_GET (EnumLcdm001Keys) (elektra, field); - - strncpy (&field[nameLen], "device", 12); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 12); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "forwardkey", 12); - - - result->forwardkey = ELEKTRA_GET (EnumLcdm001Keys) (elektra, field); - - strncpy (&field[nameLen], "mainmenukey", 12); - - - result->mainmenukey = ELEKTRA_GET (EnumLcdm001Keys) (elektra, field); - - strncpy (&field[nameLen], "pausekey", 12); - - - result->pausekey = ELEKTRA_GET (EnumLcdm001Keys) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Lcdm001DriverConfig, StructLcdm001DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 12 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backkey", 12); - - - result->backkey = ELEKTRA_GET (EnumLcdm001Keys) (elektra, field); - - strncpy (&field[nameLen], "device", 12); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 12); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "forwardkey", 12); - - - result->forwardkey = ELEKTRA_GET (EnumLcdm001Keys) (elektra, field); - - strncpy (&field[nameLen], "mainmenukey", 12); - - - result->mainmenukey = ELEKTRA_GET (EnumLcdm001Keys) (elektra, field); - - strncpy (&field[nameLen], "pausekey", 12); - - - result->pausekey = ELEKTRA_GET (EnumLcdm001Keys) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const Lcdm001DriverConfig *, StructLcdm001DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 12 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backkey", 12); - - ELEKTRA_SET (EnumLcdm001Keys) (elektra, field, value->backkey, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 12); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 12); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "forwardkey", 12); - - ELEKTRA_SET (EnumLcdm001Keys) (elektra, field, value->forwardkey, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "mainmenukey", 12); - - ELEKTRA_SET (EnumLcdm001Keys) (elektra, field, value->mainmenukey, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "pausekey", 12); - - ELEKTRA_SET (EnumLcdm001Keys) (elektra, field, value->pausekey, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Lcdm001DriverConfig *, StructLcdm001DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 12 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backkey", 12); - - ELEKTRA_SET (EnumLcdm001Keys) (elektra, field, value->backkey, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 12); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 12); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "forwardkey", 12); - - ELEKTRA_SET (EnumLcdm001Keys) (elektra, field, value->forwardkey, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "mainmenukey", 12); - - ELEKTRA_SET (EnumLcdm001Keys) (elektra, field, value->mainmenukey, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "pausekey", 12); - - ELEKTRA_SET (EnumLcdm001Keys) (elektra, field, value->pausekey, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (LctermDriverConfig, StructLctermDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (LctermDriverConfig, StructLctermDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const LctermDriverConfig *, StructLctermDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const LctermDriverConfig *, StructLctermDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Linux_inputDriverConfig, StructLinux_inputDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Linux_inputDriverConfig, StructLinux_inputDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const Linux_inputDriverConfig *, StructLinux_inputDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Linux_inputDriverConfig *, StructLinux_inputDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (LircDriverConfig, StructLircDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "lircrc", 14); - - - result->lircrc = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "prog", 14); - - - result->prog = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (LircDriverConfig, StructLircDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "lircrc", 14); - - - result->lircrc = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "prog", 14); - - - result->prog = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const LircDriverConfig *, StructLircDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lircrc", 14); - - ELEKTRA_SET (String) (elektra, field, value->lircrc, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "prog", 14); - - ELEKTRA_SET (String) (elektra, field, value->prog, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const LircDriverConfig *, StructLircDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lircrc", 14); - - ELEKTRA_SET (String) (elektra, field, value->lircrc, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "prog", 14); - - ELEKTRA_SET (String) (elektra, field, value->prog, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (LisDriverConfig, StructLisDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "lastline", 14); - - - result->lastline = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "productid", 14); - - - result->productid = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "vendorid", 14); - - - result->vendorid = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (LisDriverConfig, StructLisDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "lastline", 14); - - - result->lastline = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "productid", 14); - - - result->productid = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "vendorid", 14); - - - result->vendorid = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const LisDriverConfig *, StructLisDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lastline", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->lastline, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "productid", 14); - - ELEKTRA_SET (String) (elektra, field, value->productid, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "vendorid", 14); - - ELEKTRA_SET (String) (elektra, field, value->vendorid, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const LisDriverConfig *, StructLisDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lastline", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->lastline, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "productid", 14); - - ELEKTRA_SET (String) (elektra, field, value->productid, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "vendorid", 14); - - ELEKTRA_SET (String) (elektra, field, value->vendorid, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (MD8800DriverConfig, StructMD8800DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (MD8800DriverConfig, StructMD8800DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const MD8800DriverConfig *, StructMD8800DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const MD8800DriverConfig *, StructMD8800DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Mdm166aDriverConfig, StructMdm166aDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "clock", 14); - - - result->clock = ELEKTRA_GET (EnumMdm166aClock) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "dimming", 14); - - - result->dimming = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "offdimming", 14); - - - result->offdimming = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Mdm166aDriverConfig, StructMdm166aDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "clock", 14); - - - result->clock = ELEKTRA_GET (EnumMdm166aClock) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "dimming", 14); - - - result->dimming = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "offdimming", 14); - - - result->offdimming = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const Mdm166aDriverConfig *, StructMdm166aDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "clock", 14); - - ELEKTRA_SET (EnumMdm166aClock) (elektra, field, value->clock, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "dimming", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->dimming, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offdimming", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->offdimming, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Mdm166aDriverConfig *, StructMdm166aDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "clock", 14); - - ELEKTRA_SET (EnumMdm166aClock) (elektra, field, value->clock, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "dimming", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->dimming, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offdimming", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->offdimming, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Ms6931DriverConfig, StructMs6931DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Ms6931DriverConfig, StructMs6931DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const Ms6931DriverConfig *, StructMs6931DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Ms6931DriverConfig *, StructMs6931DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Mtc_s16209xDriverConfig, StructMtc_s16209xDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Mtc_s16209xDriverConfig, StructMtc_s16209xDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const Mtc_s16209xDriverConfig *, StructMtc_s16209xDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Mtc_s16209xDriverConfig *, StructMtc_s16209xDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (MtxOrbDriverConfig, StructMtxOrbDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 23 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 23); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 23); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 23); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 23); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "hasadjustablebacklight", 23); - - - result->hasAdjustableBacklight = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "keymap_a", 23); - - - result->keymapA = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_b", 23); - - - result->keymapB = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_c", 23); - - - result->keymapC = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_d", 23); - - - result->keymapD = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_e", 23); - - - result->keymapE = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_f", 23); - - - result->keymapF = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keypad_test_mode", 23); - - - result->keypadTestMode = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 23); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "size", 23); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 23); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "type", 23); - - - result->type = ELEKTRA_GET (EnumMtxorbType) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (MtxOrbDriverConfig, StructMtxOrbDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 23 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 23); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 23); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 23); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 23); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "hasadjustablebacklight", 23); - - - result->hasAdjustableBacklight = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "keymap_a", 23); - - - result->keymapA = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_b", 23); - - - result->keymapB = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_c", 23); - - - result->keymapC = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_d", 23); - - - result->keymapD = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_e", 23); - - - result->keymapE = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_f", 23); - - - result->keymapF = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keypad_test_mode", 23); - - - result->keypadTestMode = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 23); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "size", 23); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 23); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "type", 23); - - - result->type = ELEKTRA_GET (EnumMtxorbType) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const MtxOrbDriverConfig *, StructMtxOrbDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 23 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 23); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 23); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 23); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 23); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "hasadjustablebacklight", 23); - - ELEKTRA_SET (Boolean) (elektra, field, value->hasAdjustableBacklight, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_a", 23); - - ELEKTRA_SET (String) (elektra, field, value->keymapA, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_b", 23); - - ELEKTRA_SET (String) (elektra, field, value->keymapB, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_c", 23); - - ELEKTRA_SET (String) (elektra, field, value->keymapC, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_d", 23); - - ELEKTRA_SET (String) (elektra, field, value->keymapD, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_e", 23); - - ELEKTRA_SET (String) (elektra, field, value->keymapE, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_f", 23); - - ELEKTRA_SET (String) (elektra, field, value->keymapF, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keypad_test_mode", 23); - - ELEKTRA_SET (Boolean) (elektra, field, value->keypadTestMode, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 23); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 23); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 23); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "type", 23); - - ELEKTRA_SET (EnumMtxorbType) (elektra, field, value->type, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const MtxOrbDriverConfig *, StructMtxOrbDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 23 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 23); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 23); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 23); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 23); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "hasadjustablebacklight", 23); - - ELEKTRA_SET (Boolean) (elektra, field, value->hasAdjustableBacklight, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_a", 23); - - ELEKTRA_SET (String) (elektra, field, value->keymapA, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_b", 23); - - ELEKTRA_SET (String) (elektra, field, value->keymapB, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_c", 23); - - ELEKTRA_SET (String) (elektra, field, value->keymapC, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_d", 23); - - ELEKTRA_SET (String) (elektra, field, value->keymapD, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_e", 23); - - ELEKTRA_SET (String) (elektra, field, value->keymapE, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_f", 23); - - ELEKTRA_SET (String) (elektra, field, value->keymapF, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keypad_test_mode", 23); - - ELEKTRA_SET (Boolean) (elektra, field, value->keypadTestMode, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 23); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 23); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 23); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "type", 23); - - ELEKTRA_SET (EnumMtxorbType) (elektra, field, value->type, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Mx5000DriverConfig, StructMx5000DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 17 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 17); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 17); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 17); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 17); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 17); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 17); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "waitafterrefresh", 17); - - - result->waitafterrefresh = ELEKTRA_GET (UnsignedLong) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Mx5000DriverConfig, StructMx5000DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 17 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 17); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 17); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 17); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 17); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 17); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 17); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "waitafterrefresh", 17); - - - result->waitafterrefresh = ELEKTRA_GET (UnsignedLong) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const Mx5000DriverConfig *, StructMx5000DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 17 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 17); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 17); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "waitafterrefresh", 17); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->waitafterrefresh, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Mx5000DriverConfig *, StructMx5000DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 17 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 17); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 17); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 17); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 17); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "waitafterrefresh", 17); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->waitafterrefresh, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (NoritakeVFDDriverConfig, StructNoritakeVFDDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "parity", 14); - - - result->parity = ELEKTRA_GET (UnsignedLong) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 14); - - - result->speed = ELEKTRA_GET (UnsignedLong) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (NoritakeVFDDriverConfig, StructNoritakeVFDDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "parity", 14); - - - result->parity = ELEKTRA_GET (UnsignedLong) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 14); - - - result->speed = ELEKTRA_GET (UnsignedLong) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const NoritakeVFDDriverConfig *, StructNoritakeVFDDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "parity", 14); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->parity, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 14); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const NoritakeVFDDriverConfig *, StructNoritakeVFDDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "parity", 14); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->parity, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 14); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Olimex_MOD_LCD1x9DriverConfig, StructOlimex_MOD_LCD1x9DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Olimex_MOD_LCD1x9DriverConfig, StructOlimex_MOD_LCD1x9DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const Olimex_MOD_LCD1x9DriverConfig *, StructOlimex_MOD_LCD1x9DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Olimex_MOD_LCD1x9DriverConfig *, StructOlimex_MOD_LCD1x9DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (PicolcdDriverConfig, StructPicolcdDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 19 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 19); - - - result->backlight = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "brightness", 19); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 19); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 19); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "key0light", 19); - - - result->key0light = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "key1light", 19); - - - result->key1light = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "key2light", 19); - - - result->key2light = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "key3light", 19); - - - result->key3light = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "key4light", 19); - - - result->key4light = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "key5light", 19); - - - result->key5light = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "keylights", 19); - - - result->keylights = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "keyrepeatdelay", 19); - - - result->keyrepeatdelay = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "keyrepeatinterval", 19); - - - result->keyrepeatinterval = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "keytimeout", 19); - - - result->keytimeout = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "linklights", 19); - - - result->linklights = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "lircflushthreshold", 19); - - - result->lircflushthreshold = ELEKTRA_GET (UnsignedLong) (elektra, field); - - strncpy (&field[nameLen], "lirchost", 19); - - - result->lirchost = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "lircport", 19); - - - result->lircport = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "lirctime_us", 19); - - - result->lirctimeUs = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 19); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 19); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (PicolcdDriverConfig, StructPicolcdDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 19 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 19); - - - result->backlight = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "brightness", 19); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 19); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 19); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "key0light", 19); - - - result->key0light = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "key1light", 19); - - - result->key1light = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "key2light", 19); - - - result->key2light = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "key3light", 19); - - - result->key3light = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "key4light", 19); - - - result->key4light = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "key5light", 19); - - - result->key5light = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "keylights", 19); - - - result->keylights = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "keyrepeatdelay", 19); - - - result->keyrepeatdelay = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "keyrepeatinterval", 19); - - - result->keyrepeatinterval = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "keytimeout", 19); - - - result->keytimeout = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "linklights", 19); - - - result->linklights = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "lircflushthreshold", 19); - - - result->lircflushthreshold = ELEKTRA_GET (UnsignedLong) (elektra, field); - - strncpy (&field[nameLen], "lirchost", 19); - - - result->lirchost = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "lircport", 19); - - - result->lircport = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "lirctime_us", 19); - - - result->lirctimeUs = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 19); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 19); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const PicolcdDriverConfig *, StructPicolcdDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 19 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 19); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 19); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 19); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "key0light", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->key0light, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "key1light", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->key1light, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "key2light", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->key2light, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "key3light", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->key3light, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "key4light", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->key4light, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "key5light", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->key5light, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keylights", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->keylights, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keyrepeatdelay", 19); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->keyrepeatdelay, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keyrepeatinterval", 19); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->keyrepeatinterval, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keytimeout", 19); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->keytimeout, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "linklights", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->linklights, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lircflushthreshold", 19); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->lircflushthreshold, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lirchost", 19); - - ELEKTRA_SET (String) (elektra, field, value->lirchost, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lircport", 19); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->lircport, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lirctime_us", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->lirctimeUs, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 19); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const PicolcdDriverConfig *, StructPicolcdDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 19 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "backlight", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->backlight, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 19); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 19); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 19); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "key0light", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->key0light, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "key1light", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->key1light, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "key2light", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->key2light, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "key3light", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->key3light, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "key4light", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->key4light, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "key5light", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->key5light, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keylights", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->keylights, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keyrepeatdelay", 19); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->keyrepeatdelay, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keyrepeatinterval", 19); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->keyrepeatinterval, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keytimeout", 19); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->keytimeout, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "linklights", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->linklights, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lircflushthreshold", 19); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->lircflushthreshold, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lirchost", 19); - - ELEKTRA_SET (String) (elektra, field, value->lirchost, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lircport", 19); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->lircport, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "lirctime_us", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->lirctimeUs, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 19); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 19); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (PyramidDriverConfig, StructPyramidDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 7 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "device", 7); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 7); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (PyramidDriverConfig, StructPyramidDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 7 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "device", 7); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 7); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const PyramidDriverConfig *, StructPyramidDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 7 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "device", 7); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 7); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const PyramidDriverConfig *, StructPyramidDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 7 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "device", 7); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 7); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (RawserialDriverConfig, StructRawserialDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 14); - - - result->speed = ELEKTRA_GET (UnsignedLong) (elektra, field); - - strncpy (&field[nameLen], "updaterate", 14); - - - result->updaterate = ELEKTRA_GET (Float) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (RawserialDriverConfig, StructRawserialDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 14); - - - result->speed = ELEKTRA_GET (UnsignedLong) (elektra, field); - - strncpy (&field[nameLen], "updaterate", 14); - - - result->updaterate = ELEKTRA_GET (Float) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const RawserialDriverConfig *, StructRawserialDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 14); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "updaterate", 14); - - ELEKTRA_SET (Float) (elektra, field, value->updaterate, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const RawserialDriverConfig *, StructRawserialDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 14); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "updaterate", 14); - - ELEKTRA_SET (Float) (elektra, field, value->updaterate, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Sed1330DriverConfig, StructSed1330DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 15 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 15); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "cellsize", 15); - - - result->cellsize = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "connectiontype", 15); - - - result->connectiontype = ELEKTRA_GET (EnumSed1330Connectiontype) (elektra, field); - - strncpy (&field[nameLen], "contrast", 15); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 15); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 15); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "port", 15); - - - result->port = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 15); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "type", 15); - - - result->type = ELEKTRA_GET (EnumSed1330Type) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Sed1330DriverConfig, StructSed1330DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 15 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 15); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "cellsize", 15); - - - result->cellsize = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "connectiontype", 15); - - - result->connectiontype = ELEKTRA_GET (EnumSed1330Connectiontype) (elektra, field); - - strncpy (&field[nameLen], "contrast", 15); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 15); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 15); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "port", 15); - - - result->port = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 15); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "type", 15); - - - result->type = ELEKTRA_GET (EnumSed1330Type) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const Sed1330DriverConfig *, StructSed1330DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 15 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 15); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "cellsize", 15); - - ELEKTRA_SET (String) (elektra, field, value->cellsize, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "connectiontype", 15); - - ELEKTRA_SET (EnumSed1330Connectiontype) (elektra, field, value->connectiontype, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 15); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 15); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 15); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "port", 15); - - ELEKTRA_SET (String) (elektra, field, value->port, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 15); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "type", 15); - - ELEKTRA_SET (EnumSed1330Type) (elektra, field, value->type, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Sed1330DriverConfig *, StructSed1330DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 15 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 15); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "cellsize", 15); - - ELEKTRA_SET (String) (elektra, field, value->cellsize, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "connectiontype", 15); - - ELEKTRA_SET (EnumSed1330Connectiontype) (elektra, field, value->connectiontype, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 15); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 15); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 15); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "port", 15); - - ELEKTRA_SET (String) (elektra, field, value->port, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 15); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "type", 15); - - ELEKTRA_SET (EnumSed1330Type) (elektra, field, value->type, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Sed1520DriverConfig, StructSed1520DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 16 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 16); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 16); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "delaymult", 16); - - - result->delaymult = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 16); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "haveinverter", 16); - - - result->haveinverter = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "interfacetype", 16); - - - result->interfacetype = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "invertedmapping", 16); - - - result->invertedmapping = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 16); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "port", 16); - - - result->port = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 16); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "usehardreset", 16); - - - result->usehardreset = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Sed1520DriverConfig, StructSed1520DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 16 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 16); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 16); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "delaymult", 16); - - - result->delaymult = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 16); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "haveinverter", 16); - - - result->haveinverter = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "interfacetype", 16); - - - result->interfacetype = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "invertedmapping", 16); - - - result->invertedmapping = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 16); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "port", 16); - - - result->port = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 16); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "usehardreset", 16); - - - result->usehardreset = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const Sed1520DriverConfig *, StructSed1520DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 16 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 16); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 16); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "delaymult", 16); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->delaymult, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 16); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "haveinverter", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->haveinverter, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "interfacetype", 16); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->interfacetype, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "invertedmapping", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->invertedmapping, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 16); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "port", 16); - - ELEKTRA_SET (String) (elektra, field, value->port, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "usehardreset", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->usehardreset, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Sed1520DriverConfig *, StructSed1520DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 16 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 16); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 16); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "delaymult", 16); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->delaymult, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 16); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "haveinverter", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->haveinverter, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "interfacetype", 16); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->interfacetype, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "invertedmapping", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->invertedmapping, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 16); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "port", 16); - - ELEKTRA_SET (String) (elektra, field, value->port, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "usehardreset", 16); - - ELEKTRA_SET (Boolean) (elektra, field, value->usehardreset, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (SerialPOSDriverConfig, StructSerialPOSDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "cellsize", 14); - - - result->cellsize = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "custom_chars", 14); - - - result->customChars = ELEKTRA_GET (UnsignedLong) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 14); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "type", 14); - - - result->type = ELEKTRA_GET (EnumSerialposType) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SerialPOSDriverConfig, StructSerialPOSDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "cellsize", 14); - - - result->cellsize = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "custom_chars", 14); - - - result->customChars = ELEKTRA_GET (UnsignedLong) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 14); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "type", 14); - - - result->type = ELEKTRA_GET (EnumSerialposType) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const SerialPOSDriverConfig *, StructSerialPOSDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "cellsize", 14); - - ELEKTRA_SET (String) (elektra, field, value->cellsize, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "custom_chars", 14); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->customChars, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "type", 14); - - ELEKTRA_SET (EnumSerialposType) (elektra, field, value->type, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SerialPOSDriverConfig *, StructSerialPOSDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "cellsize", 14); - - ELEKTRA_SET (String) (elektra, field, value->cellsize, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "custom_chars", 14); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->customChars, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "type", 14); - - ELEKTRA_SET (EnumSerialposType) (elektra, field, value->type, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (SerialVFDDriverConfig, StructSerialVFDDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 18 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 18); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 18); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "custom-characters", 18); - - - result->custom_characters = ELEKTRA_GET (UnsignedLong) (elektra, field); - - strncpy (&field[nameLen], "device", 18); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 18); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "iso_8859_1", 18); - - - result->iso88591 = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 18); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "port", 18); - - - result->port = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "portwait", 18); - - - result->portwait = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 18); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 18); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 18); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "type", 18); - - - result->type = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "use_parallel", 18); - - - result->useParallel = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SerialVFDDriverConfig, StructSerialVFDDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 18 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 18); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 18); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "custom-characters", 18); - - - result->custom_characters = ELEKTRA_GET (UnsignedLong) (elektra, field); - - strncpy (&field[nameLen], "device", 18); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 18); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "iso_8859_1", 18); - - - result->iso88591 = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 18); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "port", 18); - - - result->port = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "portwait", 18); - - - result->portwait = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 18); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 18); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 18); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "type", 18); - - - result->type = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "use_parallel", 18); - - - result->useParallel = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const SerialVFDDriverConfig *, StructSerialVFDDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 18 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 18); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 18); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "custom-characters", 18); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->custom_characters, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 18); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 18); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "iso_8859_1", 18); - - ELEKTRA_SET (Boolean) (elektra, field, value->iso88591, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 18); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "port", 18); - - ELEKTRA_SET (String) (elektra, field, value->port, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "portwait", 18); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->portwait, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 18); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 18); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 18); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "type", 18); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->type, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "use_parallel", 18); - - ELEKTRA_SET (Boolean) (elektra, field, value->useParallel, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SerialVFDDriverConfig *, StructSerialVFDDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 18 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 18); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 18); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "custom-characters", 18); - - ELEKTRA_SET (UnsignedLong) (elektra, field, value->custom_characters, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 18); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 18); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "iso_8859_1", 18); - - ELEKTRA_SET (Boolean) (elektra, field, value->iso88591, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 18); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "port", 18); - - ELEKTRA_SET (String) (elektra, field, value->port, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "portwait", 18); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->portwait, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 18); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 18); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 18); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "type", 18); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->type, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "use_parallel", 18); - - ELEKTRA_SET (Boolean) (elektra, field, value->useParallel, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (SliDriverConfig, StructSliDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "speed", 14); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SliDriverConfig, StructSliDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "speed", 14); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const SliDriverConfig *, StructSliDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SliDriverConfig *, StructSliDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Stv5730DriverConfig, StructStv5730DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "port", 14); - - - result->port = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Stv5730DriverConfig, StructStv5730DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "port", 14); - - - result->port = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const Stv5730DriverConfig *, StructStv5730DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "port", 14); - - ELEKTRA_SET (String) (elektra, field, value->port, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Stv5730DriverConfig *, StructStv5730DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "port", 14); - - ELEKTRA_SET (String) (elektra, field, value->port, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (SureElecDriverConfig, StructSureElecDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "edition", 14); - - - result->edition = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SureElecDriverConfig, StructSureElecDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "edition", 14); - - - result->edition = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const SureElecDriverConfig *, StructSureElecDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "edition", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->edition, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SureElecDriverConfig *, StructSureElecDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "edition", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->edition, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (SvgaDriverConfig, StructSvgaDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "mode", 14); - - - result->mode = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SvgaDriverConfig, StructSvgaDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "mode", 14); - - - result->mode = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const SvgaDriverConfig *, StructSvgaDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "mode", 14); - - ELEKTRA_SET (String) (elektra, field, value->mode, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SvgaDriverConfig *, StructSvgaDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "mode", 14); - - ELEKTRA_SET (String) (elektra, field, value->mode, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (T6963DriverConfig, StructT6963DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "bidirectional", 14); - - - result->bidirectional = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "cleargraphic", 14); - - - result->cleargraphic = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "delaybus", 14); - - - result->delaybus = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "port", 14); - - - result->port = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (T6963DriverConfig, StructT6963DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "bidirectional", 14); - - - result->bidirectional = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "cleargraphic", 14); - - - result->cleargraphic = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "delaybus", 14); - - - result->delaybus = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "port", 14); - - - result->port = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const T6963DriverConfig *, StructT6963DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "bidirectional", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->bidirectional, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "cleargraphic", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->cleargraphic, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "delaybus", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->delaybus, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "port", 14); - - ELEKTRA_SET (String) (elektra, field, value->port, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const T6963DriverConfig *, StructT6963DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "bidirectional", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->bidirectional, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "cleargraphic", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->cleargraphic, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "delaybus", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->delaybus, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "port", 14); - - ELEKTRA_SET (String) (elektra, field, value->port, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (TextDriverConfig, StructTextDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (TextDriverConfig, StructTextDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const TextDriverConfig *, StructTextDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const TextDriverConfig *, StructTextDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (TyanDriverConfig, StructTyanDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 14); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (TyanDriverConfig, StructTyanDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "speed", 14); - - - result->speed = ELEKTRA_GET (UnsignedShort) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const TyanDriverConfig *, StructTyanDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const TyanDriverConfig *, StructTyanDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "speed", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->speed, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Ula200DriverConfig, StructUla200DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_a", 14); - - - result->keymapA = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_b", 14); - - - result->keymapB = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_c", 14); - - - result->keymapC = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_d", 14); - - - result->keymapD = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_e", 14); - - - result->keymapE = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_f", 14); - - - result->keymapF = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Ula200DriverConfig, StructUla200DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_a", 14); - - - result->keymapA = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_b", 14); - - - result->keymapB = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_c", 14); - - - result->keymapC = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_d", 14); - - - result->keymapD = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_e", 14); - - - result->keymapE = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "keymap_f", 14); - - - result->keymapF = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const Ula200DriverConfig *, StructUla200DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_a", 14); - - ELEKTRA_SET (String) (elektra, field, value->keymapA, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_b", 14); - - ELEKTRA_SET (String) (elektra, field, value->keymapB, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_c", 14); - - ELEKTRA_SET (String) (elektra, field, value->keymapC, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_d", 14); - - ELEKTRA_SET (String) (elektra, field, value->keymapD, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_e", 14); - - ELEKTRA_SET (String) (elektra, field, value->keymapE, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_f", 14); - - ELEKTRA_SET (String) (elektra, field, value->keymapF, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Ula200DriverConfig *, StructUla200DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_a", 14); - - ELEKTRA_SET (String) (elektra, field, value->keymapA, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_b", 14); - - ELEKTRA_SET (String) (elektra, field, value->keymapB, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_c", 14); - - ELEKTRA_SET (String) (elektra, field, value->keymapC, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_d", 14); - - ELEKTRA_SET (String) (elektra, field, value->keymapD, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_e", 14); - - ELEKTRA_SET (String) (elektra, field, value->keymapE, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "keymap_f", 14); - - ELEKTRA_SET (String) (elektra, field, value->keymapF, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Vlsys_m428DriverConfig, StructVlsys_m428DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Vlsys_m428DriverConfig, StructVlsys_m428DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "device", 14); - - - result->device = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const Vlsys_m428DriverConfig *, StructVlsys_m428DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Vlsys_m428DriverConfig *, StructVlsys_m428DriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "device", 14); - - ELEKTRA_SET (String) (elektra, field, value->device, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (XosdDriverConfig, StructXosdDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "Font", 14); - - - result->Font = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "offset", 14); - - - result->offset = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (XosdDriverConfig, StructXosdDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "Font", 14); - - - result->Font = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "offset", 14); - - - result->offset = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const XosdDriverConfig *, StructXosdDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "Font", 14); - - ELEKTRA_SET (String) (elektra, field, value->Font, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offset", 14); - - ELEKTRA_SET (String) (elektra, field, value->offset, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const XosdDriverConfig *, StructXosdDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "Font", 14); - - ELEKTRA_SET (String) (elektra, field, value->Font, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offset", 14); - - ELEKTRA_SET (String) (elektra, field, value->offset, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Yard2LCDDriverConfig, StructYard2LCDDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Yard2LCDDriverConfig, StructYard2LCDDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - - result->brightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "contrast", 14); - - - result->contrast = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "file", 14); - - - result->file = ELEKTRA_GET (String) (elektra, field); - - strncpy (&field[nameLen], "offbrightness", 14); - - - result->offbrightness = ELEKTRA_GET (UnsignedShort) (elektra, field); - - strncpy (&field[nameLen], "reboot", 14); - - - result->reboot = ELEKTRA_GET (Boolean) (elektra, field); - - strncpy (&field[nameLen], "size", 14); - - - result->size = ELEKTRA_GET (String) (elektra, field); - - elektraFree (field); -} - -ELEKTRA_SET_SIGNATURE (const Yard2LCDDriverConfig *, StructYard2LCDDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Yard2LCDDriverConfig *, StructYard2LCDDriverConfig) -{ - size_t nameLen = strlen (keyname); - char * field = elektraCalloc ((nameLen + 1 + 14 +1 + ELEKTRA_MAX_ARRAY_SIZE) * sizeof (char)); - strcpy (field, keyname); - field[nameLen] = '/'; - ++nameLen; - - elektraWriteArrayNumber (&field[nameLen], index); - nameLen = strlen (field); - field[nameLen] = '/'; - ++nameLen; - - strncpy (&field[nameLen], "brightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->brightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "contrast", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->contrast, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "file", 14); - - ELEKTRA_SET (String) (elektra, field, value->file, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "offbrightness", 14); - - ELEKTRA_SET (UnsignedShort) (elektra, field, value->offbrightness, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "reboot", 14); - - ELEKTRA_SET (Boolean) (elektra, field, value->reboot, error); - if (error != NULL) - { - return; - } - - strncpy (&field[nameLen], "size", 14); - - ELEKTRA_SET (String) (elektra, field, value->size, error); - if (error != NULL) - { - return; - } - -} - diff --git a/server/elektragen.h b/server/elektragen.h deleted file mode 100644 index 2bc09e43..00000000 --- a/server/elektragen.h +++ /dev/null @@ -1,34830 +0,0 @@ -// clang-format off - - -// clang-format on -/** - * @file - * - * This file was automatically generated using `kdb gen elektra`. - * Any changes will be overwritten, when the file is regenerated. - * - * @copyright BSD Zero Clause License - * - * Copyright (C) 2019 Elektra Initiative (https://libelektra.org) - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND - * FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR - * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - - -#ifndef ELEKTRAGEN_H -#define ELEKTRAGEN_H - -#ifdef __cplusplus -extern "C" { -#endif - -#include - -#include -#include - - - -#define ELEKTRA_CONTEXT_SET(contextTag) elektraSetContextualValue##contextTag - -// clang-format off - -// clang-format on - -typedef enum -{ - C_FONTZ_PACKET_MODEL_533 = 0, - C_FONTZ_PACKET_MODEL_631 = 1, - C_FONTZ_PACKET_MODEL_633 = 2, - C_FONTZ_PACKET_MODEL_635 = 3, -} CFontzPacketModel; - -typedef enum -{ - CURSES_COLOR_RED = 0, - CURSES_COLOR_BLACK = 1, - CURSES_COLOR_GREEN = 2, - CURSES_COLOR_YELLOW = 3, - CURSES_COLOR_BLUE = 4, - CURSES_COLOR_MAGENTA = 5, - CURSES_COLOR_CYAN = 6, - CURSES_COLOR_WHITE = 7, -} CursesColor; - -typedef enum -{ - CW_LNX_MODEL_12232 = 0, - CW_LNX_MODEL_12832 = 1, - CW_LNX_MODEL_1602 = 2, -} CwLnxModel; - -typedef enum -{ - GLCD_CONNECTION_TYPE_T6963 = 0, - GLCD_CONNECTION_TYPE_PNG = 1, - GLCD_CONNECTION_TYPE_SERDISPLIB = 2, - GLCD_CONNECTION_TYPE_GLCD2USB = 3, - GLCD_CONNECTION_TYPE_X11 = 4, - GLCD_CONNECTION_TYPE_PICOLCDGFX = 5, - GLCD_CONNECTION_TYPE_XYZ = 6, -} GlcdConnectionType; - -typedef enum -{ - H_D44780_BACKLIGHT_NONE = 0, - H_D44780_BACKLIGHT_EXTERNAL = 1, - H_D44780_BACKLIGHT_INTERNAL = 2, - H_D44780_BACKLIGHT_INTERNAL_CMDS = 3, -} HD44780Backlight; - -typedef enum -{ - H_D44780_CHARMAP_HD44780_DEFAULT = 0, - H_D44780_CHARMAP_HD44780_EURO = 1, - H_D44780_CHARMAP_EA_KS0073 = 2, - H_D44780_CHARMAP_SED1278F_0B = 3, - H_D44780_CHARMAP_HD44780_KOI8_R = 4, - H_D44780_CHARMAP_HD44780_CP1251 = 5, - H_D44780_CHARMAP_HD44780_8859_5 = 6, - H_D44780_CHARMAP_UPD16314 = 7, -} HD44780Charmap; - -typedef enum -{ - H_D44780_CONNECTION_TYPE_4BIT = 0, - H_D44780_CONNECTION_TYPE_8BIT = 1, - H_D44780_CONNECTION_TYPE_WINAMP = 2, - H_D44780_CONNECTION_TYPE_LCM162 = 3, - H_D44780_CONNECTION_TYPE_SERIAL_LPT = 4, - H_D44780_CONNECTION_TYPE_PICANLCD = 5, - H_D44780_CONNECTION_TYPE_LCDSERIALIZER = 6, - H_D44780_CONNECTION_TYPE_LOS_PANEL = 7, - H_D44780_CONNECTION_TYPE_VDR_LCD = 8, - H_D44780_CONNECTION_TYPE_VDR_WAKEUP = 9, - H_D44780_CONNECTION_TYPE_EZIO = 10, - H_D44780_CONNECTION_TYPE_PERTELIAN = 11, - H_D44780_CONNECTION_TYPE_LIS2 = 12, - H_D44780_CONNECTION_TYPE_MPLAY = 13, - H_D44780_CONNECTION_TYPE_USBLCD = 14, - H_D44780_CONNECTION_TYPE_BWCTUSB = 15, - H_D44780_CONNECTION_TYPE_LCD2USB = 16, - H_D44780_CONNECTION_TYPE_USBTINY = 17, - H_D44780_CONNECTION_TYPE_USS720 = 18, - H_D44780_CONNECTION_TYPE_U_S_B_4_ALL = 19, - H_D44780_CONNECTION_TYPE_FTDI = 20, - H_D44780_CONNECTION_TYPE_I2C = 21, - H_D44780_CONNECTION_TYPE_PIPLATE = 22, - H_D44780_CONNECTION_TYPE_SPI = 23, - H_D44780_CONNECTION_TYPE_PIFACECAD = 24, - H_D44780_CONNECTION_TYPE_ETHLCD = 25, - H_D44780_CONNECTION_TYPE_RASPBERRYPI = 26, - H_D44780_CONNECTION_TYPE_GPIO = 27, -} HD44780ConnectionType; - -typedef enum -{ - ELEKTRA_ENUM_HD44780_MODEL_STANDARD = 0, - ELEKTRA_ENUM_HD44780_MODEL_EXTENDED = 1, - ELEKTRA_ENUM_HD44780_MODEL_WINSTAR_OLED = 2, - ELEKTRA_ENUM_HD44780_MODEL_PT6314_VFD = 3, -} ElektraEnumHd44780Model; - -typedef enum -{ - I_MON_CHARMAP_HD44780_EURO = 0, - I_MON_CHARMAP_UPD16314 = 1, - I_MON_CHARMAP_HD44780_KOI8_R = 2, - I_MON_CHARMAP_HD44780_CP1251 = 3, - I_MON_CHARMAP_HD44780_8859_5 = 4, - I_MON_CHARMAP_NONE = 5, -} IMonCharmap; - -typedef enum -{ - I_MON_L_C_D_DISC_MODE_0 = 0, - I_MON_L_C_D_DISC_MODE_1 = 1, -} IMonLCDDiscMode; - -typedef enum -{ - LCDM001_KEYS_LEFT_KEY = 0, - LCDM001_KEYS_RIGHT_KEY = 1, - LCDM001_KEYS_UP_KEY = 2, - LCDM001_KEYS_DOWN_KEY = 3, -} Lcdm001Keys; - -typedef enum -{ - ELEKTRA_ENUM_MDM166A_CLOCK_NO = 0, - ELEKTRA_ENUM_MDM166A_CLOCK_SMALL = 1, - ELEKTRA_ENUM_MDM166A_CLOCK_BIG = 2, -} ElektraEnumMdm166aClock; - -typedef enum -{ - ELEKTRA_ENUM_MTXORB_TYPE_LCD = 0, - ELEKTRA_ENUM_MTXORB_TYPE_LKD = 1, - ELEKTRA_ENUM_MTXORB_TYPE_VFD = 2, - ELEKTRA_ENUM_MTXORB_TYPE_VKD = 3, -} ElektraEnumMtxorbType; - -typedef enum -{ - ELEKTRA_ENUM_SED1330_CONNECTIONTYPE_CLASSIC = 0, - ELEKTRA_ENUM_SED1330_CONNECTIONTYPE_BITSHAKER = 1, -} ElektraEnumSed1330Connectiontype; - -typedef enum -{ - ELEKTRA_ENUM_SED1330_TYPE_G321_D = 0, - ELEKTRA_ENUM_SED1330_TYPE_G121_C = 1, - ELEKTRA_ENUM_SED1330_TYPE_G242_C = 2, - ELEKTRA_ENUM_SED1330_TYPE_G191_D = 3, - ELEKTRA_ENUM_SED1330_TYPE_G2446 = 4, - ELEKTRA_ENUM_SED1330_TYPE_S_P14_Q002 = 5, -} ElektraEnumSed1330Type; - -typedef enum -{ - ELEKTRA_ENUM_SERIALPOS_TYPE_A_E_D_E_X = 0, - ELEKTRA_ENUM_SERIALPOS_TYPE_C_D5220 = 1, - ELEKTRA_ENUM_SERIALPOS_TYPE_EPSON = 2, - ELEKTRA_ENUM_SERIALPOS_TYPE_EMAX = 3, - ELEKTRA_ENUM_SERIALPOS_TYPE_LOGIC_CONTROLS = 4, - ELEKTRA_ENUM_SERIALPOS_TYPE_ULTIMATE = 5, -} ElektraEnumSerialposType; - -typedef enum -{ - ELEKTRA_ENUM_SERVER_BACKLIGHT_OFF = 0, - ELEKTRA_ENUM_SERVER_BACKLIGHT_ON = 1, - ELEKTRA_ENUM_SERVER_BACKLIGHT_OPEN = 2, -} ElektraEnumServerBacklight; - -typedef enum -{ - ELEKTRA_ENUM_SERVER_HEARTBEAT_OFF = 0, - ELEKTRA_ENUM_SERVER_HEARTBEAT_ON = 1, - ELEKTRA_ENUM_SERVER_HEARTBEAT_OPEN = 2, -} ElektraEnumServerHeartbeat; - -typedef enum -{ - ELEKTRA_ENUM_SERVER_SERVERSCREEN_OFF = 0, - ELEKTRA_ENUM_SERVER_SERVERSCREEN_ON = 1, - ELEKTRA_ENUM_SERVER_SERVERSCREEN_BLANK = 2, -} ElektraEnumServerServerscreen; - - -ELEKTRA_KEY_TO_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel); -ELEKTRA_TO_STRING_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel); - -ELEKTRA_GET_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel); -ELEKTRA_SET_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (CFontzPacketModel, EnumCFontzPacketModel); - -ELEKTRA_KEY_TO_SIGNATURE (CursesColor, EnumCursesColor); -ELEKTRA_TO_STRING_SIGNATURE (CursesColor, EnumCursesColor); - -ELEKTRA_GET_SIGNATURE (CursesColor, EnumCursesColor); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (CursesColor, EnumCursesColor); -ELEKTRA_SET_SIGNATURE (CursesColor, EnumCursesColor); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (CursesColor, EnumCursesColor); - -ELEKTRA_KEY_TO_SIGNATURE (CwLnxModel, EnumCwLnxModel); -ELEKTRA_TO_STRING_SIGNATURE (CwLnxModel, EnumCwLnxModel); - -ELEKTRA_GET_SIGNATURE (CwLnxModel, EnumCwLnxModel); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (CwLnxModel, EnumCwLnxModel); -ELEKTRA_SET_SIGNATURE (CwLnxModel, EnumCwLnxModel); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (CwLnxModel, EnumCwLnxModel); - -ELEKTRA_KEY_TO_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType); -ELEKTRA_TO_STRING_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType); - -ELEKTRA_GET_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType); -ELEKTRA_SET_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (GlcdConnectionType, EnumGlcdConnectionType); - -ELEKTRA_KEY_TO_SIGNATURE (HD44780Backlight, EnumHD44780Backlight); -ELEKTRA_TO_STRING_SIGNATURE (HD44780Backlight, EnumHD44780Backlight); - -ELEKTRA_GET_SIGNATURE (HD44780Backlight, EnumHD44780Backlight); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (HD44780Backlight, EnumHD44780Backlight); -ELEKTRA_SET_SIGNATURE (HD44780Backlight, EnumHD44780Backlight); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (HD44780Backlight, EnumHD44780Backlight); - -ELEKTRA_KEY_TO_SIGNATURE (HD44780Charmap, EnumHD44780Charmap); -ELEKTRA_TO_STRING_SIGNATURE (HD44780Charmap, EnumHD44780Charmap); - -ELEKTRA_GET_SIGNATURE (HD44780Charmap, EnumHD44780Charmap); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (HD44780Charmap, EnumHD44780Charmap); -ELEKTRA_SET_SIGNATURE (HD44780Charmap, EnumHD44780Charmap); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (HD44780Charmap, EnumHD44780Charmap); - -ELEKTRA_KEY_TO_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType); -ELEKTRA_TO_STRING_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType); - -ELEKTRA_GET_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType); -ELEKTRA_SET_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (HD44780ConnectionType, EnumHD44780ConnectionType); - -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model); -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model); - -ELEKTRA_GET_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model); -ELEKTRA_SET_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumHd44780Model, EnumHd44780Model); - -ELEKTRA_KEY_TO_SIGNATURE (IMonCharmap, EnumIMonCharmap); -ELEKTRA_TO_STRING_SIGNATURE (IMonCharmap, EnumIMonCharmap); - -ELEKTRA_GET_SIGNATURE (IMonCharmap, EnumIMonCharmap); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (IMonCharmap, EnumIMonCharmap); -ELEKTRA_SET_SIGNATURE (IMonCharmap, EnumIMonCharmap); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (IMonCharmap, EnumIMonCharmap); - -ELEKTRA_KEY_TO_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode); -ELEKTRA_TO_STRING_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode); - -ELEKTRA_GET_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode); -ELEKTRA_SET_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (IMonLCDDiscMode, EnumIMonLCDDiscMode); - -ELEKTRA_KEY_TO_SIGNATURE (Lcdm001Keys, EnumLcdm001Keys); -ELEKTRA_TO_STRING_SIGNATURE (Lcdm001Keys, EnumLcdm001Keys); - -ELEKTRA_GET_SIGNATURE (Lcdm001Keys, EnumLcdm001Keys); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (Lcdm001Keys, EnumLcdm001Keys); -ELEKTRA_SET_SIGNATURE (Lcdm001Keys, EnumLcdm001Keys); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (Lcdm001Keys, EnumLcdm001Keys); - -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock); -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock); - -ELEKTRA_GET_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock); -ELEKTRA_SET_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumMdm166aClock, EnumMdm166aClock); - -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType); -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType); - -ELEKTRA_GET_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType); -ELEKTRA_SET_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumMtxorbType, EnumMtxorbType); - -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype); -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype); - -ELEKTRA_GET_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype); -ELEKTRA_SET_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSed1330Connectiontype, EnumSed1330Connectiontype); - -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type); -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type); - -ELEKTRA_GET_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type); -ELEKTRA_SET_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSed1330Type, EnumSed1330Type); - -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType); -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType); - -ELEKTRA_GET_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType); -ELEKTRA_SET_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumSerialposType, EnumSerialposType); - -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight); -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight); - -ELEKTRA_GET_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight); -ELEKTRA_SET_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerBacklight, EnumServerBacklight); - -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat); -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat); - -ELEKTRA_GET_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat); -ELEKTRA_SET_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerHeartbeat, EnumServerHeartbeat); - -ELEKTRA_KEY_TO_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen); -ELEKTRA_TO_STRING_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen); - -ELEKTRA_GET_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen); -ELEKTRA_GET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen); -ELEKTRA_SET_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (ElektraEnumServerServerscreen, EnumServerServerscreen); - - - -// clang-format off - -// clang-format on - -#define ELEKTRA_STRUCT_FREE(typeName) ELEKTRA_CONCAT (elektraFree, typeName) -#define ELEKTRA_STRUCT_FREE_SIGNATURE(cType, typeName) void ELEKTRA_STRUCT_FREE (typeName) (cType * ptr) - -typedef struct BayradDriverConfig -{ - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t speed; - -} BayradDriverConfig; - -typedef struct CFontzDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_boolean_t newfirmware; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * size; - - - kdb_unsigned_short_t speed; - - - kdb_boolean_t usb; - -} CFontzDriverConfig; - -typedef struct CFontzPacketDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - CFontzPacketModel model; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t oldfirmware; - - - kdb_boolean_t reboot; - - - const char * size; - - - kdb_unsigned_short_t speed; - - - kdb_boolean_t usb; - -} CFontzPacketDriverConfig; - -typedef struct CursesDriverConfig -{ - - CursesColor background; - - - CursesColor backlight; - - - kdb_boolean_t drawborder; - - - const char * file; - - - CursesColor foreground; - - - const char * size; - - - kdb_unsigned_short_t topleftx; - - - kdb_unsigned_short_t toplefty; - - - kdb_boolean_t useacs; - -} CursesDriverConfig; - -typedef struct CwLnxDriverConfig -{ - - const char * device; - - - const char * file; - - - const char * keymapA; - - - const char * keymapB; - - - const char * keymapC; - - - const char * keymapD; - - - const char * keymapE; - - - const char * keymapF; - - - kdb_boolean_t keypad; - - - kdb_boolean_t keypadTestMode; - - - CwLnxModel model; - - - const char * size; - - - kdb_unsigned_short_t speed; - -} CwLnxDriverConfig; - -typedef struct Ea65DriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - -} Ea65DriverConfig; - -typedef struct EyeboxOneDriverConfig -{ - - kdb_boolean_t backlight; - - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - kdb_boolean_t cursor; - - - const char * device; - - - const char * downkey; - - - const char * escapekey; - - - const char * file; - - - kdb_boolean_t keypadTestMode; - - - const char * leftkey; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * rightkey; - - - const char * size; - - - kdb_unsigned_short_t speed; - - - const char * upkey; - -} EyeboxOneDriverConfig; - -typedef struct FutabaDriverConfig -{ - - const char * file; - -} FutabaDriverConfig; - -typedef struct G15DriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * size; - -} G15DriverConfig; - -typedef struct GlcdDriverConfig -{ - - kdb_boolean_t bidirectional; - - - kdb_unsigned_short_t brightness; - - - const char * cellsize; - - - GlcdConnectionType connectiontype; - - - kdb_unsigned_short_t contrast; - - - kdb_boolean_t delaybus; - - - const char * file; - - - kdb_boolean_t fonthasicons; - - - const char * keymapA; - - - const char * keymapB; - - - const char * keymapC; - - - const char * keymapD; - - - const char * keymapE; - - - const char * keymapF; - - - kdb_unsigned_short_t keyrepeatdelay; - - - kdb_unsigned_short_t keyrepeatinterval; - - - const char * normalFont; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t picolcdgfxInverted; - - - const char * picolcdgfxKeytimeout; - - - const char * port; - - - kdb_boolean_t reboot; - - - const char * serdispDevice; - - - const char * serdispName; - - - const char * serdispOptions; - - - const char * size; - - - kdb_boolean_t useft2; - - - const char * x11Backlightcolor; - - - kdb_unsigned_long_t x11Border; - - - kdb_boolean_t x11Inverted; - - - const char * x11Pixelcolor; - - - const char * x11Pixelsize; - -} GlcdDriverConfig; - -typedef struct GlcdlibDriverConfig -{ - - const char * CharEncoding; - - - kdb_boolean_t backlight; - - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * driver; - - - const char * file; - - - const char * fontfile; - - - kdb_boolean_t invert; - - - const char * minfontfacesize; - - - kdb_unsigned_short_t offbrightness; - - - kdb_short_t pixelshiftx; - - - kdb_short_t pixelshifty; - - - kdb_boolean_t reboot; - - - kdb_boolean_t showbigborder; - - - kdb_boolean_t showdebugframe; - - - kdb_boolean_t showthinborder; - - - const char * textresolution; - - - kdb_boolean_t upsidedown; - - - kdb_boolean_t useft2; - -} GlcdlibDriverConfig; - -typedef struct GlkDriverConfig -{ - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t speed; - -} GlkDriverConfig; - -typedef struct Hd44780DriverConfig -{ - - HD44780Backlight backlight; - - - const char * backlightcmdoff; - - - const char * backlightcmdon; - - - kdb_unsigned_short_t brightness; - - - HD44780Charmap charmap; - - - HD44780ConnectionType connectiontype; - - - kdb_unsigned_short_t contrast; - - - kdb_boolean_t delaybus; - - - kdb_unsigned_short_t delaymult; - - - const char * device; - - - kdb_boolean_t extendedmode; - - - const char * file; - - - kdb_unsigned_short_t fontbank; - - - kdb_unsigned_short_t keepalivedisplay; - - - const char * keymatrix41; - - - const char * keymatrix42; - - - const char * keymatrix43; - - - const char * keymatrix44; - - - kdb_boolean_t keypad; - - - kdb_boolean_t lastline; - - - const char * lineaddress; - - - ElektraEnumHd44780Model model; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t outputport; - - - const char * port; - - - kdb_boolean_t reboot; - - - kdb_unsigned_short_t refreshdisplay; - - - const char * size; - - - kdb_unsigned_long_t speed; - - - const char * vspan; - -} Hd44780DriverConfig; - -typedef struct Icp_a106DriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * size; - -} Icp_a106DriverConfig; - -typedef struct ImonDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - IMonCharmap charmap; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * size; - -} ImonDriverConfig; - -typedef struct ImonlcdDriverConfig -{ - - kdb_boolean_t backlight; - - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - IMonLCDDiscMode discmode; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_unsigned_short_t onexit; - - - const char * protocol; - - - kdb_boolean_t reboot; - - - const char * size; - -} ImonlcdDriverConfig; - -typedef struct IOWarriorDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - kdb_boolean_t extendedmode; - - - const char * file; - - - kdb_boolean_t lastline; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * serialnumber; - - - const char * size; - -} IOWarriorDriverConfig; - -typedef struct IrManDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - const char * config; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - -} IrManDriverConfig; - -typedef struct IrtransDriverConfig -{ - - kdb_boolean_t backlight; - - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * file; - - - const char * hostname; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * size; - -} IrtransDriverConfig; - -typedef struct JoyDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - const char * mapAxis1neg; - - - const char * mapAxis1pos; - - - const char * mapAxis2neg; - - - const char * mapAxis2pos; - - - const char * mapButton1; - - - const char * mapButton2; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - -} JoyDriverConfig; - -typedef struct Lb216DriverConfig -{ - - kdb_unsigned_short_t brightness; - - - const char * device; - - - const char * file; - - - kdb_boolean_t reboot; - - - kdb_unsigned_short_t speed; - -} Lb216DriverConfig; - -typedef struct Lcdm001DriverConfig -{ - - Lcdm001Keys backkey; - - - const char * device; - - - const char * file; - - - Lcdm001Keys forwardkey; - - - Lcdm001Keys mainmenukey; - - - Lcdm001Keys pausekey; - -} Lcdm001DriverConfig; - -typedef struct LctermDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * size; - -} LctermDriverConfig; - -typedef struct Linux_inputDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - -} Linux_inputDriverConfig; - -typedef struct LircDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * file; - - - const char * lircrc; - - - kdb_unsigned_short_t offbrightness; - - - const char * prog; - - - kdb_boolean_t reboot; - -} LircDriverConfig; - -typedef struct LisDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * file; - - - kdb_boolean_t lastline; - - - kdb_unsigned_short_t offbrightness; - - - const char * productid; - - - kdb_boolean_t reboot; - - - const char * size; - - - const char * vendorid; - -} LisDriverConfig; - -typedef struct MD8800DriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * size; - -} MD8800DriverConfig; - -typedef struct Mdm166aDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - ElektraEnumMdm166aClock clock; - - - kdb_unsigned_short_t contrast; - - - kdb_boolean_t dimming; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t offdimming; - - - kdb_boolean_t reboot; - -} Mdm166aDriverConfig; - -typedef struct Ms6931DriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * size; - -} Ms6931DriverConfig; - -typedef struct Mtc_s16209xDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - -} Mtc_s16209xDriverConfig; - -typedef struct MtxOrbDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_boolean_t hasAdjustableBacklight; - - - const char * keymapA; - - - const char * keymapB; - - - const char * keymapC; - - - const char * keymapD; - - - const char * keymapE; - - - const char * keymapF; - - - kdb_boolean_t keypadTestMode; - - - kdb_unsigned_short_t offbrightness; - - - const char * size; - - - kdb_unsigned_short_t speed; - - - ElektraEnumMtxorbType type; - -} MtxOrbDriverConfig; - -typedef struct Mx5000DriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - kdb_unsigned_long_t waitafterrefresh; - -} Mx5000DriverConfig; - -typedef struct NoritakeVFDDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_unsigned_long_t parity; - - - kdb_boolean_t reboot; - - - const char * size; - - - kdb_unsigned_long_t speed; - -} NoritakeVFDDriverConfig; - -typedef struct Olimex_MOD_LCD1x9DriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - -} Olimex_MOD_LCD1x9DriverConfig; - -typedef struct PicolcdDriverConfig -{ - - kdb_boolean_t backlight; - - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * file; - - - kdb_boolean_t key0light; - - - kdb_boolean_t key1light; - - - kdb_boolean_t key2light; - - - kdb_boolean_t key3light; - - - kdb_boolean_t key4light; - - - kdb_boolean_t key5light; - - - kdb_boolean_t keylights; - - - kdb_unsigned_short_t keyrepeatdelay; - - - kdb_unsigned_short_t keyrepeatinterval; - - - kdb_unsigned_short_t keytimeout; - - - kdb_boolean_t linklights; - - - kdb_unsigned_long_t lircflushthreshold; - - - const char * lirchost; - - - kdb_unsigned_short_t lircport; - - - kdb_boolean_t lirctimeUs; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - -} PicolcdDriverConfig; - -typedef struct PyramidDriverConfig -{ - - const char * device; - - - const char * file; - -} PyramidDriverConfig; - -typedef struct RawserialDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * size; - - - kdb_unsigned_long_t speed; - - - kdb_float_t updaterate; - -} RawserialDriverConfig; - -typedef struct Sed1330DriverConfig -{ - - kdb_unsigned_short_t brightness; - - - const char * cellsize; - - - ElektraEnumSed1330Connectiontype connectiontype; - - - kdb_unsigned_short_t contrast; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - const char * port; - - - kdb_boolean_t reboot; - - - ElektraEnumSed1330Type type; - -} Sed1330DriverConfig; - -typedef struct Sed1520DriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - kdb_unsigned_short_t delaymult; - - - const char * file; - - - kdb_boolean_t haveinverter; - - - kdb_unsigned_short_t interfacetype; - - - kdb_boolean_t invertedmapping; - - - kdb_unsigned_short_t offbrightness; - - - const char * port; - - - kdb_boolean_t reboot; - - - kdb_boolean_t usehardreset; - -} Sed1520DriverConfig; - -typedef struct SerialPOSDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - const char * cellsize; - - - kdb_unsigned_short_t contrast; - - - kdb_unsigned_long_t customChars; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * size; - - - kdb_unsigned_short_t speed; - - - ElektraEnumSerialposType type; - -} SerialPOSDriverConfig; - -typedef struct SerialVFDDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - kdb_unsigned_long_t custom_characters; - - - const char * device; - - - const char * file; - - - kdb_boolean_t iso88591; - - - kdb_unsigned_short_t offbrightness; - - - const char * port; - - - kdb_unsigned_short_t portwait; - - - kdb_boolean_t reboot; - - - const char * size; - - - kdb_unsigned_short_t speed; - - - kdb_unsigned_short_t type; - - - kdb_boolean_t useParallel; - -} SerialVFDDriverConfig; - -typedef struct SliDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - kdb_unsigned_short_t speed; - -} SliDriverConfig; - -typedef struct Stv5730DriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - const char * port; - - - kdb_boolean_t reboot; - -} Stv5730DriverConfig; - -typedef struct SureElecDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - kdb_unsigned_short_t edition; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * size; - -} SureElecDriverConfig; - -typedef struct SvgaDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * file; - - - const char * mode; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * size; - -} SvgaDriverConfig; - -typedef struct T6963DriverConfig -{ - - kdb_boolean_t bidirectional; - - - kdb_unsigned_short_t brightness; - - - kdb_boolean_t cleargraphic; - - - kdb_unsigned_short_t contrast; - - - kdb_boolean_t delaybus; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - const char * port; - - - kdb_boolean_t reboot; - - - const char * size; - -} T6963DriverConfig; - -typedef struct TextDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * size; - -} TextDriverConfig; - -typedef struct TyanDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * size; - - - kdb_unsigned_short_t speed; - -} TyanDriverConfig; - -typedef struct Ula200DriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * file; - - - const char * keymapA; - - - const char * keymapB; - - - const char * keymapC; - - - const char * keymapD; - - - const char * keymapE; - - - const char * keymapF; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * size; - -} Ula200DriverConfig; - -typedef struct Vlsys_m428DriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * device; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - -} Vlsys_m428DriverConfig; - -typedef struct XosdDriverConfig -{ - - const char * Font; - - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - const char * offset; - - - kdb_boolean_t reboot; - - - const char * size; - -} XosdDriverConfig; - -typedef struct Yard2LCDDriverConfig -{ - - kdb_unsigned_short_t brightness; - - - kdb_unsigned_short_t contrast; - - - const char * file; - - - kdb_unsigned_short_t offbrightness; - - - kdb_boolean_t reboot; - - - const char * size; - -} Yard2LCDDriverConfig; - - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (BayradDriverConfig, StructBayradDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (BayradDriverConfig, StructBayradDriverConfig); -ELEKTRA_SET_SIGNATURE (const BayradDriverConfig *, StructBayradDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const BayradDriverConfig *, StructBayradDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (CFontzDriverConfig, StructCFontzDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (CFontzDriverConfig, StructCFontzDriverConfig); -ELEKTRA_SET_SIGNATURE (const CFontzDriverConfig *, StructCFontzDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const CFontzDriverConfig *, StructCFontzDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (CFontzPacketDriverConfig, StructCFontzPacketDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (CFontzPacketDriverConfig, StructCFontzPacketDriverConfig); -ELEKTRA_SET_SIGNATURE (const CFontzPacketDriverConfig *, StructCFontzPacketDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const CFontzPacketDriverConfig *, StructCFontzPacketDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (CursesDriverConfig, StructCursesDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (CursesDriverConfig, StructCursesDriverConfig); -ELEKTRA_SET_SIGNATURE (const CursesDriverConfig *, StructCursesDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const CursesDriverConfig *, StructCursesDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (CwLnxDriverConfig, StructCwLnxDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (CwLnxDriverConfig, StructCwLnxDriverConfig); -ELEKTRA_SET_SIGNATURE (const CwLnxDriverConfig *, StructCwLnxDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const CwLnxDriverConfig *, StructCwLnxDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Ea65DriverConfig, StructEa65DriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Ea65DriverConfig, StructEa65DriverConfig); -ELEKTRA_SET_SIGNATURE (const Ea65DriverConfig *, StructEa65DriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Ea65DriverConfig *, StructEa65DriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (EyeboxOneDriverConfig, StructEyeboxOneDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (EyeboxOneDriverConfig, StructEyeboxOneDriverConfig); -ELEKTRA_SET_SIGNATURE (const EyeboxOneDriverConfig *, StructEyeboxOneDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const EyeboxOneDriverConfig *, StructEyeboxOneDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (FutabaDriverConfig, StructFutabaDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (FutabaDriverConfig, StructFutabaDriverConfig); -ELEKTRA_SET_SIGNATURE (const FutabaDriverConfig *, StructFutabaDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const FutabaDriverConfig *, StructFutabaDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (G15DriverConfig, StructG15DriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (G15DriverConfig, StructG15DriverConfig); -ELEKTRA_SET_SIGNATURE (const G15DriverConfig *, StructG15DriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const G15DriverConfig *, StructG15DriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (GlcdDriverConfig, StructGlcdDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (GlcdDriverConfig, StructGlcdDriverConfig); -ELEKTRA_SET_SIGNATURE (const GlcdDriverConfig *, StructGlcdDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const GlcdDriverConfig *, StructGlcdDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (GlcdlibDriverConfig, StructGlcdlibDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (GlcdlibDriverConfig, StructGlcdlibDriverConfig); -ELEKTRA_SET_SIGNATURE (const GlcdlibDriverConfig *, StructGlcdlibDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const GlcdlibDriverConfig *, StructGlcdlibDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (GlkDriverConfig, StructGlkDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (GlkDriverConfig, StructGlkDriverConfig); -ELEKTRA_SET_SIGNATURE (const GlkDriverConfig *, StructGlkDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const GlkDriverConfig *, StructGlkDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Hd44780DriverConfig, StructHd44780DriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Hd44780DriverConfig, StructHd44780DriverConfig); -ELEKTRA_SET_SIGNATURE (const Hd44780DriverConfig *, StructHd44780DriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Hd44780DriverConfig *, StructHd44780DriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Icp_a106DriverConfig, StructIcp_a106DriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Icp_a106DriverConfig, StructIcp_a106DriverConfig); -ELEKTRA_SET_SIGNATURE (const Icp_a106DriverConfig *, StructIcp_a106DriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Icp_a106DriverConfig *, StructIcp_a106DriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (ImonDriverConfig, StructImonDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (ImonDriverConfig, StructImonDriverConfig); -ELEKTRA_SET_SIGNATURE (const ImonDriverConfig *, StructImonDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const ImonDriverConfig *, StructImonDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (ImonlcdDriverConfig, StructImonlcdDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (ImonlcdDriverConfig, StructImonlcdDriverConfig); -ELEKTRA_SET_SIGNATURE (const ImonlcdDriverConfig *, StructImonlcdDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const ImonlcdDriverConfig *, StructImonlcdDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (IOWarriorDriverConfig, StructIOWarriorDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (IOWarriorDriverConfig, StructIOWarriorDriverConfig); -ELEKTRA_SET_SIGNATURE (const IOWarriorDriverConfig *, StructIOWarriorDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const IOWarriorDriverConfig *, StructIOWarriorDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (IrManDriverConfig, StructIrManDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (IrManDriverConfig, StructIrManDriverConfig); -ELEKTRA_SET_SIGNATURE (const IrManDriverConfig *, StructIrManDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const IrManDriverConfig *, StructIrManDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (IrtransDriverConfig, StructIrtransDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (IrtransDriverConfig, StructIrtransDriverConfig); -ELEKTRA_SET_SIGNATURE (const IrtransDriverConfig *, StructIrtransDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const IrtransDriverConfig *, StructIrtransDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (JoyDriverConfig, StructJoyDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (JoyDriverConfig, StructJoyDriverConfig); -ELEKTRA_SET_SIGNATURE (const JoyDriverConfig *, StructJoyDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const JoyDriverConfig *, StructJoyDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Lb216DriverConfig, StructLb216DriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Lb216DriverConfig, StructLb216DriverConfig); -ELEKTRA_SET_SIGNATURE (const Lb216DriverConfig *, StructLb216DriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Lb216DriverConfig *, StructLb216DriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Lcdm001DriverConfig, StructLcdm001DriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Lcdm001DriverConfig, StructLcdm001DriverConfig); -ELEKTRA_SET_SIGNATURE (const Lcdm001DriverConfig *, StructLcdm001DriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Lcdm001DriverConfig *, StructLcdm001DriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (LctermDriverConfig, StructLctermDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (LctermDriverConfig, StructLctermDriverConfig); -ELEKTRA_SET_SIGNATURE (const LctermDriverConfig *, StructLctermDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const LctermDriverConfig *, StructLctermDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Linux_inputDriverConfig, StructLinux_inputDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Linux_inputDriverConfig, StructLinux_inputDriverConfig); -ELEKTRA_SET_SIGNATURE (const Linux_inputDriverConfig *, StructLinux_inputDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Linux_inputDriverConfig *, StructLinux_inputDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (LircDriverConfig, StructLircDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (LircDriverConfig, StructLircDriverConfig); -ELEKTRA_SET_SIGNATURE (const LircDriverConfig *, StructLircDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const LircDriverConfig *, StructLircDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (LisDriverConfig, StructLisDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (LisDriverConfig, StructLisDriverConfig); -ELEKTRA_SET_SIGNATURE (const LisDriverConfig *, StructLisDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const LisDriverConfig *, StructLisDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (MD8800DriverConfig, StructMD8800DriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (MD8800DriverConfig, StructMD8800DriverConfig); -ELEKTRA_SET_SIGNATURE (const MD8800DriverConfig *, StructMD8800DriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const MD8800DriverConfig *, StructMD8800DriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Mdm166aDriverConfig, StructMdm166aDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Mdm166aDriverConfig, StructMdm166aDriverConfig); -ELEKTRA_SET_SIGNATURE (const Mdm166aDriverConfig *, StructMdm166aDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Mdm166aDriverConfig *, StructMdm166aDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Ms6931DriverConfig, StructMs6931DriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Ms6931DriverConfig, StructMs6931DriverConfig); -ELEKTRA_SET_SIGNATURE (const Ms6931DriverConfig *, StructMs6931DriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Ms6931DriverConfig *, StructMs6931DriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Mtc_s16209xDriverConfig, StructMtc_s16209xDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Mtc_s16209xDriverConfig, StructMtc_s16209xDriverConfig); -ELEKTRA_SET_SIGNATURE (const Mtc_s16209xDriverConfig *, StructMtc_s16209xDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Mtc_s16209xDriverConfig *, StructMtc_s16209xDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (MtxOrbDriverConfig, StructMtxOrbDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (MtxOrbDriverConfig, StructMtxOrbDriverConfig); -ELEKTRA_SET_SIGNATURE (const MtxOrbDriverConfig *, StructMtxOrbDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const MtxOrbDriverConfig *, StructMtxOrbDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Mx5000DriverConfig, StructMx5000DriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Mx5000DriverConfig, StructMx5000DriverConfig); -ELEKTRA_SET_SIGNATURE (const Mx5000DriverConfig *, StructMx5000DriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Mx5000DriverConfig *, StructMx5000DriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (NoritakeVFDDriverConfig, StructNoritakeVFDDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (NoritakeVFDDriverConfig, StructNoritakeVFDDriverConfig); -ELEKTRA_SET_SIGNATURE (const NoritakeVFDDriverConfig *, StructNoritakeVFDDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const NoritakeVFDDriverConfig *, StructNoritakeVFDDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Olimex_MOD_LCD1x9DriverConfig, StructOlimex_MOD_LCD1x9DriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Olimex_MOD_LCD1x9DriverConfig, StructOlimex_MOD_LCD1x9DriverConfig); -ELEKTRA_SET_SIGNATURE (const Olimex_MOD_LCD1x9DriverConfig *, StructOlimex_MOD_LCD1x9DriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Olimex_MOD_LCD1x9DriverConfig *, StructOlimex_MOD_LCD1x9DriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (PicolcdDriverConfig, StructPicolcdDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (PicolcdDriverConfig, StructPicolcdDriverConfig); -ELEKTRA_SET_SIGNATURE (const PicolcdDriverConfig *, StructPicolcdDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const PicolcdDriverConfig *, StructPicolcdDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (PyramidDriverConfig, StructPyramidDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (PyramidDriverConfig, StructPyramidDriverConfig); -ELEKTRA_SET_SIGNATURE (const PyramidDriverConfig *, StructPyramidDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const PyramidDriverConfig *, StructPyramidDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (RawserialDriverConfig, StructRawserialDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (RawserialDriverConfig, StructRawserialDriverConfig); -ELEKTRA_SET_SIGNATURE (const RawserialDriverConfig *, StructRawserialDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const RawserialDriverConfig *, StructRawserialDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Sed1330DriverConfig, StructSed1330DriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Sed1330DriverConfig, StructSed1330DriverConfig); -ELEKTRA_SET_SIGNATURE (const Sed1330DriverConfig *, StructSed1330DriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Sed1330DriverConfig *, StructSed1330DriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Sed1520DriverConfig, StructSed1520DriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Sed1520DriverConfig, StructSed1520DriverConfig); -ELEKTRA_SET_SIGNATURE (const Sed1520DriverConfig *, StructSed1520DriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Sed1520DriverConfig *, StructSed1520DriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (SerialPOSDriverConfig, StructSerialPOSDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SerialPOSDriverConfig, StructSerialPOSDriverConfig); -ELEKTRA_SET_SIGNATURE (const SerialPOSDriverConfig *, StructSerialPOSDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SerialPOSDriverConfig *, StructSerialPOSDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (SerialVFDDriverConfig, StructSerialVFDDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SerialVFDDriverConfig, StructSerialVFDDriverConfig); -ELEKTRA_SET_SIGNATURE (const SerialVFDDriverConfig *, StructSerialVFDDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SerialVFDDriverConfig *, StructSerialVFDDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (SliDriverConfig, StructSliDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SliDriverConfig, StructSliDriverConfig); -ELEKTRA_SET_SIGNATURE (const SliDriverConfig *, StructSliDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SliDriverConfig *, StructSliDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Stv5730DriverConfig, StructStv5730DriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Stv5730DriverConfig, StructStv5730DriverConfig); -ELEKTRA_SET_SIGNATURE (const Stv5730DriverConfig *, StructStv5730DriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Stv5730DriverConfig *, StructStv5730DriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (SureElecDriverConfig, StructSureElecDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SureElecDriverConfig, StructSureElecDriverConfig); -ELEKTRA_SET_SIGNATURE (const SureElecDriverConfig *, StructSureElecDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SureElecDriverConfig *, StructSureElecDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (SvgaDriverConfig, StructSvgaDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (SvgaDriverConfig, StructSvgaDriverConfig); -ELEKTRA_SET_SIGNATURE (const SvgaDriverConfig *, StructSvgaDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const SvgaDriverConfig *, StructSvgaDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (T6963DriverConfig, StructT6963DriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (T6963DriverConfig, StructT6963DriverConfig); -ELEKTRA_SET_SIGNATURE (const T6963DriverConfig *, StructT6963DriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const T6963DriverConfig *, StructT6963DriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (TextDriverConfig, StructTextDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (TextDriverConfig, StructTextDriverConfig); -ELEKTRA_SET_SIGNATURE (const TextDriverConfig *, StructTextDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const TextDriverConfig *, StructTextDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (TyanDriverConfig, StructTyanDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (TyanDriverConfig, StructTyanDriverConfig); -ELEKTRA_SET_SIGNATURE (const TyanDriverConfig *, StructTyanDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const TyanDriverConfig *, StructTyanDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Ula200DriverConfig, StructUla200DriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Ula200DriverConfig, StructUla200DriverConfig); -ELEKTRA_SET_SIGNATURE (const Ula200DriverConfig *, StructUla200DriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Ula200DriverConfig *, StructUla200DriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Vlsys_m428DriverConfig, StructVlsys_m428DriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Vlsys_m428DriverConfig, StructVlsys_m428DriverConfig); -ELEKTRA_SET_SIGNATURE (const Vlsys_m428DriverConfig *, StructVlsys_m428DriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Vlsys_m428DriverConfig *, StructVlsys_m428DriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (XosdDriverConfig, StructXosdDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (XosdDriverConfig, StructXosdDriverConfig); -ELEKTRA_SET_SIGNATURE (const XosdDriverConfig *, StructXosdDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const XosdDriverConfig *, StructXosdDriverConfig); - - -ELEKTRA_GET_OUT_PTR_SIGNATURE (Yard2LCDDriverConfig, StructYard2LCDDriverConfig); -ELEKTRA_GET_OUT_PTR_ARRAY_ELEMENT_SIGNATURE (Yard2LCDDriverConfig, StructYard2LCDDriverConfig); -ELEKTRA_SET_SIGNATURE (const Yard2LCDDriverConfig *, StructYard2LCDDriverConfig); -ELEKTRA_SET_ARRAY_ELEMENT_SIGNATURE (const Yard2LCDDriverConfig *, StructYard2LCDDriverConfig); - - - -// clang-format off - -// clang-format on - -// clang-format off - -/** -* Tag name for 'bayrad/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_BAYRAD Bayrad - -/** -* Tag name for 'bayrad/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_BAYRAD_DEVICE BayradDevice - -/** -* Tag name for 'bayrad/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_BAYRAD_FILE BayradFile - -/** -* Tag name for 'bayrad/#/speed' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_BAYRAD_SPEED BayradSpeed - -/** -* Tag name for 'cfontz/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZ Cfontz - -/** -* Tag name for 'cfontz/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZ_BRIGHTNESS CfontzBrightness - -/** -* Tag name for 'cfontz/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZ_CONTRAST CfontzContrast - -/** -* Tag name for 'cfontz/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZ_DEVICE CfontzDevice - -/** -* Tag name for 'cfontz/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZ_FILE CfontzFile - -/** -* Tag name for 'cfontz/#/newfirmware' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZ_NEWFIRMWARE CfontzNewfirmware - -/** -* Tag name for 'cfontz/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZ_OFFBRIGHTNESS CfontzOffbrightness - -/** -* Tag name for 'cfontz/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZ_REBOOT CfontzReboot - -/** -* Tag name for 'cfontz/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZ_SIZE CfontzSize - -/** -* Tag name for 'cfontz/#/speed' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZ_SPEED CfontzSpeed - -/** -* Tag name for 'cfontz/#/usb' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZ_USB CfontzUsb - -/** -* Tag name for 'cfontzpacket/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZPACKET Cfontzpacket - -/** -* Tag name for 'cfontzpacket/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZPACKET_BRIGHTNESS CfontzpacketBrightness - -/** -* Tag name for 'cfontzpacket/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZPACKET_CONTRAST CfontzpacketContrast - -/** -* Tag name for 'cfontzpacket/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZPACKET_DEVICE CfontzpacketDevice - -/** -* Tag name for 'cfontzpacket/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZPACKET_FILE CfontzpacketFile - -/** -* Tag name for 'cfontzpacket/#/model' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZPACKET_MODEL CfontzpacketModel - -/** -* Tag name for 'cfontzpacket/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZPACKET_OFFBRIGHTNESS CfontzpacketOffbrightness - -/** -* Tag name for 'cfontzpacket/#/oldfirmware' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZPACKET_OLDFIRMWARE CfontzpacketOldfirmware - -/** -* Tag name for 'cfontzpacket/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZPACKET_REBOOT CfontzpacketReboot - -/** -* Tag name for 'cfontzpacket/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZPACKET_SIZE CfontzpacketSize - -/** -* Tag name for 'cfontzpacket/#/speed' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZPACKET_SPEED CfontzpacketSpeed - -/** -* Tag name for 'cfontzpacket/#/usb' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CFONTZPACKET_USB CfontzpacketUsb - -/** -* Tag name for 'curses/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CURSES Curses - -/** -* Tag name for 'curses/#/background' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CURSES_BACKGROUND CursesBackground - -/** -* Tag name for 'curses/#/backlight' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CURSES_BACKLIGHT CursesBacklight - -/** -* Tag name for 'curses/#/drawborder' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CURSES_DRAWBORDER CursesDrawborder - -/** -* Tag name for 'curses/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CURSES_FILE CursesFile - -/** -* Tag name for 'curses/#/foreground' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CURSES_FOREGROUND CursesForeground - -/** -* Tag name for 'curses/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CURSES_SIZE CursesSize - -/** -* Tag name for 'curses/#/topleftx' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CURSES_TOPLEFTX CursesTopleftx - -/** -* Tag name for 'curses/#/toplefty' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CURSES_TOPLEFTY CursesToplefty - -/** -* Tag name for 'curses/#/useacs' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CURSES_USEACS CursesUseacs - -/** -* Tag name for 'cwlnx/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CWLNX Cwlnx - -/** -* Tag name for 'cwlnx/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CWLNX_DEVICE CwlnxDevice - -/** -* Tag name for 'cwlnx/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CWLNX_FILE CwlnxFile - -/** -* Tag name for 'cwlnx/#/keymap_a' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CWLNX_KEYMAP_A CwlnxKeymapA - -/** -* Tag name for 'cwlnx/#/keymap_b' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CWLNX_KEYMAP_B CwlnxKeymapB - -/** -* Tag name for 'cwlnx/#/keymap_c' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CWLNX_KEYMAP_C CwlnxKeymapC - -/** -* Tag name for 'cwlnx/#/keymap_d' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CWLNX_KEYMAP_D CwlnxKeymapD - -/** -* Tag name for 'cwlnx/#/keymap_e' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CWLNX_KEYMAP_E CwlnxKeymapE - -/** -* Tag name for 'cwlnx/#/keymap_f' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CWLNX_KEYMAP_F CwlnxKeymapF - -/** -* Tag name for 'cwlnx/#/keypad' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CWLNX_KEYPAD CwlnxKeypad - -/** -* Tag name for 'cwlnx/#/keypad_test_mode' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CWLNX_KEYPAD_TEST_MODE CwlnxKeypadTestMode - -/** -* Tag name for 'cwlnx/#/model' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CWLNX_MODEL CwlnxModel - -/** -* Tag name for 'cwlnx/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CWLNX_SIZE CwlnxSize - -/** -* Tag name for 'cwlnx/#/speed' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_CWLNX_SPEED CwlnxSpeed - -/** -* Tag name for 'ea65/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EA65 Ea65 - -/** -* Tag name for 'ea65/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EA65_BRIGHTNESS Ea65Brightness - -/** -* Tag name for 'ea65/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EA65_CONTRAST Ea65Contrast - -/** -* Tag name for 'ea65/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EA65_FILE Ea65File - -/** -* Tag name for 'ea65/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EA65_OFFBRIGHTNESS Ea65Offbrightness - -/** -* Tag name for 'ea65/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EA65_REBOOT Ea65Reboot - -/** -* Tag name for 'eyeboxone/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EYEBOXONE Eyeboxone - -/** -* Tag name for 'eyeboxone/#/backlight' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EYEBOXONE_BACKLIGHT EyeboxoneBacklight - -/** -* Tag name for 'eyeboxone/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EYEBOXONE_BRIGHTNESS EyeboxoneBrightness - -/** -* Tag name for 'eyeboxone/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EYEBOXONE_CONTRAST EyeboxoneContrast - -/** -* Tag name for 'eyeboxone/#/cursor' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EYEBOXONE_CURSOR EyeboxoneCursor - -/** -* Tag name for 'eyeboxone/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EYEBOXONE_DEVICE EyeboxoneDevice - -/** -* Tag name for 'eyeboxone/#/downkey' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EYEBOXONE_DOWNKEY EyeboxoneDownkey - -/** -* Tag name for 'eyeboxone/#/escapekey' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EYEBOXONE_ESCAPEKEY EyeboxoneEscapekey - -/** -* Tag name for 'eyeboxone/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EYEBOXONE_FILE EyeboxoneFile - -/** -* Tag name for 'eyeboxone/#/keypad_test_mode' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EYEBOXONE_KEYPAD_TEST_MODE EyeboxoneKeypadTestMode - -/** -* Tag name for 'eyeboxone/#/leftkey' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EYEBOXONE_LEFTKEY EyeboxoneLeftkey - -/** -* Tag name for 'eyeboxone/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EYEBOXONE_OFFBRIGHTNESS EyeboxoneOffbrightness - -/** -* Tag name for 'eyeboxone/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EYEBOXONE_REBOOT EyeboxoneReboot - -/** -* Tag name for 'eyeboxone/#/rightkey' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EYEBOXONE_RIGHTKEY EyeboxoneRightkey - -/** -* Tag name for 'eyeboxone/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EYEBOXONE_SIZE EyeboxoneSize - -/** -* Tag name for 'eyeboxone/#/speed' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EYEBOXONE_SPEED EyeboxoneSpeed - -/** -* Tag name for 'eyeboxone/#/upkey' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_EYEBOXONE_UPKEY EyeboxoneUpkey - -/** -* Tag name for 'futaba/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_FUTABA Futaba - -/** -* Tag name for 'futaba/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_FUTABA_FILE FutabaFile - -/** -* Tag name for 'g15/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_G15 G15 - -/** -* Tag name for 'g15/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_G15_BRIGHTNESS G15Brightness - -/** -* Tag name for 'g15/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_G15_CONTRAST G15Contrast - -/** -* Tag name for 'g15/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_G15_FILE G15File - -/** -* Tag name for 'g15/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_G15_OFFBRIGHTNESS G15Offbrightness - -/** -* Tag name for 'g15/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_G15_REBOOT G15Reboot - -/** -* Tag name for 'g15/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_G15_SIZE G15Size - -/** -* Tag name for 'glcd/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD Glcd - -/** -* Tag name for 'glcd/#/bidirectional' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_BIDIRECTIONAL GlcdBidirectional - -/** -* Tag name for 'glcd/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_BRIGHTNESS GlcdBrightness - -/** -* Tag name for 'glcd/#/cellsize' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_CELLSIZE GlcdCellsize - -/** -* Tag name for 'glcd/#/connectiontype' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_CONNECTIONTYPE GlcdConnectiontype - -/** -* Tag name for 'glcd/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_CONTRAST GlcdContrast - -/** -* Tag name for 'glcd/#/delaybus' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_DELAYBUS GlcdDelaybus - -/** -* Tag name for 'glcd/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_FILE GlcdFile - -/** -* Tag name for 'glcd/#/fonthasicons' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_FONTHASICONS GlcdFonthasicons - -/** -* Tag name for 'glcd/#/keymap_a' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_KEYMAP_A GlcdKeymapA - -/** -* Tag name for 'glcd/#/keymap_b' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_KEYMAP_B GlcdKeymapB - -/** -* Tag name for 'glcd/#/keymap_c' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_KEYMAP_C GlcdKeymapC - -/** -* Tag name for 'glcd/#/keymap_d' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_KEYMAP_D GlcdKeymapD - -/** -* Tag name for 'glcd/#/keymap_e' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_KEYMAP_E GlcdKeymapE - -/** -* Tag name for 'glcd/#/keymap_f' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_KEYMAP_F GlcdKeymapF - -/** -* Tag name for 'glcd/#/keyrepeatdelay' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_KEYREPEATDELAY GlcdKeyrepeatdelay - -/** -* Tag name for 'glcd/#/keyrepeatinterval' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_KEYREPEATINTERVAL GlcdKeyrepeatinterval - -/** -* Tag name for 'glcd/#/normal_font' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_NORMAL_FONT GlcdNormalFont - -/** -* Tag name for 'glcd/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_OFFBRIGHTNESS GlcdOffbrightness - -/** -* Tag name for 'glcd/#/picolcdgfx_inverted' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_PICOLCDGFX_INVERTED GlcdPicolcdgfxInverted - -/** -* Tag name for 'glcd/#/picolcdgfx_keytimeout' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_PICOLCDGFX_KEYTIMEOUT GlcdPicolcdgfxKeytimeout - -/** -* Tag name for 'glcd/#/port' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_PORT GlcdPort - -/** -* Tag name for 'glcd/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_REBOOT GlcdReboot - -/** -* Tag name for 'glcd/#/serdisp_device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_SERDISP_DEVICE GlcdSerdispDevice - -/** -* Tag name for 'glcd/#/serdisp_name' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_SERDISP_NAME GlcdSerdispName - -/** -* Tag name for 'glcd/#/serdisp_options' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_SERDISP_OPTIONS GlcdSerdispOptions - -/** -* Tag name for 'glcd/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_SIZE GlcdSize - -/** -* Tag name for 'glcd/#/useft2' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_USEFT2 GlcdUseft2 - -/** -* Tag name for 'glcd/#/x11_backlightcolor' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_X11_BACKLIGHTCOLOR GlcdX11Backlightcolor - -/** -* Tag name for 'glcd/#/x11_border' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_X11_BORDER GlcdX11Border - -/** -* Tag name for 'glcd/#/x11_inverted' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_X11_INVERTED GlcdX11Inverted - -/** -* Tag name for 'glcd/#/x11_pixelcolor' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_X11_PIXELCOLOR GlcdX11Pixelcolor - -/** -* Tag name for 'glcd/#/x11_pixelsize' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCD_X11_PIXELSIZE GlcdX11Pixelsize - -/** -* Tag name for 'glcdlib/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB Glcdlib - -/** -* Tag name for 'glcdlib/#/CharEncoding' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_CHARENCODING GlcdlibCharEncoding - -/** -* Tag name for 'glcdlib/#/backlight' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_BACKLIGHT GlcdlibBacklight - -/** -* Tag name for 'glcdlib/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_BRIGHTNESS GlcdlibBrightness - -/** -* Tag name for 'glcdlib/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_CONTRAST GlcdlibContrast - -/** -* Tag name for 'glcdlib/#/driver' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_DRIVER GlcdlibDriver - -/** -* Tag name for 'glcdlib/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_FILE GlcdlibFile - -/** -* Tag name for 'glcdlib/#/fontfile' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_FONTFILE GlcdlibFontfile - -/** -* Tag name for 'glcdlib/#/invert' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_INVERT GlcdlibInvert - -/** -* Tag name for 'glcdlib/#/minfontfacesize' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_MINFONTFACESIZE GlcdlibMinfontfacesize - -/** -* Tag name for 'glcdlib/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_OFFBRIGHTNESS GlcdlibOffbrightness - -/** -* Tag name for 'glcdlib/#/pixelshiftx' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_PIXELSHIFTX GlcdlibPixelshiftx - -/** -* Tag name for 'glcdlib/#/pixelshifty' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_PIXELSHIFTY GlcdlibPixelshifty - -/** -* Tag name for 'glcdlib/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_REBOOT GlcdlibReboot - -/** -* Tag name for 'glcdlib/#/showbigborder' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_SHOWBIGBORDER GlcdlibShowbigborder - -/** -* Tag name for 'glcdlib/#/showdebugframe' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_SHOWDEBUGFRAME GlcdlibShowdebugframe - -/** -* Tag name for 'glcdlib/#/showthinborder' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_SHOWTHINBORDER GlcdlibShowthinborder - -/** -* Tag name for 'glcdlib/#/textresolution' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_TEXTRESOLUTION GlcdlibTextresolution - -/** -* Tag name for 'glcdlib/#/upsidedown' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_UPSIDEDOWN GlcdlibUpsidedown - -/** -* Tag name for 'glcdlib/#/useft2' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLCDLIB_USEFT2 GlcdlibUseft2 - -/** -* Tag name for 'glk/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLK Glk - -/** -* Tag name for 'glk/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLK_CONTRAST GlkContrast - -/** -* Tag name for 'glk/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLK_DEVICE GlkDevice - -/** -* Tag name for 'glk/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLK_FILE GlkFile - -/** -* Tag name for 'glk/#/speed' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_GLK_SPEED GlkSpeed - -/** -* Tag name for 'hd44780/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780 Hd44780 - -/** -* Tag name for 'hd44780/#/backlight' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_BACKLIGHT Hd44780Backlight - -/** -* Tag name for 'hd44780/#/backlightcmdoff' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_BACKLIGHTCMDOFF Hd44780Backlightcmdoff - -/** -* Tag name for 'hd44780/#/backlightcmdon' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_BACKLIGHTCMDON Hd44780Backlightcmdon - -/** -* Tag name for 'hd44780/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_BRIGHTNESS Hd44780Brightness - -/** -* Tag name for 'hd44780/#/charmap' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_CHARMAP Hd44780Charmap - -/** -* Tag name for 'hd44780/#/connectiontype' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_CONNECTIONTYPE Hd44780Connectiontype - -/** -* Tag name for 'hd44780/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_CONTRAST Hd44780Contrast - -/** -* Tag name for 'hd44780/#/delaybus' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_DELAYBUS Hd44780Delaybus - -/** -* Tag name for 'hd44780/#/delaymult' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_DELAYMULT Hd44780Delaymult - -/** -* Tag name for 'hd44780/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_DEVICE Hd44780Device - -/** -* Tag name for 'hd44780/#/extendedmode' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_EXTENDEDMODE Hd44780Extendedmode - -/** -* Tag name for 'hd44780/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_FILE Hd44780File - -/** -* Tag name for 'hd44780/#/fontbank' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_FONTBANK Hd44780Fontbank - -/** -* Tag name for 'hd44780/#/keepalivedisplay' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_KEEPALIVEDISPLAY Hd44780Keepalivedisplay - -/** -* Tag name for 'hd44780/#/keymatrix_4_1' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_KEYMATRIX_4_1 Hd44780Keymatrix41 - -/** -* Tag name for 'hd44780/#/keymatrix_4_2' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_KEYMATRIX_4_2 Hd44780Keymatrix42 - -/** -* Tag name for 'hd44780/#/keymatrix_4_3' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_KEYMATRIX_4_3 Hd44780Keymatrix43 - -/** -* Tag name for 'hd44780/#/keymatrix_4_4' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_KEYMATRIX_4_4 Hd44780Keymatrix44 - -/** -* Tag name for 'hd44780/#/keypad' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_KEYPAD Hd44780Keypad - -/** -* Tag name for 'hd44780/#/lastline' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_LASTLINE Hd44780Lastline - -/** -* Tag name for 'hd44780/#/lineaddress' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_LINEADDRESS Hd44780Lineaddress - -/** -* Tag name for 'hd44780/#/model' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_MODEL Hd44780Model - -/** -* Tag name for 'hd44780/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_OFFBRIGHTNESS Hd44780Offbrightness - -/** -* Tag name for 'hd44780/#/outputport' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_OUTPUTPORT Hd44780Outputport - -/** -* Tag name for 'hd44780/#/port' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_PORT Hd44780Port - -/** -* Tag name for 'hd44780/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_REBOOT Hd44780Reboot - -/** -* Tag name for 'hd44780/#/refreshdisplay' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_REFRESHDISPLAY Hd44780Refreshdisplay - -/** -* Tag name for 'hd44780/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_SIZE Hd44780Size - -/** -* Tag name for 'hd44780/#/speed' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_SPEED Hd44780Speed - -/** -* Tag name for 'hd44780/#/vspan' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_HD44780_VSPAN Hd44780Vspan - -/** -* Tag name for 'icp_a106/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ICP_A106 IcpA106 - -/** -* Tag name for 'icp_a106/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ICP_A106_BRIGHTNESS IcpA106Brightness - -/** -* Tag name for 'icp_a106/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ICP_A106_CONTRAST IcpA106Contrast - -/** -* Tag name for 'icp_a106/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ICP_A106_DEVICE IcpA106Device - -/** -* Tag name for 'icp_a106/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ICP_A106_FILE IcpA106File - -/** -* Tag name for 'icp_a106/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ICP_A106_OFFBRIGHTNESS IcpA106Offbrightness - -/** -* Tag name for 'icp_a106/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ICP_A106_REBOOT IcpA106Reboot - -/** -* Tag name for 'icp_a106/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ICP_A106_SIZE IcpA106Size - -/** -* Tag name for 'imon/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMON Imon - -/** -* Tag name for 'imon/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMON_BRIGHTNESS ImonBrightness - -/** -* Tag name for 'imon/#/charmap' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMON_CHARMAP ImonCharmap - -/** -* Tag name for 'imon/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMON_CONTRAST ImonContrast - -/** -* Tag name for 'imon/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMON_DEVICE ImonDevice - -/** -* Tag name for 'imon/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMON_FILE ImonFile - -/** -* Tag name for 'imon/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMON_OFFBRIGHTNESS ImonOffbrightness - -/** -* Tag name for 'imon/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMON_REBOOT ImonReboot - -/** -* Tag name for 'imon/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMON_SIZE ImonSize - -/** -* Tag name for 'imonlcd/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMONLCD Imonlcd - -/** -* Tag name for 'imonlcd/#/backlight' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMONLCD_BACKLIGHT ImonlcdBacklight - -/** -* Tag name for 'imonlcd/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMONLCD_BRIGHTNESS ImonlcdBrightness - -/** -* Tag name for 'imonlcd/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMONLCD_CONTRAST ImonlcdContrast - -/** -* Tag name for 'imonlcd/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMONLCD_DEVICE ImonlcdDevice - -/** -* Tag name for 'imonlcd/#/discmode' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMONLCD_DISCMODE ImonlcdDiscmode - -/** -* Tag name for 'imonlcd/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMONLCD_FILE ImonlcdFile - -/** -* Tag name for 'imonlcd/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMONLCD_OFFBRIGHTNESS ImonlcdOffbrightness - -/** -* Tag name for 'imonlcd/#/onexit' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMONLCD_ONEXIT ImonlcdOnexit - -/** -* Tag name for 'imonlcd/#/protocol' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMONLCD_PROTOCOL ImonlcdProtocol - -/** -* Tag name for 'imonlcd/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMONLCD_REBOOT ImonlcdReboot - -/** -* Tag name for 'imonlcd/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IMONLCD_SIZE ImonlcdSize - -/** -* Tag name for 'iowarrior/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IOWARRIOR Iowarrior - -/** -* Tag name for 'iowarrior/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IOWARRIOR_BRIGHTNESS IowarriorBrightness - -/** -* Tag name for 'iowarrior/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IOWARRIOR_CONTRAST IowarriorContrast - -/** -* Tag name for 'iowarrior/#/extendedmode' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IOWARRIOR_EXTENDEDMODE IowarriorExtendedmode - -/** -* Tag name for 'iowarrior/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IOWARRIOR_FILE IowarriorFile - -/** -* Tag name for 'iowarrior/#/lastline' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IOWARRIOR_LASTLINE IowarriorLastline - -/** -* Tag name for 'iowarrior/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IOWARRIOR_OFFBRIGHTNESS IowarriorOffbrightness - -/** -* Tag name for 'iowarrior/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IOWARRIOR_REBOOT IowarriorReboot - -/** -* Tag name for 'iowarrior/#/serialnumber' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IOWARRIOR_SERIALNUMBER IowarriorSerialnumber - -/** -* Tag name for 'iowarrior/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IOWARRIOR_SIZE IowarriorSize - -/** -* Tag name for 'irman/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IRMAN Irman - -/** -* Tag name for 'irman/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IRMAN_BRIGHTNESS IrmanBrightness - -/** -* Tag name for 'irman/#/config' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IRMAN_CONFIG IrmanConfig - -/** -* Tag name for 'irman/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IRMAN_CONTRAST IrmanContrast - -/** -* Tag name for 'irman/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IRMAN_DEVICE IrmanDevice - -/** -* Tag name for 'irman/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IRMAN_FILE IrmanFile - -/** -* Tag name for 'irman/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IRMAN_OFFBRIGHTNESS IrmanOffbrightness - -/** -* Tag name for 'irman/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IRMAN_REBOOT IrmanReboot - -/** -* Tag name for 'irtrans/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IRTRANS Irtrans - -/** -* Tag name for 'irtrans/#/backlight' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IRTRANS_BACKLIGHT IrtransBacklight - -/** -* Tag name for 'irtrans/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IRTRANS_BRIGHTNESS IrtransBrightness - -/** -* Tag name for 'irtrans/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IRTRANS_CONTRAST IrtransContrast - -/** -* Tag name for 'irtrans/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IRTRANS_FILE IrtransFile - -/** -* Tag name for 'irtrans/#/hostname' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IRTRANS_HOSTNAME IrtransHostname - -/** -* Tag name for 'irtrans/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IRTRANS_OFFBRIGHTNESS IrtransOffbrightness - -/** -* Tag name for 'irtrans/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IRTRANS_REBOOT IrtransReboot - -/** -* Tag name for 'irtrans/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_IRTRANS_SIZE IrtransSize - -/** -* Tag name for 'joy/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_JOY Joy - -/** -* Tag name for 'joy/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_JOY_BRIGHTNESS JoyBrightness - -/** -* Tag name for 'joy/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_JOY_CONTRAST JoyContrast - -/** -* Tag name for 'joy/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_JOY_DEVICE JoyDevice - -/** -* Tag name for 'joy/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_JOY_FILE JoyFile - -/** -* Tag name for 'joy/#/map_axis1neg' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_JOY_MAP_AXIS1NEG JoyMapAxis1neg - -/** -* Tag name for 'joy/#/map_axis1pos' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_JOY_MAP_AXIS1POS JoyMapAxis1pos - -/** -* Tag name for 'joy/#/map_axis2neg' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_JOY_MAP_AXIS2NEG JoyMapAxis2neg - -/** -* Tag name for 'joy/#/map_axis2pos' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_JOY_MAP_AXIS2POS JoyMapAxis2pos - -/** -* Tag name for 'joy/#/map_button1' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_JOY_MAP_BUTTON1 JoyMapButton1 - -/** -* Tag name for 'joy/#/map_button2' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_JOY_MAP_BUTTON2 JoyMapButton2 - -/** -* Tag name for 'joy/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_JOY_OFFBRIGHTNESS JoyOffbrightness - -/** -* Tag name for 'joy/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_JOY_REBOOT JoyReboot - -/** -* Tag name for 'lb216/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LB216 Lb216 - -/** -* Tag name for 'lb216/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LB216_BRIGHTNESS Lb216Brightness - -/** -* Tag name for 'lb216/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LB216_DEVICE Lb216Device - -/** -* Tag name for 'lb216/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LB216_FILE Lb216File - -/** -* Tag name for 'lb216/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LB216_REBOOT Lb216Reboot - -/** -* Tag name for 'lb216/#/speed' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LB216_SPEED Lb216Speed - -/** -* Tag name for 'lcdm001/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LCDM001 Lcdm001 - -/** -* Tag name for 'lcdm001/#/backkey' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LCDM001_BACKKEY Lcdm001Backkey - -/** -* Tag name for 'lcdm001/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LCDM001_DEVICE Lcdm001Device - -/** -* Tag name for 'lcdm001/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LCDM001_FILE Lcdm001File - -/** -* Tag name for 'lcdm001/#/forwardkey' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LCDM001_FORWARDKEY Lcdm001Forwardkey - -/** -* Tag name for 'lcdm001/#/mainmenukey' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LCDM001_MAINMENUKEY Lcdm001Mainmenukey - -/** -* Tag name for 'lcdm001/#/pausekey' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LCDM001_PAUSEKEY Lcdm001Pausekey - -/** -* Tag name for 'lcterm/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LCTERM Lcterm - -/** -* Tag name for 'lcterm/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LCTERM_BRIGHTNESS LctermBrightness - -/** -* Tag name for 'lcterm/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LCTERM_CONTRAST LctermContrast - -/** -* Tag name for 'lcterm/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LCTERM_DEVICE LctermDevice - -/** -* Tag name for 'lcterm/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LCTERM_FILE LctermFile - -/** -* Tag name for 'lcterm/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LCTERM_OFFBRIGHTNESS LctermOffbrightness - -/** -* Tag name for 'lcterm/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LCTERM_REBOOT LctermReboot - -/** -* Tag name for 'lcterm/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LCTERM_SIZE LctermSize - -/** -* Tag name for 'linux_input/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LINUX_INPUT LinuxInput - -/** -* Tag name for 'linux_input/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LINUX_INPUT_BRIGHTNESS LinuxInputBrightness - -/** -* Tag name for 'linux_input/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LINUX_INPUT_CONTRAST LinuxInputContrast - -/** -* Tag name for 'linux_input/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LINUX_INPUT_DEVICE LinuxInputDevice - -/** -* Tag name for 'linux_input/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LINUX_INPUT_FILE LinuxInputFile - -/** -* Tag name for 'linux_input/#/key/_' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* - const char * name1: Replaces occurence no. 1 of _ in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LINUX_INPUT_KEY LinuxInputKey - -/** -* Tag name for 'linux_input/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LINUX_INPUT_OFFBRIGHTNESS LinuxInputOffbrightness - -/** -* Tag name for 'linux_input/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LINUX_INPUT_REBOOT LinuxInputReboot - -/** -* Tag name for 'lirc/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIRC Lirc - -/** -* Tag name for 'lirc/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIRC_BRIGHTNESS LircBrightness - -/** -* Tag name for 'lirc/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIRC_CONTRAST LircContrast - -/** -* Tag name for 'lirc/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIRC_FILE LircFile - -/** -* Tag name for 'lirc/#/lircrc' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIRC_LIRCRC LircLircrc - -/** -* Tag name for 'lirc/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIRC_OFFBRIGHTNESS LircOffbrightness - -/** -* Tag name for 'lirc/#/prog' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIRC_PROG LircProg - -/** -* Tag name for 'lirc/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIRC_REBOOT LircReboot - -/** -* Tag name for 'lis/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIS Lis - -/** -* Tag name for 'lis/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIS_BRIGHTNESS LisBrightness - -/** -* Tag name for 'lis/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIS_CONTRAST LisContrast - -/** -* Tag name for 'lis/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIS_FILE LisFile - -/** -* Tag name for 'lis/#/lastline' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIS_LASTLINE LisLastline - -/** -* Tag name for 'lis/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIS_OFFBRIGHTNESS LisOffbrightness - -/** -* Tag name for 'lis/#/productid' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIS_PRODUCTID LisProductid - -/** -* Tag name for 'lis/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIS_REBOOT LisReboot - -/** -* Tag name for 'lis/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIS_SIZE LisSize - -/** -* Tag name for 'lis/#/vendorid' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_LIS_VENDORID LisVendorid - -/** -* Tag name for 'md8800/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MD8800 Md8800 - -/** -* Tag name for 'md8800/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MD8800_BRIGHTNESS Md8800Brightness - -/** -* Tag name for 'md8800/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MD8800_CONTRAST Md8800Contrast - -/** -* Tag name for 'md8800/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MD8800_DEVICE Md8800Device - -/** -* Tag name for 'md8800/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MD8800_FILE Md8800File - -/** -* Tag name for 'md8800/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MD8800_OFFBRIGHTNESS Md8800Offbrightness - -/** -* Tag name for 'md8800/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MD8800_REBOOT Md8800Reboot - -/** -* Tag name for 'md8800/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MD8800_SIZE Md8800Size - -/** -* Tag name for 'mdm166a/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MDM166A Mdm166a - -/** -* Tag name for 'mdm166a/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MDM166A_BRIGHTNESS Mdm166aBrightness - -/** -* Tag name for 'mdm166a/#/clock' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MDM166A_CLOCK Mdm166aClock - -/** -* Tag name for 'mdm166a/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MDM166A_CONTRAST Mdm166aContrast - -/** -* Tag name for 'mdm166a/#/dimming' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MDM166A_DIMMING Mdm166aDimming - -/** -* Tag name for 'mdm166a/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MDM166A_FILE Mdm166aFile - -/** -* Tag name for 'mdm166a/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MDM166A_OFFBRIGHTNESS Mdm166aOffbrightness - -/** -* Tag name for 'mdm166a/#/offdimming' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MDM166A_OFFDIMMING Mdm166aOffdimming - -/** -* Tag name for 'mdm166a/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MDM166A_REBOOT Mdm166aReboot - -/** -* Tag name for 'menu/downkey' -* -*/// -#define ELEKTRA_TAG_MENU_DOWNKEY MenuDownkey - -/** -* Tag name for 'menu/enterkey' -* -*/// -#define ELEKTRA_TAG_MENU_ENTERKEY MenuEnterkey - -/** -* Tag name for 'menu/leftkey' -* -*/// -#define ELEKTRA_TAG_MENU_LEFTKEY MenuLeftkey - -/** -* Tag name for 'menu/menukey' -* -*/// -#define ELEKTRA_TAG_MENU_MENUKEY MenuMenukey - -/** -* Tag name for 'menu/permissivegoto' -* -*/// -#define ELEKTRA_TAG_MENU_PERMISSIVEGOTO MenuPermissivegoto - -/** -* Tag name for 'menu/rightkey' -* -*/// -#define ELEKTRA_TAG_MENU_RIGHTKEY MenuRightkey - -/** -* Tag name for 'menu/upkey' -* -*/// -#define ELEKTRA_TAG_MENU_UPKEY MenuUpkey - -/** -* Tag name for 'ms6931/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MS6931 Ms6931 - -/** -* Tag name for 'ms6931/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MS6931_BRIGHTNESS Ms6931Brightness - -/** -* Tag name for 'ms6931/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MS6931_CONTRAST Ms6931Contrast - -/** -* Tag name for 'ms6931/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MS6931_DEVICE Ms6931Device - -/** -* Tag name for 'ms6931/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MS6931_FILE Ms6931File - -/** -* Tag name for 'ms6931/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MS6931_OFFBRIGHTNESS Ms6931Offbrightness - -/** -* Tag name for 'ms6931/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MS6931_REBOOT Ms6931Reboot - -/** -* Tag name for 'ms6931/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MS6931_SIZE Ms6931Size - -/** -* Tag name for 'mtc_s16209x/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTC_S16209X MtcS16209x - -/** -* Tag name for 'mtc_s16209x/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTC_S16209X_BRIGHTNESS MtcS16209xBrightness - -/** -* Tag name for 'mtc_s16209x/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTC_S16209X_CONTRAST MtcS16209xContrast - -/** -* Tag name for 'mtc_s16209x/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTC_S16209X_DEVICE MtcS16209xDevice - -/** -* Tag name for 'mtc_s16209x/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTC_S16209X_FILE MtcS16209xFile - -/** -* Tag name for 'mtc_s16209x/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTC_S16209X_OFFBRIGHTNESS MtcS16209xOffbrightness - -/** -* Tag name for 'mtc_s16209x/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTC_S16209X_REBOOT MtcS16209xReboot - -/** -* Tag name for 'mtxorb/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTXORB Mtxorb - -/** -* Tag name for 'mtxorb/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTXORB_BRIGHTNESS MtxorbBrightness - -/** -* Tag name for 'mtxorb/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTXORB_CONTRAST MtxorbContrast - -/** -* Tag name for 'mtxorb/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTXORB_DEVICE MtxorbDevice - -/** -* Tag name for 'mtxorb/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTXORB_FILE MtxorbFile - -/** -* Tag name for 'mtxorb/#/hasadjustablebacklight' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTXORB_HASADJUSTABLEBACKLIGHT MtxorbHasadjustablebacklight - -/** -* Tag name for 'mtxorb/#/keymap_a' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTXORB_KEYMAP_A MtxorbKeymapA - -/** -* Tag name for 'mtxorb/#/keymap_b' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTXORB_KEYMAP_B MtxorbKeymapB - -/** -* Tag name for 'mtxorb/#/keymap_c' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTXORB_KEYMAP_C MtxorbKeymapC - -/** -* Tag name for 'mtxorb/#/keymap_d' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTXORB_KEYMAP_D MtxorbKeymapD - -/** -* Tag name for 'mtxorb/#/keymap_e' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTXORB_KEYMAP_E MtxorbKeymapE - -/** -* Tag name for 'mtxorb/#/keymap_f' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTXORB_KEYMAP_F MtxorbKeymapF - -/** -* Tag name for 'mtxorb/#/keypad_test_mode' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTXORB_KEYPAD_TEST_MODE MtxorbKeypadTestMode - -/** -* Tag name for 'mtxorb/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTXORB_OFFBRIGHTNESS MtxorbOffbrightness - -/** -* Tag name for 'mtxorb/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTXORB_SIZE MtxorbSize - -/** -* Tag name for 'mtxorb/#/speed' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTXORB_SPEED MtxorbSpeed - -/** -* Tag name for 'mtxorb/#/type' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MTXORB_TYPE MtxorbType - -/** -* Tag name for 'mx5000/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MX5000 Mx5000 - -/** -* Tag name for 'mx5000/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MX5000_BRIGHTNESS Mx5000Brightness - -/** -* Tag name for 'mx5000/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MX5000_CONTRAST Mx5000Contrast - -/** -* Tag name for 'mx5000/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MX5000_DEVICE Mx5000Device - -/** -* Tag name for 'mx5000/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MX5000_FILE Mx5000File - -/** -* Tag name for 'mx5000/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MX5000_OFFBRIGHTNESS Mx5000Offbrightness - -/** -* Tag name for 'mx5000/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MX5000_REBOOT Mx5000Reboot - -/** -* Tag name for 'mx5000/#/waitafterrefresh' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_MX5000_WAITAFTERREFRESH Mx5000Waitafterrefresh - -/** -* Tag name for 'noritakevfd/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_NORITAKEVFD Noritakevfd - -/** -* Tag name for 'noritakevfd/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_NORITAKEVFD_BRIGHTNESS NoritakevfdBrightness - -/** -* Tag name for 'noritakevfd/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_NORITAKEVFD_CONTRAST NoritakevfdContrast - -/** -* Tag name for 'noritakevfd/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_NORITAKEVFD_DEVICE NoritakevfdDevice - -/** -* Tag name for 'noritakevfd/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_NORITAKEVFD_FILE NoritakevfdFile - -/** -* Tag name for 'noritakevfd/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_NORITAKEVFD_OFFBRIGHTNESS NoritakevfdOffbrightness - -/** -* Tag name for 'noritakevfd/#/parity' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_NORITAKEVFD_PARITY NoritakevfdParity - -/** -* Tag name for 'noritakevfd/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_NORITAKEVFD_REBOOT NoritakevfdReboot - -/** -* Tag name for 'noritakevfd/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_NORITAKEVFD_SIZE NoritakevfdSize - -/** -* Tag name for 'noritakevfd/#/speed' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_NORITAKEVFD_SPEED NoritakevfdSpeed - -/** -* Tag name for 'olimex_mod_lcd1x9/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_OLIMEX_MOD_LCD1X9 OlimexModLcd1x9 - -/** -* Tag name for 'olimex_mod_lcd1x9/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_OLIMEX_MOD_LCD1X9_BRIGHTNESS OlimexModLcd1x9Brightness - -/** -* Tag name for 'olimex_mod_lcd1x9/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_OLIMEX_MOD_LCD1X9_CONTRAST OlimexModLcd1x9Contrast - -/** -* Tag name for 'olimex_mod_lcd1x9/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_OLIMEX_MOD_LCD1X9_DEVICE OlimexModLcd1x9Device - -/** -* Tag name for 'olimex_mod_lcd1x9/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_OLIMEX_MOD_LCD1X9_FILE OlimexModLcd1x9File - -/** -* Tag name for 'olimex_mod_lcd1x9/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_OLIMEX_MOD_LCD1X9_OFFBRIGHTNESS OlimexModLcd1x9Offbrightness - -/** -* Tag name for 'olimex_mod_lcd1x9/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_OLIMEX_MOD_LCD1X9_REBOOT OlimexModLcd1x9Reboot - -/** -* Tag name for 'picolcd/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD Picolcd - -/** -* Tag name for 'picolcd/#/backlight' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_BACKLIGHT PicolcdBacklight - -/** -* Tag name for 'picolcd/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_BRIGHTNESS PicolcdBrightness - -/** -* Tag name for 'picolcd/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_CONTRAST PicolcdContrast - -/** -* Tag name for 'picolcd/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_FILE PicolcdFile - -/** -* Tag name for 'picolcd/#/key0light' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_KEY0LIGHT PicolcdKey0light - -/** -* Tag name for 'picolcd/#/key1light' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_KEY1LIGHT PicolcdKey1light - -/** -* Tag name for 'picolcd/#/key2light' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_KEY2LIGHT PicolcdKey2light - -/** -* Tag name for 'picolcd/#/key3light' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_KEY3LIGHT PicolcdKey3light - -/** -* Tag name for 'picolcd/#/key4light' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_KEY4LIGHT PicolcdKey4light - -/** -* Tag name for 'picolcd/#/key5light' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_KEY5LIGHT PicolcdKey5light - -/** -* Tag name for 'picolcd/#/keylights' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_KEYLIGHTS PicolcdKeylights - -/** -* Tag name for 'picolcd/#/keyrepeatdelay' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_KEYREPEATDELAY PicolcdKeyrepeatdelay - -/** -* Tag name for 'picolcd/#/keyrepeatinterval' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_KEYREPEATINTERVAL PicolcdKeyrepeatinterval - -/** -* Tag name for 'picolcd/#/keytimeout' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_KEYTIMEOUT PicolcdKeytimeout - -/** -* Tag name for 'picolcd/#/linklights' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_LINKLIGHTS PicolcdLinklights - -/** -* Tag name for 'picolcd/#/lircflushthreshold' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_LIRCFLUSHTHRESHOLD PicolcdLircflushthreshold - -/** -* Tag name for 'picolcd/#/lirchost' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_LIRCHOST PicolcdLirchost - -/** -* Tag name for 'picolcd/#/lircport' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_LIRCPORT PicolcdLircport - -/** -* Tag name for 'picolcd/#/lirctime_us' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_LIRCTIME_US PicolcdLirctimeUs - -/** -* Tag name for 'picolcd/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_OFFBRIGHTNESS PicolcdOffbrightness - -/** -* Tag name for 'picolcd/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PICOLCD_REBOOT PicolcdReboot - -/** -* Tag name for 'pyramid/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PYRAMID Pyramid - -/** -* Tag name for 'pyramid/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PYRAMID_DEVICE PyramidDevice - -/** -* Tag name for 'pyramid/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_PYRAMID_FILE PyramidFile - -/** -* Tag name for 'rawserial/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_RAWSERIAL Rawserial - -/** -* Tag name for 'rawserial/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_RAWSERIAL_BRIGHTNESS RawserialBrightness - -/** -* Tag name for 'rawserial/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_RAWSERIAL_CONTRAST RawserialContrast - -/** -* Tag name for 'rawserial/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_RAWSERIAL_DEVICE RawserialDevice - -/** -* Tag name for 'rawserial/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_RAWSERIAL_FILE RawserialFile - -/** -* Tag name for 'rawserial/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_RAWSERIAL_OFFBRIGHTNESS RawserialOffbrightness - -/** -* Tag name for 'rawserial/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_RAWSERIAL_REBOOT RawserialReboot - -/** -* Tag name for 'rawserial/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_RAWSERIAL_SIZE RawserialSize - -/** -* Tag name for 'rawserial/#/speed' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_RAWSERIAL_SPEED RawserialSpeed - -/** -* Tag name for 'rawserial/#/updaterate' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_RAWSERIAL_UPDATERATE RawserialUpdaterate - -/** -* Tag name for 'sed1330/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1330 Sed1330 - -/** -* Tag name for 'sed1330/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1330_BRIGHTNESS Sed1330Brightness - -/** -* Tag name for 'sed1330/#/cellsize' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1330_CELLSIZE Sed1330Cellsize - -/** -* Tag name for 'sed1330/#/connectiontype' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1330_CONNECTIONTYPE Sed1330Connectiontype - -/** -* Tag name for 'sed1330/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1330_CONTRAST Sed1330Contrast - -/** -* Tag name for 'sed1330/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1330_FILE Sed1330File - -/** -* Tag name for 'sed1330/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1330_OFFBRIGHTNESS Sed1330Offbrightness - -/** -* Tag name for 'sed1330/#/port' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1330_PORT Sed1330Port - -/** -* Tag name for 'sed1330/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1330_REBOOT Sed1330Reboot - -/** -* Tag name for 'sed1330/#/type' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1330_TYPE Sed1330Type - -/** -* Tag name for 'sed1520/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1520 Sed1520 - -/** -* Tag name for 'sed1520/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1520_BRIGHTNESS Sed1520Brightness - -/** -* Tag name for 'sed1520/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1520_CONTRAST Sed1520Contrast - -/** -* Tag name for 'sed1520/#/delaymult' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1520_DELAYMULT Sed1520Delaymult - -/** -* Tag name for 'sed1520/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1520_FILE Sed1520File - -/** -* Tag name for 'sed1520/#/haveinverter' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1520_HAVEINVERTER Sed1520Haveinverter - -/** -* Tag name for 'sed1520/#/interfacetype' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1520_INTERFACETYPE Sed1520Interfacetype - -/** -* Tag name for 'sed1520/#/invertedmapping' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1520_INVERTEDMAPPING Sed1520Invertedmapping - -/** -* Tag name for 'sed1520/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1520_OFFBRIGHTNESS Sed1520Offbrightness - -/** -* Tag name for 'sed1520/#/port' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1520_PORT Sed1520Port - -/** -* Tag name for 'sed1520/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1520_REBOOT Sed1520Reboot - -/** -* Tag name for 'sed1520/#/usehardreset' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SED1520_USEHARDRESET Sed1520Usehardreset - -/** -* Tag name for 'serialpos/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALPOS Serialpos - -/** -* Tag name for 'serialpos/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALPOS_BRIGHTNESS SerialposBrightness - -/** -* Tag name for 'serialpos/#/cellsize' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALPOS_CELLSIZE SerialposCellsize - -/** -* Tag name for 'serialpos/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALPOS_CONTRAST SerialposContrast - -/** -* Tag name for 'serialpos/#/custom_chars' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALPOS_CUSTOM_CHARS SerialposCustomChars - -/** -* Tag name for 'serialpos/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALPOS_DEVICE SerialposDevice - -/** -* Tag name for 'serialpos/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALPOS_FILE SerialposFile - -/** -* Tag name for 'serialpos/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALPOS_OFFBRIGHTNESS SerialposOffbrightness - -/** -* Tag name for 'serialpos/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALPOS_REBOOT SerialposReboot - -/** -* Tag name for 'serialpos/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALPOS_SIZE SerialposSize - -/** -* Tag name for 'serialpos/#/speed' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALPOS_SPEED SerialposSpeed - -/** -* Tag name for 'serialpos/#/type' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALPOS_TYPE SerialposType - -/** -* Tag name for 'serialvfd/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALVFD Serialvfd - -/** -* Tag name for 'serialvfd/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALVFD_BRIGHTNESS SerialvfdBrightness - -/** -* Tag name for 'serialvfd/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALVFD_CONTRAST SerialvfdContrast - -/** -* Tag name for 'serialvfd/#/custom-characters' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALVFD_CUSTOM_CHARACTERS SerialvfdCustomCharacters - -/** -* Tag name for 'serialvfd/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALVFD_DEVICE SerialvfdDevice - -/** -* Tag name for 'serialvfd/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALVFD_FILE SerialvfdFile - -/** -* Tag name for 'serialvfd/#/iso_8859_1' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALVFD_ISO_8859_1 SerialvfdIso88591 - -/** -* Tag name for 'serialvfd/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALVFD_OFFBRIGHTNESS SerialvfdOffbrightness - -/** -* Tag name for 'serialvfd/#/port' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALVFD_PORT SerialvfdPort - -/** -* Tag name for 'serialvfd/#/portwait' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALVFD_PORTWAIT SerialvfdPortwait - -/** -* Tag name for 'serialvfd/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALVFD_REBOOT SerialvfdReboot - -/** -* Tag name for 'serialvfd/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALVFD_SIZE SerialvfdSize - -/** -* Tag name for 'serialvfd/#/speed' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALVFD_SPEED SerialvfdSpeed - -/** -* Tag name for 'serialvfd/#/type' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALVFD_TYPE SerialvfdType - -/** -* Tag name for 'serialvfd/#/use_parallel' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERIALVFD_USE_PARALLEL SerialvfdUseParallel - -/** -* Tag name for 'server/autorotate' -* -*/// -#define ELEKTRA_TAG_SERVER_AUTOROTATE ServerAutorotate - -/** -* Tag name for 'server/backlight' -* -*/// -#define ELEKTRA_TAG_SERVER_BACKLIGHT ServerBacklight - -/** -* Tag name for 'server/bind' -* -*/// -#define ELEKTRA_TAG_SERVER_BIND ServerBind - -/** -* Tag name for 'server/driverpath' -* -*/// -#define ELEKTRA_TAG_SERVER_DRIVERPATH ServerDriverpath - -/** -* Tag name for 'server/drivers/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERVER_DRIVERS ServerDrivers - -/** -* Tag name for 'server/foreground' -* -*/// -#define ELEKTRA_TAG_SERVER_FOREGROUND ServerForeground - -/** -* Tag name for 'server/frameinterval' -* -*/// -#define ELEKTRA_TAG_SERVER_FRAMEINTERVAL ServerFrameinterval - -/** -* Tag name for 'server/goodbye/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERVER_GOODBYE ServerGoodbye - -/** -* Tag name for 'server/heartbeat' -* -*/// -#define ELEKTRA_TAG_SERVER_HEARTBEAT ServerHeartbeat - -/** -* Tag name for 'server/hello/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SERVER_HELLO ServerHello - -/** -* Tag name for 'server/nextscreenkey' -* -*/// -#define ELEKTRA_TAG_SERVER_NEXTSCREENKEY ServerNextscreenkey - -/** -* Tag name for 'server/port' -* -*/// -#define ELEKTRA_TAG_SERVER_PORT ServerPort - -/** -* Tag name for 'server/prevscreenkey' -* -*/// -#define ELEKTRA_TAG_SERVER_PREVSCREENKEY ServerPrevscreenkey - -/** -* Tag name for 'server/reportlevel' -* -*/// -#define ELEKTRA_TAG_SERVER_REPORTLEVEL ServerReportlevel - -/** -* Tag name for 'server/reporttosyslog' -* -*/// -#define ELEKTRA_TAG_SERVER_REPORTTOSYSLOG ServerReporttosyslog - -/** -* Tag name for 'server/scrolldownkey' -* -*/// -#define ELEKTRA_TAG_SERVER_SCROLLDOWNKEY ServerScrolldownkey - -/** -* Tag name for 'server/scrollupkey' -* -*/// -#define ELEKTRA_TAG_SERVER_SCROLLUPKEY ServerScrollupkey - -/** -* Tag name for 'server/serverscreen' -* -*/// -#define ELEKTRA_TAG_SERVER_SERVERSCREEN ServerServerscreen - -/** -* Tag name for 'server/titlespeed' -* -*/// -#define ELEKTRA_TAG_SERVER_TITLESPEED ServerTitlespeed - -/** -* Tag name for 'server/togglerotatekey' -* -*/// -#define ELEKTRA_TAG_SERVER_TOGGLEROTATEKEY ServerTogglerotatekey - -/** -* Tag name for 'server/user' -* -*/// -#define ELEKTRA_TAG_SERVER_USER ServerUser - -/** -* Tag name for 'server/waittime' -* -*/// -#define ELEKTRA_TAG_SERVER_WAITTIME ServerWaittime - -/** -* Tag name for 'sli/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SLI Sli - -/** -* Tag name for 'sli/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SLI_BRIGHTNESS SliBrightness - -/** -* Tag name for 'sli/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SLI_CONTRAST SliContrast - -/** -* Tag name for 'sli/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SLI_DEVICE SliDevice - -/** -* Tag name for 'sli/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SLI_FILE SliFile - -/** -* Tag name for 'sli/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SLI_OFFBRIGHTNESS SliOffbrightness - -/** -* Tag name for 'sli/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SLI_REBOOT SliReboot - -/** -* Tag name for 'sli/#/speed' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SLI_SPEED SliSpeed - -/** -* Tag name for 'stv5730/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_STV5730 Stv5730 - -/** -* Tag name for 'stv5730/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_STV5730_BRIGHTNESS Stv5730Brightness - -/** -* Tag name for 'stv5730/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_STV5730_CONTRAST Stv5730Contrast - -/** -* Tag name for 'stv5730/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_STV5730_FILE Stv5730File - -/** -* Tag name for 'stv5730/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_STV5730_OFFBRIGHTNESS Stv5730Offbrightness - -/** -* Tag name for 'stv5730/#/port' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_STV5730_PORT Stv5730Port - -/** -* Tag name for 'stv5730/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_STV5730_REBOOT Stv5730Reboot - -/** -* Tag name for 'sureelec/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SUREELEC Sureelec - -/** -* Tag name for 'sureelec/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SUREELEC_BRIGHTNESS SureelecBrightness - -/** -* Tag name for 'sureelec/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SUREELEC_CONTRAST SureelecContrast - -/** -* Tag name for 'sureelec/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SUREELEC_DEVICE SureelecDevice - -/** -* Tag name for 'sureelec/#/edition' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SUREELEC_EDITION SureelecEdition - -/** -* Tag name for 'sureelec/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SUREELEC_FILE SureelecFile - -/** -* Tag name for 'sureelec/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SUREELEC_OFFBRIGHTNESS SureelecOffbrightness - -/** -* Tag name for 'sureelec/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SUREELEC_REBOOT SureelecReboot - -/** -* Tag name for 'sureelec/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SUREELEC_SIZE SureelecSize - -/** -* Tag name for 'svga/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SVGA Svga - -/** -* Tag name for 'svga/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SVGA_BRIGHTNESS SvgaBrightness - -/** -* Tag name for 'svga/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SVGA_CONTRAST SvgaContrast - -/** -* Tag name for 'svga/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SVGA_FILE SvgaFile - -/** -* Tag name for 'svga/#/mode' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SVGA_MODE SvgaMode - -/** -* Tag name for 'svga/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SVGA_OFFBRIGHTNESS SvgaOffbrightness - -/** -* Tag name for 'svga/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SVGA_REBOOT SvgaReboot - -/** -* Tag name for 'svga/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_SVGA_SIZE SvgaSize - -/** -* Tag name for 't6963/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_T6963 T6963 - -/** -* Tag name for 't6963/#/bidirectional' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_T6963_BIDIRECTIONAL T6963Bidirectional - -/** -* Tag name for 't6963/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_T6963_BRIGHTNESS T6963Brightness - -/** -* Tag name for 't6963/#/cleargraphic' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_T6963_CLEARGRAPHIC T6963Cleargraphic - -/** -* Tag name for 't6963/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_T6963_CONTRAST T6963Contrast - -/** -* Tag name for 't6963/#/delaybus' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_T6963_DELAYBUS T6963Delaybus - -/** -* Tag name for 't6963/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_T6963_FILE T6963File - -/** -* Tag name for 't6963/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_T6963_OFFBRIGHTNESS T6963Offbrightness - -/** -* Tag name for 't6963/#/port' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_T6963_PORT T6963Port - -/** -* Tag name for 't6963/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_T6963_REBOOT T6963Reboot - -/** -* Tag name for 't6963/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_T6963_SIZE T6963Size - -/** -* Tag name for 'text/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_TEXT Text - -/** -* Tag name for 'text/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_TEXT_BRIGHTNESS TextBrightness - -/** -* Tag name for 'text/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_TEXT_CONTRAST TextContrast - -/** -* Tag name for 'text/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_TEXT_FILE TextFile - -/** -* Tag name for 'text/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_TEXT_OFFBRIGHTNESS TextOffbrightness - -/** -* Tag name for 'text/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_TEXT_REBOOT TextReboot - -/** -* Tag name for 'text/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_TEXT_SIZE TextSize - -/** -* Tag name for 'tyan/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_TYAN Tyan - -/** -* Tag name for 'tyan/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_TYAN_BRIGHTNESS TyanBrightness - -/** -* Tag name for 'tyan/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_TYAN_CONTRAST TyanContrast - -/** -* Tag name for 'tyan/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_TYAN_DEVICE TyanDevice - -/** -* Tag name for 'tyan/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_TYAN_FILE TyanFile - -/** -* Tag name for 'tyan/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_TYAN_OFFBRIGHTNESS TyanOffbrightness - -/** -* Tag name for 'tyan/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_TYAN_REBOOT TyanReboot - -/** -* Tag name for 'tyan/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_TYAN_SIZE TyanSize - -/** -* Tag name for 'tyan/#/speed' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_TYAN_SPEED TyanSpeed - -/** -* Tag name for 'ula200/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ULA200 Ula200 - -/** -* Tag name for 'ula200/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ULA200_BRIGHTNESS Ula200Brightness - -/** -* Tag name for 'ula200/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ULA200_CONTRAST Ula200Contrast - -/** -* Tag name for 'ula200/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ULA200_FILE Ula200File - -/** -* Tag name for 'ula200/#/keymap_a' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ULA200_KEYMAP_A Ula200KeymapA - -/** -* Tag name for 'ula200/#/keymap_b' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ULA200_KEYMAP_B Ula200KeymapB - -/** -* Tag name for 'ula200/#/keymap_c' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ULA200_KEYMAP_C Ula200KeymapC - -/** -* Tag name for 'ula200/#/keymap_d' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ULA200_KEYMAP_D Ula200KeymapD - -/** -* Tag name for 'ula200/#/keymap_e' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ULA200_KEYMAP_E Ula200KeymapE - -/** -* Tag name for 'ula200/#/keymap_f' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ULA200_KEYMAP_F Ula200KeymapF - -/** -* Tag name for 'ula200/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ULA200_OFFBRIGHTNESS Ula200Offbrightness - -/** -* Tag name for 'ula200/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ULA200_REBOOT Ula200Reboot - -/** -* Tag name for 'ula200/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_ULA200_SIZE Ula200Size - -/** -* Tag name for 'vlsys_m428/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_VLSYS_M428 VlsysM428 - -/** -* Tag name for 'vlsys_m428/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_VLSYS_M428_BRIGHTNESS VlsysM428Brightness - -/** -* Tag name for 'vlsys_m428/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_VLSYS_M428_CONTRAST VlsysM428Contrast - -/** -* Tag name for 'vlsys_m428/#/device' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_VLSYS_M428_DEVICE VlsysM428Device - -/** -* Tag name for 'vlsys_m428/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_VLSYS_M428_FILE VlsysM428File - -/** -* Tag name for 'vlsys_m428/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_VLSYS_M428_OFFBRIGHTNESS VlsysM428Offbrightness - -/** -* Tag name for 'vlsys_m428/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_VLSYS_M428_REBOOT VlsysM428Reboot - -/** -* Tag name for 'xosd/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_XOSD Xosd - -/** -* Tag name for 'xosd/#/Font' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_XOSD_FONT XosdFont - -/** -* Tag name for 'xosd/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_XOSD_BRIGHTNESS XosdBrightness - -/** -* Tag name for 'xosd/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_XOSD_CONTRAST XosdContrast - -/** -* Tag name for 'xosd/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_XOSD_FILE XosdFile - -/** -* Tag name for 'xosd/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_XOSD_OFFBRIGHTNESS XosdOffbrightness - -/** -* Tag name for 'xosd/#/offset' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_XOSD_OFFSET XosdOffset - -/** -* Tag name for 'xosd/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_XOSD_REBOOT XosdReboot - -/** -* Tag name for 'xosd/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_XOSD_SIZE XosdSize - -/** -* Tag name for 'yard2lcd/#' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_YARD2LCD Yard2lcd - -/** -* Tag name for 'yard2lcd/#/brightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_YARD2LCD_BRIGHTNESS Yard2lcdBrightness - -/** -* Tag name for 'yard2lcd/#/contrast' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_YARD2LCD_CONTRAST Yard2lcdContrast - -/** -* Tag name for 'yard2lcd/#/file' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_YARD2LCD_FILE Yard2lcdFile - -/** -* Tag name for 'yard2lcd/#/offbrightness' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_YARD2LCD_OFFBRIGHTNESS Yard2lcdOffbrightness - -/** -* Tag name for 'yard2lcd/#/reboot' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_YARD2LCD_REBOOT Yard2lcdReboot - -/** -* Tag name for 'yard2lcd/#/size' -* -* Required arguments: -* -* - kdb_long_long_t index1: Replaces occurence no. 1 of # in the keyname. -* -* -*/// -#define ELEKTRA_TAG_YARD2LCD_SIZE Yard2lcdSize -// clang-format on - - -// clang-format off - -// clang-format on - -// clang-format off - -// clang-format on - - -// clang-format off - -// clang-format on - - - - -// clang-format off - -// clang-format on - -// local helper macros to determine the length of a 64 bit integer -#define elektra_len19(x) ((x) < 10000000000000000000ULL ? 19 : 20) -#define elektra_len18(x) ((x) < 1000000000000000000ULL ? 18 : elektra_len19 (x)) -#define elektra_len17(x) ((x) < 100000000000000000ULL ? 17 : elektra_len18 (x)) -#define elektra_len16(x) ((x) < 10000000000000000ULL ? 16 : elektra_len17 (x)) -#define elektra_len15(x) ((x) < 1000000000000000ULL ? 15 : elektra_len16 (x)) -#define elektra_len14(x) ((x) < 100000000000000ULL ? 14 : elektra_len15 (x)) -#define elektra_len13(x) ((x) < 10000000000000ULL ? 13 : elektra_len14 (x)) -#define elektra_len12(x) ((x) < 1000000000000ULL ? 12 : elektra_len13 (x)) -#define elektra_len11(x) ((x) < 100000000000ULL ? 11 : elektra_len12 (x)) -#define elektra_len10(x) ((x) < 10000000000ULL ? 10 : elektra_len11 (x)) -#define elektra_len09(x) ((x) < 1000000000ULL ? 9 : elektra_len10 (x)) -#define elektra_len08(x) ((x) < 100000000ULL ? 8 : elektra_len09 (x)) -#define elektra_len07(x) ((x) < 10000000ULL ? 7 : elektra_len08 (x)) -#define elektra_len06(x) ((x) < 1000000ULL ? 6 : elektra_len07 (x)) -#define elektra_len05(x) ((x) < 100000ULL ? 5 : elektra_len06 (x)) -#define elektra_len04(x) ((x) < 10000ULL ? 4 : elektra_len05 (x)) -#define elektra_len03(x) ((x) < 1000ULL ? 3 : elektra_len04 (x)) -#define elektra_len02(x) ((x) < 100ULL ? 2 : elektra_len03 (x)) -#define elektra_len01(x) ((x) < 10ULL ? 1 : elektra_len02 (x)) -#define elektra_len00(x) ((x) < 0ULL ? 0 : elektra_len01 (x)) -#define elektra_len(x) elektra_len00 (x) - -#define ELEKTRA_SIZE(tagName) ELEKTRA_CONCAT (elektraSize, tagName) - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'bayrad/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Bayrad) (Elektra * elektra, BayradDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("bayrad/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructBayradDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'bayrad/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'bayrad/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Bayrad) (Elektra * elektra, const BayradDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("bayrad/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructBayradDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'bayrad/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Bayrad) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "bayrad"); -} - - - -/** - * Get the value of 'bayrad/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'bayrad/#/device'. - */// -static inline const char * ELEKTRA_GET (BayradDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("bayrad/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'bayrad/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'bayrad/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (BayradDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("bayrad/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'bayrad/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'bayrad/#/file'. - */// -static inline const char * ELEKTRA_GET (BayradFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("bayrad/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'bayrad/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'bayrad/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (BayradFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("bayrad/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'bayrad/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'bayrad/#/speed'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (BayradSpeed) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("bayrad/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'bayrad/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'bayrad/#/speed'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (BayradSpeed) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("bayrad/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'cfontz/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Cfontz) (Elektra * elektra, CFontzDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructCFontzDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'cfontz/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontz/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Cfontz) (Elektra * elektra, const CFontzDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructCFontzDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'cfontz/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Cfontz) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "cfontz"); -} - - - -/** - * Get the value of 'cfontz/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontz/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (CfontzBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontz/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontz/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontz/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontz/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (CfontzContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontz/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontz/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontz/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontz/#/device'. - */// -static inline const char * ELEKTRA_GET (CfontzDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontz/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontz/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontz/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontz/#/file'. - */// -static inline const char * ELEKTRA_GET (CfontzFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontz/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontz/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontz/#/newfirmware'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontz/#/newfirmware'. - */// -static inline kdb_boolean_t ELEKTRA_GET (CfontzNewfirmware) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/newfirmware", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontz/#/newfirmware'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontz/#/newfirmware'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzNewfirmware) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/newfirmware", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontz/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontz/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (CfontzOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontz/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontz/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontz/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontz/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (CfontzReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontz/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontz/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontz/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontz/#/size'. - */// -static inline const char * ELEKTRA_GET (CfontzSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontz/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontz/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontz/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontz/#/speed'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (CfontzSpeed) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontz/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontz/#/speed'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzSpeed) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontz/#/usb'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontz/#/usb'. - */// -static inline kdb_boolean_t ELEKTRA_GET (CfontzUsb) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/usb", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontz/#/usb'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontz/#/usb'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzUsb) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontz/%*.*s%lld/usb", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'cfontzpacket/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Cfontzpacket) (Elektra * elektra, CFontzPacketDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructCFontzPacketDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'cfontzpacket/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontzpacket/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Cfontzpacket) (Elektra * elektra, const CFontzPacketDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructCFontzPacketDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'cfontzpacket/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Cfontzpacket) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "cfontzpacket"); -} - - - -/** - * Get the value of 'cfontzpacket/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontzpacket/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (CfontzpacketBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontzpacket/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontzpacket/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzpacketBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontzpacket/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontzpacket/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (CfontzpacketContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontzpacket/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontzpacket/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzpacketContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontzpacket/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontzpacket/#/device'. - */// -static inline const char * ELEKTRA_GET (CfontzpacketDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontzpacket/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontzpacket/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzpacketDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontzpacket/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontzpacket/#/file'. - */// -static inline const char * ELEKTRA_GET (CfontzpacketFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontzpacket/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontzpacket/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzpacketFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontzpacket/#/model'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontzpacket/#/model'. - */// -static inline CFontzPacketModel ELEKTRA_GET (CfontzpacketModel) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/model", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - CFontzPacketModel result = ELEKTRA_GET (EnumCFontzPacketModel) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontzpacket/#/model'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontzpacket/#/model'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzpacketModel) (Elektra * elektra, - CFontzPacketModel value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/model", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumCFontzPacketModel) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontzpacket/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontzpacket/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (CfontzpacketOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontzpacket/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontzpacket/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzpacketOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontzpacket/#/oldfirmware'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontzpacket/#/oldfirmware'. - */// -static inline kdb_boolean_t ELEKTRA_GET (CfontzpacketOldfirmware) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/oldfirmware", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontzpacket/#/oldfirmware'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontzpacket/#/oldfirmware'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzpacketOldfirmware) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/oldfirmware", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontzpacket/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontzpacket/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (CfontzpacketReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontzpacket/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontzpacket/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzpacketReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontzpacket/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontzpacket/#/size'. - */// -static inline const char * ELEKTRA_GET (CfontzpacketSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontzpacket/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontzpacket/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzpacketSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontzpacket/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontzpacket/#/speed'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (CfontzpacketSpeed) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontzpacket/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontzpacket/#/speed'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzpacketSpeed) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cfontzpacket/#/usb'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cfontzpacket/#/usb'. - */// -static inline kdb_boolean_t ELEKTRA_GET (CfontzpacketUsb) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/usb", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cfontzpacket/#/usb'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cfontzpacket/#/usb'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CfontzpacketUsb) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cfontzpacket/%*.*s%lld/usb", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'curses/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Curses) (Elektra * elektra, CursesDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructCursesDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'curses/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'curses/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Curses) (Elektra * elektra, const CursesDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructCursesDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'curses/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Curses) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "curses"); -} - - - -/** - * Get the value of 'curses/#/background'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'curses/#/background'. - */// -static inline CursesColor ELEKTRA_GET (CursesBackground) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/background", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - CursesColor result = ELEKTRA_GET (EnumCursesColor) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'curses/#/background'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'curses/#/background'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CursesBackground) (Elektra * elektra, - CursesColor value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/background", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumCursesColor) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'curses/#/backlight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'curses/#/backlight'. - */// -static inline CursesColor ELEKTRA_GET (CursesBacklight) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - CursesColor result = ELEKTRA_GET (EnumCursesColor) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'curses/#/backlight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'curses/#/backlight'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CursesBacklight) (Elektra * elektra, - CursesColor value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumCursesColor) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'curses/#/drawborder'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'curses/#/drawborder'. - */// -static inline kdb_boolean_t ELEKTRA_GET (CursesDrawborder) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/drawborder", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'curses/#/drawborder'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'curses/#/drawborder'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CursesDrawborder) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/drawborder", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'curses/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'curses/#/file'. - */// -static inline const char * ELEKTRA_GET (CursesFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'curses/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'curses/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CursesFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'curses/#/foreground'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'curses/#/foreground'. - */// -static inline CursesColor ELEKTRA_GET (CursesForeground) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/foreground", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - CursesColor result = ELEKTRA_GET (EnumCursesColor) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'curses/#/foreground'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'curses/#/foreground'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CursesForeground) (Elektra * elektra, - CursesColor value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/foreground", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumCursesColor) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'curses/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'curses/#/size'. - */// -static inline const char * ELEKTRA_GET (CursesSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'curses/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'curses/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CursesSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'curses/#/topleftx'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'curses/#/topleftx'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (CursesTopleftx) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/topleftx", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'curses/#/topleftx'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'curses/#/topleftx'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CursesTopleftx) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/topleftx", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'curses/#/toplefty'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'curses/#/toplefty'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (CursesToplefty) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/toplefty", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'curses/#/toplefty'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'curses/#/toplefty'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CursesToplefty) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/toplefty", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'curses/#/useacs'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'curses/#/useacs'. - */// -static inline kdb_boolean_t ELEKTRA_GET (CursesUseacs) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/useacs", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'curses/#/useacs'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'curses/#/useacs'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CursesUseacs) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("curses/%*.*s%lld/useacs", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'cwlnx/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Cwlnx) (Elektra * elektra, CwLnxDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructCwLnxDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'cwlnx/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cwlnx/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Cwlnx) (Elektra * elektra, const CwLnxDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructCwLnxDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'cwlnx/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Cwlnx) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "cwlnx"); -} - - - -/** - * Get the value of 'cwlnx/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cwlnx/#/device'. - */// -static inline const char * ELEKTRA_GET (CwlnxDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cwlnx/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cwlnx/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CwlnxDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cwlnx/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cwlnx/#/file'. - */// -static inline const char * ELEKTRA_GET (CwlnxFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cwlnx/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cwlnx/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CwlnxFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cwlnx/#/keymap_a'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cwlnx/#/keymap_a'. - */// -static inline const char * ELEKTRA_GET (CwlnxKeymapA) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_a", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cwlnx/#/keymap_a'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cwlnx/#/keymap_a'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CwlnxKeymapA) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_a", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cwlnx/#/keymap_b'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cwlnx/#/keymap_b'. - */// -static inline const char * ELEKTRA_GET (CwlnxKeymapB) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_b", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cwlnx/#/keymap_b'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cwlnx/#/keymap_b'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CwlnxKeymapB) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_b", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cwlnx/#/keymap_c'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cwlnx/#/keymap_c'. - */// -static inline const char * ELEKTRA_GET (CwlnxKeymapC) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_c", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cwlnx/#/keymap_c'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cwlnx/#/keymap_c'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CwlnxKeymapC) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_c", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cwlnx/#/keymap_d'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cwlnx/#/keymap_d'. - */// -static inline const char * ELEKTRA_GET (CwlnxKeymapD) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_d", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cwlnx/#/keymap_d'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cwlnx/#/keymap_d'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CwlnxKeymapD) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_d", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cwlnx/#/keymap_e'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cwlnx/#/keymap_e'. - */// -static inline const char * ELEKTRA_GET (CwlnxKeymapE) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_e", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cwlnx/#/keymap_e'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cwlnx/#/keymap_e'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CwlnxKeymapE) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_e", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cwlnx/#/keymap_f'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cwlnx/#/keymap_f'. - */// -static inline const char * ELEKTRA_GET (CwlnxKeymapF) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_f", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cwlnx/#/keymap_f'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cwlnx/#/keymap_f'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CwlnxKeymapF) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/keymap_f", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cwlnx/#/keypad'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cwlnx/#/keypad'. - */// -static inline kdb_boolean_t ELEKTRA_GET (CwlnxKeypad) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/keypad", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cwlnx/#/keypad'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cwlnx/#/keypad'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CwlnxKeypad) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/keypad", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cwlnx/#/keypad_test_mode'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cwlnx/#/keypad_test_mode'. - */// -static inline kdb_boolean_t ELEKTRA_GET (CwlnxKeypadTestMode) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/keypad_test_mode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cwlnx/#/keypad_test_mode'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cwlnx/#/keypad_test_mode'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CwlnxKeypadTestMode) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/keypad_test_mode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cwlnx/#/model'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cwlnx/#/model'. - */// -static inline CwLnxModel ELEKTRA_GET (CwlnxModel) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/model", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - CwLnxModel result = ELEKTRA_GET (EnumCwLnxModel) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cwlnx/#/model'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cwlnx/#/model'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CwlnxModel) (Elektra * elektra, - CwLnxModel value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/model", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumCwLnxModel) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cwlnx/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cwlnx/#/size'. - */// -static inline const char * ELEKTRA_GET (CwlnxSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cwlnx/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cwlnx/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CwlnxSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'cwlnx/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'cwlnx/#/speed'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (CwlnxSpeed) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'cwlnx/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'cwlnx/#/speed'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (CwlnxSpeed) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("cwlnx/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'ea65/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Ea65) (Elektra * elektra, Ea65DriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("ea65/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructEa65DriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'ea65/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ea65/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ea65) (Elektra * elektra, const Ea65DriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ea65/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructEa65DriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'ea65/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Ea65) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "ea65"); -} - - - -/** - * Get the value of 'ea65/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ea65/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Ea65Brightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ea65/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ea65/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ea65/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ea65Brightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ea65/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ea65/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ea65/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Ea65Contrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ea65/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ea65/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ea65/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ea65Contrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ea65/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ea65/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ea65/#/file'. - */// -static inline const char * ELEKTRA_GET (Ea65File) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ea65/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ea65/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ea65/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ea65File) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ea65/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ea65/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ea65/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Ea65Offbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ea65/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ea65/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ea65/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ea65Offbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ea65/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ea65/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ea65/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Ea65Reboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ea65/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ea65/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ea65/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ea65Reboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ea65/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'eyeboxone/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Eyeboxone) (Elektra * elektra, EyeboxOneDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructEyeboxOneDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'eyeboxone/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'eyeboxone/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Eyeboxone) (Elektra * elektra, const EyeboxOneDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructEyeboxOneDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'eyeboxone/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Eyeboxone) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "eyeboxone"); -} - - - -/** - * Get the value of 'eyeboxone/#/backlight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'eyeboxone/#/backlight'. - */// -static inline kdb_boolean_t ELEKTRA_GET (EyeboxoneBacklight) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'eyeboxone/#/backlight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'eyeboxone/#/backlight'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (EyeboxoneBacklight) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'eyeboxone/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'eyeboxone/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (EyeboxoneBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'eyeboxone/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'eyeboxone/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (EyeboxoneBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'eyeboxone/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'eyeboxone/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (EyeboxoneContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'eyeboxone/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'eyeboxone/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (EyeboxoneContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'eyeboxone/#/cursor'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'eyeboxone/#/cursor'. - */// -static inline kdb_boolean_t ELEKTRA_GET (EyeboxoneCursor) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/cursor", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'eyeboxone/#/cursor'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'eyeboxone/#/cursor'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (EyeboxoneCursor) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/cursor", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'eyeboxone/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'eyeboxone/#/device'. - */// -static inline const char * ELEKTRA_GET (EyeboxoneDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'eyeboxone/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'eyeboxone/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (EyeboxoneDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'eyeboxone/#/downkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'eyeboxone/#/downkey'. - */// -static inline const char * ELEKTRA_GET (EyeboxoneDownkey) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/downkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'eyeboxone/#/downkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'eyeboxone/#/downkey'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (EyeboxoneDownkey) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/downkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'eyeboxone/#/escapekey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'eyeboxone/#/escapekey'. - */// -static inline const char * ELEKTRA_GET (EyeboxoneEscapekey) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/escapekey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'eyeboxone/#/escapekey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'eyeboxone/#/escapekey'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (EyeboxoneEscapekey) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/escapekey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'eyeboxone/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'eyeboxone/#/file'. - */// -static inline const char * ELEKTRA_GET (EyeboxoneFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'eyeboxone/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'eyeboxone/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (EyeboxoneFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'eyeboxone/#/keypad_test_mode'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'eyeboxone/#/keypad_test_mode'. - */// -static inline kdb_boolean_t ELEKTRA_GET (EyeboxoneKeypadTestMode) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/keypad_test_mode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'eyeboxone/#/keypad_test_mode'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'eyeboxone/#/keypad_test_mode'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (EyeboxoneKeypadTestMode) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/keypad_test_mode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'eyeboxone/#/leftkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'eyeboxone/#/leftkey'. - */// -static inline const char * ELEKTRA_GET (EyeboxoneLeftkey) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/leftkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'eyeboxone/#/leftkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'eyeboxone/#/leftkey'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (EyeboxoneLeftkey) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/leftkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'eyeboxone/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'eyeboxone/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (EyeboxoneOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'eyeboxone/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'eyeboxone/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (EyeboxoneOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'eyeboxone/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'eyeboxone/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (EyeboxoneReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'eyeboxone/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'eyeboxone/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (EyeboxoneReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'eyeboxone/#/rightkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'eyeboxone/#/rightkey'. - */// -static inline const char * ELEKTRA_GET (EyeboxoneRightkey) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/rightkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'eyeboxone/#/rightkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'eyeboxone/#/rightkey'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (EyeboxoneRightkey) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/rightkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'eyeboxone/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'eyeboxone/#/size'. - */// -static inline const char * ELEKTRA_GET (EyeboxoneSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'eyeboxone/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'eyeboxone/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (EyeboxoneSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'eyeboxone/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'eyeboxone/#/speed'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (EyeboxoneSpeed) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'eyeboxone/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'eyeboxone/#/speed'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (EyeboxoneSpeed) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'eyeboxone/#/upkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'eyeboxone/#/upkey'. - */// -static inline const char * ELEKTRA_GET (EyeboxoneUpkey) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/upkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'eyeboxone/#/upkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'eyeboxone/#/upkey'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (EyeboxoneUpkey) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("eyeboxone/%*.*s%lld/upkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'futaba/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Futaba) (Elektra * elektra, FutabaDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("futaba/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructFutabaDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'futaba/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'futaba/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Futaba) (Elektra * elektra, const FutabaDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("futaba/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructFutabaDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'futaba/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Futaba) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "futaba"); -} - - - -/** - * Get the value of 'futaba/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'futaba/#/file'. - */// -static inline const char * ELEKTRA_GET (FutabaFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("futaba/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'futaba/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'futaba/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (FutabaFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("futaba/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'g15/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (G15) (Elektra * elektra, G15DriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("g15/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructG15DriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'g15/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'g15/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (G15) (Elektra * elektra, const G15DriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("g15/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructG15DriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'g15/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (G15) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "g15"); -} - - - -/** - * Get the value of 'g15/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'g15/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (G15Brightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("g15/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'g15/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'g15/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (G15Brightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("g15/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'g15/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'g15/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (G15Contrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("g15/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'g15/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'g15/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (G15Contrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("g15/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'g15/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'g15/#/file'. - */// -static inline const char * ELEKTRA_GET (G15File) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("g15/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'g15/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'g15/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (G15File) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("g15/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'g15/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'g15/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (G15Offbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("g15/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'g15/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'g15/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (G15Offbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("g15/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'g15/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'g15/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (G15Reboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("g15/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'g15/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'g15/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (G15Reboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("g15/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'g15/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'g15/#/size'. - */// -static inline const char * ELEKTRA_GET (G15Size) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("g15/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'g15/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'g15/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (G15Size) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("g15/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'glcd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Glcd) (Elektra * elektra, GlcdDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructGlcdDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'glcd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Glcd) (Elektra * elektra, const GlcdDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructGlcdDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'glcd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Glcd) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "glcd"); -} - - - -/** - * Get the value of 'glcd/#/bidirectional'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/bidirectional'. - */// -static inline kdb_boolean_t ELEKTRA_GET (GlcdBidirectional) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/bidirectional", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/bidirectional'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/bidirectional'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdBidirectional) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/bidirectional", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (GlcdBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/cellsize'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/cellsize'. - */// -static inline const char * ELEKTRA_GET (GlcdCellsize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/cellsize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/cellsize'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/cellsize'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdCellsize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/cellsize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/connectiontype'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/connectiontype'. - */// -static inline GlcdConnectionType ELEKTRA_GET (GlcdConnectiontype) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/connectiontype", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - GlcdConnectionType result = ELEKTRA_GET (EnumGlcdConnectionType) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/connectiontype'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/connectiontype'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdConnectiontype) (Elektra * elektra, - GlcdConnectionType value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/connectiontype", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumGlcdConnectionType) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (GlcdContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/delaybus'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/delaybus'. - */// -static inline kdb_boolean_t ELEKTRA_GET (GlcdDelaybus) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/delaybus", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/delaybus'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/delaybus'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdDelaybus) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/delaybus", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/file'. - */// -static inline const char * ELEKTRA_GET (GlcdFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/fonthasicons'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/fonthasicons'. - */// -static inline kdb_boolean_t ELEKTRA_GET (GlcdFonthasicons) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/fonthasicons", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/fonthasicons'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/fonthasicons'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdFonthasicons) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/fonthasicons", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/keymap_a'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/keymap_a'. - */// -static inline const char * ELEKTRA_GET (GlcdKeymapA) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/keymap_a", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/keymap_a'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/keymap_a'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdKeymapA) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/keymap_a", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/keymap_b'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/keymap_b'. - */// -static inline const char * ELEKTRA_GET (GlcdKeymapB) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/keymap_b", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/keymap_b'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/keymap_b'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdKeymapB) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/keymap_b", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/keymap_c'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/keymap_c'. - */// -static inline const char * ELEKTRA_GET (GlcdKeymapC) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/keymap_c", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/keymap_c'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/keymap_c'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdKeymapC) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/keymap_c", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/keymap_d'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/keymap_d'. - */// -static inline const char * ELEKTRA_GET (GlcdKeymapD) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/keymap_d", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/keymap_d'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/keymap_d'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdKeymapD) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/keymap_d", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/keymap_e'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/keymap_e'. - */// -static inline const char * ELEKTRA_GET (GlcdKeymapE) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/keymap_e", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/keymap_e'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/keymap_e'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdKeymapE) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/keymap_e", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/keymap_f'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/keymap_f'. - */// -static inline const char * ELEKTRA_GET (GlcdKeymapF) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/keymap_f", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/keymap_f'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/keymap_f'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdKeymapF) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/keymap_f", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/keyrepeatdelay'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/keyrepeatdelay'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (GlcdKeyrepeatdelay) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/keyrepeatdelay", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/keyrepeatdelay'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/keyrepeatdelay'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdKeyrepeatdelay) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/keyrepeatdelay", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/keyrepeatinterval'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/keyrepeatinterval'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (GlcdKeyrepeatinterval) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/keyrepeatinterval", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/keyrepeatinterval'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/keyrepeatinterval'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdKeyrepeatinterval) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/keyrepeatinterval", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/normal_font'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/normal_font'. - */// -static inline const char * ELEKTRA_GET (GlcdNormalFont) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/normal_font", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/normal_font'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/normal_font'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdNormalFont) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/normal_font", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (GlcdOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/picolcdgfx_inverted'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/picolcdgfx_inverted'. - */// -static inline kdb_boolean_t ELEKTRA_GET (GlcdPicolcdgfxInverted) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/picolcdgfx_inverted", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/picolcdgfx_inverted'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/picolcdgfx_inverted'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdPicolcdgfxInverted) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/picolcdgfx_inverted", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/picolcdgfx_keytimeout'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/picolcdgfx_keytimeout'. - */// -static inline const char * ELEKTRA_GET (GlcdPicolcdgfxKeytimeout) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/picolcdgfx_keytimeout", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/picolcdgfx_keytimeout'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/picolcdgfx_keytimeout'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdPicolcdgfxKeytimeout) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/picolcdgfx_keytimeout", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/port'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/port'. - */// -static inline const char * ELEKTRA_GET (GlcdPort) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/port'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/port'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdPort) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (GlcdReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/serdisp_device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/serdisp_device'. - */// -static inline const char * ELEKTRA_GET (GlcdSerdispDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/serdisp_device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/serdisp_device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/serdisp_device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdSerdispDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/serdisp_device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/serdisp_name'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/serdisp_name'. - */// -static inline const char * ELEKTRA_GET (GlcdSerdispName) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/serdisp_name", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/serdisp_name'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/serdisp_name'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdSerdispName) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/serdisp_name", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/serdisp_options'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/serdisp_options'. - */// -static inline const char * ELEKTRA_GET (GlcdSerdispOptions) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/serdisp_options", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/serdisp_options'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/serdisp_options'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdSerdispOptions) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/serdisp_options", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/size'. - */// -static inline const char * ELEKTRA_GET (GlcdSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/useft2'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/useft2'. - */// -static inline kdb_boolean_t ELEKTRA_GET (GlcdUseft2) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/useft2", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/useft2'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/useft2'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdUseft2) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/useft2", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/x11_backlightcolor'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/x11_backlightcolor'. - */// -static inline const char * ELEKTRA_GET (GlcdX11Backlightcolor) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/x11_backlightcolor", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/x11_backlightcolor'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/x11_backlightcolor'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdX11Backlightcolor) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/x11_backlightcolor", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/x11_border'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/x11_border'. - */// -static inline kdb_unsigned_long_t ELEKTRA_GET (GlcdX11Border) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/x11_border", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/x11_border'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/x11_border'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdX11Border) (Elektra * elektra, - kdb_unsigned_long_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/x11_border", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/x11_inverted'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/x11_inverted'. - */// -static inline kdb_boolean_t ELEKTRA_GET (GlcdX11Inverted) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/x11_inverted", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/x11_inverted'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/x11_inverted'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdX11Inverted) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/x11_inverted", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/x11_pixelcolor'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/x11_pixelcolor'. - */// -static inline const char * ELEKTRA_GET (GlcdX11Pixelcolor) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/x11_pixelcolor", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/x11_pixelcolor'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/x11_pixelcolor'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdX11Pixelcolor) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/x11_pixelcolor", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcd/#/x11_pixelsize'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcd/#/x11_pixelsize'. - */// -static inline const char * ELEKTRA_GET (GlcdX11Pixelsize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/x11_pixelsize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcd/#/x11_pixelsize'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcd/#/x11_pixelsize'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdX11Pixelsize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcd/%*.*s%lld/x11_pixelsize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'glcdlib/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Glcdlib) (Elektra * elektra, GlcdlibDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructGlcdlibDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'glcdlib/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Glcdlib) (Elektra * elektra, const GlcdlibDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructGlcdlibDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'glcdlib/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Glcdlib) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "glcdlib"); -} - - - -/** - * Get the value of 'glcdlib/#/CharEncoding'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/CharEncoding'. - */// -static inline const char * ELEKTRA_GET (GlcdlibCharEncoding) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/CharEncoding", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/CharEncoding'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/CharEncoding'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibCharEncoding) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/CharEncoding", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/backlight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/backlight'. - */// -static inline kdb_boolean_t ELEKTRA_GET (GlcdlibBacklight) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/backlight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/backlight'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibBacklight) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (GlcdlibBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (GlcdlibContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/driver'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/driver'. - */// -static inline const char * ELEKTRA_GET (GlcdlibDriver) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/driver", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/driver'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/driver'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibDriver) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/driver", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/file'. - */// -static inline const char * ELEKTRA_GET (GlcdlibFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/fontfile'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/fontfile'. - */// -static inline const char * ELEKTRA_GET (GlcdlibFontfile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/fontfile", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/fontfile'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/fontfile'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibFontfile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/fontfile", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/invert'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/invert'. - */// -static inline kdb_boolean_t ELEKTRA_GET (GlcdlibInvert) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/invert", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/invert'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/invert'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibInvert) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/invert", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/minfontfacesize'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/minfontfacesize'. - */// -static inline const char * ELEKTRA_GET (GlcdlibMinfontfacesize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/minfontfacesize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/minfontfacesize'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/minfontfacesize'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibMinfontfacesize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/minfontfacesize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (GlcdlibOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/pixelshiftx'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/pixelshiftx'. - */// -static inline kdb_short_t ELEKTRA_GET (GlcdlibPixelshiftx) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/pixelshiftx", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_short_t result = ELEKTRA_GET (Short) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/pixelshiftx'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/pixelshiftx'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibPixelshiftx) (Elektra * elektra, - kdb_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/pixelshiftx", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Short) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/pixelshifty'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/pixelshifty'. - */// -static inline kdb_short_t ELEKTRA_GET (GlcdlibPixelshifty) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/pixelshifty", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_short_t result = ELEKTRA_GET (Short) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/pixelshifty'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/pixelshifty'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibPixelshifty) (Elektra * elektra, - kdb_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/pixelshifty", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Short) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (GlcdlibReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/showbigborder'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/showbigborder'. - */// -static inline kdb_boolean_t ELEKTRA_GET (GlcdlibShowbigborder) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/showbigborder", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/showbigborder'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/showbigborder'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibShowbigborder) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/showbigborder", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/showdebugframe'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/showdebugframe'. - */// -static inline kdb_boolean_t ELEKTRA_GET (GlcdlibShowdebugframe) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/showdebugframe", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/showdebugframe'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/showdebugframe'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibShowdebugframe) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/showdebugframe", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/showthinborder'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/showthinborder'. - */// -static inline kdb_boolean_t ELEKTRA_GET (GlcdlibShowthinborder) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/showthinborder", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/showthinborder'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/showthinborder'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibShowthinborder) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/showthinborder", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/textresolution'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/textresolution'. - */// -static inline const char * ELEKTRA_GET (GlcdlibTextresolution) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/textresolution", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/textresolution'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/textresolution'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibTextresolution) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/textresolution", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/upsidedown'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/upsidedown'. - */// -static inline kdb_boolean_t ELEKTRA_GET (GlcdlibUpsidedown) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/upsidedown", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/upsidedown'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/upsidedown'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibUpsidedown) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/upsidedown", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glcdlib/#/useft2'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glcdlib/#/useft2'. - */// -static inline kdb_boolean_t ELEKTRA_GET (GlcdlibUseft2) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/useft2", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glcdlib/#/useft2'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glcdlib/#/useft2'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlcdlibUseft2) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glcdlib/%*.*s%lld/useft2", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'glk/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Glk) (Elektra * elektra, GlkDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("glk/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructGlkDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'glk/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glk/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Glk) (Elektra * elektra, const GlkDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glk/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructGlkDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'glk/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Glk) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "glk"); -} - - - -/** - * Get the value of 'glk/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glk/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (GlkContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glk/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glk/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glk/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlkContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glk/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glk/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glk/#/device'. - */// -static inline const char * ELEKTRA_GET (GlkDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glk/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glk/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glk/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlkDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glk/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glk/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glk/#/file'. - */// -static inline const char * ELEKTRA_GET (GlkFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glk/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glk/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glk/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlkFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glk/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'glk/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'glk/#/speed'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (GlkSpeed) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("glk/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'glk/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'glk/#/speed'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (GlkSpeed) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("glk/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'hd44780/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Hd44780) (Elektra * elektra, Hd44780DriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructHd44780DriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'hd44780/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780) (Elektra * elektra, const Hd44780DriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructHd44780DriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'hd44780/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Hd44780) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "hd44780"); -} - - - -/** - * Get the value of 'hd44780/#/backlight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/backlight'. - */// -static inline HD44780Backlight ELEKTRA_GET (Hd44780Backlight) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - HD44780Backlight result = ELEKTRA_GET (EnumHD44780Backlight) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/backlight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/backlight'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Backlight) (Elektra * elektra, - HD44780Backlight value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumHD44780Backlight) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/backlightcmdoff'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/backlightcmdoff'. - */// -static inline const char * ELEKTRA_GET (Hd44780Backlightcmdoff) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/backlightcmdoff", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/backlightcmdoff'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/backlightcmdoff'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Backlightcmdoff) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/backlightcmdoff", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/backlightcmdon'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/backlightcmdon'. - */// -static inline const char * ELEKTRA_GET (Hd44780Backlightcmdon) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/backlightcmdon", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/backlightcmdon'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/backlightcmdon'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Backlightcmdon) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/backlightcmdon", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Hd44780Brightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Brightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/charmap'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/charmap'. - */// -static inline HD44780Charmap ELEKTRA_GET (Hd44780Charmap) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/charmap", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - HD44780Charmap result = ELEKTRA_GET (EnumHD44780Charmap) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/charmap'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/charmap'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Charmap) (Elektra * elektra, - HD44780Charmap value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/charmap", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumHD44780Charmap) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/connectiontype'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/connectiontype'. - */// -static inline HD44780ConnectionType ELEKTRA_GET (Hd44780Connectiontype) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/connectiontype", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - HD44780ConnectionType result = ELEKTRA_GET (EnumHD44780ConnectionType) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/connectiontype'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/connectiontype'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Connectiontype) (Elektra * elektra, - HD44780ConnectionType value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/connectiontype", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumHD44780ConnectionType) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Hd44780Contrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Contrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/delaybus'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/delaybus'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Hd44780Delaybus) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/delaybus", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/delaybus'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/delaybus'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Delaybus) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/delaybus", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/delaymult'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/delaymult'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Hd44780Delaymult) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/delaymult", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/delaymult'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/delaymult'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Delaymult) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/delaymult", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/device'. - */// -static inline const char * ELEKTRA_GET (Hd44780Device) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Device) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/extendedmode'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/extendedmode'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Hd44780Extendedmode) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/extendedmode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/extendedmode'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/extendedmode'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Extendedmode) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/extendedmode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/file'. - */// -static inline const char * ELEKTRA_GET (Hd44780File) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780File) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/fontbank'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/fontbank'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Hd44780Fontbank) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/fontbank", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/fontbank'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/fontbank'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Fontbank) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/fontbank", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/keepalivedisplay'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/keepalivedisplay'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Hd44780Keepalivedisplay) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/keepalivedisplay", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/keepalivedisplay'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/keepalivedisplay'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Keepalivedisplay) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/keepalivedisplay", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/keymatrix_4_1'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/keymatrix_4_1'. - */// -static inline const char * ELEKTRA_GET (Hd44780Keymatrix41) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/keymatrix_4_1", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/keymatrix_4_1'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/keymatrix_4_1'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Keymatrix41) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/keymatrix_4_1", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/keymatrix_4_2'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/keymatrix_4_2'. - */// -static inline const char * ELEKTRA_GET (Hd44780Keymatrix42) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/keymatrix_4_2", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/keymatrix_4_2'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/keymatrix_4_2'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Keymatrix42) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/keymatrix_4_2", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/keymatrix_4_3'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/keymatrix_4_3'. - */// -static inline const char * ELEKTRA_GET (Hd44780Keymatrix43) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/keymatrix_4_3", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/keymatrix_4_3'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/keymatrix_4_3'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Keymatrix43) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/keymatrix_4_3", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/keymatrix_4_4'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/keymatrix_4_4'. - */// -static inline const char * ELEKTRA_GET (Hd44780Keymatrix44) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/keymatrix_4_4", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/keymatrix_4_4'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/keymatrix_4_4'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Keymatrix44) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/keymatrix_4_4", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/keypad'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/keypad'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Hd44780Keypad) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/keypad", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/keypad'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/keypad'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Keypad) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/keypad", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/lastline'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/lastline'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Hd44780Lastline) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/lastline", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/lastline'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/lastline'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Lastline) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/lastline", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/lineaddress'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/lineaddress'. - */// -static inline const char * ELEKTRA_GET (Hd44780Lineaddress) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/lineaddress", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/lineaddress'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/lineaddress'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Lineaddress) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/lineaddress", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/model'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/model'. - */// -static inline ElektraEnumHd44780Model ELEKTRA_GET (Hd44780Model) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/model", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ElektraEnumHd44780Model result = ELEKTRA_GET (EnumHd44780Model) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/model'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/model'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Model) (Elektra * elektra, - ElektraEnumHd44780Model value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/model", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumHd44780Model) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Hd44780Offbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Offbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/outputport'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/outputport'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Hd44780Outputport) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/outputport", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/outputport'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/outputport'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Outputport) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/outputport", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/port'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/port'. - */// -static inline const char * ELEKTRA_GET (Hd44780Port) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/port'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/port'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Port) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Hd44780Reboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Reboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/refreshdisplay'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/refreshdisplay'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Hd44780Refreshdisplay) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/refreshdisplay", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/refreshdisplay'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/refreshdisplay'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Refreshdisplay) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/refreshdisplay", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/size'. - */// -static inline const char * ELEKTRA_GET (Hd44780Size) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Size) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/speed'. - */// -static inline kdb_unsigned_long_t ELEKTRA_GET (Hd44780Speed) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/speed'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Speed) (Elektra * elektra, - kdb_unsigned_long_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'hd44780/#/vspan'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'hd44780/#/vspan'. - */// -static inline const char * ELEKTRA_GET (Hd44780Vspan) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/vspan", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'hd44780/#/vspan'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'hd44780/#/vspan'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Hd44780Vspan) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("hd44780/%*.*s%lld/vspan", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'icp_a106/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (IcpA106) (Elektra * elektra, Icp_a106DriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("icp_a106/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructIcp_a106DriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'icp_a106/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'icp_a106/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IcpA106) (Elektra * elektra, const Icp_a106DriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("icp_a106/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructIcp_a106DriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'icp_a106/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (IcpA106) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "icp_a106"); -} - - - -/** - * Get the value of 'icp_a106/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'icp_a106/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (IcpA106Brightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("icp_a106/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'icp_a106/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'icp_a106/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IcpA106Brightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("icp_a106/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'icp_a106/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'icp_a106/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (IcpA106Contrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("icp_a106/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'icp_a106/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'icp_a106/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IcpA106Contrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("icp_a106/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'icp_a106/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'icp_a106/#/device'. - */// -static inline const char * ELEKTRA_GET (IcpA106Device) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("icp_a106/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'icp_a106/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'icp_a106/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IcpA106Device) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("icp_a106/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'icp_a106/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'icp_a106/#/file'. - */// -static inline const char * ELEKTRA_GET (IcpA106File) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("icp_a106/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'icp_a106/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'icp_a106/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IcpA106File) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("icp_a106/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'icp_a106/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'icp_a106/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (IcpA106Offbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("icp_a106/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'icp_a106/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'icp_a106/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IcpA106Offbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("icp_a106/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'icp_a106/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'icp_a106/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (IcpA106Reboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("icp_a106/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'icp_a106/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'icp_a106/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IcpA106Reboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("icp_a106/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'icp_a106/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'icp_a106/#/size'. - */// -static inline const char * ELEKTRA_GET (IcpA106Size) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("icp_a106/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'icp_a106/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'icp_a106/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IcpA106Size) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("icp_a106/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'imon/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Imon) (Elektra * elektra, ImonDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructImonDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'imon/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imon/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Imon) (Elektra * elektra, const ImonDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructImonDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'imon/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Imon) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "imon"); -} - - - -/** - * Get the value of 'imon/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imon/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (ImonBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imon/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imon/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'imon/#/charmap'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imon/#/charmap'. - */// -static inline IMonCharmap ELEKTRA_GET (ImonCharmap) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld/charmap", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - IMonCharmap result = ELEKTRA_GET (EnumIMonCharmap) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imon/#/charmap'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imon/#/charmap'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonCharmap) (Elektra * elektra, - IMonCharmap value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld/charmap", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumIMonCharmap) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'imon/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imon/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (ImonContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imon/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imon/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'imon/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imon/#/device'. - */// -static inline const char * ELEKTRA_GET (ImonDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imon/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imon/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'imon/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imon/#/file'. - */// -static inline const char * ELEKTRA_GET (ImonFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imon/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imon/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'imon/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imon/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (ImonOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imon/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imon/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'imon/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imon/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (ImonReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imon/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imon/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'imon/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imon/#/size'. - */// -static inline const char * ELEKTRA_GET (ImonSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imon/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imon/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imon/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'imonlcd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Imonlcd) (Elektra * elektra, ImonlcdDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructImonlcdDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'imonlcd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imonlcd/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Imonlcd) (Elektra * elektra, const ImonlcdDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructImonlcdDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'imonlcd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Imonlcd) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "imonlcd"); -} - - - -/** - * Get the value of 'imonlcd/#/backlight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imonlcd/#/backlight'. - */// -static inline kdb_boolean_t ELEKTRA_GET (ImonlcdBacklight) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imonlcd/#/backlight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imonlcd/#/backlight'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonlcdBacklight) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'imonlcd/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imonlcd/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (ImonlcdBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imonlcd/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imonlcd/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonlcdBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'imonlcd/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imonlcd/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (ImonlcdContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imonlcd/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imonlcd/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonlcdContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'imonlcd/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imonlcd/#/device'. - */// -static inline const char * ELEKTRA_GET (ImonlcdDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imonlcd/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imonlcd/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonlcdDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'imonlcd/#/discmode'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imonlcd/#/discmode'. - */// -static inline IMonLCDDiscMode ELEKTRA_GET (ImonlcdDiscmode) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/discmode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - IMonLCDDiscMode result = ELEKTRA_GET (EnumIMonLCDDiscMode) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imonlcd/#/discmode'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imonlcd/#/discmode'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonlcdDiscmode) (Elektra * elektra, - IMonLCDDiscMode value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/discmode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumIMonLCDDiscMode) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'imonlcd/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imonlcd/#/file'. - */// -static inline const char * ELEKTRA_GET (ImonlcdFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imonlcd/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imonlcd/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonlcdFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'imonlcd/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imonlcd/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (ImonlcdOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imonlcd/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imonlcd/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonlcdOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'imonlcd/#/onexit'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imonlcd/#/onexit'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (ImonlcdOnexit) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/onexit", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imonlcd/#/onexit'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imonlcd/#/onexit'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonlcdOnexit) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/onexit", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'imonlcd/#/protocol'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imonlcd/#/protocol'. - */// -static inline const char * ELEKTRA_GET (ImonlcdProtocol) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/protocol", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imonlcd/#/protocol'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imonlcd/#/protocol'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonlcdProtocol) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/protocol", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'imonlcd/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imonlcd/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (ImonlcdReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imonlcd/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imonlcd/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonlcdReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'imonlcd/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'imonlcd/#/size'. - */// -static inline const char * ELEKTRA_GET (ImonlcdSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'imonlcd/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'imonlcd/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ImonlcdSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("imonlcd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'iowarrior/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Iowarrior) (Elektra * elektra, IOWarriorDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructIOWarriorDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'iowarrior/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'iowarrior/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Iowarrior) (Elektra * elektra, const IOWarriorDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructIOWarriorDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'iowarrior/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Iowarrior) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "iowarrior"); -} - - - -/** - * Get the value of 'iowarrior/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'iowarrior/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (IowarriorBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'iowarrior/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'iowarrior/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IowarriorBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'iowarrior/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'iowarrior/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (IowarriorContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'iowarrior/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'iowarrior/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IowarriorContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'iowarrior/#/extendedmode'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'iowarrior/#/extendedmode'. - */// -static inline kdb_boolean_t ELEKTRA_GET (IowarriorExtendedmode) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/extendedmode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'iowarrior/#/extendedmode'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'iowarrior/#/extendedmode'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IowarriorExtendedmode) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/extendedmode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'iowarrior/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'iowarrior/#/file'. - */// -static inline const char * ELEKTRA_GET (IowarriorFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'iowarrior/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'iowarrior/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IowarriorFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'iowarrior/#/lastline'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'iowarrior/#/lastline'. - */// -static inline kdb_boolean_t ELEKTRA_GET (IowarriorLastline) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/lastline", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'iowarrior/#/lastline'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'iowarrior/#/lastline'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IowarriorLastline) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/lastline", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'iowarrior/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'iowarrior/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (IowarriorOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'iowarrior/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'iowarrior/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IowarriorOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'iowarrior/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'iowarrior/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (IowarriorReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'iowarrior/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'iowarrior/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IowarriorReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'iowarrior/#/serialnumber'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'iowarrior/#/serialnumber'. - */// -static inline const char * ELEKTRA_GET (IowarriorSerialnumber) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/serialnumber", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'iowarrior/#/serialnumber'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'iowarrior/#/serialnumber'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IowarriorSerialnumber) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/serialnumber", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'iowarrior/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'iowarrior/#/size'. - */// -static inline const char * ELEKTRA_GET (IowarriorSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'iowarrior/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'iowarrior/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IowarriorSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("iowarrior/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'irman/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Irman) (Elektra * elektra, IrManDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("irman/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructIrManDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'irman/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'irman/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Irman) (Elektra * elektra, const IrManDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("irman/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructIrManDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'irman/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Irman) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "irman"); -} - - - -/** - * Get the value of 'irman/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'irman/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (IrmanBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("irman/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'irman/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'irman/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IrmanBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("irman/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'irman/#/config'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'irman/#/config'. - */// -static inline const char * ELEKTRA_GET (IrmanConfig) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("irman/%*.*s%lld/config", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'irman/#/config'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'irman/#/config'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IrmanConfig) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("irman/%*.*s%lld/config", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'irman/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'irman/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (IrmanContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("irman/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'irman/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'irman/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IrmanContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("irman/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'irman/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'irman/#/device'. - */// -static inline const char * ELEKTRA_GET (IrmanDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("irman/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'irman/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'irman/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IrmanDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("irman/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'irman/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'irman/#/file'. - */// -static inline const char * ELEKTRA_GET (IrmanFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("irman/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'irman/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'irman/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IrmanFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("irman/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'irman/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'irman/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (IrmanOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("irman/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'irman/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'irman/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IrmanOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("irman/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'irman/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'irman/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (IrmanReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("irman/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'irman/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'irman/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IrmanReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("irman/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'irtrans/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Irtrans) (Elektra * elektra, IrtransDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructIrtransDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'irtrans/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'irtrans/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Irtrans) (Elektra * elektra, const IrtransDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructIrtransDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'irtrans/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Irtrans) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "irtrans"); -} - - - -/** - * Get the value of 'irtrans/#/backlight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'irtrans/#/backlight'. - */// -static inline kdb_boolean_t ELEKTRA_GET (IrtransBacklight) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'irtrans/#/backlight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'irtrans/#/backlight'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IrtransBacklight) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'irtrans/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'irtrans/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (IrtransBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'irtrans/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'irtrans/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IrtransBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'irtrans/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'irtrans/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (IrtransContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'irtrans/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'irtrans/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IrtransContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'irtrans/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'irtrans/#/file'. - */// -static inline const char * ELEKTRA_GET (IrtransFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'irtrans/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'irtrans/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IrtransFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'irtrans/#/hostname'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'irtrans/#/hostname'. - */// -static inline const char * ELEKTRA_GET (IrtransHostname) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld/hostname", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'irtrans/#/hostname'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'irtrans/#/hostname'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IrtransHostname) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld/hostname", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'irtrans/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'irtrans/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (IrtransOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'irtrans/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'irtrans/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IrtransOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'irtrans/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'irtrans/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (IrtransReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'irtrans/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'irtrans/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IrtransReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'irtrans/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'irtrans/#/size'. - */// -static inline const char * ELEKTRA_GET (IrtransSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'irtrans/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'irtrans/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (IrtransSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("irtrans/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'joy/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Joy) (Elektra * elektra, JoyDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructJoyDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'joy/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'joy/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Joy) (Elektra * elektra, const JoyDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructJoyDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'joy/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Joy) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "joy"); -} - - - -/** - * Get the value of 'joy/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'joy/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (JoyBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'joy/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'joy/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (JoyBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'joy/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'joy/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (JoyContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'joy/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'joy/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (JoyContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'joy/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'joy/#/device'. - */// -static inline const char * ELEKTRA_GET (JoyDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'joy/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'joy/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (JoyDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'joy/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'joy/#/file'. - */// -static inline const char * ELEKTRA_GET (JoyFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'joy/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'joy/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (JoyFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'joy/#/map_axis1neg'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'joy/#/map_axis1neg'. - */// -static inline const char * ELEKTRA_GET (JoyMapAxis1neg) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/map_axis1neg", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'joy/#/map_axis1neg'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'joy/#/map_axis1neg'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (JoyMapAxis1neg) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/map_axis1neg", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'joy/#/map_axis1pos'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'joy/#/map_axis1pos'. - */// -static inline const char * ELEKTRA_GET (JoyMapAxis1pos) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/map_axis1pos", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'joy/#/map_axis1pos'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'joy/#/map_axis1pos'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (JoyMapAxis1pos) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/map_axis1pos", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'joy/#/map_axis2neg'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'joy/#/map_axis2neg'. - */// -static inline const char * ELEKTRA_GET (JoyMapAxis2neg) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/map_axis2neg", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'joy/#/map_axis2neg'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'joy/#/map_axis2neg'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (JoyMapAxis2neg) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/map_axis2neg", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'joy/#/map_axis2pos'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'joy/#/map_axis2pos'. - */// -static inline const char * ELEKTRA_GET (JoyMapAxis2pos) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/map_axis2pos", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'joy/#/map_axis2pos'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'joy/#/map_axis2pos'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (JoyMapAxis2pos) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/map_axis2pos", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'joy/#/map_button1'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'joy/#/map_button1'. - */// -static inline const char * ELEKTRA_GET (JoyMapButton1) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/map_button1", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'joy/#/map_button1'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'joy/#/map_button1'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (JoyMapButton1) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/map_button1", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'joy/#/map_button2'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'joy/#/map_button2'. - */// -static inline const char * ELEKTRA_GET (JoyMapButton2) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/map_button2", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'joy/#/map_button2'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'joy/#/map_button2'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (JoyMapButton2) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/map_button2", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'joy/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'joy/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (JoyOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'joy/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'joy/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (JoyOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'joy/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'joy/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (JoyReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'joy/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'joy/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (JoyReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("joy/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'lb216/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Lb216) (Elektra * elektra, Lb216DriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("lb216/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructLb216DriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'lb216/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lb216/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lb216) (Elektra * elektra, const Lb216DriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lb216/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructLb216DriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'lb216/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Lb216) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "lb216"); -} - - - -/** - * Get the value of 'lb216/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lb216/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Lb216Brightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lb216/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lb216/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lb216/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lb216Brightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lb216/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lb216/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lb216/#/device'. - */// -static inline const char * ELEKTRA_GET (Lb216Device) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lb216/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lb216/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lb216/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lb216Device) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lb216/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lb216/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lb216/#/file'. - */// -static inline const char * ELEKTRA_GET (Lb216File) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lb216/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lb216/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lb216/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lb216File) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lb216/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lb216/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lb216/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Lb216Reboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lb216/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lb216/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lb216/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lb216Reboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lb216/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lb216/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lb216/#/speed'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Lb216Speed) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lb216/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lb216/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lb216/#/speed'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lb216Speed) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lb216/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'lcdm001/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Lcdm001) (Elektra * elektra, Lcdm001DriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructLcdm001DriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'lcdm001/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lcdm001/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lcdm001) (Elektra * elektra, const Lcdm001DriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructLcdm001DriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'lcdm001/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Lcdm001) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "lcdm001"); -} - - - -/** - * Get the value of 'lcdm001/#/backkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lcdm001/#/backkey'. - */// -static inline Lcdm001Keys ELEKTRA_GET (Lcdm001Backkey) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld/backkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - Lcdm001Keys result = ELEKTRA_GET (EnumLcdm001Keys) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lcdm001/#/backkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lcdm001/#/backkey'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lcdm001Backkey) (Elektra * elektra, - Lcdm001Keys value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld/backkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumLcdm001Keys) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lcdm001/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lcdm001/#/device'. - */// -static inline const char * ELEKTRA_GET (Lcdm001Device) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lcdm001/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lcdm001/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lcdm001Device) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lcdm001/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lcdm001/#/file'. - */// -static inline const char * ELEKTRA_GET (Lcdm001File) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lcdm001/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lcdm001/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lcdm001File) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lcdm001/#/forwardkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lcdm001/#/forwardkey'. - */// -static inline Lcdm001Keys ELEKTRA_GET (Lcdm001Forwardkey) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld/forwardkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - Lcdm001Keys result = ELEKTRA_GET (EnumLcdm001Keys) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lcdm001/#/forwardkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lcdm001/#/forwardkey'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lcdm001Forwardkey) (Elektra * elektra, - Lcdm001Keys value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld/forwardkey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumLcdm001Keys) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lcdm001/#/mainmenukey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lcdm001/#/mainmenukey'. - */// -static inline Lcdm001Keys ELEKTRA_GET (Lcdm001Mainmenukey) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld/mainmenukey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - Lcdm001Keys result = ELEKTRA_GET (EnumLcdm001Keys) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lcdm001/#/mainmenukey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lcdm001/#/mainmenukey'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lcdm001Mainmenukey) (Elektra * elektra, - Lcdm001Keys value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld/mainmenukey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumLcdm001Keys) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lcdm001/#/pausekey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lcdm001/#/pausekey'. - */// -static inline Lcdm001Keys ELEKTRA_GET (Lcdm001Pausekey) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld/pausekey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - Lcdm001Keys result = ELEKTRA_GET (EnumLcdm001Keys) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lcdm001/#/pausekey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lcdm001/#/pausekey'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lcdm001Pausekey) (Elektra * elektra, - Lcdm001Keys value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lcdm001/%*.*s%lld/pausekey", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumLcdm001Keys) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'lcterm/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Lcterm) (Elektra * elektra, LctermDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("lcterm/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructLctermDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'lcterm/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lcterm/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lcterm) (Elektra * elektra, const LctermDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lcterm/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructLctermDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'lcterm/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Lcterm) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "lcterm"); -} - - - -/** - * Get the value of 'lcterm/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lcterm/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (LctermBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lcterm/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lcterm/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lcterm/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LctermBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lcterm/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lcterm/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lcterm/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (LctermContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lcterm/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lcterm/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lcterm/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LctermContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lcterm/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lcterm/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lcterm/#/device'. - */// -static inline const char * ELEKTRA_GET (LctermDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lcterm/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lcterm/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lcterm/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LctermDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lcterm/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lcterm/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lcterm/#/file'. - */// -static inline const char * ELEKTRA_GET (LctermFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lcterm/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lcterm/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lcterm/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LctermFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lcterm/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lcterm/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lcterm/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (LctermOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lcterm/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lcterm/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lcterm/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LctermOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lcterm/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lcterm/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lcterm/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (LctermReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lcterm/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lcterm/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lcterm/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LctermReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lcterm/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lcterm/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lcterm/#/size'. - */// -static inline const char * ELEKTRA_GET (LctermSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lcterm/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lcterm/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lcterm/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LctermSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lcterm/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'linux_input/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (LinuxInput) (Elektra * elektra, Linux_inputDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("linux_input/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructLinux_inputDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'linux_input/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'linux_input/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LinuxInput) (Elektra * elektra, const Linux_inputDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("linux_input/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructLinux_inputDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'linux_input/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (LinuxInput) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "linux_input"); -} - - - -/** - * Get the value of 'linux_input/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'linux_input/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (LinuxInputBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("linux_input/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'linux_input/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'linux_input/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LinuxInputBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("linux_input/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'linux_input/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'linux_input/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (LinuxInputContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("linux_input/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'linux_input/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'linux_input/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LinuxInputContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("linux_input/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'linux_input/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'linux_input/#/device'. - */// -static inline const char * ELEKTRA_GET (LinuxInputDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("linux_input/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'linux_input/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'linux_input/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LinuxInputDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("linux_input/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'linux_input/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'linux_input/#/file'. - */// -static inline const char * ELEKTRA_GET (LinuxInputFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("linux_input/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'linux_input/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'linux_input/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LinuxInputFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("linux_input/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'linux_input/#/key/_'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param name1 Replaces occurence no. 1 of _ in the keyname. - * - * @return the value of 'linux_input/#/key/_'. - */// -static inline const char * ELEKTRA_GET (LinuxInputKey) (Elektra * elektra , - kdb_long_long_t index1 , - const char * name1 ) -{ - - - char * name = elektraFormat ("linux_input/%*.*s%lld/key/%s", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 , - name1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'linux_input/#/key/_'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'linux_input/#/key/_'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param name1 Replaces occurence no. 1 of _ in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LinuxInputKey) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, - const char * name1, ElektraError ** error) -{ - - - char * name = elektraFormat ("linux_input/%*.*s%lld/key/%s", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 , - name1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'linux_input/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'linux_input/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (LinuxInputOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("linux_input/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'linux_input/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'linux_input/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LinuxInputOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("linux_input/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'linux_input/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'linux_input/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (LinuxInputReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("linux_input/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'linux_input/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'linux_input/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LinuxInputReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("linux_input/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'lirc/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Lirc) (Elektra * elektra, LircDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("lirc/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructLircDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'lirc/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lirc/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lirc) (Elektra * elektra, const LircDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lirc/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructLircDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'lirc/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Lirc) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "lirc"); -} - - - -/** - * Get the value of 'lirc/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lirc/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (LircBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lirc/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lirc/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lirc/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LircBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lirc/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lirc/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lirc/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (LircContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lirc/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lirc/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lirc/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LircContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lirc/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lirc/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lirc/#/file'. - */// -static inline const char * ELEKTRA_GET (LircFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lirc/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lirc/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lirc/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LircFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lirc/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lirc/#/lircrc'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lirc/#/lircrc'. - */// -static inline const char * ELEKTRA_GET (LircLircrc) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lirc/%*.*s%lld/lircrc", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lirc/#/lircrc'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lirc/#/lircrc'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LircLircrc) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lirc/%*.*s%lld/lircrc", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lirc/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lirc/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (LircOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lirc/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lirc/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lirc/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LircOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lirc/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lirc/#/prog'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lirc/#/prog'. - */// -static inline const char * ELEKTRA_GET (LircProg) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lirc/%*.*s%lld/prog", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lirc/#/prog'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lirc/#/prog'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LircProg) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lirc/%*.*s%lld/prog", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lirc/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lirc/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (LircReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lirc/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lirc/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lirc/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LircReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lirc/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'lis/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Lis) (Elektra * elektra, LisDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructLisDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'lis/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lis/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Lis) (Elektra * elektra, const LisDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructLisDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'lis/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Lis) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "lis"); -} - - - -/** - * Get the value of 'lis/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lis/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (LisBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lis/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lis/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LisBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lis/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lis/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (LisContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lis/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lis/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LisContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lis/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lis/#/file'. - */// -static inline const char * ELEKTRA_GET (LisFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lis/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lis/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LisFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lis/#/lastline'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lis/#/lastline'. - */// -static inline kdb_boolean_t ELEKTRA_GET (LisLastline) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/lastline", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lis/#/lastline'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lis/#/lastline'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LisLastline) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/lastline", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lis/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lis/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (LisOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lis/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lis/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LisOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lis/#/productid'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lis/#/productid'. - */// -static inline const char * ELEKTRA_GET (LisProductid) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/productid", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lis/#/productid'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lis/#/productid'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LisProductid) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/productid", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lis/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lis/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (LisReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lis/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lis/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LisReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lis/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lis/#/size'. - */// -static inline const char * ELEKTRA_GET (LisSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lis/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lis/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LisSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'lis/#/vendorid'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'lis/#/vendorid'. - */// -static inline const char * ELEKTRA_GET (LisVendorid) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/vendorid", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'lis/#/vendorid'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'lis/#/vendorid'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (LisVendorid) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("lis/%*.*s%lld/vendorid", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'md8800/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Md8800) (Elektra * elektra, MD8800DriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("md8800/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructMD8800DriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'md8800/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'md8800/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Md8800) (Elektra * elektra, const MD8800DriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("md8800/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructMD8800DriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'md8800/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Md8800) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "md8800"); -} - - - -/** - * Get the value of 'md8800/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'md8800/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Md8800Brightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("md8800/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'md8800/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'md8800/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Md8800Brightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("md8800/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'md8800/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'md8800/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Md8800Contrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("md8800/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'md8800/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'md8800/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Md8800Contrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("md8800/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'md8800/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'md8800/#/device'. - */// -static inline const char * ELEKTRA_GET (Md8800Device) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("md8800/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'md8800/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'md8800/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Md8800Device) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("md8800/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'md8800/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'md8800/#/file'. - */// -static inline const char * ELEKTRA_GET (Md8800File) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("md8800/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'md8800/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'md8800/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Md8800File) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("md8800/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'md8800/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'md8800/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Md8800Offbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("md8800/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'md8800/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'md8800/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Md8800Offbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("md8800/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'md8800/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'md8800/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Md8800Reboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("md8800/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'md8800/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'md8800/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Md8800Reboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("md8800/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'md8800/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'md8800/#/size'. - */// -static inline const char * ELEKTRA_GET (Md8800Size) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("md8800/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'md8800/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'md8800/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Md8800Size) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("md8800/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'mdm166a/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Mdm166a) (Elektra * elektra, Mdm166aDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructMdm166aDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'mdm166a/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mdm166a/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mdm166a) (Elektra * elektra, const Mdm166aDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructMdm166aDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'mdm166a/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Mdm166a) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "mdm166a"); -} - - - -/** - * Get the value of 'mdm166a/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mdm166a/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Mdm166aBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mdm166a/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mdm166a/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mdm166aBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mdm166a/#/clock'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mdm166a/#/clock'. - */// -static inline ElektraEnumMdm166aClock ELEKTRA_GET (Mdm166aClock) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld/clock", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ElektraEnumMdm166aClock result = ELEKTRA_GET (EnumMdm166aClock) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mdm166a/#/clock'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mdm166a/#/clock'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mdm166aClock) (Elektra * elektra, - ElektraEnumMdm166aClock value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld/clock", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumMdm166aClock) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mdm166a/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mdm166a/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Mdm166aContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mdm166a/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mdm166a/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mdm166aContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mdm166a/#/dimming'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mdm166a/#/dimming'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Mdm166aDimming) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld/dimming", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mdm166a/#/dimming'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mdm166a/#/dimming'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mdm166aDimming) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld/dimming", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mdm166a/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mdm166a/#/file'. - */// -static inline const char * ELEKTRA_GET (Mdm166aFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mdm166a/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mdm166a/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mdm166aFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mdm166a/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mdm166a/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Mdm166aOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mdm166a/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mdm166a/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mdm166aOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mdm166a/#/offdimming'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mdm166a/#/offdimming'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Mdm166aOffdimming) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld/offdimming", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mdm166a/#/offdimming'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mdm166a/#/offdimming'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mdm166aOffdimming) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld/offdimming", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mdm166a/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mdm166a/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Mdm166aReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mdm166a/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mdm166a/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mdm166aReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mdm166a/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'menu/downkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'menu/downkey'. - */// -static inline const char * ELEKTRA_GET (MenuDownkey) (Elektra * elektra ) -{ - - return ELEKTRA_GET (String) (elektra, "menu/downkey"); -} - - -/** - * Set the value of 'menu/downkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'menu/downkey'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MenuDownkey) (Elektra * elektra, - const char * value, ElektraError ** error) -{ - - ELEKTRA_SET (String) (elektra, "menu/downkey", value, error); -} - - - - -/** - * Get the value of 'menu/enterkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'menu/enterkey'. - */// -static inline const char * ELEKTRA_GET (MenuEnterkey) (Elektra * elektra ) -{ - - return ELEKTRA_GET (String) (elektra, "menu/enterkey"); -} - - -/** - * Set the value of 'menu/enterkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'menu/enterkey'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MenuEnterkey) (Elektra * elektra, - const char * value, ElektraError ** error) -{ - - ELEKTRA_SET (String) (elektra, "menu/enterkey", value, error); -} - - - - -/** - * Get the value of 'menu/leftkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'menu/leftkey'. - */// -static inline const char * ELEKTRA_GET (MenuLeftkey) (Elektra * elektra ) -{ - - return ELEKTRA_GET (String) (elektra, "menu/leftkey"); -} - - -/** - * Set the value of 'menu/leftkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'menu/leftkey'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MenuLeftkey) (Elektra * elektra, - const char * value, ElektraError ** error) -{ - - ELEKTRA_SET (String) (elektra, "menu/leftkey", value, error); -} - - - - -/** - * Get the value of 'menu/menukey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'menu/menukey'. - */// -static inline const char * ELEKTRA_GET (MenuMenukey) (Elektra * elektra ) -{ - - return ELEKTRA_GET (String) (elektra, "menu/menukey"); -} - - -/** - * Set the value of 'menu/menukey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'menu/menukey'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MenuMenukey) (Elektra * elektra, - const char * value, ElektraError ** error) -{ - - ELEKTRA_SET (String) (elektra, "menu/menukey", value, error); -} - - - - -/** - * Get the value of 'menu/permissivegoto'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'menu/permissivegoto'. - */// -static inline kdb_boolean_t ELEKTRA_GET (MenuPermissivegoto) (Elektra * elektra ) -{ - - return ELEKTRA_GET (Boolean) (elektra, "menu/permissivegoto"); -} - - -/** - * Set the value of 'menu/permissivegoto'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'menu/permissivegoto'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MenuPermissivegoto) (Elektra * elektra, - kdb_boolean_t value, ElektraError ** error) -{ - - ELEKTRA_SET (Boolean) (elektra, "menu/permissivegoto", value, error); -} - - - - -/** - * Get the value of 'menu/rightkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'menu/rightkey'. - */// -static inline const char * ELEKTRA_GET (MenuRightkey) (Elektra * elektra ) -{ - - return ELEKTRA_GET (String) (elektra, "menu/rightkey"); -} - - -/** - * Set the value of 'menu/rightkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'menu/rightkey'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MenuRightkey) (Elektra * elektra, - const char * value, ElektraError ** error) -{ - - ELEKTRA_SET (String) (elektra, "menu/rightkey", value, error); -} - - - - -/** - * Get the value of 'menu/upkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'menu/upkey'. - */// -static inline const char * ELEKTRA_GET (MenuUpkey) (Elektra * elektra ) -{ - - return ELEKTRA_GET (String) (elektra, "menu/upkey"); -} - - -/** - * Set the value of 'menu/upkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'menu/upkey'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MenuUpkey) (Elektra * elektra, - const char * value, ElektraError ** error) -{ - - ELEKTRA_SET (String) (elektra, "menu/upkey", value, error); -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'ms6931/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Ms6931) (Elektra * elektra, Ms6931DriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("ms6931/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructMs6931DriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'ms6931/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ms6931/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ms6931) (Elektra * elektra, const Ms6931DriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ms6931/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructMs6931DriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'ms6931/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Ms6931) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "ms6931"); -} - - - -/** - * Get the value of 'ms6931/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ms6931/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Ms6931Brightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ms6931/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ms6931/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ms6931/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ms6931Brightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ms6931/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ms6931/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ms6931/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Ms6931Contrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ms6931/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ms6931/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ms6931/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ms6931Contrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ms6931/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ms6931/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ms6931/#/device'. - */// -static inline const char * ELEKTRA_GET (Ms6931Device) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ms6931/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ms6931/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ms6931/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ms6931Device) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ms6931/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ms6931/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ms6931/#/file'. - */// -static inline const char * ELEKTRA_GET (Ms6931File) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ms6931/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ms6931/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ms6931/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ms6931File) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ms6931/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ms6931/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ms6931/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Ms6931Offbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ms6931/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ms6931/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ms6931/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ms6931Offbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ms6931/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ms6931/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ms6931/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Ms6931Reboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ms6931/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ms6931/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ms6931/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ms6931Reboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ms6931/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ms6931/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ms6931/#/size'. - */// -static inline const char * ELEKTRA_GET (Ms6931Size) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ms6931/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ms6931/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ms6931/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ms6931Size) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ms6931/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'mtc_s16209x/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (MtcS16209x) (Elektra * elektra, Mtc_s16209xDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("mtc_s16209x/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructMtc_s16209xDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'mtc_s16209x/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtc_s16209x/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtcS16209x) (Elektra * elektra, const Mtc_s16209xDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtc_s16209x/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructMtc_s16209xDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'mtc_s16209x/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (MtcS16209x) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "mtc_s16209x"); -} - - - -/** - * Get the value of 'mtc_s16209x/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtc_s16209x/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (MtcS16209xBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtc_s16209x/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtc_s16209x/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtcS16209xBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtc_s16209x/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtc_s16209x/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (MtcS16209xContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtc_s16209x/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtc_s16209x/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtcS16209xContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtc_s16209x/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtc_s16209x/#/device'. - */// -static inline const char * ELEKTRA_GET (MtcS16209xDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtc_s16209x/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtc_s16209x/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtcS16209xDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtc_s16209x/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtc_s16209x/#/file'. - */// -static inline const char * ELEKTRA_GET (MtcS16209xFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtc_s16209x/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtc_s16209x/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtcS16209xFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtc_s16209x/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtc_s16209x/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (MtcS16209xOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtc_s16209x/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtc_s16209x/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtcS16209xOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtc_s16209x/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtc_s16209x/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (MtcS16209xReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtc_s16209x/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtc_s16209x/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtcS16209xReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtc_s16209x/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'mtxorb/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Mtxorb) (Elektra * elektra, MtxOrbDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructMtxOrbDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'mtxorb/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtxorb/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mtxorb) (Elektra * elektra, const MtxOrbDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructMtxOrbDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'mtxorb/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Mtxorb) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "mtxorb"); -} - - - -/** - * Get the value of 'mtxorb/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtxorb/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (MtxorbBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtxorb/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtxorb/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtxorbBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtxorb/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtxorb/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (MtxorbContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtxorb/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtxorb/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtxorbContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtxorb/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtxorb/#/device'. - */// -static inline const char * ELEKTRA_GET (MtxorbDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtxorb/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtxorb/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtxorbDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtxorb/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtxorb/#/file'. - */// -static inline const char * ELEKTRA_GET (MtxorbFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtxorb/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtxorb/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtxorbFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtxorb/#/hasadjustablebacklight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtxorb/#/hasadjustablebacklight'. - */// -static inline kdb_boolean_t ELEKTRA_GET (MtxorbHasadjustablebacklight) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/hasadjustablebacklight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtxorb/#/hasadjustablebacklight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtxorb/#/hasadjustablebacklight'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtxorbHasadjustablebacklight) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/hasadjustablebacklight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtxorb/#/keymap_a'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtxorb/#/keymap_a'. - */// -static inline const char * ELEKTRA_GET (MtxorbKeymapA) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_a", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtxorb/#/keymap_a'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtxorb/#/keymap_a'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtxorbKeymapA) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_a", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtxorb/#/keymap_b'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtxorb/#/keymap_b'. - */// -static inline const char * ELEKTRA_GET (MtxorbKeymapB) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_b", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtxorb/#/keymap_b'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtxorb/#/keymap_b'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtxorbKeymapB) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_b", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtxorb/#/keymap_c'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtxorb/#/keymap_c'. - */// -static inline const char * ELEKTRA_GET (MtxorbKeymapC) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_c", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtxorb/#/keymap_c'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtxorb/#/keymap_c'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtxorbKeymapC) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_c", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtxorb/#/keymap_d'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtxorb/#/keymap_d'. - */// -static inline const char * ELEKTRA_GET (MtxorbKeymapD) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_d", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtxorb/#/keymap_d'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtxorb/#/keymap_d'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtxorbKeymapD) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_d", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtxorb/#/keymap_e'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtxorb/#/keymap_e'. - */// -static inline const char * ELEKTRA_GET (MtxorbKeymapE) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_e", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtxorb/#/keymap_e'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtxorb/#/keymap_e'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtxorbKeymapE) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_e", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtxorb/#/keymap_f'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtxorb/#/keymap_f'. - */// -static inline const char * ELEKTRA_GET (MtxorbKeymapF) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_f", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtxorb/#/keymap_f'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtxorb/#/keymap_f'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtxorbKeymapF) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/keymap_f", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtxorb/#/keypad_test_mode'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtxorb/#/keypad_test_mode'. - */// -static inline kdb_boolean_t ELEKTRA_GET (MtxorbKeypadTestMode) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/keypad_test_mode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtxorb/#/keypad_test_mode'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtxorb/#/keypad_test_mode'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtxorbKeypadTestMode) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/keypad_test_mode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtxorb/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtxorb/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (MtxorbOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtxorb/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtxorb/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtxorbOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtxorb/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtxorb/#/size'. - */// -static inline const char * ELEKTRA_GET (MtxorbSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtxorb/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtxorb/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtxorbSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtxorb/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtxorb/#/speed'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (MtxorbSpeed) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtxorb/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtxorb/#/speed'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtxorbSpeed) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mtxorb/#/type'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mtxorb/#/type'. - */// -static inline ElektraEnumMtxorbType ELEKTRA_GET (MtxorbType) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/type", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ElektraEnumMtxorbType result = ELEKTRA_GET (EnumMtxorbType) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mtxorb/#/type'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mtxorb/#/type'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (MtxorbType) (Elektra * elektra, - ElektraEnumMtxorbType value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mtxorb/%*.*s%lld/type", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumMtxorbType) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'mx5000/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Mx5000) (Elektra * elektra, Mx5000DriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("mx5000/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructMx5000DriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'mx5000/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mx5000/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mx5000) (Elektra * elektra, const Mx5000DriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mx5000/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructMx5000DriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'mx5000/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Mx5000) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "mx5000"); -} - - - -/** - * Get the value of 'mx5000/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mx5000/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Mx5000Brightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mx5000/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mx5000/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mx5000/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mx5000Brightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mx5000/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mx5000/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mx5000/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Mx5000Contrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mx5000/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mx5000/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mx5000/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mx5000Contrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mx5000/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mx5000/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mx5000/#/device'. - */// -static inline const char * ELEKTRA_GET (Mx5000Device) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mx5000/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mx5000/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mx5000/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mx5000Device) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mx5000/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mx5000/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mx5000/#/file'. - */// -static inline const char * ELEKTRA_GET (Mx5000File) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mx5000/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mx5000/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mx5000/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mx5000File) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mx5000/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mx5000/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mx5000/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Mx5000Offbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mx5000/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mx5000/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mx5000/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mx5000Offbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mx5000/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mx5000/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mx5000/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Mx5000Reboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mx5000/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mx5000/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mx5000/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mx5000Reboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mx5000/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'mx5000/#/waitafterrefresh'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'mx5000/#/waitafterrefresh'. - */// -static inline kdb_unsigned_long_t ELEKTRA_GET (Mx5000Waitafterrefresh) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("mx5000/%*.*s%lld/waitafterrefresh", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'mx5000/#/waitafterrefresh'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'mx5000/#/waitafterrefresh'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Mx5000Waitafterrefresh) (Elektra * elektra, - kdb_unsigned_long_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("mx5000/%*.*s%lld/waitafterrefresh", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'noritakevfd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Noritakevfd) (Elektra * elektra, NoritakeVFDDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructNoritakeVFDDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'noritakevfd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'noritakevfd/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Noritakevfd) (Elektra * elektra, const NoritakeVFDDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructNoritakeVFDDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'noritakevfd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Noritakevfd) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "noritakevfd"); -} - - - -/** - * Get the value of 'noritakevfd/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'noritakevfd/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (NoritakevfdBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'noritakevfd/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'noritakevfd/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (NoritakevfdBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'noritakevfd/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'noritakevfd/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (NoritakevfdContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'noritakevfd/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'noritakevfd/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (NoritakevfdContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'noritakevfd/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'noritakevfd/#/device'. - */// -static inline const char * ELEKTRA_GET (NoritakevfdDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'noritakevfd/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'noritakevfd/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (NoritakevfdDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'noritakevfd/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'noritakevfd/#/file'. - */// -static inline const char * ELEKTRA_GET (NoritakevfdFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'noritakevfd/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'noritakevfd/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (NoritakevfdFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'noritakevfd/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'noritakevfd/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (NoritakevfdOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'noritakevfd/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'noritakevfd/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (NoritakevfdOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'noritakevfd/#/parity'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'noritakevfd/#/parity'. - */// -static inline kdb_unsigned_long_t ELEKTRA_GET (NoritakevfdParity) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/parity", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'noritakevfd/#/parity'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'noritakevfd/#/parity'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (NoritakevfdParity) (Elektra * elektra, - kdb_unsigned_long_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/parity", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'noritakevfd/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'noritakevfd/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (NoritakevfdReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'noritakevfd/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'noritakevfd/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (NoritakevfdReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'noritakevfd/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'noritakevfd/#/size'. - */// -static inline const char * ELEKTRA_GET (NoritakevfdSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'noritakevfd/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'noritakevfd/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (NoritakevfdSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'noritakevfd/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'noritakevfd/#/speed'. - */// -static inline kdb_unsigned_long_t ELEKTRA_GET (NoritakevfdSpeed) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'noritakevfd/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'noritakevfd/#/speed'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (NoritakevfdSpeed) (Elektra * elektra, - kdb_unsigned_long_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("noritakevfd/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'olimex_mod_lcd1x9/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (OlimexModLcd1x9) (Elektra * elektra, Olimex_MOD_LCD1x9DriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructOlimex_MOD_LCD1x9DriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'olimex_mod_lcd1x9/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'olimex_mod_lcd1x9/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (OlimexModLcd1x9) (Elektra * elektra, const Olimex_MOD_LCD1x9DriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructOlimex_MOD_LCD1x9DriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'olimex_mod_lcd1x9/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (OlimexModLcd1x9) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "olimex_mod_lcd1x9"); -} - - - -/** - * Get the value of 'olimex_mod_lcd1x9/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'olimex_mod_lcd1x9/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (OlimexModLcd1x9Brightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'olimex_mod_lcd1x9/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'olimex_mod_lcd1x9/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (OlimexModLcd1x9Brightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'olimex_mod_lcd1x9/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'olimex_mod_lcd1x9/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (OlimexModLcd1x9Contrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'olimex_mod_lcd1x9/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'olimex_mod_lcd1x9/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (OlimexModLcd1x9Contrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'olimex_mod_lcd1x9/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'olimex_mod_lcd1x9/#/device'. - */// -static inline const char * ELEKTRA_GET (OlimexModLcd1x9Device) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'olimex_mod_lcd1x9/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'olimex_mod_lcd1x9/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (OlimexModLcd1x9Device) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'olimex_mod_lcd1x9/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'olimex_mod_lcd1x9/#/file'. - */// -static inline const char * ELEKTRA_GET (OlimexModLcd1x9File) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'olimex_mod_lcd1x9/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'olimex_mod_lcd1x9/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (OlimexModLcd1x9File) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'olimex_mod_lcd1x9/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'olimex_mod_lcd1x9/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (OlimexModLcd1x9Offbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'olimex_mod_lcd1x9/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'olimex_mod_lcd1x9/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (OlimexModLcd1x9Offbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'olimex_mod_lcd1x9/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'olimex_mod_lcd1x9/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (OlimexModLcd1x9Reboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'olimex_mod_lcd1x9/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'olimex_mod_lcd1x9/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (OlimexModLcd1x9Reboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("olimex_mod_lcd1x9/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'picolcd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Picolcd) (Elektra * elektra, PicolcdDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructPicolcdDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'picolcd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Picolcd) (Elektra * elektra, const PicolcdDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructPicolcdDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'picolcd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Picolcd) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "picolcd"); -} - - - -/** - * Get the value of 'picolcd/#/backlight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/backlight'. - */// -static inline kdb_boolean_t ELEKTRA_GET (PicolcdBacklight) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/backlight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/backlight'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdBacklight) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/backlight", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (PicolcdBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (PicolcdContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/file'. - */// -static inline const char * ELEKTRA_GET (PicolcdFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/key0light'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/key0light'. - */// -static inline kdb_boolean_t ELEKTRA_GET (PicolcdKey0light) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/key0light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/key0light'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/key0light'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdKey0light) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/key0light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/key1light'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/key1light'. - */// -static inline kdb_boolean_t ELEKTRA_GET (PicolcdKey1light) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/key1light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/key1light'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/key1light'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdKey1light) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/key1light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/key2light'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/key2light'. - */// -static inline kdb_boolean_t ELEKTRA_GET (PicolcdKey2light) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/key2light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/key2light'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/key2light'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdKey2light) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/key2light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/key3light'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/key3light'. - */// -static inline kdb_boolean_t ELEKTRA_GET (PicolcdKey3light) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/key3light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/key3light'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/key3light'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdKey3light) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/key3light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/key4light'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/key4light'. - */// -static inline kdb_boolean_t ELEKTRA_GET (PicolcdKey4light) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/key4light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/key4light'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/key4light'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdKey4light) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/key4light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/key5light'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/key5light'. - */// -static inline kdb_boolean_t ELEKTRA_GET (PicolcdKey5light) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/key5light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/key5light'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/key5light'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdKey5light) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/key5light", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/keylights'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/keylights'. - */// -static inline kdb_boolean_t ELEKTRA_GET (PicolcdKeylights) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/keylights", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/keylights'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/keylights'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdKeylights) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/keylights", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/keyrepeatdelay'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/keyrepeatdelay'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (PicolcdKeyrepeatdelay) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/keyrepeatdelay", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/keyrepeatdelay'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/keyrepeatdelay'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdKeyrepeatdelay) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/keyrepeatdelay", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/keyrepeatinterval'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/keyrepeatinterval'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (PicolcdKeyrepeatinterval) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/keyrepeatinterval", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/keyrepeatinterval'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/keyrepeatinterval'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdKeyrepeatinterval) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/keyrepeatinterval", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/keytimeout'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/keytimeout'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (PicolcdKeytimeout) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/keytimeout", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/keytimeout'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/keytimeout'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdKeytimeout) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/keytimeout", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/linklights'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/linklights'. - */// -static inline kdb_boolean_t ELEKTRA_GET (PicolcdLinklights) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/linklights", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/linklights'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/linklights'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdLinklights) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/linklights", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/lircflushthreshold'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/lircflushthreshold'. - */// -static inline kdb_unsigned_long_t ELEKTRA_GET (PicolcdLircflushthreshold) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/lircflushthreshold", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/lircflushthreshold'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/lircflushthreshold'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdLircflushthreshold) (Elektra * elektra, - kdb_unsigned_long_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/lircflushthreshold", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/lirchost'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/lirchost'. - */// -static inline const char * ELEKTRA_GET (PicolcdLirchost) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/lirchost", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/lirchost'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/lirchost'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdLirchost) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/lirchost", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/lircport'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/lircport'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (PicolcdLircport) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/lircport", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/lircport'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/lircport'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdLircport) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/lircport", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/lirctime_us'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/lirctime_us'. - */// -static inline kdb_boolean_t ELEKTRA_GET (PicolcdLirctimeUs) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/lirctime_us", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/lirctime_us'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/lirctime_us'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdLirctimeUs) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/lirctime_us", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (PicolcdOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'picolcd/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'picolcd/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (PicolcdReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'picolcd/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'picolcd/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PicolcdReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("picolcd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'pyramid/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Pyramid) (Elektra * elektra, PyramidDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("pyramid/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructPyramidDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'pyramid/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'pyramid/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Pyramid) (Elektra * elektra, const PyramidDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("pyramid/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructPyramidDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'pyramid/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Pyramid) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "pyramid"); -} - - - -/** - * Get the value of 'pyramid/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'pyramid/#/device'. - */// -static inline const char * ELEKTRA_GET (PyramidDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("pyramid/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'pyramid/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'pyramid/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PyramidDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("pyramid/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'pyramid/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'pyramid/#/file'. - */// -static inline const char * ELEKTRA_GET (PyramidFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("pyramid/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'pyramid/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'pyramid/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (PyramidFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("pyramid/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'rawserial/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Rawserial) (Elektra * elektra, RawserialDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructRawserialDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'rawserial/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'rawserial/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Rawserial) (Elektra * elektra, const RawserialDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructRawserialDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'rawserial/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Rawserial) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "rawserial"); -} - - - -/** - * Get the value of 'rawserial/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'rawserial/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (RawserialBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'rawserial/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'rawserial/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (RawserialBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'rawserial/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'rawserial/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (RawserialContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'rawserial/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'rawserial/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (RawserialContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'rawserial/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'rawserial/#/device'. - */// -static inline const char * ELEKTRA_GET (RawserialDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'rawserial/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'rawserial/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (RawserialDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'rawserial/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'rawserial/#/file'. - */// -static inline const char * ELEKTRA_GET (RawserialFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'rawserial/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'rawserial/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (RawserialFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'rawserial/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'rawserial/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (RawserialOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'rawserial/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'rawserial/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (RawserialOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'rawserial/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'rawserial/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (RawserialReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'rawserial/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'rawserial/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (RawserialReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'rawserial/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'rawserial/#/size'. - */// -static inline const char * ELEKTRA_GET (RawserialSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'rawserial/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'rawserial/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (RawserialSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'rawserial/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'rawserial/#/speed'. - */// -static inline kdb_unsigned_long_t ELEKTRA_GET (RawserialSpeed) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'rawserial/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'rawserial/#/speed'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (RawserialSpeed) (Elektra * elektra, - kdb_unsigned_long_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'rawserial/#/updaterate'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'rawserial/#/updaterate'. - */// -static inline kdb_float_t ELEKTRA_GET (RawserialUpdaterate) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/updaterate", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_float_t result = ELEKTRA_GET (Float) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'rawserial/#/updaterate'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'rawserial/#/updaterate'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (RawserialUpdaterate) (Elektra * elektra, - kdb_float_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("rawserial/%*.*s%lld/updaterate", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Float) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'sed1330/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Sed1330) (Elektra * elektra, Sed1330DriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructSed1330DriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'sed1330/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1330/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1330) (Elektra * elektra, const Sed1330DriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructSed1330DriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'sed1330/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Sed1330) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "sed1330"); -} - - - -/** - * Get the value of 'sed1330/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1330/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Sed1330Brightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1330/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1330/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1330Brightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1330/#/cellsize'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1330/#/cellsize'. - */// -static inline const char * ELEKTRA_GET (Sed1330Cellsize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/cellsize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1330/#/cellsize'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1330/#/cellsize'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1330Cellsize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/cellsize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1330/#/connectiontype'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1330/#/connectiontype'. - */// -static inline ElektraEnumSed1330Connectiontype ELEKTRA_GET (Sed1330Connectiontype) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/connectiontype", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ElektraEnumSed1330Connectiontype result = ELEKTRA_GET (EnumSed1330Connectiontype) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1330/#/connectiontype'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1330/#/connectiontype'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1330Connectiontype) (Elektra * elektra, - ElektraEnumSed1330Connectiontype value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/connectiontype", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumSed1330Connectiontype) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1330/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1330/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Sed1330Contrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1330/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1330/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1330Contrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1330/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1330/#/file'. - */// -static inline const char * ELEKTRA_GET (Sed1330File) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1330/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1330/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1330File) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1330/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1330/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Sed1330Offbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1330/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1330/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1330Offbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1330/#/port'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1330/#/port'. - */// -static inline const char * ELEKTRA_GET (Sed1330Port) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1330/#/port'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1330/#/port'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1330Port) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1330/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1330/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Sed1330Reboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1330/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1330/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1330Reboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1330/#/type'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1330/#/type'. - */// -static inline ElektraEnumSed1330Type ELEKTRA_GET (Sed1330Type) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/type", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ElektraEnumSed1330Type result = ELEKTRA_GET (EnumSed1330Type) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1330/#/type'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1330/#/type'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1330Type) (Elektra * elektra, - ElektraEnumSed1330Type value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1330/%*.*s%lld/type", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumSed1330Type) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'sed1520/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Sed1520) (Elektra * elektra, Sed1520DriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructSed1520DriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'sed1520/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1520/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1520) (Elektra * elektra, const Sed1520DriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructSed1520DriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'sed1520/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Sed1520) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "sed1520"); -} - - - -/** - * Get the value of 'sed1520/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1520/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Sed1520Brightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1520/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1520/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1520Brightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1520/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1520/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Sed1520Contrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1520/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1520/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1520Contrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1520/#/delaymult'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1520/#/delaymult'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Sed1520Delaymult) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/delaymult", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1520/#/delaymult'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1520/#/delaymult'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1520Delaymult) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/delaymult", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1520/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1520/#/file'. - */// -static inline const char * ELEKTRA_GET (Sed1520File) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1520/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1520/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1520File) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1520/#/haveinverter'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1520/#/haveinverter'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Sed1520Haveinverter) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/haveinverter", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1520/#/haveinverter'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1520/#/haveinverter'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1520Haveinverter) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/haveinverter", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1520/#/interfacetype'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1520/#/interfacetype'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Sed1520Interfacetype) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/interfacetype", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1520/#/interfacetype'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1520/#/interfacetype'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1520Interfacetype) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/interfacetype", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1520/#/invertedmapping'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1520/#/invertedmapping'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Sed1520Invertedmapping) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/invertedmapping", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1520/#/invertedmapping'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1520/#/invertedmapping'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1520Invertedmapping) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/invertedmapping", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1520/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1520/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Sed1520Offbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1520/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1520/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1520Offbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1520/#/port'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1520/#/port'. - */// -static inline const char * ELEKTRA_GET (Sed1520Port) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1520/#/port'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1520/#/port'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1520Port) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1520/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1520/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Sed1520Reboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1520/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1520/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1520Reboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sed1520/#/usehardreset'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sed1520/#/usehardreset'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Sed1520Usehardreset) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/usehardreset", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sed1520/#/usehardreset'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sed1520/#/usehardreset'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sed1520Usehardreset) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sed1520/%*.*s%lld/usehardreset", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'serialpos/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Serialpos) (Elektra * elektra, SerialPOSDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructSerialPOSDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'serialpos/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialpos/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Serialpos) (Elektra * elektra, const SerialPOSDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructSerialPOSDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'serialpos/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Serialpos) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "serialpos"); -} - - - -/** - * Get the value of 'serialpos/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialpos/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SerialposBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialpos/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialpos/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialposBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialpos/#/cellsize'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialpos/#/cellsize'. - */// -static inline const char * ELEKTRA_GET (SerialposCellsize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/cellsize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialpos/#/cellsize'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialpos/#/cellsize'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialposCellsize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/cellsize", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialpos/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialpos/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SerialposContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialpos/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialpos/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialposContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialpos/#/custom_chars'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialpos/#/custom_chars'. - */// -static inline kdb_unsigned_long_t ELEKTRA_GET (SerialposCustomChars) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/custom_chars", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialpos/#/custom_chars'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialpos/#/custom_chars'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialposCustomChars) (Elektra * elektra, - kdb_unsigned_long_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/custom_chars", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialpos/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialpos/#/device'. - */// -static inline const char * ELEKTRA_GET (SerialposDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialpos/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialpos/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialposDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialpos/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialpos/#/file'. - */// -static inline const char * ELEKTRA_GET (SerialposFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialpos/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialpos/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialposFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialpos/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialpos/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SerialposOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialpos/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialpos/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialposOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialpos/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialpos/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (SerialposReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialpos/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialpos/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialposReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialpos/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialpos/#/size'. - */// -static inline const char * ELEKTRA_GET (SerialposSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialpos/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialpos/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialposSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialpos/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialpos/#/speed'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SerialposSpeed) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialpos/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialpos/#/speed'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialposSpeed) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialpos/#/type'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialpos/#/type'. - */// -static inline ElektraEnumSerialposType ELEKTRA_GET (SerialposType) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/type", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ElektraEnumSerialposType result = ELEKTRA_GET (EnumSerialposType) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialpos/#/type'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialpos/#/type'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialposType) (Elektra * elektra, - ElektraEnumSerialposType value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialpos/%*.*s%lld/type", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (EnumSerialposType) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'serialvfd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Serialvfd) (Elektra * elektra, SerialVFDDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructSerialVFDDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'serialvfd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialvfd/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Serialvfd) (Elektra * elektra, const SerialVFDDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructSerialVFDDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'serialvfd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Serialvfd) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "serialvfd"); -} - - - -/** - * Get the value of 'serialvfd/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialvfd/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SerialvfdBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialvfd/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialvfd/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialvfdBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialvfd/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialvfd/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SerialvfdContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialvfd/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialvfd/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialvfdContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialvfd/#/custom-characters'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialvfd/#/custom-characters'. - */// -static inline kdb_unsigned_long_t ELEKTRA_GET (SerialvfdCustomCharacters) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/custom-characters", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_long_t result = ELEKTRA_GET (UnsignedLong) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialvfd/#/custom-characters'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialvfd/#/custom-characters'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialvfdCustomCharacters) (Elektra * elektra, - kdb_unsigned_long_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/custom-characters", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedLong) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialvfd/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialvfd/#/device'. - */// -static inline const char * ELEKTRA_GET (SerialvfdDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialvfd/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialvfd/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialvfdDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialvfd/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialvfd/#/file'. - */// -static inline const char * ELEKTRA_GET (SerialvfdFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialvfd/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialvfd/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialvfdFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialvfd/#/iso_8859_1'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialvfd/#/iso_8859_1'. - */// -static inline kdb_boolean_t ELEKTRA_GET (SerialvfdIso88591) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/iso_8859_1", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialvfd/#/iso_8859_1'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialvfd/#/iso_8859_1'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialvfdIso88591) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/iso_8859_1", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialvfd/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialvfd/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SerialvfdOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialvfd/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialvfd/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialvfdOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialvfd/#/port'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialvfd/#/port'. - */// -static inline const char * ELEKTRA_GET (SerialvfdPort) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialvfd/#/port'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialvfd/#/port'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialvfdPort) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialvfd/#/portwait'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialvfd/#/portwait'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SerialvfdPortwait) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/portwait", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialvfd/#/portwait'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialvfd/#/portwait'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialvfdPortwait) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/portwait", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialvfd/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialvfd/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (SerialvfdReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialvfd/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialvfd/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialvfdReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialvfd/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialvfd/#/size'. - */// -static inline const char * ELEKTRA_GET (SerialvfdSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialvfd/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialvfd/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialvfdSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialvfd/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialvfd/#/speed'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SerialvfdSpeed) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialvfd/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialvfd/#/speed'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialvfdSpeed) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialvfd/#/type'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialvfd/#/type'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SerialvfdType) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/type", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialvfd/#/type'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialvfd/#/type'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialvfdType) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/type", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'serialvfd/#/use_parallel'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'serialvfd/#/use_parallel'. - */// -static inline kdb_boolean_t ELEKTRA_GET (SerialvfdUseParallel) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/use_parallel", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'serialvfd/#/use_parallel'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'serialvfd/#/use_parallel'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SerialvfdUseParallel) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("serialvfd/%*.*s%lld/use_parallel", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'server/autorotate'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/autorotate'. - */// -static inline kdb_boolean_t ELEKTRA_GET (ServerAutorotate) (Elektra * elektra ) -{ - - return ELEKTRA_GET (Boolean) (elektra, "server/autorotate"); -} - - -/** - * Set the value of 'server/autorotate'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/autorotate'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerAutorotate) (Elektra * elektra, - kdb_boolean_t value, ElektraError ** error) -{ - - ELEKTRA_SET (Boolean) (elektra, "server/autorotate", value, error); -} - - - - -/** - * Get the value of 'server/backlight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/backlight'. - */// -static inline ElektraEnumServerBacklight ELEKTRA_GET (ServerBacklight) (Elektra * elektra ) -{ - - return ELEKTRA_GET (EnumServerBacklight) (elektra, "server/backlight"); -} - - -/** - * Set the value of 'server/backlight'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/backlight'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerBacklight) (Elektra * elektra, - ElektraEnumServerBacklight value, ElektraError ** error) -{ - - ELEKTRA_SET (EnumServerBacklight) (elektra, "server/backlight", value, error); -} - - - - -/** - * Get the value of 'server/bind'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/bind'. - */// -static inline const char * ELEKTRA_GET (ServerBind) (Elektra * elektra ) -{ - - return ELEKTRA_GET (String) (elektra, "server/bind"); -} - - -/** - * Set the value of 'server/bind'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/bind'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerBind) (Elektra * elektra, - const char * value, ElektraError ** error) -{ - - ELEKTRA_SET (String) (elektra, "server/bind", value, error); -} - - - - -/** - * Get the value of 'server/driverpath'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/driverpath'. - */// -static inline const char * ELEKTRA_GET (ServerDriverpath) (Elektra * elektra ) -{ - - return ELEKTRA_GET (String) (elektra, "server/driverpath"); -} - - -/** - * Set the value of 'server/driverpath'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/driverpath'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerDriverpath) (Elektra * elektra, - const char * value, ElektraError ** error) -{ - - ELEKTRA_SET (String) (elektra, "server/driverpath", value, error); -} - - - - -/** - * Get the value of 'server/drivers/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'server/drivers/#'. - */// -static inline const char * ELEKTRA_GET (ServerDrivers) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("server/drivers/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'server/drivers/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/drivers/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerDrivers) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("server/drivers/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -/** - * Get the size of the array 'server/drivers/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (ServerDrivers) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "server/drivers"); -} - - - -/** - * Get the value of 'server/foreground'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/foreground'. - */// -static inline kdb_boolean_t ELEKTRA_GET (ServerForeground) (Elektra * elektra ) -{ - - return ELEKTRA_GET (Boolean) (elektra, "server/foreground"); -} - - -/** - * Set the value of 'server/foreground'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/foreground'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerForeground) (Elektra * elektra, - kdb_boolean_t value, ElektraError ** error) -{ - - ELEKTRA_SET (Boolean) (elektra, "server/foreground", value, error); -} - - - - -/** - * Get the value of 'server/frameinterval'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/frameinterval'. - */// -static inline kdb_unsigned_long_t ELEKTRA_GET (ServerFrameinterval) (Elektra * elektra ) -{ - - return ELEKTRA_GET (UnsignedLong) (elektra, "server/frameinterval"); -} - - -/** - * Set the value of 'server/frameinterval'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/frameinterval'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerFrameinterval) (Elektra * elektra, - kdb_unsigned_long_t value, ElektraError ** error) -{ - - ELEKTRA_SET (UnsignedLong) (elektra, "server/frameinterval", value, error); -} - - - - -/** - * Get the value of 'server/goodbye/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'server/goodbye/#'. - */// -static inline const char * ELEKTRA_GET (ServerGoodbye) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("server/goodbye/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'server/goodbye/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/goodbye/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerGoodbye) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("server/goodbye/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -/** - * Get the size of the array 'server/goodbye/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (ServerGoodbye) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "server/goodbye"); -} - - - -/** - * Get the value of 'server/heartbeat'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/heartbeat'. - */// -static inline ElektraEnumServerHeartbeat ELEKTRA_GET (ServerHeartbeat) (Elektra * elektra ) -{ - - return ELEKTRA_GET (EnumServerHeartbeat) (elektra, "server/heartbeat"); -} - - -/** - * Set the value of 'server/heartbeat'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/heartbeat'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerHeartbeat) (Elektra * elektra, - ElektraEnumServerHeartbeat value, ElektraError ** error) -{ - - ELEKTRA_SET (EnumServerHeartbeat) (elektra, "server/heartbeat", value, error); -} - - - - -/** - * Get the value of 'server/hello/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'server/hello/#'. - */// -static inline const char * ELEKTRA_GET (ServerHello) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("server/hello/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'server/hello/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/hello/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerHello) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("server/hello/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -/** - * Get the size of the array 'server/hello/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (ServerHello) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "server/hello"); -} - - - -/** - * Get the value of 'server/nextscreenkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/nextscreenkey'. - */// -static inline const char * ELEKTRA_GET (ServerNextscreenkey) (Elektra * elektra ) -{ - - return ELEKTRA_GET (String) (elektra, "server/nextscreenkey"); -} - - -/** - * Set the value of 'server/nextscreenkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/nextscreenkey'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerNextscreenkey) (Elektra * elektra, - const char * value, ElektraError ** error) -{ - - ELEKTRA_SET (String) (elektra, "server/nextscreenkey", value, error); -} - - - - -/** - * Get the value of 'server/port'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/port'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (ServerPort) (Elektra * elektra ) -{ - - return ELEKTRA_GET (UnsignedShort) (elektra, "server/port"); -} - - -/** - * Set the value of 'server/port'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/port'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerPort) (Elektra * elektra, - kdb_unsigned_short_t value, ElektraError ** error) -{ - - ELEKTRA_SET (UnsignedShort) (elektra, "server/port", value, error); -} - - - - -/** - * Get the value of 'server/prevscreenkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/prevscreenkey'. - */// -static inline const char * ELEKTRA_GET (ServerPrevscreenkey) (Elektra * elektra ) -{ - - return ELEKTRA_GET (String) (elektra, "server/prevscreenkey"); -} - - -/** - * Set the value of 'server/prevscreenkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/prevscreenkey'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerPrevscreenkey) (Elektra * elektra, - const char * value, ElektraError ** error) -{ - - ELEKTRA_SET (String) (elektra, "server/prevscreenkey", value, error); -} - - - - -/** - * Get the value of 'server/reportlevel'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/reportlevel'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (ServerReportlevel) (Elektra * elektra ) -{ - - return ELEKTRA_GET (UnsignedShort) (elektra, "server/reportlevel"); -} - - -/** - * Set the value of 'server/reportlevel'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/reportlevel'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerReportlevel) (Elektra * elektra, - kdb_unsigned_short_t value, ElektraError ** error) -{ - - ELEKTRA_SET (UnsignedShort) (elektra, "server/reportlevel", value, error); -} - - - - -/** - * Get the value of 'server/reporttosyslog'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/reporttosyslog'. - */// -static inline kdb_boolean_t ELEKTRA_GET (ServerReporttosyslog) (Elektra * elektra ) -{ - - return ELEKTRA_GET (Boolean) (elektra, "server/reporttosyslog"); -} - - -/** - * Set the value of 'server/reporttosyslog'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/reporttosyslog'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerReporttosyslog) (Elektra * elektra, - kdb_boolean_t value, ElektraError ** error) -{ - - ELEKTRA_SET (Boolean) (elektra, "server/reporttosyslog", value, error); -} - - - - -/** - * Get the value of 'server/scrolldownkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/scrolldownkey'. - */// -static inline const char * ELEKTRA_GET (ServerScrolldownkey) (Elektra * elektra ) -{ - - return ELEKTRA_GET (String) (elektra, "server/scrolldownkey"); -} - - -/** - * Set the value of 'server/scrolldownkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/scrolldownkey'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerScrolldownkey) (Elektra * elektra, - const char * value, ElektraError ** error) -{ - - ELEKTRA_SET (String) (elektra, "server/scrolldownkey", value, error); -} - - - - -/** - * Get the value of 'server/scrollupkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/scrollupkey'. - */// -static inline const char * ELEKTRA_GET (ServerScrollupkey) (Elektra * elektra ) -{ - - return ELEKTRA_GET (String) (elektra, "server/scrollupkey"); -} - - -/** - * Set the value of 'server/scrollupkey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/scrollupkey'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerScrollupkey) (Elektra * elektra, - const char * value, ElektraError ** error) -{ - - ELEKTRA_SET (String) (elektra, "server/scrollupkey", value, error); -} - - - - -/** - * Get the value of 'server/serverscreen'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/serverscreen'. - */// -static inline ElektraEnumServerServerscreen ELEKTRA_GET (ServerServerscreen) (Elektra * elektra ) -{ - - return ELEKTRA_GET (EnumServerServerscreen) (elektra, "server/serverscreen"); -} - - -/** - * Set the value of 'server/serverscreen'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/serverscreen'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerServerscreen) (Elektra * elektra, - ElektraEnumServerServerscreen value, ElektraError ** error) -{ - - ELEKTRA_SET (EnumServerServerscreen) (elektra, "server/serverscreen", value, error); -} - - - - -/** - * Get the value of 'server/titlespeed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/titlespeed'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (ServerTitlespeed) (Elektra * elektra ) -{ - - return ELEKTRA_GET (UnsignedShort) (elektra, "server/titlespeed"); -} - - -/** - * Set the value of 'server/titlespeed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/titlespeed'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerTitlespeed) (Elektra * elektra, - kdb_unsigned_short_t value, ElektraError ** error) -{ - - ELEKTRA_SET (UnsignedShort) (elektra, "server/titlespeed", value, error); -} - - - - -/** - * Get the value of 'server/togglerotatekey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/togglerotatekey'. - */// -static inline const char * ELEKTRA_GET (ServerTogglerotatekey) (Elektra * elektra ) -{ - - return ELEKTRA_GET (String) (elektra, "server/togglerotatekey"); -} - - -/** - * Set the value of 'server/togglerotatekey'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/togglerotatekey'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerTogglerotatekey) (Elektra * elektra, - const char * value, ElektraError ** error) -{ - - ELEKTRA_SET (String) (elektra, "server/togglerotatekey", value, error); -} - - - - -/** - * Get the value of 'server/user'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/user'. - */// -static inline const char * ELEKTRA_GET (ServerUser) (Elektra * elektra ) -{ - - return ELEKTRA_GET (String) (elektra, "server/user"); -} - - -/** - * Set the value of 'server/user'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/user'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerUser) (Elektra * elektra, - const char * value, ElektraError ** error) -{ - - ELEKTRA_SET (String) (elektra, "server/user", value, error); -} - - - - -/** - * Get the value of 'server/waittime'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - * - * @return the value of 'server/waittime'. - */// -static inline kdb_float_t ELEKTRA_GET (ServerWaittime) (Elektra * elektra ) -{ - - return ELEKTRA_GET (Float) (elektra, "server/waittime"); -} - - -/** - * Set the value of 'server/waittime'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'server/waittime'. - - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (ServerWaittime) (Elektra * elektra, - kdb_float_t value, ElektraError ** error) -{ - - ELEKTRA_SET (Float) (elektra, "server/waittime", value, error); -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'sli/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Sli) (Elektra * elektra, SliDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("sli/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructSliDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'sli/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sli/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sli) (Elektra * elektra, const SliDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sli/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructSliDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'sli/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Sli) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "sli"); -} - - - -/** - * Get the value of 'sli/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sli/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SliBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sli/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sli/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sli/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SliBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sli/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sli/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sli/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SliContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sli/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sli/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sli/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SliContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sli/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sli/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sli/#/device'. - */// -static inline const char * ELEKTRA_GET (SliDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sli/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sli/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sli/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SliDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sli/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sli/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sli/#/file'. - */// -static inline const char * ELEKTRA_GET (SliFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sli/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sli/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sli/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SliFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sli/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sli/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sli/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SliOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sli/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sli/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sli/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SliOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sli/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sli/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sli/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (SliReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sli/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sli/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sli/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SliReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sli/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sli/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sli/#/speed'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SliSpeed) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sli/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sli/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sli/#/speed'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SliSpeed) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sli/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'stv5730/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Stv5730) (Elektra * elektra, Stv5730DriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("stv5730/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructStv5730DriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'stv5730/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'stv5730/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Stv5730) (Elektra * elektra, const Stv5730DriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("stv5730/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructStv5730DriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'stv5730/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Stv5730) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "stv5730"); -} - - - -/** - * Get the value of 'stv5730/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'stv5730/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Stv5730Brightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("stv5730/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'stv5730/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'stv5730/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Stv5730Brightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("stv5730/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'stv5730/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'stv5730/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Stv5730Contrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("stv5730/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'stv5730/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'stv5730/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Stv5730Contrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("stv5730/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'stv5730/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'stv5730/#/file'. - */// -static inline const char * ELEKTRA_GET (Stv5730File) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("stv5730/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'stv5730/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'stv5730/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Stv5730File) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("stv5730/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'stv5730/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'stv5730/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Stv5730Offbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("stv5730/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'stv5730/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'stv5730/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Stv5730Offbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("stv5730/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'stv5730/#/port'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'stv5730/#/port'. - */// -static inline const char * ELEKTRA_GET (Stv5730Port) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("stv5730/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'stv5730/#/port'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'stv5730/#/port'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Stv5730Port) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("stv5730/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'stv5730/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'stv5730/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Stv5730Reboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("stv5730/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'stv5730/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'stv5730/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Stv5730Reboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("stv5730/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'sureelec/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Sureelec) (Elektra * elektra, SureElecDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructSureElecDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'sureelec/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sureelec/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Sureelec) (Elektra * elektra, const SureElecDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructSureElecDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'sureelec/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Sureelec) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "sureelec"); -} - - - -/** - * Get the value of 'sureelec/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sureelec/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SureelecBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sureelec/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sureelec/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SureelecBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sureelec/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sureelec/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SureelecContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sureelec/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sureelec/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SureelecContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sureelec/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sureelec/#/device'. - */// -static inline const char * ELEKTRA_GET (SureelecDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sureelec/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sureelec/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SureelecDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sureelec/#/edition'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sureelec/#/edition'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SureelecEdition) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld/edition", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sureelec/#/edition'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sureelec/#/edition'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SureelecEdition) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld/edition", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sureelec/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sureelec/#/file'. - */// -static inline const char * ELEKTRA_GET (SureelecFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sureelec/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sureelec/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SureelecFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sureelec/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sureelec/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SureelecOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sureelec/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sureelec/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SureelecOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sureelec/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sureelec/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (SureelecReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sureelec/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sureelec/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SureelecReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'sureelec/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'sureelec/#/size'. - */// -static inline const char * ELEKTRA_GET (SureelecSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'sureelec/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'sureelec/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SureelecSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("sureelec/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'svga/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Svga) (Elektra * elektra, SvgaDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("svga/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructSvgaDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'svga/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'svga/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Svga) (Elektra * elektra, const SvgaDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("svga/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructSvgaDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'svga/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Svga) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "svga"); -} - - - -/** - * Get the value of 'svga/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'svga/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SvgaBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("svga/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'svga/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'svga/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SvgaBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("svga/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'svga/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'svga/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SvgaContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("svga/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'svga/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'svga/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SvgaContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("svga/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'svga/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'svga/#/file'. - */// -static inline const char * ELEKTRA_GET (SvgaFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("svga/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'svga/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'svga/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SvgaFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("svga/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'svga/#/mode'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'svga/#/mode'. - */// -static inline const char * ELEKTRA_GET (SvgaMode) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("svga/%*.*s%lld/mode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'svga/#/mode'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'svga/#/mode'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SvgaMode) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("svga/%*.*s%lld/mode", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'svga/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'svga/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (SvgaOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("svga/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'svga/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'svga/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SvgaOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("svga/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'svga/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'svga/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (SvgaReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("svga/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'svga/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'svga/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SvgaReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("svga/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'svga/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'svga/#/size'. - */// -static inline const char * ELEKTRA_GET (SvgaSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("svga/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'svga/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'svga/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (SvgaSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("svga/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 't6963/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (T6963) (Elektra * elektra, T6963DriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructT6963DriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 't6963/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 't6963/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (T6963) (Elektra * elektra, const T6963DriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructT6963DriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 't6963/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (T6963) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "t6963"); -} - - - -/** - * Get the value of 't6963/#/bidirectional'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 't6963/#/bidirectional'. - */// -static inline kdb_boolean_t ELEKTRA_GET (T6963Bidirectional) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/bidirectional", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 't6963/#/bidirectional'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 't6963/#/bidirectional'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (T6963Bidirectional) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/bidirectional", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 't6963/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 't6963/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (T6963Brightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 't6963/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 't6963/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (T6963Brightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 't6963/#/cleargraphic'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 't6963/#/cleargraphic'. - */// -static inline kdb_boolean_t ELEKTRA_GET (T6963Cleargraphic) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/cleargraphic", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 't6963/#/cleargraphic'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 't6963/#/cleargraphic'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (T6963Cleargraphic) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/cleargraphic", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 't6963/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 't6963/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (T6963Contrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 't6963/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 't6963/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (T6963Contrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 't6963/#/delaybus'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 't6963/#/delaybus'. - */// -static inline kdb_boolean_t ELEKTRA_GET (T6963Delaybus) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/delaybus", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 't6963/#/delaybus'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 't6963/#/delaybus'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (T6963Delaybus) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/delaybus", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 't6963/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 't6963/#/file'. - */// -static inline const char * ELEKTRA_GET (T6963File) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 't6963/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 't6963/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (T6963File) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 't6963/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 't6963/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (T6963Offbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 't6963/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 't6963/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (T6963Offbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 't6963/#/port'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 't6963/#/port'. - */// -static inline const char * ELEKTRA_GET (T6963Port) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 't6963/#/port'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 't6963/#/port'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (T6963Port) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/port", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 't6963/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 't6963/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (T6963Reboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 't6963/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 't6963/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (T6963Reboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 't6963/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 't6963/#/size'. - */// -static inline const char * ELEKTRA_GET (T6963Size) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 't6963/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 't6963/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (T6963Size) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("t6963/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'text/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Text) (Elektra * elektra, TextDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("text/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructTextDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'text/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'text/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Text) (Elektra * elektra, const TextDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("text/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructTextDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'text/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Text) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "text"); -} - - - -/** - * Get the value of 'text/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'text/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (TextBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("text/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'text/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'text/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (TextBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("text/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'text/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'text/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (TextContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("text/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'text/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'text/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (TextContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("text/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'text/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'text/#/file'. - */// -static inline const char * ELEKTRA_GET (TextFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("text/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'text/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'text/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (TextFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("text/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'text/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'text/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (TextOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("text/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'text/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'text/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (TextOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("text/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'text/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'text/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (TextReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("text/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'text/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'text/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (TextReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("text/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'text/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'text/#/size'. - */// -static inline const char * ELEKTRA_GET (TextSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("text/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'text/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'text/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (TextSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("text/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'tyan/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Tyan) (Elektra * elektra, TyanDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructTyanDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'tyan/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'tyan/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Tyan) (Elektra * elektra, const TyanDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructTyanDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'tyan/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Tyan) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "tyan"); -} - - - -/** - * Get the value of 'tyan/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'tyan/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (TyanBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'tyan/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'tyan/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (TyanBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'tyan/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'tyan/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (TyanContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'tyan/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'tyan/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (TyanContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'tyan/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'tyan/#/device'. - */// -static inline const char * ELEKTRA_GET (TyanDevice) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'tyan/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'tyan/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (TyanDevice) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'tyan/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'tyan/#/file'. - */// -static inline const char * ELEKTRA_GET (TyanFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'tyan/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'tyan/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (TyanFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'tyan/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'tyan/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (TyanOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'tyan/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'tyan/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (TyanOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'tyan/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'tyan/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (TyanReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'tyan/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'tyan/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (TyanReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'tyan/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'tyan/#/size'. - */// -static inline const char * ELEKTRA_GET (TyanSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'tyan/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'tyan/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (TyanSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'tyan/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'tyan/#/speed'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (TyanSpeed) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'tyan/#/speed'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'tyan/#/speed'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (TyanSpeed) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("tyan/%*.*s%lld/speed", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'ula200/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Ula200) (Elektra * elektra, Ula200DriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructUla200DriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'ula200/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ula200/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ula200) (Elektra * elektra, const Ula200DriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructUla200DriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'ula200/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Ula200) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "ula200"); -} - - - -/** - * Get the value of 'ula200/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ula200/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Ula200Brightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ula200/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ula200/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ula200Brightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ula200/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ula200/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Ula200Contrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ula200/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ula200/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ula200Contrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ula200/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ula200/#/file'. - */// -static inline const char * ELEKTRA_GET (Ula200File) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ula200/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ula200/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ula200File) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ula200/#/keymap_a'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ula200/#/keymap_a'. - */// -static inline const char * ELEKTRA_GET (Ula200KeymapA) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/keymap_a", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ula200/#/keymap_a'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ula200/#/keymap_a'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ula200KeymapA) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/keymap_a", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ula200/#/keymap_b'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ula200/#/keymap_b'. - */// -static inline const char * ELEKTRA_GET (Ula200KeymapB) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/keymap_b", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ula200/#/keymap_b'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ula200/#/keymap_b'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ula200KeymapB) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/keymap_b", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ula200/#/keymap_c'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ula200/#/keymap_c'. - */// -static inline const char * ELEKTRA_GET (Ula200KeymapC) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/keymap_c", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ula200/#/keymap_c'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ula200/#/keymap_c'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ula200KeymapC) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/keymap_c", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ula200/#/keymap_d'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ula200/#/keymap_d'. - */// -static inline const char * ELEKTRA_GET (Ula200KeymapD) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/keymap_d", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ula200/#/keymap_d'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ula200/#/keymap_d'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ula200KeymapD) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/keymap_d", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ula200/#/keymap_e'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ula200/#/keymap_e'. - */// -static inline const char * ELEKTRA_GET (Ula200KeymapE) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/keymap_e", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ula200/#/keymap_e'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ula200/#/keymap_e'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ula200KeymapE) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/keymap_e", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ula200/#/keymap_f'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ula200/#/keymap_f'. - */// -static inline const char * ELEKTRA_GET (Ula200KeymapF) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/keymap_f", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ula200/#/keymap_f'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ula200/#/keymap_f'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ula200KeymapF) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/keymap_f", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ula200/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ula200/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Ula200Offbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ula200/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ula200/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ula200Offbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ula200/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ula200/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Ula200Reboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ula200/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ula200/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ula200Reboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'ula200/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'ula200/#/size'. - */// -static inline const char * ELEKTRA_GET (Ula200Size) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'ula200/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'ula200/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Ula200Size) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("ula200/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'vlsys_m428/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (VlsysM428) (Elektra * elektra, Vlsys_m428DriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("vlsys_m428/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructVlsys_m428DriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'vlsys_m428/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'vlsys_m428/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (VlsysM428) (Elektra * elektra, const Vlsys_m428DriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("vlsys_m428/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructVlsys_m428DriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'vlsys_m428/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (VlsysM428) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "vlsys_m428"); -} - - - -/** - * Get the value of 'vlsys_m428/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'vlsys_m428/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (VlsysM428Brightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("vlsys_m428/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'vlsys_m428/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'vlsys_m428/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (VlsysM428Brightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("vlsys_m428/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'vlsys_m428/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'vlsys_m428/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (VlsysM428Contrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("vlsys_m428/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'vlsys_m428/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'vlsys_m428/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (VlsysM428Contrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("vlsys_m428/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'vlsys_m428/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'vlsys_m428/#/device'. - */// -static inline const char * ELEKTRA_GET (VlsysM428Device) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("vlsys_m428/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'vlsys_m428/#/device'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'vlsys_m428/#/device'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (VlsysM428Device) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("vlsys_m428/%*.*s%lld/device", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'vlsys_m428/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'vlsys_m428/#/file'. - */// -static inline const char * ELEKTRA_GET (VlsysM428File) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("vlsys_m428/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'vlsys_m428/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'vlsys_m428/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (VlsysM428File) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("vlsys_m428/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'vlsys_m428/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'vlsys_m428/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (VlsysM428Offbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("vlsys_m428/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'vlsys_m428/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'vlsys_m428/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (VlsysM428Offbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("vlsys_m428/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'vlsys_m428/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'vlsys_m428/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (VlsysM428Reboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("vlsys_m428/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'vlsys_m428/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'vlsys_m428/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (VlsysM428Reboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("vlsys_m428/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'xosd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Xosd) (Elektra * elektra, XosdDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructXosdDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'xosd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'xosd/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Xosd) (Elektra * elektra, const XosdDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructXosdDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'xosd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Xosd) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "xosd"); -} - - - -/** - * Get the value of 'xosd/#/Font'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'xosd/#/Font'. - */// -static inline const char * ELEKTRA_GET (XosdFont) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld/Font", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'xosd/#/Font'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'xosd/#/Font'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (XosdFont) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld/Font", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'xosd/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'xosd/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (XosdBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'xosd/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'xosd/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (XosdBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'xosd/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'xosd/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (XosdContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'xosd/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'xosd/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (XosdContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'xosd/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'xosd/#/file'. - */// -static inline const char * ELEKTRA_GET (XosdFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'xosd/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'xosd/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (XosdFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'xosd/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'xosd/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (XosdOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'xosd/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'xosd/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (XosdOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'xosd/#/offset'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'xosd/#/offset'. - */// -static inline const char * ELEKTRA_GET (XosdOffset) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld/offset", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'xosd/#/offset'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'xosd/#/offset'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (XosdOffset) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld/offset", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'xosd/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'xosd/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (XosdReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'xosd/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'xosd/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (XosdReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'xosd/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'xosd/#/size'. - */// -static inline const char * ELEKTRA_GET (XosdSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'xosd/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'xosd/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (XosdSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("xosd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - -// clang-format off - -// clang-format on - - - -/** - * Get the value of 'yard2lcd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param result The value will be stored in the referenced variable. - * @param index1 Replaces occurence no. 1 of # in the keyname. - */// -static inline void ELEKTRA_GET (Yard2lcd) (Elektra * elektra, Yard2LCDDriverConfig *result , - kdb_long_long_t index1 - ) -{ - - - char * name = elektraFormat ("yard2lcd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_GET (StructYard2LCDDriverConfig) (elektra, name, result); - elektraFree (name); - -} - - -/** - * Set the value of 'yard2lcd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'yard2lcd/#'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Yard2lcd) (Elektra * elektra, const Yard2LCDDriverConfig * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("yard2lcd/%*.*s%lld", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (StructYard2LCDDriverConfig) (elektra, name, value, error); - elektraFree (name); - -} - - - -/** - * Get the size of the array 'yard2lcd/#'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - - */// -static inline kdb_long_long_t ELEKTRA_SIZE (Yard2lcd) (Elektra * elektra ) -{ - - return elektraArraySize (elektra, "yard2lcd"); -} - - - -/** - * Get the value of 'yard2lcd/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'yard2lcd/#/brightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Yard2lcdBrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("yard2lcd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'yard2lcd/#/brightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'yard2lcd/#/brightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Yard2lcdBrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("yard2lcd/%*.*s%lld/brightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'yard2lcd/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'yard2lcd/#/contrast'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Yard2lcdContrast) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("yard2lcd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'yard2lcd/#/contrast'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'yard2lcd/#/contrast'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Yard2lcdContrast) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("yard2lcd/%*.*s%lld/contrast", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'yard2lcd/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'yard2lcd/#/file'. - */// -static inline const char * ELEKTRA_GET (Yard2lcdFile) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("yard2lcd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'yard2lcd/#/file'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'yard2lcd/#/file'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Yard2lcdFile) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("yard2lcd/%*.*s%lld/file", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'yard2lcd/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'yard2lcd/#/offbrightness'. - */// -static inline kdb_unsigned_short_t ELEKTRA_GET (Yard2lcdOffbrightness) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("yard2lcd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_unsigned_short_t result = ELEKTRA_GET (UnsignedShort) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'yard2lcd/#/offbrightness'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'yard2lcd/#/offbrightness'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Yard2lcdOffbrightness) (Elektra * elektra, - kdb_unsigned_short_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("yard2lcd/%*.*s%lld/offbrightness", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (UnsignedShort) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'yard2lcd/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'yard2lcd/#/reboot'. - */// -static inline kdb_boolean_t ELEKTRA_GET (Yard2lcdReboot) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("yard2lcd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - kdb_boolean_t result = ELEKTRA_GET (Boolean) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'yard2lcd/#/reboot'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'yard2lcd/#/reboot'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Yard2lcdReboot) (Elektra * elektra, - kdb_boolean_t value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("yard2lcd/%*.*s%lld/reboot", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (Boolean) (elektra, name, value, error); - elektraFree (name); - -} - - - - -/** - * Get the value of 'yard2lcd/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param index1 Replaces occurence no. 1 of # in the keyname. - * - * @return the value of 'yard2lcd/#/size'. - */// -static inline const char * ELEKTRA_GET (Yard2lcdSize) (Elektra * elektra , - kdb_long_long_t index1 ) -{ - - - char * name = elektraFormat ("yard2lcd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - const char * result = ELEKTRA_GET (String) (elektra, name); - elektraFree (name); - return result; - -} - - -/** - * Set the value of 'yard2lcd/#/size'. - * - * @param elektra Instance of Elektra. Create with loadConfiguration(). - * @param value The value of 'yard2lcd/#/size'. - * @param index1 Replaces occurence no. 1 of # in the keyname. - * @param error Pass a reference to an ElektraError pointer. - * Will only be set in case of an error. - */// -static inline void ELEKTRA_SET (Yard2lcdSize) (Elektra * elektra, - const char * value, - kdb_long_long_t index1, ElektraError ** error) -{ - - - char * name = elektraFormat ("yard2lcd/%*.*s%lld/size", elektra_len (index1), elektra_len (index1), "#___________________", (long long) index1 ); - ELEKTRA_SET (String) (elektra, name, value, error); - elektraFree (name); - -} - - -#undef elektra_len19 -#undef elektra_len18 -#undef elektra_len17 -#undef elektra_len16 -#undef elektra_len15 -#undef elektra_len14 -#undef elektra_len13 -#undef elektra_len12 -#undef elektra_len11 -#undef elektra_len10 -#undef elektra_len09 -#undef elektra_len08 -#undef elektra_len07 -#undef elektra_len06 -#undef elektra_len05 -#undef elektra_len04 -#undef elektra_len03 -#undef elektra_len02 -#undef elektra_len01 -#undef elektra_len00 -#undef elektra_len - - -int loadConfiguration (Elektra ** elektra, ElektraError ** error); -void printHelpMessage (const char * usage, const char * prefix); -void doSpecloadCheck (int argc, const char ** argv); - - -/** - * @param elektra The elektra instance initialized with loadConfiguration(). - * @param tag The tag to look up. - * - * @return The value stored at the given key. - */// -#define elektraGet(elektra, tag) ELEKTRA_GET (tag) (elektra) - - -/** - * @param elektra The elektra instance initialized with loadConfiguration(). - * @param tag The tag to look up. - * @param ... Variable arguments depending on the given tag. - * - * @return The value stored at the given key. - */// -#define elektraGetV(elektra, tag, ...) ELEKTRA_GET (tag) (elektra, __VA_ARGS__) - - -/** - * @param elektra The elektra instance initialized with loadConfiguration(). - * @param tag The tag to look up. - * @param result Points to the struct into which results will be stored. - */// -#define elektraGet2(elektra, result, tag) ELEKTRA_GET (tag) (elektra, result) - - -/** - * @param elektra The elektra instance initialized with loadConfiguration(). - * @param result Points to the struct into which results will be stored. - * @param tag The tag to look up. - * @param ... Variable arguments depending on the given tag. - */// -#define elektraGet2V(elektra, result, tag, ...) ELEKTRA_GET (tag) (elektra, result, __VA_ARGS__) - - -/** - * @param elektra The elektra instance initialized with the loadConfiguration(). - * @param tag The tag to write to. - * @param value The new value. - * @param error Pass a reference to an ElektraError pointer. - */// -#define elektraSet(elektra, tag, value, error) ELEKTRA_SET (tag) (elektra, value, error) - - -/** - * @param elektra The elektra instance initialized with the loadConfiguration(). - * @param tag The tag to write to. - * @param value The new value. - * @param error Pass a reference to an ElektraError pointer. - * @param ... Variable arguments depending on the given tag. - */// -#define elektraSetV(elektra, tag, value, error, ...) ELEKTRA_SET (tag) (elektra, value, __VA_ARGS__, error) - - -/** - * @param elektra The elektra instance initialized with loadConfiguration(). - * @param tag The array tag to look up. - * - * @return The size of the array below the given key. - */// -#define elektraSize(elektra, tag) ELEKTRA_SIZE (tag) (elektra) - - -/** - * @param elektra The elektra instance initialized with loadConfiguration(). - * @param tag The array tag to look up. - * @param ... Variable arguments depending on the given tag. - * - * @return The size of the array below the given key. - */// -#define elektraSizeV(elektra, tag, ...) ELEKTRA_SIZE (tag) (elektra, __VA_ARGS__) - - -/** - * @param elektra The elektra instance initialized with loadConfiguration(). - * @param contextTag The context tag for the contextual value you want to set. - * @param value The actual value you want to set. - */// -#define elektraContextSet(elektra, contextTag, value) ELEKTRA_CONTEXT_SET (contextTag) (elektra, value) - - -/** - * @param elektra The elektra instance initialized with loadConfiguration(). - * @param contextTag The context tag for the contextual value you want to set. - * @param value The actual value you want to set. - * @param ... Variable arguments depending on the given tag. - */// -#define elektraContextSetV(elektra, contextTag, value, ...) ELEKTRA_CONTEXT_SET (contextTag) (elektra, value, __VA_ARGS__) - -#ifdef __cplusplus -} -#endif - -#endif // ELEKTRAGEN_H From b7d1458d037953ce03e008d4edf12df1745c7cf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Mon, 20 May 2019 18:49:41 +0200 Subject: [PATCH 15/72] lcdexec: elektrify with codegen --- clients/lcdexec/Makefile.am | 10 +- clients/lcdexec/lcdexec.c | 600 ++++++------ clients/lcdexec/menu.c | 866 +++++++----------- clients/lcdexec/menu.h | 206 +++-- .../lcdexec/specification/lcdexec-spec.ini | 408 +++++++-- lcdexec_spec.ini | Bin 0 -> 8 bytes 6 files changed, 1092 insertions(+), 998 deletions(-) create mode 100644 lcdexec_spec.ini diff --git a/clients/lcdexec/Makefile.am b/clients/lcdexec/Makefile.am index e405c390..078200d3 100644 --- a/clients/lcdexec/Makefile.am +++ b/clients/lcdexec/Makefile.am @@ -5,12 +5,20 @@ sysconf_DATA = lcdexec.conf bin_PROGRAMS = lcdexec lcdexec_SOURCES = lcdexec.c menu.c menu.h +nodist_lcdexec_SOURCES = elektragen.c elektragen.h +lcdexec.$(OBJEXT): elektragen.c elektragen.h +BUILT_SOURCES= elektragen.c elektragen.h + +CLEANFILES = elektragen.c elektragen.h lcdexec_LDADD = ../../shared/libLCDstuff.a AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/shared -DSYSCONFDIR=\"$(sysconfdir)\" -DPIDFILEDIR=\"$(pidfiledir)\" - EXTRA_DIST = $(sysconf_DATA) +KDB ?= kdb +elektragen.c elektragen.h: specification/lcdexec-spec.ini + $(KDB) gen -F ni=specification/lcdexec-spec.ini elektra "spec/sw/lcdproc/lcdexec/#0/current" elektragen initFn=loadConfiguration specloadFn=doSpecloadCheck helpFn=printHelpMessage headers=menu.h + ## EOF diff --git a/clients/lcdexec/lcdexec.c b/clients/lcdexec/lcdexec.c index c461b6e6..21455be5 100644 --- a/clients/lcdexec/lcdexec.c +++ b/clients/lcdexec/lcdexec.c @@ -31,6 +31,7 @@ #include "menu.h" +#include "elektragen.h" #if !defined(SYSCONFDIR) # define SYSCONFDIR "/etc" @@ -46,7 +47,7 @@ /** information about a process started by lcdexec */ typedef struct ProcInfo { struct ProcInfo *next; /**< pointer to the next ProcInfo entry */ - const MenuEntry *cmd; /**< pointer to the corresponding menu entry */ + const Command *cmd; /**< pointer to the corresponding menu entry */ pid_t pid; /**< PID the process was started with */ time_t starttime; /**< start time of the process */ time_t endtime; /**< finishing time of the process */ @@ -56,21 +57,12 @@ typedef struct ProcInfo { } ProcInfo; -char * help_text = +char * help_prefix = "lcdexec - LCDproc client to execute commands from the LCDd menu\n" "\n" "Copyright (c) 2002, Joris Robijn, 2006-2008 Peter Marschall.\n" "This program is released under the terms of the GNU General Public License.\n" -"\n" -"Usage: lcdexec []\n" -" where are:\n" -" -c Specify configuration file ["DEFAULT_CONFIGFILE"]\n" -" -a
DNS name or IP address of the LCDd server [localhost]\n" -" -p port of the LCDd server [13666]\n" -" -f Run in foreground\n" -" -r Set reporting level (0-5) [2: errors and warnings]\n" -" -s <0|1> Report to syslog (1) or stderr (0, default)\n" -" -h Show this help\n"; +"\n"; char *progname = "lcdexec"; @@ -89,7 +81,7 @@ char *displayname = NULL; char *default_shell = NULL; /* Other global variables */ -MenuEntry *main_menu = NULL; /**< pointer to the main menu */ +Menu *main_menu = NULL; /**< pointer to the main menu */ ProcInfo *proc_queue = NULL; /**< pointer to the list of executed processes */ int lcd_wid = 0; /**< LCD display width reported by the server */ @@ -103,11 +95,10 @@ int Quit = 0; /**< indicate end of main loop */ /* Function prototypes */ static void exit_program(int val); static void sigchld_handler(int signal); -static int process_command_line(int argc, char **argv); -static int process_configfile(char * configfile); +static int process_config(); static int connect_and_setup(void); static int process_response(char *str); -static int exec_command(MenuEntry *cmd); +static int exec_command(Command *cmd); static int show_procinfo_msg(ProcInfo *p); static int main_loop(void); @@ -116,15 +107,15 @@ static int main_loop(void); #define CHAIN_END(e) { if (e<0) { report(RPT_CRIT,"Critical error, abort"); exit(e); }} -int main(int argc, char **argv) +int main(int argc, const char **argv) { + // only returns, if not in specload mode + doSpecloadCheck(argc, argv); + int error = 0; struct sigaction sa; - CHAIN(error, process_command_line(argc, argv)); - if (configfile == NULL) - configfile = DEFAULT_CONFIGFILE; - CHAIN(error, process_configfile(configfile)); + CHAIN(error, process_config()); if (report_dest == UNSET_INT || report_level == UNSET_INT) { report_dest = RPT_DEST_STDERR; @@ -214,136 +205,59 @@ static void sigchld_handler(int signal) } } - -static int process_command_line(int argc, char **argv) +static void on_fatal_error(ElektraError * error) // TODO (elektra): finalize method { - int c; - int error = 0; - - /* No error output from getopt */ - opterr = 0; - - while ((c = getopt(argc, argv, "c:a:p:fr:s:h")) > 0) { - char *end; - int temp_int; - - switch(c) { - case 'c': - configfile = strdup(optarg); - break; - case 'a': - address = strdup(optarg); - break; - case 'p': - temp_int = strtol(optarg, &end, 0); - if ((*optarg != '\0') && (*end == '\0') && - (temp_int > 0) && (temp_int <= 0xFFFF)) { - port = temp_int; - } else { - report(RPT_ERR, "Illegal port value %s", optarg); - error = -1; - } - break; - case 'f': - foreground = TRUE; - break; - case 'r': - temp_int = strtol(optarg, &end, 0); - if ((*optarg != '\0') && (*end == '\0') && (temp_int >= 0)) { - report_level = temp_int; - } else { - report(RPT_ERR, "Illegal report level value %s", optarg); - error = -1; - } - break; - case 's': - temp_int = strtol(optarg, &end, 0); - if ((*optarg != '\0') && (*end == '\0') && (temp_int >= 0)) { - report_dest = (temp_int ? RPT_DEST_SYSLOG : RPT_DEST_STDERR); - } else { - report(RPT_ERR, "Illegal log destination value %s", optarg); - error = -1; - } - break; - case 'h': - fprintf(stderr, "%s", help_text); - exit(EXIT_SUCCESS); - /* NOTREACHED */ - case ':': - report(RPT_ERR, "Missing option argument for %c", optopt); - error = -1; - break; - case '?': - default: - report(RPT_ERR, "Unknown option: %c", optopt); - error = -1; - break; - } - } - return error; + fprintf(stderr, "ERROR: %s\n", elektraErrorDescription(error)); + exit(EXIT_FAILURE); } - -static int process_configfile(char *configfile) +static int process_config() { - const char *tmp; - - if (configfile == NULL) - configfile = DEFAULT_CONFIGFILE; - - if (config_read_file(configfile) < 0) { - report(RPT_WARNING, "Could not read config file: %s", configfile); + ElektraError * error = NULL; + Elektra * elektra; + int rc = loadConfiguration(&elektra, &error); + + if (rc == -1) + { + fprintf(stderr, "An error occurred while initializing elektra: %s", elektraErrorDescription(error)); + elektraErrorReset(&error); + return -1; } - if (address == NULL) { - address = strdup(config_get_string(progname, "Address", 0, "localhost")); - } - if (port == UNSET_INT) { - port = config_get_int(progname, "Port", 0, 13666); - } - if (report_level == UNSET_INT) { - report_level = config_get_int(progname, "ReportLevel", 0, RPT_WARNING); - } - if (report_dest == UNSET_INT) { - report_dest = (config_get_bool(progname, "ReportToSyslog", 0, 0)) - ? RPT_DEST_SYSLOG - : RPT_DEST_STDERR; - } - if (foreground != TRUE) { - foreground = config_get_bool(progname, "Foreground", 0, FALSE); - } - if (pidfile == NULL) { - pidfile = strdup(config_get_string(progname, "PidFile", 0, DEFAULT_PIDFILE)); + if (rc == 1) + { + // help mode + printHelpMessage(NULL, help_prefix); + return 0; } - if ((tmp = config_get_string(progname, "DisplayName", 0, NULL)) != NULL) - displayname = strdup(tmp); + elektraFatalErrorHandler(elektra, on_fatal_error); - /* try to find a shell that understands the -c COMMAND syntax */ - if ((tmp = config_get_string(progname, "Shell", 0, NULL)) != NULL) - default_shell = strdup(tmp); - else { - /* 1st fallback: SHELL environment variable */ - report(RPT_WARNING, "Shell not set in configuration, falling back to variable SHELL"); - default_shell = getenv("SHELL"); - - /* 2nd fallback: /bin/sh */ - if (default_shell == NULL) { - report(RPT_WARNING, "variable SHELL not set, falling back to /bin/sh"); - default_shell = "/bin/sh"; - } - } + address = strdup(elektraGet(elektra, ELEKTRA_TAG_LCDEXEC_ADDRESS)); + port = elektraGet(elektra, ELEKTRA_TAG_LCDEXEC_PORT); + report_level = elektraGet(elektra, ELEKTRA_TAG_LCDEXEC_REPORTLEVEL); + report_dest = elektraGet(elektra, ELEKTRA_TAG_LCDEXEC_REPORTTOSYSLOG) ? RPT_DEST_SYSLOG : RPT_DEST_STDERR; + foreground = elektraGet(elektra, ELEKTRA_TAG_LCDEXEC_FOREGROUND); + pidfile = strdup(elektraGet(elektra, ELEKTRA_TAG_LCDEXEC_PIDFILE)); - main_menu = menu_read(NULL, "MainMenu"); -#if defined(DEBUG) - menu_dump(main_menu); -#endif + displayname = strdup(elektraGet(elektra, ELEKTRA_TAG_LCDEXEC_DISPLAYNAME)); + default_shell = strdup(elektraGet(elektra, ELEKTRA_TAG_LCDEXEC_SHELL)); + + main_menu = elektraGet(elektra, ELEKTRA_TAG_MENU_MAIN); // fail on non-existent main menu; if (main_menu == NULL) { report(RPT_ERR, "no main menu found in configuration"); return -1; } + + main_menu_process(main_menu); + +#if defined(DEBUG) + menu_dump(main_menu, 0); +#endif + + return 0; } @@ -373,13 +287,145 @@ static int connect_and_setup(void) } /* Create our menu */ - if (menu_sock_send(main_menu, NULL, sock) < 0) { + if (main_menu_sock_send(main_menu, sock) < 0) { return -1; } return 0; } +/** + * returns the parameter with the given id, if it is contained in the given command + * returns NULL otherwise + */ +static CommandParameter * find_parameter(Command * command, int id, CommandParameterType * type) +{ + for (kdb_long_long_t i = 0; i < command->parametersSize; i++) + { + switch (command->parameterTypes[i]) + { + case COMMAND_PARAMETER_TYPE_ALPHA: + if(command->parameters[i].alpha->id == id) { + *type = command->parameterTypes[i]; + return &command->parameters[i]; + } + break; + case COMMAND_PARAMETER_TYPE_CHECKBOX: + if(command->parameters[i].checkbox->id == id) { + *type = command->parameterTypes[i]; + return &command->parameters[i]; + } + break; + case COMMAND_PARAMETER_TYPE_IP: + if(command->parameters[i].ip->id == id) { + *type = command->parameterTypes[i]; + return &command->parameters[i]; + } + break; + case COMMAND_PARAMETER_TYPE_NUMERIC: + if(command->parameters[i].numeric->id == id) { + *type = command->parameterTypes[i]; + return &command->parameters[i]; + } + break; + case COMMAND_PARAMETER_TYPE_RING: + if(command->parameters[i].ring->id == id) { + *type = command->parameterTypes[i]; + return &command->parameters[i]; + } + break; + case COMMAND_PARAMETER_TYPE_SLIDER: + if(command->parameters[i].slider->id == id) { + *type = command->parameterTypes[i]; + return &command->parameters[i]; + } + break; + } + } + return NULL; +} + +/** + * returns true and sets *command to the command, if id found and actually command + * returns true and sets *command = NULL, if id found but not command + * returns false and sets *command = NULL, if id not found + */ +static bool find_triggered_command(Menu * menu, int id, Command ** command) +{ + *command = NULL; + for (kdb_long_long_t i = 0; i < menu->entriesSize; i++) + { + switch (menu->entryTypes[i]) + { + case MENU_ENTRY_TYPE_COMMAND: + if(menu->entries[i].command->id == id) { + *command = menu->entries[i].command; + return true; + } else if(menu->entries[i].command->actionId == id) { + return true; + } + CommandParameterType t; + if(find_parameter(menu->entries[i].command, id, &t) != NULL) + { + return true; + } + break; + case MENU_ENTRY_TYPE_MENU: + if(menu->entries[i].menu->id == id) + { + return true; + } + if(find_triggered_command(menu->entries[i].menu, id, command)) + { + return true; + } + break; + } + } + + return false; +} + + +/** + * returns true and sets *parameter to the parameter and *type to the corresponding type, if id found and actually parameter + * returns true and sets *parameter = NULL, if id found but not parameter + * returns false and sets *parameter = NULL, if id not found + */ +static bool find_triggered_parameter(Menu * menu, int id, CommandParameter ** parameter, CommandParameterType * type) +{ + *parameter = NULL; + for (kdb_long_long_t i = 0; i < menu->entriesSize; i++) + { + switch (menu->entryTypes[i]) + { + case MENU_ENTRY_TYPE_COMMAND: + if(menu->entries[i].command->id == id) { + return true; + } else if(menu->entries[i].command->actionId == id) { + return true; + } + *parameter = find_parameter(menu->entries[i].command, id, type); + if(*parameter != NULL) + { + return true; + } + break; + case MENU_ENTRY_TYPE_MENU: + if(menu->entries[i].menu->id == id) + { + return true; + } + if(find_triggered_parameter(menu->entries[i].menu, id, parameter, type)) + { + return true; + } + break; + } + } + + return false; +} static int process_response(char *str) { @@ -406,41 +452,31 @@ static int process_response(char *str) } if ((strcmp(argv[1], "select") == 0) || (strcmp(argv[1], "leave") == 0)) { - MenuEntry *entry; - - if (argc < 3) { - report(RPT_WARNING, "Server gave invalid response"); - free(str2); - return -1; - } - - /* Find the entry by id */ - entry = menu_find_by_id(main_menu, atoi(argv[2])); - if (entry == NULL) { - report(RPT_WARNING, "Could not find the item id given by the server"); - free(str2); - return -1; - } + if (argc < 3) { + report(RPT_WARNING, "Server gave invalid response"); + free(str2); + return -1; + } - /* The id has been found. - * We trigger on the following conditions: - * - command entry without args - * - last arg of a command entry with args */ - if (((entry->type == MT_EXEC) && (entry->children == NULL)) || - ((entry->type & MT_ARGUMENT) && (entry->next == NULL))) { + /* Find the entry by id */ + Command * command; + if (!find_triggered_command(main_menu, atoi(argv[2]), &command)) { + report(RPT_WARNING, "Could not find the item id given by the server"); + free(str2); + return -1; + } - // last arg => get parent entry - if ((entry->type & MT_ARGUMENT) && (entry->next == NULL)) - entry = entry->parent; + if(command == NULL) { + report(RPT_WARNING, "Illegal menu entry type for event"); + free(str2); + return -1; + } - if (entry->type == MT_EXEC) - exec_command(entry); - } + exec_command(command); } else if ((strcmp(argv[1], "plus") == 0) || (strcmp(argv[1], "minus") == 0) || (strcmp(argv[1], "update") == 0)) { - MenuEntry *entry; if (argc < 4) { report(RPT_WARNING, "Server gave invalid response"); @@ -449,46 +485,49 @@ static int process_response(char *str) } /* Find the entry by id */ - entry = menu_find_by_id(main_menu, atoi(argv[2])); - if (entry == NULL) { + CommandParameter * parameter; + CommandParameterType parameterType; + if (!find_triggered_parameter(main_menu, atoi(argv[2]), ¶meter, ¶meterType)) { report(RPT_WARNING, "Could not find the item id given by the server"); free(str2); return -1; } - switch (entry->type) { - case MT_ARG_SLIDER: - entry->data.slider.value = atoi(argv[3]); + if(parameter == NULL) { + report(RPT_WARNING, "Illegal menu entry type for event"); + free(str2); + return -1; + } + + switch (parameterType) { + case COMMAND_PARAMETER_TYPE_SLIDER: + parameter->slider->value = atoi(argv[3]); break; - case MT_ARG_RING: - entry->data.ring.value = atoi(argv[3]); + case COMMAND_PARAMETER_TYPE_RING: + parameter->ring->value = atoi(argv[3]); break; - case MT_ARG_NUMERIC: - entry->data.numeric.value = atoi(argv[3]); + case COMMAND_PARAMETER_TYPE_NUMERIC: + parameter->numeric->value = atoi(argv[3]); break; - case MT_ARG_ALPHA: - entry->data.alpha.value = realloc(entry->data.alpha.value, + case COMMAND_PARAMETER_TYPE_ALPHA: + parameter->alpha->value = realloc(parameter->alpha->value, strlen(argv[3])); - strcpy(entry->data.alpha.value, argv[3]); + strcpy(parameter->alpha->value, argv[3]); break; - case MT_ARG_IP: - entry->data.ip.value = realloc(entry->data.ip.value, + case COMMAND_PARAMETER_TYPE_IP: + parameter->ip->value = realloc(parameter->ip->value, strlen(argv[3])); - strcpy(entry->data.ip.value, argv[3]); + strcpy(parameter->ip->value, argv[3]); break; - case MT_ARG_CHECKBOX: - if ((entry->data.checkbox.allow_gray) && + case COMMAND_PARAMETER_TYPE_CHECKBOX: + if ((parameter->checkbox->allowgray) && (strcasecmp(argv[3], "gray") == 0)) - entry->data.checkbox.value = 2; + parameter->checkbox->value = 2; else if (strcasecmp(argv[3], "on") == 0) - entry->data.checkbox.value = 1; + parameter->checkbox->value = 1; else - entry->data.checkbox.value = 0; - break; - default: - report(RPT_WARNING, "Illegal menu entry type for event"); - free(str2); - return -1; + parameter->checkbox->value = 0; + break; } } else { @@ -522,101 +561,112 @@ static int process_response(char *str) return 0; } - -static int exec_command(MenuEntry *cmd) +static int exec_command(Command *cmd) { - if ((cmd != NULL) && (menu_command(cmd) != NULL)) { - const char *command = menu_command(cmd); - const char *argv[4]; - pid_t pid; - ProcInfo *p; - char *envp[cmd->numChildren+1]; - MenuEntry *arg; - int i; - - /* set argument vector */ - argv[0] = default_shell; - argv[1] = "-c"; - argv[2] = command; - argv[3] = NULL; - - /* set environment vector: allocate & fill contents */ - for (arg = cmd->children, i = 0; arg != NULL; arg = arg->next, i++) { - char buf[1025]; - - switch (arg->type) { - case MT_ARG_SLIDER: - snprintf(buf, sizeof(buf)-1, "%s=%d", - arg->name, arg->data.slider.value); - break; - case MT_ARG_RING: - snprintf(buf, sizeof(buf)-1, "%s=%s", arg->name, - arg->data.ring.strings[arg->data.ring.value]); - break; - case MT_ARG_NUMERIC: - snprintf(buf, sizeof(buf)-1, "%s=%d", - arg->name, arg->data.numeric.value); - break; - case MT_ARG_ALPHA: - snprintf(buf, sizeof(buf)-1, "%s=%s", - arg->name, arg->data.alpha.value); - break; - case MT_ARG_IP: - snprintf(buf, sizeof(buf)-1, "%s=%s", - arg->name, arg->data.ip.value); + if (cmd == NULL || strlen(cmd->exec) == 0) { + return -1; + } + + const char *command = cmd->exec; + const char *argv[4]; + pid_t pid; + ProcInfo *p; + char *envp[cmd->parametersSize+1]; + + /* set argument vector */ + argv[0] = default_shell; + argv[1] = "-c"; + argv[2] = command; + argv[3] = NULL; + + /* set environment vector: allocate & fill contents */ + for (kdb_long_long_t i = 0; i < cmd->parametersSize; ++i) { + char buf[1025]; + + CommandParameter param = cmd->parameters[i]; + switch (cmd->parameterTypes[i]) { + case COMMAND_PARAMETER_TYPE_SLIDER: + envp[i] = elektraFormat(buf, "%s="ELEKTRA_LONG_F, param.slider->envname, param.slider->value); + break; + case COMMAND_PARAMETER_TYPE_RING: + envp[i] = elektraFormat(buf, "%s=%s", param.ring->envname, param.ring->strings[param.ring->value]); + break; + case COMMAND_PARAMETER_TYPE_NUMERIC: + envp[i] = elektraFormat(buf, "%s="ELEKTRA_LONG_F, param.numeric->envname, param.numeric->value); + break; + case COMMAND_PARAMETER_TYPE_ALPHA: + envp[i] = elektraFormat(buf, "%s=%s", param.alpha->envname, param.alpha->value); + break; + case COMMAND_PARAMETER_TYPE_IP: + envp[i] = elektraFormat(buf, "%s=%s", param.ip->envname, param.ip->value); + break; + case COMMAND_PARAMETER_TYPE_CHECKBOX: + switch (param.checkbox->value) + { + case CHECKBOX_STATE_ON: + if(strlen(param.checkbox->ontext) > 0) { + envp[i] = elektraFormat(buf, "%s", param.checkbox->ontext); + } else { + envp[i] = elektraFormat(buf, "%s="ELEKTRA_LONG_F, param.checkbox->envname, param.checkbox->value); + } break; - case MT_ARG_CHECKBOX: - if (arg->data.checkbox.map[arg->data.checkbox.value] != NULL) - strncpy(buf, arg->data.checkbox.map[arg->data.checkbox.value], - sizeof(buf)-1); - else - snprintf(buf, sizeof(buf)-1, "%s=%d", - arg->name, arg->data.checkbox.value); + case CHECKBOX_STATE_OFF: + if(strlen(param.checkbox->offtext) > 0) { + envp[i] = elektraFormat(buf, "%s", param.checkbox->offtext); + } else { + envp[i] = elektraFormat(buf, "%s="ELEKTRA_LONG_F, param.checkbox->envname, param.checkbox->value); + } break; - default: - /* error ? */ + case CHECKBOX_STATE_GRAY: + if(strlen(param.checkbox->graytext) > 0) { + envp[i] = elektraFormat(buf, "%s", param.checkbox->graytext); + } else { + envp[i] = elektraFormat(buf, "%s="ELEKTRA_LONG_F, param.checkbox->envname, param.checkbox->value); + } break; - } - buf[sizeof(buf)-1] ='\0'; - envp[i] = strdup(buf); - - debug(RPT_DEBUG, "Environment: %s", envp[i]); + } + break; + default: + /* error ? */ + break; } - envp[cmd->numChildren] = NULL; - debug(RPT_DEBUG, "Executing '%s' via Shell %s", command, default_shell); - - switch (pid = fork()) { - case 0: - /* We're the child: execute the command */ - execve(argv[0], (char **) argv, envp); - exit(EXIT_SUCCESS); - break; - default: - /* We're the parent: setup the ProcInfo structure */ - p = calloc(1, sizeof(ProcInfo)); - if (p != NULL) { - p->cmd = cmd; - p->pid = pid; - p->starttime = time(NULL); - p->feedback = cmd->data.exec.feedback; - /* prepend it to existing queue atomically */ - p->next = proc_queue; - proc_queue = p; - } - break; - case -1: - report(RPT_ERR, "Could not fork"); - return -1; + debug(RPT_DEBUG, "Environment: %s", envp[i]); + } + envp[cmd->parametersSize] = NULL; + + debug(RPT_DEBUG, "Executing '%s' via Shell %s", command, default_shell); + + switch (pid = fork()) { + case 0: + /* We're the child: execute the command */ + execve(argv[0], (char **) argv, envp); + exit(EXIT_SUCCESS); + break; + default: + /* We're the parent: setup the ProcInfo structure */ + p = calloc(1, sizeof(ProcInfo)); + if (p != NULL) { + p->cmd = cmd; + p->pid = pid; + p->starttime = time(NULL); + p->feedback = cmd->feedback; + /* prepend it to existing queue atomically */ + p->next = proc_queue; + proc_queue = p; } + break; + case -1: + report(RPT_ERR, "Could not fork"); + return -1; + } - /* free envp's contents */ - for (i = 0; envp[i] != NULL; i++) - free(envp[i]); - - return 0; + /* free envp's contents */ + for (kdb_long_long_t i = 0; i < cmd->parametersSize; i++) { + elektraFree(envp[i]); } - return -1; + + return 0; } diff --git a/clients/lcdexec/menu.c b/clients/lcdexec/menu.c index 4d886335..3a291cf2 100644 --- a/clients/lcdexec/menu.c +++ b/clients/lcdexec/menu.c @@ -22,618 +22,374 @@ #include "shared/sockets.h" #include "menu.h" +#include "elektragen.h" +#define SET_PARAMETER_DISPLAY_NAME(p) \ + do \ + { \ + if (strlen(p->displayname) == 0) \ + p->displayname = p->envname; \ + } while (0) -/* names for boolean and tristate values */ -static char *boolValueName[] = { "false", "true" }; -static char *triGrayValueName[] = { "off", "on", "gray" }; +static int menu_sock_send(Menu *menu, Menu *parent, int sock); +static int menu_entries_sock_send(Menu *menu, int sock); +static int command_sock_send(Command *command, Menu *parent, int sock); +static int id = 0; -/** recursively read the menu hierarchy */ -MenuEntry *menu_read(MenuEntry *parent, const char *name) +static void command_process(Command *command) { - static int id = 0; - - if ((name != NULL) && (config_has_section(name))) { - MenuEntry *me = calloc(1, sizeof(MenuEntry)); // auto-NULL elements - - if (me == NULL) - return NULL; - // set common entries - me->id = id++; - me->name = strdup(name); - if (me->name == NULL) { - //menu_free(me); - return NULL; + command->id = id++; + + for (kdb_long_long_t i = 0; i < command->parametersSize; ++i) + { + CommandParameter parameter = command->parameters[i]; + switch (command->parameterTypes[i]) + { + case COMMAND_PARAMETER_TYPE_NUMERIC: + parameter.numeric->id = id++; + SET_PARAMETER_DISPLAY_NAME(parameter.numeric); + break; + case COMMAND_PARAMETER_TYPE_RING: + parameter.ring->id = id++; + SET_PARAMETER_DISPLAY_NAME(parameter.ring); + break; + case COMMAND_PARAMETER_TYPE_SLIDER: + parameter.slider->id = id++; + SET_PARAMETER_DISPLAY_NAME(parameter.slider); + break; + case COMMAND_PARAMETER_TYPE_CHECKBOX: + parameter.checkbox->id = id++; + SET_PARAMETER_DISPLAY_NAME(parameter.checkbox); + break; + case COMMAND_PARAMETER_TYPE_ALPHA: + { + parameter.alpha->id = id++; + SET_PARAMETER_DISPLAY_NAME(parameter.alpha); + parameter.alpha->value = calloc(strlen(parameter.alpha->initialValue) + 1, sizeof(char)); + strcpy(parameter.alpha->value, parameter.alpha->initialValue); } - - me->displayname = strdup(config_get_string(name, "DisplayName", 0, name)); - if (me->displayname == NULL) { - //menu_free(me); - return NULL; + break; + case COMMAND_PARAMETER_TYPE_IP: + { + parameter.ip->id = id++; + SET_PARAMETER_DISPLAY_NAME(parameter.ip); + parameter.ip->value = calloc(strlen(parameter.ip->initialValue) + 1, sizeof(char)); + strcpy(parameter.ip->value, parameter.ip->initialValue); } - - me->parent = parent; - me->next = NULL; - me->children = NULL; - me->numChildren = 0; - - if (config_get_string(name, "Entry", 0, NULL) != NULL) { - MenuEntry **addr = &me->children; - const char *entryname; - - // it is a sub-menu - me->type = MT_MENU; - - // read menu entries - while ((entryname = config_get_string(name, "Entry", me->numChildren, NULL)) != NULL) { - MenuEntry *entry = menu_read(me, entryname); - - if (entry == NULL) { - //menu_free(me); - return NULL; - } - - me->numChildren++; - - *addr = entry; - addr = &entry->next; - } + break; } - else if (config_get_string(name, "Exec", 0, NULL) != NULL) { - MenuEntry **addr = &me->children; - const char *entryname; - - // it's a command to execute - me->type = MT_EXEC; - - me->data.exec.command = strdup(config_get_string(name, "Exec", 0, "")); - if (me->data.exec.command == NULL) { - //menu_free(me); - return NULL; - } - me->data.exec.feedback = config_get_bool(name, "Feedback", 0, 0); - - // try to read parameters - while ((entryname = config_get_string(name, "Parameter", me->numChildren, NULL)) != NULL) { - MenuEntry *entry = menu_read(me, entryname); - - if (entry == NULL) { - //menu_free(me); - return NULL; - } - - me->numChildren++; - - *addr = entry; - addr = &entry->next; - } + } +} - // automagically add an "Apply ?" action - if ((me->numChildren > 0) && (addr != NULL)) - *addr = menu_read(me, NULL); +static void menu_process(Menu *menu) +{ + menu->id = id++; + for (kdb_long_long_t i = 0; i < menu->entriesSize; i++) + { + switch (menu->entryTypes[i]) + { + case MENU_ENTRY_TYPE_MENU: + menu_process(menu->entries[i].menu); + break; + case MENU_ENTRY_TYPE_COMMAND: + command_process(menu->entries[i].command); + break; } - else if (config_get_string(name, "Type", 0, NULL) != NULL) { - // it's a command parameter - const char *type; - - type = config_get_string(name, "Type", 0, ""); - - if (strcasecmp(type, "slider") == 0) { - char buf[35]; - - me->type = MT_ARG_SLIDER; - - me->data.slider.value = config_get_int(name, "Value", 0, 0); - me->data.slider.minval = config_get_int(name, "MinValue", 0, 0); - me->data.slider.maxval = config_get_int(name, "MaxValue", 0, 1000); - - sprintf(buf, "%d", me->data.slider.minval); - me->data.slider.mintext = strdup(config_get_string(name, "MinText", 0, buf)); - sprintf(buf, "%d", me->data.slider.maxval); - me->data.slider.maxtext = strdup(config_get_string(name, "MaxText", 0, buf)); - - me->data.slider.stepsize = config_get_int(name, "StepSize", 0, 1); - } - else if (strcasecmp(type, "ring") == 0) { - const char *tmp; - int numStrings = 0; - int i = 0; - - me->type = MT_ARG_RING; - - me->data.ring.value = config_get_int(name, "Value", 0, 0); - numStrings = config_has_key(name, "String"); - me->data.ring.strings = calloc(sizeof(char *), numStrings+1); - me->data.ring.strings[numStrings] = NULL; - - while ((tmp = config_get_string(name, "String", i, NULL)) != NULL) { - me->data.ring.strings[i] = strdup(tmp); - i++; - } - me->data.ring.strings[i] = NULL; - } - else if (strcasecmp(type, "numeric") == 0) { - me->type = MT_ARG_NUMERIC; - - me->data.numeric.value = config_get_int(name, "Value", 0, 0); - me->data.numeric.minval = config_get_int(name, "MinValue", 0, 0); - me->data.numeric.maxval = config_get_int(name, "MaxValue", 0, 1000); - } - else if (strcasecmp(type, "alpha") == 0) { - me->type = MT_ARG_ALPHA; - - me->data.alpha.value = strdup(config_get_string(name, "Value", 0, "")); - me->data.alpha.minlen = config_get_int(name, "MinLength", 0, 0); - me->data.alpha.maxlen = config_get_int(name, "MaxLength", 0, 100); - me->data.alpha.allowed = strdup(config_get_string(name, "AllowedChars", 0, - "ABCDEFGHIJKLMNOPQRSTUVWXYZ")); - } - else if (strcasecmp(type, "ip") == 0) { - me->type = MT_ARG_IP; + } +} - me->data.ip.value = strdup(config_get_string(name, "Value", 0, "")); - me->data.ip.v6 = config_get_bool(name, "Value", 0, 0); - } - else if (strcasecmp(type, "checkbox") == 0) { - const char *tmp; - - me->type = MT_ARG_CHECKBOX; - - me->data.checkbox.allow_gray = config_get_bool(name, "AllowGray", 0, 0); - me->data.checkbox.value = (me->data.checkbox.allow_gray) - ? config_get_tristate(name, "Value", 0, "gray", 0) - : config_get_bool(name, "Value", 0, 0); - // get replacement strings for different values - tmp = config_get_string(name, "OffText", 0, NULL); - me->data.checkbox.map[0] = (tmp != NULL) ? strdup(tmp) : NULL; - tmp = config_get_string(name, "OnText", 0, NULL); - me->data.checkbox.map[1] = (tmp != NULL) ? strdup(tmp) : NULL; - tmp = config_get_string(name, "GrayText", 0, NULL); - me->data.checkbox.map[2] = (tmp != NULL) ? strdup(tmp) : NULL; - } - else { - report(RPT_DEBUG, "illegal parameter type"); - //menu_free(me); - return NULL; - } - } - else { - report(RPT_DEBUG, "unknown menu entry type"); - //menu_free(me); - return NULL; - } +void main_menu_process(Menu *menu) +{ + id = 0; + menu_process(menu); +} - return me; - } - else { - /* the magic stuff: if name is NULL and parent is an EXEC entry, - * then generate an Action entry with the name "Apply" */ - if ((name == NULL) && (parent != NULL) && (parent->type = MT_EXEC)) { - MenuEntry *me = calloc(1, sizeof(MenuEntry)); // auto-NULL elements - - if (me == NULL) - return NULL; - // set common entries - me->id = id++; - me->name = malloc(strlen(parent->name) + 10); - if (me->name == NULL) { - //menu_free(me); - return NULL; - } - strcpy(me->name, "Apply_"); - strcat(me->name, parent->name); +int main_menu_sock_send(Menu *menu, int sock) +{ + // don't create a separate entry for the main menu + return menu_entries_sock_send(menu, sock); +} - me->displayname = strdup("Apply!"); - if (me->displayname == NULL) { - //menu_free(me); - return NULL; - } +static int menu_sock_send(Menu *menu, Menu *parent, int sock) +{ + // create entry for the menu + if (sock_printf(sock, "menu_add_item \"%s\" \"%d\" menu \"%s\"\n", + parent->id, menu->id, menu->displayname) < 0) + return -1; - me->parent = parent; - me->next = NULL; - me->children = NULL; - me->numChildren = 0; - me->type = MT_ACTION; + return menu_entries_sock_send(menu, sock); +} - return me; +static int menu_entries_sock_send(Menu *menu, int sock) +{ + for (kdb_long_long_t i = 0; i < menu->entriesSize; i++) + { + switch (menu->entryTypes[i]) + { + case MENU_ENTRY_TYPE_MENU: + if (menu_sock_send(menu->entries[i].menu, menu, sock) < 0) + return -1; + break; + case MENU_ENTRY_TYPE_COMMAND: + if (command_sock_send(menu->entries[i].command, menu, sock) < 0) + return -1; + break; } } - return NULL; + return 0; } - -/** create LCDproc commands for the menu entry hierarchy and send it to the server */ -int menu_sock_send(MenuEntry *me, MenuEntry *parent, int sock) +static int command_sock_send(Command *command, Menu *parent, int sock) { - if ((me != NULL) && (sock > 0)) { - char parent_id[12]; - - // set parent_id depending on the parent given - if ((parent != NULL) && (parent->id != 0)) - sprintf(parent_id, "%d", parent->id); - else - strcpy(parent_id, ""); - - switch (me->type) { - MenuEntry *entry; - - case MT_MENU: - // don't create a separate entry for the main menu - if ((parent != NULL) && (me->id != 0)) { - if (sock_printf(sock, "menu_add_item \"%s\" \"%d\" menu \"%s\"\n", - parent_id, me->id, me->displayname) < 0) - return -1; - } - - // recursively do it for the menu's sub-menus - for (entry = me->children; entry != NULL; entry = entry->next) { - if (menu_sock_send(entry, me, sock) < 0) - return -1; - } + if (command->parametersSize == 0) + { + if (sock_printf(sock, "menu_add_item \"%s\" \"%d\" action \"%s\"\n", + parent->id, command->id, command->displayname) < 0) + return -1; + + if (sock_printf(sock, "menu_set_item \"%s\" \"%d\" -menu_result quit\n", + parent->id, command->id) < 0) + return -1; + } + else + { + if (sock_printf(sock, "menu_add_item \"%s\" \"%d\" menu \"%s\"\n", + parent->id, command->id, command->displayname) < 0) + return -1; + + kdb_long_t lastId = 0; + for (kdb_long_long_t i = 0; i < command->parametersSize; i++) + { + CommandParameter param = command->parameters[i]; + switch (command->parameterTypes[i]) + { + case COMMAND_PARAMETER_TYPE_SLIDER: + lastId = param.slider->id; + if (sock_printf(sock, "menu_add_item \"%s\" \"%d\" slider -text \"%s\"" + " -value %d -minvalue %d -maxvalue %d" + " -mintext \"%s\" -maxtext \"%s\" -stepsize %d\n", + parent->id, param.slider->id, param.slider->displayname, + param.slider->value, + param.slider->minvalue, + param.slider->maxvalue, + param.slider->mintext, + param.slider->maxtext, + param.slider->stepsize) < 0) + return -1; break; - case MT_EXEC: - if (me->children == NULL) { - if (sock_printf(sock, "menu_add_item \"%s\" \"%d\" action \"%s\"\n", - parent_id, me->id, me->displayname) < 0) - return -1; - - if (sock_printf(sock, "menu_set_item \"%s\" \"%d\" -menu_result quit\n", - parent_id, me->id) < 0) - return -1; - } - else { - if ((parent != NULL) && (me->id != 0)) { - if (sock_printf(sock, "menu_add_item \"%s\" \"%d\" menu \"%s\"\n", - parent_id, me->id, me->displayname) < 0) - return -1; - } + case COMMAND_PARAMETER_TYPE_CHECKBOX: + { + lastId = param.checkbox->id; + char *strValue = ELEKTRA_TO_STRING(EnumCheckboxState)(param.checkbox->value); + int ret = sock_printf(sock, "menu_add_item \"%s\" \"%d\" checkbox -text \"%s\"" + " -value %s -allow_gray %s\n", + parent->id, param.checkbox->id, param.checkbox->displayname, + strValue, param.checkbox->allowgray ? "true" : "false"); + if (ret < 0) + return -1; - // (recursively) do it for the entry's parameters - for (entry = me->children; entry != NULL; entry = entry->next) { - if (menu_sock_send(entry, me, sock) < 0) - return -1; - } - } break; - case MT_ARG_SLIDER: - if (sock_printf(sock, "menu_add_item \"%s\" \"%d\" slider -text \"%s\"" - " -value %d -minvalue %d -maxvalue %d" - " -mintext \"%s\" -maxtext \"%s\" -stepsize %d\n", - parent_id, me->id, me->displayname, - me->data.slider.value, - me->data.slider.minval, - me->data.slider.maxval, - me->data.slider.mintext, - me->data.slider.maxtext, - me->data.slider.stepsize) <0) + } + case COMMAND_PARAMETER_TYPE_NUMERIC: + lastId = param.numeric->id; + if (sock_printf(sock, "menu_add_item \"%s\" \"%d\" numeric -text \"%s\"" + " -value %d -minvalue %d -maxvalue %d\n", + parent->id, param.numeric->id, param.numeric->displayname, + param.numeric->value, + param.numeric->minvalue, + param.numeric->maxvalue) < 0) return -1; - - if (me->next == NULL) { - if (sock_printf(sock, "menu_set_item \"%s\" \"%d\" -next _quit_\n", - parent_id, me->id) < 0) - return -1; - } break; - case MT_ARG_RING: + case COMMAND_PARAMETER_TYPE_RING: + { + lastId = param.ring->id; + char *strings = calloc(1, sizeof(char)); + size_t stringsLen = 0; + + for (kdb_long_long_t j = 0; j < param.ring->stringsSize; j++) { - int i; - char *tmp = strdup(""); - - // join all strings with TAB as separator - for (i = 0; me->data.ring.strings[i] != NULL; i++) { - tmp = realloc(tmp, strlen(tmp) + 1 + - strlen(me->data.ring.strings[i]) + 1); - if (tmp[0] != '\0') - strcat(tmp, "\t"); - strcat(tmp, me->data.ring.strings[i]); + if (param.ring->strings[i] != NULL) + { + size_t paramLen = strlen(param.ring->strings[i]); + strings = realloc(strings, (stringsLen + 1 + paramLen + 1) * sizeof(char)); + if (stringsLen > 0) + { + strings[stringsLen] = '\t'; + } + strcpy(&strings[stringsLen + 1], param.ring->strings[i]); + stringsLen += paramLen + 1; } - - if (sock_printf(sock, "menu_add_item \"%s\" \"%d\" ring -text \"%s\"" - " -value %d -strings \"%s\"\n", - parent_id, me->id, me->displayname, - me->data.ring.value, - tmp) < 0) - return -1; } + strings[stringsLen] = '\0'; - if (me->next == NULL) { - if (sock_printf(sock, "menu_set_item \"%s\" \"%d\" -next _quit_\n", - parent_id, me->id) < 0) - return -1; - } - break; - case MT_ARG_NUMERIC: - if (sock_printf(sock, "menu_add_item \"%s\" \"%d\" numeric -text \"%s\"" - " -value %d -minvalue %d -maxvalue %d\n", - parent_id, me->id, me->displayname, - me->data.numeric.value, - me->data.numeric.minval, - me->data.numeric.maxval) < 0) + if (sock_printf(sock, "menu_add_item \"%s\" \"%d\" ring -text \"%s\"" + " -value %d -strings \"%s\"\n", + parent->id, param.ring->id, param.ring->displayname, + param.ring->value, strings) < 0) return -1; - if (me->next == NULL) { - if (sock_printf(sock, "menu_set_item \"%s\" \"%d\" -next _quit_\n", - parent_id, me->id) < 0) - return -1; - } break; - case MT_ARG_ALPHA: + } + case COMMAND_PARAMETER_TYPE_ALPHA: + lastId = param.alpha->id; if (sock_printf(sock, "menu_add_item \"%s\" \"%d\" alpha -text \"%s\"" - " -value \"%s\" -minlength %d -maxlength %d" - " -allow_caps false -allow_noncaps false" - " -allow_numbers false -allowed_extra \"%s\"\n", - parent_id, me->id, me->displayname, - me->data.alpha.value, - me->data.alpha.minlen, - me->data.alpha.maxlen, - me->data.alpha.allowed) <0) + " -value \"%s\" -minlength %d -maxlength %d" + " -allow_caps false -allow_noncaps false" + " -allow_numbers false -allowed_extra \"%s\"\n", + parent->id, param.alpha->id, param.alpha->displayname, + param.alpha->value, + param.alpha->minlength, + param.alpha->maxlength, + param.alpha->allowedchars) < 0) return -1; - - if (me->next == NULL) { - if (sock_printf(sock, "menu_set_item \"%s\" \"%d\" -next _quit_\n", - parent_id, me->id) < 0) - return -1; - } break; - case MT_ARG_IP: + case COMMAND_PARAMETER_TYPE_IP: + lastId = param.ip->id; if (sock_printf(sock, "menu_add_item \"%s\" \"%d\" ip -text \"%s\"" - " -value \"%s\" -v6 %s\n", - parent_id, me->id, me->displayname, - me->data.ip.value, - boolValueName[me->data.ip.v6]) < 0) - return -1; - - if (me->next == NULL) { - if (sock_printf(sock, "menu_set_item \"%s\" \"%d\" -next _quit_\n", - parent_id, me->id) < 0) - return -1; - } - break; - case MT_ARG_CHECKBOX: - if (sock_printf(sock, "menu_add_item \"%s\" \"%d\" checkbox -text \"%s\"" - " -value %s -allow_gray %s\n", - parent_id, me->id, me->displayname, - triGrayValueName[me->data.checkbox.value], - boolValueName[me->data.checkbox.allow_gray]) < 0) - return -1; - - if (me->next == NULL) { - if (sock_printf(sock, "menu_set_item \"%s\" \"%d\" -next _quit_\n", - parent_id, me->id) < 0) - return -1; - } - break; - case MT_ACTION: - if (sock_printf(sock, "menu_add_item \"%s\" \"%d\" action \"%s\"\n", - parent_id, me->id, me->displayname) < 0) - return -1; - - if (sock_printf(sock, "menu_set_item \"%s\" \"%d\" -menu_result quit\n", - parent_id, me->id) < 0) + " -value \"%s\" -v6 %s\n", + parent->id, param.ip->id, param.ip->displayname, + param.ip->value, + param.ip->v6 ? "true" : "false") < 0) return -1; break; - default: - return -1; - } - return 0; - } - return -1; -} - - -/** find menu entry by its id */ -MenuEntry *menu_find_by_id(MenuEntry *me, int id) -{ - if (me != NULL) { - if (me->id == id) - return me; - - if ((me->type == MT_MENU) || (me->type == MT_EXEC)) { - MenuEntry *entry; - - for (entry = me->children; entry != NULL; entry = entry->next) { - MenuEntry *result = menu_find_by_id(entry, id); - - if (result != NULL) - return result; } } - } - return NULL; -} + if (sock_printf(sock, "menu_set_item \"%s\" \"%d\" -next _quit_\n", + parent->id, lastId) < 0) + return -1; -/** return command of a menu entry */ -const char *menu_command(MenuEntry *me) -{ - if ((me != NULL) && (me->type == MT_EXEC)) - return me->data.exec.command; + if (sock_printf(sock, "menu_add_item \"%s\" \"%d\" action \"%s\"\n", + parent->id, command->actionId, "Apply!") < 0) + return -1; - return NULL; + if (sock_printf(sock, "menu_set_item \"%s\" \"%d\" -menu_result quit\n", + parent->id, command->actionId) < 0) + return -1; + } + return 0; } - -/** free menu entry hierarchy */ -void menu_free(MenuEntry *me) +#if defined(DEBUG) +static void command_dump(Command *command, int level) { - if (me != NULL) { - MenuEntry *entry; - int i; - - switch (me->type) { - case MT_EXEC: - if (me->data.exec.command != NULL) - free(me->data.exec.command); - me->data.exec.command = NULL; - /* fall through */ - case MT_MENU: - for (entry = me->children; entry != NULL; ) { - MenuEntry *old = entry; - - entry = entry->next; - old->next = NULL; - menu_free(old); - } - me->children = NULL; - break; - case MT_ARG_SLIDER: - if (me->data.slider.mintext != NULL) - free(me->data.slider.mintext); - me->data.slider.mintext = NULL; - if (me->data.slider.maxtext != NULL) - free(me->data.slider.maxtext); - me->data.slider.maxtext = NULL; - break; - case MT_ARG_RING: - if (me->data.ring.strings != NULL) { - int i; - - for (i = 0; me->data.ring.strings[i] != NULL; i++) - free(me->data.ring.strings[i]); + if (command == NULL) + { + return; + } - free(me->data.ring.strings); - me->data.ring.strings = NULL; - } - break; - case MT_ARG_ALPHA: - if (me->data.alpha.value != NULL) - free(me->data.alpha.value); - me->data.alpha.value = NULL; - if (me->data.alpha.allowed != NULL) - free(me->data.alpha.allowed); - me->data.alpha.allowed = NULL; - break; - case MT_ARG_IP: - if (me->data.ip.value != NULL) - free(me->data.ip.value); - me->data.ip.value = NULL; - break; - case MT_ARG_CHECKBOX: - for (i = 0; i < sizeof(me->data.checkbox.map)/sizeof(me->data.checkbox.map[0]); i++) { - if (me->data.checkbox.map[i] != NULL) { - free(me->data.checkbox.map[i]); - me->data.checkbox.map[i] = NULL; - } - } - default: - break; + report(RPT_DEBUG, "%*sCommand("ELEKTRA_LONG_F") {\n", level, command->id); + report(RPT_DEBUG, "%*sdisplayname = \"%s\"\n", level + 1, "", command->displayname); + report(RPT_DEBUG, "%*sexec = \"%s\"\n", level + 1, "", command->exec); + report(RPT_DEBUG, "%*sfeedback = %s\n", level + 1, "", command->feedback ? "true" : "false"); + report(RPT_DEBUG, "%*sparameters = [\n", level + 1, ""); + + for (kdb_long_long_t i = 0; i < command->parametersSize; ++i) + { + CommandParameter parameter = command->parameters[i]; + switch (command->parameterTypes[i]) + { + case COMMAND_PARAMETER_TYPE_NUMERIC: + report(RPT_DEBUG, "%*sNumeric("ELEKTRA_LONG_F") {\n", level + 2, "", parameter.numeric->id); + report(RPT_DEBUG, "%*sdisplayname = \"%s\"\n", level + 3, "", parameter.numeric->displayname); + report(RPT_DEBUG, "%*senvname = \"%s\"\n", level + 3, "", parameter.numeric->envname); + report(RPT_DEBUG, "%*sminvalue = " ELEKTRA_LONG_F "\n", level + 3, "", parameter.numeric->minvalue); + report(RPT_DEBUG, "%*smaxvalue = " ELEKTRA_LONG_F "\n", level + 3, "", parameter.numeric->maxvalue); + report(RPT_DEBUG, "%*svalue = " ELEKTRA_LONG_F "\n", level + 3, "", parameter.numeric->value); + report(RPT_DEBUG, "%*s}\n", level + 2, ""); + break; + case COMMAND_PARAMETER_TYPE_RING: + report(RPT_DEBUG, "%*sRing("ELEKTRA_LONG_F") {\n", level + 2, "", parameter.ip->id); + report(RPT_DEBUG, "%*sdisplayname = \"%s\"\n", level + 3, "", parameter.ring->displayname); + report(RPT_DEBUG, "%*senvname = \"%s\"\n", level + 3, "", parameter.ring->envname); + report(RPT_DEBUG, "%*sstrings = [\n", level + 3, ""); + for (kdb_long_long_t j = 0; j < parameter.ring->stringsSize; ++j) + { + report(RPT_DEBUG, "%*s\"%s\"\n", level + 3, "", parameter.ring->strings[j]); + } + report(RPT_DEBUG, "%*s]\n", level + 3, ""); + report(RPT_DEBUG, "%*svalue = " ELEKTRA_LONG_F "\n", level + 3, "", parameter.ring->value); + report(RPT_DEBUG, "%*s}\n", level + 2, ""); + break; + case COMMAND_PARAMETER_TYPE_SLIDER: + report(RPT_DEBUG, "%*sSlider("ELEKTRA_LONG_F") {\n", level + 2, parameter.slider->id); + report(RPT_DEBUG, "%*sdisplayname = \"%s\"\n", level + 3, "", parameter.slider->displayname); + report(RPT_DEBUG, "%*senvname = \"%s\"\n", level + 3, "", parameter.slider->envname); + report(RPT_DEBUG, "%*sminvalue = " ELEKTRA_LONG_F "\n", level + 3, "", parameter.slider->minvalue); + report(RPT_DEBUG, "%*smaxvalue = " ELEKTRA_LONG_F "\n", level + 3, "", parameter.slider->maxvalue); + report(RPT_DEBUG, "%*smintext = \"%s\"\n", level + 3, "", parameter.slider->mintext); + report(RPT_DEBUG, "%*smaxtext = \"%s\"\n", level + 3, "", parameter.slider->maxtext); + report(RPT_DEBUG, "%*svalue = " ELEKTRA_LONG_F "\n", level + 3, "", parameter.slider->value); + report(RPT_DEBUG, "%*sstepsize = " ELEKTRA_LONG_F "\n", level + 3, "", parameter.slider->stepsize); + report(RPT_DEBUG, "%*s}\n", level + 2, ""); + break; + case COMMAND_PARAMETER_TYPE_CHECKBOX: + report(RPT_DEBUG, "%*sCheckbox("ELEKTRA_LONG_F") {\n", level + 2, parameter.checkbox->id); + report(RPT_DEBUG, "%*sdisplayname = \"%s\"\n", level + 3, "", parameter.checkbox->displayname); + report(RPT_DEBUG, "%*senvname = \"%s\"\n", level + 3, "", parameter.checkbox->envname); + report(RPT_DEBUG, "%*sallowgray = %s\n", level + 3, "", parameter.checkbox->allowgray ? "true" : "false"); + report(RPT_DEBUG, "%*sontext = \"%s\"\n", level + 3, "", parameter.checkbox->ontext); + report(RPT_DEBUG, "%*sofftext = \"%s\"\n", level + 3, "", parameter.checkbox->offtext); + report(RPT_DEBUG, "%*sgraytext = \"%s\"\n", level + 3, "", parameter.checkbox->graytext); + char *strValue = ELEKTRA_TO_STRING(EnumCheckboxState)(parameter.checkbox->value); + report(RPT_DEBUG, "%*svalue = %s\n", level + 3, "", strValue); + elektraFree(strValue); + report(RPT_DEBUG, "%*s}\n", level + 2, ""); + break; + case COMMAND_PARAMETER_TYPE_ALPHA: + report(RPT_DEBUG, "%*sAlpha("ELEKTRA_LONG_F") {\n", level + 2, parameter.alpha->id); + report(RPT_DEBUG, "%*sdisplayname = \"%s\"\n", level + 3, "", parameter.alpha->displayname); + report(RPT_DEBUG, "%*senvname = \"%s\"\n", level + 3, "", parameter.alpha->envname); + report(RPT_DEBUG, "%*sallowedchars = \"%s\"\n", level + 3, "", parameter.alpha->allowedchars); + report(RPT_DEBUG, "%*sminlength = " ELEKTRA_LONG_F "\n", level + 3, "", parameter.alpha->minlength); + report(RPT_DEBUG, "%*smaxlength = " ELEKTRA_LONG_F "\n", level + 3, "", parameter.alpha->maxlength); + report(RPT_DEBUG, "%*svalue = \"%s\"\n", level + 3, "", parameter.alpha->value); + report(RPT_DEBUG, "%*s}\n", level + 2, ""); + break; + case COMMAND_PARAMETER_TYPE_IP: + report(RPT_DEBUG, "%*sIp("ELEKTRA_LONG_F") {\n", level + 2, parameter.ip->id); + report(RPT_DEBUG, "%*sdisplayname = %s\n", level + 3, "", parameter.ip->displayname); + report(RPT_DEBUG, "%*senvname = %s\n", level + 3, "", parameter.ip->envname); + report(RPT_DEBUG, "%*sv6 = %s\n", level + 3, "", parameter.ip->v6 ? "true" : "false"); + report(RPT_DEBUG, "%*svalue = %s\n", level + 3, "", parameter.ip->value); + report(RPT_DEBUG, "%*s}\n", level + 2, ""); + break; } - - if (me->name != NULL) - free(me->name); - me->name = NULL; - - if (me->displayname != NULL) - free(me->displayname); - me->displayname = NULL; - - me->type = MT_UNKNOWN; - - free(me); } -} + report(RPT_DEBUG, "%*s]\n", level + 1, ""); + report(RPT_DEBUG, "%*s}\n", level, ""); +} -#if defined(DEBUG) /** dump menu entry hierarchy to screen */ -void menu_dump(MenuEntry *me) +void menu_dump(Menu *menu, int level) { - if (me != NULL) { - /* the quick way out */ - if (me->type & MT_ACTION) - return; - - report(RPT_DEBUG, "# menu ID: %d", me->id); - report(RPT_DEBUG, "[%s]", me->name); - if (me->displayname != NULL) - report(RPT_DEBUG, "DisplayName=\"%s\"", me->displayname); - - switch (me->type) { - MenuEntry *entry; - - case MT_MENU: - // dump menu entry references - for (entry = me->children; entry != NULL; entry = entry->next) - report(RPT_DEBUG, "Entry=%s", entry->name); - report(RPT_DEBUG, ""); - - // recursively walk through sub-menus - for (entry = me->children; entry != NULL; entry = entry->next) - menu_dump(entry); - break; - case MT_EXEC: - report(RPT_DEBUG, "Exec=\"%s\"", me->data.exec.command); - report(RPT_DEBUG, "Feedback=%s", boolValueName[me->data.exec.feedback]); - - // dump entry's parameter referencess - for (entry = me->children; entry != NULL; entry = entry->next) - report(RPT_DEBUG, "Parameter=%s", entry->name); - report(RPT_DEBUG, ""); - - // dump entry's parameters - for (entry = me->children; entry != NULL; entry = entry->next) - menu_dump(entry); - break; - case MT_ARG_SLIDER: - report(RPT_DEBUG, "Type=slider"); - report(RPT_DEBUG, "Value=%d", me->data.slider.value); - report(RPT_DEBUG, "MinValue=%d", me->data.slider.minval); - report(RPT_DEBUG, "MaxValue=%d", me->data.slider.maxval); - report(RPT_DEBUG, "Stepsize=%d", me->data.slider.stepsize); - report(RPT_DEBUG, "MinText=%s", me->data.slider.mintext); - report(RPT_DEBUG, "MaxText=%s", me->data.slider.maxtext); - report(RPT_DEBUG, ""); - break; - case MT_ARG_RING: - report(RPT_DEBUG, "Type=ring"); - report(RPT_DEBUG, "Value: %d", me->data.ring.value); - { - int i; + if (menu == NULL) + { + return; + } - for (i = 0; me->data.ring.strings[i] != NULL; i++) - report(RPT_DEBUG, "String=\"%s\"", me->data.ring.strings[i]); - } - report(RPT_DEBUG, ""); - break; - case MT_ARG_NUMERIC: - report(RPT_DEBUG, "Type=numeric"); - report(RPT_DEBUG, "Value=%d", me->data.numeric.value); - report(RPT_DEBUG, "MinValue=%d", me->data.numeric.minval); - report(RPT_DEBUG, "MaxValue=%d", me->data.numeric.maxval); - report(RPT_DEBUG, ""); - break; - case MT_ARG_ALPHA: - report(RPT_DEBUG, "Type:=lpha"); - report(RPT_DEBUG, "Value=\"%s\"", me->data.alpha.value); - report(RPT_DEBUG, "AllowedChars=\"%s\"", me->data.alpha.allowed); - report(RPT_DEBUG, ""); - break; - case MT_ARG_IP: - report(RPT_DEBUG, "Type=ip"); - report(RPT_DEBUG, "Value=\"%s\"", me->data.ip.value); - report(RPT_DEBUG, "V6=%s", boolValueName[me->data.ip.v6]); - report(RPT_DEBUG, ""); - break; - case MT_ARG_CHECKBOX: - report(RPT_DEBUG, "Type=ip"); - report(RPT_DEBUG, "Value=%s", triGrayValueName[me->data.checkbox.value]); - report(RPT_DEBUG, "AllowGray=%s", boolValueName[me->data.checkbox.allow_gray]); - if (me->data.checkbox.map[0] != NULL) - report(RPT_DEBUG, "OffText=%s", me->data.checkbox.map[0]); - if (me->data.checkbox.map[1] != NULL) - report(RPT_DEBUG, "OnText=%s", me->data.checkbox.map[1]); - if (me->data.checkbox.map[2] != NULL) - report(RPT_DEBUG, "GrayText=%s", me->data.checkbox.map[2]); - report(RPT_DEBUG, ""); - break; - default: - report(RPT_DEBUG, "ERROR: unknown menu entry type"); - break; + report(RPT_DEBUG, "%*sMenu("ELEKTRA_LONG_F") {\n", level, "", menu->id); + report(RPT_DEBUG, "%*sdisplayname = \"%s\"\n", level + 1, "", menu->displayname); + report(RPT_DEBUG, "%*sentries = [\n", level + 1, ""); + + for (kdb_long_long_t i = 0; i < menu->entriesSize; ++i) + { + switch (menu->entryTypes[i]) + { + case MENU_ENTRY_TYPE_MENU: + menu_dump(menu->entries[i].menu, level + 2); + break; + case MENU_ENTRY_TYPE_COMMAND: + command_dump(menu->entries[i].command, level + 2); + break; } - } + + report(RPT_DEBUG, "%*s]\n", level + 1, ""); + report(RPT_DEBUG, "%*s}\n", level, ""); } #endif diff --git a/clients/lcdexec/menu.h b/clients/lcdexec/menu.h index f0400b7b..8b1a6027 100644 --- a/clients/lcdexec/menu.h +++ b/clients/lcdexec/menu.h @@ -16,89 +16,143 @@ /* boolean values */ #ifndef TRUE -# define TRUE 1 +#define TRUE 1 #endif #ifndef FALSE -# define FALSE 0 +#define FALSE 0 #endif +#include -/** Symbolic names for the types of a MenuEntry */ -typedef enum { - MT_UNKNOWN = 0x00, /**< Unknown MenuEntry type. */ - MT_MENU = 0x10, /**< MenuEntry representing a menu. */ - MT_EXEC = 0x20, /**< MenuEntry representing an executable command. */ - MT_ARGUMENT = 0x40, /**< Mask denoting a parameter of any type */ - MT_ACTION = 0x80, /**< Automatically generated action menu */ - - MT_ARG_SLIDER = 0x41, /**< MenuEntry representing a slider parameter. */ - MT_ARG_RING = 0x42, /**< MenuEntry representing a ring parameter. */ - MT_ARG_NUMERIC = 0x43, /**< MenuEntry representing a numeric input parameter. */ - MT_ARG_ALPHA = 0x44, /**< MenuEntry representing a alpha input parameter. */ - MT_ARG_IP = 0x45, /**< MenuEntry representing a IP input parameter. */ - MT_ARG_CHECKBOX = 0x46, /**< MenuEntry representing a checkbox input parameter. */ -} MenuType; - - -/** Data structure to hold a menu entry in \c lcdexec */ -typedef struct menu_entry { - // Variables necessary for multiple/all types - char *name; /**< Name of the menu entry (from section name). */ - char *displayname; /**< Visible name of the entry. */ - int id; /**< Internal ID of the entry. */ - MenuType type; /**< Type of the entry. */ - struct menu_entry *parent; /**< Parent menu entry. */ - int numChildren; /**< # of child entries. */ - struct menu_entry *children; /**< Subordinate menu entries (for type \c MT_MENU & \c MT_EXEC). */ - struct menu_entry *next; /**< Next sibling menu entry (for type \c MT_MENU). */ - - // Variables specific to one special type - union data { - struct exec{ // elements necessary for type MT_EXEC - char *command; /**< Command to execute. */ - int feedback; /**< Feedback flag. */ - } exec; - struct slider { // elements necessary for type MT_ARG_SLIDER - int value; /**< Numeric value of slider. */ - int minval; /**< Minimal allowed value. */ - int maxval; /**< Maximal allowed value. */ - int stepsize; /**< Increments/decrement for value. */ - char *mintext; /**< Label for the min. value. */ - char *maxtext; /**< Label for the max. value. */ - } slider; - struct ring { // elements necessary for type MT_ARG_RING - int value; /**< Index into list of alternatives. */ - char **strings; /**< List of alternatives. */ - } ring; - struct numeric { // elements necessary for type MT_ARG_NUMERIC - int value; /**< Numeric input value. */ - int minval; /**< Minimal allowed value. */ - int maxval; /**< Maximal allowed value. */ - } numeric; - struct alpha { // elements necessary for type MT_ARG_ALPHA - char *value; /**< Text value. */ - int minlen; /**< Maximal allowed length. */ - int maxlen; /**< Minimal required length. */ - char *allowed; /**< Characters allowed in input. */ - } alpha; - struct ip { // elements necessary for type MT_ARG_IP - char *value; /**< IP address value. */ - int v6; /**< Flag: use IPv6 editing logic. */ - } ip; - struct checkbox { // elements necessary for type MT_ARG_CHECKBOX - int value; /**< Checkbox value. */ - int allow_gray; /**< Flag for tristate chechboxes. */ - char *map[3]; /**< Replacement strings for each value. */ - } checkbox; - } data; +typedef enum +{ + MENU_ENTRY_TYPE_COMMAND = 0, + MENU_ENTRY_TYPE_MENU = 1, +} MenuEntryType; + +typedef enum +{ + COMMAND_PARAMETER_TYPE_SLIDER = 0, + COMMAND_PARAMETER_TYPE_CHECKBOX = 1, + COMMAND_PARAMETER_TYPE_NUMERIC = 2, + COMMAND_PARAMETER_TYPE_RING = 3, + COMMAND_PARAMETER_TYPE_ALPHA = 4, + COMMAND_PARAMETER_TYPE_IP = 5, +} CommandParameterType; + +typedef enum +{ + CHECKBOX_STATE_OFF = 0, + CHECKBOX_STATE_ON = 1, + CHECKBOX_STATE_GRAY = 2, +} CheckboxState; + +typedef union +{ + struct SliderParameter * slider; + struct CheckboxParameter * checkbox; + struct NumericParameter * numeric; + struct RingParameter * ring; + struct AlphaParameter * alpha; + struct IpParameter * ip; +} CommandParameter; + +typedef union +{ + struct Command * command; + struct Menu * menu; } MenuEntry; +typedef struct Command +{ + kdb_long_t id; + kdb_long_t actionId; + const char *displayname; + const char *exec; + kdb_boolean_t feedback; + kdb_long_long_t parametersSize; + CommandParameterType *parameterTypes; + CommandParameter *parameters; +} Command; + +typedef struct Menu +{ + kdb_long_t id; + const char *displayname; + kdb_long_long_t entriesSize; + MenuEntryType *entryTypes; + MenuEntry *entries; +} Menu; + +typedef struct AlphaParameter +{ + kdb_long_t id; + const char *displayname; + const char *envname; + const char *allowedchars; + kdb_long_t minlength; + kdb_long_t maxlength; + const char *initialValue; + char *value; +} AlphaParameter; + +typedef struct CheckboxParameter +{ + kdb_long_t id; + const char *displayname; + const char *envname; + kdb_boolean_t allowgray; + const char *offtext; + const char *ontext; + const char *graytext; + CheckboxState value; +} CheckboxParameter; + +typedef struct IpParameter +{ + kdb_long_t id; + const char *displayname; + const char *envname; + kdb_boolean_t v6; + const char *initialValue; + char *value; +} IpParameter; + +typedef struct NumericParameter +{ + kdb_long_t id; + const char *displayname; + const char *envname; + kdb_long_t minvalue; + kdb_long_t maxvalue; + kdb_long_t value; +} NumericParameter; + +typedef struct RingParameter +{ + kdb_long_t id; + const char *displayname; + const char *envname; + kdb_long_long_t stringsSize; + const char **strings; + kdb_long_t value; +} RingParameter; + +typedef struct SliderParameter +{ + kdb_long_t id; + const char *displayname; + const char *envname; + const char *mintext; + const char *maxtext; + kdb_long_t minvalue; + kdb_long_t maxvalue; + kdb_long_t stepsize; + kdb_long_t value; +} SliderParameter; -MenuEntry *menu_read(MenuEntry *parent, const char *name); -int menu_sock_send(MenuEntry *me, MenuEntry *parent, int sock); -MenuEntry *menu_find_by_id(MenuEntry *me, int id); -const char *menu_command(MenuEntry *me); -void menu_free(MenuEntry *me); -void menu_dump(MenuEntry *me); +int main_menu_sock_send(Menu *menu, int sock); +void main_menu_process(Menu *menu); +void menu_dump(Menu *menu, int level); #endif diff --git a/clients/lcdexec/specification/lcdexec-spec.ini b/clients/lcdexec/specification/lcdexec-spec.ini index 60c7744c..1f73f13f 100644 --- a/clients/lcdexec/specification/lcdexec-spec.ini +++ b/clients/lcdexec/specification/lcdexec-spec.ini @@ -1,7 +1,9 @@ +; using /_/ is not possible with current spec setup + [] mountpoint = lcdexec.conf ;infos/plugins = dump validation enum range ipaddr path -infos/plugin = dump validation enum +infos/plugin = ini validation type [lcdexec/address] check/ipaddr = @@ -9,6 +11,8 @@ type = string check/type = string default = 127.0.0.1 description = Address of the LCDd server +opt = a +opt/long = address [lcdexec/port] check/port = @@ -16,6 +20,8 @@ type = unsigned_short check/type = unsigned_short default = 13666 description = Port to attach to LCDd server +opt = p +opt/long = port [lcdexec/reportlevel] type = unsigned_short @@ -23,18 +29,25 @@ check/type = unsigned_short check/range = 0-5 default = 2 description = Sets the reporting level, defaults to warnings and errors only. +opt = r +opt/long = report-level [lcdexec/reporttosyslog] type = boolean check/type = boolean -default = no +default = 0 ; TODO (elektra): fix description = Should we report to syslog instead of stderr? +opt = s +opt/long = report-to-syslog [lcdexec/foreground] type = boolean check/type = boolean -default = false +default = 0 ; TODO (elektra): fix description = "whether to run in foreground" +opt = f +opt/long = foreground +opt/arg = none [lcdexec/pidfile] type = string @@ -49,6 +62,7 @@ check/type = string ;check/path = default = /bin/sh description = "shell to use for executing programs; any shell that understands: -c COMMAND" +env = SHELL [lcdexec/displayname] type = string @@ -56,250 +70,462 @@ check/type = string default = lcdexec description = "display name for the main menu" -[lcdexec/menu/main] +[menu/main] +type = struct_ref +check/type = any +default = "" ; TODO (elektra): should be required check/reference = single -check/reference/restrict = ../menu/* +check/reference/restrict = ../menu/# description = "reference to the main menu" -require = -[lcdexec/menu/menu/_/displayname] +[menu/menu/#] +type = struct +check/type = any +default = "" +gen/struct/type = Menu +gen/struct/alloc = 1 +gen/struct/create = 0 + +[menu/menu/#/type] +type = discriminator +check/type = enum +check/enum = #1 +check/enum/#0 = command +check/enum/#1 = menu +default = menu ; TODO (elektra): should be constant +gen/enum/type = MenuEntryType +gen/enum/create = 0 + +[menu/menu/#/displayname] type = string check/type = string -; default = should default to the _ part of the key +default = "" ; TODO (elektra): should be required description = "name to display in the parent menu" -[lcdexec/menu/menu/_/entry] +[menu/menu/#/entries] check/reference = recursive -check/reference/restrict/#0 = ../../../command/* -check/reference/restrict/#1 = ../../../menu/* +check/reference/restrict = #1 +check/reference/restrict/#0 = ../../../command/# +check/reference/restrict/#1 = ../../../menu/# description = "array of references to entries (commands or sub-menus) in this menu" -[lcdexec/menu/command/_/entry] +[menu/menu/#/entries/#] +type = struct_ref +check/type = any +default = "" +gen/reference/discriminator = entryTypes +gen/reference/discriminator/key = type +gen/reference/discriminator/enum = MenuEntryType +gen/reference/discriminator/union = MenuEntry +gen/reference/restrict/#0/discriminator = command +gen/reference/restrict/#1/discriminator = menu +gen/union/create = 0 + +[menu/command/#] +type = struct +check/type = any +default = "" +gen/struct/type = Command +gen/struct/alloc = 1 +gen/struct/create = 0 + +[menu/command/#/type] +type = discriminator +check/type = enum +check/enum = #1 +check/enum/#0 = command +check/enum/#1 = menu +default = command ; TODO (elektra): should be constant +gen/enum/type = MenuEntryType +gen/enum/create = 0 + +[menu/command/#/entries] check/reference/restrict = -[lcdexec/menu/command/_/parameter] +[menu/command/#/parameters] check/reference = single -check/reference/restrict/#0 = ../../../parameter/slider/* -check/reference/restrict/#1 = ../../../parameter/checkbox/* -check/reference/restrict/#2 = ../../../parameter/numeric/* -check/reference/restrict/#3 = ../../../parameter/ring/* -check/reference/restrict/#4 = ../../../parameter/alpha/* -check/reference/restrict/#5 = ../../../parameter/ip/* - -[lcdexec/menu/command/_/displayname] +check/reference/restrict = #5 +check/reference/restrict/#0 = ../../../parameter/slider/# +check/reference/restrict/#1 = ../../../parameter/checkbox/# +check/reference/restrict/#2 = ../../../parameter/numeric/# +check/reference/restrict/#3 = ../../../parameter/ring/# +check/reference/restrict/#4 = ../../../parameter/alpha/# +check/reference/restrict/#5 = ../../../parameter/ip/# + +[menu/command/#/parameters/#] +type = struct_ref +check/type = any +default = "" +gen/reference/discriminator = parameterTypes +gen/reference/discriminator/key = type +gen/reference/discriminator/enum = CommandParameterType +gen/reference/discriminator/union = CommandParameter +gen/reference/restrict/#0/discriminator = slider +gen/reference/restrict/#1/discriminator = checkbox +gen/reference/restrict/#2/discriminator = numeric +gen/reference/restrict/#3/discriminator = ring +gen/reference/restrict/#4/discriminator = alpha +gen/reference/restrict/#5/discriminator = ip +gen/union/create = 0 + +[menu/command/#/displayname] type = string check/type = string -; default = should default to the _ part of the key +default = "" description = "name to display in the menu" -[lcdexec/menu/command/_/exec] +[menu/command/#/exec] type = string check/type = string -default = "" +default = "" ; TODO (elektra): should be required description = "what the command should do" -[lcdexec/menu/command/_/feedback] +[menu/command/#/feedback] type = boolean check/type = boolean -default = no +default = 0 ; TODO (elektra): fix description = "show a temporary feedback screen upon completion" -[lcdexec/menu/parameter/slider/_/displayname] +[menu/parameter/slider/#] +type = struct +check/type = any +default = "" +gen/struct/type = SliderParameter +gen/struct/alloc = 1 +gen/struct/create = 0 + +[menu/parameter/slider/#/type] +type = discriminator +check/type = enum +check/enum = #5 +check/enum/#0 = slider +check/enum/#1 = checkbox +check/enum/#2 = numeric +check/enum/#3 = ring +check/enum/#4 = alpha +check/enum/#5 = ip +default = slider ; TODO (elektra): should be constant +gen/enum/type = CommandParameterType +gen/enum/create = 0 + +[menu/parameter/slider/#/displayname] type = string check/type = string -; default = should default to the _ part of the key +default = "" description = "name to display in the command" -[lcdexec/menu/parameter/slider/_/envname] +[menu/parameter/slider/#/envname] type = string check/type = string -; default = should default to the _ part of the key, but in all-caps +default = "" ; TODO (elektra): should be required description = "name of the environment variable used by the parameter" -[lcdexec/menu/parameter/slider/_/Value] +[menu/parameter/slider/#/value] type = long check/type = long default = 0 description = "initial value of the argument" -[lcdexec/menu/parameter/slider/_/MinValue] +[menu/parameter/slider/#/minvalue] type = long check/type = long default = 0 description = "minimum value of the argument" -[lcdexec/menu/parameter/slider/_/MaxValue] +[menu/parameter/slider/#/maxvalue] type = long check/type = long default = 1000 description = "maximum value of the argument" -[lcdexec/menu/parameter/checkbox/_/displayname] +[menu/parameter/slider/#/stepsize] +type = long +check/type = long +default = 1 +description = "step size used" + +[menu/parameter/slider/#/mintext] +type = string +check/type = string +default = "" +description = "Text at minimal value" + +[menu/parameter/slider/#/maxtext] +type = string +check/type = string +default = "" +description = "Text at maximal value" + +[menu/parameter/checkbox/#] +type = struct +check/type = any +default = "" +gen/struct/type = CheckboxParameter +gen/struct/alloc = 1 +gen/struct/create = 0 + +[menu/parameter/checkbox/#/type] +type = discriminator +check/type = enum +check/enum = #5 +check/enum/#0 = slider +check/enum/#1 = checkbox +check/enum/#2 = numeric +check/enum/#3 = ring +check/enum/#4 = alpha +check/enum/#5 = ip +default = checkbox ; TODO (elektra): should be constant +gen/enum/type = CommandParameterType +gen/enum/create = 0 + +[menu/parameter/checkbox/#/displayname] type = string check/type = string -; default = should default to the _ part of the key +default = "" description = "name to display in the command" -[lcdexec/menu/parameter/checkbox/_/envname] +[menu/parameter/checkbox/#/envname] type = string check/type = string -; default = should default to the _ part of the key, but in all-caps +default = "" ; TODO (elektra): should be required description = "name of the environment variable used by the parameter" -[lcdexec/menu/parameter/checkbox/_/Value] -type = boolean -check/type = boolean +[menu/parameter/checkbox/#/value] +type = enum +check/type = enum +check/enum = #2 +check/enum/#0 = off +check/enum/#1 = on +check/enum/#2 = gray default = off description = "initial value of the argument" +gen/enum/type = CheckboxState +gen/enum/create = 0 -[lcdexec/menu/parameter/checkbox/_/AllowGray] +[menu/parameter/checkbox/#/allowgray] type = boolean check/type = boolean -default = no +default = 0 ; TODO (elektra): fix description = whether to allow the third (gray) state -[lcdexec/menu/parameter/checkbox/_/OffText] +[menu/parameter/checkbox/#/offtext] type = string check/type = string description = text to display when in off state +default = "off" -[lcdexec/menu/parameter/checkbox/_/OnText] +[menu/parameter/checkbox/#/ontext] type = string check/type = string description = text to display when in on state +default = "on" -[lcdexec/menu/parameter/checkbox/_/GrayText] +[menu/parameter/checkbox/#/graytext] type = string check/type = string description = text to display when in gray state +default = "gray" -[lcdexec/menu/parameter/numeric/_/displayname] +[menu/parameter/numeric/#] +type = struct +check/type = any +default = "" +gen/struct/type = NumericParameter +gen/struct/alloc = 1 +gen/struct/create = 0 + +[menu/parameter/numeric/#/type] +type = discriminator +check/type = enum +check/enum = #5 +check/enum/#0 = slider +check/enum/#1 = checkbox +check/enum/#2 = numeric +check/enum/#3 = ring +check/enum/#4 = alpha +check/enum/#5 = ip +default = numeric ; TODO (elektra): should be constant +gen/enum/type = CommandParameterType +gen/enum/create = 0 + +[menu/parameter/numeric/#/displayname] type = string check/type = string -; default = should default to the _ part of the key +default = "" description = "name to display in the command" -[lcdexec/menu/parameter/numeric/_/envname] +[menu/parameter/numeric/#/envname] type = string check/type = string -; default = should default to the _ part of the key, but in all-caps +default = "" ; TODO (elektra): should be required description = "name of the environment variable used by the parameter" -[lcdexec/menu/parameter/numeric/_/value] +[menu/parameter/numeric/#/value] type = long check/type = long default = 0 description = "initial value of the argument" -[lcdexec/menu/parameter/numeric/_/minvalue] +[menu/parameter/numeric/#/minvalue] type = long check/type = long default = 0 description = "minimum value of the argument" -[lcdexec/menu/parameter/numeric/_/maxvalue] +[menu/parameter/numeric/#/maxvalue] type = long check/type = long default = 1000 description = "maximum value of the argument" -[lcdexec/menu/parameter/numeric/_/stepsize] -type = long -check/type = long -default = 1 -description = "step size used" - -[lcdexec/menu/parameter/numeric/_/mintext] -type = string -check/type = string -; default = defaults to MinValue -description = "Text at minimal value" - -[lcdexec/menu/parameter/numeric/_/maxtext] -type = string -check/type = string -; default = defaults to MaxValue -description = "Text at maximal value" - -[lcdexec/menu/parameter/ring/_/displayname] +[menu/parameter/ring/#] +type = struct +check/type = any +default = "" +gen/struct/type = RingParameter +gen/struct/alloc = 1 +gen/struct/create = 0 + +[menu/parameter/ring/#/type] +type = discriminator +check/type = enum +check/enum = #5 +check/enum/#0 = slider +check/enum/#1 = checkbox +check/enum/#2 = numeric +check/enum/#3 = ring +check/enum/#4 = alpha +check/enum/#5 = ip +default = ring ; TODO (elektra): should be constant +gen/enum/type = CommandParameterType +gen/enum/create = 0 + +[menu/parameter/ring/#/displayname] type = string check/type = string -; default = should default to the _ part of the key +default = "" description = "name to display in the command" -[lcdexec/menu/parameter/ring/_/envname] +[menu/parameter/ring/#/envname] type = string check/type = string -; default = should default to the _ part of the key, but in all-caps +default = "" ; TODO (elektra): should be required description = "name of the environment variable used by the parameter" -[lcdexec/menu/parameter/ring/_/value] +[menu/parameter/ring/#/value] type = long check/type = long default = 0 description = "initial value of the argument" -[lcdexec/menu/parameter/numeric/_/string/#] +[menu/parameter/ring/#/strings/#] type = string check/type = string description = "list of alternative strings to choose from" +default = "" ; TODO (elektra): should be required -[lcdexec/menu/parameter/alpha/_/displayname] +[menu/parameter/alpha/#] +type = struct +check/type = any +default = "" +gen/struct/type = AlphaParameter +gen/struct/alloc = 1 +gen/struct/create = 0 + +[menu/parameter/alpha/#/type] +type = discriminator +check/type = enum +check/enum = #5 +check/enum/#0 = slider +check/enum/#1 = checkbox +check/enum/#2 = numeric +check/enum/#3 = ring +check/enum/#4 = alpha +check/enum/#5 = ip +default = alpha ; TODO (elektra): should be constant +gen/enum/type = CommandParameterType +gen/enum/create = 0 + +[menu/parameter/alpha/#/displayname] type = string check/type = string -; default = should default to the _ part of the key +default = "" description = "name to display in the command" -[lcdexec/menu/parameter/alpha/_/envname] +[menu/parameter/alpha/#/envname] type = string check/type = string -; default = should default to the _ part of the key, but in all-caps +default = "" ; TODO (elektra): should be required description = "name of the environment variable used by the parameter" -[lcdexec/menu/parameter/alpha/_/value] +[menu/parameter/alpha/#/value] type = string check/type = string default = "" description = "initial value of the argument" +gen/struct/field = initialValue -[lcdexec/menu/parameter/alpha/_/allowedchars] +[menu/parameter/alpha/#/allowedchars] type = string check/type = string default = ABCDEFGHIJKLMNOPQRSTUVWXYZ description = "range of characters allowed" -[lcdexec/menu/parameter/alpha/_/minlength] +[menu/parameter/alpha/#/minlength] type = long check/type = long default = 0 description = "minimum length of the argument" -[lcdexec/menu/parameter/alpha/_/maxlength] +[menu/parameter/alpha/#/maxlength] type = long check/type = long default = 100 description = "maximum length of the argument" -[lcdexec/menu/parameter/ip/_/displayname] +[menu/parameter/ip/#] +type = struct +check/type = any +default = "" +gen/struct/type = IpParameter +gen/struct/alloc = 1 +gen/struct/create = 0 + +[menu/parameter/ip/#/type] +type = discriminator +check/type = enum +check/enum = #5 +check/enum/#0 = slider +check/enum/#1 = checkbox +check/enum/#2 = numeric +check/enum/#3 = ring +check/enum/#4 = alpha +check/enum/#5 = ip +default = ip ; TODO (elektra): should be constant +gen/enum/type = CommandParameterType +gen/enum/create = 0 + +[menu/parameter/ip/#/displayname] type = string check/type = string -; default = should default to the _ part of the key +default = "" description = "name to display in the command" -[lcdexec/menu/parameter/ip/_/envname] +[menu/parameter/ip/#/envname] type = string check/type = string -; default = should default to the _ part of the key, but in all-caps +default = "" ; TODO (elektra): should be required description = "name of the environment variable used by the parameter" -[lcdexec/menu/parameter/ip/_/value] +[menu/parameter/ip/#/value] type = string check/type = string default = "" description = "initial value of the argument" +gen/struct/field = initialValue -[lcdexec/menu/parameter/ip/_/v6] +[menu/parameter/ip/#/v6] type = boolean check/type = boolean -default = no +default = 0 ; TODO (elektra): fix description = "whether or not to use IPv6" \ No newline at end of file diff --git a/lcdexec_spec.ini b/lcdexec_spec.ini new file mode 100644 index 0000000000000000000000000000000000000000..476aa7a088354af212a5abcdeb6b58fff1f55ef7 GIT binary patch literal 8 PcmZ?uc5z~0U|<3O2O$9& literal 0 HcmV?d00001 From 105b9f0d2c6e9448c19e22789c4c89b888bd2c51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Wed, 22 May 2019 22:27:27 +0200 Subject: [PATCH 16/72] lcdexec: fix bug --- clients/lcdexec/lcdexec.c | 2 +- clients/lcdexec/menu.c | 38 ++++++++++++++++++++++++-------------- 2 files changed, 25 insertions(+), 15 deletions(-) diff --git a/clients/lcdexec/lcdexec.c b/clients/lcdexec/lcdexec.c index 21455be5..f85b1942 100644 --- a/clients/lcdexec/lcdexec.c +++ b/clients/lcdexec/lcdexec.c @@ -459,7 +459,7 @@ static int process_response(char *str) } /* Find the entry by id */ - Command * command; + Command * command; // TODO (elektra): last entry of command with args? if (!find_triggered_command(main_menu, atoi(argv[2]), &command)) { report(RPT_WARNING, "Could not find the item id given by the server"); free(str2); diff --git a/clients/lcdexec/menu.c b/clients/lcdexec/menu.c index 3a291cf2..f831ebdd 100644 --- a/clients/lcdexec/menu.c +++ b/clients/lcdexec/menu.c @@ -113,9 +113,14 @@ int main_menu_sock_send(Menu *menu, int sock) static int menu_sock_send(Menu *menu, Menu *parent, int sock) { + char parent_id[ELEKTRA_MAX_ARRAY_SIZE] = ""; // more than big enough + if (parent != NULL && parent->id > 0) { + snprintf(parent_id, ELEKTRA_MAX_ARRAY_SIZE-1, "%d", parent->id); + } + // create entry for the menu if (sock_printf(sock, "menu_add_item \"%s\" \"%d\" menu \"%s\"\n", - parent->id, menu->id, menu->displayname) < 0) + parent_id, menu->id, menu->displayname) < 0) return -1; return menu_entries_sock_send(menu, sock); @@ -143,20 +148,25 @@ static int menu_entries_sock_send(Menu *menu, int sock) static int command_sock_send(Command *command, Menu *parent, int sock) { + char parent_id[ELEKTRA_MAX_ARRAY_SIZE] = ""; // more than big enough + if (parent != NULL && parent->id > 0) { + snprintf(parent_id, ELEKTRA_MAX_ARRAY_SIZE-1, "%d", parent->id); + } + if (command->parametersSize == 0) { if (sock_printf(sock, "menu_add_item \"%s\" \"%d\" action \"%s\"\n", - parent->id, command->id, command->displayname) < 0) + parent_id, command->id, command->displayname) < 0) return -1; if (sock_printf(sock, "menu_set_item \"%s\" \"%d\" -menu_result quit\n", - parent->id, command->id) < 0) + parent_id, command->id) < 0) return -1; } else { if (sock_printf(sock, "menu_add_item \"%s\" \"%d\" menu \"%s\"\n", - parent->id, command->id, command->displayname) < 0) + parent_id, command->id, command->displayname) < 0) return -1; kdb_long_t lastId = 0; @@ -170,7 +180,7 @@ static int command_sock_send(Command *command, Menu *parent, int sock) if (sock_printf(sock, "menu_add_item \"%s\" \"%d\" slider -text \"%s\"" " -value %d -minvalue %d -maxvalue %d" " -mintext \"%s\" -maxtext \"%s\" -stepsize %d\n", - parent->id, param.slider->id, param.slider->displayname, + parent_id, param.slider->id, param.slider->displayname, param.slider->value, param.slider->minvalue, param.slider->maxvalue, @@ -185,7 +195,7 @@ static int command_sock_send(Command *command, Menu *parent, int sock) char *strValue = ELEKTRA_TO_STRING(EnumCheckboxState)(param.checkbox->value); int ret = sock_printf(sock, "menu_add_item \"%s\" \"%d\" checkbox -text \"%s\"" " -value %s -allow_gray %s\n", - parent->id, param.checkbox->id, param.checkbox->displayname, + parent_id, param.checkbox->id, param.checkbox->displayname, strValue, param.checkbox->allowgray ? "true" : "false"); if (ret < 0) return -1; @@ -196,7 +206,7 @@ static int command_sock_send(Command *command, Menu *parent, int sock) lastId = param.numeric->id; if (sock_printf(sock, "menu_add_item \"%s\" \"%d\" numeric -text \"%s\"" " -value %d -minvalue %d -maxvalue %d\n", - parent->id, param.numeric->id, param.numeric->displayname, + parent_id, param.numeric->id, param.numeric->displayname, param.numeric->value, param.numeric->minvalue, param.numeric->maxvalue) < 0) @@ -226,7 +236,7 @@ static int command_sock_send(Command *command, Menu *parent, int sock) if (sock_printf(sock, "menu_add_item \"%s\" \"%d\" ring -text \"%s\"" " -value %d -strings \"%s\"\n", - parent->id, param.ring->id, param.ring->displayname, + parent_id, param.ring->id, param.ring->displayname, param.ring->value, strings) < 0) return -1; @@ -238,7 +248,7 @@ static int command_sock_send(Command *command, Menu *parent, int sock) " -value \"%s\" -minlength %d -maxlength %d" " -allow_caps false -allow_noncaps false" " -allow_numbers false -allowed_extra \"%s\"\n", - parent->id, param.alpha->id, param.alpha->displayname, + parent_id, param.alpha->id, param.alpha->displayname, param.alpha->value, param.alpha->minlength, param.alpha->maxlength, @@ -249,7 +259,7 @@ static int command_sock_send(Command *command, Menu *parent, int sock) lastId = param.ip->id; if (sock_printf(sock, "menu_add_item \"%s\" \"%d\" ip -text \"%s\"" " -value \"%s\" -v6 %s\n", - parent->id, param.ip->id, param.ip->displayname, + parent_id, param.ip->id, param.ip->displayname, param.ip->value, param.ip->v6 ? "true" : "false") < 0) return -1; @@ -258,15 +268,15 @@ static int command_sock_send(Command *command, Menu *parent, int sock) } if (sock_printf(sock, "menu_set_item \"%s\" \"%d\" -next _quit_\n", - parent->id, lastId) < 0) + parent_id, lastId) < 0) return -1; if (sock_printf(sock, "menu_add_item \"%s\" \"%d\" action \"%s\"\n", - parent->id, command->actionId, "Apply!") < 0) + parent_id, command->actionId, "Apply!") < 0) return -1; if (sock_printf(sock, "menu_set_item \"%s\" \"%d\" -menu_result quit\n", - parent->id, command->actionId) < 0) + parent_id, command->actionId) < 0) return -1; } return 0; @@ -280,7 +290,7 @@ static void command_dump(Command *command, int level) return; } - report(RPT_DEBUG, "%*sCommand("ELEKTRA_LONG_F") {\n", level, command->id); + report(RPT_DEBUG, "%*sCommand("ELEKTRA_LONG_F") {\n", level, "", command->id); report(RPT_DEBUG, "%*sdisplayname = \"%s\"\n", level + 1, "", command->displayname); report(RPT_DEBUG, "%*sexec = \"%s\"\n", level + 1, "", command->exec); report(RPT_DEBUG, "%*sfeedback = %s\n", level + 1, "", command->feedback ? "true" : "false"); From eeb6ec217624da4f2c332a88d0d240c7ec21f42c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Wed, 22 May 2019 22:27:42 +0200 Subject: [PATCH 17/72] lcdproc: fix specification --- clients/lcdproc/main.c | 1 + .../lcdproc/specification/lcdproc-spec.ini | 33 ++----------------- 2 files changed, 3 insertions(+), 31 deletions(-) diff --git a/clients/lcdproc/main.c b/clients/lcdproc/main.c index de133a44..f2bf4cf2 100644 --- a/clients/lcdproc/main.c +++ b/clients/lcdproc/main.c @@ -220,6 +220,7 @@ clear_modes(void) int main(int argc, const char **argv) { + // only returns, if not in specload mode doSpecloadCheck (argc, argv); int cfgresult; diff --git a/clients/lcdproc/specification/lcdproc-spec.ini b/clients/lcdproc/specification/lcdproc-spec.ini index d380e5c8..bcc6f54b 100644 --- a/clients/lcdproc/specification/lcdproc-spec.ini +++ b/clients/lcdproc/specification/lcdproc-spec.ini @@ -43,6 +43,7 @@ default = 0 ; TODO (elektra): fix description = report to syslog ? opt = f opt/long = foreground +opt/arg = none [lcdproc/pidfile] type = string @@ -73,7 +74,7 @@ opt/long = version [lcdproc/screens/#] type = enum check/type = enum -check/enum = #_30 +check/enum = #_15 check/enum/#1 = cpu check/enum/#2 = iface check/enum/#3 = memory @@ -89,36 +90,6 @@ check/enum/#_12 = cpu_graph check/enum/#_13 = proc_size check/enum/#_14 = disk check/enum/#_15 = mini_clock -check/enum/#_16 = C -gen/enum/#_16/value = LCDPROC_SCREEN_CPU -check/enum/#_17 = I -gen/enum/#_17/value = LCDPROC_SCREEN_IFACE -check/enum/#_18 = M -gen/enum/#_18/value = LCDPROC_SCREEN_MEMORY -check/enum/#_19 = L -gen/enum/#_19/value = LCDPROC_SCREEN_LOAD -check/enum/#_20 = T -gen/enum/#_20/value = LCDPROC_SCREEN_TIME_DATE -check/enum/#_21 = A -gen/enum/#_21/value = LCDPROC_SCREEN_ABOUT -check/enum/#_22 = P -gen/enum/#_22/value = LCDPROC_SCREEN_SMP_CPU -check/enum/#_23 = O -gen/enum/#_23/value = LCDPROC_SCREEN_OLD_TIME -check/enum/#_24 = K -gen/enum/#_24/value = LCDPROC_SCREEN_BIG_CLOCK -check/enum/#_25 = U -gen/enum/#_25/value = LCDPROC_SCREEN_UPTIME -check/enum/#_26 = B -gen/enum/#_26/value = LCDPROC_SCREEN_BATTERY -check/enum/#_27 = G -gen/enum/#_27/value = LCDPROC_SCREEN_CPU_GRAPH -check/enum/#_28 = S -gen/enum/#_28/value = LCDPROC_SCREEN_PROC_SIZE -check/enum/#_29 = D -gen/enum/#_29/value = LCDPROC_SCREEN_DISK -check/enum/#_30 = N -gen/enum/#_30/value = LCDPROC_SCREEN_MINI_CLOCK gen/enum/type = LcdprocScreen default = "" ; TODO: opt doesn't need default args = remaining From e635115e94098ac15d879499bb8eaec942987539 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Wed, 22 May 2019 22:28:07 +0200 Subject: [PATCH 18/72] linux_input. elektrify with codegen --- server/driver.c | 6 +++ server/drivers/linux_input.c | 71 ++++++++---------------------- server/input.c | 2 +- server/specification/LCDd-spec.ini | 60 ++++++++++--------------- 4 files changed, 48 insertions(+), 91 deletions(-) diff --git a/server/driver.c b/server/driver.c index db10948e..5f4fa23b 100644 --- a/server/driver.c +++ b/server/driver.c @@ -111,6 +111,12 @@ driver_load(Elektra * elektra, const char * driverpath, kdb_long_long_t index) elektraWriteArrayNumber(&buf[sizeof("server/drivers/") - 1], index); const char * filekey = elektraFindReference(elektra, buf); + + if(filekey == NULL) { + report(RPT_ERR, "could not resolve reference stored in '%s'", buf); + free(buf); + return NULL; + } free(buf); size_t len_filekey = strlen(filekey); diff --git a/server/drivers/linux_input.c b/server/drivers/linux_input.c index 1f8c3e87..f010ea56 100644 --- a/server/drivers/linux_input.c +++ b/server/drivers/linux_input.c @@ -12,7 +12,6 @@ #include #include #include -#include #ifdef HAVE_CONFIG_H # include "config.h" @@ -23,6 +22,10 @@ #include "shared/report.h" #include "shared/LL.h" +#include "../elektragen.h" + +#include + #define LINUXINPUT_DEFAULT_DEVICE "/dev/input/event0" /** describe the button of a keycode */ @@ -31,39 +34,6 @@ struct keycode { char *button; }; -/** - * Parse key definition from config file - * \param configvalue value part of the config file entry - * \retval NULL Error. - * \retval else Pointer to newly allocated struct keycode. - */ -static struct keycode * -keycode_create(const char *configvalue) -{ - int code; - char *button; - struct keycode *ret; - - code = atoi(configvalue); - if (code < 0 || code > UINT16_MAX) - return NULL; - - button = strchr(configvalue,','); - if (!button) - return NULL; - button = strdup(&button[1]); - if (!button) - return NULL; - - ret = malloc(sizeof(*ret)); - if (ret) { - ret->code = code; - ret->button = button; - } - - return ret; -} - /** private data for the linux event device driver */ typedef struct linuxInput_private_data { int fd; @@ -87,13 +57,8 @@ MODULE_EXPORT char *symbol_prefix = "linuxInput_"; MODULE_EXPORT int linuxInput_init (Driver *drvthis, Elektra * elektra) { - PrivateData *p; - const char *s; - struct keycode *key; - int i; - - /* Allocate and store private data */ - p = (PrivateData *) calloc(1, sizeof(PrivateData)); + /* Allocate and store private data */ + PrivateData *p = (PrivateData *) calloc(1, sizeof(PrivateData)); if (p == NULL) return -1; if (drvthis->store_private_ptr(drvthis, p)) @@ -106,26 +71,26 @@ linuxInput_init (Driver *drvthis, Elektra * elektra) return -1; } - /* Read config file */ + /* Read config */ + /* not using struct, since it is inconvenient for keymap */ /* What device should be used */ - s = drvthis->config_get_string(drvthis->name, "Device", 0, - LINUXINPUT_DEFAULT_DEVICE); - report(RPT_INFO, "%s: using Device %s", drvthis->name, s); + const char * device = elektraGetV(elektra, ELEKTRA_TAG_LINUX_INPUT_DEVICE, drvthis->index); + report(RPT_INFO, "%s: using Device %s", drvthis->name, device); - if ((p->fd = open(s, O_RDONLY | O_NONBLOCK)) < 0) { + if ((p->fd = open(device, O_RDONLY | O_NONBLOCK)) < 0) { report(RPT_ERR, "%s: open(%s) failed (%s)", - drvthis->name, s, strerror(errno)); + drvthis->name, device, strerror(errno)); return -1; } - for (i = 0; (s = drvthis->config_get_string(drvthis->name, "key", i, NULL)) != NULL; i++) { - if ((key = keycode_create(s)) == NULL) { - report(RPT_ERR, "%s: parsing configvalue '%s' failed", - drvthis->name, s); - continue; - } + kdb_long_long_t size = elektraSizeV(elektra, ELEKTRA_TAG_LINUX_INPUT_KEYS, drvthis->index); + + for (kdb_long_long_t i = 0; i < size; ++i) { + struct keycode * key = malloc(sizeof(struct keycode)); + key->code = elektraGetV(elektra, ELEKTRA_TAG_LINUX_INPUT_KEYS_CODE, drvthis->index, i); + key->button = strdup(elektraGetV(elektra, ELEKTRA_TAG_LINUX_INPUT_KEYS_BUTTON, drvthis->index, i)); LL_AddNode(p->buttonmap, key); } diff --git a/server/input.c b/server/input.c index 9508933b..8f9776df 100644 --- a/server/input.c +++ b/server/input.c @@ -100,7 +100,7 @@ void handle_input(void) /* Find what client wants the key */ kr = input_find_key(key, current_client); - if (kr) { + if (kr && kr->client) { /* A hit ! */ debug(RPT_DEBUG, "%s: reserved key: \"%.40s\"", __FUNCTION__, key); sock_printf(kr->client->sock, "key %s\n", key); diff --git a/server/specification/LCDd-spec.ini b/server/specification/LCDd-spec.ini index e8d8cb8e..56203f62 100644 --- a/server/specification/LCDd-spec.ini +++ b/server/specification/LCDd-spec.ini @@ -2548,31 +2548,6 @@ type = string default = "linux_input" description = name of the shared library to load (without prefix and extension) -[linux_input/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast - -[linux_input/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 - -[linux_input/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 - -[linux_input/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): fix -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - [linux_input/#/device] type = string check/type = string @@ -2580,13 +2555,30 @@ check/type = string default = /dev/input/event0 description = "select the device to use" -[linux_input/#/key/_] -type = string -check/type = any +[linux_input/#/keys] default = "" +array = #0 description = "specify a non-default key map, eg.: -/linux_input/key/#01 = 1 -/linux_input/key/#28 = Enter" + /linux_input/key/#0/code = 1 + /linux_input/key/#0/button = Enter + sets the keycode 1 to be the Enter key" + +[linux_input/#/keys/#] +type = string +default = "" +gen/struct/field/ignore = 1 +description = "INGORE: only here to generate tag" + +[linux_input/#/keys/#/code] +type = unsigned_short +check/type = unsigned_short +default = 0 ; should be required + +[linux_input/#/keys/#/button] +type = string +check/type = string +default = "" ; should be required + ;lirc ;================================================== @@ -4670,12 +4662,6 @@ check/type = unsigned_short default = 0 check/range = 0-1000 -[xosd/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): fix -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - [xosd/#/size] type = string check/type = string @@ -4694,7 +4680,7 @@ check/validation/message = Not a valid offset declaration. Examples: 200x200 default = 0x0 description = "Offset in pixels from the top-left corner of the monitor [default: 0x0]" -[xosd/#/Font] +[xosd/#/font] type = string check/type = string default = "-*-terminus-*-r-*-*-*-320-*-*-*-*-*" From b01933dc09f48c4535ce2d2967832a529538a09e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Wed, 22 May 2019 22:28:23 +0200 Subject: [PATCH 19/72] xosd: elektrify with codegen --- server/drivers/xosdlib_drv.c | 88 +++++++++++++----------------------- 1 file changed, 31 insertions(+), 57 deletions(-) diff --git a/server/drivers/xosdlib_drv.c b/server/drivers/xosdlib_drv.c index 8f678530..b8bbd20d 100644 --- a/server/drivers/xosdlib_drv.c +++ b/server/drivers/xosdlib_drv.c @@ -44,6 +44,8 @@ #include "xosdlib_drv.h" #include "adv_bignum.h" +#include "../elektragen.h" + static char icon_char = '@'; @@ -63,15 +65,8 @@ MODULE_EXPORT char *symbol_prefix = "xosdlib_drv_"; MODULE_EXPORT int xosdlib_drv_init (Driver *drvthis, Elektra * elektra) { - const char *size; - const char *offset; - int x, y; - int tmp; - - PrivateData *p; - /* Allocate and store private data */ - p = (PrivateData *) calloc(1, sizeof(PrivateData)); + PrivateData *p = (PrivateData *) calloc(1, sizeof(PrivateData)); if (p == NULL) return -1; if (drvthis->store_private_ptr(drvthis, p)) @@ -85,74 +80,53 @@ xosdlib_drv_init (Driver *drvthis, Elektra * elektra) debug(RPT_DEBUG, "%s(%p)", __FUNCTION__, drvthis); - /* Read config file */ + /* Read config */ + XosdDriverConfig config; + elektraGet2V(elektra, &config, ELEKTRA_TAG_XOSD, drvthis->index); /* Which size */ - if (drvthis->config_has_key(drvthis->name, "Size")) { - int w; - int h; - - size = drvthis->config_get_string(drvthis->name, "Size", 0, DEFAULT_SIZE); - debug(RPT_INFO, "%s: Size (in config) is '%s'", __FUNCTION__, size); - if ((sscanf(size, "%dx%d", &w, &h) != 2) || - (w <= 0) || (w > LCD_MAX_WIDTH) || - (h <= 0) || (h > LCD_MAX_HEIGHT)) { - report(RPT_WARNING, "%s: cannot read Size: %s. using default %s", - drvthis->name, size, DEFAULT_SIZE); - sscanf(DEFAULT_SIZE, "%dx%d", &w, &h); - } - p->width = w; - p->height = h; - } - else { - /* Determine the size of the screen */ + if ((drvthis->request_display_width() > 0) + && (drvthis->request_display_height() > 0)) { + /* If this driver is secondary driver, use size from primary driver */ p->width = drvthis->request_display_width(); p->height = drvthis->request_display_height(); - if ((p->width <= 0) || (p->width >= LCD_MAX_WIDTH) || - (p->height <= 0) || (p->height >= LCD_MAX_HEIGHT)) { - p->width = LCD_DEFAULT_WIDTH; - p->height = LCD_DEFAULT_HEIGHT; + } + else { + /* Use our own size from config file */ + if ((sscanf(config.size , "%dx%d", &p->width, &p->height) != 2) + || (p->width <= 0) || (p->width > LCD_MAX_WIDTH) + || (p->height <= 0) || (p->height > LCD_MAX_HEIGHT)) { + report(RPT_WARNING, "%s: cannot read Size: %s; using default %s", + drvthis->name, config.size, DEFAULT_SIZE); + sscanf(DEFAULT_SIZE, "%dx%d", &p->width, &p->height); } } report(RPT_INFO, "%s: using size %dx%d", drvthis->name, p->width, p->height); /* Which x/y offsets */ - offset = drvthis->config_get_string(drvthis->name, "Offset", 0, DEFAULT_OFFSET); - debug(RPT_INFO, "%s: Offset (in config) is '%s'", __FUNCTION__, offset); - if (sscanf(offset, "%dx%d", &x, &y) != 2) { + debug(RPT_INFO, "%s: Offset (in config) is '%s'", __FUNCTION__, config.offset); + if (sscanf(config.offset, "%dx%d", &p->xoffs, &p->yoffs) != 2) { report(RPT_WARNING, "%s: cannot read Offset: %s. using default %s", - drvthis->name, offset, DEFAULT_OFFSET); - sscanf(DEFAULT_OFFSET, "%dx%d", &x, &y); + drvthis->name, config.offset, DEFAULT_OFFSET); + sscanf(DEFAULT_OFFSET, "%dx%d", &p->xoffs, &p->yoffs); } - p->xoffs= x; - p->yoffs = y; - report(RPT_INFO, "%s: using offset %dx%d", drvthis->name, p->xoffs, p->yoffs); /* Which backlight brightness */ - tmp = drvthis->config_get_int(drvthis->name, "Brightness", 0, DEFAULT_BRIGHTNESS); - debug(RPT_INFO, "%s: Brightness (in config) is '%d'", __FUNCTION__, tmp); - if ((tmp < 0) || (tmp > 1000)) { - report(RPT_WARNING, "%s: Brightness must be between 0 and 1000; using default %d", - drvthis->name, DEFAULT_BRIGHTNESS); - tmp = DEFAULT_BRIGHTNESS; - } - p->brightness = tmp; + debug(RPT_INFO, "%s: Brightness (in config) is '%d'", __FUNCTION__, config.brightness); + p->brightness = config.brightness; /* Which backlight-off "brightness" */ - tmp = drvthis->config_get_int(drvthis->name, "OffBrightness", 0, DEFAULT_OFFBRIGHTNESS); - debug(RPT_INFO, "%s: OffBrightness (in config) is '%d'", __FUNCTION__, tmp); - if ((tmp < 0) || (tmp > 1000)) { - report(RPT_WARNING, "%s: OffBrightness must be between 0 and 1000; using default %d", - drvthis->name, DEFAULT_OFFBRIGHTNESS); - tmp = DEFAULT_OFFBRIGHTNESS; - } - p->offbrightness = tmp; + debug(RPT_INFO, "%s: OffBrightness (in config) is '%d'", __FUNCTION__, config.offbrightness); + p->offbrightness = config.offbrightness; + + /* Which contrast */ + debug(RPT_INFO, "%s: Contrast (in config) is '%d'", __FUNCTION__, config.contrast); + p->contrast = config.contrast; /* which font */ - strncpy(p->font, drvthis->config_get_string(drvthis->name, "Font", - 0, DEFAULT_FONT), sizeof(p->font)); + strncpy(p->font, config.font, sizeof(p->font)); p->font[sizeof(p->font) - 1] = '\0'; debug(RPT_INFO, "%s: Font (in config) is '%s'", __FUNCTION__, p->font); From 392ac4e6f47ddc12e0ccd4b0445b251a3209c0eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Sat, 25 May 2019 21:45:44 +0200 Subject: [PATCH 20/72] all: update to use enum to_const_string --- clients/lcdexec/menu.c | 4 ++-- server/drivers/curses_drv.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/clients/lcdexec/menu.c b/clients/lcdexec/menu.c index f831ebdd..1c58ead0 100644 --- a/clients/lcdexec/menu.c +++ b/clients/lcdexec/menu.c @@ -192,7 +192,7 @@ static int command_sock_send(Command *command, Menu *parent, int sock) case COMMAND_PARAMETER_TYPE_CHECKBOX: { lastId = param.checkbox->id; - char *strValue = ELEKTRA_TO_STRING(EnumCheckboxState)(param.checkbox->value); + const char *strValue = ELEKTRA_TO_CONST_STRING(EnumCheckboxState)(param.checkbox->value); int ret = sock_printf(sock, "menu_add_item \"%s\" \"%d\" checkbox -text \"%s\"" " -value %s -allow_gray %s\n", parent_id, param.checkbox->id, param.checkbox->displayname, @@ -343,7 +343,7 @@ static void command_dump(Command *command, int level) report(RPT_DEBUG, "%*sontext = \"%s\"\n", level + 3, "", parameter.checkbox->ontext); report(RPT_DEBUG, "%*sofftext = \"%s\"\n", level + 3, "", parameter.checkbox->offtext); report(RPT_DEBUG, "%*sgraytext = \"%s\"\n", level + 3, "", parameter.checkbox->graytext); - char *strValue = ELEKTRA_TO_STRING(EnumCheckboxState)(parameter.checkbox->value); + const char *strValue = ELEKTRA_TO_CONST_STRING(EnumCheckboxState)(parameter.checkbox->value); report(RPT_DEBUG, "%*svalue = %s\n", level + 3, "", strValue); elektraFree(strValue); report(RPT_DEBUG, "%*s}\n", level + 2, ""); diff --git a/server/drivers/curses_drv.c b/server/drivers/curses_drv.c index a6a17792..9bf06a05 100644 --- a/server/drivers/curses_drv.c +++ b/server/drivers/curses_drv.c @@ -185,15 +185,15 @@ curses_init (Driver *drvthis, Elektra * elektra) /* foreground color */ fore_color = map_color_to_curses(config.foreground); - debug(RPT_DEBUG, "%s: using foreground color %s", drvthis->name, ELEKTRA_TO_STRING(EnumCursesColor) (config.foreground)); + debug(RPT_DEBUG, "%s: using foreground color %s", drvthis->name, ELEKTRA_TO_CONST_STRING(EnumCursesColor) (config.foreground)); /* background color */ back_color = map_color_to_curses(config.background); - debug(RPT_DEBUG, "%s: using background color %s", drvthis->name, ELEKTRA_TO_STRING(EnumCursesColor) (config.background)); + debug(RPT_DEBUG, "%s: using background color %s", drvthis->name, ELEKTRA_TO_CONST_STRING(EnumCursesColor) (config.background)); /* backlight color */ backlight_color = map_color_to_curses(config.backlight); - debug(RPT_DEBUG, "%s: using backlight color %s", drvthis->name, ELEKTRA_TO_STRING(EnumCursesColor) (config.backlight)); + debug(RPT_DEBUG, "%s: using backlight color %s", drvthis->name, ELEKTRA_TO_CONST_STRING(EnumCursesColor) (config.backlight)); /* use ACS characters? */ p->useACS = config.useacs; From 6b715da0f9d76c3b7668e6ff52f7fe19c552d8ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Sat, 25 May 2019 23:31:09 +0200 Subject: [PATCH 21/72] hd44780: elektrify with codegen --- server/drivers/hd44780-4bit.c | 2 +- server/drivers/hd44780-4bit.h | 3 +- server/drivers/hd44780-bwct-usb.c | 10 +- server/drivers/hd44780-bwct-usb.h | 3 +- server/drivers/hd44780-charmap.h | 35 +-- server/drivers/hd44780-drivers.h | 60 ++-- server/drivers/hd44780-ethlcd.c | 6 +- server/drivers/hd44780-ethlcd.h | 5 +- server/drivers/hd44780-ext8bit.c | 2 +- server/drivers/hd44780-ext8bit.h | 3 +- server/drivers/hd44780-ftdi.c | 20 +- server/drivers/hd44780-ftdi.h | 3 +- server/drivers/hd44780-gpio.c | 27 +- server/drivers/hd44780-gpio.h | 3 +- server/drivers/hd44780-i2c.c | 39 +-- server/drivers/hd44780-i2c.h | 3 +- server/drivers/hd44780-lcd2usb.c | 2 +- server/drivers/hd44780-lcd2usb.h | 3 +- server/drivers/hd44780-lcm162.c | 2 +- server/drivers/hd44780-lcm162.h | 3 +- server/drivers/hd44780-lis2.c | 10 +- server/drivers/hd44780-lis2.h | 3 +- server/drivers/hd44780-low.h | 8 +- server/drivers/hd44780-pifacecad.c | 8 +- server/drivers/hd44780-pifacecad.h | 3 +- server/drivers/hd44780-piplate.c | 6 +- server/drivers/hd44780-piplate.h | 3 +- server/drivers/hd44780-rpi.c | 18 +- server/drivers/hd44780-rpi.h | 3 +- server/drivers/hd44780-serial.c | 21 +- server/drivers/hd44780-serial.h | 4 +- server/drivers/hd44780-serialLpt.c | 2 +- server/drivers/hd44780-serialLpt.h | 3 +- server/drivers/hd44780-spi.c | 16 +- server/drivers/hd44780-spi.h | 3 +- server/drivers/hd44780-usb4all.c | 2 +- server/drivers/hd44780-usb4all.h | 3 +- server/drivers/hd44780-usblcd.c | 6 +- server/drivers/hd44780-usblcd.h | 3 +- server/drivers/hd44780-usbtiny.c | 2 +- server/drivers/hd44780-usbtiny.h | 3 +- server/drivers/hd44780-uss720.c | 6 +- server/drivers/hd44780-uss720.h | 3 +- server/drivers/hd44780-winamp.c | 2 +- server/drivers/hd44780-winamp.h | 3 +- server/drivers/hd44780.c | 424 ++++++++++++----------------- server/specification/LCDd-spec.ini | 309 ++++++++++++++++----- 47 files changed, 604 insertions(+), 507 deletions(-) diff --git a/server/drivers/hd44780-4bit.c b/server/drivers/hd44780-4bit.c index 76e9d947..4287f589 100644 --- a/server/drivers/hd44780-4bit.c +++ b/server/drivers/hd44780-4bit.c @@ -112,7 +112,7 @@ static const unsigned char EnMask[] = { EN1, EN2, EN3, STRB, LF, INIT, SEL }; * \retval -1 Error. */ int -hd_init_4bit(Driver *drvthis) +hd_init_4bit(Driver *drvthis, const Hd44780DriverConfig * config) { PrivateData *p = (PrivateData*) drvthis->private_data; HD44780_functions *hd44780_functions = p->hd44780_functions; diff --git a/server/drivers/hd44780-4bit.h b/server/drivers/hd44780-4bit.h index 28da3bac..df9cdfb1 100644 --- a/server/drivers/hd44780-4bit.h +++ b/server/drivers/hd44780-4bit.h @@ -2,8 +2,9 @@ #define HD_LCDSTAT_H #include "lcd.h" /* for Driver */ +#include "../elektragen.h" // initialise this particular driver -int hd_init_4bit(Driver *drvthis); +int hd_init_4bit(Driver *drvthis, const Hd44780DriverConfig * config); #endif diff --git a/server/drivers/hd44780-bwct-usb.c b/server/drivers/hd44780-bwct-usb.c index a052f67f..96b3661c 100644 --- a/server/drivers/hd44780-bwct-usb.c +++ b/server/drivers/hd44780-bwct-usb.c @@ -38,24 +38,20 @@ void bwct_usb_HD44780_close(PrivateData *p); * \retval -1 Error. */ int -hd_init_bwct_usb(Driver *drvthis) +hd_init_bwct_usb(Driver *drvthis, const Hd44780DriverConfig * config) { PrivateData *p = (PrivateData*) drvthis->private_data; struct usb_bus *bus; //char device_manufacturer[LCD_MAX_WIDTH+1] = ""; char device_serial[LCD_MAX_WIDTH+1] = DEFAULT_SERIALNO; - char serial[LCD_MAX_WIDTH+1] = DEFAULT_SERIALNO; p->hd44780_functions->senddata = bwct_usb_HD44780_senddata; p->hd44780_functions->close = bwct_usb_HD44780_close; p->hd44780_functions->set_contrast = bwct_usb_HD44780_set_contrast; - /* Read config file's contents: serial number and contrast */ - - strncpy(serial, drvthis->config_get_string(drvthis->name, "SerialNumber", - 0, DEFAULT_SERIALNO), sizeof(serial)); - serial[sizeof(serial)-1] = '\0'; + /* Read config */ + const char * serial = config->usbSerialnumber; if (*serial != '\0') { report(RPT_INFO, "hd_init_bwct_usb: Using serial number: %s", serial); } diff --git a/server/drivers/hd44780-bwct-usb.h b/server/drivers/hd44780-bwct-usb.h index e8c2c3a8..1b2a70a2 100644 --- a/server/drivers/hd44780-bwct-usb.h +++ b/server/drivers/hd44780-bwct-usb.h @@ -2,6 +2,7 @@ #define HD_BWCT_USB_H #include "lcd.h" /* for Driver */ +#include "../elektragen.h" /* vendor and product id */ #define BWCT_USB_VENDORID 0x03DA @@ -15,6 +16,6 @@ #define DEFAULT_SERIALNO "" // initialise this particular driver -int hd_init_bwct_usb(Driver *drvthis); +int hd_init_bwct_usb(Driver *drvthis, const Hd44780DriverConfig * config); #endif diff --git a/server/drivers/hd44780-charmap.h b/server/drivers/hd44780-charmap.h index 3e23bbff..fc779ab0 100644 --- a/server/drivers/hd44780-charmap.h +++ b/server/drivers/hd44780-charmap.h @@ -20,6 +20,8 @@ * Refer to the COPYING file distributed with this package. */ +#include "../elektragen.h" + /* * The 'none' charmap does map each character to itself, not replacing @@ -536,28 +538,24 @@ const unsigned char WEH001602A_1_charmap[] = { }; #endif /* EXTRA_CHARMAPS */ -#define MAX_CHARMAP_NAME_LENGTH 16 - struct charmap { - char name[MAX_CHARMAP_NAME_LENGTH]; /**< Name of the mapping table */ - const unsigned char *charmap; /**< Pointer to mapping table */ + ElektraEnumHd44780Charmap elektraCharmap; /**< Config value of the mapping table */ + const unsigned char *charmap; /**< Pointer to mapping table */ }; /** List of available character mappings. This list is sorted by relevance! */ const struct charmap available_charmaps[] = { - { "hd44780_default", HD44780_charmap }, - { "hd44780_euro", HD44780_euro_charmap }, - { "ea_ks0073", EA_KS0073_charmap }, - { "sed1278f_0b", SED1278F_0B_charmap }, + { ELEKTRA_ENUM_HD44780_CHARMAP_HD44780_DEFAULT, HD44780_charmap }, + { ELEKTRA_ENUM_HD44780_CHARMAP_HD44780_EURO, HD44780_euro_charmap }, + { ELEKTRA_ENUM_HD44780_CHARMAP_EA_KS0073, EA_KS0073_charmap }, + { ELEKTRA_ENUM_HD44780_CHARMAP_SED1278F_0B, SED1278F_0B_charmap }, #ifdef EXTRA_CHARMAPS - { "hd44780_koi8_r", HD44780_KOI8R_charmap }, - { "hd44780_cp1251", HD44780_CP1251_charmap }, - { "hd44780_8859_5", HD44780_ISO_8859_5_charmap}, - { "upd16314", uPD16314_charmap }, - { "weh001602a_1", WEH001602A_1_charmap }, + { ELEKTRA_ENUM_HD44780_CHARMAP_HD44780_KOI8_R, HD44780_KOI8R_charmap }, + { ELEKTRA_ENUM_HD44780_CHARMAP_HD44780_CP1251, HD44780_CP1251_charmap }, + { ELEKTRA_ENUM_HD44780_CHARMAP_HD44780_8859_5, HD44780_ISO_8859_5_charmap}, + { ELEKTRA_ENUM_HD44780_CHARMAP_UPD16314, uPD16314_charmap }, + { ELEKTRA_ENUM_HD44780_CHARMAP_WEH001602A_1, WEH001602A_1_charmap }, #endif - /* This is the last entry. */ - { "none", none_charmap } }; /** @@ -571,15 +569,12 @@ const struct charmap available_charmaps[] = { * algorithm (e.g. binary search) should be used. */ static int -charmap_get_index(const char * req_charmap) +charmap_get_index(ElektraEnumHd44780Charmap req_charmap) { int i; - if (req_charmap == NULL) - return -1; - for (i = 0; i < (sizeof(available_charmaps)/sizeof(struct charmap)); i++) { - if (strcasecmp(req_charmap, available_charmaps[i].name) == 0) { + if (req_charmap == available_charmaps[i].elektraCharmap) { return i; } } diff --git a/server/drivers/hd44780-drivers.h b/server/drivers/hd44780-drivers.h index d03a31ae..d7cc0452 100644 --- a/server/drivers/hd44780-drivers.h +++ b/server/drivers/hd44780-drivers.h @@ -50,6 +50,7 @@ #endif /* add new connection type header files to the correct section above or here */ +#include "../elektragen.h" /** connectionType mapping table: * - string to identify connection in config file @@ -60,57 +61,58 @@ static const ConnectionMapping connectionMapping[] = { #ifdef HAVE_PCSTYLE_LPT_CONTROL /* parallel connection types */ - { "4bit", HD44780_CT_4BIT, IF_TYPE_PARPORT, hd_init_4bit }, - { "8bit", HD44780_CT_8BIT, IF_TYPE_PARPORT, hd_init_ext8bit }, - { "serialLpt", HD44780_CT_SERIALLPT, IF_TYPE_PARPORT, hd_init_serialLpt }, - { "winamp", HD44780_CT_WINAMP, IF_TYPE_PARPORT, hd_init_winamp }, - { "lcm162", HD44780_CT_LCM162, IF_TYPE_PARPORT, hd_init_lcm162 }, + { HD44780_CONNECTION_TYPE_4BIT, HD44780_CT_4BIT, IF_TYPE_PARPORT, hd_init_4bit }, + { HD44780_CONNECTION_TYPE_8BIT, HD44780_CT_8BIT, IF_TYPE_PARPORT, hd_init_ext8bit }, + { HD44780_CONNECTION_TYPE_SERIAL_LPT, HD44780_CT_SERIALLPT, IF_TYPE_PARPORT, hd_init_serialLpt }, + { HD44780_CONNECTION_TYPE_WINAMP, HD44780_CT_WINAMP, IF_TYPE_PARPORT, hd_init_winamp }, + { HD44780_CONNECTION_TYPE_LCM162, HD44780_CT_LCM162, IF_TYPE_PARPORT, hd_init_lcm162 }, #endif /* serial connection types */ - { "picanlcd", HD44780_CT_PICANLCD, IF_TYPE_SERIAL, hd_init_serial }, - { "lcdserializer", HD44780_CT_LCDSERIALIZER, IF_TYPE_SERIAL, hd_init_serial }, - { "los-panel", HD44780_CT_LOS_PANEL, IF_TYPE_SERIAL, hd_init_serial }, - { "vdr-lcd", HD44780_CT_VDR_LCD, IF_TYPE_SERIAL, hd_init_serial }, - { "vdr-wakeup", HD44780_CT_VDR_WAKEUP, IF_TYPE_SERIAL, hd_init_serial }, - { "pertelian", HD44780_CT_PERTELIAN, IF_TYPE_SERIAL, hd_init_serial }, - { "ezio", HD44780_CT_EZIO, IF_TYPE_SERIAL, hd_init_serial }, + { HD44780_CONNECTION_TYPE_4BIT, HD44780_CT_PICANLCD, IF_TYPE_SERIAL, hd_init_serial }, + { HD44780_CONNECTION_TYPE_LCDSERIALIZER, HD44780_CT_LCDSERIALIZER, IF_TYPE_SERIAL, hd_init_serial }, + { HD44780_CONNECTION_TYPE_LOS_PANEL, HD44780_CT_LOS_PANEL, IF_TYPE_SERIAL, hd_init_serial }, + { HD44780_CONNECTION_TYPE_VDR_LCD, HD44780_CT_VDR_LCD, IF_TYPE_SERIAL, hd_init_serial }, + { HD44780_CONNECTION_TYPE_VDR_WAKEUP, HD44780_CT_VDR_WAKEUP, IF_TYPE_SERIAL, hd_init_serial }, + { HD44780_CONNECTION_TYPE_PERTELIAN, HD44780_CT_PERTELIAN, IF_TYPE_SERIAL, hd_init_serial }, + { HD44780_CONNECTION_TYPE_EZIO, HD44780_CT_EZIO, IF_TYPE_SERIAL, hd_init_serial }, /* USB connection types */ - { "lis2", HD44780_CT_LIS2, IF_TYPE_USB, hd_init_lis2 }, - { "mplay", HD44780_CT_MPLAY, IF_TYPE_USB, hd_init_lis2 }, - { "usblcd", HD44780_CT_USBLCD, IF_TYPE_USB, hd_init_usblcd }, + { HD44780_CONNECTION_TYPE_LIS2, HD44780_CT_LIS2, IF_TYPE_USB, hd_init_lis2 }, + { HD44780_CONNECTION_TYPE_MPLAY, HD44780_CT_MPLAY, IF_TYPE_USB, hd_init_lis2 }, + { HD44780_CONNECTION_TYPE_USBLCD, HD44780_CT_USBLCD, IF_TYPE_USB, hd_init_usblcd }, #ifdef HAVE_LIBUSB - { "bwctusb", HD44780_CT_BWCTUSB, IF_TYPE_USB, hd_init_bwct_usb }, - { "lcd2usb", HD44780_CT_LCD2USB, IF_TYPE_USB, hd_init_lcd2usb }, - { "usbtiny", HD44780_CT_USBTINY, IF_TYPE_USB, hd_init_usbtiny }, - { "uss720", HD44780_CT_USS720, IF_TYPE_USB, hd_init_uss720 }, - { "usb4all", HD44780_CT_USB4ALL, IF_TYPE_USB, hd_init_usb4all }, + { HD44780_CONNECTION_TYPE_BWCTUSB, HD44780_CT_BWCTUSB, IF_TYPE_USB, hd_init_bwct_usb }, + { HD44780_CONNECTION_TYPE_LCD2USB, HD44780_CT_LCD2USB, IF_TYPE_USB, hd_init_lcd2usb }, + { HD44780_CONNECTION_TYPE_USBTINY, HD44780_CT_USBTINY, IF_TYPE_USB, hd_init_usbtiny }, + { HD44780_CONNECTION_TYPE_USS720, HD44780_CT_USS720, IF_TYPE_USB, hd_init_uss720 }, + { HD44780_CONNECTION_TYPE_U_S_B_4_ALL, HD44780_CT_USB4ALL, IF_TYPE_USB, hd_init_usb4all }, #endif #ifdef HAVE_LIBFTDI - { "ftdi", HD44780_CT_FTDI, IF_TYPE_USB, hd_init_ftdi }, + { HD44780_CONNECTION_TYPE_FTDI, HD44780_CT_FTDI, IF_TYPE_USB, hd_init_ftdi }, #endif /* I2C connection types */ #ifdef HAVE_I2C - { "i2c", HD44780_CT_I2C, IF_TYPE_I2C, hd_init_i2c }, - { "piplate", HD44780_CT_PIPLATE, IF_TYPE_I2C, hd_init_i2c_piplate }, + { HD44780_CONNECTION_TYPE_I2C, HD44780_CT_I2C, IF_TYPE_I2C, hd_init_i2c }, + { HD44780_CONNECTION_TYPE_PIPLATE, HD44780_CT_PIPLATE, IF_TYPE_I2C, hd_init_i2c_piplate }, #endif #ifdef HAVE_SPI - { "spi", HD44780_CT_SPI, IF_TYPE_SPI, hd_init_spi }, - { "pifacecad", HD44780_CT_PIFACECAD, IF_TYPE_SPI, hd_init_pifacecad }, + { HD44780_CONNECTION_TYPE_SPI, HD44780_CT_SPI, IF_TYPE_SPI, hd_init_spi }, + { HD44780_CONNECTION_TYPE_PIFACECAD, HD44780_CT_PIFACECAD, IF_TYPE_SPI, hd_init_pifacecad }, #endif /* TCP socket connection types */ #ifdef WITH_ETHLCD - { "ethlcd", HD44780_CT_ETHLCD, IF_TYPE_TCP, hd_init_ethlcd }, + { HD44780_CONNECTION_TYPE_ETHLCD, HD44780_CT_ETHLCD, IF_TYPE_TCP, hd_init_ethlcd }, #endif #ifdef WITH_RASPBERRYPI - { "raspberrypi", HD44780_CT_RASPBERRYPI, IF_TYPE_PARPORT, hd_init_rpi }, + { HD44780_CONNECTION_TYPE_RASPBERRYPI, HD44780_CT_RASPBERRYPI, IF_TYPE_PARPORT, hd_init_rpi }, #endif #ifdef HAVE_UGPIO - { "gpio", HD44780_CT_GPIO, IF_TYPE_PARPORT, hd_init_gpio }, + { HD44780_CONNECTION_TYPE_GPIO, HD44780_CT_GPIO, IF_TYPE_PARPORT, hd_init_gpio }, #endif /* add new connection types in the correct section above or here */ /* default, end of structure element (do not delete) */ - { NULL, HD44780_CT_UNKNOWN, IF_TYPE_UNKNOWN, NULL } + /* init_fn must be != NULL everywhere else in the array */ + { 0, HD44780_CT_UNKNOWN, IF_TYPE_UNKNOWN, NULL } }; #endif diff --git a/server/drivers/hd44780-ethlcd.c b/server/drivers/hd44780-ethlcd.c index 2fa7588b..ccd287be 100644 --- a/server/drivers/hd44780-ethlcd.c +++ b/server/drivers/hd44780-ethlcd.c @@ -49,9 +49,8 @@ ethlcd_HD44780_uPause(PrivateData *p, int usecs) * \retval -1 Error. */ int -hd_init_ethlcd(Driver *drvthis) +hd_init_ethlcd(Driver *drvthis, const Hd44780DriverConfig * config) { - char hostname[256]; unsigned long flags = 0; struct timeval tv; @@ -65,8 +64,7 @@ hd_init_ethlcd(Driver *drvthis) hd44780_functions->close = ethlcd_HD44780_close; /* reading configuration file */ - strncpy(hostname, drvthis->config_get_string(drvthis->name, "Device", 0, "ethlcd"), sizeof(hostname)); - hostname[sizeof(hostname) - 1] = '\0'; + const char * hostname = strlen(config->device) == 0 ? "ethlcd" : config->device; p->sock = sock_connect(hostname, DEFAULT_ETHLCD_PORT); if (p->sock < 0) { diff --git a/server/drivers/hd44780-ethlcd.h b/server/drivers/hd44780-ethlcd.h index 71a6686c..0ee7aed4 100644 --- a/server/drivers/hd44780-ethlcd.h +++ b/server/drivers/hd44780-ethlcd.h @@ -1,8 +1,11 @@ #ifndef HD_ETHLCD_H #define HD_ETHLCD_H +#include "lcd.h" +#include "../elektragen.h" + /* initialise this particular driver */ -int hd_init_ethlcd(Driver *drvthis); +int hd_init_ethlcd(Driver *drvthis, const Hd44780DriverConfig * config); #define ETHLCD_DRV_NAME "ethlcd" #define DEFAULT_ETHLCD_PORT 2425 diff --git a/server/drivers/hd44780-ext8bit.c b/server/drivers/hd44780-ext8bit.c index 90d37cb5..642f0241 100644 --- a/server/drivers/hd44780-ext8bit.c +++ b/server/drivers/hd44780-ext8bit.c @@ -86,7 +86,7 @@ void lcdtime_HD44780_output(PrivateData *p, int data); * \retval -1 Error. */ int -hd_init_ext8bit(Driver *drvthis) +hd_init_ext8bit(Driver *drvthis, const Hd44780DriverConfig * config) { PrivateData *p = (PrivateData*) drvthis->private_data; HD44780_functions *hd44780_functions = p->hd44780_functions; diff --git a/server/drivers/hd44780-ext8bit.h b/server/drivers/hd44780-ext8bit.h index c1348216..e2b2526a 100644 --- a/server/drivers/hd44780-ext8bit.h +++ b/server/drivers/hd44780-ext8bit.h @@ -2,8 +2,9 @@ #define HD_EXT8BIT_H #include "lcd.h" /* for Driver */ +#include "../elektragen.h" // initialise this particular driver -int hd_init_ext8bit(Driver *drvthis); +int hd_init_ext8bit(Driver *drvthis, const Hd44780DriverConfig * config); #endif diff --git a/server/drivers/hd44780-ftdi.c b/server/drivers/hd44780-ftdi.c index 1c127e8d..ca5db344 100644 --- a/server/drivers/hd44780-ftdi.c +++ b/server/drivers/hd44780-ftdi.c @@ -63,7 +63,7 @@ void ftdi_HD44780_close(PrivateData *p); * \retval -1 Error. */ int -hd_init_ftdi(Driver *drvthis) +hd_init_ftdi(Driver *drvthis, const Hd44780DriverConfig * config) { int vendor_id, product_id; int f; @@ -78,21 +78,21 @@ hd_init_ftdi(Driver *drvthis) usb_description = serial_number = NULL; /* Load config */ - vendor_id = drvthis->config_get_int(drvthis->name, "VendorID", 0, 0x0403); - product_id = drvthis->config_get_int(drvthis->name, "ProductID", 0, 0x6001); - if ((s = drvthis->config_get_string(drvthis->name, "UsbDescription", 0, NULL)) != NULL) { + vendor_id = config->usbVendorid == 0 ? 0x0403 : config->usbVendorid; + product_id = config->usbProductid == 0 ? 0x6001 : config->usbProductid; + if (strlen(config->usbDescription) != 0) { usb_description = strdup(s); } - if ((s = drvthis->config_get_string(drvthis->name, "SerialNumber", 0, NULL)) != NULL) { + if (strlen(config->usbSerialnumber) != 0) { serial_number = strdup(s); } /* these config settings are not documented intentionally */ - p->ftdi_mode = drvthis->config_get_int(drvthis->name, "ftdi_mode", 0, 8); - p->ftdi_line_RS = drvthis->config_get_int(drvthis->name, "ftdi_line_RS", 0, 0x01); - p->ftdi_line_RW = drvthis->config_get_int(drvthis->name, "ftdi_line_RW", 0, 0x02); - p->ftdi_line_EN = drvthis->config_get_int(drvthis->name, "ftdi_line_EN", 0, 0x04); - p->ftdi_line_backlight = drvthis->config_get_int(drvthis->name, "ftdi_line_backlight", 0, 0x08); + p->ftdi_mode = config->ftdiMode; + p->ftdi_line_RS = config->ftdiLineRs; + p->ftdi_line_RW = config->ftdiLineRw; + p->ftdi_line_EN = config->ftdiLineEn; + p->ftdi_line_backlight = config->ftdiLineBacklight; p->backlight_bit = 0; /* some foolproof check */ diff --git a/server/drivers/hd44780-ftdi.h b/server/drivers/hd44780-ftdi.h index 6a6b6cc5..ef12a937 100644 --- a/server/drivers/hd44780-ftdi.h +++ b/server/drivers/hd44780-ftdi.h @@ -2,8 +2,9 @@ #define HD_FTDI_H #include "lcd.h" /* for Driver */ +#include "../elektragen.h" // initialise this particular driver -int hd_init_ftdi(Driver *drvthis); +int hd_init_ftdi(Driver *drvthis, const Hd44780DriverConfig * config); #endif diff --git a/server/drivers/hd44780-gpio.c b/server/drivers/hd44780-gpio.c index 448f819d..c38ed869 100644 --- a/server/drivers/hd44780-gpio.c +++ b/server/drivers/hd44780-gpio.c @@ -56,13 +56,8 @@ typedef struct { * \return 0 on success; -1 on error. */ static int -init_gpio_pin(Driver *drvthis, ugpio_t **pin, const char *name) +init_gpio_pin(kdb_long_t number, ugpio_t **pin, const char * name) { - char config_key[8]; - int number; - - snprintf(config_key, sizeof(config_key), "pin_%s", name); - number = drvthis->config_get_int(drvthis->name, config_key, 0, -1); if (number == -1) return -1; @@ -125,7 +120,7 @@ send_nibble(PrivateData *p, unsigned char ch, unsigned char displayID) * \return 0 on success; -1 on error. */ int -hd_init_gpio(Driver *drvthis) +hd_init_gpio(Driver *drvthis, const Hd44780DriverConfig * config) { PrivateData *p = (PrivateData *) drvthis->private_data; gpio_pins *pins = malloc(sizeof(gpio_pins)); @@ -137,19 +132,19 @@ hd_init_gpio(Driver *drvthis) p->connection_data = pins; - if (init_gpio_pin(drvthis, &pins->en, "EN") != 0 || - init_gpio_pin(drvthis, &pins->rs, "RS") != 0 || - init_gpio_pin(drvthis, &pins->d7, "D7") != 0 || - init_gpio_pin(drvthis, &pins->d6, "D6") != 0 || - init_gpio_pin(drvthis, &pins->d5, "D5") != 0 || - init_gpio_pin(drvthis, &pins->d4, "D4") != 0) { + if (init_gpio_pin(config->gpioPinEn, &pins->en, "EN") != 0 || + init_gpio_pin(config->gpioPinRs, &pins->rs, "RS") != 0 || + init_gpio_pin(config->gpioPinD7, &pins->d7, "D7") != 0 || + init_gpio_pin(config->gpioPinD6, &pins->d6, "D6") != 0 || + init_gpio_pin(config->gpioPinD5, &pins->d5, "D5") != 0 || + init_gpio_pin(config->gpioPinD4, &pins->d4, "D4") != 0) { report(RPT_ERR, "hd_init_gpio: unable to initialize GPIO pins"); gpio_HD44780_close(p); return -1; } if (p->numDisplays > 1) { /* For displays with two controllers */ - if (init_gpio_pin(drvthis, &pins->en2, "EN2") != 0) { + if (init_gpio_pin(config->gpioPinEn2, &pins->en2, "EN2") != 0) { report(RPT_ERR, "hd_init_gpio: unable to initialize GPIO pins"); gpio_HD44780_close(p); return -1; @@ -160,7 +155,7 @@ hd_init_gpio(Driver *drvthis) p->hd44780_functions->close = gpio_HD44780_close; if (have_backlight_pin(p)) { - if (init_gpio_pin(drvthis, &pins->bl, "BL") != 0) { + if (init_gpio_pin(config->gpioPinBl, &pins->bl, "BL") != 0) { report(RPT_WARNING, "hd_init_gpio: unable to initialize pin_BL - disabling backlight"); set_have_backlight_pin(p, 0); @@ -171,7 +166,7 @@ hd_init_gpio(Driver *drvthis) } /* This is enough to set the RW pin to low, if it is available. */ - init_gpio_pin(drvthis, &pins->rw, "RW"); + init_gpio_pin(config->gpioPinRw, &pins->rw, "RW"); ugpio_set_value(pins->rs, 0); diff --git a/server/drivers/hd44780-gpio.h b/server/drivers/hd44780-gpio.h index 3eec1ebf..9187f6c2 100644 --- a/server/drivers/hd44780-gpio.h +++ b/server/drivers/hd44780-gpio.h @@ -2,8 +2,9 @@ #define HD_GPIO_H #include "lcd.h" /* for Driver */ +#include "../elektragen.h" /* initialize this particular driver */ -int hd_init_gpio(Driver *drvthis); +int hd_init_gpio(Driver *drvthis, const Hd44780DriverConfig * config); #endif diff --git a/server/drivers/hd44780-i2c.c b/server/drivers/hd44780-i2c.c index 232f0800..f360a50c 100644 --- a/server/drivers/hd44780-i2c.c +++ b/server/drivers/hd44780-i2c.c @@ -95,17 +95,6 @@ void i2c_HD44780_senddata(PrivateData *p, unsigned char displayID, unsigned char void i2c_HD44780_backlight(PrivateData *p, unsigned char state); void i2c_HD44780_close(PrivateData *p); -#define RS 0x10 -#define RW 0x20 -#define EN 0x40 -#define BL 0x80 -#define D4 0x01 -#define D5 0x02 -#define D6 0x04 -#define D7 0x08 -#define BL_INVERT 0 -// note that the above bits are all meant for the data port of PCF8574 - #define I2C_ADDR_MASK 0x7f #define I2C_PCAX_MASK 0x80 @@ -140,21 +129,20 @@ i2c_out(PrivateData *p, unsigned char val) * \retval -1 Error. */ int -hd_init_i2c(Driver *drvthis) +hd_init_i2c(Driver *drvthis, const Hd44780DriverConfig * config) { PrivateData *p = (PrivateData*) drvthis->private_data; HD44780_functions *hd44780_functions = p->hd44780_functions; - char device[256] = I2C_DEFAULT_DEVICE; - - p->i2c_backlight_invert = drvthis->config_get_bool(drvthis->name, "BacklightInvert", 0, BL_INVERT); - p->i2c_line_RS = drvthis->config_get_int(drvthis->name, "i2c_line_RS", 0, RS); - p->i2c_line_RW = drvthis->config_get_int(drvthis->name, "i2c_line_RW", 0, RW); - p->i2c_line_EN = drvthis->config_get_int(drvthis->name, "i2c_line_EN", 0, EN); - p->i2c_line_BL = drvthis->config_get_int(drvthis->name, "i2c_line_BL", 0, BL); - p->i2c_line_D4 = drvthis->config_get_int(drvthis->name, "i2c_line_D4", 0, D4); - p->i2c_line_D5 = drvthis->config_get_int(drvthis->name, "i2c_line_D5", 0, D5); - p->i2c_line_D6 = drvthis->config_get_int(drvthis->name, "i2c_line_D6", 0, D6); - p->i2c_line_D7 = drvthis->config_get_int(drvthis->name, "i2c_line_D7", 0, D7); + + p->i2c_backlight_invert = config->i2cBacklightInvert; + p->i2c_line_RS = config->i2cLineRs; + p->i2c_line_RW = config->i2cLineRw; + p->i2c_line_EN = config->i2cLineEn; + p->i2c_line_BL = config->i2cLineBl; + p->i2c_line_D4 = config->i2cLineD4; + p->i2c_line_D5 = config->i2cLineD5; + p->i2c_line_D6 = config->i2cLineD6; + p->i2c_line_D7 = config->i2cLineD7; report(RPT_INFO, "HD44780: I2C: Init using D4 and D5, and or'd lines, invert", p->i2c_line_RS); report(RPT_INFO, "HD44780: I2C: Pin RS mapped to 0x%02X", p->i2c_line_RS); @@ -169,11 +157,10 @@ hd_init_i2c(Driver *drvthis) p->backlight_bit = p->i2c_line_BL; - /* READ CONFIG FILE */ + /* READ CONFIG */ /* Get serial device to use */ - strncpy(device, drvthis->config_get_string(drvthis->name, "Device", 0, I2C_DEFAULT_DEVICE), sizeof(device)); - device[sizeof(device)-1] = '\0'; + const char * device = strlen(config->device) == 0 ? I2C_DEFAULT_DEVICE : config->device; report(RPT_INFO,"HD44780: I2C: Using device '%s' and address 0x%02X for a %s", device, p->port & I2C_ADDR_MASK, (p->port & I2C_PCAX_MASK) ? "PCA9554(A)" : "PCF8574(A)"); diff --git a/server/drivers/hd44780-i2c.h b/server/drivers/hd44780-i2c.h index abd5b045..7a76376e 100644 --- a/server/drivers/hd44780-i2c.h +++ b/server/drivers/hd44780-i2c.h @@ -2,8 +2,9 @@ #define HD_I2C_H #include "lcd.h" /* for Driver */ +#include "../elektragen.h" // initialise this particular driver -int hd_init_i2c(Driver *drvthis); +int hd_init_i2c(Driver *drvthis, const Hd44780DriverConfig * config); #endif diff --git a/server/drivers/hd44780-lcd2usb.c b/server/drivers/hd44780-lcd2usb.c index c3af65fe..5817eafa 100644 --- a/server/drivers/hd44780-lcd2usb.c +++ b/server/drivers/hd44780-lcd2usb.c @@ -50,7 +50,7 @@ lcd2usb_HD44780_uPause(PrivateData *p, int usecs) * \retval -1 Error. */ int -hd_init_lcd2usb(Driver *drvthis) +hd_init_lcd2usb(Driver *drvthis, const Hd44780DriverConfig * config) { PrivateData *p = (PrivateData *) drvthis->private_data; diff --git a/server/drivers/hd44780-lcd2usb.h b/server/drivers/hd44780-lcd2usb.h index 9271c498..951d4c82 100644 --- a/server/drivers/hd44780-lcd2usb.h +++ b/server/drivers/hd44780-lcd2usb.h @@ -2,6 +2,7 @@ #define HD_LCD2USB_H #include "lcd.h" /* for Driver */ +#include "../elektragen.h" /* vendor and product id */ #define LCD2USB_VENDORID 0x0403 @@ -34,6 +35,6 @@ #define LCD2USB_GET_RESERVED1 (LCD2USB_GET | (3<<3)) // initialise this particular driver -int hd_init_lcd2usb(Driver *drvthis); +int hd_init_lcd2usb(Driver *drvthis, const Hd44780DriverConfig * config); #endif diff --git a/server/drivers/hd44780-lcm162.c b/server/drivers/hd44780-lcm162.c index 2aebd893..b9879e6b 100644 --- a/server/drivers/hd44780-lcm162.c +++ b/server/drivers/hd44780-lcm162.c @@ -50,7 +50,7 @@ void lcm162_HD44780_output(PrivateData *p, int data); // initialise the driver int -hd_init_lcm162(Driver *drvthis) +hd_init_lcm162(Driver *drvthis, const Hd44780DriverConfig * config) { PrivateData *p = (PrivateData*) drvthis->private_data; HD44780_functions *hd44780_functions = p->hd44780_functions; diff --git a/server/drivers/hd44780-lcm162.h b/server/drivers/hd44780-lcm162.h index fb1d0049..af69fb24 100644 --- a/server/drivers/hd44780-lcm162.h +++ b/server/drivers/hd44780-lcm162.h @@ -2,8 +2,9 @@ #define HD_LCM162_H #include "lcd.h" /* for Driver */ +#include "../elektragen.h" // initialise this particular driver -int hd_init_lcm162(Driver *drvthis); +int hd_init_lcm162(Driver *drvthis, const Hd44780DriverConfig * config); #endif diff --git a/server/drivers/hd44780-lis2.c b/server/drivers/hd44780-lis2.c index e6fce87a..3f83ea7f 100644 --- a/server/drivers/hd44780-lis2.c +++ b/server/drivers/hd44780-lis2.c @@ -67,18 +67,16 @@ static void writeChar(int fd, unsigned char code); * \retval 0 Success. * \retval -1 Error. */ -int hd_init_lis2(Driver *drvthis) +int hd_init_lis2(Driver *drvthis, const Hd44780DriverConfig * config) { PrivateData *p = (PrivateData*) drvthis->private_data; struct termios portset; - char device[256] = DEFAULT_DEVICE; - /* READ CONFIG FILE */ + /* READ CONFIG */ /* Get serial device to use */ - strncpy(device, drvthis->config_get_string(drvthis->name, "Device", 0, DEFAULT_DEVICE), sizeof(device)); - device[sizeof(device)-1] = '\0'; + const char * device = strlen(config->device) == 0 ? DEFAULT_DEVICE : device; report(RPT_INFO, "HD44780: lis2: Using device: %s", device); // Set up io port correctly, and open it... @@ -117,7 +115,7 @@ int hd_init_lis2(Driver *drvthis) unsigned int conf_bitrate; size_t bitrate; - conf_bitrate = drvthis->config_get_int(drvthis->name, "Speed", 0, 38400); + conf_bitrate = config->speed == 0 ? 38400 : config->speed; if (convert_bitrate(conf_bitrate, &bitrate)) { report(RPT_ERR, "HD44780: lis2: invalid configured bitrate speed"); return -1; diff --git a/server/drivers/hd44780-lis2.h b/server/drivers/hd44780-lis2.h index 2fd58248..0a10f39a 100644 --- a/server/drivers/hd44780-lis2.h +++ b/server/drivers/hd44780-lis2.h @@ -2,8 +2,9 @@ #define HD_LIS2_H #include "lcd.h" /* for Driver */ +#include "../elektragen.h" // initialise this particular driver -int hd_init_lis2(Driver *drvthis); +int hd_init_lis2(Driver *drvthis, const Hd44780DriverConfig * config); #endif diff --git a/server/drivers/hd44780-low.h b/server/drivers/hd44780-low.h index e3231d93..7b946efc 100644 --- a/server/drivers/hd44780-low.h +++ b/server/drivers/hd44780-low.h @@ -31,6 +31,8 @@ #include "i2c.h" +#include "../elektragen.h" + /** \name Symbolic names for connection types *@{*/ #define HD44780_CT_UNKNOWN 0 @@ -135,7 +137,7 @@ /** \name Maximum sizes of the keypad *@{*/ -/* DO NOT CHANGE THESE VALUES, unless you change the functions too! */ +/* DO NOT CHANGE THESE VALUES, unless you change the functions and the config specification too! */ #define KEYPAD_MAXX 5 #define KEYPAD_MAXY 11 /**@}*/ @@ -158,13 +160,13 @@ typedef struct cgram_cache { */ typedef struct ConnectionMapping { /** Name (string) of connection type as used in LCDd.conf */ - char *name; + Hd44780ConnectionType elektraType; /** Registered number of connection type, see above */ int connectiontype; /** Numeric type (serial, parallel, etc), see above */ int if_type; /** Pointer to connection type's initialization function */ - int (*init_fn) (Driver *drvthis); + int (*init_fn) (Driver *drvthis, const Hd44780DriverConfig * config); } ConnectionMapping; diff --git a/server/drivers/hd44780-pifacecad.c b/server/drivers/hd44780-pifacecad.c index 55139124..e0af28ac 100644 --- a/server/drivers/hd44780-pifacecad.c +++ b/server/drivers/hd44780-pifacecad.c @@ -205,17 +205,15 @@ write_and_pulse(PrivateData *p, unsigned char data) * \retval -1 Error. */ int -hd_init_pifacecad(Driver *drvthis) +hd_init_pifacecad(Driver *drvthis, const Hd44780DriverConfig * config) { PrivateData *p = (PrivateData *) drvthis->private_data; HD44780_functions *hd44780_functions = p->hd44780_functions; - char device[256] = DEFAULT_DEVICE; p->backlight_bit = BL; /* Backlight on during init */ - /* READ CONFIG FILE */ + /* READ CONFIG */ /* Get serial device to use */ - strncpy(device, drvthis->config_get_string(drvthis->name, "Device", 0, DEFAULT_DEVICE), sizeof(device)); - device[sizeof(device) - 1] = '\0'; + const char * device = strlen(config->device) == 0 ? DEFAULT_DEVICE : config->device; report(RPT_INFO, "HD44780: PiFaceCAD: Using device '%s'", device); /* Open the SPI device */ diff --git a/server/drivers/hd44780-pifacecad.h b/server/drivers/hd44780-pifacecad.h index 1b608e68..0d9750e2 100644 --- a/server/drivers/hd44780-pifacecad.h +++ b/server/drivers/hd44780-pifacecad.h @@ -2,8 +2,9 @@ #define HD_PIFACECAD_H #include "lcd.h" /* for Driver */ +#include "../elektragen.h" /* initialise this particular driver */ -int hd_init_pifacecad(Driver *drvthis); +int hd_init_pifacecad(Driver *drvthis, const Hd44780DriverConfig * config); #endif diff --git a/server/drivers/hd44780-piplate.c b/server/drivers/hd44780-piplate.c index 170c147c..f618098c 100644 --- a/server/drivers/hd44780-piplate.c +++ b/server/drivers/hd44780-piplate.c @@ -159,19 +159,17 @@ i2c_write_reg(PrivateData *p, unsigned char reg, unsigned char val) * \retval -1 Error. */ int -hd_init_i2c_piplate(Driver *drvthis) +hd_init_i2c_piplate(Driver *drvthis, const Hd44780DriverConfig * config) { PrivateData *p = (PrivateData *) drvthis->private_data; HD44780_functions *hd44780_functions = p->hd44780_functions; - char device[256] = DEFAULT_DEVICE; #ifdef HAVE_DEV_IICBUS_IIC_H struct iiccmd cmd; bzero(&cmd, sizeof(cmd)); #endif /* Get serial device to use */ - strncpy(device, drvthis->config_get_string(drvthis->name, "Device", 0, DEFAULT_DEVICE), sizeof(device)); - device[sizeof(device) - 1] = '\0'; + const char * device = strlen(config->device) == 0 ? DEFAULT_DEVICE : config->device; report(RPT_INFO, "HD44780: piplate: Using device '%s' and address 0x%02X for a MCP23017", device, p->port & I2C_ADDR_MASK); diff --git a/server/drivers/hd44780-piplate.h b/server/drivers/hd44780-piplate.h index 3d41c331..3de86966 100644 --- a/server/drivers/hd44780-piplate.h +++ b/server/drivers/hd44780-piplate.h @@ -2,8 +2,9 @@ #define HD_PIPLATE_H #include "lcd.h" /* for Driver */ +#include "../elektragen.h" /* initialise this particular driver */ -int hd_init_i2c_piplate(Driver *drvthis); +int hd_init_i2c_piplate(Driver *drvthis, const Hd44780DriverConfig * config); #endif diff --git a/server/drivers/hd44780-rpi.c b/server/drivers/hd44780-rpi.c index 30b30709..5c559f4f 100644 --- a/server/drivers/hd44780-rpi.c +++ b/server/drivers/hd44780-rpi.c @@ -353,7 +353,7 @@ lcdrpi_HD44780_close(PrivateData *p) * \retval -1 Error. */ int -hd_init_rpi(Driver *drvthis) +hd_init_rpi(Driver *drvthis, const Hd44780DriverConfig * config) { PrivateData *p = (PrivateData *) drvthis->private_data; const int *allowed_gpio_pins = NULL; @@ -369,12 +369,12 @@ hd_init_rpi(Driver *drvthis) return -1; } - p->rpi_gpio->en = drvthis->config_get_int(drvthis->name, "pin_EN", 0, RPI_DEF_EN); - p->rpi_gpio->rs = drvthis->config_get_int(drvthis->name, "pin_RS", 0, RPI_DEF_RS); - p->rpi_gpio->d7 = drvthis->config_get_int(drvthis->name, "pin_D7", 0, RPI_DEF_D7); - p->rpi_gpio->d6 = drvthis->config_get_int(drvthis->name, "pin_D6", 0, RPI_DEF_D6); - p->rpi_gpio->d5 = drvthis->config_get_int(drvthis->name, "pin_D5", 0, RPI_DEF_D5); - p->rpi_gpio->d4 = drvthis->config_get_int(drvthis->name, "pin_D4", 0, RPI_DEF_D4); + p->rpi_gpio->en = config->gpioEn > 0 ? config->gpioEn : RPI_DEF_EN; + p->rpi_gpio->rs = config->gpioRs > 0 ? config->gpioRs : RPI_DEF_RS; + p->rpi_gpio->d7 = config->gpioD7 > 0 ? config->gpioD7 : RPI_DEF_D7; + p->rpi_gpio->d6 = config->gpioD6 > 0 ? config->gpioD6 : RPI_DEF_D6; + p->rpi_gpio->d5 = config->gpioD5 > 0 ? config->gpioD5 : RPI_DEF_D5; + p->rpi_gpio->d4 = config->gpioD4 > 0 ? config->gpioD4 : RPI_DEF_D4; report(RPT_INFO, "hd_init_rpi: Pin EN mapped to GPIO%d", p->rpi_gpio->en); report(RPT_INFO, "hd_init_rpi: Pin RS mapped to GPIO%d", p->rpi_gpio->rs); @@ -394,7 +394,7 @@ hd_init_rpi(Driver *drvthis) } if (p->numDisplays > 1) { /* For displays with two controllers */ - p->rpi_gpio->en2 = drvthis->config_get_int(drvthis->name, "pin_EN2", 0, RPI_DEF_EN2); + p->rpi_gpio->en2 = config->gpioEn2 > 0 ? config->gpioEn2 : RPI_DEF_EN2; debug(RPT_INFO, "hd_init_rpi: Pin EN2 mapped to GPIO%d", p->rpi_gpio->en2); if (check_pin(drvthis, p->rpi_gpio->en2, allowed_gpio_pins, used_pins)) { free(p->rpi_gpio); @@ -403,7 +403,7 @@ hd_init_rpi(Driver *drvthis) } if (have_backlight_pin(p)) { /* Backlight setup is optional */ - p->backlight_bit = drvthis->config_get_int(drvthis->name, "pin_BL", 0, RPI_DEF_BL); + p->backlight_bit = config->gpioBl > 0 ? config->gpioBl : RPI_DEF_BL; debug(RPT_INFO, "hd_init_rpi: Backlight mapped to GPIO%d", p->backlight_bit); if (check_pin(drvthis, p->backlight_bit, allowed_gpio_pins, used_pins) != 0) { diff --git a/server/drivers/hd44780-rpi.h b/server/drivers/hd44780-rpi.h index 259ae990..51e56ef2 100644 --- a/server/drivers/hd44780-rpi.h +++ b/server/drivers/hd44780-rpi.h @@ -2,9 +2,10 @@ #define HD_LCDRPI_H #include "lcd.h" /* for Driver */ +#include "../elektragen.h" /* initialize this particular driver */ -int hd_init_rpi(Driver *drvthis); +int hd_init_rpi(Driver *drvthis, const Hd44780DriverConfig * config); /** * rpi_gpio_map is addressed through the hd44780_private_data struct. Data diff --git a/server/drivers/hd44780-serial.c b/server/drivers/hd44780-serial.c index a0c7d27a..cf7b970b 100644 --- a/server/drivers/hd44780-serial.c +++ b/server/drivers/hd44780-serial.c @@ -157,17 +157,15 @@ void serial_HD44780_close(PrivateData *p); * \retval -1 Error. */ int -hd_init_serial(Driver *drvthis) +hd_init_serial(Driver *drvthis, const Hd44780DriverConfig * config) { struct termios portset; - char device[256] = DEFAULT_DEVICE; - unsigned int conf_bitrate; size_t bitrate; int i; PrivateData *p = (PrivateData*) drvthis->private_data; - /* READ CONFIG FILE */ + /* READ CONFIG */ /* Get interface type */ p->serial_type = 0; @@ -195,18 +193,19 @@ hd_init_serial(Driver *drvthis) } /* Get bitrate */ - conf_bitrate = drvthis->config_get_int(drvthis->name, "Speed", 0, SERIAL_IF.default_bitrate); - if (conf_bitrate == 0) - conf_bitrate = SERIAL_IF.default_bitrate; - if (convert_bitrate(conf_bitrate, &bitrate)) { + kdb_unsigned_long_t speed = config->speed; + if (speed == 0) { + speed = SERIAL_IF.default_bitrate; + } + + if (convert_bitrate(speed, &bitrate)) { report(RPT_ERR, "HD44780: serial: invalid configured bitrate speed"); return -1; } - report(RPT_INFO,"HD44780: serial: using speed: %d", conf_bitrate); + report(RPT_INFO,"HD44780: serial: using speed: %d", speed); /* Get serial device to use */ - strncpy(device, drvthis->config_get_string(drvthis->name, "device", 0, DEFAULT_DEVICE), sizeof(device)); - device[sizeof(device)-1] = '\0'; + const char * device = strlen(config->device) == 0 ? DEFAULT_DEVICE : config->device; report(RPT_INFO,"HD44780: serial: using device: %s", device); /* Set up io port correctly, and open it... */ diff --git a/server/drivers/hd44780-serial.h b/server/drivers/hd44780-serial.h index a75f868b..bc6ce07f 100644 --- a/server/drivers/hd44780-serial.h +++ b/server/drivers/hd44780-serial.h @@ -9,6 +9,8 @@ #define SERIALIF_NAME_LENGTH 20 #define DEFAULT_DEVICE "/dev/lcd" +#include "../elektragen.h" + /** Declares one configuration entry in the serial_interfaces table */ struct hd44780_SerialInterface { int connectiontype; /**< Connection type from hd44780 config */ @@ -79,6 +81,6 @@ static const struct hd44780_SerialInterface serial_interfaces[] = { }; /* initialize this particular driver */ -int hd_init_serial(Driver *drvthis); +int hd_init_serial(Driver *drvthis, const Hd44780DriverConfig * config); #endif diff --git a/server/drivers/hd44780-serialLpt.c b/server/drivers/hd44780-serialLpt.c index 350672ee..e34b5c9e 100644 --- a/server/drivers/hd44780-serialLpt.c +++ b/server/drivers/hd44780-serialLpt.c @@ -81,7 +81,7 @@ static void shiftreg(PrivateData *p, unsigned char displayID, unsigned char r); * \retval -1 Error. */ int -hd_init_serialLpt(Driver *drvthis) +hd_init_serialLpt(Driver *drvthis, const Hd44780DriverConfig * config) { PrivateData *p = (PrivateData*) drvthis->private_data; HD44780_functions *hd44780_functions = p->hd44780_functions; diff --git a/server/drivers/hd44780-serialLpt.h b/server/drivers/hd44780-serialLpt.h index 2d592e95..9d803879 100644 --- a/server/drivers/hd44780-serialLpt.h +++ b/server/drivers/hd44780-serialLpt.h @@ -2,8 +2,9 @@ #define HD_SERIALLPT_H #include "lcd.h" /* for Driver */ +#include "../elektragen.h" // initialise this particular driver -int hd_init_serialLpt(Driver *drvthis); +int hd_init_serialLpt(Driver *drvthis, const Hd44780DriverConfig * config); #endif diff --git a/server/drivers/hd44780-spi.c b/server/drivers/hd44780-spi.c index 74c85fb0..a5829317 100644 --- a/server/drivers/hd44780-spi.c +++ b/server/drivers/hd44780-spi.c @@ -111,20 +111,15 @@ spi_transfer(PrivateData *p, const unsigned char *outbuf, unsigned char *inbuf, * \retval -1 Error. */ int -hd_init_spi(Driver *drvthis) +hd_init_spi(Driver *drvthis, const Hd44780DriverConfig * config) { PrivateData *p = (PrivateData *) drvthis->private_data; HD44780_functions *hd44780_functions = p->hd44780_functions; - char device[256] = DEFAULT_DEVICE; - char backlight_device[256] = ""; - - /* READ CONFIG FILE */ + /* READ CONFIG */ /* Get and open SPI device to use */ - strncpy(device, drvthis->config_get_string(drvthis->name, "Device", 0, DEFAULT_DEVICE), - sizeof(device)); - device[sizeof(device) - 1] = '\0'; + const char * device = strlen(config->device) == 0 ? DEFAULT_DEVICE : config->device; report(RPT_INFO, "HD44780: SPI: Using device '%s'", device); p->fd = open(device, O_RDWR); @@ -136,10 +131,7 @@ hd_init_spi(Driver *drvthis) /* Get and open the backlight device */ p->backlight_bit = -1; - strncpy(backlight_device, - drvthis->config_get_string(drvthis->name, "BacklightDevice", 0, ""), - sizeof(backlight_device)); - backlight_device[sizeof(backlight_device) - 1] = '\0'; + const char * backlight_device = config->spiBacklightDevice; if (strlen(backlight_device) > 0) { report(RPT_INFO, "HD44780: SPI: Using backlight_device '%s'", backlight_device); diff --git a/server/drivers/hd44780-spi.h b/server/drivers/hd44780-spi.h index 9b5f83de..139d1393 100644 --- a/server/drivers/hd44780-spi.h +++ b/server/drivers/hd44780-spi.h @@ -2,8 +2,9 @@ #define HD_SPI_H #include "lcd.h" /* for Driver */ +#include "../elektragen.h" /* initialise this particular driver */ -int hd_init_spi(Driver *drvthis); +int hd_init_spi(Driver *drvthis, const Hd44780DriverConfig * config); #endif diff --git a/server/drivers/hd44780-usb4all.c b/server/drivers/hd44780-usb4all.c index 74392302..a4aca6f0 100644 --- a/server/drivers/hd44780-usb4all.c +++ b/server/drivers/hd44780-usb4all.c @@ -273,7 +273,7 @@ usb4all_HD44780_uPause(PrivateData *p, int usecs) * \retval -1 Error. */ int -hd_init_usb4all(Driver *drvthis) +hd_init_usb4all(Driver *drvthis, const Hd44780DriverConfig * config) { PrivateData *p = (PrivateData *) drvthis->private_data; diff --git a/server/drivers/hd44780-usb4all.h b/server/drivers/hd44780-usb4all.h index 988704a7..0a9699f3 100644 --- a/server/drivers/hd44780-usb4all.h +++ b/server/drivers/hd44780-usb4all.h @@ -18,6 +18,7 @@ #define HD_USB4ALL_H #include "lcd.h" /* for Driver */ +#include "../elektragen.h" /* vendor and product id */ #define USB4ALL_VENDORID 0x004D8 @@ -41,6 +42,6 @@ #define USB4ALL_RESET 0xFF /* initialise this particular driver */ -int hd_init_usb4all(Driver *drvthis); +int hd_init_usb4all(Driver *drvthis, const Hd44780DriverConfig * config); #endif diff --git a/server/drivers/hd44780-usblcd.c b/server/drivers/hd44780-usblcd.c index 8dcbc3dd..85a7a537 100644 --- a/server/drivers/hd44780-usblcd.c +++ b/server/drivers/hd44780-usblcd.c @@ -53,17 +53,15 @@ void usblcd_HD44780_close(PrivateData *p); * \retval -3 Error reading or unsupported hardware version. */ int -hd_init_usblcd(Driver *drvthis) +hd_init_usblcd(Driver *drvthis, const Hd44780DriverConfig * config) { PrivateData *p = (PrivateData *) drvthis->private_data; - char device[256] = DEFAULT_DEVICE; char buf[128]; int major, minor; /* Get device to use */ - strncpy(device, drvthis->config_get_string(drvthis->name, "device", 0, DEFAULT_DEVICE), sizeof(device)); - device[sizeof(device) - 1] = '\0'; + const char * device = strlen(config->device) == 0 ? DEFAULT_DEVICE : config->device; report(RPT_INFO, "HD44780: USBLCD: using device: %s", device); /* Set up io port correctly, and open it... */ diff --git a/server/drivers/hd44780-usblcd.h b/server/drivers/hd44780-usblcd.h index 35b2834c..01150238 100644 --- a/server/drivers/hd44780-usblcd.h +++ b/server/drivers/hd44780-usblcd.h @@ -2,8 +2,9 @@ #define HD_USBLCD_H #include "lcd.h" /* for lcd_logical_driver */ +#include "../elektragen.h" // initialise this particular driver -int hd_init_usblcd(Driver *drvthis); +int hd_init_usblcd(Driver *drvthis, const Hd44780DriverConfig * config); #endif diff --git a/server/drivers/hd44780-usbtiny.c b/server/drivers/hd44780-usbtiny.c index 755eb50a..827e44d3 100644 --- a/server/drivers/hd44780-usbtiny.c +++ b/server/drivers/hd44780-usbtiny.c @@ -48,7 +48,7 @@ usbtiny_HD44780_uPause(PrivateData *p, int usecs) * \retval -1 Error. */ int -hd_init_usbtiny(Driver *drvthis) +hd_init_usbtiny(Driver *drvthis, const Hd44780DriverConfig * config) { PrivateData *p = (PrivateData *) drvthis->private_data; diff --git a/server/drivers/hd44780-usbtiny.h b/server/drivers/hd44780-usbtiny.h index 9d8704cc..db6311d0 100644 --- a/server/drivers/hd44780-usbtiny.h +++ b/server/drivers/hd44780-usbtiny.h @@ -2,6 +2,7 @@ #define HD_USBTINY_H #include "lcd.h" /* for Driver */ +#include "../elektragen.h" /* vendor and product id */ #define USBTINY_VENDORID 0x03EB @@ -13,6 +14,6 @@ /* initialise this particular driver */ -int hd_init_usbtiny(Driver *drvthis); +int hd_init_usbtiny(Driver *drvthis, const Hd44780DriverConfig * config); #endif diff --git a/server/drivers/hd44780-uss720.c b/server/drivers/hd44780-uss720.c index 050d5785..2781ca2d 100644 --- a/server/drivers/hd44780-uss720.c +++ b/server/drivers/hd44780-uss720.c @@ -110,7 +110,7 @@ int uss720_set_1284_mode(usb_dev_handle *usbHandle, unsigned int mode); * \retval -1 Error. */ int -hd_init_uss720(Driver *drvthis) +hd_init_uss720(Driver *drvthis, const Hd44780DriverConfig * config) { unsigned int vendor_id, product_id; struct usb_bus *bus; @@ -123,8 +123,8 @@ hd_init_uss720(Driver *drvthis) p->hd44780_functions->uPause = uss720_HD44780_uPause; /* load config */ - vendor_id = drvthis->config_get_int(drvthis->name, "VendorID", 0, 0x1293); - product_id = drvthis->config_get_int(drvthis->name, "ProductID", 0, 0x0002); + vendor_id = config->usbVendorid == 0 ? 0x1293 : config->usbVendorid; + product_id = config->usbProductid == 0 ? 0x0002 : config->usbProductid; /* Hardware Init */ diff --git a/server/drivers/hd44780-uss720.h b/server/drivers/hd44780-uss720.h index c8c3e38f..4e25ba96 100644 --- a/server/drivers/hd44780-uss720.h +++ b/server/drivers/hd44780-uss720.h @@ -2,7 +2,8 @@ #define HD_USS720_H #include "lcd.h" /* for Driver */ +#include "../elektragen.h" /* initialise this particular driver */ -int hd_init_uss720(Driver *drvthis); +int hd_init_uss720(Driver *drvthis, const Hd44780DriverConfig * config); #endif diff --git a/server/drivers/hd44780-winamp.c b/server/drivers/hd44780-winamp.c index d1170f25..796dded9 100644 --- a/server/drivers/hd44780-winamp.c +++ b/server/drivers/hd44780-winamp.c @@ -102,7 +102,7 @@ static const unsigned char EnMask[] = { EN1, EN2, EN3 }; * \retval -1 Error. */ int -hd_init_winamp(Driver *drvthis) +hd_init_winamp(Driver *drvthis, const Hd44780DriverConfig * config) { PrivateData *p = (PrivateData*) drvthis->private_data; HD44780_functions *hd44780_functions = p->hd44780_functions; diff --git a/server/drivers/hd44780-winamp.h b/server/drivers/hd44780-winamp.h index defda6d5..1a6547e4 100644 --- a/server/drivers/hd44780-winamp.h +++ b/server/drivers/hd44780-winamp.h @@ -2,8 +2,9 @@ #define HD_WINAMP_H #include "lcd.h" /* for Driver */ +#include "../elektragen.h" // initialise this particular driver -int hd_init_winamp(Driver *drvthis); +int hd_init_winamp(Driver *drvthis, const Hd44780DriverConfig * config); #endif diff --git a/server/drivers/hd44780.c b/server/drivers/hd44780.c index 92fa6380..55cce3b4 100644 --- a/server/drivers/hd44780.c +++ b/server/drivers/hd44780.c @@ -69,6 +69,8 @@ # include "config.h" #endif +#include "../elektragen.h" + #include "lcd.h" #include "lcd_lib.h" #include "hd44780.h" @@ -87,13 +89,13 @@ static char *defaultKeyMapMatrix[KEYPAD_MAXY][KEYPAD_MAXX] = { { "4", "5", "6", "B", "F" }, { "7", "8", "9", "C", "G" }, { "*", "0", "#", "D", "H" }, - { NULL, NULL, NULL, NULL, NULL }, - { NULL, NULL, NULL, NULL, NULL }, - { NULL, NULL, NULL, NULL, NULL }, - { NULL, NULL, NULL, NULL, NULL }, - { NULL, NULL, NULL, NULL, NULL }, - { NULL, NULL, NULL, NULL, NULL }, - { NULL, NULL, NULL, NULL, NULL }}; + { "", "", "", "", "" }, + { "", "", "", "", "" }, + { "", "", "", "", "" }, + { "", "", "", "", "" }, + { "", "", "", "", "" }, + { "", "", "", "", "" }, + { "", "", "", "", "" }}; /* Vars for the server core */ @@ -113,182 +115,152 @@ static int parse_span_list(int *spanListArray[], int *spLsize, int *dispOffsets[ static const struct ModelMapping { - const char *name; + ElektraEnumHd44780Model elektraModel; int model; } model_mapping[] = { - { "default", HD44780_MODEL_DEFAULT }, - { "standard", HD44780_MODEL_DEFAULT }, - - { "extended", HD44780_MODEL_EXTENDED }, - { "ks0073", HD44780_MODEL_EXTENDED }, - { "hd66710", HD44780_MODEL_EXTENDED }, + { ELEKTRA_ENUM_HD44780_MODEL_DEFAULT, HD44780_MODEL_DEFAULT }, + { ELEKTRA_ENUM_HD44780_MODEL_STANDARD, HD44780_MODEL_DEFAULT }, - { "winstar_oled", HD44780_MODEL_WINSTAR_OLED }, - { "weh00xxyya", HD44780_MODEL_WINSTAR_OLED }, + { ELEKTRA_ENUM_HD44780_MODEL_EXTENDED, HD44780_MODEL_EXTENDED }, + { ELEKTRA_ENUM_HD44780_MODEL_KS0073, HD44780_MODEL_EXTENDED }, + { ELEKTRA_ENUM_HD44780_MODEL_HD66710, HD44780_MODEL_EXTENDED }, - { "pt6314_vfd", HD44780_MODEL_PT6314_VFD }, + { ELEKTRA_ENUM_HD44780_MODEL_WINSTAR_OLED, HD44780_MODEL_WINSTAR_OLED }, + { ELEKTRA_ENUM_HD44780_MODEL_WEH00XXYYA, HD44780_MODEL_WINSTAR_OLED }, - { "", HD44780_MODEL_DEFAULT } + { ELEKTRA_ENUM_HD44780_MODEL_PT6314_VFD, HD44780_MODEL_PT6314_VFD } }; -static int model_by_name( const char *name ) +static int map_model ( ElektraEnumHd44780Model elektraModel ) { int i; for (i=0; iprivate_data; - /* allow multiple occurences of option Backlight, with values specified above - * in bl_value_mapping, first one occurrence may be also boolean for backward compability */ - - for (opt_idx=0; /* nop */; opt_idx++) { - const char *def_value; - /* for first occurence of option 'backlight' default value depends - * on model (which should be read before invoking this function) */ - if (opt_idx != 0) - def_value = NULL; - else if (p->model == (HD44780_MODEL_WINSTAR_OLED || p->model == HD44780_MODEL_PT6314_VFD)) - def_value = "internal"; - else - def_value = "none"; - value = drvthis->config_get_string(drvthis->name, "backlight", opt_idx, def_value); - - if (value == NULL) - /* this is for second and next occurrences */ - break; - - /* find option name. */ - for (i=0; ibacklight == ELEKTRA_ENUM_HD44780_BACKLIGHT_DEFAULT) + { + return p->model == HD44780_MODEL_WINSTAR_OLED || p->model == HD44780_MODEL_PT6314_VFD ? BACKLIGHT_INTERNAL : BACKLIGHT_NONE; + } - if (i == sizeof(bl_value_mapping)/sizeof(bl_value_mapping[0])) { - /* name not recognized */ - if (opt_idx == 0) { - /* not found - try boolean for backward compability. If found, ignore other occurences */ - short tmp = drvthis->config_get_bool(drvthis->name, "backlight", opt_idx, -1); - if (tmp < 0) { - report(RPT_ERR, "%s: unknown Backlight type: %s", drvthis->name, value); - return -1; - } - result = tmp ? BACKLIGHT_EXTERNAL_PIN : BACKLIGHT_NONE; - report(RPT_WARNING, "%s: deprecated boolean '%s' for 'Backlight' option found, consider updating configuration !!", drvthis->name, value); - return result; - } - else { - /* invalid option value */ - report(RPT_ERR, "%s: unknown Backlight type: %s", drvthis->name, value); - return -1; - } - } + if(config->backlight == ELEKTRA_ENUM_HD44780_BACKLIGHT_DISABLED) + { + return BACKLIGHT_NONE; } - if (result != BACKLIGHT_NONE && was_none) { - report(RPT_ERR, "%s: conflicting types of 'Backlight' option provided", drvthis->name); - return -2; + int result = BACKLIGHT_NONE; + kdb_long_long_t size = elektraSizeV(elektra, ELEKTRA_TAG_HD44780_BACKLIGHTMODE, drvthis->index); + for (kdb_long_long_t i = 0; i < size; ++i) + { + ElektraEnumHd44780Backlightmode elektraMode = elektraGetV(elektra, ELEKTRA_TAG_HD44780_BACKLIGHTMODE, drvthis->index, i); + int mode = map_backlight_mode(elektraMode); + if (mode < 0) { + report(RPT_ERR, "%s ("ELEKTRA_LONG_LONG_F"): unknown Backlight mode: %d", drvthis->name, drvthis->index, elektraMode); + return -1; + } + result |= mode; } return result; } -static void strappend(char *dst, size_t dsize, const char *src) { - - size_t dlen = strlen(dst); - size_t slen = strlen(src); - - if (slen + dlen < dsize) { - memcpy(dst + dlen, src, slen); - dst[dlen+slen] = 0; - } - else if (dlen < dsize) { - memcpy(dst + dlen, src, dsize - dlen); - dst[dsize-1] = 0; - } -} - /* reports textually setting of backlight */ static void report_backlight_type(int report_level, int backlight_type) { - /* should be enough for current options set and all possible combinations */ - const char *text_value = NULL; - char buffer[256] = ""; int i; /* first find just whole option name */ for (i=0; ifd = -1; - /* READ THE CONFIG FILE */ + /* READ THE CONFIG */ + Hd44780DriverConfig config; + elektraGet2V(elektra, &config, ELEKTRA_TAG_HD44780, drvthis->index); - p->port = drvthis->config_get_int(drvthis->name, "port", 0, LPTPORT); - s = drvthis->config_get_string(drvthis->name, "model", 0, "default"); - p->model = model_by_name(s); + // TODO (elektra): use hexnumber? + p->port = (unsigned int)strtoul(config.port, NULL, 16); /* works because, spec enforces hex string */ + p->model = map_model(config.model); if (p->model < 0) { - report(RPT_ERR, "%s: unknown Model: %s", drvthis->name, s); + report(RPT_ERR, "%s ("ELEKTRA_LONG_LONG_F"): unknown Model: %s", drvthis->name, drvthis->index, model_name(config.model)); return -1; } /* config file compability stuff */ if (p->model == HD44780_MODEL_DEFAULT) { - ext_mode = drvthis->config_get_bool(drvthis->name, "extendedmode", 0, 0); - if (ext_mode) + if (config.extendedmode) p->model = HD44780_MODEL_EXTENDED; } else { - tmp = (p->model == HD44780_MODEL_EXTENDED); - ext_mode = !!drvthis->config_get_bool(drvthis->name, "extendedmode", 0, tmp); - if (ext_mode != tmp) { - report(RPT_ERR, "%s: conflicting Model %s and extended mode: %d", drvthis->name, model_name(p->model), ext_mode); + if (config.extendedmode != (p->model == HD44780_MODEL_EXTENDED)) { + report(RPT_ERR, "%s ("ELEKTRA_LONG_LONG_F"): conflicting Model %s and extended mode: %d", drvthis->name, drvthis->index, model_name(config.model), config.extendedmode); return -1; } } - p->line_address = drvthis->config_get_int(drvthis->name, "lineaddress", 0, LADDR); - p->have_keypad = drvthis->config_get_bool(drvthis->name, "keypad", 0, 0); + // TODO (elektra): use hexnumber? + p->line_address = (int)strtol(config.lineaddress, NULL, 16); /* works because, spec enforces hex string */ + p->have_keypad = config.keypad; /* parse backlight option. Default is model specific */ - p->backlight_type = get_config_backlight_type(drvthis); + p->backlight_type = get_config_backlight_type(drvthis, &config, elektra); if (p->backlight_type < 0) { /* error already logged in get_config_backlight_type() */ return -1; } - p->backlight_cmd_on = drvthis->config_get_int(drvthis->name, "backlightcmdon", 0, 0); - p->backlight_cmd_off = drvthis->config_get_int(drvthis->name, "backlightcmdoff", 0, 0); + // TODO (elektra): use hexnumber? + p->backlight_cmd_on = (int)strtol(config.backlightcmdon, NULL, 16); /* works because, spec enforces hex string */ + p->backlight_cmd_off = (int)strtol(config.backlightcmdoff, NULL, 16); /* works because, spec enforces hex string */ if ((p->backlight_type & BACKLIGHT_CONFIG_CMDS) && (!p->backlight_cmd_on || !p->backlight_cmd_off)) { - report(RPT_ERR, "%s: No commands for enabling or disabling backlight specified for backlight type internalCmds", drvthis->name); + report(RPT_ERR, "%s ("ELEKTRA_LONG_LONG_F"): No commands for enabling or disabling backlight specified for backlight type internalCmds", drvthis->name, drvthis->index); return -1; } - p->have_output = drvthis->config_get_bool(drvthis->name, "outputport", 0, 0); - p->delayMult = drvthis->config_get_int(drvthis->name, "delaymult", 0, 1); - p->delayBus = drvthis->config_get_bool(drvthis->name, "delaybus", 0, 1); - p->lastline = drvthis->config_get_bool(drvthis->name, "lastline", 0, 1); + p->have_output = config.outputport; + p->delayMult = config.delaymult; + p->delayBus = config.delaybus; + p->lastline = config.lastline; p->nextrefresh = 0; - p->refreshdisplay = drvthis->config_get_int(drvthis->name, "refreshdisplay", 0, 0); + p->refreshdisplay = config.refreshdisplay; p->nextkeepalive = 0; - p->keepalivedisplay = drvthis->config_get_int(drvthis->name, "keepalivedisplay", 0, 0); + p->keepalivedisplay = config.keepalivedisplay; /* Get and search for the connection type */ - s = drvthis->config_get_string(drvthis->name, "ConnectionType", 0, "4bit"); - for (i = 0; (connectionMapping[i].name != NULL) && - (strcasecmp(s, connectionMapping[i].name) != 0); i++) - ; - if (connectionMapping[i].name == NULL) { - report(RPT_ERR, "%s: unknown ConnectionType: %s", drvthis->name, s); + const ConnectionMapping * connectionMapping = map_connection_type(config.connectiontype); + + if (connectionMapping == NULL) { + report(RPT_ERR, "%s ("ELEKTRA_LONG_LONG_F"): unknown ConnectionType: %s", drvthis->name, drvthis->index, ELEKTRA_TO_CONST_STRING(EnumHd44780ConnectionType)(config.connectiontype)); return -1; - } else { - /* set connection type */ - p->connectiontype = connectionMapping[i].connectiontype; + } - report(RPT_INFO, "HD44780: using ConnectionType: %s", connectionMapping[i].name); + /* set connection type */ + p->connectiontype = connectionMapping->connectiontype; - if_type = connectionMapping[i].if_type; - init_fn = connectionMapping[i].init_fn; - } - report(RPT_INFO, "HD44780: selecting Model: %s", model_name(p->model)); + report(RPT_INFO, "HD44780: using ConnectionType: %s", ELEKTRA_TO_CONST_STRING(EnumHd44780ConnectionType)(config.connectiontype)); + + if_type = connectionMapping->if_type; + init_fn = connectionMapping->init_fn; + + report(RPT_INFO, "HD44780: selecting Model: %d", reverse_map_model(p->model)); report_backlight_type(RPT_INFO, p->backlight_type); if (p->backlight_type & BACKLIGHT_CONFIG_CMDS) { report(RPT_INFO, "HD44780: backlight config commands: on: %02x, off: %02x", p->backlight_cmd_on, p->backlight_cmd_off); } /* Get and parse vspan only when specified */ - s = drvthis->config_get_string(drvthis->name, "vspan", 0, ""); - if (s[0] != '\0') { - if (parse_span_list(&(p->spanList), &(p->numLines), &(p->dispVOffset), &(p->numDisplays), &(p->dispSizes), s) == -1) { - report(RPT_ERR, "%s: invalid vspan value: %s", drvthis->name, s); + if (strlen(config.vspan) > 0) { + if (parse_span_list(&(p->spanList), &(p->numLines), &(p->dispVOffset), &(p->numDisplays), &(p->dispSizes), config.vspan) == -1) { + report(RPT_ERR, "%s ("ELEKTRA_LONG_LONG_F"): invalid vspan value: %s", drvthis->name, drvthis->index, config.vspan); return -1; } } /* Get and parse size */ - s = drvthis->config_get_string(drvthis->name, "size", 0, "20x4"); - if (sscanf(s, "%dx%d", &(p->width), &(p->height)) != 2 + if (sscanf(config.size, "%dx%d", &(p->width), &(p->height)) != 2 || (p->width <= 0) || (p->width > LCD_MAX_WIDTH) || (p->height <= 0) || (p->height > LCD_MAX_HEIGHT)) { - report(RPT_ERR, "%s: cannot read Size %s", drvthis->name, s); + report(RPT_ERR, "%s ("ELEKTRA_LONG_LONG_F"): cannot read Size %s", drvthis->name, drvthis->index, config.size); } /* set contrast */ - tmp = drvthis->config_get_int(drvthis->name, "Contrast", 0, DEFAULT_CONTRAST); - if ((tmp < 0) || (tmp > MAX_CONTRAST)) { - report(RPT_WARNING, "%s: Contrast must be between 0 and %d; using default %d", - drvthis->name, MAX_CONTRAST, DEFAULT_CONTRAST); - tmp = DEFAULT_CONTRAST; - } - p->contrast = tmp; + p->contrast = config.contrast; /* set brightness */ - tmp = drvthis->config_get_int(drvthis->name, "Brightness", 0, DEFAULT_BRIGHTNESS); - if ((tmp < 0) || (tmp > MAX_BRIGHTNESS)) { - report(RPT_WARNING, "%s: Brightness must be between 0 and %d; using default %d", - drvthis->name, MAX_BRIGHTNESS, DEFAULT_BRIGHTNESS); - tmp = DEFAULT_BRIGHTNESS; - } - p->brightness = tmp; + p->brightness = config.brightness; /* set backlight-off "brightness" */ - tmp = drvthis->config_get_int(drvthis->name, "OffBrightness", 0, DEFAULT_OFFBRIGHTNESS); - if ((tmp < 0) || (tmp > MAX_BRIGHTNESS)) { - report(RPT_WARNING, "%s: OffBrightness must be between 0 and %d; using default %d", - drvthis->name, MAX_BRIGHTNESS, DEFAULT_OFFBRIGHTNESS); - tmp = DEFAULT_OFFBRIGHTNESS; - } - p->offbrightness = tmp; + p->offbrightness = config.offbrightness; /* default case for when spans aren't indicated */ if (p->numLines == 0) { @@ -456,12 +404,12 @@ HD44780_init(Driver *drvthis, Elektra * elektra) p->numLines = p->height; } } else - report(RPT_ERR, "%s: error allocing", drvthis->name); + report(RPT_ERR, "%s ("ELEKTRA_LONG_LONG_F"): error allocing", drvthis->name, drvthis->index); } else { /* sanity check against p->height */ if (p->numLines != p->height) - report(RPT_ERR, "%s: height in Size does not match vSpan", drvthis->name); + report(RPT_ERR, "%s ("ELEKTRA_LONG_LONG_F"): height in Size does not match vSpan", drvthis->name, drvthis->index); } if (p->numDisplays == 0) { @@ -471,19 +419,19 @@ HD44780_init(Driver *drvthis, Elektra * elektra) p->dispSizes[0] = p->height; p->numDisplays = 1; } else - report(RPT_ERR, "%s: error mallocing", drvthis->name); + report(RPT_ERR, "%s ("ELEKTRA_LONG_LONG_F"): error mallocing", drvthis->name, drvthis->index); } /* Set up timing */ if (timing_init() == -1) { - report(RPT_ERR, "%s: timing_init() failed (%s)", drvthis->name, strerror(errno)); + report(RPT_ERR, "%s ("ELEKTRA_LONG_LONG_F"): timing_init() failed (%s)", drvthis->name, drvthis->index, strerror(errno)); return -1; } /* Allocate framebuffer */ p->framebuf = (unsigned char *) calloc(p->width * p->height, sizeof(char)); if (p->framebuf == NULL) { - report(RPT_ERR, "%s: unable to allocate framebuffer", drvthis->name); + report(RPT_ERR, "%s ("ELEKTRA_LONG_LONG_F"): unable to allocate framebuffer", drvthis->name, drvthis->index); //HD44780_close(); return -1; } @@ -491,7 +439,7 @@ HD44780_init(Driver *drvthis, Elektra * elektra) /* Allocate and clear the buffer for incremental updates */ p->backingstore = (unsigned char *) calloc(p->width * p->height, sizeof(char)); if (p->backingstore == NULL) { - report(RPT_ERR, "%s: unable to allocate framebuffer backing store", drvthis->name); + report(RPT_ERR, "%s ("ELEKTRA_LONG_LONG_F"): unable to allocate framebuffer backing store", drvthis->name, drvthis->index); return -1; } @@ -501,70 +449,53 @@ HD44780_init(Driver *drvthis, Elektra * elektra) /* Read keymap */ for (x = 0; x < KEYPAD_MAXX; x++) { - char buf[40]; - - /* First fill with default value */ - p->keyMapDirect[x] = defaultKeyMapDirect[x]; - - /* Read config value */ - sprintf(buf, "keydirect_%1d", x+1); - s = drvthis->config_get_string(drvthis->name, buf, 0, NULL); + const char * key = elektraGetV(elektra, ELEKTRA_TAG_HD44780_KEYDIRECT, drvthis->index, x); /* Was a key specified in the config file ? */ - if (s) { - p->keyMapDirect[x] = strdup(s); - report(RPT_INFO, "HD44780: Direct key %d: \"%s\"", x, s); + if (strlen(key) == 0) { + key = defaultKeyMapDirect[x]; + } else { + report(RPT_INFO, "HD44780: Direct key %d: \"%s\"", x, key); } - } - - for (x = 0; x < KEYPAD_MAXX; x++) { - for (y = 0; y < KEYPAD_MAXY; y++) { - char buf[40]; - /* First fill with default value */ - p->keyMapMatrix[y][x] = defaultKeyMapMatrix[y][x]; - - /* Read config value */ - sprintf(buf, "keymatrix_%1d_%d", x+1, y+1); - s = drvthis->config_get_string(drvthis->name, buf, 0, NULL); + p->keyMapDirect[x] = strdup(key); + for (y = 0; y < KEYPAD_MAXY; y++) { + key = elektraGetV(elektra, ELEKTRA_TAG_HD44780_KEYMATRIX, drvthis->index, x, y); + /* Was a key specified in the config file ? */ - if (s) { - p->keyMapMatrix[y][x] = strdup(s); - report(RPT_INFO, "HD44780: Matrix key %d %d: \"%s\"", x+1, y+1, s); + if (strlen(key) == 0) { + key = defaultKeyMapMatrix[y][x]; + } else { + report(RPT_INFO, "HD44780: Matrix key %d %d: \"%s\"", x+1, y+1, key); } + + p->keyMapMatrix[y][x] = strdup(key); } } } /* Get configured charmap */ - strncpy(conf_charmap, drvthis->config_get_string(drvthis->name, "charmap", 0, "hd44780_default"), MAX_CHARMAP_NAME_LENGTH); - conf_charmap[MAX_CHARMAP_NAME_LENGTH-1] = '\0'; - p->charmap = charmap_get_index(conf_charmap); + p->charmap = charmap_get_index(config.charmap); if (p->charmap == -1) { - report(RPT_ERR, "%s: Charmap %s is unknown", drvthis->name, conf_charmap); - report(RPT_ERR, "%s: Available charmaps:", drvthis->name); + report(RPT_ERR, "%s ("ELEKTRA_LONG_LONG_F"): Charmap %d is unknown", drvthis->name, drvthis->index, config.charmap); + report(RPT_ERR, "%s ("ELEKTRA_LONG_LONG_F"): Available charmaps:", drvthis->name, drvthis->index); for (i = 0; i < (sizeof(available_charmaps)/sizeof(struct charmap)); i++) { - report(RPT_ERR, " %s", available_charmaps[i].name); + report(RPT_ERR, " %s", ELEKTRA_TO_CONST_STRING(EnumHd44780Charmap)(available_charmaps[i].elektraCharmap)); } return -1; } - report(RPT_INFO, "%s: Using %s charmap", drvthis->name, available_charmaps[p->charmap].name); + report(RPT_INFO, "%s ("ELEKTRA_LONG_LONG_F"): Using %s charmap", drvthis->name, drvthis->index, ELEKTRA_TO_CONST_STRING(EnumHd44780Charmap)(config.charmap)); /* Get configured font bank */ - tmp = drvthis->config_get_int(drvthis->name, "FontBank", 0, 0); - if ((tmp < 0) || (tmp > 3)) { - report(RPT_WARNING, "%s: FontBank must be between 0 and 3; using default %d", drvthis->name, 0); - tmp = 0; - } - p->font_bank = tmp; + p->font_bank = config.fontbank; /* Output latch state - init to a non-valid value */ p->output_state = 999999; /* allocate local function pointers */ if ((p->hd44780_functions = (HD44780_functions *) calloc(1, sizeof(HD44780_functions))) == NULL) { - report(RPT_ERR, "%s: error mallocing", drvthis->name); + report(RPT_ERR, "%s ("ELEKTRA_LONG_LONG_F"): error mallocing", drvthis->name, drvthis->index); return -1; } /* @@ -584,7 +515,7 @@ HD44780_init(Driver *drvthis, Elektra * elektra) p->hd44780_functions->flush = NULL; /* Do local (=connection type specific) display init */ - if (init_fn(drvthis) != 0) + if (init_fn(drvthis, &config) != 0) return -1; /* consistency check: fail if local senddata function was not defined */ @@ -619,39 +550,40 @@ HD44780_init(Driver *drvthis, Elektra * elektra) /* Display startup parameters on the LCD */ HD44780_clear(drvthis); - sprintf(buf, "HD44780 %dx%d", p->width, p->height); + char buf[256]; + snprintf(buf, 255, "HD44780 %dx%d", p->width, p->height); HD44780_string(drvthis, 1, 1, buf); switch(if_type) { case IF_TYPE_USB: - sprintf(buf, "USB %s%s%s", + snprintf(buf, 255, "USB %s%s%s", (have_backlight_pin(p)?" bl":""), (p->have_keypad?" key":""), (p->have_output?" out":"") ); break; case IF_TYPE_SERIAL: - sprintf(buf, "SERIAL %s%s%s", + snprintf(buf, 255, "SERIAL %s%s%s", (have_backlight_pin(p)?" bl":""), (p->have_keypad?" key":""), (p->have_output?" out":"") ); break; case IF_TYPE_I2C: - sprintf(buf, "I2C %s%s%s", + snprintf(buf, 255, "I2C %s%s%s", (have_backlight_pin(p)?" bl":""), (p->have_keypad?" key":""), (p->have_output?" out":"") ); break; case IF_TYPE_SPI: - sprintf(buf, "SPI %s%s%s", + snprintf(buf, 255, "SPI %s%s%s", (have_backlight_pin(p)?" bl":""), (p->have_keypad?" key":""), (p->have_output?" out":"") ); break; case IF_TYPE_TCP: - sprintf(buf, "TCP %s%s%s", + snprintf(buf, 255, "TCP %s%s%s", (have_backlight_pin(p)?" bl":""), (p->have_keypad?" key":""), (p->have_output?" out":"") @@ -659,7 +591,7 @@ HD44780_init(Driver *drvthis, Elektra * elektra) break; case IF_TYPE_PARPORT: default: - sprintf(buf, "LPT 0x%x%s%s%s", p->port, + snprintf(buf, 255, "LPT 0x%x%s%s%s", p->port, (have_backlight_pin(p)?" bl":""), (p->have_keypad?" key":""), (p->have_output?" out":"") @@ -992,7 +924,7 @@ HD44780_flush(Driver *drvthis) } if (p->hd44780_functions->flush != NULL) p->hd44780_functions->flush(p); - debug(RPT_DEBUG, "%s: flushed %d custom chars", drvthis->name, count); + debug(RPT_DEBUG, "%s ("ELEKTRA_LONG_LONG_F"): flushed %d custom chars", drvthis->name, drvthis->index, count); } diff --git a/server/specification/LCDd-spec.ini b/server/specification/LCDd-spec.ini index 56203f62..650fb897 100644 --- a/server/specification/LCDd-spec.ini +++ b/server/specification/LCDd-spec.ini @@ -1,7 +1,6 @@ [] mountpoint = LCDd.conf -;infos/plugins = dump validation enum range ipaddr path network type -infos/plugins = ini validation type +infos/plugins = ini validation type hexnumber ; range ipaddr path network ; TODO (elektra): Until the max plugin error is not fixed, some specifications will be left commented out ; TODO (elektra): sizes width/height as separate keys @@ -1483,6 +1482,7 @@ check/type = any default = "" gen/struct/type = Hd44780DriverConfig gen/struct/alloc = 0 +gen/struct/depth = 2 description = Configuration for a hd44780 driver. [hd44780/#/file] @@ -1547,7 +1547,7 @@ check/enum/#_24 = pifacecad check/enum/#_25 = ethlcd check/enum/#_26 = raspberrypi check/enum/#_27 = gpio -gen/enum/type = HD44780ConnectionType +gen/enum/type = Hd44780ConnectionType default = 4bit description = "Select what type of connection. See documentation for available types: https://github.com/lcdproc/lcdproc/blob/master/docs/lcdproc-user/drivers/hd44780.docbook" @@ -1555,11 +1555,15 @@ description = "Select what type of connection. See documentation for available t [hd44780/#/model] type = enum check/type = enum -check/enum = #3 -check/enum/#0 = standard -check/enum/#1 = extended -check/enum/#2 = winstar_oled -check/enum/#3 = pt6314_vfd +check/enum = #7 +check/enum/#0 = default +check/enum/#1 = standard +check/enum/#2 = extended +check/enum/#3 = ks0073 +check/enum/#4 = hd66710 +check/enum/#5 = winstar_oled +check/enum/#6 = weh00xxyya +check/enum/#7 = pt6314_vfd default = standard description = "Select model if have non-standard one which require extra initialization or handling or just want extra features it offers. @@ -1586,8 +1590,8 @@ description = I/O address of the LPT port. Usual values are: 0x278, 0x378 and 0x type = string check/type = string ;check/path = -default = /dev/lcd -description = "Device of the serial, I2C, or SPI interface" +default = "" +description = "Device of the serial, I2C, or SPI interface (default is connectiontype dependent)" [hd44780/#/speed] type = unsigned_long @@ -1605,16 +1609,31 @@ You may also need to configure the keypad layout further on in this file." [hd44780/#/backlight] type = enum check/type = enum -check/enum = #8 -check/enum/#0 = none -check/enum/#1 = external -check/enum/#2 = internal -check/enum/#3 = internalCmds -gen/enum/type = HD44780Backlight -default = none -description = "Specify if you have a switchable backlight and if yes, can select method for turning it on/off: +check/enum = #2 +check/enum/#0 = default +check/enum/#1 = enabled +check/enum/#2 = disabled +default = default +description = "Whether or not a switchable backlight is be used. If 'default' is chosen, +the value is model dependent. On Winstar OLED and PT6314 VFD, it is 'enabled' on other models +it is 'disabled'." + +[hd44780/#/backlightmode] +array = +default = "" + +[hd44780/#/backlightmode/#] +type = enum +check/type = enum +check/enum = #2 +check/enum/#0 = external +check/enum/#1 = internal +check/enum/#2 = internalCmds +default = internal ; TODO (elektra): should be required +description = "If the switchable backlight is enabled (see hd44780/#/backlight), this value +determines which method for turning it on/off will be used. # -- none - no switchable backlight is available. +The supported methods are: - external - use external pin or any other method defined with ConnectionType backlight handling. - internal - means that backlight is handled using internal commands according @@ -1624,9 +1643,11 @@ description = "Specify if you have a switchable backlight and if yes, can select with extra options BacklightOnCmd and BacklightOffCmd, which would be treated as catch up (last resort) for other types of displays which have similar features. # -You can provide multiple occurences of this option to use more than one method. -Default is model specific: Winstar OLED and PT6314 VFD enables internal backlight mode, -for others it is set to none." +This array will only be taken into account, if hd44780/#/backlight is set to enabled. If it is +set to default and Winstar OLED or PT6314 VFD are used, we will always use 'internal'. +# +Multiple elements can be given, to use multiple methods." +gen/struct/field/ignore = 1 [hd44780/#/backlightcmdon] type = string @@ -1702,7 +1723,7 @@ NOTE: This option is deprecated in favour of choosing Model=extended option." [hd44780/#/lineaddress] type = string check/type = string -check/validation = 0x([1-9]+[0-9]*) +check/validation = 0x([1-9A-F]+[0-9A-F]*) check/validation/match = LINE check/validation/message = Not a line Address. eg. 0x20, 0x10 default = 0x20 @@ -1712,7 +1733,7 @@ the next line in DDRAM won`t start 0x20 higher. [hd44780/#/charmap] type = enum check/type = enum -check/enum = #7 +check/enum = #8 check/enum/#0 = hd44780_default check/enum/#1 = hd44780_euro check/enum/#2 = ea_ks0073 @@ -1721,7 +1742,7 @@ check/enum/#4 = hd44780_koi8_r check/enum/#5 = hd44780_cp1251 check/enum/#6 = hd44780_8859_5 check/enum/#7 = upd16314 -gen/enum/type = HD44780Charmap +check/enum/#8 = weh001602a_1 default = hd44780_default description = "Character map to to map ISO-8859-1 to the LCD's character set. (hd44780_koi8_r, hd44780_cp1251, hd44780_8859_5, upd16314 and weh001602a_1 are possible if compiled with additional charmaps)" @@ -1729,12 +1750,7 @@ are possible if compiled with additional charmaps)" [hd44780/#/fontbank] type = unsigned_short check/type = unsigned_short -check/enum = #3 -check/enum/#0 = 0 -check/enum/#1 = 1 -check/enum/#2 = 2 -check/enum/#3 = 3 -gen/enum/type = HD44780Fontbank +check/range = 0-3 default = 0 description = "Font bank to be used for some displays such as the WINSTAR WEH001602A 0: English/Japanese (default) @@ -1776,49 +1792,216 @@ default = 1 ; TODO (elektra): fix description = "You can reduce the inserted delays by setting this to false. On fast PCs it is possible your LCD does not respond correctly." -[hd44780/#/keymatrix_4_1] +[hd44780/#/keydirect] +array = #5 +default = "" + +[hd44780/#/keydirect/#] type = string check/type = string -default = Enter -description = "If you have a keypad you can assign keystrings to the keys. See -documentation for used terms and how to wire it. For example to give directly connected -key 4 the string 'Enter', use: - KeyDirect_4=Enter For matrix keys use the -X and Y coordinates of the key: - KeyMatrix_1_3=Enter" +default = "" +description = "If you have a keypad, you can assign keystrings to the keys. +If you have 2d keypad (like on a phone), use hd44780/#/keymatrix/#/# instead." +gen/struct/field/ignore = 1 + +[hd44780/#/keymatrix] +array = #4 +default = "Don't change the max element. We will always use the KEYPAD_MAXX value from hd44780-low.h" + +[hd44780/#/keymatrix/#] +array = #_10 +default = "Don't change the max element. We will always use the KEYPAD_MAXY value from hd44780-low.h" +gen/struct/field/ignore = 1 -[hd44780/#/keymatrix_4_2] +[hd44780/#/keymatrix/#/#] type = string check/type = string -default = Up -description = "If you have a keypad you can assign keystrings to the keys. See -documentation for used terms and how to wire it. For example to give directly connected -key 4 the string 'Enter', use: - KeyDirect_4=Enter For matrix keys use the -X and Y coordinates of the key: - KeyMatrix_1_3=Enter" +default = "" +description = "If you have a keypad, you can assign keystrings to the keys. +The first index is the X-coordinate, the second one the Y-cooordinate. +e.g. keymatrix/4/9 is the 5th key in the 10th row (indicies). +If you only have a 1d keypad, use hd44780/#/keydirect/#/# instead." +gen/struct/field/ignore = 1 -[hd44780/#/keymatrix_4_3] +[hd44780/#/i2c/backlightinvert] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): fix +description = "default is meant for the data port of PCF8574" ; TODO +gen/struct/field = i2cBacklightInvert + +[hd44780/#/i2c/line_rs] +type = long +check/type = long +default = 16 ; TODO (elektra): fix hex? +description = "default is meant for the data port of PCF8574" ; TODO + +[hd44780/#/i2c/line_rw] +type = long +check/type = long +default = 32 ; TODO (elektra): fix hex? +description = "default is meant for the data port of PCF8574" ; TODO + +[hd44780/#/i2c/line_en] +type = long +check/type = long +default = 64 ; TODO (elektra): fix hex? +description = "default is meant for the data port of PCF8574" ; TODO + +[hd44780/#/i2c/line_bl] +type = long +check/type = long +default = 128 ; TODO (elektra): fix hex? +description = "default is meant for the data port of PCF8574" ; TODO + +[hd44780/#/i2c/line_d4] +type = long +check/type = long +default = 1 ; TODO (elektra): fix hex? +description = "default is meant for the data port of PCF8574" ; TODO + +[hd44780/#/i2c/line_d5] +type = long +check/type = long +default = 2 ; TODO (elektra): fix hex? +description = "default is meant for the data port of PCF8574" ; TODO + +[hd44780/#/i2c/line_d6] +type = long +check/type = long +default = 4 ; TODO (elektra): fix hex? +description = "default is meant for the data port of PCF8574" ; TODO + +[hd44780/#/i2c/line_d7] +type = long +check/type = long +default = 8 ; TODO (elektra): fix hex? +description = "default is meant for the data port of PCF8574" ; TODO + +[hd44780/#/spi/backlightdevice] type = string check/type = string -default = Down -description = "If you have a keypad you can assign keystrings to the keys. See -documentation for used terms and how to wire it. For example to give directly connected -key 4 the string 'Enter', use: - KeyDirect_4=Enter For matrix keys use the -X and Y coordinates of the key: - KeyMatrix_1_3=Enter" +default = "" +description = "" ; TODO +gen/struct/field = spiBacklightDevice -[hd44780/#/keymatrix_4_4] +[hd44780/#/usb/serialnumber] type = string check/type = string -default = Escape -description = "If you have a keypad you can assign keystrings to the keys. See -documentation for used terms and how to wire it. For example to give directly connected -key 4 the string 'Enter', use: - KeyDirect_4=Enter For matrix keys use the -X and Y coordinates of the key: - KeyMatrix_1_3=Enter" +default = "" +description = "used by bwctusb and ftdi" + +[hd44780/#/usb/description] +type = string +check/type = string +default = "" +description = "used by ftdi" + +[hd44780/#/usb/vendorid] +type = unsigned_long +check/type = unsigned_long +default = 0 ; TODO (elektra): fix hex? +description = "used by uss720 and ftdi; set to 0 to use connectiontype dependent default" + +[hd44780/#/usb/productid] +type = unsigned_long +check/type = unsigned_long +default = 0 ; TODO (elektra): fix hex? +description = "used by uss720 and ftdi; set to 0 to use connectiontype dependent default" + +[hd44780/#/ftdi/mode] +type = long +check/type = long +default = 8 +check/range = 4, 8 +description = "" ; TODO + +[hd44780/#/ftdi/line_rs] +type = long +check/type = long +default = 1 ; TODO (elektra): fix hex? +description = "" ; TODO + +[hd44780/#/ftdi/line_rw] +type = long +check/type = long +default = 2 ; TODO (elektra): fix hex? +description = "" ; TODO + +[hd44780/#/ftdi/line_en] +type = long +check/type = long +default = 4 ; TODO (elektra): fix hex? +description = "" ; TODO + +[hd44780/#/ftdi/line_backlight] +type = long +check/type = long +default = 8 ; TODO (elektra): fix hex? +description = "" ; TODO + +[hd44780/#/gpio/pin_en] +type = long +check/type = long +default = -1 +description = "required if raspberrypi or gpio is used; +on raspberrypi -1 triggers the default" ; TODO + +[hd44780/#/gpio/pin_rs] +type = long +check/type = long +default = -1 +description = "required if raspberrypi or gpio is used; +on raspberrypi -1 triggers the default" ; TODO + +[hd44780/#/gpio/pin_rw] +type = long +check/type = long +default = -1 +description = "required if raspberrypi or gpio is used; +on raspberrypi -1 triggers the default" ; TODO + +[hd44780/#/gpio/pin_d7] +type = long +check/type = long +default = -1 +description = "required if raspberrypi or gpio is used; +on raspberrypi -1 triggers the default" ; TODO + +[hd44780/#/gpio/pin_d6] +type = long +check/type = long +default = -1 +description = "required if raspberrypi or gpio is used; +on raspberrypi -1 triggers the default" ; TODO + +[hd44780/#/gpio/pin_d5] +type = long +check/type = long +default = -1 +description = "required if raspberrypi or gpio is used; +on raspberrypi -1 triggers the default" ; TODO + +[hd44780/#/gpio/pin_d4] +type = long +check/type = long +default = -1 +description = "required if raspberrypi or gpio is used; +on raspberrypi -1 triggers the default" ; TODO + +[hd44780/#/gpio/pin_en2] +type = long +check/type = long +default = -1 +description = "required if raspberrypi or gpio is used and 2 controllers are connected; +on raspberrypi -1 triggers the default" ; TODO + +[hd44780/#/gpio/pin_bl] +type = long +check/type = long +default = -1 +description = "required if raspberrypi or gpio is used and backlight (external) is enabled; +on raspberrypi -1 triggers the default" ; TODO ;icp_a106 From e1a73423160d4774876168da143866c95ea11831 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Fri, 7 Jun 2019 14:41:01 +0200 Subject: [PATCH 22/72] lcdproc: fix includes and warnings --- clients/lcdproc/batt.h | 2 ++ clients/lcdproc/chrono.c | 5 +++-- clients/lcdproc/chrono.h | 2 ++ clients/lcdproc/cpu.h | 2 ++ clients/lcdproc/cpu_smp.h | 2 ++ clients/lcdproc/disk.h | 2 ++ clients/lcdproc/load.h | 2 ++ clients/lcdproc/machine_Linux.c | 8 ++++++-- clients/lcdproc/main.h | 3 +-- clients/lcdproc/mem.h | 2 ++ clients/lcdproc/mode.h | 2 ++ clients/lcdproc/screen_config.h | 2 +- 12 files changed, 27 insertions(+), 7 deletions(-) diff --git a/clients/lcdproc/batt.h b/clients/lcdproc/batt.h index a5cc6bd1..08640ccd 100644 --- a/clients/lcdproc/batt.h +++ b/clients/lcdproc/batt.h @@ -1,6 +1,8 @@ #ifndef BATT_H #define BATT_H +#include + int battery_screen(int rep, int display, int *flags_ptr, Elektra * elektra); #endif diff --git a/clients/lcdproc/chrono.c b/clients/lcdproc/chrono.c index d8fdab7a..a537f9fc 100644 --- a/clients/lcdproc/chrono.c +++ b/clients/lcdproc/chrono.c @@ -122,7 +122,7 @@ time_screen(int rep, int display, int *flags_ptr, Elektra * elektra) tickTime(now, heartbeat); if (lcd_hgt >= 4) { - char tmp[40]; /* should be large enough */ + char tmp[64]; /* should be large enough */ machine_get_uptime(&uptime, &idle); @@ -148,7 +148,8 @@ time_screen(int rep, int display, int *flags_ptr, Elektra * elektra) sock_printf(sock, "widget_set T two %i 3 {%s}\n", xoffs, today); /* display the time & idle time... */ - sprintf(tmp, "%s %3i%% idle", now, (int) idle); + int idle_int = max(0, min(100, (int) idle)); + sprintf(tmp, "%s %3i%% idle", now, idle_int); xoffs = (lcd_wid > strlen(tmp)) ? ((lcd_wid - strlen(tmp)) / 2) + 1 : 1; if (display) sock_printf(sock, "widget_set T three %i 4 {%s}\n", xoffs, tmp); diff --git a/clients/lcdproc/chrono.h b/clients/lcdproc/chrono.h index d870b890..19becb80 100644 --- a/clients/lcdproc/chrono.h +++ b/clients/lcdproc/chrono.h @@ -1,6 +1,8 @@ #ifndef CHRONO_H #define CHRONO_H +#include + int clock_screen(int rep, int display, int *flags_ptr, Elektra * elektra); int uptime_screen(int rep, int display, int *flags_ptr, Elektra * elektra); int time_screen(int rep, int display, int *flags_ptr, Elektra * elektra); diff --git a/clients/lcdproc/cpu.h b/clients/lcdproc/cpu.h index 1398d43c..fdf25398 100644 --- a/clients/lcdproc/cpu.h +++ b/clients/lcdproc/cpu.h @@ -1,6 +1,8 @@ #ifndef CPU_H #define CPU_H +#include + int cpu_screen(int rep, int display, int *flags_ptr, Elektra * elektra); int cpu_graph_screen(int rep, int display, int *flags_ptr, Elektra * elektra); diff --git a/clients/lcdproc/cpu_smp.h b/clients/lcdproc/cpu_smp.h index b4592d1c..3061ec14 100644 --- a/clients/lcdproc/cpu_smp.h +++ b/clients/lcdproc/cpu_smp.h @@ -1,6 +1,8 @@ #ifndef CPU_SMP_H #define CPU_SMP_H +#include + int cpu_smp_screen(int rep, int display, int *flags_ptr, Elektra * elektra); #endif diff --git a/clients/lcdproc/disk.h b/clients/lcdproc/disk.h index 21ef6afb..e6d3e639 100644 --- a/clients/lcdproc/disk.h +++ b/clients/lcdproc/disk.h @@ -1,6 +1,8 @@ #ifndef DISK_H #define DISK_H +#include + int disk_screen(int rep, int display, int *flags_ptr, Elektra * elektra); #endif diff --git a/clients/lcdproc/load.h b/clients/lcdproc/load.h index 25b30447..402f6661 100644 --- a/clients/lcdproc/load.h +++ b/clients/lcdproc/load.h @@ -8,6 +8,8 @@ #define LOAD_MIN 0.05 #endif +#include + int xload_screen(int rep, int display, int *flags_ptr, Elektra * elektra); #endif diff --git a/clients/lcdproc/machine_Linux.c b/clients/lcdproc/machine_Linux.c index 7bb72669..b5aa0e8a 100644 --- a/clients/lcdproc/machine_Linux.c +++ b/clients/lcdproc/machine_Linux.c @@ -419,10 +419,14 @@ machine_get_procs(LinkedList * procs) char buf[128]; /* ignore everything in proc except process ids */ - if (!strchr("1234567890", procdir->d_name[0])) + /* (pids are never longer than 7 characters) */ + if (!strchr("1234567890", procdir->d_name[0]) || strlen(procdir->d_name) > 7) continue; + + strcpy(buf, "/proc/"); + strcpy(&buf[6], procdir->d_name); + strcat(buf, "/status"); - sprintf(buf, "/proc/%s/status", procdir->d_name); if ((StatusFile = fopen(buf, "r")) == NULL) { /* * Not a serious error; process has finished before diff --git a/clients/lcdproc/main.h b/clients/lcdproc/main.h index 131fa655..8790b1d7 100644 --- a/clients/lcdproc/main.h +++ b/clients/lcdproc/main.h @@ -15,7 +15,6 @@ #include "shared/defines.h" #include "elektragen.h" -#include "screen_config.h" #ifndef TRUE # define TRUE 1 @@ -58,7 +57,7 @@ typedef struct _screen_mode int timer; /**< Time since last update */ int flags; /**< See mode flags defines */ int (*func)(int,int,int *, Elektra *); /**< Pointer to init / update function */ - ScreenBaseConfig (*get_base_config)(Elektra *, ScreenBaseConfig *); /**< Pointer to elektraGet function for base config */ + void (*get_base_config)(Elektra *, ScreenBaseConfig *); /**< Pointer to elektraGet function for base config */ } ScreenMode; /* mode flags */ diff --git a/clients/lcdproc/mem.h b/clients/lcdproc/mem.h index af06cb6d..b7a6d7fb 100644 --- a/clients/lcdproc/mem.h +++ b/clients/lcdproc/mem.h @@ -1,6 +1,8 @@ #ifndef MEM_H #define MEM_H +#include + int mem_screen(int rep, int display, int *flags_ptr, Elektra * elektra); int mem_top_screen(int rep, int display, int *flags_ptr, Elektra * elektra); diff --git a/clients/lcdproc/mode.h b/clients/lcdproc/mode.h index 8750f5cb..ec60bea9 100644 --- a/clients/lcdproc/mode.h +++ b/clients/lcdproc/mode.h @@ -1,6 +1,8 @@ #ifndef MODE_H #define MODE_H +#include + int mode_init(void); void mode_close(void); int update_screen(ScreenMode *m, int display, Elektra * elektra); diff --git a/clients/lcdproc/screen_config.h b/clients/lcdproc/screen_config.h index 91764d1e..6ff3fae4 100644 --- a/clients/lcdproc/screen_config.h +++ b/clients/lcdproc/screen_config.h @@ -3,7 +3,7 @@ #include -typedef struct { +typedef struct _screen_base_config { kdb_boolean_t active; kdb_unsigned_long_t on_time; kdb_unsigned_long_t off_time; From fe42f6253afcfd40b473d01fa7c153702aee7e6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Fri, 7 Jun 2019 14:41:42 +0200 Subject: [PATCH 23/72] lcdvc: fix warings --- clients/lcdvc/lcdvc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/lcdvc/lcdvc.c b/clients/lcdvc/lcdvc.c index 4013edf0..f270d972 100644 --- a/clients/lcdvc/lcdvc.c +++ b/clients/lcdvc/lcdvc.c @@ -62,7 +62,7 @@ static int process_config (); static int main_loop(void); -int main(int argc, char **argv) +int main(int argc, const char **argv) { // only returns, if not in specload mode doSpecloadCheck (argc, argv); From c36dbaaa2892d93fd5503c0394625f2783359808 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Fri, 7 Jun 2019 14:46:03 +0200 Subject: [PATCH 24/72] lcdexec: fix memory bug --- clients/lcdexec/menu.c | 1 - 1 file changed, 1 deletion(-) diff --git a/clients/lcdexec/menu.c b/clients/lcdexec/menu.c index 1c58ead0..fed2e0ef 100644 --- a/clients/lcdexec/menu.c +++ b/clients/lcdexec/menu.c @@ -345,7 +345,6 @@ static void command_dump(Command *command, int level) report(RPT_DEBUG, "%*sgraytext = \"%s\"\n", level + 3, "", parameter.checkbox->graytext); const char *strValue = ELEKTRA_TO_CONST_STRING(EnumCheckboxState)(parameter.checkbox->value); report(RPT_DEBUG, "%*svalue = %s\n", level + 3, "", strValue); - elektraFree(strValue); report(RPT_DEBUG, "%*s}\n", level + 2, ""); break; case COMMAND_PARAMETER_TYPE_ALPHA: From 0aff7784ca9aa6ae9c68fa074b06e4b4d024e575 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Fri, 7 Jun 2019 14:51:15 +0200 Subject: [PATCH 25/72] drivers: fix unicode problems --- server/drivers/MD8800.c | 4 ++-- server/drivers/MD8800.h | 2 +- server/drivers/pylcd.c | 12 ++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/server/drivers/MD8800.c b/server/drivers/MD8800.c index e23cc659..d7d4bf74 100644 --- a/server/drivers/MD8800.c +++ b/server/drivers/MD8800.c @@ -3,7 +3,7 @@ */ /* - Copyright (C) 2006 Stefan Herdler in collaboration with Martin M�ller. + Copyright (C) 2006 Stefan Herdler in collaboration with Martin Møller. This source Code is based on the NoritakeVFD, the serialVFD and the CFontzPacket Driver of this package. @@ -28,7 +28,7 @@ ============================================================================== Known hardware-commands of the MD8800 display - discovered by Martin M�ller (listed in octal notation): + discovered by Martin Møller (listed in octal notation): \33\0abcdef (abcdef can be anything, it seems) - set clock, I think. The mapping is: bb:aa dd.cc.eeff diff --git a/server/drivers/MD8800.h b/server/drivers/MD8800.h index ba13c17a..c4d19c31 100644 --- a/server/drivers/MD8800.h +++ b/server/drivers/MD8800.h @@ -1,6 +1,6 @@ /* This is the LCDproc driver for the VFD of the Medion MD8800 PC - Copyright (C) 2006 Stefan Herdler in collaboration with Martin M�ller. + Copyright (C) 2006 Stefan Herdler in collaboration with Martin Møller. This source Code is based on the NoritakeVFD, the serialVFD and the CFontzPacket Driver of this package. diff --git a/server/drivers/pylcd.c b/server/drivers/pylcd.c index 2aeed3c8..9a9f300d 100644 --- a/server/drivers/pylcd.c +++ b/server/drivers/pylcd.c @@ -472,22 +472,22 @@ pyramid_flush(Driver *drvthis) */ for (i = 1; i < 33; i++) { switch ((unsigned char)mesg[i]) { - case 0xe4: /* � */ + case 0xe4: /* ä */ mesg[i] = 0xe1; break; - case 0xf6: /* � */ + case 0xf6: /* ö */ mesg[i] = 0xef; break; - case 0xfc: /* � */ + case 0xfc: /* ü */ mesg[i] = 0xf5; break; - case 0xdf: /* � */ + case 0xdf: /* ß */ mesg[i] = 0xe2; break; - case 0xb7: /* � */ + case 0xb7: /* · */ mesg[i] = 0xa5; break; - case 0xb0: /* � */ + case 0xb0: /* ° */ mesg[i] = 0xdf; break; } From 06f011fd7615dcb4a9c6526d213aef53f6546b79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Fri, 7 Jun 2019 14:56:27 +0200 Subject: [PATCH 26/72] mtxorb: extract keymap reading into function --- server/drivers/MtxOrb.c | 67 ++++++++++++----------------------------- 1 file changed, 19 insertions(+), 48 deletions(-) diff --git a/server/drivers/MtxOrb.c b/server/drivers/MtxOrb.c index fee48b1d..11d45169 100644 --- a/server/drivers/MtxOrb.c +++ b/server/drivers/MtxOrb.c @@ -208,6 +208,18 @@ static void MtxOrb_cursorblink(Driver *drvthis, int on); static void MtxOrb_cursor_goto(Driver *drvthis, int x, int y); +static void read_keymap_key(Driver *drvthis, PrivateData *p, int index, char key, const char * mapped_key) +{ + if(strlen(mapped_key) > 0) { + p->keymap[index] = strdup(key); + p->keys++; + report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": Key '%c' mapped to \"%s\"", drvthis->name, drvthis->index, key, mapped_key); + } else { + p->keymap[index] = NULL; + } +} + + /** * Initialize the driver. * \param drvthis Pointer to driver structure. @@ -215,7 +227,7 @@ static void MtxOrb_cursor_goto(Driver *drvthis, int x, int y); * \retval <0 Error. */ MODULE_EXPORT int -MtxOrb_init (Driver *drvthis, Elektra * elektra) +MtxOrb_init (Driver *drvthis, Elektra *elektra) { struct termios portset; int speed = DEFAULT_SPEED; @@ -335,53 +347,12 @@ MtxOrb_init (Driver *drvthis, Elektra * elektra) p->keys = 0; /* read the keymap */ - if(strlen(config.keymapA) > 0) { - p->keymap[0] = strdup(config.keymapA); - p->keys++; - report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": Key 'A' mapped to \"%s\"", drvthis->name, drvthis->index, config.keymapA); - } else { - p->keymap[0] = NULL; - } - - if(strlen(config.keymapB) > 0) { - p->keymap[1] = strdup(config.keymapB); - p->keys++; - report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": Key 'B' mapped to \"%s\"", drvthis->name, drvthis->index, config.keymapB); - } else { - p->keymap[1] = NULL; - } - - if(strlen(config.keymapC) > 0) { - p->keymap[2] = strdup(config.keymapC); - p->keys++; - report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": Key 'C' mapped to \"%s\"", drvthis->name, drvthis->index, config.keymapC); - } else { - p->keymap[2] = NULL; - } - - if(strlen(config.keymapD) > 0) { - p->keymap[3] = strdup(config.keymapD); - p->keys++; - report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": Key 'D' mapped to \"%s\"", drvthis->name, drvthis->index, config.keymapD); - } else { - p->keymap[4] = NULL; - } - - if(strlen(config.keymapE) > 0) { - p->keymap[4] = strdup(config.keymapE); - p->keys++; - report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": Key 'E' mapped to \"%s\"", drvthis->name, drvthis->index, config.keymapE); - } else { - p->keymap[4] = NULL; - } - - if(strlen(config.keymapF) > 0) { - p->keymap[5] = strdup(config.keymapF); - p->keys++; - report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": Key 'F' mapped to \"%s\"", drvthis->name, drvthis->index, config.keymapF); - } else { - p->keymap[5] = NULL; - } + read_keymap_key(drvthis, p, 0, 'A', config.keymapA); + read_keymap_key(drvthis, p, 1, 'B', config.keymapB); + read_keymap_key(drvthis, p, 2, 'C', config.keymapC); + read_keymap_key(drvthis, p, 3, 'D', config.keymapD); + read_keymap_key(drvthis, p, 4, 'E', config.keymapE); + read_keymap_key(drvthis, p, 5, 'F', config.keymapF); } /* End of config processing */ From 789e25805cf4acb5b405e5486f2f5372474c3ee3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Fri, 7 Jun 2019 15:06:28 +0200 Subject: [PATCH 27/72] all: remove shared/configfile and shared/getopt --- clients/lcdexec/lcdexec.c | 1 - clients/lcdexec/menu.c | 1 - clients/lcdproc/chrono.c | 1 - clients/lcdproc/iface.c | 1 - clients/lcdproc/load.c | 1 - clients/lcdvc/lcdvc.c | 1 - configure.ac | 19 - server/driver.c | 1 - server/input.c | 1 - server/main.c | 1 - server/menuscreens.c | 1 - server/serverscreens.c | 1 - shared/Makefile.am | 4 +- shared/configfile.c | 833 ----------------------------- shared/configfile.h | 107 ---- shared/getopt.c | 1049 ------------------------------------- shared/getopt.h | 169 ------ shared/getopt1.c | 188 ------- 18 files changed, 2 insertions(+), 2378 deletions(-) delete mode 100644 shared/configfile.c delete mode 100644 shared/configfile.h delete mode 100644 shared/getopt.c delete mode 100644 shared/getopt.h delete mode 100644 shared/getopt1.c diff --git a/clients/lcdexec/lcdexec.c b/clients/lcdexec/lcdexec.c index f85b1942..0828658c 100644 --- a/clients/lcdexec/lcdexec.c +++ b/clients/lcdexec/lcdexec.c @@ -26,7 +26,6 @@ #include "shared/str.h" #include "shared/report.h" -#include "shared/configfile.h" #include "shared/sockets.h" #include "menu.h" diff --git a/clients/lcdexec/menu.c b/clients/lcdexec/menu.c index fed2e0ef..cd35b72c 100644 --- a/clients/lcdexec/menu.c +++ b/clients/lcdexec/menu.c @@ -18,7 +18,6 @@ #include #include "shared/report.h" -#include "shared/configfile.h" #include "shared/sockets.h" #include "menu.h" diff --git a/clients/lcdproc/chrono.c b/clients/lcdproc/chrono.c index a537f9fc..f9da63ff 100644 --- a/clients/lcdproc/chrono.c +++ b/clients/lcdproc/chrono.c @@ -37,7 +37,6 @@ # endif #endif -#include "shared/configfile.h" #include "shared/sockets.h" #include "main.h" diff --git a/clients/lcdproc/iface.c b/clients/lcdproc/iface.c index f736eb74..3ba1c368 100644 --- a/clients/lcdproc/iface.c +++ b/clients/lcdproc/iface.c @@ -23,7 +23,6 @@ #include "shared/sockets.h" #include "shared/report.h" -#include "shared/configfile.h" #include "main.h" #include "machine.h" #include "util.h" diff --git a/clients/lcdproc/load.c b/clients/lcdproc/load.c index a1aee033..06dde039 100644 --- a/clients/lcdproc/load.c +++ b/clients/lcdproc/load.c @@ -19,7 +19,6 @@ # include "config.h" #endif -#include "shared/configfile.h" #include "shared/sockets.h" #include "main.h" #include "mode.h" diff --git a/clients/lcdvc/lcdvc.c b/clients/lcdvc/lcdvc.c index f270d972..6e3d49c6 100644 --- a/clients/lcdvc/lcdvc.c +++ b/clients/lcdvc/lcdvc.c @@ -25,7 +25,6 @@ #include "getopt.h" #include "shared/report.h" -#include "shared/configfile.h" #include "shared/sockets.h" #include "lcd_link.h" #include "vc_link.h" diff --git a/configure.ac b/configure.ac index 690bf978..b045572a 100644 --- a/configure.ac +++ b/configure.ac @@ -234,25 +234,6 @@ AC_PROG_GCC_TRADITIONAL AC_TYPE_SIGNAL AC_CHECK_FUNCS(select socket strdup strerror strtol uname cfmakeraw snprintf) -dnl Many people on non-GNU/Linux systems don't have getopt -AC_CONFIG_LIBOBJ_DIR(shared) -AC_CHECK_FUNC(getopt, - [ - AC_ARG_WITH(included-getopt, - [AS_HELP_STRING([--with-included-getopt], [Use the included getopt rather than glibc's])], - with_getopt=$withval, - with_getopt=$no) - if test "x$with_getopt" = xyes; then - AC_LIBOBJ(getopt) - AC_LIBOBJ(getopt1) - fi - ], - [ - AC_LIBOBJ(getopt) - AC_LIBOBJ(getopt1) - ]) - - dnl Check how to find the mtab file and how to get filesystem staticstics AC_FIND_MTAB_FILE AC_GET_FS_INFO diff --git a/server/driver.c b/server/driver.c index 5f4fa23b..da99a451 100644 --- a/server/driver.c +++ b/server/driver.c @@ -25,7 +25,6 @@ #include "main.h" /* for timer */ #include "shared/report.h" -#include "shared/configfile.h" #include "widget.h" #include "driver.h" diff --git a/server/input.c b/server/input.c index 8f9776df..d207659d 100644 --- a/server/input.c +++ b/server/input.c @@ -17,7 +17,6 @@ #include "shared/sockets.h" #include "shared/report.h" -#include "shared/configfile.h" #include "shared/LL.h" #include "drivers.h" diff --git a/server/main.c b/server/main.c index 92852bdd..1912de96 100644 --- a/server/main.c +++ b/server/main.c @@ -520,7 +520,6 @@ do_reload(void) drivers_unload_all(); /* Close all drivers */ - config_clear(); clear_settings(); elektraClose(elektra); diff --git a/server/menuscreens.c b/server/menuscreens.c index 56c8e1d6..12026509 100644 --- a/server/menuscreens.c +++ b/server/menuscreens.c @@ -29,7 +29,6 @@ #include "screen.h" #include "screenlist.h" #include "menuscreens.h" -#include "shared/configfile.h" #include "shared/report.h" #include "input.h" #include "driver.h" diff --git a/server/serverscreens.c b/server/serverscreens.c index aeab53b9..1cf45dd3 100644 --- a/server/serverscreens.c +++ b/server/serverscreens.c @@ -29,7 +29,6 @@ #endif #include "shared/report.h" -#include "shared/configfile.h" #include "drivers.h" #include "clients.h" diff --git a/shared/Makefile.am b/shared/Makefile.am index 1356cf07..088ccd57 100644 --- a/shared/Makefile.am +++ b/shared/Makefile.am @@ -2,12 +2,12 @@ noinst_LIBRARIES = libLCDstuff.a -libLCDstuff_a_SOURCES = LL.c LL.h sockets.c sockets.h str.c str.h configfile.c configfile.h report.c report.h snprintf.c snprintf.h sring.c sring.h +libLCDstuff_a_SOURCES = LL.c LL.h sockets.c sockets.h str.c str.h report.c report.h snprintf.c snprintf.h sring.c sring.h libLCDstuff_a_LIBADD = @LIBOBJS@ AM_CPPFLAGS = -I$(top_srcdir) -EXTRA_DIST = getopt.c getopt1.c getopt.h defines.h +EXTRA_DIST = defines.h ## EOF diff --git a/shared/configfile.c b/shared/configfile.c deleted file mode 100644 index 303cc186..00000000 --- a/shared/configfile.c +++ /dev/null @@ -1,833 +0,0 @@ -/** \file configfile.c - * Define routines to read INI-file like files. - */ - -/* This file is part of LCDd, the lcdproc server. - * - * This file is released under the GNU General Public License. Refer to the - * COPYING file distributed with this package. - * - * Copyright(c) 2001, Joris Robijn - * (c) 2003, Rene Wagner - * (c) 2006,2007 Peter Marschall - * - */ - -#include -#include -#include -#include -#include - -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - -#include "shared/report.h" - - -/** configuration key */ -typedef struct _config_key { - char *name; /**< name of the config key */ - char *value; /**< value of the config key */ - struct _config_key *next_key; /**< pointer to next config key */ -} ConfigKey; - -/** configuration section */ -typedef struct _config_section { - char *name; /**< name of the config section */ - ConfigKey *first_key; /**< config keys in the config section */ - struct _config_section *next_section; /**< pointer to next config section */ -} ConfigSection; - - -static ConfigSection *first_section = NULL; -/* Yes there is a static. It's C after all :)*/ - - -static ConfigSection *find_section(const char *sectionname); -static ConfigSection *add_section(const char *sectionname); -static ConfigKey *find_key(ConfigSection *s, const char *keyname, int skip); -static ConfigKey *add_key(ConfigSection *s, const char *keyname, const char *value); -#if defined(LCDPROC_CONFIG_READ_STRING) -static char get_next_char_f(FILE *f); -static int process_config(ConfigSection **current_section, char(*get_next_char)(), const char *source_descr, FILE *f); -#else -static int process_config(ConfigSection **current_section, const char *source_descr, FILE *f); -#endif - - -/**** PUBLIC FUNCTIONS ****/ - -/** Parse configuration from INI-file style config file into memory. - * \param filename Name of the config file. - * \retval 0 config successfully parsed - * \retval <0 error occurred - */ -int config_read_file(const char *filename) -{ - FILE *f; - ConfigSection *curr_section = NULL; - int result = 0; - - report(RPT_NOTICE, "Using Configuration File: %s", filename); - - f = fopen(filename, "r"); - if (f == NULL) { - return -1; - } - -#if defined(LCDPROC_CONFIG_READ_STRING) - result = process_config(&curr_section, get_next_char_f, filename, f); -#else - result = process_config(&curr_section, filename, f); -#endif - - fclose(f); - - return result; -} - - -#if defined(LCDPROC_CONFIG_READ_STRING) -int config_read_string(const char *sectionname, const char *str) -/* All the config parameters are placed in the given section in memory.*/ -{ - int pos = 0; - ConfigSection *s; - - /* We use a nested function to transfer the characters from buffer to parser*/ - char get_next_char() { - return str[pos++]; - } - - if ((s = find_section(sectionname)) == NULL) - s = add_section(sectionname); - - return process_config(&s, get_next_char, "command line", NULL); -} -#endif - - -/** Get string from configuration in memory. - * - * The strings returned are always NUL-terminated. - * They should never be modified, and used only short-term. - * In successive calls this function can re-use the data space ! - * - * You can do some things with the returned string: - * \li Scan or parse it: - * \code - * s = config_get_string(...); - * sscanf(s, "%dx%d", &w, &h); // scan format like: 20x4 - * \endcode - * ...and check the w and h values... - * \li Copy it to a pre-allocated buffer like \c device[256]: - * \code - * s = config_get_string(...); - * strncpy(device, s, sizeof(device)); - * device[sizeof(device)-1] = '\0'; // make sure it is terminated - * \endcode - * \li Copy it to a newly allocated space in \c char \c *device: - * \code - * s = config_get_string(...); - * device = malloc(strlen(s)+1); - * if (device == NULL) return -5; // or whatever < 0 - * strcpy( device, s ); - * \endcode - * - * \param sectionname Name of the section where the key is sought. - * \param keyname Name of the key to look for. - * \param skip Number of values to skip/ignore before returning the value. - * This is used to iterate through the values of a multi-valued key: - * \c 0 for the first value, \c 1 for the 2nd, ... and \c -1 for the last. - * \param default_value Default value if section/key is not found - * or \c skip exceeds the number of values of the key. - * \return Value found / \c default_value - */ -const char *config_get_string(const char *sectionname, const char *keyname, - int skip, const char *default_value) -{ - ConfigKey *k = find_key(find_section(sectionname), keyname, skip); - - if (k == NULL) - return default_value; - - return k->value; - -/* This is the safer way:*/ - - /* Reallocate memory space for the return value*/ - /* - string_storage = realloc(string_storage,(strlen(k->value) / 256 + 1) * 256); - strcpy(string_storage, k->value); - - But then you also need a global static string_storage = NULL; -*/ -} - - -/** Get boolean value from configuration in memory. - * - * Legal boolean values are: - * \li \c 0 , \c false , \c off , \c no or \c n for FALSE. - * \li \c 1 , \c true , \c on , \c yes or \c y for TRUE - * - * \param sectionname Name of the section where the key is sought. - * \param keyname Name of the key to look for. - * \param skip Number of values to skip/ignore before returning the value. - * This is used to iterate through the values of a multi-valued key: - * \c 0 for the first value, \c 1 for the 2nd, ... and \c -1 for the last. - * \param default_value Default value if section/key is not found, value is no legal boolean, - * or \c skip exceeds the number of values of the key. - * \return Value found / \c default_value - */ -short config_get_bool(const char *sectionname, const char *keyname, - int skip, short default_value) -{ - ConfigKey *k = find_key(find_section(sectionname), keyname, skip); - - if (k == NULL) - return default_value; - - if ((strcasecmp(k->value, "0") == 0) || (strcasecmp(k->value, "false") == 0) || - (strcasecmp(k->value, "n") == 0) || (strcasecmp(k->value, "no") == 0) || - (strcasecmp(k->value, "off") == 0)) { - return 0; - } - if ((strcasecmp(k->value, "1") == 0) || (strcasecmp(k->value, "true") == 0) || - (strcasecmp(k->value, "y") == 0) || (strcasecmp(k->value, "yes") == 0) || - (strcasecmp(k->value, "on") == 0)) { - return 1; - } - return default_value; -} - - -/** Get tristate value from configuration in memory. - * - * Legal tristate values are: - * \li \c 0 , \c false , \c off , \c no or \c n for 0. - * \li \c 1 , \c true , \c on , \c yes or \c y for 1 - * \li \c 2 or the given name of the third state for 2 - * - * \param sectionname Name of the section where the key is sought. - * \param keyname Name of the key to look for. - * \param skip Number of values to skip/ignore before returning the value. - * This is used to iterate through the values of a multi-valued key: - * \c 0 for the first value, \c 1 for the 2nd, ... and \c -1 for the last. - * \param name3rd Name of the 3rd state - * \param default_value Default value if section/key is not found, value is no legal boolean, - * or \c skip exceeds the number of values of the key. - * \return Value found / \c default_value - */ -short config_get_tristate(const char *sectionname, const char *keyname, - int skip, const char *name3rd, short default_value) -{ - ConfigKey *k = find_key(find_section(sectionname), keyname, skip); - - if (k == NULL) - return default_value; - - if ((strcasecmp(k->value, "0") == 0) || (strcasecmp(k->value, "false") == 0) || - (strcasecmp(k->value, "n") == 0) || (strcasecmp(k->value, "no") == 0) || - (strcasecmp(k->value, "off") == 0)) { - return 0; - } - if ((strcasecmp(k->value, "1") == 0) || (strcasecmp(k->value, "true") == 0) || - (strcasecmp(k->value, "y") == 0) || (strcasecmp(k->value, "yes") == 0) || - (strcasecmp(k->value, "on") == 0)) { - return 1; - } - if ((strcasecmp(k->value, "2") == 0) || - ((name3rd != NULL) && (strcasecmp(k->value, name3rd) == 0))) { - return 2; - } - return default_value; -} - - -/** Get integer from configuration in memory. - * \param sectionname Name of the section where the key is sought. - * \param keyname Name of the key to look for. - * \param skip Number of values to skip/ignore before returning the value. - * This is used to iterate through the values of a multi-valued key: - * \c 0 for the first value, \c 1 for the 2nd, ... and \c -1 for the last. - * \param default_value Default value if section/key is not found, value is no integer, - * or \c skip exceeds the number of values of the key. - * \return Value found / \c default_value - */ -long int config_get_int(const char *sectionname, const char *keyname, - int skip, long int default_value) -{ - ConfigKey *k = find_key(find_section(sectionname), keyname, skip); - - if (k != NULL) { - char *end; - long int v = strtol(k->value, &end, 0); - - if ((end != NULL) && (end != k->value) && (*end == '\0')) - /* Conversion successful */ - return v; - } - return default_value; -} - - -/** Get floating point number from configuration in memory. - * \param sectionname Name of the section where the key is sought. - * \param keyname Name of the key to look for. - * \param skip Number of values to skip/ignore before returning the value. - * This is used to iterate through the values of a multi-valued key: - * \c 0 for the first value, \c 1 for the 2nd, ... and \c -1 for the last. - * \param default_value Default value if section/key is not found, value is no floating point number - * or \c skip exceeds the number of values of the key. - * \return Value found / \c default_value - */ -double config_get_float(const char *sectionname, const char *keyname, - int skip, double default_value) -{ - ConfigKey *k = find_key(find_section(sectionname), keyname, skip); - - if (k != NULL) { - char *end; - double v = strtod(k->value, &end); - - if ((end != NULL) && (end != k->value) && (*end == '\0')) - /* Conversion successful*/ - return v; - } - return default_value; -} - - -/** Test whether the configuration contains a specific section. - * \param sectionname Name of the section to look for. - * \retval 0 section not in config - * \retval 1 section in config - */ -int config_has_section(const char *sectionname) -{ - return (find_section(sectionname) != NULL) ? 1 : 0; -} - - -/** Test whether the configuration contains a specific key in a specific section. - * \param sectionname Name of the section where the key is sought. - * \param keyname Name of the key to look for. - * \retval 0 key or section not found - * \retval n key found with \c n values (\c n > 0) - */ -int config_has_key(const char *sectionname, const char *keyname) -{ - ConfigSection *s = find_section(sectionname); - int count = 0; - - if (s != NULL) { - ConfigKey *k; - - for (k = s->first_key; k != NULL; k = k->next_key) { - /* Did we find the right key ?*/ - if (strcasecmp(k->name, keyname) == 0) - count++; - } - } - return count; -} - - -/** Clear configuration. */ -void config_clear(void) -{ - ConfigSection *s; - ConfigSection *next_s; - - for (s = first_section; s != NULL; s = next_s) { - ConfigKey *k; - ConfigKey *next_k; - - for (k = s->first_key; k != NULL; k = next_k) { - /* Advance before we destroy the current key */ - next_k = k->next_key; - - free(k->name); - free(k->value); - free(k); - } - /* Advance before we destroy the current section */ - next_s = s->next_section; - - /* And destroy it */ - free(s->name); - free(s); - } - /* Finally make everything inaccessible */ - first_section = NULL; -} - - -/**** INTERNAL FUNCTIONS ****/ - -static ConfigSection *find_section(const char *sectionname) -{ - ConfigSection *s; - - for (s = first_section; s != NULL; s = s->next_section) { - if (strcasecmp(s->name, sectionname) == 0) { - return s; - } - } - return NULL; /* not found */ -} - - -static ConfigSection *add_section(const char *sectionname) -{ - ConfigSection *s; - ConfigSection **place = &first_section; - - for (s = first_section; s != NULL; s = s->next_section) - place = &(s->next_section); - - *place = (ConfigSection *) malloc(sizeof(ConfigSection)); - if (*place != NULL) { - (*place)->name = strdup(sectionname); - (*place)->first_key = NULL; - (*place)->next_section = NULL; - } - - return(*place); -} - - -static ConfigKey *find_key(ConfigSection *s, const char *keyname, int skip) -{ - ConfigKey *k; - int count = 0; - ConfigKey *last_key = NULL; - - /* Check for NULL section*/ - if (s == NULL) - return NULL; - - for (k = s->first_key; k != NULL; k = k->next_key) { - - /* Did we find the right key ?*/ - if (strcasecmp(k->name, keyname) == 0) { - if (count == skip) - return k; - - count++; - last_key = k; - } - } - if (skip == -1) - return last_key; - - return NULL; /* not found*/ -} - - -static ConfigKey *add_key(ConfigSection *s, const char *keyname, const char *value) -{ - if (s != NULL) { - ConfigKey *k; - ConfigKey **place = &(s->first_key); - - for (k = s->first_key; k != NULL; k = k->next_key) - place = &(k->next_key); - - *place = (ConfigKey *) malloc(sizeof(ConfigKey)); - if (*place != NULL) { - (*place)->name = strdup(keyname); - (*place)->value = strdup(value); - (*place)->next_key = NULL; - } - - return(*place); - } - return NULL; -} - - -#if defined(LCDPROC_CONFIG_READ_STRING) -static char get_next_char_f(FILE *f) -{ - int c = fgetc(f); - - return((c == EOF) ? '\0' : c); -} -#endif - - -/* Parser states */ -#define ST_INITIAL 0 -#define ST_COMMENT 257 -#define ST_SECTIONLABEL 258 -#define ST_KEYNAME 259 -#define ST_ASSIGNMENT 260 -#define ST_VALUE 261 -#define ST_QUOTEDVALUE 262 -#define ST_SECTIONLABEL_DONE 263 -#define ST_VALUE_DONE 264 -#define ST_INVALID_SECTIONLABEL 265 -#define ST_INVALID_KEYNAME 266 -#define ST_INVALID_ASSIGNMENT 267 -#define ST_INVALID_VALUE 268 -#define ST_END 999 - -/* Limits */ -#define MAXSECTIONLABELLENGTH 40 -#define MAXKEYNAMELENGTH 40 -#define MAXVALUELENGTH 200 - - -#if defined(LCDPROC_CONFIG_READ_STRING) -static int process_config(ConfigSection **current_section, char(*get_next_char)(), const char *source_descr, FILE *f) -#else -static int process_config(ConfigSection **current_section, const char *source_descr, FILE *f) -#endif -{ - int state = ST_INITIAL; - int ch; - char sectionname[MAXSECTIONLABELLENGTH+1]; - int sectionname_pos = 0; - char keyname[MAXKEYNAMELENGTH+1]; - int keyname_pos = 0; - char value[MAXVALUELENGTH+1]; - int value_pos = 0; - int escape = 0; - int line_nr = 1; - int error = 0; - -#if !defined(LCDPROC_CONFIG_READ_STRING) - if (f == NULL) - return(0); -#endif - - while (state != ST_END) { - -#if defined(LCDPROC_CONFIG_READ_STRING) - ch = (f != NULL) - ? get_next_char(f) - : get_next_char(); -#else - ch = fgetc(f); - if (ch == EOF) - ch = '\0'; -#endif - - /* Secretly keep count of the line numbers */ - if (ch == '\n') - line_nr++; - - switch (state) { - case ST_INITIAL: - switch (ch) { - case '#': - case ';': - /* comment start */ - state = ST_COMMENT; - /* fall through */ - case '\0': - case '\n': - case '\r': - case '\t': - case ' ': - /* ignore spaces */ - break; - case '[': - /* section name */ - state = ST_SECTIONLABEL; - sectionname_pos = 0; - sectionname[sectionname_pos] = '\0'; - break; - default: - /* key word */ - state = ST_KEYNAME; - keyname_pos = 0; - keyname[keyname_pos++] = ch; - keyname[keyname_pos] = '\0'; - } - break; - case ST_SECTIONLABEL: - /* section label: "["{non-space chars}+"]" */ - switch (ch) { - case '\0': - case '\n': - /* premature end of label */ - report(RPT_WARNING, "Unterminated section label on line %d of %s: %s", - line_nr, source_descr, sectionname); - error = 1; - state = ST_INITIAL; /* already at the end, no resync required */ - break; - case ']': - /* label terminated: find/create section */ - if (!(*current_section = find_section(sectionname))) { - *current_section = add_section(sectionname); - } - state = ST_SECTIONLABEL_DONE; - break; - // case '\r': - // case '\t': - // case ' ': - // /* no spaces allowed in section labels WHY? */ - // report(RPT_WARNING, "Invalid character in section label on line %d of %s: %s", - // line_nr, source_descr, sectionname); - // error = 1; - // state = ST_INVALID_SECTIONLABEL; /* resync required */ - // break; - default: - /* append char to section label */ - if (sectionname_pos < MAXSECTIONLABELLENGTH) { - sectionname[sectionname_pos++] = ch; - sectionname[sectionname_pos] = '\0'; - break; - } - report(RPT_WARNING, "Section name too long on line %d of %s: %s", - line_nr, source_descr, sectionname); - error = 1; - state = ST_INVALID_SECTIONLABEL; /* resync required */ - } - break; - case ST_KEYNAME: - /* key name: {non-space chars}+ */ - switch (ch) { - case '\r': - case '\t': - case ' ': - /* ignore trailing spaces */ - if (keyname_pos != 0) - state = ST_ASSIGNMENT; - break; - case '\0': - case '\n': - /* premature end of line */ - report(RPT_WARNING, "Loose word found on line %d of %s: %s", - line_nr, source_descr, keyname); - error = 1; - state = ST_INITIAL; /* already at the end; no resync required */ - break; - case '=': - /* end of key reached, "=" found, now we need a value */ - state = ST_VALUE; - value[0] = '\0'; - value_pos = 0; - break; - // case '"': - // case '[': - // case ']': - // /* character invalid in key names WHY ? */ - // report(RPT_WARNING, "Invalid character in key name on line %d of %s: %s", - // line_nr, source_descr, keyname); - // error = 1; - // state = ST_INVALID_KEYNAME; /* resync required */ - // break; - default: - /* append char to key name */ - if (keyname_pos < MAXKEYNAMELENGTH) { - keyname[keyname_pos++] = ch; - keyname[keyname_pos] = '\0'; - break; - } - report(RPT_WARNING, "Key name too long on line %d of %s: %s", - line_nr, source_descr, keyname); - error = 1; - state = ST_INVALID_KEYNAME; /* resync required */ - } - break; - case ST_ASSIGNMENT: - /* assignment: "=" */ - switch (ch) { - case '\t': - case ' ': - /* ignore leading spaces */ - break; - case '=': - /* "=" found, now we need a value */ - state = ST_VALUE; - value[0] = '\0'; - value_pos = 0; - break; - default: - report(RPT_WARNING, "Assignment expected on line %d of %s: %s", - line_nr, source_descr, keyname); - error = 1; - state = ST_INVALID_ASSIGNMENT; - } - break; - case ST_VALUE: - /* value: {non-space char}+ | "\""{any potentially-quoted char}+"\"" */ - switch (ch) { - case '#': - case ';': - /* allow comment if we already had a value */ - /* WHY ONLY THEN ? 'xx=' can be seen as equivalent to 'xx=""' */ - if (value_pos > 0) { - state = ST_COMMENT; - break; - } - /* fall through */ - case '[': - case ']': - case '=': - /* illegal characters WHY? */ - report(RPT_WARNING, "Invalid character '%c' in value on line %d of %s, at key: %s", - ch, line_nr, source_descr, keyname); - error = 1; - state = ST_INVALID_VALUE; - break; - case '\t': - case ' ': - /* ignore leading spaces */ - if (value_pos == 0) - break; - /* fall through */ - case '\0': - case '\n': - case '\r': - /* value complete */ - if (!*current_section) { - report(RPT_WARNING, "Data outside sections on line %d of %s with key: %s", - line_nr, source_descr, keyname); - error = 1; - } - else { - /* Store the value*/ - (void) add_key(*current_section, keyname, value); - } - /* And be ready for next thing...*/ - state = ((ch == ' ') || (ch == '\t')) ? ST_VALUE_DONE : ST_INITIAL; - break; - case '"': - /* quoted string */ - state = ST_QUOTEDVALUE; - break; - default: - /* append char to value */ - if (value_pos < MAXVALUELENGTH) { - value[value_pos++] = ch; - value[value_pos] = '\0'; - break; - } - report(RPT_WARNING, "Value too long on line %d of %s, at key: %s", - line_nr, source_descr, keyname); - error = 1; - state = ST_INVALID_VALUE; - } - break; - case ST_QUOTEDVALUE: - /* a quoted part of a string */ - switch (ch) { - case '\0': - case '\n': - report(RPT_WARNING, "Premature end of quoted string on line %d of %s: %s", - line_nr, source_descr, keyname); - error = 1; - state = ST_INITIAL; - break; - case '\\': - if (!escape) { - escape = 1; - break; - } - /* fall through */ - case '"': - if (!escape) { - state = ST_VALUE; - break; - } - /* fall through */ - default: - if (escape) { - switch (ch) { - case 'a': ch = '\a'; break; - case 'b': ch = '\b'; break; - case 'f': ch = '\f'; break; - case 'n': ch = '\n'; break; - case 'r': ch = '\r'; break; - case 't': ch = '\t'; break; - case 'v': ch = '\v'; break; - /* default: literal char (i.e. ignore '\') */ - } - escape = 0; - } - value[value_pos++] = ch; - value[value_pos] = '\0'; - } - break; - case ST_SECTIONLABEL_DONE: - case ST_VALUE_DONE: - switch (ch) { - case ';': - case '#': - state = ST_COMMENT; - break; - case '\0': - case '\n': - state = ST_INITIAL; - break; - case '\t': - case ' ': - break; - default: - /* illegal characters */ - report(RPT_WARNING, "Invalid character '%c' on line %d of %s", - ch, line_nr, source_descr); - error = 1; - state = ST_INVALID_VALUE; - } - case ST_INVALID_SECTIONLABEL: - /* invalid section label: resync up to end of label/next line */ - if (ch == ']') - state = ST_INITIAL; - /* fall through */ - case ST_INVALID_ASSIGNMENT: - case ST_INVALID_KEYNAME: - case ST_INVALID_VALUE: - case ST_COMMENT: - /* comment or error: ignore anything up to the next line */ - if (ch == '\n') - state = ST_INITIAL; - } - if (ch == '\0') { - if ((!error) && (state != ST_INITIAL) && (state != ST_COMMENT) && - (state != ST_SECTIONLABEL_DONE) && (state != ST_VALUE_DONE)) { - report(RPT_WARNING, "Premature end of configuration on line %d of %s: %d", - line_nr, source_descr, state); - - error = 1; - } - state = ST_END; - } - - } - return (error) ? -1 : 0; -} - - -#if CONFIGFILE_DEBUGTEST -void config_dump(void) -{ -ConfigSection *s; - - for (s = first_section; s != NULL; s = s->next_section) { - ConfigKey *k; - - fprintf(stderr, "[%s]\n", s->name); - - for (k = s->first_key; k != NULL; k = k->next_key) - fprintf(stderr, "%s = \"%s\"\n", k->name, k->value); - - fprintf(stderr, "\n"); - } -} - - -int main(int argc, char *argv[]) -{ - if (argc > 0) - config_read_file(argv[1]); - config_dump(); -} -#endif diff --git a/shared/configfile.h b/shared/configfile.h deleted file mode 100644 index 0164b639..00000000 --- a/shared/configfile.h +++ /dev/null @@ -1,107 +0,0 @@ -/** \file configfile.h - * Declare routines to read INI-file like files. - */ - -/* This file is part of LCDd, the lcdproc server. - * - * This file is released under the GNU General Public License. Refer to the - * COPYING file distributed with this package. - * - * Copyright (c) 2001, Joris Robijn - * (c) 2006,2007 Peter Marschall - * - */ - -#ifndef CONFIGFILE_H -#define CONFIGFILE_H - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -/* Opens the specified file and reads everything into memory. - * Returns 0 when config file was successfully parsed - * Returns <0 on errors - */ -int config_read_file(const char *filename); - -#if defined(LCDPROC_CONFIG_READ_STRING) -/* Reads everything in the string into memory. - * Returns 0 when config file was successfully parsed - * Returns <0 on errors - */ -int config_read_string(const char *sectionname, const char *str); -#endif - -/* Tries to interpret a value in the config file as a boolean. - * 0, false, off, no, n = false - * 1, true, on, yes, y = true - * If the key is not found or cannot be interpreted, the given default value is - * returned. - * The skip value can be used to iterate over multiple values with the same - * key. Should be 0 to get the first one, 1 for the second etc. and -1 for the - * last. - */ -short config_get_bool(const char *sectionname, const char *keyname, - int skip, short default_value); - -/* Tries to interpret a value in the config file as a boolean. - * 0, false, off, no, n = 0 - * 1, true, on, yes, y = 1 - * 2, or the given 3rd name = 2 - * If the key is not found or cannot be interpreted, the given default value is - * returned. - * The skip value can be used to iterate over multiple values with the same - * key. Should be 0 to get the first one, 1 for the second etc. and -1 for the - * last. - */ -short config_get_tristate(const char *sectionname, const char *keyname, - int skip, const char *name3rd, short default_value); - -/* Tries to interpret a value in the config file as an integer.*/ -long int config_get_int(const char *sectionname, const char *keyname, - int skip, long int default_value); - -/* Tries to interpret a value in the config file as a float.*/ -double config_get_float(const char *sectionname, const char *keyname, - int skip, double default_value); - -/* Returns a pointer to the string associated with the specified key. - * The strings returned are always NUL-terminated. - * The string should never be modified, and used only short-term. - * In successive calls this function can * re-use the data space ! - * - * You can do some things with the returned string: - * 1. Scan or parse it: - * s = config_get_string(...); - * sscanf( s, "%dx%d", &w, &h ); // scan format like: 20x4 - * ...and check the w and h values... - * 2. Copy it to a preallocated buffer like device[256]: - * s = config_get_string(...); - * strncpy( device, s, sizeof(device)); - * device[sizeof(device)-1] = 0; - * 3. Copy it to a newly allocated space in char *device: - * s = config_get_string(...); - * device = malloc(strlen(s)+1); - * if( device == NULL ) return -5; // or whatever < 0 - * strcpy( device, s ); - */ -const char *config_get_string(const char *sectionname, const char *keyname, - int skip, const char *default_value); - -/* Checks if a specified section exists. - * Returns whether it exists. - */ -int config_has_section(const char *sectionname); - -/* Checks if a specified key within the specified section exists. - * Returns the number of times the key exists. - */ -int config_has_key(const char *sectionname, const char *keyname); - -/* Clears all data stored by the config_read_* functions. - * Should be called if the config should be reread. - */ -void config_clear(void); - -#endif diff --git a/shared/getopt.c b/shared/getopt.c deleted file mode 100644 index 5b6fe98e..00000000 --- a/shared/getopt.c +++ /dev/null @@ -1,1049 +0,0 @@ -/* Getopt for GNU. - NOTE: The canonical source of this file is maintained with the GNU - C Library. Bugs can be reported to bug-glibc@gnu.org. - - Copyright (C) 1987, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99 - Free Software Foundation, Inc. - - This program is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2, or (at your option) any - later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ - -/* This tells Alpha OSF/1 not to define a getopt prototype in . - Ditto for AIX 3.2 and . */ -#ifndef _NO_PROTO -# define _NO_PROTO -#endif - -#ifdef HAVE_CONFIG_H -# include "config.h" -#else -# if !defined __STDC__ || !__STDC__ -/* This is a separate conditional since some stdc systems - reject `defined (const)'. */ -# ifndef const -# define const -# endif -# endif -#endif - -#include - -/* Comment out all this code if we are using the GNU C Library, and are not - actually compiling the library itself. This code is part of the GNU C - Library, but also included in many other GNU distributions. Compiling - and linking in this code is a waste when using the GNU C library - (especially if it is a shared library). Rather than having every GNU - program understand `configure --with-gnu-libc' and omit the object files, - it is simpler to just do this in the source for each such file. */ - -#define GETOPT_INTERFACE_VERSION 2 -#if !defined _LIBC && defined __GLIBC__ && __GLIBC__ >= 2 -# include -# if _GNU_GETOPT_INTERFACE_VERSION == GETOPT_INTERFACE_VERSION -# define ELIDE_CODE -# endif -#endif - -#ifndef ELIDE_CODE - - -/* This needs to come after some library #include - to get __GNU_LIBRARY__ defined. */ -#ifdef __GNU_LIBRARY__ -/* Don't include stdlib.h for non-GNU C libraries because some of them - contain conflicting prototypes for getopt. */ -# include -# include -#endif /* GNU C library. */ - -#ifdef VMS -# include -# if HAVE_STRING_H - 0 -# include -# endif -#endif - -#ifndef _ -/* This is for other GNU distributions with internationalized messages. - When compiling libc, the _ macro is predefined. */ -# ifdef HAVE_LIBINTL_H -# include -# define _(msgid) gettext (msgid) -# else -# define _(msgid) (msgid) -# endif -#endif - -/* This version of `getopt' appears to the caller like standard Unix `getopt' - but it behaves differently for the user, since it allows the user - to intersperse the options with the other arguments. - - As `getopt' works, it permutes the elements of ARGV so that, - when it is done, all the options precede everything else. Thus - all application programs are extended to handle flexible argument order. - - Setting the environment variable POSIXLY_CORRECT disables permutation. - Then the behavior is completely standard. - - GNU application programs can use a third alternative mode in which - they can distinguish the relative order of options and other arguments. */ - -#include "getopt.h" - -/* For communication from `getopt' to the caller. - When `getopt' finds an option that takes an argument, - the argument value is returned here. - Also, when `ordering' is RETURN_IN_ORDER, - each non-option ARGV-element is returned here. */ - -char *optarg; - -/* Index in ARGV of the next element to be scanned. - This is used for communication to and from the caller - and for communication between successive calls to `getopt'. - - On entry to `getopt', zero means this is the first call; initialize. - - When `getopt' returns -1, this is the index of the first of the - non-option elements that the caller should itself scan. - - Otherwise, `optind' communicates from one call to the next - how much of ARGV has been scanned so far. */ - -/* 1003.2 says this must be 1 before any call. */ -int optind = 1; - -/* Formerly, initialization of getopt depended on optind==0, which - causes problems with re-calling getopt as programs generally don't - know that. */ - -int __getopt_initialized; - -/* The next char to be scanned in the option-element - in which the last option character we returned was found. - This allows us to pick up the scan where we left off. - - If this is zero, or a null string, it means resume the scan - by advancing to the next ARGV-element. */ - -static char *nextchar; - -/* Callers store zero here to inhibit the error message - for unrecognized options. */ - -int opterr = 1; - -/* Set to an option character which was unrecognized. - This must be initialized on some systems to avoid linking in the - system's own getopt implementation. */ - -int optopt = '?'; - -/* Describe how to deal with options that follow non-option ARGV-elements. - - If the caller did not specify anything, - the default is REQUIRE_ORDER if the environment variable - POSIXLY_CORRECT is defined, PERMUTE otherwise. - - REQUIRE_ORDER means don't recognize them as options; - stop option processing when the first non-option is seen. - This is what Unix does. - This mode of operation is selected by either setting the environment - variable POSIXLY_CORRECT, or using `+' as the first character - of the list of option characters. - - PERMUTE is the default. We permute the contents of ARGV as we scan, - so that eventually all the non-options are at the end. This allows options - to be given in any order, even with programs that were not written to - expect this. - - RETURN_IN_ORDER is an option available to programs that were written - to expect options and other ARGV-elements in any order and that care about - the ordering of the two. We describe each non-option ARGV-element - as if it were the argument of an option with character code 1. - Using `-' as the first character of the list of option characters - selects this mode of operation. - - The special argument `--' forces an end of option-scanning regardless - of the value of `ordering'. In the case of RETURN_IN_ORDER, only - `--' can cause `getopt' to return -1 with `optind' != ARGC. */ - -static enum -{ - REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER -} ordering; - -/* Value of POSIXLY_CORRECT environment variable. */ -static char *posixly_correct; - -#ifdef __GNU_LIBRARY__ -/* We want to avoid inclusion of string.h with non-GNU libraries - because there are many ways it can cause trouble. - On some systems, it contains special magic macros that don't work - in GCC. */ -# include -# define my_index strchr -#else - -# if HAVE_STRING_H -# include -# else -# include -# endif - -/* Avoid depending on library functions or files - whose names are inconsistent. */ - -#ifndef getenv -extern char *getenv (); -#endif - -static char * -my_index (str, chr) - const char *str; - int chr; -{ - while (*str) - { - if (*str == chr) - return (char *) str; - str++; - } - return 0; -} - -/* If using GCC, we can safely declare strlen this way. - If not using GCC, it is ok not to declare it. */ -#ifdef __GNUC__ -/* Note that Motorola Delta 68k R3V7 comes with GCC but not stddef.h. - That was relevant to code that was here before. */ -# if (!defined __STDC__ || !__STDC__) && !defined strlen -/* gcc with -traditional declares the built-in strlen to return int, - and has done so at least since version 2.4.5. -- rms. */ -extern int strlen (const char *); -# endif /* not __STDC__ */ -#endif /* __GNUC__ */ - -#endif /* not __GNU_LIBRARY__ */ - -/* Handle permutation of arguments. */ - -/* Describe the part of ARGV that contains non-options that have - been skipped. `first_nonopt' is the index in ARGV of the first of them; - `last_nonopt' is the index after the last of them. */ - -static int first_nonopt; -static int last_nonopt; - -#ifdef _LIBC -/* Bash 2.0 gives us an environment variable containing flags - indicating ARGV elements that should not be considered arguments. */ - -/* Defined in getopt_init.c */ -extern char *__getopt_nonoption_flags; - -static int nonoption_flags_max_len; -static int nonoption_flags_len; - -static int original_argc; -static char *const *original_argv; - -/* Make sure the environment variable bash 2.0 puts in the environment - is valid for the getopt call we must make sure that the ARGV passed - to getopt is that one passed to the process. */ -static void -__attribute__ ((unused)) -store_args_and_env (int argc, char *const *argv) -{ - /* XXX This is no good solution. We should rather copy the args so - that we can compare them later. But we must not use malloc(3). */ - original_argc = argc; - original_argv = argv; -} -# ifdef text_set_element -text_set_element (__libc_subinit, store_args_and_env); -# endif /* text_set_element */ - -# define SWAP_FLAGS(ch1, ch2) \ - if (nonoption_flags_len > 0) \ - { \ - char __tmp = __getopt_nonoption_flags[ch1]; \ - __getopt_nonoption_flags[ch1] = __getopt_nonoption_flags[ch2]; \ - __getopt_nonoption_flags[ch2] = __tmp; \ - } -#else /* !_LIBC */ -# define SWAP_FLAGS(ch1, ch2) -#endif /* _LIBC */ - -/* Exchange two adjacent subsequences of ARGV. - One subsequence is elements [first_nonopt,last_nonopt) - which contains all the non-options that have been skipped so far. - The other is elements [last_nonopt,optind), which contains all - the options processed since those non-options were skipped. - - `first_nonopt' and `last_nonopt' are relocated so that they describe - the new indices of the non-options in ARGV after they are moved. */ - -#if defined __STDC__ && __STDC__ -static void exchange (char **); -#endif - -static void -exchange (argv) - char **argv; -{ - int bottom = first_nonopt; - int middle = last_nonopt; - int top = optind; - char *tem; - - /* Exchange the shorter segment with the far end of the longer segment. - That puts the shorter segment into the right place. - It leaves the longer segment in the right place overall, - but it consists of two parts that need to be swapped next. */ - -#ifdef _LIBC - /* First make sure the handling of the `__getopt_nonoption_flags' - string can work normally. Our top argument must be in the range - of the string. */ - if (nonoption_flags_len > 0 && top >= nonoption_flags_max_len) - { - /* We must extend the array. The user plays games with us and - presents new arguments. */ - char *new_str = malloc (top + 1); - if (new_str == NULL) - nonoption_flags_len = nonoption_flags_max_len = 0; - else - { - memset (__mempcpy (new_str, __getopt_nonoption_flags, - nonoption_flags_max_len), - '\0', top + 1 - nonoption_flags_max_len); - nonoption_flags_max_len = top + 1; - __getopt_nonoption_flags = new_str; - } - } -#endif - - while (top > middle && middle > bottom) - { - if (top - middle > middle - bottom) - { - /* Bottom segment is the short one. */ - int len = middle - bottom; - register int i; - - /* Swap it with the top part of the top segment. */ - for (i = 0; i < len; i++) - { - tem = argv[bottom + i]; - argv[bottom + i] = argv[top - (middle - bottom) + i]; - argv[top - (middle - bottom) + i] = tem; - SWAP_FLAGS (bottom + i, top - (middle - bottom) + i); - } - /* Exclude the moved bottom segment from further swapping. */ - top -= len; - } - else - { - /* Top segment is the short one. */ - int len = top - middle; - register int i; - - /* Swap it with the bottom part of the bottom segment. */ - for (i = 0; i < len; i++) - { - tem = argv[bottom + i]; - argv[bottom + i] = argv[middle + i]; - argv[middle + i] = tem; - SWAP_FLAGS (bottom + i, middle + i); - } - /* Exclude the moved top segment from further swapping. */ - bottom += len; - } - } - - /* Update records for the slots the non-options now occupy. */ - - first_nonopt += (optind - last_nonopt); - last_nonopt = optind; -} - -/* Initialize the internal data when the first call is made. */ - -#if defined __STDC__ && __STDC__ -static const char *_getopt_initialize (int, char *const *, const char *); -#endif -static const char * -_getopt_initialize (argc, argv, optstring) - int argc; - char *const *argv; - const char *optstring; -{ - /* Start processing options with ARGV-element 1 (since ARGV-element 0 - is the program name); the sequence of previously skipped - non-option ARGV-elements is empty. */ - - first_nonopt = last_nonopt = optind; - - nextchar = NULL; - - posixly_correct = getenv ("POSIXLY_CORRECT"); - - /* Determine how to handle the ordering of options and nonoptions. */ - - if (optstring[0] == '-') - { - ordering = RETURN_IN_ORDER; - ++optstring; - } - else if (optstring[0] == '+') - { - ordering = REQUIRE_ORDER; - ++optstring; - } - else if (posixly_correct != NULL) - ordering = REQUIRE_ORDER; - else - ordering = PERMUTE; - -#ifdef _LIBC - if (posixly_correct == NULL - && argc == original_argc && argv == original_argv) - { - if (nonoption_flags_max_len == 0) - { - if (__getopt_nonoption_flags == NULL - || __getopt_nonoption_flags[0] == '\0') - nonoption_flags_max_len = -1; - else - { - const char *orig_str = __getopt_nonoption_flags; - int len = nonoption_flags_max_len = strlen (orig_str); - if (nonoption_flags_max_len < argc) - nonoption_flags_max_len = argc; - __getopt_nonoption_flags = - (char *) malloc (nonoption_flags_max_len); - if (__getopt_nonoption_flags == NULL) - nonoption_flags_max_len = -1; - else - memset (__mempcpy (__getopt_nonoption_flags, orig_str, len), - '\0', nonoption_flags_max_len - len); - } - } - nonoption_flags_len = nonoption_flags_max_len; - } - else - nonoption_flags_len = 0; -#endif - - return optstring; -} - -/* Scan elements of ARGV (whose length is ARGC) for option characters - given in OPTSTRING. - - If an element of ARGV starts with '-', and is not exactly "-" or "--", - then it is an option element. The characters of this element - (aside from the initial '-') are option characters. If `getopt' - is called repeatedly, it returns successively each of the option characters - from each of the option elements. - - If `getopt' finds another option character, it returns that character, - updating `optind' and `nextchar' so that the next call to `getopt' can - resume the scan with the following option character or ARGV-element. - - If there are no more option characters, `getopt' returns -1. - Then `optind' is the index in ARGV of the first ARGV-element - that is not an option. (The ARGV-elements have been permuted - so that those that are not options now come last.) - - OPTSTRING is a string containing the legitimate option characters. - If an option character is seen that is not listed in OPTSTRING, - return '?' after printing an error message. If you set `opterr' to - zero, the error message is suppressed but we still return '?'. - - If a char in OPTSTRING is followed by a colon, that means it wants an arg, - so the following text in the same ARGV-element, or the text of the following - ARGV-element, is returned in `optarg'. Two colons mean an option that - wants an optional arg; if there is text in the current ARGV-element, - it is returned in `optarg', otherwise `optarg' is set to zero. - - If OPTSTRING starts with `-' or `+', it requests different methods of - handling the non-option ARGV-elements. - See the comments about RETURN_IN_ORDER and REQUIRE_ORDER, above. - - Long-named options begin with `--' instead of `-'. - Their names may be abbreviated as long as the abbreviation is unique - or is an exact match for some defined option. If they have an - argument, it follows the option name in the same ARGV-element, separated - from the option name by a `=', or else the in next ARGV-element. - When `getopt' finds a long-named option, it returns 0 if that option's - `flag' field is nonzero, the value of the option's `val' field - if the `flag' field is zero. - - The elements of ARGV aren't really const, because we permute them. - But we pretend they're const in the prototype to be compatible - with other systems. - - LONGOPTS is a vector of `struct option' terminated by an - element containing a name which is zero. - - LONGIND returns the index in LONGOPT of the long-named option found. - It is only valid when a long-named option has been found by the most - recent call. - - If LONG_ONLY is nonzero, '-' as well as '--' can introduce - long-named options. */ - -int -_getopt_internal (argc, argv, optstring, longopts, longind, long_only) - int argc; - char *const *argv; - const char *optstring; - const struct option *longopts; - int *longind; - int long_only; -{ - optarg = NULL; - - if (optind == 0 || !__getopt_initialized) - { - if (optind == 0) - optind = 1; /* Don't scan ARGV[0], the program name. */ - optstring = _getopt_initialize (argc, argv, optstring); - __getopt_initialized = 1; - } - - /* Test whether ARGV[optind] points to a non-option argument. - Either it does not have option syntax, or there is an environment flag - from the shell indicating it is not an option. The later information - is only used when the used in the GNU libc. */ -#ifdef _LIBC -# define NONOPTION_P (argv[optind][0] != '-' || argv[optind][1] == '\0' \ - || (optind < nonoption_flags_len \ - && __getopt_nonoption_flags[optind] == '1')) -#else -# define NONOPTION_P (argv[optind][0] != '-' || argv[optind][1] == '\0') -#endif - - if (nextchar == NULL || *nextchar == '\0') - { - /* Advance to the next ARGV-element. */ - - /* Give FIRST_NONOPT & LAST_NONOPT rational values if OPTIND has been - moved back by the user (who may also have changed the arguments). */ - if (last_nonopt > optind) - last_nonopt = optind; - if (first_nonopt > optind) - first_nonopt = optind; - - if (ordering == PERMUTE) - { - /* If we have just processed some options following some non-options, - exchange them so that the options come first. */ - - if (first_nonopt != last_nonopt && last_nonopt != optind) - exchange ((char **) argv); - else if (last_nonopt != optind) - first_nonopt = optind; - - /* Skip any additional non-options - and extend the range of non-options previously skipped. */ - - while (optind < argc && NONOPTION_P) - optind++; - last_nonopt = optind; - } - - /* The special ARGV-element `--' means premature end of options. - Skip it like a null option, - then exchange with previous non-options as if it were an option, - then skip everything else like a non-option. */ - - if (optind != argc && !strcmp (argv[optind], "--")) - { - optind++; - - if (first_nonopt != last_nonopt && last_nonopt != optind) - exchange ((char **) argv); - else if (first_nonopt == last_nonopt) - first_nonopt = optind; - last_nonopt = argc; - - optind = argc; - } - - /* If we have done all the ARGV-elements, stop the scan - and back over any non-options that we skipped and permuted. */ - - if (optind == argc) - { - /* Set the next-arg-index to point at the non-options - that we previously skipped, so the caller will digest them. */ - if (first_nonopt != last_nonopt) - optind = first_nonopt; - return -1; - } - - /* If we have come to a non-option and did not permute it, - either stop the scan or describe it to the caller and pass it by. */ - - if (NONOPTION_P) - { - if (ordering == REQUIRE_ORDER) - return -1; - optarg = argv[optind++]; - return 1; - } - - /* We have found another option-ARGV-element. - Skip the initial punctuation. */ - - nextchar = (argv[optind] + 1 - + (longopts != NULL && argv[optind][1] == '-')); - } - - /* Decode the current option-ARGV-element. */ - - /* Check whether the ARGV-element is a long option. - - If long_only and the ARGV-element has the form "-f", where f is - a valid short option, don't consider it an abbreviated form of - a long option that starts with f. Otherwise there would be no - way to give the -f short option. - - On the other hand, if there's a long option "fubar" and - the ARGV-element is "-fu", do consider that an abbreviation of - the long option, just like "--fu", and not "-f" with arg "u". - - This distinction seems to be the most useful approach. */ - - if (longopts != NULL - && (argv[optind][1] == '-' - || (long_only && (argv[optind][2] || !my_index (optstring, argv[optind][1]))))) - { - char *nameend; - const struct option *p; - const struct option *pfound = NULL; - int exact = 0; - int ambig = 0; - int indfound = -1; - int option_index; - - for (nameend = nextchar; *nameend && *nameend != '='; nameend++) - /* Do nothing. */ ; - - /* Test all long options for either exact match - or abbreviated matches. */ - for (p = longopts, option_index = 0; p->name; p++, option_index++) - if (!strncmp (p->name, nextchar, nameend - nextchar)) - { - if ((unsigned int) (nameend - nextchar) - == (unsigned int) strlen (p->name)) - { - /* Exact match found. */ - pfound = p; - indfound = option_index; - exact = 1; - break; - } - else if (pfound == NULL) - { - /* First nonexact match found. */ - pfound = p; - indfound = option_index; - } - else - /* Second or later nonexact match found. */ - ambig = 1; - } - - if (ambig && !exact) - { - if (opterr) - fprintf (stderr, _("%s: option `%s' is ambiguous\n"), - argv[0], argv[optind]); - nextchar += strlen (nextchar); - optind++; - optopt = 0; - return '?'; - } - - if (pfound != NULL) - { - option_index = indfound; - optind++; - if (*nameend) - { - /* Don't test has_arg with >, because some C compilers don't - allow it to be used on enums. */ - if (pfound->has_arg) - optarg = nameend + 1; - else - { - if (opterr) - { - if (argv[optind - 1][1] == '-') - /* --option */ - fprintf (stderr, - _("%s: option `--%s' doesn't allow an argument\n"), - argv[0], pfound->name); - else - /* +option or -option */ - fprintf (stderr, - _("%s: option `%c%s' doesn't allow an argument\n"), - argv[0], argv[optind - 1][0], pfound->name); - } - - nextchar += strlen (nextchar); - - optopt = pfound->val; - return '?'; - } - } - else if (pfound->has_arg == 1) - { - if (optind < argc) - optarg = argv[optind++]; - else - { - if (opterr) - fprintf (stderr, - _("%s: option `%s' requires an argument\n"), - argv[0], argv[optind - 1]); - nextchar += strlen (nextchar); - optopt = pfound->val; - return optstring[0] == ':' ? ':' : '?'; - } - } - nextchar += strlen (nextchar); - if (longind != NULL) - *longind = option_index; - if (pfound->flag) - { - *(pfound->flag) = pfound->val; - return 0; - } - return pfound->val; - } - - /* Can't find it as a long option. If this is not getopt_long_only, - or the option starts with '--' or is not a valid short - option, then it's an error. - Otherwise interpret it as a short option. */ - if (!long_only || argv[optind][1] == '-' - || my_index (optstring, *nextchar) == NULL) - { - if (opterr) - { - if (argv[optind][1] == '-') - /* --option */ - fprintf (stderr, _("%s: unrecognized option `--%s'\n"), - argv[0], nextchar); - else - /* +option or -option */ - fprintf (stderr, _("%s: unrecognized option `%c%s'\n"), - argv[0], argv[optind][0], nextchar); - } - nextchar = (char *) ""; - optind++; - optopt = 0; - return '?'; - } - } - - /* Look at and handle the next short option-character. */ - - { - char c = *nextchar++; - char *temp = my_index (optstring, c); - - /* Increment `optind' when we start to process its last character. */ - if (*nextchar == '\0') - ++optind; - - if (temp == NULL || c == ':') - { - if (opterr) - { - if (posixly_correct) - /* 1003.2 specifies the format of this message. */ - fprintf (stderr, _("%s: illegal option -- %c\n"), - argv[0], c); - else - fprintf (stderr, _("%s: invalid option -- %c\n"), - argv[0], c); - } - optopt = c; - return '?'; - } - /* Convenience. Treat POSIX -W foo same as long option --foo */ - if (temp[0] == 'W' && temp[1] == ';') - { - char *nameend; - const struct option *p; - const struct option *pfound = NULL; - int exact = 0; - int ambig = 0; - int indfound = 0; - int option_index; - - /* This is an option that requires an argument. */ - if (*nextchar != '\0') - { - optarg = nextchar; - /* If we end this ARGV-element by taking the rest as an arg, - we must advance to the next element now. */ - optind++; - } - else if (optind == argc) - { - if (opterr) - { - /* 1003.2 specifies the format of this message. */ - fprintf (stderr, _("%s: option requires an argument -- %c\n"), - argv[0], c); - } - optopt = c; - if (optstring[0] == ':') - c = ':'; - else - c = '?'; - return c; - } - else - /* We already incremented `optind' once; - increment it again when taking next ARGV-elt as argument. */ - optarg = argv[optind++]; - - /* optarg is now the argument, see if it's in the - table of longopts. */ - - for (nextchar = nameend = optarg; *nameend && *nameend != '='; nameend++) - /* Do nothing. */ ; - - /* Test all long options for either exact match - or abbreviated matches. */ - for (p = longopts, option_index = 0; p->name; p++, option_index++) - if (!strncmp (p->name, nextchar, nameend - nextchar)) - { - if ((unsigned int) (nameend - nextchar) == strlen (p->name)) - { - /* Exact match found. */ - pfound = p; - indfound = option_index; - exact = 1; - break; - } - else if (pfound == NULL) - { - /* First nonexact match found. */ - pfound = p; - indfound = option_index; - } - else - /* Second or later nonexact match found. */ - ambig = 1; - } - if (ambig && !exact) - { - if (opterr) - fprintf (stderr, _("%s: option `-W %s' is ambiguous\n"), - argv[0], argv[optind]); - nextchar += strlen (nextchar); - optind++; - return '?'; - } - if (pfound != NULL) - { - option_index = indfound; - if (*nameend) - { - /* Don't test has_arg with >, because some C compilers don't - allow it to be used on enums. */ - if (pfound->has_arg) - optarg = nameend + 1; - else - { - if (opterr) - fprintf (stderr, _("\ -%s: option `-W %s' doesn't allow an argument\n"), - argv[0], pfound->name); - - nextchar += strlen (nextchar); - return '?'; - } - } - else if (pfound->has_arg == 1) - { - if (optind < argc) - optarg = argv[optind++]; - else - { - if (opterr) - fprintf (stderr, - _("%s: option `%s' requires an argument\n"), - argv[0], argv[optind - 1]); - nextchar += strlen (nextchar); - return optstring[0] == ':' ? ':' : '?'; - } - } - nextchar += strlen (nextchar); - if (longind != NULL) - *longind = option_index; - if (pfound->flag) - { - *(pfound->flag) = pfound->val; - return 0; - } - return pfound->val; - } - nextchar = NULL; - return 'W'; /* Let the application handle it. */ - } - if (temp[1] == ':') - { - if (temp[2] == ':') - { - /* This is an option that accepts an argument optionally. */ - if (*nextchar != '\0') - { - optarg = nextchar; - optind++; - } - else - optarg = NULL; - nextchar = NULL; - } - else - { - /* This is an option that requires an argument. */ - if (*nextchar != '\0') - { - optarg = nextchar; - /* If we end this ARGV-element by taking the rest as an arg, - we must advance to the next element now. */ - optind++; - } - else if (optind == argc) - { - if (opterr) - { - /* 1003.2 specifies the format of this message. */ - fprintf (stderr, - _("%s: option requires an argument -- %c\n"), - argv[0], c); - } - optopt = c; - if (optstring[0] == ':') - c = ':'; - else - c = '?'; - } - else - /* We already incremented `optind' once; - increment it again when taking next ARGV-elt as argument. */ - optarg = argv[optind++]; - nextchar = NULL; - } - } - return c; - } -} - -int -getopt (argc, argv, optstring) - int argc; - char *const *argv; - const char *optstring; -{ - return _getopt_internal (argc, argv, optstring, - (const struct option *) 0, - (int *) 0, - 0); -} - -#endif /* Not ELIDE_CODE. */ - -#ifdef TEST - -/* Compile with -DTEST to make an executable for use in testing - the above definition of `getopt'. */ - -int -main (argc, argv) - int argc; - char **argv; -{ - int c; - int digit_optind = 0; - - while (1) - { - int this_option_optind = optind ? optind : 1; - - c = getopt (argc, argv, "abc:d:0123456789"); - if (c == -1) - break; - - switch (c) - { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - if (digit_optind != 0 && digit_optind != this_option_optind) - printf ("digits occur in two different argv-elements.\n"); - digit_optind = this_option_optind; - printf ("option %c\n", c); - break; - - case 'a': - printf ("option a\n"); - break; - - case 'b': - printf ("option b\n"); - break; - - case 'c': - printf ("option c with value `%s'\n", optarg); - break; - - case '?': - break; - - default: - printf ("?? getopt returned character code 0%o ??\n", c); - } - } - - if (optind < argc) - { - printf ("non-option ARGV-elements: "); - while (optind < argc) - printf ("%s ", argv[optind++]); - printf ("\n"); - } - - exit (0); -} - -#endif /* TEST */ diff --git a/shared/getopt.h b/shared/getopt.h deleted file mode 100644 index c60d1999..00000000 --- a/shared/getopt.h +++ /dev/null @@ -1,169 +0,0 @@ -/* Declarations for getopt. - Copyright (C) 1989,90,91,92,93,94,96,97,98 Free Software Foundation, Inc. - NOTE: The canonical source of this file is maintained with the GNU C Library. - Bugs can be reported to bug-glibc@gnu.org. - This program is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2, or (at your option) any - later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, - USA. */ - -#ifndef _GETOPT_H - -#ifndef __need_getopt -# define _GETOPT_H 1 -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -/* For communication from `getopt' to the caller. - When `getopt' finds an option that takes an argument, - the argument value is returned here. - Also, when `ordering' is RETURN_IN_ORDER, - each non-option ARGV-element is returned here. */ - -extern char *optarg; - -/* Index in ARGV of the next element to be scanned. - This is used for communication to and from the caller - and for communication between successive calls to `getopt'. - - On entry to `getopt', zero means this is the first call; initialize. - - When `getopt' returns -1, this is the index of the first of the - non-option elements that the caller should itself scan. - - Otherwise, `optind' communicates from one call to the next - how much of ARGV has been scanned so far. */ - -extern int optind; - -/* Callers store zero here to inhibit the error message `getopt' prints - for unrecognized options. */ - -extern int opterr; - -/* Set to an option character which was unrecognized. */ - -extern int optopt; - -#ifndef __need_getopt -/* Describe the long-named options requested by the application. - The LONG_OPTIONS argument to getopt_long or getopt_long_only is a vector - of `struct option' terminated by an element containing a name which is - zero. - - The field `has_arg' is: - no_argument (or 0) if the option does not take an argument, - required_argument (or 1) if the option requires an argument, - optional_argument (or 2) if the option takes an optional argument. - - If the field `flag' is not NULL, it points to a variable that is set - to the value given in the field `val' when the option is found, but - left unchanged if the option is not found. - - To have a long-named option do something other than set an `int' to - a compiled-in constant, such as set a value from `optarg', set the - option's `flag' field to zero and its `val' field to a nonzero - value (the equivalent single-letter option character, if there is - one). For long options that have a zero `flag' field, `getopt' - returns the contents of the `val' field. */ - -struct option -{ -# if defined __STDC__ && __STDC__ - const char *name; -# else - char *name; -# endif - /* has_arg can't be an enum because some compilers complain about - type mismatches in all the code that assumes it is an int. */ - int has_arg; - int *flag; - int val; -}; - -/* Names for the values of the `has_arg' field of `struct option'. */ - -# define no_argument 0 -# define required_argument 1 -# define optional_argument 2 -#endif /* need getopt */ - - -/* Get definitions and prototypes for functions to process the - arguments in ARGV (ARGC of them, minus the program name) for - options given in OPTS. - - Return the option character from OPTS just read. Return -1 when - there are no more options. For unrecognized options, or options - missing arguments, `optopt' is set to the option letter, and '?' is - returned. - - The OPTS string is a list of characters which are recognized option - letters, optionally followed by colons, specifying that that letter - takes an argument, to be placed in `optarg'. - - If a letter in OPTS is followed by two colons, its argument is - optional. This behavior is specific to the GNU `getopt'. - - The argument `--' causes premature termination of argument - scanning, explicitly telling `getopt' that there are no more - options. - - If OPTS begins with `--', then non-option arguments are treated as - arguments to the option '\0'. This behavior is specific to the GNU - `getopt'. */ - -#if (defined __STDC__ && __STDC__) || defined PROTOTYPES -# ifdef __GNU_LIBRARY__ -/* Many other libraries have conflicting prototypes for getopt, with - differences in the consts, in stdlib.h. To avoid compilation - errors, only prototype getopt for the GNU C library. */ -extern int getopt (int __argc, char *const *__argv, const char *__shortopts); -# else /* not __GNU_LIBRARY__ */ -extern int getopt (); -# endif /* __GNU_LIBRARY__ */ - -# ifndef __need_getopt -extern int getopt_long (int __argc, char *const *__argv, const char *__shortopts, - const struct option *__longopts, int *__longind); -extern int getopt_long_only (int __argc, char *const *__argv, - const char *__shortopts, - const struct option *__longopts, int *__longind); - -/* Internal only. Users should not call this directly. */ -extern int _getopt_internal (int __argc, char *const *__argv, - const char *__shortopts, - const struct option *__longopts, int *__longind, - int __long_only); -# endif -#else /* not ((defined __STDC__ && __STDC__) || defined PROTOTYPES) */ -extern int getopt (); -# ifndef __need_getopt -extern int getopt_long (); -extern int getopt_long_only (); - -extern int _getopt_internal (); -# endif -#endif /* (defined __STDC__ && __STDC__) || defined PROTOTYPES */ - -#ifdef __cplusplus -} -#endif - -/* Make sure we later can get all the definitions and declarations. */ -#undef __need_getopt - -#endif /* getopt.h */ diff --git a/shared/getopt1.c b/shared/getopt1.c deleted file mode 100644 index fb13992a..00000000 --- a/shared/getopt1.c +++ /dev/null @@ -1,188 +0,0 @@ -/* getopt_long and getopt_long_only entry points for GNU getopt. - Copyright (C) 1987,88,89,90,91,92,93,94,96,97,98 - Free Software Foundation, Inc. - NOTE: The canonical source of this file is maintained with the GNU C Library. - Bugs can be reported to bug-glibc@gnu.org. - - This program is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2, or (at your option) any - later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#else -#if !defined __STDC__ || !__STDC__ -/* This is a separate conditional since some stdc systems - reject `defined (const)'. */ -#ifndef const -#define const -#endif -#endif -#endif - -#include "getopt.h" - -#include - -/* Comment out all this code if we are using the GNU C Library, and are not - actually compiling the library itself. This code is part of the GNU C - Library, but also included in many other GNU distributions. Compiling - and linking in this code is a waste when using the GNU C library - (especially if it is a shared library). Rather than having every GNU - program understand `configure --with-gnu-libc' and omit the object files, - it is simpler to just do this in the source for each such file. */ - -#define GETOPT_INTERFACE_VERSION 2 -#if !defined _LIBC && defined __GLIBC__ && __GLIBC__ >= 2 -#include -#if _GNU_GETOPT_INTERFACE_VERSION == GETOPT_INTERFACE_VERSION -#define ELIDE_CODE -#endif -#endif - -#ifndef ELIDE_CODE - - -/* This needs to come after some library #include - to get __GNU_LIBRARY__ defined. */ -#ifdef __GNU_LIBRARY__ -#include -#endif - -#ifndef NULL -#define NULL 0 -#endif - -int -getopt_long (argc, argv, options, long_options, opt_index) - int argc; - char *const *argv; - const char *options; - const struct option *long_options; - int *opt_index; -{ - return _getopt_internal (argc, argv, options, long_options, opt_index, 0); -} - -/* Like getopt_long, but '-' as well as '--' can indicate a long option. - If an option that starts with '-' (not '--') doesn't match a long option, - but does match a short option, it is parsed as a short option - instead. */ - -int -getopt_long_only (argc, argv, options, long_options, opt_index) - int argc; - char *const *argv; - const char *options; - const struct option *long_options; - int *opt_index; -{ - return _getopt_internal (argc, argv, options, long_options, opt_index, 1); -} - - -#endif /* Not ELIDE_CODE. */ - -#ifdef TEST - -#include - -int -main (argc, argv) - int argc; - char **argv; -{ - int c; - int digit_optind = 0; - - while (1) - { - int this_option_optind = optind ? optind : 1; - int option_index = 0; - static struct option long_options[] = - { - {"add", 1, 0, 0}, - {"append", 0, 0, 0}, - {"delete", 1, 0, 0}, - {"verbose", 0, 0, 0}, - {"create", 0, 0, 0}, - {"file", 1, 0, 0}, - {0, 0, 0, 0} - }; - - c = getopt_long (argc, argv, "abc:d:0123456789", - long_options, &option_index); - if (c == -1) - break; - - switch (c) - { - case 0: - printf ("option %s", long_options[option_index].name); - if (optarg) - printf (" with arg %s", optarg); - printf ("\n"); - break; - - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - if (digit_optind != 0 && digit_optind != this_option_optind) - printf ("digits occur in two different argv-elements.\n"); - digit_optind = this_option_optind; - printf ("option %c\n", c); - break; - - case 'a': - printf ("option a\n"); - break; - - case 'b': - printf ("option b\n"); - break; - - case 'c': - printf ("option c with value `%s'\n", optarg); - break; - - case 'd': - printf ("option d with value `%s'\n", optarg); - break; - - case '?': - break; - - default: - printf ("?? getopt returned character code 0%o ??\n", c); - } - } - - if (optind < argc) - { - printf ("non-option ARGV-elements: "); - while (optind < argc) - printf ("%s ", argv[optind++]); - printf ("\n"); - } - - exit (0); -} - -#endif /* TEST */ From 4dff51c969a74263cdcc4b245d0a34d36185b6db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Fri, 7 Jun 2019 15:09:24 +0200 Subject: [PATCH 28/72] all: remove shared/snprintf Elektra requires C99 so snprintf must be available --- shared/Makefile.am | 2 +- shared/snprintf.c | 1134 -------------------------------------------- shared/snprintf.h | 30 -- 3 files changed, 1 insertion(+), 1165 deletions(-) delete mode 100644 shared/snprintf.c delete mode 100644 shared/snprintf.h diff --git a/shared/Makefile.am b/shared/Makefile.am index 088ccd57..be982a23 100644 --- a/shared/Makefile.am +++ b/shared/Makefile.am @@ -2,7 +2,7 @@ noinst_LIBRARIES = libLCDstuff.a -libLCDstuff_a_SOURCES = LL.c LL.h sockets.c sockets.h str.c str.h report.c report.h snprintf.c snprintf.h sring.c sring.h +libLCDstuff_a_SOURCES = LL.c LL.h sockets.c sockets.h str.c str.h report.c report.h sring.c sring.h libLCDstuff_a_LIBADD = @LIBOBJS@ diff --git a/shared/snprintf.c b/shared/snprintf.c deleted file mode 100644 index 642110b4..00000000 --- a/shared/snprintf.c +++ /dev/null @@ -1,1134 +0,0 @@ -/* - * snprintf.c - a portable implementation of snprintf - * - * AUTHOR - * Mark Martinec , April 1999. - * - * Copyright 1999-2002 Mark Martinec. All rights reserved. - * - * TERMS AND CONDITIONS - * This program is free software; it is dual licensed, the terms of the - * "Frontier Artistic License" or the "GNU General Public License" - * can be chosen at your discretion. The chosen license then applies - * solely and in its entirety. Both licenses come with this Kit. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * See the license for more details. - * - * You should have received a copy of the "Frontier Artistic License" - * with this Kit in the file named LICENSE.txt, and the copy of - * the "GNU General Public License" in the file named LICENSE-GPL.txt. - * If not, I'll be glad to provide one. - * - * FEATURES - * - careful adherence to specs regarding flags, field width and precision; - * - good performance for large string handling (large format, large - * argument or large paddings). Performance is similar to system's sprintf - * and in several cases significantly better (make sure you compile with - * optimizations turned on, tell the compiler the code is strict ANSI - * if necessary to give it more freedom for optimizations); - * - return value semantics per ISO/IEC 9899:1999 ("ISO C99"); - * - written in standard ISO/ANSI C - requires an ANSI C compiler; - * - works also with non-ASCII 8-bit character sets (e.g. EBCDIC) - * provided strings are '\0'-terminated. - * - * SUPPORTED CONVERSION SPECIFIERS AND DATA TYPES - * - * This snprintf only supports the following conversion specifiers: - * s, c, d, u, o, x, X, p (and synonyms: i, D, U, O - see below) - * with flags: '-', '+', ' ', '0' and '#'. - * An asterisk is supported for field width and for the precision. - * - * Length modifiers 'h' (short int), 'l' (long int), - * and 'll' (long long int) are supported. - * NOTE: - * If macro SNPRINTF_LONGLONG_SUPPORT is not defined (default) the - * length modifier 'll' is recognized but treated the same as 'l', - * which may cause argument value truncation! Defining - * SNPRINTF_LONGLONG_SUPPORT requires that your system's sprintf also - * handles length modifier 'll'. long long int is a language extension - * which may not be portable. - * - * Conversion of numeric data (conversion specifiers d, u, o, x, X, p) - * with length modifiers (none or h, l, ll) is left to the system routine - * sprintf, but all handling of flags, field width and precision as well as - * c and s conversions is done very carefully by this portable routine. - * If a string precision (truncation) is specified (e.g. %.8s) it is - * guaranteed the string beyond the specified precision will not be referenced. - * - * Length modifiers h, l and ll are ignored for c and s conversions (data - * types wint_t and wchar_t are not supported). - * - * The following common synonyms for conversion characters are supported: - * - i is a synonym for d - * - D is a synonym for ld, explicit length modifiers are ignored - * - U is a synonym for lu, explicit length modifiers are ignored - * - O is a synonym for lo, explicit length modifiers are ignored - * The D, O and U conversion characters are nonstandard, they are supported - * for backward compatibility only, and should not be used for new code. - * - * The following is specifically NOT supported: - * - flag ' (thousands' grouping character) is recognized but ignored - * - numeric conversion specifiers: f, e, E, g, G and synonym F, - * as well as the new a and A conversion specifiers - * - length modifier 'L' (long double) and 'q' (quad - use 'll' instead) - * - wide character/string conversions: lc, ls, and nonstandard - * synonyms C and S - * - writeback of converted string length: conversion character n - * - the n$ specification for direct reference to n-th argument - * - locales - * - * It is permitted for str_m to be zero, and it is permitted to specify NULL - * pointer for resulting string argument if str_m is zero (as per ISO C99). - * - * The return value is the number of characters which would be generated - * for the given input, excluding the trailing null. If this value - * is greater or equal to str_m, not all characters from the result - * have been stored in str, output bytes beyond the (str_m-1) -th character - * are discarded. If str_m is greater than zero it is guaranteed - * the resulting string will be null-terminated. - * - * NOTE that this matches the ISO C99, OpenBSD, and GNU C library 2.1, - * but is different from some older and vendor implementations, - * and is also different from XPG, XSH5, SUSv2 specifications. - * For historical discussion on changes in the semantics and standards - * of snprintf see printf(3) man page in the Linux programmers manual. - * - * Routines asprintf and vasprintf return a pointer (in the ptr argument) - * to a buffer sufficiently large to hold the resulting string. This pointer - * should be passed to free(3) to release the allocated storage when it is - * no longer needed. If sufficient space cannot be allocated, these functions - * will return -1 and set ptr to be a NULL pointer. These two routines are a - * GNU C library extensions (glibc). - * - * Routines asnprintf and vasnprintf are similar to asprintf and vasprintf, - * yet, like snprintf and vsnprintf counterparts, will write at most str_m-1 - * characters into the allocated output string, the last character in the - * allocated buffer then gets the terminating null. If the formatted string - * length (the return value) is greater than or equal to the str_m argument, - * the resulting string was truncated and some of the formatted characters - * were discarded. These routines present a handy way to limit the amount - * of allocated memory to some sane value. - * - * AVAILABILITY - * http://www.ijs.si/software/snprintf/ - * - * REVISION HISTORY - * 1999-04 V0.9 Mark Martinec - * - initial version, some modifications after comparing printf - * man pages for Digital Unix 4.0, Solaris 2.6 and HPUX 10, - * and checking how Perl handles sprintf (differently!); - * 1999-04-09 V1.0 Mark Martinec - * - added main test program, fixed remaining inconsistencies, - * added optional (long long int) support; - * 1999-04-12 V1.1 Mark Martinec - * - support the 'p' conversion (pointer to void); - * - if a string precision is specified - * make sure the string beyond the specified precision - * will not be referenced (e.g. by strlen); - * 1999-04-13 V1.2 Mark Martinec - * - support synonyms %D=%ld, %U=%lu, %O=%lo; - * - speed up the case of long format string with few conversions; - * 1999-06-30 V1.3 Mark Martinec - * - fixed runaway loop (eventually crashing when str_l wraps - * beyond 2^31) while copying format string without - * conversion specifiers to a buffer that is too short - * (thanks to Edwin Young for - * spotting the problem); - * - added macros PORTABLE_SNPRINTF_VERSION_(MAJOR|MINOR) - * to snprintf.h - * 2000-02-14 V2.0 (never released) Mark Martinec - * - relaxed license terms: The Artistic License now applies. - * You may still apply the GNU GENERAL PUBLIC LICENSE - * as was distributed with previous versions, if you prefer; - * - changed REVISION HISTORY dates to use ISO 8601 date format; - * - added vsnprintf (patch also independently proposed by - * Caolan McNamara 2000-05-04, and Keith M Willenson 2000-06-01) - * 2000-06-27 V2.1 Mark Martinec - * - removed POSIX check for str_m<1; value 0 for str_m is - * allowed by ISO C99 (and GNU C library 2.1) - (pointed out - * on 2000-05-04 by Caolan McNamara, caolan@ csn dot ul dot ie). - * Besides relaxed license this change in standards adherence - * is the main reason to bump up the major version number; - * - added nonstandard routines asnprintf, vasnprintf, asprintf, - * vasprintf that dynamically allocate storage for the - * resulting string; these routines are not compiled by default, - * see comments where NEED_V?ASN?PRINTF macros are defined; - * - autoconf contributed by Caolan McNamara - * 2000-10-06 V2.2 Mark Martinec - * - BUG FIX: the %c conversion used a temporary variable - * that was no longer in scope when referenced, - * possibly causing incorrect resulting character; - * - BUG FIX: make precision and minimal field width unsigned - * to handle huge values (2^31 <= n < 2^32) correctly; - * also be more careful in the use of signed/unsigned/size_t - * internal variables - probably more careful than many - * vendor implementations, but there may still be a case - * where huge values of str_m, precision or minimal field - * could cause incorrect behaviour; - * - use separate variables for signed/unsigned arguments, - * and for short/int, long, and long long argument lengths - * to avoid possible incompatibilities on certain - * computer architectures. Also use separate variable - * arg_sign to hold sign of a numeric argument, - * to make code more transparent; - * - some fiddling with zero padding and "0x" to make it - * Linux compatible; - * - systematically use macros fast_memcpy and fast_memset - * instead of case-by-case hand optimization; determine some - * breakeven string lengths for different architectures; - * - terminology change: 'format' -> 'conversion specifier', - * 'C9x' -> 'ISO/IEC 9899:1999 ("ISO C99")', - * 'alternative form' -> 'alternate form', - * 'data type modifier' -> 'length modifier'; - * - several comments rephrased and new ones added; - * - make compiler not complain about 'credits' defined but - * not used; - * 2001-08 V2.3 Mark Martinec - * .. 2002-02 - writeback conversion specifier 'n' is now supported; - * - bump the size of a temporary buffer for simple - * numeric->string conversion from 32 to 48 characters - * in anticipation of 128-bit machines; - * - added #include and to snprintf.h; - * - fixed one assert in test.c - * (thanks to Tuomo A Turunen for reporting this problem); - * - portability fix: use isdigit() provided with - * and do not assume character set is ASCII - call strtoul() - * if needed to convert field width and precision; - * - check for broken or non-ANSI native sprintf (e.g. SunOS) - * which does not return string lenth, and work around it; - * - shouldn't happen, but just in case (applies to numeric - * conversions only): added assertion after a call to - * system's sprintf to make sure we detect a problem - * as it happens (or very shortly - but still - after a - * buffer overflow occured for some strange reason - * in system's sprintf); - * - cleanup: avoid comparing signed and unsigned values - * (ANSI c++ complaint); added a couple of 'const' qualifiers; - * - changed few comments, new references to some other - * implementations added to the README file; - * - it appears the Artistic License and its variant the Frontier - * Artistic License are incompatible with GPL and precludes - * this work to be included with GPL-licensed work. This was - * not my intention. The fact that this package is dual licensed - * comes to the rescue. Changed the credits[] string, and - * TERMS AND CONDITIONS to explicitly say so, stressing - * the fact that this work is dual licensed. - */ - -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - -/* Define HAVE_SNPRINTF if your system already has snprintf and vsnprintf. - * - * If HAVE_SNPRINTF is defined this module will not produce code for - * snprintf and vsnprintf, unless PREFER_PORTABLE_SNPRINTF is defined as well, - * causing this portable version of snprintf to be called portable_snprintf - * (and portable_vsnprintf). - */ -/* #define HAVE_SNPRINTF */ - -/* Define PREFER_PORTABLE_SNPRINTF if your system does have snprintf and - * vsnprintf but you would prefer to use the portable routine(s) instead. - * In this case the portable routine is declared as portable_snprintf - * (and portable_vsnprintf) and a macro 'snprintf' (and 'vsnprintf') - * is defined to expand to 'portable_v?snprintf' - see file snprintf.h . - * Defining this macro is only useful if HAVE_SNPRINTF is also defined, - * but does no harm if defined nevertheless. - */ -/* #define PREFER_PORTABLE_SNPRINTF */ - -/* Define SNPRINTF_LONGLONG_SUPPORT if you want to support - * data type (long long int) and length modifier 'll' (e.g. %lld). - * If undefined, 'll' is recognized but treated as a single 'l'. - * - * If the system's sprintf does not handle 'll' - * the SNPRINTF_LONGLONG_SUPPORT must not be defined! - * - * This is off by default as (long long int) is a language extension. - */ -/* #define SNPRINTF_LONGLONG_SUPPORT */ - -/* Define NEED_SNPRINTF_ONLY if you only need snprintf, and not vsnprintf. - * If NEED_SNPRINTF_ONLY is defined, the snprintf will be defined directly, - * otherwise both snprintf and vsnprintf routines will be defined - * and snprintf will be a simple wrapper around vsnprintf, at the expense - * of an extra procedure call. - */ -/* #define NEED_SNPRINTF_ONLY */ - -/* Define NEED_V?ASN?PRINTF macros if you need library extension - * routines asprintf, vasprintf, asnprintf, vasnprintf respectively, - * and your system library does not provide them. They are all small - * wrapper routines around portable_vsnprintf. Defining any of the four - * NEED_V?ASN?PRINTF macros automatically turns off NEED_SNPRINTF_ONLY - * and turns on PREFER_PORTABLE_SNPRINTF. - * - * Watch for name conflicts with the system library if these routines - * are already present there. - * - * NOTE: vasprintf and vasnprintf routines need va_copy() from stdarg.h, as - * specified by C99, to be able to traverse the same list of arguments twice. - * I don't know of any other standard and portable way of achieving the same. - * With some versions of gcc you may use __va_copy(). You might even get away - * with "ap2 = ap", in this case you must not call va_end(ap2) ! - * #define va_copy(ap2,ap) __va_copy((ap2),(ap)) - * #define va_copy(ap2,ap) (ap2) = (ap) - */ -/* #define NEED_ASPRINTF */ -/* #define NEED_ASNPRINTF */ -/* #define NEED_VASPRINTF */ -/* #define NEED_VASNPRINTF */ - -/* Define the following macros if desired: - * SOLARIS_COMPATIBLE, SOLARIS_BUG_COMPATIBLE, - * HPUX_COMPATIBLE, HPUX_BUG_COMPATIBLE, LINUX_COMPATIBLE, - * DIGITAL_UNIX_COMPATIBLE, DIGITAL_UNIX_BUG_COMPATIBLE, - * PERL_COMPATIBLE, PERL_BUG_COMPATIBLE, - * - * - For portable applications it is best not to rely on peculiarities - * of a given implementation so it may be best not to define any - * of the macros that select compatibility and to avoid features - * that vary among the systems. - * - * - Selecting compatibility with more than one operating system - * is not strictly forbidden but is not recommended. - * - * - 'x'_BUG_COMPATIBLE implies 'x'_COMPATIBLE . - * - * - 'x'_COMPATIBLE refers to (and enables) a behaviour that is - * documented in a sprintf man page on a given operating system - * and actually adhered to by the system's sprintf (but not on - * most other operating systems). It may also refer to and enable - * a behaviour that is declared 'undefined' or 'implementation specific' - * in the man page but a given implementation behaves predictably - * in a certain way. - * - * - 'x'_BUG_COMPATIBLE refers to (and enables) a behaviour of system's sprintf - * that contradicts the sprintf man page on the same operating system. - * - * - I do not claim that the 'x'_COMPATIBLE and 'x'_BUG_COMPATIBLE - * conditionals take into account all idiosyncrasies of a particular - * implementation, there may be other incompatibilities. - */ - - - -/* ============================================= */ -/* NO USER SERVICABLE PARTS FOLLOWING THIS POINT */ -/* ============================================= */ - -#define PORTABLE_SNPRINTF_VERSION_MAJOR 2 -#define PORTABLE_SNPRINTF_VERSION_MINOR 3 - -#if defined(NEED_ASPRINTF) || defined(NEED_ASNPRINTF) || defined(NEED_VASPRINTF) || defined(NEED_VASNPRINTF) -# if defined(NEED_SNPRINTF_ONLY) -# undef NEED_SNPRINTF_ONLY -# endif -# if !defined(PREFER_PORTABLE_SNPRINTF) -# define PREFER_PORTABLE_SNPRINTF -# endif -#endif - -#if defined(SOLARIS_BUG_COMPATIBLE) && !defined(SOLARIS_COMPATIBLE) -#define SOLARIS_COMPATIBLE -#endif - -#if defined(HPUX_BUG_COMPATIBLE) && !defined(HPUX_COMPATIBLE) -#define HPUX_COMPATIBLE -#endif - -#if defined(DIGITAL_UNIX_BUG_COMPATIBLE) && !defined(DIGITAL_UNIX_COMPATIBLE) -#define DIGITAL_UNIX_COMPATIBLE -#endif - -#if defined(PERL_BUG_COMPATIBLE) && !defined(PERL_COMPATIBLE) -#define PERL_COMPATIBLE -#endif - -#if defined(LINUX_BUG_COMPATIBLE) && !defined(LINUX_COMPATIBLE) -#define LINUX_COMPATIBLE -#endif - -#include -#include -#include -#include -#include -#include -#include -#include - -/* For copying strings longer or equal to 'breakeven_point' - * it is more efficient to call memcpy() than to do it inline. - * The value depends mostly on the processor architecture, - * but also on the compiler and its optimization capabilities. - * The value is not critical, some small value greater than zero - * will be just fine if you don't care to squeeze every drop - * of performance out of the code. - * - * Small values favour memcpy & memset (extra procedure call, less code), - * large values favour inline code (saves procedure call, more code). - */ -#if defined(__alpha__) || defined(__alpha) -# define breakeven_point 2 /* AXP (DEC Alpha) - gcc or cc */ -#endif -#if defined(__i386__) || defined(__i386) -# define breakeven_point 15 /* Intel Pentium/Linux - gcc 2.96 (12..30) */ -#endif -#if defined(__hppa) -# define breakeven_point 10 /* HP-PA - gcc */ -#endif -#if defined(__sparc__) || defined(__sparc) -# define breakeven_point 33 /* Sun Sparc 5 - gcc 2.8.1 */ -#endif - -/* some other values of possible interest: */ -/* #define breakeven_point 8 */ /* VAX 4000 - vaxc */ -/* #define breakeven_point 19 */ /* VAX 4000 - gcc 2.7.0 */ - -#ifndef breakeven_point -# define breakeven_point 6 /* some reasonable one-size-fits-all value */ -#endif - -#define fast_memcpy(d,s,n) \ - { register size_t nn = (size_t)(n); \ - if (nn >= breakeven_point) memcpy((d), (s), nn); \ - else if (nn > 0) { /* call overhead is worth only for large strings*/ \ - register char *dd; register const char *ss; \ - for (ss=(s), dd=(d); nn>0; nn--) *dd++ = *ss++; } } - -#define fast_memset(d,c,n) \ - { register size_t nn = (size_t)(n); \ - if (nn >= breakeven_point) memset((d), (int)(c), nn); \ - else if (nn > 0) { /* call overhead is worth only for large strings*/ \ - register char *dd; register const int cc=(int)(c); \ - for (dd=(d); nn>0; nn--) *dd++ = cc; } } - -/* The following isdigit() is not portable (e.g. may not work - * with non-ASCII character sets). Use the system-provided isdigit() - * if available, otherwise uncomment: - * #define isdigit(c) ((c) >= '0' && (c) <= '9') - */ - -/* atosizet converts a span of decimal digits to a number of type size_t. - * It is a macro, similar to: (but not quite, p will be modified!) - * void atosizet(const char *p, const char **endp, size_t *result); - * endp will point to just beyond the digits substring. - * This is _not_ a general-purpose macro: - * - the first argument will be modified; - * - the first character must already be checked to be a digit! - * NOTE: size_t could be wider than unsigned int; - * but we treat numeric string like common implementations do! - * If character set is ASCII (checking with a quick and simple-minded test) - * we convert string to a number inline for speed, otherwise we call strtoul. - */ -#define atosizet(p, endp, result) \ - if ((int)'0' == 48) { /* a compile-time constant expression, */ \ - /* hoping the code from one branch */ \ - /* will be optimized away */ \ - /* looks like ASCII character set, let's hope it really is */ \ - register unsigned int uj = (unsigned int)(*(p)++ - '0'); \ - while (isdigit((int)(*(p)))) \ - uj = 10*uj + (unsigned int)(*(p)++ - '0'); \ - if ((endp) != NULL) *(endp) = (p); \ - *(result) = (size_t) uj; \ - } else { \ - /* non-ASCII character set, play by the rules */ \ - char *ep; /* NOTE: no 'const' to make strtoul happy! */ \ - /* NOTE: clip (unsigned long) to (unsigned int) as is common !!! */ \ - const unsigned int uj = (unsigned int) strtoul((p), &ep, 10); \ - /* The following assignment is legal: the address of a non-const */ \ - /* object can be assigned to a pointer to a const object, but */ \ - /* that pointer cannot be used to alter the value of the object. */ \ - if ((endp) != NULL) *(endp) = ep; \ - /* if num too large the result will be ULONG_MAX and errno=ERANGE */ \ - *(result) = (size_t) uj; \ - } \ - -/* prototypes */ - -#if defined(NEED_ASPRINTF) -int asprintf (char **ptr, const char *fmt, /*args*/ ...); -#endif -#if defined(NEED_VASPRINTF) -int vasprintf (char **ptr, const char *fmt, va_list ap); -#endif -#if defined(NEED_ASNPRINTF) -int asnprintf (char **ptr, size_t str_m, const char *fmt, /*args*/ ...); -#endif -#if defined(NEED_VASNPRINTF) -int vasnprintf (char **ptr, size_t str_m, const char *fmt, va_list ap); -#endif - -#if defined(HAVE_SNPRINTF) -/* declare our portable snprintf routine under name portable_snprintf */ -/* declare our portable vsnprintf routine under name portable_vsnprintf */ -#else -/* declare our portable routines under names snprintf and vsnprintf */ -#define portable_snprintf snprintf -#if !defined(NEED_SNPRINTF_ONLY) -#define portable_vsnprintf vsnprintf -#endif -#endif - -#if !defined(HAVE_SNPRINTF) || defined(PREFER_PORTABLE_SNPRINTF) -int portable_snprintf(char *str, size_t str_m, const char *fmt, /*args*/ ...); -#if !defined(NEED_SNPRINTF_ONLY) -int portable_vsnprintf(char *str, size_t str_m, const char *fmt, va_list ap); -#endif -#endif - -/* declarations */ - -static const char credits[] = "\n\ -@(#)snprintf.c, v2.3: Mark Martinec, \n\ -@(#)snprintf.c, v2.3: Copyright 1999-2002 Mark Martinec. Dual licensed: Frontier Artistic License or GNU General Public License applies.\n\ -@(#)snprintf.c, v2.3: http://www.ijs.si/software/snprintf/\n"; - -#if defined(NEED_ASPRINTF) -int asprintf(char **ptr, const char *fmt, /*args*/ ...) { - va_list ap; - size_t str_m; - int str_l; - - *ptr = NULL; - va_start(ap, fmt); /* measure the required size */ - str_l = portable_vsnprintf(NULL, (size_t)0, fmt, ap); - va_end(ap); - assert(str_l >= 0); /* possible integer overflow if str_m > INT_MAX */ - *ptr = (char *) malloc(str_m = (size_t)str_l + 1); - if (*ptr == NULL) { errno = ENOMEM; str_l = -1; } - else { - int str_l2; - va_start(ap, fmt); - str_l2 = portable_vsnprintf(*ptr, str_m, fmt, ap); - va_end(ap); - assert(str_l2 == str_l); - } - return str_l; -} -#endif - -#if defined(NEED_VASPRINTF) -int vasprintf(char **ptr, const char *fmt, va_list ap) { - size_t str_m; - int str_l; - - *ptr = NULL; - { va_list ap2; - va_copy(ap2, ap); /* don't consume the original ap, we'll need it again */ - str_l = portable_vsnprintf(NULL, (size_t)0, fmt, ap2);/*get required size*/ - va_end(ap2); - } - assert(str_l >= 0); /* possible integer overflow if str_m > INT_MAX */ - *ptr = (char *) malloc(str_m = (size_t)str_l + 1); - if (*ptr == NULL) { errno = ENOMEM; str_l = -1; } - else { - const int str_l2 = portable_vsnprintf(*ptr, str_m, fmt, ap); - assert(str_l2 == str_l); - } - return str_l; -} -#endif - -#if defined(NEED_ASNPRINTF) -int asnprintf(char **ptr, size_t str_m, const char *fmt, /*args*/ ...) { - va_list ap; - int str_l; - - *ptr = NULL; - va_start(ap, fmt); /* measure the required size */ - str_l = portable_vsnprintf(NULL, (size_t)0, fmt, ap); - va_end(ap); - assert(str_l >= 0); /* possible integer overflow if str_m > INT_MAX */ - if ((size_t)str_l + 1 < str_m) str_m = (size_t)str_l + 1; /* truncate */ - /* if str_m is 0, no buffer is allocated, just set *ptr to NULL */ - if (str_m == 0) { /* not interested in resulting string, just return size */ - } else { - *ptr = (char *) malloc(str_m); - if (*ptr == NULL) { errno = ENOMEM; str_l = -1; } - else { - int str_l2; - va_start(ap, fmt); - str_l2 = portable_vsnprintf(*ptr, str_m, fmt, ap); - va_end(ap); - assert(str_l2 == str_l); - } - } - return str_l; -} -#endif - -#if defined(NEED_VASNPRINTF) -int vasnprintf(char **ptr, size_t str_m, const char *fmt, va_list ap) { - int str_l; - - *ptr = NULL; - { va_list ap2; - va_copy(ap2, ap); /* don't consume the original ap, we'll need it again */ - str_l = portable_vsnprintf(NULL, (size_t)0, fmt, ap2);/*get required size*/ - va_end(ap2); - } - assert(str_l >= 0); /* possible integer overflow if str_m > INT_MAX */ - if ((size_t)str_l + 1 < str_m) str_m = (size_t)str_l + 1; /* truncate */ - /* if str_m is 0, no buffer is allocated, just set *ptr to NULL */ - if (str_m == 0) { /* not interested in resulting string, just return size */ - } else { - *ptr = (char *) malloc(str_m); - if (*ptr == NULL) { errno = ENOMEM; str_l = -1; } - else { - const int str_l2 = portable_vsnprintf(*ptr, str_m, fmt, ap); - assert(str_l2 == str_l); - } - } - return str_l; -} -#endif - -/* - * If the system does have snprintf and the portable routine is not - * specifically required, this module produces no code for snprintf/vsnprintf. - */ -#if !defined(HAVE_SNPRINTF) || defined(PREFER_PORTABLE_SNPRINTF) - -#if !defined(NEED_SNPRINTF_ONLY) -int portable_snprintf(char *str, size_t str_m, const char *fmt, /*args*/ ...) { - va_list ap; - int str_l; - - va_start(ap, fmt); - str_l = portable_vsnprintf(str, str_m, fmt, ap); - va_end(ap); - return str_l; -} -#endif - -#if defined(NEED_SNPRINTF_ONLY) -int portable_snprintf(char *str, size_t str_m, const char *fmt, /*args*/ ...) { -#else -int portable_vsnprintf(char *str, size_t str_m, const char *fmt, va_list ap) { -#endif - -#if defined(NEED_SNPRINTF_ONLY) - va_list ap; -#endif - size_t str_l = 0; - const char *p = fmt; - -/* In contrast to POSIX, the ISO C99 now says - * that str can be NULL and str_m can be 0. - * This is more useful than the old: if (str_m < 1) return -1; */ - -#if defined(NEED_SNPRINTF_ONLY) - va_start(ap, fmt); -#endif - if (!p) p = ""; - while (*p) { - if (*p != '%') { - if (0) { /* compile time decision between two equivalent alternatives */ - /* this is simple but slow */ - if (str_l < str_m) str[str_l] = *p; - p++; str_l++; - } else { - /* this usually achieves much better performance for cases - * where format string is long and contains few conversions */ - const char *const q = strchr(p+1,'%'); - const size_t n = !q ? strlen(p) : (q-p); - if (str_l < str_m) { - const size_t avail = str_m-str_l; - fast_memcpy(str+str_l, p, (n>avail?avail:n)); - } - p += n; str_l += n; - } - } else { - const char *starting_p; - size_t min_field_width = 0, precision = 0; - int zero_padding = 0, precision_specified = 0, justify_left = 0; - int alternate_form = 0, force_sign = 0; - int space_for_positive = 1; /* If both the ' ' and '+' flags appear, - the ' ' flag should be ignored. */ - char length_modifier = '\0'; /* allowed values: \0, h, l, L */ - char tmp[48];/* temporary buffer for simple numeric->string conversion */ - - const char *str_arg; /* string address in case of string argument */ - size_t str_arg_l; /* natural field width of arg without padding - and sign */ - unsigned char uchar_arg; - /* unsigned char argument value - only defined for c conversion. - N.B. standard explicitly states the char argument for - the c conversion is unsigned */ - - size_t number_of_zeros_to_pad = 0; - /* number of zeros to be inserted for numeric conversions - as required by the precision or minimal field width */ - - size_t zero_padding_insertion_ind = 0; - /* index into tmp where zero padding is to be inserted */ - - char fmt_spec = '\0'; - /* current conversion specifier character */ - - str_arg = credits;/* just to make compiler happy (defined but not used)*/ - str_arg = NULL; - starting_p = p; p++; /* skip '%' */ - /* parse flags */ - while (*p == '0' || *p == '-' || *p == '+' || - *p == ' ' || *p == '#' || *p == '\'') { - switch (*p) { - case '0': zero_padding = 1; break; - case '-': justify_left = 1; break; - case '+': force_sign = 1; space_for_positive = 0; break; - case ' ': force_sign = 1; - /* If both the ' ' and '+' flags appear, the ' ' flag should be ignored */ -#ifdef PERL_COMPATIBLE - /* ... but in Perl the last of ' ' and '+' applies */ - space_for_positive = 1; -#endif - break; - case '#': alternate_form = 1; break; - case '\'': break; - } - p++; - } - /* If flags '0' and '-' both appear, the '0' flag should be ignored. */ - - /* parse field width */ - if (*p == '*') { - const int j = va_arg(ap, int); - p++; - if (j >= 0) min_field_width = j; - else { min_field_width = -j; justify_left = 1; } - } else if (isdigit((int)(*p))) { - atosizet(p, &p, &min_field_width); - } - /* parse precision */ - if (*p == '.') { - p++; precision_specified = 1; - if (*p == '*') { - const int j = va_arg(ap, int); - p++; - if (j >= 0) precision = j; - else { - precision_specified = 0; precision = 0; - /* NOTE: - * Solaris 2.6 man page claims that in this case the precision - * should be set to 0. Digital Unix 4.0, HPUX 10 and BSD man page - * claim that this case should be treated as unspecified precision, - * which is what we do here. - */ - } - } else if (isdigit((int)(*p))) { - atosizet(p, &p, &precision); - } - } - /* parse 'h', 'l' and 'll' length modifiers */ - if (*p == 'h' || *p == 'l') { - length_modifier = *p; p++; - if (length_modifier == 'l' && *p == 'l') { /* double el = long long */ -#ifdef SNPRINTF_LONGLONG_SUPPORT - length_modifier = '2'; /* double letter el encoded as '2' */ -#else - length_modifier = 'l'; /* treat it as a single 'l' (letter el) */ -#endif - p++; - } - } - fmt_spec = *p; - /* common synonyms: */ - switch (fmt_spec) { - case 'i': fmt_spec = 'd'; break; - case 'D': fmt_spec = 'd'; length_modifier = 'l'; break; - case 'U': fmt_spec = 'u'; length_modifier = 'l'; break; - case 'O': fmt_spec = 'o'; length_modifier = 'l'; break; - default: break; - } - /* get parameter value, do initial processing */ - switch (fmt_spec) { - case '%': /* % behaves similar to 's' regarding flags and field widths */ - case 'c': /* c behaves similar to 's' regarding flags and field widths */ - case 's': - length_modifier = '\0'; /* wint_t and wchar_t not supported */ - /* the result of zero padding flag with non-numeric conversion specifier*/ - /* is undefined. Solaris and HPUX 10 does zero padding in this case, */ - /* Digital Unix and Linux does not. */ -#if !defined(SOLARIS_COMPATIBLE) && !defined(HPUX_COMPATIBLE) - zero_padding = 0; /* turn zero padding off for string conversions */ -#endif - str_arg_l = 1; - switch (fmt_spec) { - case '%': - str_arg = p; break; - case 'c': { - const int j = va_arg(ap, int); - uchar_arg = (unsigned char) j; /* standard demands unsigned char */ - str_arg = (const char *) &uchar_arg; - break; - } - case 's': - str_arg = va_arg(ap, const char *); - if (!str_arg) str_arg_l = 0; - /* make sure not to address string beyond the specified precision !!! */ - else if (!precision_specified) str_arg_l = strlen(str_arg); - /* truncate string if necessary as requested by precision */ - else if (precision == 0) str_arg_l = 0; - else { - /* memchr on HP does not like n > 2^31 !!! */ - const char *const q = (const char *) memchr(str_arg, '\0', - precision <= 0x7fffffff ? precision : 0x7fffffff); - str_arg_l = !q ? precision : (q-str_arg); - } - break; - default: break; - } - break; - case 'd': case 'u': case 'o': case 'x': case 'X': case 'p': { - /* NOTE: the u, o, x, X and p conversion specifiers imply - the value is unsigned; d implies a signed value */ - - int arg_sign = 0; - /* 0 if numeric argument is zero (or if pointer is NULL for 'p'), - +1 if greater than zero (or nonzero for unsigned arguments), - -1 if negative (unsigned argument is never negative) */ - - int int_arg = 0; unsigned int uint_arg = 0; - /* only defined for length modifier h, or for no length modifiers */ - - long int long_arg = 0; unsigned long int ulong_arg = 0; - /* only defined for length modifier l (letter el) */ - - void *ptr_arg = NULL; - /* pointer argument value - only defined for p conversion */ - -#ifdef SNPRINTF_LONGLONG_SUPPORT - long long int long_long_arg = 0; - unsigned long long int ulong_long_arg = 0; - /* only defined for length modifier ll (double letter el) */ -#endif - if (fmt_spec == 'p') { - /* HPUX 10: An l, h, ll or L before any other conversion character - * (other than d, i, u, o, x, or X) is ignored. - * Digital Unix: - * not specified, but seems to behave as HPUX does. - * Solaris: If an h, l, or L appears before any other conversion - * specifier (other than d, i, u, o, x, or X), the behavior - * is undefined. (Actually %hp converts only 16-bits of address - * and %llp treats address as 64-bit data which is incompatible - * with (void *) argument on a 32-bit system). - */ -#ifdef SOLARIS_COMPATIBLE -# ifdef SOLARIS_BUG_COMPATIBLE - /* keep length modifiers even if it represents 'll' */ -# else - if (length_modifier == '2') length_modifier = '\0'; -# endif -#else - length_modifier = '\0'; -#endif - ptr_arg = va_arg(ap, void *); - if (ptr_arg != NULL) arg_sign = 1; - } else if (fmt_spec == 'd') { /* signed */ - switch (length_modifier) { - case '\0': - case 'h': - /* It is non-portable to specify char or short as the second argument - * to va_arg, because arguments seen by the called function - * are not char or short. C converts char and short arguments - * to int before passing them to a function. - */ - int_arg = va_arg(ap, int); - if (int_arg > 0) arg_sign = 1; - else if (int_arg < 0) arg_sign = -1; - break; - case 'l': /* letter el */ - long_arg = va_arg(ap, long int); - if (long_arg > 0) arg_sign = 1; - else if (long_arg < 0) arg_sign = -1; - break; -#ifdef SNPRINTF_LONGLONG_SUPPORT - case '2': - long_long_arg = va_arg(ap, long long int); - if (long_long_arg > 0) arg_sign = 1; - else if (long_long_arg < 0) arg_sign = -1; - break; -#endif - } - } else { /* unsigned */ - switch (length_modifier) { - case '\0': - case 'h': - uint_arg = va_arg(ap, unsigned int); - if (uint_arg) arg_sign = 1; - break; - case 'l': /* letter el */ - ulong_arg = va_arg(ap, unsigned long int); - if (ulong_arg) arg_sign = 1; - break; -#ifdef SNPRINTF_LONGLONG_SUPPORT - case '2': - ulong_long_arg = va_arg(ap, unsigned long long int); - if (ulong_long_arg) arg_sign = 1; - break; -#endif - } - } - str_arg = tmp; str_arg_l = 0; - /* NOTE: - * For d, i, u, o, x, and X conversions, if precision is specified, - * the '0' flag should be ignored. This is so with Solaris 2.6, - * Digital UNIX 4.0, HPUX 10, Linux, FreeBSD, NetBSD; but not with Perl. - */ -#ifndef PERL_COMPATIBLE - if (precision_specified) zero_padding = 0; -#endif - if (fmt_spec == 'd') { - if (force_sign && arg_sign >= 0) - tmp[str_arg_l++] = space_for_positive ? ' ' : '+'; - /* leave negative numbers for sprintf to handle, - to avoid handling tricky cases like (short int)(-32768) */ -#ifdef LINUX_COMPATIBLE - } else if (fmt_spec == 'p' && force_sign && arg_sign > 0) { - tmp[str_arg_l++] = space_for_positive ? ' ' : '+'; -#endif - } else if (alternate_form) { - if (arg_sign != 0 && (fmt_spec == 'x' || fmt_spec == 'X') ) - { tmp[str_arg_l++] = '0'; tmp[str_arg_l++] = fmt_spec; } - /* alternate form should have no effect for p conversion, but ... */ -#ifdef HPUX_COMPATIBLE - else if (fmt_spec == 'p' - /* HPUX 10: for an alternate form of p conversion, - * a nonzero result is prefixed by 0x. */ -#ifndef HPUX_BUG_COMPATIBLE - /* Actually it uses 0x prefix even for a zero value. */ - && arg_sign != 0 -#endif - ) { tmp[str_arg_l++] = '0'; tmp[str_arg_l++] = 'x'; } -#endif - } - zero_padding_insertion_ind = str_arg_l; - if (!precision_specified) precision = 1; /* default precision is 1 */ - if (precision == 0 && arg_sign == 0 -#if defined(HPUX_BUG_COMPATIBLE) || defined(LINUX_COMPATIBLE) - && fmt_spec != 'p' - /* HPUX 10 man page claims: With conversion character p the result of - * converting a zero value with a precision of zero is a null string. - * Actually HP returns all zeroes, and Linux returns "(nil)". */ -#endif - ) { - /* converted to null string */ - /* When zero value is formatted with an explicit precision 0, - the resulting formatted string is empty (d, i, u, o, x, X, p). */ - } else { - static int sprintf_return_value_is_ansi_compliant = -1; /* unknown */ - char f[5]; int f_l = 0, sprintf_l = 0; - f[f_l++] = '%'; /* construct a simple format string for sprintf */ - if (!length_modifier) { } - else if (length_modifier=='2') { f[f_l++] = 'l'; f[f_l++] = 'l'; } - else f[f_l++] = length_modifier; - f[f_l++] = fmt_spec; f[f_l++] = '\0'; - if (sprintf_return_value_is_ansi_compliant < 0) { /* not yet known */ - /* let's do a little run-time experiment (only once) to see if the - * native sprintf returns a string length as required by ANSI, or has - * some other ideas like the old SunOS which returns buffer address */ - sprintf_return_value_is_ansi_compliant = - (sprintf(tmp+str_arg_l, "%d", 19) == 2); - } - if (fmt_spec == 'p') sprintf_l=sprintf(tmp+str_arg_l, f, ptr_arg); - else if (fmt_spec == 'd') { /* signed */ - switch (length_modifier) { - case '\0': - case 'h': sprintf_l=sprintf(tmp+str_arg_l, f, int_arg); break; - case 'l': sprintf_l=sprintf(tmp+str_arg_l, f, long_arg); break; -#ifdef SNPRINTF_LONGLONG_SUPPORT - case '2': sprintf_l=sprintf(tmp+str_arg_l,f,long_long_arg); break; -#endif - } - } else { /* unsigned */ - switch (length_modifier) { - case '\0': - case 'h': sprintf_l=sprintf(tmp+str_arg_l, f, uint_arg); break; - case 'l': sprintf_l=sprintf(tmp+str_arg_l, f, ulong_arg); break; -#ifdef SNPRINTF_LONGLONG_SUPPORT - case '2': sprintf_l=sprintf(tmp+str_arg_l,f,ulong_long_arg);break; -#endif - } - } - if (!sprintf_return_value_is_ansi_compliant) { /* broken sprintf? */ - tmp[sizeof(tmp)-1] = '\0'; sprintf_l = strlen(tmp+str_arg_l); - } - assert(sprintf_l >= 0); /* should not happen; problem in sprintf? */ - assert(sprintf_l+str_arg_l < sizeof(tmp)); /*better late then never*/ - str_arg_l += sprintf_l; - /* include the optional minus sign and possible "0x" - in the region before the zero padding insertion point */ - if (zero_padding_insertion_ind < str_arg_l && - tmp[zero_padding_insertion_ind] == '-') { - zero_padding_insertion_ind++; - } - if (zero_padding_insertion_ind+1 < str_arg_l && - tmp[zero_padding_insertion_ind] == '0' && - (tmp[zero_padding_insertion_ind+1] == 'x' || - tmp[zero_padding_insertion_ind+1] == 'X') ) { - zero_padding_insertion_ind += 2; - } - } - { const size_t num_of_digits = str_arg_l - zero_padding_insertion_ind; - if (alternate_form && fmt_spec == 'o' -#ifdef HPUX_COMPATIBLE /* ("%#.o",0) -> "" */ - && (str_arg_l > 0) -#endif -#ifdef DIGITAL_UNIX_BUG_COMPATIBLE /* ("%#o",0) -> "00" */ -#else - /* unless zero is already the first character */ - && !(zero_padding_insertion_ind < str_arg_l - && tmp[zero_padding_insertion_ind] == '0') -#endif - ) { /* assure leading zero for alternate-form octal numbers */ - if (!precision_specified || precision < num_of_digits+1) { - /* precision is increased to force the first character to be zero, - except if a zero value is formatted with an explicit precision - of zero */ - precision = num_of_digits+1; precision_specified = 1; - } - } - /* zero padding to specified precision? */ - if (num_of_digits < precision) - number_of_zeros_to_pad = precision - num_of_digits; - } - /* zero padding to specified minimal field width? */ - if (!justify_left && zero_padding) { - const int n = min_field_width - (str_arg_l+number_of_zeros_to_pad); - if (n > 0) number_of_zeros_to_pad += n; - } - break; - } - case 'n': { - void *const ptr = va_arg(ap, void *); - if (ptr != NULL) { - /* same problem of size_t -> int type conversion as with the - * snprintf return value - see comment at the end of this procedure */ - switch (length_modifier) { - case '\0': *( int *const)ptr = str_l; break; - case 'h': *(short int *const)ptr = str_l; break; - case 'l': *(long int *const)ptr = str_l; break; -#ifdef SNPRINTF_LONGLONG_SUPPORT - case '2': *(long long int *const)ptr = str_l; break; -#endif - } - } - /* no argument converted */ - min_field_width = number_of_zeros_to_pad = str_arg_l = 0; - break; - } - default: /* unrecognized conversion specifier, keep format string as-is*/ - zero_padding = 0; /* turn zero padding off for non-numeric convers. */ -#ifndef DIGITAL_UNIX_COMPATIBLE - justify_left = 1; min_field_width = 0; /* reset flags */ -#endif -#if defined(PERL_COMPATIBLE) || defined(LINUX_COMPATIBLE) - /* keep the entire format string unchanged */ - str_arg = starting_p; str_arg_l = p - starting_p; - /* well, not exactly so for Linux, which does something inbetween, - * and I don't feel an urge to imitate it: "%+++++hy" -> "%+y" */ -#else - /* discard the unrecognized conversion, just keep * - * the unrecognized conversion character */ - str_arg = p; str_arg_l = 0; -#endif - if (*p) str_arg_l++; /* include invalid conversion specifier unchanged - if not at end-of-string */ - break; - } - if (*p) p++; /* step over the just processed conversion specifier */ - /* insert padding to the left as requested by min_field_width; - this does not include the zero padding in case of numerical conversions*/ - if (!justify_left) { /* left padding with blank or zero */ - const int n = min_field_width - (str_arg_l+number_of_zeros_to_pad); - if (n > 0) { - if (str_l < str_m) { - const size_t avail = str_m-str_l; - fast_memset(str+str_l, (zero_padding?'0':' '), - ((unsigned int)n > avail ? avail : (unsigned int)n)); - } - str_l += n; - } - } - /* is zero padding as requested by the precision or by the - * minimal field width for numeric conversions required? */ - if (number_of_zeros_to_pad <= 0) { - /* will not copy the first part of numeric right now, * - * force it to be copied later in its entirety */ - zero_padding_insertion_ind = 0; - } else { - /* insert first part of numerics (sign or '0x') before zero padding */ - { const int n = zero_padding_insertion_ind; - if (n > 0) { - if (str_l < str_m) { - const size_t avail = str_m-str_l; - fast_memcpy(str+str_l, str_arg, - ((unsigned int)n > avail ? avail : (unsigned int)n)); - } - str_l += n; - } - } - /* insert zero padding as requested by the precision or min field width */ - { const int n = number_of_zeros_to_pad; - if (n > 0) { - if (str_l < str_m) { - const size_t avail = str_m-str_l; - fast_memset(str+str_l, '0', - ((unsigned int)n > avail ? avail : (unsigned int)n)); - } - str_l += n; - } - } - } - /* insert formatted string - * (or as-is conversion specifier for unknown conversions) */ - { const int n = str_arg_l - zero_padding_insertion_ind; - if (n > 0) { - if (str_l < str_m) { - const size_t avail = str_m-str_l; - fast_memcpy(str+str_l, str_arg+zero_padding_insertion_ind, - ((unsigned int)n > avail ? avail : (unsigned int)n)); - } - str_l += n; - } - } - /* insert right padding */ - if (justify_left) { /* right blank padding to the field width */ - const int n = min_field_width - (str_arg_l+number_of_zeros_to_pad); - if (n > 0) { - if (str_l < str_m) { - const size_t avail = str_m-str_l; - fast_memset(str+str_l, ' ', - ((unsigned int)n > avail ? avail : (unsigned int)n)); - } - str_l += n; - } - } - } - } -#if defined(NEED_SNPRINTF_ONLY) - va_end(ap); -#endif - if (str_m > 0) { /* make sure the string is null-terminated, possibly - at the expense of overwriting the last character */ - str[str_l <= str_m-1 ? str_l : str_m-1] = '\0'; - } - /* Return the number of characters formatted (excluding trailing null - * character), that is, the number of characters that would have been - * written to the buffer if it were large enough. - * - * The value of str_l should be returned, but str_l is of unsigned type - * size_t, and snprintf is int, possibly leading to an undetected - * integer overflow, resulting in a negative return value, which is invalid. - * Both XSH5 and ISO C99 (at least the draft) are silent on this issue. - * Should errno be set to EOVERFLOW and EOF returned in this case??? - */ - return (int) str_l; -} -#endif diff --git a/shared/snprintf.h b/shared/snprintf.h deleted file mode 100644 index f567ba68..00000000 --- a/shared/snprintf.h +++ /dev/null @@ -1,30 +0,0 @@ -#ifndef _PORTABLE_SNPRINTF_H_ -#define _PORTABLE_SNPRINTF_H_ - -#define PORTABLE_SNPRINTF_VERSION_MAJOR 2 -#define PORTABLE_SNPRINTF_VERSION_MINOR 2 - -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - -#ifdef HAVE_SNPRINTF -#include -#else -extern int snprintf(char *, size_t, const char *, /*args*/ ...); -extern int vsnprintf(char *, size_t, const char *, va_list); -#endif - -#if defined(HAVE_SNPRINTF) && defined(PREFER_PORTABLE_SNPRINTF) -extern int portable_snprintf(char *str, size_t str_m, const char *fmt, /*args*/ ...); -extern int portable_vsnprintf(char *str, size_t str_m, const char *fmt, va_list ap); -#define snprintf portable_snprintf -#define vsnprintf portable_vsnprintf -#endif - -extern int asprintf (char **ptr, const char *fmt, /*args*/ ...); -extern int vasprintf (char **ptr, const char *fmt, va_list ap); -extern int asnprintf (char **ptr, size_t str_m, const char *fmt, /*args*/ ...); -extern int vasnprintf(char **ptr, size_t str_m, const char *fmt, va_list ap); - -#endif From 31bbb750c81c2cad654587c28e86656e80ea0683 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Fri, 7 Jun 2019 16:36:04 +0200 Subject: [PATCH 29/72] drivers: switch from Get2 to FillStruct --- server/drivers/CFontz.c | 2 +- server/drivers/CFontzPacket.c | 2 +- server/drivers/CwLnx.c | 2 +- server/drivers/MtxOrb.c | 2 +- server/drivers/bayrad.c | 2 +- server/drivers/curses_drv.c | 2 +- server/drivers/glk.c | 2 +- server/drivers/hd44780.c | 2 +- server/drivers/lb216.c | 2 +- server/drivers/lcdm001.c | 2 +- server/drivers/pylcd.c | 2 +- server/drivers/text.c | 2 +- server/drivers/xosdlib_drv.c | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/server/drivers/CFontz.c b/server/drivers/CFontz.c index 276a39af..d42f786b 100644 --- a/server/drivers/CFontz.c +++ b/server/drivers/CFontz.c @@ -127,7 +127,7 @@ CFontz_init(Driver *drvthis, Elektra * elektra) /* Read config */ CFontzDriverConfig config; - elektraGet2V (elektra, &config, ELEKTRA_TAG_CFONTZ, drvthis->index); + elektraFillStructV (elektra, &config, ELEKTRA_TAG_CFONTZ, drvthis->index); /* Which device should be used */ report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": using Device %s", drvthis->name, drvthis->index, config.device); diff --git a/server/drivers/CFontzPacket.c b/server/drivers/CFontzPacket.c index 4ebe9a67..9724f13b 100644 --- a/server/drivers/CFontzPacket.c +++ b/server/drivers/CFontzPacket.c @@ -150,7 +150,7 @@ CFontzPacket_init (Driver *drvthis, Elektra * elektra) /* Read config */ CFontzPacketDriverConfig config; - elektraGet2V(elektra, &config, ELEKTRA_TAG_CFONTZPACKET, drvthis->index); + elektraFillStructV(elektra, &config, ELEKTRA_TAG_CFONTZPACKET, drvthis->index); /* Try to find a matching model from our list of known modules */ debug(RPT_INFO, "%s: Model (in config) is '%d'", __FUNCTION__, config.model); diff --git a/server/drivers/CwLnx.c b/server/drivers/CwLnx.c index 47a1c253..e0badc35 100644 --- a/server/drivers/CwLnx.c +++ b/server/drivers/CwLnx.c @@ -478,7 +478,7 @@ CwLnx_init(Driver *drvthis, Elektra * elektra) /* Read config */ CwLnxDriverConfig config; - elektraGet2V(elektra, &config, ELEKTRA_TAG_CWLNX, drvthis->index); + elektraFillStructV(elektra, &config, ELEKTRA_TAG_CWLNX, drvthis->index); /* Which model is it (1602, 12232 or 12832)? */ p->model = config.model; diff --git a/server/drivers/MtxOrb.c b/server/drivers/MtxOrb.c index 11d45169..15f22aac 100644 --- a/server/drivers/MtxOrb.c +++ b/server/drivers/MtxOrb.c @@ -261,7 +261,7 @@ MtxOrb_init (Driver *drvthis, Elektra *elektra) /* READ CONFIG FILE */ MtxOrbDriverConfig config; - elektraGet2V(elektra, &config, ELEKTRA_TAG_MTXORB, drvthis->index); + elektraFillStructV(elektra, &config, ELEKTRA_TAG_MTXORB, drvthis->index); /* Get serial device to use */ report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": using Device %s", drvthis->name, drvthis->index, config.device); diff --git a/server/drivers/bayrad.c b/server/drivers/bayrad.c index 4d78818e..0468583c 100644 --- a/server/drivers/bayrad.c +++ b/server/drivers/bayrad.c @@ -97,7 +97,7 @@ bayrad_init(Driver *drvthis, Elektra * elektra) /* Read config */ BayradDriverConfig config; - elektraGet2V (elektra, &config, ELEKTRA_TAG_BAYRAD, drvthis->index); + elektraFillStructV (elektra, &config, ELEKTRA_TAG_BAYRAD, drvthis->index); /* What device should be used */ report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": using Device %s", drvthis->name, drvthis->index, config.device); diff --git a/server/drivers/curses_drv.c b/server/drivers/curses_drv.c index 9bf06a05..cb9e07eb 100644 --- a/server/drivers/curses_drv.c +++ b/server/drivers/curses_drv.c @@ -179,7 +179,7 @@ curses_init (Driver *drvthis, Elektra * elektra) /* Get settings from config */ CursesDriverConfig config; - elektraGet2V(elektra, &config, ELEKTRA_TAG_CURSES, drvthis->index); + elektraFillStructV(elektra, &config, ELEKTRA_TAG_CURSES, drvthis->index); /* Get color settings */ diff --git a/server/drivers/glk.c b/server/drivers/glk.c index 430ef1ed..03ad323a 100644 --- a/server/drivers/glk.c +++ b/server/drivers/glk.c @@ -118,7 +118,7 @@ glk_init(Driver *drvthis, Elektra * elektra) /* Read config */ GlkDriverConfig config; - elektraGet2V(elektra, &config, ELEKTRA_TAG_GLK, drvthis->index); + elektraFillStructV(elektra, &config, ELEKTRA_TAG_GLK, drvthis->index); /* What device should be used */ report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": using Device %s", drvthis->name, drvthis->index, config.device); diff --git a/server/drivers/hd44780.c b/server/drivers/hd44780.c index 55cce3b4..fe6d7d68 100644 --- a/server/drivers/hd44780.c +++ b/server/drivers/hd44780.c @@ -299,7 +299,7 @@ HD44780_init(Driver *drvthis, Elektra * elektra) /* READ THE CONFIG */ Hd44780DriverConfig config; - elektraGet2V(elektra, &config, ELEKTRA_TAG_HD44780, drvthis->index); + elektraFillStructV(elektra, &config, ELEKTRA_TAG_HD44780, drvthis->index); // TODO (elektra): use hexnumber? p->port = (unsigned int)strtoul(config.port, NULL, 16); /* works because, spec enforces hex string */ diff --git a/server/drivers/lb216.c b/server/drivers/lb216.c index 3dfe9d15..d54e0df6 100644 --- a/server/drivers/lb216.c +++ b/server/drivers/lb216.c @@ -95,7 +95,7 @@ LB216_init(Driver *drvthis, Elektra * elektra) /* Read config */ Lb216DriverConfig config; - elektraGet2V(elektra, &config, ELEKTRA_TAG_LB216, drvthis->index); + elektraFillStructV(elektra, &config, ELEKTRA_TAG_LB216, drvthis->index); /* What device should be used */ report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": using Device %s", drvthis->name, drvthis->index, config.device); diff --git a/server/drivers/lcdm001.c b/server/drivers/lcdm001.c index 47c5aa8a..bad77b4b 100644 --- a/server/drivers/lcdm001.c +++ b/server/drivers/lcdm001.c @@ -159,7 +159,7 @@ lcdm001_init (Driver *drvthis, Elektra * elektra) /* READ CONFIG FILE: */ Lcdm001DriverConfig config; - elektraGet2V(elektra, &config, ELEKTRA_TAG_LCDM001, drvthis->index); + elektraFillStructV(elektra, &config, ELEKTRA_TAG_LCDM001, drvthis->index); /* which serial device should be used */ report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": using Device %s", drvthis->name, drvthis->index, config.device); diff --git a/server/drivers/pylcd.c b/server/drivers/pylcd.c index 9a9f300d..91661b7d 100644 --- a/server/drivers/pylcd.c +++ b/server/drivers/pylcd.c @@ -327,7 +327,7 @@ pyramid_init(Driver *drvthis, Elektra * elektra) */ PyramidDriverConfig config; - elektraGet2V(elektra, &config, ELEKTRA_TAG_PYRAMID, drvthis->index); + elektraFillStructV(elektra, &config, ELEKTRA_TAG_PYRAMID, drvthis->index); /* Which serial device should be used? */ report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": using Device %s", drvthis->name, drvthis->index, config.device); diff --git a/server/drivers/text.c b/server/drivers/text.c index a499e767..26850aac 100644 --- a/server/drivers/text.c +++ b/server/drivers/text.c @@ -71,7 +71,7 @@ text_init (Driver *drvthis, Elektra * elektra) /* initialize private data */ TextDriverConfig config; - elektraGet2V(elektra, &config, ELEKTRA_TAG_TEXT, drvthis->index); + elektraFillStructV(elektra, &config, ELEKTRA_TAG_TEXT, drvthis->index); // Set display sizes if ((drvthis->request_display_width() > 0) diff --git a/server/drivers/xosdlib_drv.c b/server/drivers/xosdlib_drv.c index b8bbd20d..e19e738b 100644 --- a/server/drivers/xosdlib_drv.c +++ b/server/drivers/xosdlib_drv.c @@ -82,7 +82,7 @@ xosdlib_drv_init (Driver *drvthis, Elektra * elektra) /* Read config */ XosdDriverConfig config; - elektraGet2V(elektra, &config, ELEKTRA_TAG_XOSD, drvthis->index); + elektraFillStructV(elektra, &config, ELEKTRA_TAG_XOSD, drvthis->index); /* Which size */ if ((drvthis->request_display_width() > 0) From b22480735e5b54b778f41053155bb774724c9f3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Fri, 7 Jun 2019 18:35:11 +0200 Subject: [PATCH 30/72] server: fix warnings --- server/commands/client_commands.c | 2 +- server/main.c | 6 ++---- server/menu.c | 2 +- server/serverscreens.c | 8 ++++---- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/server/commands/client_commands.c b/server/commands/client_commands.c index 39f4ac09..9e20a77f 100644 --- a/server/commands/client_commands.c +++ b/server/commands/client_commands.c @@ -132,7 +132,7 @@ client_set_func(Client *c, int argc, char **argv) /* Handle the "name" option */ if (strcmp(p, "name") == 0) { i++; - if (argv[i] == '\0') { + if (argv[i][0] == '\0') { sock_printf_error(c->sock, "internal error: no parameter #%d\n", i); continue; } diff --git a/server/main.c b/server/main.c index 1912de96..e0ee280f 100644 --- a/server/main.c +++ b/server/main.c @@ -136,7 +136,7 @@ static int report_dest = UNSET_INT; static int report_level = UNSET_INT; static int stored_argc; -static char **stored_argv; +static const char **stored_argv; static volatile short got_reload_signal = 0; static Elektra * elektra; @@ -257,8 +257,6 @@ main(int argc, const char **argv) static void clear_settings(void) { - int i; - debug(RPT_DEBUG, "%s()", __FUNCTION__); bind_port = UNSET_INT; @@ -457,7 +455,7 @@ wave_to_parent(pid_t parent_pid) static int init_drivers(void) { - int i, res; + int res; debug(RPT_DEBUG, "%s()", __FUNCTION__); diff --git a/server/menu.c b/server/menu.c index 086d80e5..5f8b1c0d 100644 --- a/server/menu.c +++ b/server/menu.c @@ -393,7 +393,7 @@ void menu_build_screen(MenuItem *menu, Screen *s) subitem != NULL; subitem = LL_GetNext(menu->data.menu.contents), itemnr ++) { - char buf[10]; + char buf[20]; if (subitem->is_hidden) continue; diff --git a/server/serverscreens.c b/server/serverscreens.c index 1cf45dd3..b4cfdef6 100644 --- a/server/serverscreens.c +++ b/server/serverscreens.c @@ -80,7 +80,7 @@ server_screen_init(Elektra * elektra) /* Create all the widgets...*/ for (i = 0; i < display_props->height; i++) { - char id[8]; + char id[20]; sprintf(id, "line%d", i+1); w = widget_create(id, WID_STRING, server_screen); @@ -101,9 +101,9 @@ server_screen_init(Elektra * elektra) if (has_hello_msg) { /* show whole Hello message */ for (kdb_long_long_t i = 0; i < display_props->height && i < helloArraySize; i++) { const char *line = elektraGetV(elektra, ELEKTRA_TAG_SERVER_HELLO, i); - char id[8]; + char id[30]; - sprintf(id, "line%d", i+1); + sprintf(id, "line"ELEKTRA_LONG_LONG_F, i+1); w = screen_find_widget(server_screen, id); if ((w != NULL) && (w->text != NULL)) { strncpy(w->text, line, LCD_MAX_WIDTH); @@ -275,7 +275,7 @@ reset_server_screen(int rotate, int heartbeat, int title) ? PRI_INFO : PRI_BACKGROUND; for (i = 0; i < display_props->height; i++) { - char id[8]; + char id[20]; Widget *w; sprintf(id, "line%d", i+1); From fe29b73e4e9eca8f933e8d747aa4337dc11279cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Fri, 7 Jun 2019 18:35:39 +0200 Subject: [PATCH 31/72] shared: fix warnings --- shared/sockets.c | 4 ++-- shared/sockets.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/shared/sockets.c b/shared/sockets.c index 1ea4a2b7..d36d223e 100644 --- a/shared/sockets.c +++ b/shared/sockets.c @@ -67,7 +67,7 @@ sock_init_sockaddr (sockaddr_in *name, const char *hostname, unsigned short int * \return socket file descriptor on success, -1 on error */ int -sock_connect (char *host, unsigned short int port) +sock_connect (const char *host, unsigned short int port) { struct sockaddr_in servername; int sock; @@ -312,7 +312,7 @@ sock_printf_error(int fd, const char *format, .../*args*/ ) va_list ap; int size = 0; - strncpy(buf, huh, sizeof(huh)); // note: sizeof(huh) < MAXMSG + strcpy(buf, huh); // note: sizeof(huh) < MAXMSG va_start(ap, format); size = vsnprintf(buf + (sizeof(huh)-1), sizeof(buf) - (sizeof(huh)-1), format, ap); diff --git a/shared/sockets.h b/shared/sockets.h index 546d367b..13b81439 100644 --- a/shared/sockets.h +++ b/shared/sockets.h @@ -18,7 +18,7 @@ #endif /** Connect to server on host, port */ -int sock_connect (char *host, unsigned short int port); +int sock_connect (const char *host, unsigned short int port); /** Disconnect from server */ int sock_close (int fd); /** Send printf-like formatted output */ From 7641433677e630948626c7621f0b28f7a0ae6621 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Fri, 7 Jun 2019 19:00:50 +0200 Subject: [PATCH 32/72] drivers: fix warnings --- server/drivers/CwLnx.c | 4 ---- server/drivers/MtxOrb.c | 4 +--- server/drivers/glkproto.c | 2 +- server/drivers/glkproto.h | 2 +- server/drivers/hd44780-ftdi.c | 5 ++--- server/drivers/hd44780.c | 6 +++--- server/drivers/lcdm001.c | 2 ++ server/drivers/xosdlib_drv.c | 3 +-- 8 files changed, 11 insertions(+), 17 deletions(-) diff --git a/server/drivers/CwLnx.c b/server/drivers/CwLnx.c index e0badc35..e961a1f4 100644 --- a/server/drivers/CwLnx.c +++ b/server/drivers/CwLnx.c @@ -74,8 +74,6 @@ #define MaxKeyMap 6 -static char *defaultKeyMap[MaxKeyMap] = { "Up", "Down", "Left", "Right", "Enter", "Escape" }; - /** private data for the \c CwLnx driver */ typedef struct CwLnx_private_data { @@ -446,10 +444,8 @@ CwLnx_init(Driver *drvthis, Elektra * elektra) int default_speed = DEFAULT_SPEED; char *default_size = DEFAULT_SIZE; - int tmp; int w; int h; - const char *s; PrivateData *p; diff --git a/server/drivers/MtxOrb.c b/server/drivers/MtxOrb.c index 15f22aac..1a7cb335 100644 --- a/server/drivers/MtxOrb.c +++ b/server/drivers/MtxOrb.c @@ -211,7 +211,7 @@ static void MtxOrb_cursor_goto(Driver *drvthis, int x, int y); static void read_keymap_key(Driver *drvthis, PrivateData *p, int index, char key, const char * mapped_key) { if(strlen(mapped_key) > 0) { - p->keymap[index] = strdup(key); + p->keymap[index] = strdup(mapped_key); p->keys++; report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": Key '%c' mapped to \"%s\"", drvthis->name, drvthis->index, key, mapped_key); } else { @@ -341,8 +341,6 @@ MtxOrb_init (Driver *drvthis, Elektra *elektra) * test mode. */ - int i; - /* assume no mapped keys */ p->keys = 0; diff --git a/server/drivers/glkproto.c b/server/drivers/glkproto.c index f6802ff3..7e0a0165 100644 --- a/server/drivers/glkproto.c +++ b/server/drivers/glkproto.c @@ -36,7 +36,7 @@ unsigned char GLKBufferEmpty = 0xff; * Open and configure a serial port for communication with * a Matrix Orbital module (GLK or otherwise) */ -GLKDisplay *glkopen(char *name, tcflag_t speed) +GLKDisplay *glkopen(const char *name, tcflag_t speed) { int fd; struct termios new; diff --git a/server/drivers/glkproto.h b/server/drivers/glkproto.h index d777ef59..b1ccd6d5 100644 --- a/server/drivers/glkproto.h +++ b/server/drivers/glkproto.h @@ -42,7 +42,7 @@ typedef struct { #define GLK_TIMEOUT (254) /* Functions */ -GLKDisplay * glkopen( char * name, tcflag_t speed ); +GLKDisplay * glkopen( const char * name, tcflag_t speed ); int glktimeout( GLKDisplay * fd, int timeout ); int glkclose( GLKDisplay * ); int glkput_confirm( GLKDisplay * fd, int c ); diff --git a/server/drivers/hd44780-ftdi.c b/server/drivers/hd44780-ftdi.c index ca5db344..a3d770d1 100644 --- a/server/drivers/hd44780-ftdi.c +++ b/server/drivers/hd44780-ftdi.c @@ -67,7 +67,6 @@ hd_init_ftdi(Driver *drvthis, const Hd44780DriverConfig * config) { int vendor_id, product_id; int f; - const char *s; char *usb_description, *serial_number; PrivateData *p = (PrivateData *)drvthis->private_data; @@ -81,10 +80,10 @@ hd_init_ftdi(Driver *drvthis, const Hd44780DriverConfig * config) vendor_id = config->usbVendorid == 0 ? 0x0403 : config->usbVendorid; product_id = config->usbProductid == 0 ? 0x6001 : config->usbProductid; if (strlen(config->usbDescription) != 0) { - usb_description = strdup(s); + usb_description = strdup(config->usbDescription); } if (strlen(config->usbSerialnumber) != 0) { - serial_number = strdup(s); + serial_number = strdup(config->usbSerialnumber); } /* these config settings are not documented intentionally */ diff --git a/server/drivers/hd44780.c b/server/drivers/hd44780.c index fe6d7d68..e50d7b31 100644 --- a/server/drivers/hd44780.c +++ b/server/drivers/hd44780.c @@ -216,7 +216,7 @@ static void report_backlight_type(int report_level, int backlight_type) /* first find just whole option name */ for (i=0; iprivate_data; - int contrast; /* Check it */ if (promille < 0 || promille > 1000) @@ -454,7 +453,7 @@ xosdlib_drv_set_contrast (Driver *drvthis, int promille) p->contrast = promille; /* map range [0, 1000] to [0, 255] */ - contrast = (p->contrast * 255) / 1000; + /* int contrast = (p->contrast * 255) / 1000; */ /* What to do with it ? */ } From 945d7dc9fe1025c952d26af34af8e02e2a7d6cad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Sat, 8 Jun 2019 16:29:29 +0200 Subject: [PATCH 33/72] all: remove files that shouldn't exist --- lcdd_spec.ini | Bin 8 -> 0 bytes lcdexec_spec.ini | Bin 8 -> 0 bytes 2 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 lcdd_spec.ini delete mode 100644 lcdexec_spec.ini diff --git a/lcdd_spec.ini b/lcdd_spec.ini deleted file mode 100644 index 476aa7a088354af212a5abcdeb6b58fff1f55ef7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8 PcmZ?uc5z~0U|<3O2O$9& diff --git a/lcdexec_spec.ini b/lcdexec_spec.ini deleted file mode 100644 index 476aa7a088354af212a5abcdeb6b58fff1f55ef7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8 PcmZ?uc5z~0U|<3O2O$9& From 6bc838c8685aa16c253b88a743080ee9c5044e52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Sat, 8 Jun 2019 16:47:44 +0200 Subject: [PATCH 34/72] clients: update readconf.py --- readconf.py | 222 ++++++++++++++++++++++++++++++++-------------------- 1 file changed, 139 insertions(+), 83 deletions(-) mode change 100644 => 100755 readconf.py diff --git a/readconf.py b/readconf.py old mode 100644 new mode 100755 index 81d88c7d..fc28fb5b --- a/readconf.py +++ b/readconf.py @@ -1,14 +1,18 @@ -#!env python3 +#!/usr/bin/python3 import sys import configparser -from typing import Dict, IO -from subprocess import run +import subprocess import argparse import os import collections -def read_lcdd(file: IO): + +def array_index(index): + return "#" + "_" * (len(str(index)) - 1) + str(index) + + +def read_lcdd(file): class ConfigParserMultiValues(collections.OrderedDict): def __setitem__(self, key, value): if key in self and isinstance(value, list): @@ -20,11 +24,10 @@ def __setitem__(self, key, value): def getlist(value): return value.split(os.linesep) - config = configparser.RawConfigParser(strict=False, empty_lines_in_values=False, dict_type=ConfigParserMultiValues, converters={"list": ConfigParserMultiValues.getlist}) + config = configparser.RawConfigParser(strict=False, empty_lines_in_values=False, dict_type=ConfigParserMultiValues, converters={ + "list": ConfigParserMultiValues.getlist}) config.read_file(file) - base_key = "/sw/lcdproc/lcdd/#0/current/" - kdb_config = {} for section in config.sections(): if section == "server": @@ -35,41 +38,102 @@ def getlist(value): section_key = "driver/" + section.lower() + "/" for key in config[section]: - kdb_key = base_key + section_key + key.lower() + kdb_key = section_key + key.lower() if (section == "server" and key.lower() in ["hello", "goodbye"]) or \ (section.lower() == "hd44780" and key.lower() == "backlight") or \ - (section.lower() == "linux_input" and key.lower() == "key"): + (section.lower() == "linux_input" and key.lower() == "key"): kdb_config[kdb_key] = config[section].getlist(key) elif section == "server" and key.lower() == "driver": - kdb_config[kdb_key] = [base_key+"driver/"+d for d in config[section].getlist(key)] - else: + kdb_config[kdb_key] = ["driver/" + d for d in config[section].getlist(key)] + else: kdb_config[kdb_key] = config[section][key] return kdb_config -def read_lcdproc(file: IO): +def read_lcdproc(file): config = configparser.RawConfigParser() config.read_file(file) - base_key = "/sw/lcdproc/lcdproc/#0/current/" - kdb_config = {} for section in config.sections(): - if section == "lcdproc": - section_key = "general/" - else: - section_key = "screenmode/" + section.lower() + "/" - for key in config[section]: - kdb_key = base_key + section_key + key.lower() + kdb_key = section.lower() + "/" + key.lower() kdb_config[kdb_key] = config[section][key] return kdb_config -def read_lcdexec(file: IO): +class LcdexecReader(): + def __init__(self, config): + self.kdb_config = {} + self.config = config + self.menu_index = 1 + self.command_index = 0 + self.parameter_index = { + "slider": 0, + "checkbox": 0, + "numeric": 0, + "ring": 0, + "alpha": 0, + "ip": 0 + } + + def read_param(self, param, param_key): + for key in self.config[param]: + self.kdb_config[param_key + key.lower()] = self.config[param][key] + + def read_command(self, section, command_key): + if "DisplayName" in self.config[section]: + self.kdb_config[command_key + "displayname"] = self.config[section]["DisplayName"] + + self.kdb_config[command_key + "exec"] = self.config[section]["Exec"] + if "Feedback" in self.config[section]: + self.kdb_config[command_key + "feedback"] = self.config[section]["Feedback"] + if "Parameter" in self.config[section]: + params = self.config.getlist(section, "Parameter") + + self.kdb_config[command_key + "parameters"] = [] + for param in params: + param_type = self.config[param]["Type"].lower() + param_key = "menu/parameter/" + param_key += param_type + "/" + array_index(self.parameter_index[param_type]) + self.parameter_index[param_type] += 1 + self.kdb_config[command_key + "parameters"].append(param_key) + self.read_param(param, param_key + "/") + + def read_menu_entries(self, section, menu_key): + entries = self.config.getlist(section, "Entry") + self.kdb_config[menu_key + "entries"] = [] + for entry in entries: + if "Exec" in self.config[entry]: + entry_key = "menu/command/" + array_index(self.command_index) + self.command_index += 1 + self.read_command(entry, entry_key + "/") + else: + entry_key = "menu/menu/" + array_index(self.menu_index) + self.menu_index += 1 + self.read_menu(entry, entry_key + "/") + self.kdb_config["menu/menu/#0/entries"].append(entry_key) + + def read_menu(self, section, menu_key): + if "DisplayName" in self.config[section]: + self.kdb_config[menu_key + "displayname"] = self.config[section]["DisplayName"] + + self.read_menu_entries(section, menu_key) + + def read_main_menu(self): + self.kdb_config["menu/main"] = "menu/menu/#0" + self.read_menu_entries("MainMenu", "menu/menu/#0/") + self.kdb_config["menu/menu"] = [""] * self.menu_index + self.kdb_config["menu/command"] = [""] * self.command_index + for param_type, param_index in self.parameter_index.items(): + self.kdb_config["menu/parameter/" + param_type] = [""] * param_index + return self.kdb_config + + +def read_lcdexec(file): class ConfigParserMultiValues(collections.OrderedDict): def __setitem__(self, key, value): @@ -82,112 +146,104 @@ def __setitem__(self, key, value): def getlist(value): return value.split(os.linesep) - config = configparser.ConfigParser(strict=False, empty_lines_in_values=False, dict_type=ConfigParserMultiValues, converters={ - "list": ConfigParserMultiValues.getlist}) + config = configparser.ConfigParser(strict=False, empty_lines_in_values=False, dict_type=ConfigParserMultiValues, + converters={"list": ConfigParserMultiValues.getlist}) config.read_file(file) - base_key = "/sw/lcdproc/lcdexec/#0/current/" - kdb_config = {} if "lcdexec" in config.sections(): for key in config["lcdexec"]: - kdb_key = base_key + "general/" + key.lower() + kdb_key = "lcdexec/" + key.lower() kdb_config[kdb_key] = config["lcdexec"][key] - def read_param(param: str, param_key: str): - for key in config[param]: - kdb_config[param_key+key.lower()] = config[param][key] - - def read_command(section: str, command_key: str): - if "DisplayName" in config[section]: - kdb_config[command_key+"displayname"] = config[section]["DisplayName"] - - kdb_config[command_key+"exec"] = config[section]["Exec"] - if "Feedback" in config[section]: - kdb_config[command_key+"feedback"] = config[section]["Feedback"] - if "Parameter" in config[section]: - params = config.getlist(section, "Parameter") - - kdb_config[command_key+"param"] = "#"+str(len(params)-1) - for index, param in enumerate(params): - param_key = base_key+"menu/param/"+config[param]["Type"].lower()+"/"+param.lower() - kdb_config[command_key+"param/#"+str(index)] = param_key - read_param(param, param_key+"/") - - def read_menu_entries(section: str, menu_key: str): - entries = config.getlist(section, "Entry") - kdb_config[menu_key+"entry"] = "#"+str(len(entries)-1) - for index, entry in enumerate(entries): - if "Exec" in config[entry]: - entry_key = base_key+"menu/command/"+entry.lower() - read_command(entry, entry_key+"/") - else: - entry_key = base_key+"menu/menu/"+entry.lower() - read_menu(entry, entry_key+"/") - kdb_config[base_key+"menu/menu/main/entry/#"+str(index)] = entry_key - - def read_menu(section: str, menu_key: str): - if "DisplayName" in config[section]: - kdb_config[menu_key+"displayname"] = config[section]["DisplayName"] - - read_menu_entries(section, menu_key) - if "MainMenu" in config.sections(): - kdb_config[base_key+"menu/main"] = base_key+"menu/menu/main" - read_menu_entries("MainMenu", base_key+"menu/menu/main/") + kdb_config.update(LcdexecReader(config).read_main_menu()) return kdb_config -def read_lcdvc(file: IO): +def read_lcdvc(file): config = configparser.RawConfigParser() config.read_file(file) - base_key = "/sw/lcdproc/lcdvc/#0/current/" - kdb_config = {} for section in config.sections(): for key in config[section]: - kdb_key = base_key + key.lower() + kdb_key = "lcdvc/" + key.lower() kdb_config[kdb_key] = config[section][key] return kdb_config +def check_kdb_tmp(): + cmd = ["kdb", "ls", "user/sw/lcdproc/tmp"] + proc = subprocess.run(cmd, stdout=subprocess.PIPE) + if len(proc.stdout.decode("utf-8")) > 0: + print("Please ensure that user/sw/lcdproc/tmp is empty", file=sys.stderr) + exit(1) + + def write_to_kdb(kdb_config): def write_value(key, value): if value.startswith('"') and value.endswith('"'): value = value[1:-1] - cmd = ["kdb", "set", "--", f"{key}", f"{value}"] - print("$", " ".join(cmd)) - run(cmd) - + cmd = ["kdb", "set", "--", "user/sw/lcdproc/tmp/" + str(key), str(value)] + subprocess.run(cmd, stdout=subprocess.DEVNULL) + + def write_meta(key, meta, value): + if value.startswith('"') and value.endswith('"'): + value = value[1:-1] + cmd = ["kdb", "setmeta", "--", "user/sw/lcdproc/tmp/" + str(key), str(meta), str(value)] + subprocess.run(cmd, stdout=subprocess.DEVNULL) + for key, value in kdb_config.items(): if isinstance(value, list): - write_value(key, f"#{len(value) - 1}") - for index,item in enumerate(value): - write_value(f"{key}/#{index}", item) + write_meta(key, "array", array_index(len(value) - 1)) + for index, item in enumerate(value): + write_value(str(key) + "/" + array_index(index), item) + elif value.lower() in ["false", "n", "no", "off", "true", "y", "yes", "on"]: + write_value(key, value.lower()) else: write_value(key, value) +def export_kdb_tmp(outfile): + cmd = ["kdb", "export", "user/sw/lcdproc/tmp", "yamlcpp", outfile.name] + subprocess.run(cmd, stdout=subprocess.DEVNULL) + + +def clean_kdb_tmp(): + cmd = ["kdb", "rm", "-r", "user/sw/lcdproc/tmp"] + subprocess.run(cmd, stdout=subprocess.DEVNULL) + + parser = argparse.ArgumentParser() parser.add_argument("mode") -parser.add_argument("file", type=argparse.FileType('r', encoding="UTF-8")) +parser.add_argument("infile", type=argparse.FileType('r', encoding="UTF-8")) +parser.add_argument("outfile", type=argparse.FileType('w', encoding="UTF-8")) args = parser.parse_args() mode = args.mode.lower() +check_kdb_tmp() + if mode == "lcdd": - kdb_config = read_lcdd(args.file) + print("Not supported right now", file=sys.stderr) + exit(1) + kdb_config = read_lcdd(args.infile) elif mode == "lcdproc": - kdb_config = read_lcdproc(args.file) + kdb_config = read_lcdproc(args.infile) elif mode == "lcdvc": - kdb_config = read_lcdvc(args.file) + kdb_config = read_lcdvc(args.infile) elif mode == "lcdexec": - kdb_config = read_lcdexec(args.file) + kdb_config = read_lcdexec(args.infile) else: - print("unknown mode") + print("unknown mode", file=sys.stderr) exit(1) write_to_kdb(kdb_config) + +export_kdb_tmp(args.outfile) +clean_kdb_tmp() + +print("Success: Please mount '" + args.outfile.name + "' with yamlcpp under 'user/sw/lcdproc/" + mode + "/#0/current'") From 6a8af21e46d6cfd20cb5257205cbf9b1f6468305 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Sat, 8 Jun 2019 18:02:33 +0200 Subject: [PATCH 35/72] all: fix/update specifications --- .../lcdexec/specification/lcdexec-spec.ini | 17 +- .../lcdproc/specification/lcdproc-spec.ini | 82 ++-- clients/lcdvc/specification/lcdvc-spec.ini | 14 +- server/specification/LCDd-spec.ini | 382 ++++++++---------- 4 files changed, 234 insertions(+), 261 deletions(-) diff --git a/clients/lcdexec/specification/lcdexec-spec.ini b/clients/lcdexec/specification/lcdexec-spec.ini index 1f73f13f..a3e184a2 100644 --- a/clients/lcdexec/specification/lcdexec-spec.ini +++ b/clients/lcdexec/specification/lcdexec-spec.ini @@ -2,8 +2,7 @@ [] mountpoint = lcdexec.conf -;infos/plugins = dump validation enum range ipaddr path -infos/plugin = ini validation type +infos/plugins = ini type range reference network ; path [lcdexec/address] check/ipaddr = @@ -35,7 +34,7 @@ opt/long = report-level [lcdexec/reporttosyslog] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Should we report to syslog instead of stderr? opt = s opt/long = report-to-syslog @@ -43,7 +42,7 @@ opt/long = report-to-syslog [lcdexec/foreground] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = "whether to run in foreground" opt = f opt/long = foreground @@ -52,14 +51,14 @@ opt/arg = none [lcdexec/pidfile] type = string check/type = string -;check/path = ; does not have to exist +;check/path = ; TODO (elektra): too many plugins, does not have to exist default = /var/run/lcdexec.pid description = "PidFile location when running as daemon" [lcdexec/shell] type = string check/type = string -;check/path = +;check/path = ; TODO (elektra): too many plugins default = /bin/sh description = "shell to use for executing programs; any shell that understands: -c COMMAND" env = SHELL @@ -183,7 +182,7 @@ description = "what the command should do" [menu/command/#/feedback] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = "show a temporary feedback screen upon completion" [menu/parameter/slider/#] @@ -305,7 +304,7 @@ gen/enum/create = 0 [menu/parameter/checkbox/#/allowgray] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = whether to allow the third (gray) state [menu/parameter/checkbox/#/offtext] @@ -527,5 +526,5 @@ gen/struct/field = initialValue [menu/parameter/ip/#/v6] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = "whether or not to use IPv6" \ No newline at end of file diff --git a/clients/lcdproc/specification/lcdproc-spec.ini b/clients/lcdproc/specification/lcdproc-spec.ini index bcc6f54b..01dd3b3f 100644 --- a/clients/lcdproc/specification/lcdproc-spec.ini +++ b/clients/lcdproc/specification/lcdproc-spec.ini @@ -1,7 +1,6 @@ [] -mountpoint = ldcproc-spec.conf -;infos/plugins = dump validation type range network path -infos/plugins = ini type range +mountpoint = ldcproc.conf +infos/plugins = ini type range network ; path ;lcdproc ;================================================== @@ -9,14 +8,14 @@ infos/plugins = ini type range type = string check/type = string default = localhost -;check/ipaddr = +check/ipaddr = description = address of the LCDd server to connect to opt = s opt/long = server [lcdproc/port] type = unsigned_short -;check/port = +check/port = check/type = unsigned_short default = 13666 description = Port of the server to connect to @@ -33,13 +32,13 @@ description = set reporting level [lcdproc/reporttosyslog] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = report to syslog ? [lcdproc/foreground] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = report to syslog ? opt = f opt/long = foreground @@ -48,6 +47,7 @@ opt/arg = none [lcdproc/pidfile] type = string default = /var/run/lcdproc.pid +;check/path = ; TODO (elektra): does not have to exist description = "PidFile location when running as daemon [default: /var/run/lcdproc.pid]" [lcdproc/delay] @@ -91,7 +91,7 @@ check/enum/#_13 = proc_size check/enum/#_14 = disk check/enum/#_15 = mini_clock gen/enum/type = LcdprocScreen -default = "" ; TODO: opt doesn't need default +default = "" ; TODO (kodebach): opt doesn't need default args = remaining ;CPU @@ -107,7 +107,7 @@ gen/struct/create = 0 [cpu/active] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion gen/struct/field = active description = Show screen @@ -126,7 +126,7 @@ gen/struct/field = off_time [cpu/showinvisible] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion gen/struct/field = show_invisible ;Iface @@ -142,7 +142,7 @@ gen/struct/create = 0 [iface/active] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion gen/struct/field = active description = Show screen @@ -161,7 +161,7 @@ gen/struct/field = off_time [iface/showinvisible] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion gen/struct/field = show_invisible [iface/interface] @@ -199,7 +199,7 @@ gen/struct/field/ignore = 1 [iface/transfer] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = add screen with transferred traffic gen/struct/field/ignore = 1 @@ -216,7 +216,7 @@ gen/struct/create = 0 [memory/active] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion gen/struct/field = active description = Show screen @@ -235,7 +235,7 @@ gen/struct/field = off_time [memory/showinvisible] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion gen/struct/field = show_invisible ;Load @@ -251,7 +251,7 @@ gen/struct/create = 0 [load/active] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion gen/struct/field = active description = Show screen @@ -270,7 +270,7 @@ gen/struct/field = off_time [load/showinvisible] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion gen/struct/field = show_invisible [load/lowload] @@ -300,7 +300,7 @@ gen/struct/create = 0 [timedate/active] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion gen/struct/field = active description = Show screen @@ -319,7 +319,7 @@ gen/struct/field = off_time [timedate/showinvisible] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion gen/struct/field = show_invisible [timedate/timeformat] @@ -349,7 +349,7 @@ gen/struct/create = 0 [about/active] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion gen/struct/field = active description = Show screen @@ -368,7 +368,7 @@ gen/struct/field = off_time [about/showinvisible] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion gen/struct/field = show_invisible ;SMP-CPU @@ -384,7 +384,7 @@ gen/struct/create = 0 [smpcpu/active] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion gen/struct/field = active description = Show screen @@ -403,7 +403,7 @@ gen/struct/field = off_time [smpcpu/showinvisible] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion gen/struct/field = show_invisible ;OldTime @@ -419,7 +419,7 @@ gen/struct/create = 0 [oldtime/active] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion gen/struct/field = active description = Show screen @@ -438,13 +438,13 @@ gen/struct/field = off_time [oldtime/showinvisible] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion gen/struct/field = show_invisible [oldtime/showtitle] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion description = "Display the title bar in two-line mode. Note that with four lines or more the title is always shown. [default: true; legal: true, false]" gen/struct/field/ignore = 1 @@ -476,7 +476,7 @@ gen/struct/create = 0 [bigclock/active] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion gen/struct/field = active description = Show screen @@ -495,13 +495,13 @@ gen/struct/field = off_time [bigclock/showinvisible] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion gen/struct/field = show_invisible [bigclock/showsecs] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion description = Show seconds gen/struct/field/ignore = 1 @@ -518,7 +518,7 @@ gen/struct/create = 0 [battery/active] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion gen/struct/field = active description = Show screen @@ -537,7 +537,7 @@ gen/struct/field = off_time [battery/showinvisible] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion gen/struct/field = show_invisible ;Uptime @@ -553,7 +553,7 @@ gen/struct/create = 0 [uptime/active] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion gen/struct/field = active description = Show screen @@ -572,7 +572,7 @@ gen/struct/field = off_time [uptime/showinvisible] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion gen/struct/field = show_invisible ;CPUGraph @@ -588,7 +588,7 @@ gen/struct/create = 0 [cpugraph/active] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion gen/struct/field = active description = Show screen @@ -607,7 +607,7 @@ gen/struct/field = off_time [cpugraph/showinvisible] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion gen/struct/field = show_invisible ;ProcSize @@ -623,7 +623,7 @@ gen/struct/create = 0 [procsize/active] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion gen/struct/field = active description = Show screen @@ -642,7 +642,7 @@ gen/struct/field = off_time [procsize/showinvisible] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion gen/struct/field = show_invisible ;Disk @@ -658,7 +658,7 @@ gen/struct/create = 0 [disk/active] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion gen/struct/field = active description = Show screen @@ -677,7 +677,7 @@ gen/struct/field = off_time [disk/showinvisible] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion gen/struct/field = show_invisible ;MiniClock @@ -693,7 +693,7 @@ gen/struct/create = 0 [miniclock/active] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion gen/struct/field = active description = Show screen @@ -712,7 +712,7 @@ gen/struct/field = off_time [miniclock/showinvisible] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion gen/struct/field = show_invisible [miniclock/timeformat] diff --git a/clients/lcdvc/specification/lcdvc-spec.ini b/clients/lcdvc/specification/lcdvc-spec.ini index f5831051..9913b731 100644 --- a/clients/lcdvc/specification/lcdvc-spec.ini +++ b/clients/lcdvc/specification/lcdvc-spec.ini @@ -1,7 +1,6 @@ [] mountpoint = lcdvc.conf -;infos/plugins = dump validation tpoe range ipaddr path -infos/plugin = ini validation type +infos/plugins = ini type range network path [/lcdvc/address] check/ipaddr = @@ -16,6 +15,7 @@ opt/long=address check/ipaddr = type = unsigned_short check/type = unsigned_short +check/port = default = 13666 description = Port to attach to LCDd server opt=p @@ -33,7 +33,7 @@ opt/long=report-level [/lcdvc/reporttosyslog] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Should we report to syslog instead of stderr? opt=s opt/long=report-to-syslog @@ -66,21 +66,21 @@ description = "Key to move the visible area of the screen right" [/lcdvc/vcsdevice] type = string check/type = string -;check/path = +check/path = default = /dev/vcs description = "vcs device to use" [/lcdvc/vcsadevice] type = string check/type = string -;check/path = +check/path = default = /dev/vcsa description = "vcsa device to use" [/lcdvc/foreground] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = "whether to run in foreground" opt=f opt/long=foreground @@ -89,6 +89,6 @@ opt/arg=none [/lcdvc/pidfile] type = string check/type = string -;check/path = ; does not have to exist +;check/path = ; TODO (elektra): does not have to exist default = /var/run/lcdvc.pid description = "PidFile location when running as daemon" \ No newline at end of file diff --git a/server/specification/LCDd-spec.ini b/server/specification/LCDd-spec.ini index 650fb897..2bb1f3c3 100644 --- a/server/specification/LCDd-spec.ini +++ b/server/specification/LCDd-spec.ini @@ -1,6 +1,6 @@ [] mountpoint = LCDd.conf -infos/plugins = ini validation type hexnumber ; range ipaddr path network +infos/plugins = ini type reference range ; hexnumber network path ; TODO (elektra): Until the max plugin error is not fixed, some specifications will be left commented out ; TODO (elektra): sizes width/height as separate keys @@ -13,9 +13,7 @@ infos/plugins = ini validation type hexnumber ; range ipaddr path network [server/driverpath] type = string check/type = string -check/validation = .*[\/]$ -check/validation/match = LINE -check/validation/message = The path has to contain a backslack (/) at the end +; check/path = ; TODO (elektra): too many plugins default = server/drivers/ description = Select the LCD size @@ -86,7 +84,7 @@ default = "" [server/bind] type = string -;check/ipaddr = +; check/ipaddr = ; TODO (elektra): too many plugins check/type = string default = 127.0.0.1 description = Tells the driver to bind to the given interface @@ -95,7 +93,8 @@ opt/long = address [server/port] type = unsigned_short -;check/port/listen = +; check/port = ; TODO (elektra): too many plugins +; check/port/listen = ; TODO (elektra): too many plugins check/type = unsigned_short default = 13666 description = Listen on this specified port. [default: 13666] @@ -114,7 +113,7 @@ opt/long = report-level [server/reporttosyslog] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Should we report to syslog instead of stderr? opt = s opt/long = report-to-syslog @@ -131,7 +130,7 @@ opt/long = user [server/foreground] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = The server will stay in the foreground if set to yes opt = f opt/long = foreground @@ -152,9 +151,7 @@ description = "GoodBye message: each entry represents a display line" [server/frameinterval] type = unsigned_long check/type = unsigned_long -check/validation = [1-9]\d* -check/validation/match = LINE -check/validation/message = FrameInterval must be a positive number +; check/range = 1- ; TODO (elektra): open ranges default = 125000 description = "Sets the interval in microseconds for updating the display [default: 125000 meaning 8Hz]" @@ -170,7 +167,7 @@ opt/long = wait-time [server/autorotate] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion description = If set to no, LCDd will start with screen rotation disabled. This has the\ same effect as if the ToggleRotateKey had been pressed. Rotation will start\ if the ToggleRotateKey is pressed. Note that this setting does not turn off\ @@ -272,7 +269,7 @@ Assign the key string returned by the driver to the ...Key setting." [menu/permissivegoto] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = If true the server allows transitions between different client`s menus [menu/menukey] @@ -341,7 +338,7 @@ description = name of the shared library to load (without prefix and extension) [bayrad/#/device] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = /dev/lcd description = Select the output device to use @@ -397,13 +394,13 @@ switched off in case LCDd is inactive [cfontz/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [cfontz/#/device] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = /dev/lcd description = Select the output device to use @@ -426,13 +423,13 @@ description = Set the communication speed [cfontz/#/newfirmware] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = "Set the firmware version (New means >= 2.0)" [cfontz/#/usb] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = "Is this driver using USB?" ;CFontzPacket @@ -480,7 +477,7 @@ switched off in case LCDd is inactive [cfontzpacket/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [cfontzpacket/#/model] @@ -498,20 +495,20 @@ description = Select the LCD model [cfontzpacket/#/device] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = /dev/lcd ;description = Select the output device to use [cfontzpacket/#/usb] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Enable the USB flag if the device is connected to an USB port. For serial ports leave it disabled. [cfontzpacket/#/oldfirmware] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Very old 633 firmware versions do not support partial screen updates using\ 'Send Data to LCD' command (31). For those devices it may be necessary to\ enable this flag @@ -611,31 +608,25 @@ description = display size [curses/#/topleftx] type = unsigned_short check/type = unsigned_short -check/validation = ([1-9]+[0-9]*) -check/validation/match = LINE -check/validation/message = Must be a positive number default = 7 description = What position (X,Y) to start the left top corner at... [curses/#/toplefty] type = unsigned_short check/type = unsigned_short -check/validation = ([1-9]+[0-9]*) -check/validation/match = LINE -check/validation/message = Must be a positive number default = 7 description = What position (X,Y) to start the left top corner at... [curses/#/useacs] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = use ASC symbols for icons & bars [curses/#/drawborder] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion description = draw Border ;CwLnx @@ -671,7 +662,7 @@ description = Select the LCD model [cwlnx/#/device] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = /dev/lcd description = Select the output device to use @@ -694,7 +685,7 @@ description = Set the communication speed [cwlnx/#/keypad] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion description = If you have a keypad connected. Keypad layout is currently not configureable from the config file. [cwlnx/#/keymap_a] @@ -773,7 +764,7 @@ standard keypad." [cwlnx/#/keypad_test_mode] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = permits one to test keypad assignment ;ea65 @@ -823,7 +814,7 @@ description = OffBrightness is the the value used for the 'backlight off' state [ea65/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this ;EyeboxOne @@ -867,13 +858,13 @@ check/range = 0-1000 [eyeboxone/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [eyeboxone/#/device] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = /dev/ttyS1 description = Select the output device to use @@ -889,13 +880,13 @@ description = Set the display size [eyeboxone/#/backlight] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion description = Switch on the backlight? [eyeboxone/#/cursor] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Switch on the cursor? [eyeboxone/#/speed] @@ -939,7 +930,7 @@ description = "Enter Key is a \r character, so it's hardcoded in the driver" [eyeboxone/#/keypad_test_mode] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = "You can find out which key of your display sends which character by setting keypad_test_mode to yes and running LCDd. LCDd will output all characters it receives. @@ -1006,7 +997,7 @@ check/range = 0-1000 [g15/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [g15/#/size] @@ -1059,7 +1050,7 @@ check/range = 0-1000 [glcd/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [glcd/#/connectiontype] @@ -1100,14 +1091,14 @@ default 6x8 cell is used. [glcd/#/useft2] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion description = If LCDproc has been compiled with FreeType 2 support this option can be used\ to turn if off intentionally. [glcd/#/normal_font] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = /usr/local/lib/X11/fonts/TTF/andalemo.ttf description = Path to font file to use for FreeType rendering. This font must be monospace\ and should contain some special Unicode characters like arrows (Andale Mono\ @@ -1116,7 +1107,7 @@ is recommended and can be fetched at http://corefonts.sf.net). [glcd/#/fonthasicons] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion description = Some fonts miss the Unicode characters used to represent icons. In this case\ the built-in 5x8 font can used if this option is turned off. @@ -1188,14 +1179,14 @@ description = Parallel port to use [glcd/#/bidirectional] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion description = Use LPT port in bi-directional mode. This should work on most LPT port\ and is required for proper timing! [glcd/#/delaybus] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Insert additional delays into reads / writes. [glcd/#/serdisp_name] @@ -1208,7 +1199,7 @@ serdisplib documentation for details. [glcd/#/serdisp_device] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = /dev/ppi0 description = The display device to use, e.g. serraw:/dev/ttyS0,\ parport:/dev/parport0 or USB:07c0/1501 @@ -1259,31 +1250,26 @@ description = The color of the backlight as full brightness. [glcd/#/x11_border] type = unsigned_long check/type = unsigned_long -check/validation = ^([1-9]\d*|0)$ -check/validation/match = LINE -check/validation/message = Must be a positive number default = 20 description = Adds a border (empty space) around the LCD portion of X11 window. [glcd/#/x11_inverted] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Inverts the pixels. [glcd/#/picolcdgfx_keytimeout] -type = string -check/type = string -check/validation = ([1-9][0-9]*) -check/validation/match = LINE -check/validation/message = Number must be any positive integer >0 +type = unsigned_long +check/type = unsigned_long +; check/range = 1- ; TODO (elektra): open ranges default = 125 description = Time in ms for usb_read to wait on a key press. [glcd/#/picolcdgfx_inverted] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Inverts the pixels. ;glcdlib @@ -1327,7 +1313,7 @@ check/range = 0-1000 [glcdlib/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [glcdlib/#/driver] @@ -1351,7 +1337,7 @@ description = "character encoding to use" [glcdlib/#/useft2] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion description = "no=use graphlcd bitmap fonts (they have only one size / font file) yes=use fonts supported by FreeType2 (needs Freetype2 support in libglcdprocdriver and its dependants)" @@ -1371,7 +1357,7 @@ and the minimum available font face size in pixels, then [glcdlib/#/fontfile] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = /usr/share/fonts/corefonts/courbd.ttf description = "path to font file to use" @@ -1387,47 +1373,41 @@ description = "path to font file to use" [glcdlib/#/backlight] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion [glcdlib/#/upsidedown] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion [glcdlib/#/invert] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion [glcdlib/#/showdebugframe] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion [glcdlib/#/showbigborder] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion [glcdlib/#/showthinborder] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion [glcdlib/#/pixelshiftx] -type = short -check/type = short -check/validation = ([0-9]+) -check/validation/match = LINE -check/validation/message = Must be a positive number +type = unsigned_short +check/type = unsigned_short default = 0 [glcdlib/#/pixelshifty] -type = short -check/type = short -check/validation = ([0-9]+) -check/validation/match = LINE -check/validation/message = Must be a positive number +type = unsigned_short +check/type = unsigned_short default = 2 ;glk @@ -1459,7 +1439,7 @@ description = Set the initial contrast [glk/#/device] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = /dev/lcd description = "select the serial device to use" @@ -1512,7 +1492,7 @@ check/range = 0-1000 [hd44780/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [hd44780/#/connectiontype] @@ -1589,7 +1569,7 @@ description = I/O address of the LPT port. Usual values are: 0x278, 0x378 and 0x [hd44780/#/device] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = "" description = "Device of the serial, I2C, or SPI interface (default is connectiontype dependent)" @@ -1602,7 +1582,7 @@ description = "Bitrate of the serial port (0 for interface default)" [hd44780/#/keypad] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = "If you have a keypad connected. You may also need to configure the keypad layout further on in this file." @@ -1677,14 +1657,14 @@ Up to 4 bytes can be encoded, as integer number in big-endian order." [hd44780/#/outputport] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = If you have the additional output port ("bargraph") and you want to\ be able to control it with the lcdproc OUTPUT command [hd44780/#/lastline] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion description = "Specifies if the last line is pixel addressable (yes) or it controls an underline effect (no)." @@ -1711,7 +1691,7 @@ Vspan=2,2 means both displays have 2 lines." [hd44780/#/extendedmode] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = "If you have an HD66712, a KS0073 or another controller with 'extended mode', set this flag to get into 4-line mode. On displays with just two lines, do not set this flag. @@ -1788,7 +1768,7 @@ full screen refresh seconds." [hd44780/#/delaybus] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion description = "You can reduce the inserted delays by setting this to false. On fast PCs it is possible your LCD does not respond correctly." @@ -1826,56 +1806,56 @@ gen/struct/field/ignore = 1 [hd44780/#/i2c/backlightinvert] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = "default is meant for the data port of PCF8574" ; TODO gen/struct/field = i2cBacklightInvert [hd44780/#/i2c/line_rs] type = long check/type = long -default = 16 ; TODO (elektra): fix hex? +default = 16 ; TODO (elektra): default values conversion hex? description = "default is meant for the data port of PCF8574" ; TODO [hd44780/#/i2c/line_rw] type = long check/type = long -default = 32 ; TODO (elektra): fix hex? +default = 32 ; TODO (elektra): default values conversion hex? description = "default is meant for the data port of PCF8574" ; TODO [hd44780/#/i2c/line_en] type = long check/type = long -default = 64 ; TODO (elektra): fix hex? +default = 64 ; TODO (elektra): default values conversion hex? description = "default is meant for the data port of PCF8574" ; TODO [hd44780/#/i2c/line_bl] type = long check/type = long -default = 128 ; TODO (elektra): fix hex? +default = 128 ; TODO (elektra): default values conversion hex? description = "default is meant for the data port of PCF8574" ; TODO [hd44780/#/i2c/line_d4] type = long check/type = long -default = 1 ; TODO (elektra): fix hex? +default = 1 ; TODO (elektra): default values conversion hex? description = "default is meant for the data port of PCF8574" ; TODO [hd44780/#/i2c/line_d5] type = long check/type = long -default = 2 ; TODO (elektra): fix hex? +default = 2 ; TODO (elektra): default values conversion hex? description = "default is meant for the data port of PCF8574" ; TODO [hd44780/#/i2c/line_d6] type = long check/type = long -default = 4 ; TODO (elektra): fix hex? +default = 4 ; TODO (elektra): default values conversion hex? description = "default is meant for the data port of PCF8574" ; TODO [hd44780/#/i2c/line_d7] type = long check/type = long -default = 8 ; TODO (elektra): fix hex? +default = 8 ; TODO (elektra): default values conversion hex? description = "default is meant for the data port of PCF8574" ; TODO [hd44780/#/spi/backlightdevice] @@ -1900,13 +1880,13 @@ description = "used by ftdi" [hd44780/#/usb/vendorid] type = unsigned_long check/type = unsigned_long -default = 0 ; TODO (elektra): fix hex? +default = 0 ; TODO (elektra): default values conversion hex? description = "used by uss720 and ftdi; set to 0 to use connectiontype dependent default" [hd44780/#/usb/productid] type = unsigned_long check/type = unsigned_long -default = 0 ; TODO (elektra): fix hex? +default = 0 ; TODO (elektra): default values conversion hex? description = "used by uss720 and ftdi; set to 0 to use connectiontype dependent default" [hd44780/#/ftdi/mode] @@ -1919,25 +1899,25 @@ description = "" ; TODO [hd44780/#/ftdi/line_rs] type = long check/type = long -default = 1 ; TODO (elektra): fix hex? +default = 1 ; TODO (elektra): default values conversion hex? description = "" ; TODO [hd44780/#/ftdi/line_rw] type = long check/type = long -default = 2 ; TODO (elektra): fix hex? +default = 2 ; TODO (elektra): default values conversion hex? description = "" ; TODO [hd44780/#/ftdi/line_en] type = long check/type = long -default = 4 ; TODO (elektra): fix hex? +default = 4 ; TODO (elektra): default values conversion hex? description = "" ; TODO [hd44780/#/ftdi/line_backlight] type = long check/type = long -default = 8 ; TODO (elektra): fix hex? +default = 8 ; TODO (elektra): default values conversion hex? description = "" ; TODO [hd44780/#/gpio/pin_en] @@ -1945,63 +1925,63 @@ type = long check/type = long default = -1 description = "required if raspberrypi or gpio is used; -on raspberrypi -1 triggers the default" ; TODO +on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default [hd44780/#/gpio/pin_rs] type = long check/type = long default = -1 description = "required if raspberrypi or gpio is used; -on raspberrypi -1 triggers the default" ; TODO +on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default [hd44780/#/gpio/pin_rw] type = long check/type = long default = -1 description = "required if raspberrypi or gpio is used; -on raspberrypi -1 triggers the default" ; TODO +on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default [hd44780/#/gpio/pin_d7] type = long check/type = long default = -1 description = "required if raspberrypi or gpio is used; -on raspberrypi -1 triggers the default" ; TODO +on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default [hd44780/#/gpio/pin_d6] type = long check/type = long default = -1 description = "required if raspberrypi or gpio is used; -on raspberrypi -1 triggers the default" ; TODO +on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default [hd44780/#/gpio/pin_d5] type = long check/type = long default = -1 description = "required if raspberrypi or gpio is used; -on raspberrypi -1 triggers the default" ; TODO +on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default [hd44780/#/gpio/pin_d4] type = long check/type = long default = -1 description = "required if raspberrypi or gpio is used; -on raspberrypi -1 triggers the default" ; TODO +on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default [hd44780/#/gpio/pin_en2] type = long check/type = long default = -1 description = "required if raspberrypi or gpio is used and 2 controllers are connected; -on raspberrypi -1 triggers the default" ; TODO +on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default [hd44780/#/gpio/pin_bl] type = long check/type = long default = -1 description = "required if raspberrypi or gpio is used and backlight (external) is enabled; -on raspberrypi -1 triggers the default" ; TODO +on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default ;icp_a106 @@ -2045,13 +2025,13 @@ check/range = 0-1000 [icp_a106/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [icp_a106/#/device] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = /dev/lcd description = "Device of the serial, I2C, or SPI interface" @@ -2105,7 +2085,7 @@ check/range = 0-1000 [iowarrior/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [iowarrior/#/size] @@ -2127,14 +2107,14 @@ description = serial number. Must be exactly as listed by usbview\ [iowarrior/#/extendedmode] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = "If you have an HD66712, a KS0073 or another 'almost HD44780-compatible', set this flag to get into extended mode (4-line linear)." [iowarrior/#/lastline] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion description = "Specifies if the last line is pixel addressable (yes) or it controls an underline effect (no)." @@ -2179,13 +2159,13 @@ check/range = 0-1000 [imon/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [imon/#/device] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = /dev/lcd0 description = "select the device to use" @@ -2255,7 +2235,7 @@ check/range = 0-1000 [imonlcd/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [imonlcd/#/protocol] @@ -2287,7 +2267,7 @@ description = "Set the exit behavior [imonlcd/#/device] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = /dev/lcd0 description = "select the output device to use" @@ -2303,7 +2283,7 @@ description = Specify the size of the display in pixels [imonlcd/#/backlight] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion description = "Set the backlight state" [imonlcd/#/discmode] @@ -2359,20 +2339,20 @@ check/range = 0-1000 [irman/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [irman/#/device] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = /dev/irman description = "select the device to use" [irman/#/config] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = /etc/irman.cfg description = "Select the configuration file to use" @@ -2417,13 +2397,13 @@ check/range = 0-1000 [irtrans/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [irtrans/#/backlight] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = "Does the device have a backlight?" [irtrans/#/hostname] @@ -2482,13 +2462,13 @@ check/range = 0-1000 [joy/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [joy/#/device] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = /dev/js0 description = "Select the input device to use" @@ -2556,13 +2536,13 @@ check/range = 0-255 [lb216/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [lb216/#/device] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = /dev/lcd description = "Select the input device to use" @@ -2595,7 +2575,7 @@ description = name of the shared library to load (without prefix and extension) [lcdm001/#/device] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = /dev/ttyS1 description = "select the device to use" @@ -2693,13 +2673,13 @@ check/range = 0-1000 [lcterm/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [lcterm/#/device] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = /dev/ttyS1 description = "select the device to use" @@ -2734,7 +2714,7 @@ description = name of the shared library to load (without prefix and extension) [linux_input/#/device] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = /dev/input/event0 description = "select the device to use" @@ -2804,13 +2784,13 @@ check/range = 0-1000 [lirc/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [lirc/#/lircrc] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = ~/.lircrc description = "select the device to use" @@ -2863,7 +2843,7 @@ check/range = 0-1000 [lis/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [lis/#/size] @@ -2896,7 +2876,7 @@ description = USB Product ID. Change only if testing a compatible device. [lis/#/lastline] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion description = "Specifies if the last line is pixel addressable (yes) or it only controls an underline effect (no)" @@ -2944,13 +2924,13 @@ switched off in case LCDd is inactive" [md8800/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [md8800/#/device] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = /dev/ttyS1 description = "select the device to use" @@ -3005,7 +2985,7 @@ check/range = 0-1000 [mdm166a/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [mdm166a/#/clock] @@ -3021,13 +3001,13 @@ description = "Show self-running clock after LCDd shutdown" [mdm166a/#/dimming] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = "Dim display, no dimming gives full brightness" [mdm166a/#/offdimming] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = "Dim display in case LCDd is inactive" ;ms6931 @@ -3071,13 +3051,13 @@ check/range = 0-1000 [ms6931/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [ms6931/#/device] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = /dev/ttyS1 description = "select the device to use" @@ -3131,13 +3111,13 @@ check/range = 0-1000 [mtc_s16209x/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [mtc_s16209x/#/device] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = /dev/lcd description = "Select the output device to use" @@ -3187,7 +3167,7 @@ switched off in case LCDd is inactive" [mtxorb/#/device] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = /dev/ttyS0 description = "Select the output device to use" @@ -3215,7 +3195,7 @@ description = "Set the display type" type = boolean check/type = boolean gen/struct/field = hasAdjustableBacklight -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = "Some old displays do not have an adjustable backlight but only can switch the backlight on/off. If you experience randomly appearing block characters, try setting this to false." @@ -3230,7 +3210,7 @@ description = Set the communication [mtxorb/#/keypad_test_mode] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = permits one to test keypad assignment [mtxorb/#/keymap_a] @@ -3310,22 +3290,20 @@ check/range = 0-1000 [mx5000/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [mx5000/#/device] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = /dev/hiddev0 description = "Select the output device to use" [mx5000/#/waitafterrefresh] type = unsigned_long check/type = unsigned_long -check/validation = [1-9]\d* -check/validation/match = LINE -check/validation/message = WaitAfterRefresh must be a positive number +; check/range = 1- ; TODO (elektra): open ranges default = 1000 description = Time to wait in ms after the refresh screen has been sent @@ -3373,13 +3351,13 @@ switched off in case LCDd is inactive" [noritakevfd/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [noritakevfd/#/device] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = /dev/lcd description = "device where the VFD is. Usual values are /dev/ttyS0 and /dev/ttyS1" @@ -3448,13 +3426,13 @@ check/range = 0-1000 [olimex_mod_lcd1x9/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [olimex_mod_lcd1x9/#/device] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = /dev/i2c-0 description = "device file of the i2c controller" @@ -3503,7 +3481,7 @@ Works only with the 20x4 device." [picolcd/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [picolcd/#/keytimeout] @@ -3543,25 +3521,25 @@ KeyRepeatDelay is not zero." [picolcd/#/backlight] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion description = Sets the initial state of the backlight upon start-up. [picolcd/#/linklights] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Link the key lights to the backlight? [picolcd/#/keylights] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion description = Light the keys? [picolcd/#/key0light] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion description = "If Keylights is on, the you can unlight specific keys below: Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. There is no LED for the +/- keys. This is a handy way to indicate to users @@ -3570,7 +3548,7 @@ which keys are disabled." [picolcd/#/key1light] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion description = "If Keylights is on, the you can unlight specific keys below: Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. There is no LED for the +/- keys. This is a handy way to indicate to users @@ -3579,7 +3557,7 @@ which keys are disabled." [picolcd/#/key2light] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion description = "If Keylights is on, the you can unlight specific keys below: Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. There is no LED for the +/- keys. This is a handy way to indicate to users @@ -3588,7 +3566,7 @@ which keys are disabled." [picolcd/#/key3light] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion description = "If Keylights is on, the you can unlight specific keys below: Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. There is no LED for the +/- keys. This is a handy way to indicate to users @@ -3597,7 +3575,7 @@ which keys are disabled." [picolcd/#/key4light] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion description = "If Keylights is on, the you can unlight specific keys below: Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. There is no LED for the +/- keys. This is a handy way to indicate to users @@ -3606,14 +3584,14 @@ which keys are disabled." [picolcd/#/key5light] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion description = "If Keylights is on, the you can unlight specific keys below: Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. There is no LED for the +/- keys. This is a handy way to indicate to users which keys are disabled." [picolcd/#/lirchost] -;check/ipaddr = +; check/ipaddr = ; TODO (elektra): too many plugins type = string check/type = string default = 127.0.0.1 @@ -3621,8 +3599,7 @@ description = Host name or IP address of the LIRC instance that is to receive IR If not set, or set to an empty value, IR support is disabled. [picolcd/#/lircport] -; PORT -check/; PORT +; check/port = ; TODO (elektra): too many plugins type = unsigned_short default = 8765 description = UDP port on which LIRC is listening @@ -3630,7 +3607,7 @@ description = UDP port on which LIRC is listening [picolcd/#/lirctime_us] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = "UDP data time unit for LIRC On: times sent in microseconds (requires LIRC UDP driver that accepts this). Off: times sent in 'jiffies' (1/16384s) (supported by standard LIRC UDP driver)." @@ -3670,7 +3647,7 @@ description = name of the shared library to load (without prefix and extension) [pyramid/#/device] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = /dev/lcd description = "device to connect to" @@ -3715,13 +3692,13 @@ check/range = 0-1000 [rawserial/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [rawserial/#/device] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = /dev/cuaU0 description = "Select the output device to use" @@ -3791,7 +3768,7 @@ check/range = 0-1000 [sed1330/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [sed1330/#/port] @@ -3876,7 +3853,7 @@ check/range = 0-1000 [sed1520/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [sed1520/#/port] @@ -3909,14 +3886,14 @@ zero slows down each write by one microsecond." [sed1520/#/haveinverter] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion description = "The original wiring used an inverter to drive the control lines. If you do not use an inverter set haveInverter to no." [sed1520/#/invertedmapping] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = "On some displays column data in memory is mapped to segment lines from right to left. This is called inverted mapping (not to be confused with 'haveInverter' from above)." @@ -3924,7 +3901,7 @@ to left. This is called inverted mapping (not to be confused with [sed1520/#/usehardreset] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = "At least one display is reported (Everbouquet MG1203D) that requires sending three times 0xFF before a reset during initialization." @@ -3969,13 +3946,13 @@ check/range = 0-1000 [serialpos/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [serialpos/#/device] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = /dev/ttyS0 description = "Device to use in serial mode" @@ -4077,7 +4054,7 @@ switched off in case LCDd is inactive [serialvfd/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [serialvfd/#/type] @@ -4128,16 +4105,13 @@ description = "Specifies the displaytype.[default: 0] [serialvfd/#/use_parallel] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = "'no' if display connected serial, 'yes' if connected parallel. I.e. serial by default" [serialvfd/#/custom-characters] type = unsigned_long check/type = unsigned_long -check/validation = ^([1-9]\d*|0)$ -check/validation/match = LINE -check/validation/message = Must be any positive number including 0 default = 0 description = "Number of Custom-Characters. default is display type dependent" @@ -4160,7 +4134,7 @@ description = Set parallel port timing delay (us). Used in parallel mode only. [serialvfd/#/device] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = /dev/ttyS1 description = "Device to use in serial mode. Usual values are /dev/ttyS0 and /dev/ttyS1" @@ -4183,7 +4157,7 @@ description = set the serial port speed [serialvfd/#/iso_8859_1] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion description = "enable ISO 8859 1 compatibility" ;stv5730 @@ -4227,7 +4201,7 @@ check/range = 0-1000 [stv5730/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [stv5730/#/port] @@ -4283,13 +4257,13 @@ switched off in case LCDd is inactive" [sureelec/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [sureelec/#/device] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = /dev/ttyUSB0 description = "Port the device is connected to (by default first USB serial port)" @@ -4351,7 +4325,7 @@ check/range = 1-1000 [svga/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [svga/#/mode] @@ -4411,7 +4385,7 @@ check/range = 0-1000 [text/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [text/#/size] @@ -4464,7 +4438,7 @@ check/range = 0-1000 [t6963/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [t6963/#/size] @@ -4488,20 +4462,20 @@ description = Parallel port to use [t6963/#/bidirectional] type = boolean check/type = boolean -default = 1 ; TODO (elektra): fix +default = 1 ; TODO (elektra): default values conversion description = "Use LPT port in bi-directional mode. This should work on most LPT port and is required for proper timing!" [t6963/#/delaybus] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = "Insert additional delays into reads / writes." [t6963/#/cleargraphic] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = "Clear graphic memory on start-up." ;tyan @@ -4545,13 +4519,13 @@ check/range = 0-1000 [tyan/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [tyan/#/device] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = /dev/lcd description = "Select the output device to use" @@ -4613,7 +4587,7 @@ check/range = 0-1000 [ula200/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [ula200/#/size] @@ -4739,13 +4713,13 @@ check/range = 0-1000 [sli/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [sli/#/device] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = /dev/lcd description = "Select the output device to use" @@ -4797,13 +4771,13 @@ check/range = 0-1000 [vlsys_m428/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [vlsys_m428/#/device] type = string check/type = string -;check/path = +; check/path = ; TODO (elektra): too many plugins default = /dev/ttyUSB0 description = "Select the output device to use" @@ -4910,7 +4884,7 @@ check/range = 0-1000 [yard2lcd/#/reboot] type = boolean check/type = boolean -default = 0 ; TODO (elektra): fix +default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this [yard2lcd/#/size] From 48ba852892384c2afd5f2e9af804d75bafeed819 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Sat, 8 Jun 2019 18:22:00 +0200 Subject: [PATCH 36/72] server: move unused spec parts to separate file --- server/specification/LCDd-spec.ini | 4358 +++-------------- server/specification/LCDd-spec_notupdated.ini | 3109 ++++++++++++ 2 files changed, 3731 insertions(+), 3736 deletions(-) create mode 100644 server/specification/LCDd-spec_notupdated.ini diff --git a/server/specification/LCDd-spec.ini b/server/specification/LCDd-spec.ini index 2bb1f3c3..726993ff 100644 --- a/server/specification/LCDd-spec.ini +++ b/server/specification/LCDd-spec.ini @@ -767,4019 +767,958 @@ check/type = boolean default = 0 ; TODO (elektra): default values conversion description = permits one to test keypad assignment -;ea65 +;glk ;================================================== -[ea65] +[glk] default = "" array = #0 -[ea65/#] +[glk/#] type = struct check/type = any default = "" -gen/struct/type = Ea65DriverConfig +gen/struct/type = GlkDriverConfig gen/struct/alloc = 0 -description = Configuration for a ea65 driver. +description = Configuration for a glk driver. -[ea65/#/file] +[glk/#/file] type = string -default = "ea65" +default = "glk" description = name of the shared library to load (without prefix and extension) -[ea65/#/contrast] +[glk/#/contrast] type = unsigned_short check/type = unsigned_short -default = 1000 +default = 500 check/range = 0-1000 description = Set the initial contrast -[ea65/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 500 -check/range = 0-1000 -description = "As the VFD is self luminescent we don't have a backlight -But we can use the backlight functions to control the front LEDs -Brightness 0 to 299 -> LEDs off -Brightness 300 to 699 -> LEDs half bright -Brightness 700 to 1000 -> LEDs full bright" +[glk/#/device] +type = string +check/type = string +; check/path = ; TODO (elektra): too many plugins +default = /dev/lcd +description = "select the serial device to use" -[ea65/#/offbrightness] +[glk/#/speed] type = unsigned_short check/type = unsigned_short -default = 0 -check/range = 0-1000 -description = OffBrightness is the the value used for the 'backlight off' state - -[ea65/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this +check/range = 9600, 19200, 38400, 57600, 115200 +default = 19200 +description = set the serial port speed -;EyeboxOne +;hd44780 ;================================================== -[eyeboxone] +[hd44780] default = "" array = #0 -[eyeboxone/#] +[hd44780/#] type = struct check/type = any default = "" -gen/struct/type = EyeboxOneDriverConfig +gen/struct/type = Hd44780DriverConfig gen/struct/alloc = 0 -description = Configuration for a EyeboxOne driver. +gen/struct/depth = 2 +description = Configuration for a hd44780 driver. -[eyeboxone/#/file] +[hd44780/#/file] type = string -default = "EyeboxOne" +default = "hd44780" description = name of the shared library to load (without prefix and extension) -[eyeboxone/#/contrast] +[hd44780/#/contrast] type = unsigned_short check/type = unsigned_short -default = 1000 +default = 800 check/range = 0-1000 description = Set the initial contrast -[eyeboxone/#/brightness] +[hd44780/#/brightness] type = unsigned_short check/type = unsigned_short -default = 1000 +default = 800 check/range = 0-1000 -[eyeboxone/#/offbrightness] +[hd44780/#/offbrightness] type = unsigned_short check/type = unsigned_short -default = 0 +default = 300 check/range = 0-1000 -[eyeboxone/#/reboot] +[hd44780/#/reboot] type = boolean check/type = boolean default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this -[eyeboxone/#/device] +[hd44780/#/connectiontype] +type = enum +check/type = enum +check/enum = #_27 +check/enum/#0 = 4bit +check/enum/#1 = 8bit +check/enum/#2 = winamp +check/enum/#3 = lcm162 +check/enum/#4 = serialLpt +check/enum/#5 = picanlcd +check/enum/#6 = lcdserializer +check/enum/#7 = los-panel +check/enum/#8 = vdr-lcd +check/enum/#9 = vdr-wakeup +check/enum/#_10 = ezio +check/enum/#_11 = pertelian +check/enum/#_12 = lis2 +check/enum/#_13 = mplay +check/enum/#_14 = usblcd +check/enum/#_15 = bwctusb +check/enum/#_16 = lcd2usb +check/enum/#_17 = usbtiny +check/enum/#_18 = uss720 +check/enum/#_19 = USB-4-all +check/enum/#_20 = ftdi +check/enum/#_21 = i2c +check/enum/#_22 = piplate +check/enum/#_23 = spi +check/enum/#_24 = pifacecad +check/enum/#_25 = ethlcd +check/enum/#_26 = raspberrypi +check/enum/#_27 = gpio +gen/enum/type = Hd44780ConnectionType +default = 4bit +description = "Select what type of connection. See documentation for available types: + https://github.com/lcdproc/lcdproc/blob/master/docs/lcdproc-user/drivers/hd44780.docbook" + +[hd44780/#/model] +type = enum +check/type = enum +check/enum = #7 +check/enum/#0 = default +check/enum/#1 = standard +check/enum/#2 = extended +check/enum/#3 = ks0073 +check/enum/#4 = hd66710 +check/enum/#5 = winstar_oled +check/enum/#6 = weh00xxyya +check/enum/#7 = pt6314_vfd +default = standard +description = "Select model if have non-standard one which require extra initialization or handling or + just want extra features it offers. + Available: standard (default), extended, winstar_oled, pt6314_vfd + - standard is default, use for LCDs not mentioned below. + - extended, hd66712, ks0073: allows use 4-line 'extended' mode, + same as deprecated now option ExtendedMode=yes + - winstar_oled, weh00xxyya: changes initialization for WINSTAR's WEH00xxyyA displays + and allows handling brightness + - pt6314_vfd: allows handling brightness on PTC's PT6314 VFDs + This option should be independent of connection type." + +[hd44780/#/port] type = string check/type = string -; check/path = ; TODO (elektra): too many plugins -default = /dev/ttyS1 -description = Select the output device to use +check/validation = 0x[0-9A-F]{3} +check/validation/match = LINE +check/validation/message = Port must begin with "0x", followed by 3 Hexadezimal values, eg. 0x3BC +default = 0x378 +description = I/O address of the LPT port. Usual values are: 0x278, 0x378 and 0x3BC.\ + For I2C connections this sets the slave address (usually 0x20). -[eyeboxone/#/size] +[hd44780/#/device] type = string check/type = string -check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) -check/validation/match = LINE -check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 -default = 20x4 -description = Set the display size +; check/path = ; TODO (elektra): too many plugins +default = "" +description = "Device of the serial, I2C, or SPI interface (default is connectiontype dependent)" -[eyeboxone/#/backlight] -type = boolean -check/type = boolean -default = 1 ; TODO (elektra): default values conversion -description = Switch on the backlight? +[hd44780/#/speed] +type = unsigned_long +check/type = unsigned_long +default = 0 +description = "Bitrate of the serial port (0 for interface default)" -[eyeboxone/#/cursor] +[hd44780/#/keypad] type = boolean check/type = boolean default = 0 ; TODO (elektra): default values conversion -description = Switch on the cursor? +description = "If you have a keypad connected. +You may also need to configure the keypad layout further on in this file." -[eyeboxone/#/speed] -type = unsigned_short -check/type = unsigned_short -check/range = 1200, 2400, 9600, 19200 -default = 19200 -description = Set the communication speed +[hd44780/#/backlight] +type = enum +check/type = enum +check/enum = #2 +check/enum/#0 = default +check/enum/#1 = enabled +check/enum/#2 = disabled +default = default +description = "Whether or not a switchable backlight is be used. If 'default' is chosen, +the value is model dependent. On Winstar OLED and PT6314 VFD, it is 'enabled' on other models +it is 'disabled'." -[eyeboxone/#/leftkey] -type = string -check/type = string -default = D -description = "Enter Key is a \r character, so it's hardcoded in the driver" +[hd44780/#/backlightmode] +array = +default = "" -[eyeboxone/#/rightkey] +[hd44780/#/backlightmode/#] +type = enum +check/type = enum +check/enum = #2 +check/enum/#0 = external +check/enum/#1 = internal +check/enum/#2 = internalCmds +default = internal ; TODO (elektra): should be required +description = "If the switchable backlight is enabled (see hd44780/#/backlight), this value +determines which method for turning it on/off will be used. +# +The supported methods are: +- external - use external pin or any other method defined with ConnectionType backlight + handling. +- internal - means that backlight is handled using internal commands according + to selected display model (with Model option). Depending on model, + Brightness and OffBrightness options can be taken into account. +- internalCmds - means that commands for turning on and off backlight are given + with extra options BacklightOnCmd and BacklightOffCmd, which would be treated + as catch up (last resort) for other types of displays which have similar features. +# +This array will only be taken into account, if hd44780/#/backlight is set to enabled. If it is +set to default and Winstar OLED or PT6314 VFD are used, we will always use 'internal'. +# +Multiple elements can be given, to use multiple methods." +gen/struct/field/ignore = 1 + +[hd44780/#/backlightcmdon] type = string check/type = string -default = C -description = "Enter Key is a \r character, so it's hardcoded in the driver" +check/validation = 0x[0-9A-F]{4} +check/validation/match = LINE +check/validation/message = 4 bytes can be encoded, as integer number in big-endian order (0x0000-0xFFFF) +default = 0x1223 +description = "Commands for enabling internal backlight for use with Backlight=internalCmds. +Up to 4 bytes can be encoded, as integer number in big-endian order. +# +NOTE: this is advanced option, if command contains bits other than only brighness handling, +they must be set accordingly to not disrupt display state. If for example 'FUNCTION SET' command +is used for this purpose, bits of interface length (4-bit / 8-bit) must be set according to +selected ConnectionType." -[eyeboxone/#/upkey] +[hd44780/#/backlightcmdoff] type = string check/type = string -default = A -description = "Enter Key is a \r character, so it's hardcoded in the driver" +check/validation = 0x[0-9A-F]{4} +check/validation/match = LINE +check/validation/message = 4 bytes can be encoded, as integer number in big-endian order (0x0000-0xFFFF) +default = 0x1234 +description = "Commands for disabling internal backlight for use with Backlight=internalCmds. +Up to 4 bytes can be encoded, as integer number in big-endian order." + +[hd44780/#/outputport] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = If you have the additional output port ("bargraph") and you want to\ +be able to control it with the lcdproc OUTPUT command + +[hd44780/#/lastline] +type = boolean +check/type = boolean +default = 1 ; TODO (elektra): default values conversion +description = "Specifies if the last line is pixel addressable (yes) or it controls an +underline effect (no)." -[eyeboxone/#/downkey] +[hd44780/#/size] type = string check/type = string -default = B -description = "Enter Key is a \r character, so it's hardcoded in the driver" +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 20x4 +description = Specifies the size of the LCD.\ +In case of multiple combined displays, this should be the total size. -[eyeboxone/#/escapekey] +[hd44780/#/vspan] type = string check/type = string -default = P -description = "Enter Key is a \r character, so it's hardcoded in the driver" - +default = "" +check/validation = ^([1-9][0-9]*(,[1-9][0-9]*)*)?$ +check/validation/match = LINE +check/validation/message = Declarations must look like this: 2,2 or 2,2,1 +description = "For multiple combined displays: how many lines does each display have. +Vspan=2,2 means both displays have 2 lines." -[eyeboxone/#/keypad_test_mode] +[hd44780/#/extendedmode] type = boolean check/type = boolean default = 0 ; TODO (elektra): default values conversion -description = "You can find out which key of your display sends which -character by setting keypad_test_mode to yes and running -LCDd. LCDd will output all characters it receives. -Afterwards you can modify the settings above and set -keypad_set_mode to no again." - -;futaba -;================================================== -[futaba] -default = "" -array = #0 - -[futaba/#] -type = struct -check/type = any -default = "" -gen/struct/type = FutabaDriverConfig -gen/struct/alloc = 0 -description = Configuration for a futaba driver. +description = "If you have an HD66712, a KS0073 or another controller with 'extended mode', +set this flag to get into 4-line mode. On displays with just two lines, do +not set this flag. +As an additional restriction, controllers with and without extended mode +AND 4 lines cannot be mixed for those connection types that support more +than one display! +NOTE: This option is deprecated in favour of choosing Model=extended option." -[futaba/#/file] +[hd44780/#/lineaddress] type = string -default = "futaba" -description = name of the shared library to load (without prefix and extension) - -;g15 -;================================================== -[g15] -default = "" -array = #0 - -[g15/#] -type = struct -check/type = any -default = "" -gen/struct/type = G15DriverConfig -gen/struct/alloc = 0 -description = Configuration for a g15 driver. - -[g15/#/file] -type = string -default = "g15" -description = name of the shared library to load (without prefix and extension) - -[g15/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast +check/type = string +check/validation = 0x([1-9A-F]+[0-9A-F]*) +check/validation/match = LINE +check/validation/message = Not a line Address. eg. 0x20, 0x10 +default = 0x20 +description = In extended mode, on some controllers like the ST7036 (in 3 line mode)\ +the next line in DDRAM won`t start 0x20 higher. -[g15/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 +[hd44780/#/charmap] +type = enum +check/type = enum +check/enum = #8 +check/enum/#0 = hd44780_default +check/enum/#1 = hd44780_euro +check/enum/#2 = ea_ks0073 +check/enum/#3 = sed1278f_0b +check/enum/#4 = hd44780_koi8_r +check/enum/#5 = hd44780_cp1251 +check/enum/#6 = hd44780_8859_5 +check/enum/#7 = upd16314 +check/enum/#8 = weh001602a_1 +default = hd44780_default +description = "Character map to to map ISO-8859-1 to the LCD's character set. (hd44780_koi8_r, hd44780_cp1251, hd44780_8859_5, upd16314 and weh001602a_1 +are possible if compiled with additional charmaps)" -[g15/#/offbrightness] +[hd44780/#/fontbank] type = unsigned_short check/type = unsigned_short +check/range = 0-3 default = 0 -check/range = 0-1000 - -[g15/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - -[g15/#/size] -type = string -check/type = string -check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) -check/validation/match = LINE -check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 -default = 20x5 -description = Display size (currently unused) - -;glcd -;================================================== -[glcd] -default = "" -array = #0 - -[glcd/#] -type = struct -check/type = any -default = "" -gen/struct/type = GlcdDriverConfig -gen/struct/alloc = 0 -description = Configuration for a glcd driver. - -[glcd/#/file] -type = string -default = "glcd" -description = name of the shared library to load (without prefix and extension) +description = "Font bank to be used for some displays such as the WINSTAR WEH001602A +0: English/Japanese (default) +1: Western Europe I +2: English/Rusian +3: Western Europe II" -[glcd/#/contrast] +[hd44780/#/delaymult] type = unsigned_short check/type = unsigned_short -default = 600 -check/range = 0-1000 -description = Set the initial contrast +check/range = 1, 2, 4, 8, 16 +default = 1 +description = "If your display is slow and cannot keep up with the flow of data from +LCDd, garbage can appear on the LCDd. Set this delay factor to 2 or 4 +to increase the delays." -[glcd/#/brightness] +[hd44780/#/keepalivedisplay] type = unsigned_short check/type = unsigned_short -default = 800 -check/range = 0-1000 +check/range = 0-10 +default = 0 +description = "Some displays (e.g. vdr-wakeup) need a message from the driver to that it +is still alive. When set to a value bigger then null the character in the +upper left corner is updated every seconds." -[glcd/#/offbrightness] +[hd44780/#/refreshdisplay] type = unsigned_short check/type = unsigned_short -default = 100 -check/range = 0-1000 +check/range = 0-20 +default = 0 +description = "If you experience occasional garbage on your display you can use this +option as workaround. If set to a value bigger than null it forces a +full screen refresh seconds." -[glcd/#/reboot] +[hd44780/#/delaybus] type = boolean check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this +default = 1 ; TODO (elektra): default values conversion +description = "You can reduce the inserted delays by setting this to false. +On fast PCs it is possible your LCD does not respond correctly." -[glcd/#/connectiontype] -type = enum -check/type = enum -check/enum = #6 -check/enum/#0 = t6963 -check/enum/#1 = png -check/enum/#2 = serdisplib -check/enum/#3 = glcd2usb -check/enum/#4 = x11 -check/enum/#5 = picolcdgfx -check/enum/#6 = xyz -gen/enum/type = GlcdConnectionType -default = t6963 -description = Select what type of connection. See documentation for types. - -[glcd/#/size] -type = string -check/type = string -check/validation = (640|[1-9]|[1-9][0-9]|[1-5][0-9][0-9]|6[0-3][0-9])x(480|[1-9]|[1-9][0-9]|[1-3][0-9][0-9]|4[0-7][0-9]) -check/validation/match = LINE -check/validation/message = Not a valid size declaration. legal: 1x1 - 640x480 -default = 128x64 -description = Width and height of the display in pixel. The supported sizes may depend on the ConnectionType +[hd44780/#/keydirect] +array = #5 +default = "" -[glcd/#/cellsize] +[hd44780/#/keydirect/#] type = string check/type = string -check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) -check/validation/match = LINE -check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 -default = 6x8 -description = Width and height of a character cell in pixels. This value is only used \ -the driver has been compiled with FreeType and it is enabled. Otherwise the\ -default 6x8 cell is used. +default = "" +description = "If you have a keypad, you can assign keystrings to the keys. +If you have 2d keypad (like on a phone), use hd44780/#/keymatrix/#/# instead." +gen/struct/field/ignore = 1 -[glcd/#/useft2] -type = boolean -check/type = boolean -default = 1 ; TODO (elektra): default values conversion -description = If LCDproc has been compiled with FreeType 2 support this option can be used\ -to turn if off intentionally. +[hd44780/#/keymatrix] +array = #4 +default = "Don't change the max element. We will always use the KEYPAD_MAXX value from hd44780-low.h" + +[hd44780/#/keymatrix/#] +array = #_10 +default = "Don't change the max element. We will always use the KEYPAD_MAXY value from hd44780-low.h" +gen/struct/field/ignore = 1 -[glcd/#/normal_font] +[hd44780/#/keymatrix/#/#] type = string check/type = string -; check/path = ; TODO (elektra): too many plugins -default = /usr/local/lib/X11/fonts/TTF/andalemo.ttf -description = Path to font file to use for FreeType rendering. This font must be monospace\ -and should contain some special Unicode characters like arrows (Andale Mono\ -is recommended and can be fetched at http://corefonts.sf.net). +default = "" +description = "If you have a keypad, you can assign keystrings to the keys. +The first index is the X-coordinate, the second one the Y-cooordinate. +e.g. keymatrix/4/9 is the 5th key in the 10th row (indicies). +If you only have a 1d keypad, use hd44780/#/keydirect/#/# instead." +gen/struct/field/ignore = 1 -[glcd/#/fonthasicons] +[hd44780/#/i2c/backlightinvert] type = boolean check/type = boolean -default = 1 ; TODO (elektra): default values conversion -description = Some fonts miss the Unicode characters used to represent icons. In this case\ -the built-in 5x8 font can used if this option is turned off. - -[glcd/#/keyrepeatdelay] -type = unsigned_short -check/type = unsigned_short -check/range = 0-3000 -default = 500 -description = Time (ms) from first key report to first repeat. Set to 0 to disable repeated key reports. - -[glcd/#/keymap_a] -type = string -check/type = string -default = Up -description = "Assign key strings to keys. There may be up to 16 keys numbered 'A' to 'Z'. -By default keys 'A' to 'F' are assigned Up, Down, Left, Right, Enter, Escape." - -[glcd/#/keymap_b] -type = string -check/type = string -default = Down -description = "Assign key strings to keys. There may be up to 16 keys numbered 'A' to 'Z'. -By default keys 'A' to 'F' are assigned Up, Down, Left, Right, Enter, Escape." - -[glcd/#/keymap_c] -type = string -check/type = string -default = Left -description = "Assign key strings to keys. There may be up to 16 keys numbered 'A' to 'Z'. -By default keys 'A' to 'F' are assigned Up, Down, Left, Right, Enter, Escape." +default = 0 ; TODO (elektra): default values conversion +description = "default is meant for the data port of PCF8574" ; TODO +gen/struct/field = i2cBacklightInvert -[glcd/#/keymap_d] -type = string -check/type = string -default = Right -description = "Assign key strings to keys. There may be up to 16 keys numbered 'A' to 'Z'. -By default keys 'A' to 'F' are assigned Up, Down, Left, Right, Enter, Escape." +[hd44780/#/i2c/line_rs] +type = long +check/type = long +default = 16 ; TODO (elektra): default values conversion hex? +description = "default is meant for the data port of PCF8574" ; TODO -[glcd/#/keymap_e] -type = string -check/type = string -default = Enter -description = "Assign key strings to keys. There may be up to 16 keys numbered 'A' to 'Z'. -By default keys 'A' to 'F' are assigned Up, Down, Left, Right, Enter, Escape." +[hd44780/#/i2c/line_rw] +type = long +check/type = long +default = 32 ; TODO (elektra): default values conversion hex? +description = "default is meant for the data port of PCF8574" ; TODO -[glcd/#/keymap_f] -type = string -check/type = string -default = Escape -description = "Assign key strings to keys. There may be up to 16 keys numbered 'A' to 'Z'. -By default keys 'A' to 'F' are assigned Up, Down, Left, Right, Enter, Escape." +[hd44780/#/i2c/line_en] +type = long +check/type = long +default = 64 ; TODO (elektra): default values conversion hex? +description = "default is meant for the data port of PCF8574" ; TODO -[glcd/#/keyrepeatinterval] -type = unsigned_short -check/type = unsigned_short -check/range = 0-3000 -default = 500 -description = Time (ms) between repeated key reports. Ignored if KeyRepeatDelay is disabled (set to zero). +[hd44780/#/i2c/line_bl] +type = long +check/type = long +default = 128 ; TODO (elektra): default values conversion hex? +description = "default is meant for the data port of PCF8574" ; TODO -[glcd/#/port] -type = string -check/type = string -check/validation = 0x([2-3][0-9A-F]{2}|400) -check/validation/match = LINE -check/validation/message = Not a valid port declaration. legal: 0x200 - 0x400 -default = 0x378 -description = Parallel port to use +[hd44780/#/i2c/line_d4] +type = long +check/type = long +default = 1 ; TODO (elektra): default values conversion hex? +description = "default is meant for the data port of PCF8574" ; TODO -[glcd/#/bidirectional] -type = boolean -check/type = boolean -default = 1 ; TODO (elektra): default values conversion -description = Use LPT port in bi-directional mode. This should work on most LPT port\ -and is required for proper timing! +[hd44780/#/i2c/line_d5] +type = long +check/type = long +default = 2 ; TODO (elektra): default values conversion hex? +description = "default is meant for the data port of PCF8574" ; TODO -[glcd/#/delaybus] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Insert additional delays into reads / writes. +[hd44780/#/i2c/line_d6] +type = long +check/type = long +default = 4 ; TODO (elektra): default values conversion hex? +description = "default is meant for the data port of PCF8574" ; TODO -[glcd/#/serdisp_name] -type = string -check/type = string -default = t6963 -description = Name of the underlying serdisplib driver, e.g. ctinclud. See -serdisplib documentation for details. +[hd44780/#/i2c/line_d7] +type = long +check/type = long +default = 8 ; TODO (elektra): default values conversion hex? +description = "default is meant for the data port of PCF8574" ; TODO -[glcd/#/serdisp_device] +[hd44780/#/spi/backlightdevice] type = string check/type = string -; check/path = ; TODO (elektra): too many plugins -default = /dev/ppi0 -description = The display device to use, e.g. serraw:/dev/ttyS0,\ -parport:/dev/parport0 or USB:07c0/1501 - - -;TODO (elektra): Are quotes really required now when switching to libelektra? +default = "" +description = "" ; TODO +gen/struct/field = spiBacklightDevice -[glcd/#/serdisp_options] -type = string -check/type = string -default = "INVERT=1" -description = "Options string to pass to serdisplib during initialization. Use -this to set any display related options (e.g. wiring). The display size is -always set based on the Size configured above! By default, no options are -set. -Important: The value must be quoted as it contains equal signs!" - -[glcd/#/x11_pixelsize] -type = string -check/type = string -check/validation = \d+\+\d+ -check/validation/match = LINE -default = 3+1 -check/validation/message = [number]+[number] has to be provided, eg: 3+1 or 5+2 -description = "Each LCD dot is drawn in the X window as a filled rectangle of this size - plus a gap between each filled rectangle. A PixelSize of 3+1 - would draw a 3x3 filled rectangle with a gap of 1 pixel to the right and - bottom, effectively using a 4x4 area of the window. Default is 3+1." - -[glcd/#/x11_pixelcolor] +[hd44780/#/usb/serialnumber] type = string check/type = string -check/validation = 0x[0-9A-F]{6} -check/validation/match = LINE -check/validation/message = Colors are in RRGGBB format prefixed with "0x" -default = 0x000000 -description = The color of each dot at full contrast. +default = "" +description = "used by bwctusb and ftdi" -[glcd/#/x11_backlightcolor] +[hd44780/#/usb/description] type = string check/type = string -check/validation = 0x[0-9A-F]{6} -check/validation/match = LINE -check/validation/message = Colors are in RRGGBB format prefixed with "0x" -default = 0x80FF80 -description = The color of the backlight as full brightness. +default = "" +description = "used by ftdi" -[glcd/#/x11_border] +[hd44780/#/usb/vendorid] type = unsigned_long check/type = unsigned_long -default = 20 -description = Adds a border (empty space) around the LCD portion of X11 window. - -[glcd/#/x11_inverted] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Inverts the pixels. +default = 0 ; TODO (elektra): default values conversion hex? +description = "used by uss720 and ftdi; set to 0 to use connectiontype dependent default" -[glcd/#/picolcdgfx_keytimeout] +[hd44780/#/usb/productid] type = unsigned_long check/type = unsigned_long -; check/range = 1- ; TODO (elektra): open ranges -default = 125 -description = Time in ms for usb_read to wait on a key press. +default = 0 ; TODO (elektra): default values conversion hex? +description = "used by uss720 and ftdi; set to 0 to use connectiontype dependent default" -[glcd/#/picolcdgfx_inverted] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Inverts the pixels. - -;glcdlib -;================================================== -[glcdlib] -default = "" -array = #0 - -[glcdlib/#] -type = struct -check/type = any -default = "" -gen/struct/type = GlcdlibDriverConfig -gen/struct/alloc = 0 -description = Configuration for a glcdlib driver. - -[glcdlib/#/file] -type = string -default = "glcdlib" -description = name of the shared library to load (without prefix and extension) - -[glcdlib/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 50 -check/range = 0-100 -description = Set the initial contrast - -[glcdlib/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 50 -check/range = 0-100 - -[glcdlib/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 - -[glcdlib/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - -[glcdlib/#/driver] -type = string -check/type = string -default = image -description = " -Specify which graphical display supported by graphlcd-base to use. - Legal values for GRAPHLCD-DRIVER are - specified in graphlcd's configuration file /etc/graphlcd.conf. - For graphlcd 0.13 they comprise avrctl, framebuffer, gu140x32f, gu256x64-372, - gu256x64C-3xx0, hd61830, image, ks0108, noritake800, sed1330, sed1520, serdisp, simlcd, t6963c -" - -[glcdlib/#/CharEncoding] -type = string -check/type = string -default = iso8859-2 -description = "character encoding to use" - -[glcdlib/#/useft2] -type = boolean -check/type = boolean -default = 1 ; TODO (elektra): default values conversion -description = "no=use graphlcd bitmap fonts (they have only one size / font file) -yes=use fonts supported by FreeType2 (needs Freetype2 support in -libglcdprocdriver and its dependants)" - -[glcdlib/#/textresolution] -type = string -check/type = string -check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) -check/validation/match = LINE -check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 -default = 16x4 -description = "Text resolution in fixed width characters. -(if it won't fit according to available physical pixel resolution -and the minimum available font face size in pixels, then -'DebugBorder' will automatically be turned on)" - -[glcdlib/#/fontfile] -type = string -check/type = string -; check/path = ; TODO (elektra): too many plugins -default = /usr/share/fonts/corefonts/courbd.ttf -description = "path to font file to use" - -[glcdlib/#/minfontfacesize] -type = string -check/type = string -check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) -check/validation/match = LINE -check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 -default = 7x12 -description = "path to font file to use" - -[glcdlib/#/backlight] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion - -[glcdlib/#/upsidedown] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion - -[glcdlib/#/invert] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion - -[glcdlib/#/showdebugframe] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion - -[glcdlib/#/showbigborder] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion - -[glcdlib/#/showthinborder] -type = boolean -check/type = boolean -default = 1 ; TODO (elektra): default values conversion - -[glcdlib/#/pixelshiftx] -type = unsigned_short -check/type = unsigned_short -default = 0 - -[glcdlib/#/pixelshifty] -type = unsigned_short -check/type = unsigned_short -default = 2 - -;glk -;================================================== -[glk] -default = "" -array = #0 - -[glk/#] -type = struct -check/type = any -default = "" -gen/struct/type = GlkDriverConfig -gen/struct/alloc = 0 -description = Configuration for a glk driver. - -[glk/#/file] -type = string -default = "glk" -description = name of the shared library to load (without prefix and extension) - -[glk/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 500 -check/range = 0-1000 -description = Set the initial contrast - -[glk/#/device] -type = string -check/type = string -; check/path = ; TODO (elektra): too many plugins -default = /dev/lcd -description = "select the serial device to use" - -[glk/#/speed] -type = unsigned_short -check/type = unsigned_short -check/range = 9600, 19200, 38400, 57600, 115200 -default = 19200 -description = set the serial port speed - -;hd44780 -;================================================== -[hd44780] -default = "" -array = #0 - -[hd44780/#] -type = struct -check/type = any -default = "" -gen/struct/type = Hd44780DriverConfig -gen/struct/alloc = 0 -gen/struct/depth = 2 -description = Configuration for a hd44780 driver. - -[hd44780/#/file] -type = string -default = "hd44780" -description = name of the shared library to load (without prefix and extension) - -[hd44780/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 800 -check/range = 0-1000 -description = Set the initial contrast - -[hd44780/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 800 -check/range = 0-1000 - -[hd44780/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 300 -check/range = 0-1000 - -[hd44780/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - -[hd44780/#/connectiontype] -type = enum -check/type = enum -check/enum = #_27 -check/enum/#0 = 4bit -check/enum/#1 = 8bit -check/enum/#2 = winamp -check/enum/#3 = lcm162 -check/enum/#4 = serialLpt -check/enum/#5 = picanlcd -check/enum/#6 = lcdserializer -check/enum/#7 = los-panel -check/enum/#8 = vdr-lcd -check/enum/#9 = vdr-wakeup -check/enum/#_10 = ezio -check/enum/#_11 = pertelian -check/enum/#_12 = lis2 -check/enum/#_13 = mplay -check/enum/#_14 = usblcd -check/enum/#_15 = bwctusb -check/enum/#_16 = lcd2usb -check/enum/#_17 = usbtiny -check/enum/#_18 = uss720 -check/enum/#_19 = USB-4-all -check/enum/#_20 = ftdi -check/enum/#_21 = i2c -check/enum/#_22 = piplate -check/enum/#_23 = spi -check/enum/#_24 = pifacecad -check/enum/#_25 = ethlcd -check/enum/#_26 = raspberrypi -check/enum/#_27 = gpio -gen/enum/type = Hd44780ConnectionType -default = 4bit -description = "Select what type of connection. See documentation for available types: - https://github.com/lcdproc/lcdproc/blob/master/docs/lcdproc-user/drivers/hd44780.docbook" - -[hd44780/#/model] -type = enum -check/type = enum -check/enum = #7 -check/enum/#0 = default -check/enum/#1 = standard -check/enum/#2 = extended -check/enum/#3 = ks0073 -check/enum/#4 = hd66710 -check/enum/#5 = winstar_oled -check/enum/#6 = weh00xxyya -check/enum/#7 = pt6314_vfd -default = standard -description = "Select model if have non-standard one which require extra initialization or handling or - just want extra features it offers. - Available: standard (default), extended, winstar_oled, pt6314_vfd - - standard is default, use for LCDs not mentioned below. - - extended, hd66712, ks0073: allows use 4-line 'extended' mode, - same as deprecated now option ExtendedMode=yes - - winstar_oled, weh00xxyya: changes initialization for WINSTAR's WEH00xxyyA displays - and allows handling brightness - - pt6314_vfd: allows handling brightness on PTC's PT6314 VFDs - This option should be independent of connection type." - -[hd44780/#/port] -type = string -check/type = string -check/validation = 0x[0-9A-F]{3} -check/validation/match = LINE -check/validation/message = Port must begin with "0x", followed by 3 Hexadezimal values, eg. 0x3BC -default = 0x378 -description = I/O address of the LPT port. Usual values are: 0x278, 0x378 and 0x3BC.\ - For I2C connections this sets the slave address (usually 0x20). - -[hd44780/#/device] -type = string -check/type = string -; check/path = ; TODO (elektra): too many plugins -default = "" -description = "Device of the serial, I2C, or SPI interface (default is connectiontype dependent)" - -[hd44780/#/speed] -type = unsigned_long -check/type = unsigned_long -default = 0 -description = "Bitrate of the serial port (0 for interface default)" - -[hd44780/#/keypad] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = "If you have a keypad connected. -You may also need to configure the keypad layout further on in this file." - -[hd44780/#/backlight] -type = enum -check/type = enum -check/enum = #2 -check/enum/#0 = default -check/enum/#1 = enabled -check/enum/#2 = disabled -default = default -description = "Whether or not a switchable backlight is be used. If 'default' is chosen, -the value is model dependent. On Winstar OLED and PT6314 VFD, it is 'enabled' on other models -it is 'disabled'." - -[hd44780/#/backlightmode] -array = -default = "" - -[hd44780/#/backlightmode/#] -type = enum -check/type = enum -check/enum = #2 -check/enum/#0 = external -check/enum/#1 = internal -check/enum/#2 = internalCmds -default = internal ; TODO (elektra): should be required -description = "If the switchable backlight is enabled (see hd44780/#/backlight), this value -determines which method for turning it on/off will be used. -# -The supported methods are: -- external - use external pin or any other method defined with ConnectionType backlight - handling. -- internal - means that backlight is handled using internal commands according - to selected display model (with Model option). Depending on model, - Brightness and OffBrightness options can be taken into account. -- internalCmds - means that commands for turning on and off backlight are given - with extra options BacklightOnCmd and BacklightOffCmd, which would be treated - as catch up (last resort) for other types of displays which have similar features. -# -This array will only be taken into account, if hd44780/#/backlight is set to enabled. If it is -set to default and Winstar OLED or PT6314 VFD are used, we will always use 'internal'. -# -Multiple elements can be given, to use multiple methods." -gen/struct/field/ignore = 1 - -[hd44780/#/backlightcmdon] -type = string -check/type = string -check/validation = 0x[0-9A-F]{4} -check/validation/match = LINE -check/validation/message = 4 bytes can be encoded, as integer number in big-endian order (0x0000-0xFFFF) -default = 0x1223 -description = "Commands for enabling internal backlight for use with Backlight=internalCmds. -Up to 4 bytes can be encoded, as integer number in big-endian order. -# -NOTE: this is advanced option, if command contains bits other than only brighness handling, -they must be set accordingly to not disrupt display state. If for example 'FUNCTION SET' command -is used for this purpose, bits of interface length (4-bit / 8-bit) must be set according to -selected ConnectionType." - -[hd44780/#/backlightcmdoff] -type = string -check/type = string -check/validation = 0x[0-9A-F]{4} -check/validation/match = LINE -check/validation/message = 4 bytes can be encoded, as integer number in big-endian order (0x0000-0xFFFF) -default = 0x1234 -description = "Commands for disabling internal backlight for use with Backlight=internalCmds. -Up to 4 bytes can be encoded, as integer number in big-endian order." - -[hd44780/#/outputport] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = If you have the additional output port ("bargraph") and you want to\ -be able to control it with the lcdproc OUTPUT command - -[hd44780/#/lastline] -type = boolean -check/type = boolean -default = 1 ; TODO (elektra): default values conversion -description = "Specifies if the last line is pixel addressable (yes) or it controls an -underline effect (no)." - -[hd44780/#/size] -type = string -check/type = string -check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) -check/validation/match = LINE -check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 -default = 20x4 -description = Specifies the size of the LCD.\ -In case of multiple combined displays, this should be the total size. - -[hd44780/#/vspan] -type = string -check/type = string -default = "" -check/validation = ^([1-9][0-9]*(,[1-9][0-9]*)*)?$ -check/validation/match = LINE -check/validation/message = Declarations must look like this: 2,2 or 2,2,1 -description = "For multiple combined displays: how many lines does each display have. -Vspan=2,2 means both displays have 2 lines." - -[hd44780/#/extendedmode] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = "If you have an HD66712, a KS0073 or another controller with 'extended mode', -set this flag to get into 4-line mode. On displays with just two lines, do -not set this flag. -As an additional restriction, controllers with and without extended mode -AND 4 lines cannot be mixed for those connection types that support more -than one display! -NOTE: This option is deprecated in favour of choosing Model=extended option." - -[hd44780/#/lineaddress] -type = string -check/type = string -check/validation = 0x([1-9A-F]+[0-9A-F]*) -check/validation/match = LINE -check/validation/message = Not a line Address. eg. 0x20, 0x10 -default = 0x20 -description = In extended mode, on some controllers like the ST7036 (in 3 line mode)\ -the next line in DDRAM won`t start 0x20 higher. - -[hd44780/#/charmap] -type = enum -check/type = enum -check/enum = #8 -check/enum/#0 = hd44780_default -check/enum/#1 = hd44780_euro -check/enum/#2 = ea_ks0073 -check/enum/#3 = sed1278f_0b -check/enum/#4 = hd44780_koi8_r -check/enum/#5 = hd44780_cp1251 -check/enum/#6 = hd44780_8859_5 -check/enum/#7 = upd16314 -check/enum/#8 = weh001602a_1 -default = hd44780_default -description = "Character map to to map ISO-8859-1 to the LCD's character set. (hd44780_koi8_r, hd44780_cp1251, hd44780_8859_5, upd16314 and weh001602a_1 -are possible if compiled with additional charmaps)" - -[hd44780/#/fontbank] -type = unsigned_short -check/type = unsigned_short -check/range = 0-3 -default = 0 -description = "Font bank to be used for some displays such as the WINSTAR WEH001602A -0: English/Japanese (default) -1: Western Europe I -2: English/Rusian -3: Western Europe II" - -[hd44780/#/delaymult] -type = unsigned_short -check/type = unsigned_short -check/range = 1, 2, 4, 8, 16 -default = 1 -description = "If your display is slow and cannot keep up with the flow of data from -LCDd, garbage can appear on the LCDd. Set this delay factor to 2 or 4 -to increase the delays." - -[hd44780/#/keepalivedisplay] -type = unsigned_short -check/type = unsigned_short -check/range = 0-10 -default = 0 -description = "Some displays (e.g. vdr-wakeup) need a message from the driver to that it -is still alive. When set to a value bigger then null the character in the -upper left corner is updated every seconds." - -[hd44780/#/refreshdisplay] -type = unsigned_short -check/type = unsigned_short -check/range = 0-20 -default = 0 -description = "If you experience occasional garbage on your display you can use this -option as workaround. If set to a value bigger than null it forces a -full screen refresh seconds." - -[hd44780/#/delaybus] -type = boolean -check/type = boolean -default = 1 ; TODO (elektra): default values conversion -description = "You can reduce the inserted delays by setting this to false. -On fast PCs it is possible your LCD does not respond correctly." - -[hd44780/#/keydirect] -array = #5 -default = "" - -[hd44780/#/keydirect/#] -type = string -check/type = string -default = "" -description = "If you have a keypad, you can assign keystrings to the keys. -If you have 2d keypad (like on a phone), use hd44780/#/keymatrix/#/# instead." -gen/struct/field/ignore = 1 - -[hd44780/#/keymatrix] -array = #4 -default = "Don't change the max element. We will always use the KEYPAD_MAXX value from hd44780-low.h" - -[hd44780/#/keymatrix/#] -array = #_10 -default = "Don't change the max element. We will always use the KEYPAD_MAXY value from hd44780-low.h" -gen/struct/field/ignore = 1 - -[hd44780/#/keymatrix/#/#] -type = string -check/type = string -default = "" -description = "If you have a keypad, you can assign keystrings to the keys. -The first index is the X-coordinate, the second one the Y-cooordinate. -e.g. keymatrix/4/9 is the 5th key in the 10th row (indicies). -If you only have a 1d keypad, use hd44780/#/keydirect/#/# instead." -gen/struct/field/ignore = 1 - -[hd44780/#/i2c/backlightinvert] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = "default is meant for the data port of PCF8574" ; TODO -gen/struct/field = i2cBacklightInvert - -[hd44780/#/i2c/line_rs] -type = long -check/type = long -default = 16 ; TODO (elektra): default values conversion hex? -description = "default is meant for the data port of PCF8574" ; TODO - -[hd44780/#/i2c/line_rw] -type = long -check/type = long -default = 32 ; TODO (elektra): default values conversion hex? -description = "default is meant for the data port of PCF8574" ; TODO - -[hd44780/#/i2c/line_en] -type = long -check/type = long -default = 64 ; TODO (elektra): default values conversion hex? -description = "default is meant for the data port of PCF8574" ; TODO - -[hd44780/#/i2c/line_bl] -type = long -check/type = long -default = 128 ; TODO (elektra): default values conversion hex? -description = "default is meant for the data port of PCF8574" ; TODO - -[hd44780/#/i2c/line_d4] -type = long -check/type = long -default = 1 ; TODO (elektra): default values conversion hex? -description = "default is meant for the data port of PCF8574" ; TODO - -[hd44780/#/i2c/line_d5] -type = long -check/type = long -default = 2 ; TODO (elektra): default values conversion hex? -description = "default is meant for the data port of PCF8574" ; TODO - -[hd44780/#/i2c/line_d6] -type = long -check/type = long -default = 4 ; TODO (elektra): default values conversion hex? -description = "default is meant for the data port of PCF8574" ; TODO - -[hd44780/#/i2c/line_d7] -type = long -check/type = long -default = 8 ; TODO (elektra): default values conversion hex? -description = "default is meant for the data port of PCF8574" ; TODO - -[hd44780/#/spi/backlightdevice] -type = string -check/type = string -default = "" -description = "" ; TODO -gen/struct/field = spiBacklightDevice - -[hd44780/#/usb/serialnumber] -type = string -check/type = string -default = "" -description = "used by bwctusb and ftdi" - -[hd44780/#/usb/description] -type = string -check/type = string -default = "" -description = "used by ftdi" - -[hd44780/#/usb/vendorid] -type = unsigned_long -check/type = unsigned_long -default = 0 ; TODO (elektra): default values conversion hex? -description = "used by uss720 and ftdi; set to 0 to use connectiontype dependent default" - -[hd44780/#/usb/productid] -type = unsigned_long -check/type = unsigned_long -default = 0 ; TODO (elektra): default values conversion hex? -description = "used by uss720 and ftdi; set to 0 to use connectiontype dependent default" - -[hd44780/#/ftdi/mode] -type = long -check/type = long -default = 8 -check/range = 4, 8 -description = "" ; TODO - -[hd44780/#/ftdi/line_rs] -type = long -check/type = long -default = 1 ; TODO (elektra): default values conversion hex? -description = "" ; TODO - -[hd44780/#/ftdi/line_rw] -type = long -check/type = long -default = 2 ; TODO (elektra): default values conversion hex? -description = "" ; TODO - -[hd44780/#/ftdi/line_en] -type = long -check/type = long -default = 4 ; TODO (elektra): default values conversion hex? -description = "" ; TODO - -[hd44780/#/ftdi/line_backlight] -type = long -check/type = long -default = 8 ; TODO (elektra): default values conversion hex? -description = "" ; TODO - -[hd44780/#/gpio/pin_en] -type = long -check/type = long -default = -1 -description = "required if raspberrypi or gpio is used; -on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default - -[hd44780/#/gpio/pin_rs] -type = long -check/type = long -default = -1 -description = "required if raspberrypi or gpio is used; -on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default - -[hd44780/#/gpio/pin_rw] -type = long -check/type = long -default = -1 -description = "required if raspberrypi or gpio is used; -on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default - -[hd44780/#/gpio/pin_d7] -type = long -check/type = long -default = -1 -description = "required if raspberrypi or gpio is used; -on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default - -[hd44780/#/gpio/pin_d6] -type = long -check/type = long -default = -1 -description = "required if raspberrypi or gpio is used; -on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default - -[hd44780/#/gpio/pin_d5] -type = long -check/type = long -default = -1 -description = "required if raspberrypi or gpio is used; -on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default - -[hd44780/#/gpio/pin_d4] -type = long -check/type = long -default = -1 -description = "required if raspberrypi or gpio is used; -on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default - -[hd44780/#/gpio/pin_en2] -type = long -check/type = long -default = -1 -description = "required if raspberrypi or gpio is used and 2 controllers are connected; -on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default - -[hd44780/#/gpio/pin_bl] -type = long -check/type = long -default = -1 -description = "required if raspberrypi or gpio is used and backlight (external) is enabled; -on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default - - -;icp_a106 -;================================================== -[icp_a106] -default = "" -array = #0 - -[icp_a106/#] -type = struct -check/type = any -default = "" -gen/struct/type = Icp_a106DriverConfig -gen/struct/alloc = 0 -description = Configuration for a icp_a106 driver. - -[icp_a106/#/file] -type = string -default = "icp_a106" -description = name of the shared library to load (without prefix and extension) - -[icp_a106/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast - -[icp_a106/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 - -[icp_a106/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 - -[icp_a106/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - -[icp_a106/#/device] -type = string -check/type = string -; check/path = ; TODO (elektra): too many plugins -default = /dev/lcd -description = "Device of the serial, I2C, or SPI interface" - -[icp_a106/#/size] -type = string -check/type = string -check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) -check/validation/match = LINE -check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 -default = 20x2 -description = Display dimensions - -;IOWarrior -;================================================== -[iowarrior] -default = "" -array = #0 - -[iowarrior/#] -type = struct -check/type = any -default = "" -gen/struct/type = IOWarriorDriverConfig -gen/struct/alloc = 0 -description = Configuration for a IOWarrior driver. - -[iowarrior/#/file] -type = string -default = "IOWarrior" -description = name of the shared library to load (without prefix and extension) - -[iowarrior/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast - -[iowarrior/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 - -[iowarrior/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 - -[iowarrior/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - -[iowarrior/#/size] -type = string -check/type = string -check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) -check/validation/match = LINE -check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 -default = 20x4 -description = Display dimensions - -[iowarrior/#/serialnumber] -type = string -check/type = any -default = 00000674 -description = serial number. Must be exactly as listed by usbview\ -(if not given, the 1st IOWarrior found gets used) - -[iowarrior/#/extendedmode] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = "If you have an HD66712, a KS0073 or another 'almost HD44780-compatible', -set this flag to get into extended mode (4-line linear)." - -[iowarrior/#/lastline] -type = boolean -check/type = boolean -default = 1 ; TODO (elektra): default values conversion -description = "Specifies if the last line is pixel addressable (yes) or it controls an -underline effect (no)." - -;imon -;================================================== -[imon] -default = "" -array = #0 - -[imon/#] -type = struct -check/type = any -default = "" -gen/struct/type = ImonDriverConfig -gen/struct/alloc = 0 -description = Configuration for a imon driver. - -[imon/#/file] -type = string -default = "imon" -description = name of the shared library to load (without prefix and extension) - -[imon/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast - -[imon/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 - -[imon/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 - -[imon/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - -[imon/#/device] -type = string -check/type = string -; check/path = ; TODO (elektra): too many plugins -default = /dev/lcd0 -description = "select the device to use" - -[imon/#/size] -type = string -check/type = string -check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) -check/validation/match = LINE -check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 -default = 16x2 -description = Display dimensions - -[imon/#/charmap] -type = enum -check/type = enum -check/enum = #5 -check/enum/#0 = hd44780_euro -check/enum/#1 = upd16314 -check/enum/#2 = hd44780_koi8_r -check/enum/#3 = hd44780_cp1251 -check/enum/#4 = hd44780_8859_5 -check/enum/#5 = none -gen/enum/type = IMonCharmap -default = none -description = "Character map to to map ISO-8859-1 to the displays character set. (upd16314, hd44780_koi8_r, -hd44780_cp1251, hd44780_8859_5 are possible if compiled with additional -charmaps)" - -;imonlcd -;================================================== -[imonlcd] -default = "" -array = #0 - -[imonlcd/#] -type = struct -check/type = any -default = "" -gen/struct/type = ImonlcdDriverConfig -gen/struct/alloc = 0 -description = Configuration for a imonlcd driver. - -[imonlcd/#/file] -type = string -default = "imonlcd" -description = name of the shared library to load (without prefix and extension) - -[imonlcd/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 200 -check/range = 0-1000 -description = Set the initial contrast - -[imonlcd/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 - -[imonlcd/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 - -[imonlcd/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - -[imonlcd/#/protocol] -type = string -check/type = string -check/enum = #3 -check/enum/#0 = 15c2:ffdc -check/enum/#1 = 15c2:0038 -check/enum/#2 = 0 -gen/enum/#2/value = 0 -check/enum/#3 = 1 -gen/enum/#3/value = 1 -gen/enum/type = IMonLCDProtocol -default = 0 -description = "Specify which iMon protocol should be used -Choose 0 for 15c2:ffdc device, -Choose 1 for 15c2:0038 device" - -[imonlcd/#/onexit] -type = unsigned_short -check/type = unsigned_short -check/range = 0-2 -default = 1 -description = "Set the exit behavior -0 means leave shutdown message, -1 means show the big clock, -2 means blank device" - -[imonlcd/#/device] -type = string -check/type = string -; check/path = ; TODO (elektra): too many plugins -default = /dev/lcd0 -description = "select the output device to use" - -[imonlcd/#/size] -type = string -check/type = string -check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) -check/validation/match = LINE -check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 -default = 96x16 -description = Specify the size of the display in pixels - -[imonlcd/#/backlight] -type = boolean -check/type = boolean -default = 1 ; TODO (elektra): default values conversion -description = "Set the backlight state" - -[imonlcd/#/discmode] -type = enum -check/type = enum -check/enum = #1 -check/enum/#0 = 0 -check/enum/#1 = 1 -gen/enum/type = IMonLCDDiscMode -default = 0 -description = "Set the disc mode -0 => spin the 'slim' disc - two disc segments, -1 => their complement spinning;" - -;IrMan -;================================================== -[irman] -default = "" -array = #0 - -[irman/#] -type = struct -check/type = any -default = "" -gen/struct/type = IrManDriverConfig -gen/struct/alloc = 0 -description = Configuration for a IrMan driver. - -[irman/#/file] -type = string -default = "IrMan" -description = name of the shared library to load (without prefix and extension) - -[irman/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast - -[irman/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 - -[irman/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 - -[irman/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - -[irman/#/device] -type = string -check/type = string -; check/path = ; TODO (elektra): too many plugins -default = /dev/irman -description = "select the device to use" - -[irman/#/config] -type = string -check/type = string -; check/path = ; TODO (elektra): too many plugins -default = /etc/irman.cfg -description = "Select the configuration file to use" - -;irtrans -;================================================== -[irtrans] -default = "" -array = #0 - -[irtrans/#] -type = struct -check/type = any -default = "" -gen/struct/type = IrtransDriverConfig -gen/struct/alloc = 0 -description = Configuration for a irtrans driver. - -[irtrans/#/file] -type = string -default = "irtrans" -description = name of the shared library to load (without prefix and extension) - -[irtrans/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast - -[irtrans/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 - -[irtrans/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 - -[irtrans/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - -[irtrans/#/backlight] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = "Does the device have a backlight?" - -[irtrans/#/hostname] -type = string -check/type = string -default = localhost -description = "IRTrans device to connect to" - -[irtrans/#/size] -type = string -check/type = string -check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) -check/validation/match = LINE -check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 -default = 16x2 -description = Specify the size of the display in pixels - -;joy -;================================================== -[joy] -default = "" -array = #0 - -[joy/#] -type = struct -check/type = any -default = "" -gen/struct/type = JoyDriverConfig -gen/struct/alloc = 0 -description = Configuration for a joy driver. - -[joy/#/file] -type = string -default = "joy" -description = name of the shared library to load (without prefix and extension) - -[joy/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast - -[joy/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 - -[joy/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 - -[joy/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - -[joy/#/device] -type = string -check/type = string -; check/path = ; TODO (elektra): too many plugins -default = /dev/js0 -description = "Select the input device to use" - -[joy/#/map_axis1neg] -type = string -check/type = string -default = Left -description = "set the axis map" - -[joy/#/map_axis1pos] -type = string -check/type = string -default = Right -description = "set the axis map" - -[joy/#/map_axis2neg] -type = string -check/type = string -default = Up -description = "set the axis map" - -[joy/#/map_axis2pos] -type = string -check/type = string -default = Down -description = "set the axis map" - -[joy/#/map_button1] -type = string -check/type = string -default = Enter -description = "set the button map" - -[joy/#/map_button2] -type = string -check/type = string -default = Escape -description = "set the button map" - -;lb216 -;================================================== -[lb216] -default = "" -array = #0 - -[lb216/#] -type = struct -check/type = any -default = "" -gen/struct/type = Lb216DriverConfig -gen/struct/alloc = 0 -description = Configuration for a lb216 driver. - -[lb216/#/file] -type = string -default = "lb216" -description = name of the shared library to load (without prefix and extension) - -[lb216/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 200 -check/range = 0-255 - -[lb216/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - -[lb216/#/device] -type = string -check/type = string -; check/path = ; TODO (elektra): too many plugins -default = /dev/lcd -description = "Select the input device to use" - -[lb216/#/speed] -type = unsigned_short -check/type = unsigned_short -check/range = 2400, 9600 -default = 9600 -description = Set the communication speed - -;lcdm001 -;================================================== -[lcdm001] -default = "" -array = #0 - -[lcdm001/#] -type = struct -check/type = any -default = "" -gen/struct/type = Lcdm001DriverConfig -gen/struct/alloc = 0 -description = Configuration for a lcdm001 driver. - -[lcdm001/#/file] -type = string -default = "lcdm001" -description = name of the shared library to load (without prefix and extension) - -[lcdm001/#/device] -type = string -check/type = string -; check/path = ; TODO (elektra): too many plugins -default = /dev/ttyS1 -description = "select the device to use" - -[lcdm001/#/pausekey] -type = enum -check/type = enum -check/enum = #3 -check/enum/#0 = LeftKey -check/enum/#1 = RightKey -check/enum/#2 = UpKey -check/enum/#3 = DownKey -gen/enum/type = Lcdm001Keys -default = LeftKey -description = "Normal Context: Pause/Continue -Menu Context: Enter/select" - -[lcdm001/#/backkey] -type = enum -check/type = enum -check/enum = #3 -check/enum/#0 = LeftKey -check/enum/#1 = RightKey -check/enum/#2 = UpKey -check/enum/#3 = DownKey -gen/enum/type = Lcdm001Keys -default = UpKey -description = "Normal Context: Back(Go to previous screen) -Menu Context: Up/Left" - -[lcdm001/#/forwardkey] -type = enum -check/type = enum -check/enum = #3 -check/enum/#0 = LeftKey -check/enum/#1 = RightKey -check/enum/#2 = UpKey -check/enum/#3 = DownKey -gen/enum/type = Lcdm001Keys -default = DownKey -description = "Normal Context: Forward(Go to next screen) -Menu Context: Down/Right" - -[lcdm001/#/mainmenukey] -type = enum -check/type = enum -check/enum = #3 -check/enum/#0 = LeftKey -check/enum/#1 = RightKey -check/enum/#2 = UpKey -check/enum/#3 = DownKey -gen/enum/type = Lcdm001Keys -default = RightKey -description = "Normal Context: Open main menu -Menu Context: Exit/Cancel" - - -;lcterm -;================================================== -[lcterm] -default = "" -array = #0 - -[lcterm/#] -type = struct -check/type = any -default = "" -gen/struct/type = LctermDriverConfig -gen/struct/alloc = 0 -description = Configuration for a lcterm driver. - -[lcterm/#/file] -type = string -default = "lcterm" -description = name of the shared library to load (without prefix and extension) - -[lcterm/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast - -[lcterm/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 - -[lcterm/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 - -[lcterm/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - -[lcterm/#/device] -type = string -check/type = string -; check/path = ; TODO (elektra): too many plugins -default = /dev/ttyS1 -description = "select the device to use" - -[lcterm/#/size] -type = string -check/type = string -check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) -check/validation/match = LINE -check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 -default = 16x2 -description = Specify the size of the display in pixels - -;linux_input -;================================================== -[linux_input] -default = "" -array = #0 - -[linux_input/#] -type = struct -check/type = any -default = "" -gen/struct/type = Linux_inputDriverConfig -gen/struct/alloc = 0 -description = Configuration for a linux_input driver. - -[linux_input/#/file] -type = string -default = "linux_input" -description = name of the shared library to load (without prefix and extension) - -[linux_input/#/device] -type = string -check/type = string -; check/path = ; TODO (elektra): too many plugins -default = /dev/input/event0 -description = "select the device to use" - -[linux_input/#/keys] -default = "" -array = #0 -description = "specify a non-default key map, eg.: - /linux_input/key/#0/code = 1 - /linux_input/key/#0/button = Enter - sets the keycode 1 to be the Enter key" - -[linux_input/#/keys/#] -type = string -default = "" -gen/struct/field/ignore = 1 -description = "INGORE: only here to generate tag" - -[linux_input/#/keys/#/code] -type = unsigned_short -check/type = unsigned_short -default = 0 ; should be required - -[linux_input/#/keys/#/button] -type = string -check/type = string -default = "" ; should be required - - -;lirc -;================================================== -[lirc] -default = "" -array = #0 - -[lirc/#] -type = struct -check/type = any -default = "" -gen/struct/type = LircDriverConfig -gen/struct/alloc = 0 -description = Configuration for a lirc driver. - -[lirc/#/file] -type = string -default = "lirc" -description = name of the shared library to load (without prefix and extension) - -[lirc/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast - -[lirc/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 - -[lirc/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 - -[lirc/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - -[lirc/#/lircrc] -type = string -check/type = string -; check/path = ; TODO (elektra): too many plugins -default = ~/.lircrc -description = "select the device to use" - -[lirc/#/prog] -type = string -check/type = string -default = lcdd -description = "Must be the same as in your lircrc" - -;lis -;================================================== -[lis] -default = "" -array = #0 - -[lis/#] -type = struct -check/type = any -default = "" -gen/struct/type = LisDriverConfig -gen/struct/alloc = 0 -description = Configuration for a lis driver. - -[lis/#/file] -type = string -default = "lis" -description = name of the shared library to load (without prefix and extension) - -[lis/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast - -[lis/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = "Set the initial brightness -0-250 = 25%, 251-500 = 50%, 501-750 = 75%, 751-1000 = 100%" - -[lis/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 - -[lis/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - -[lis/#/size] -type = string -check/type = string -check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) -check/validation/match = LINE -check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 -default = 16x2 -description = Columns by lines - -[lis/#/vendorid] -type = string -check/type = string -check/validation = 0x([0-9A-F]{4}) -check/validation/match = LINE -check/validation/message = Not a valid size VendorID: 0x0000-0xFFFF is allowed -default = 0x0403 -description = USB Vendor ID. Change only if testing a compatible device. - -[lis/#/productid] -type = string -check/type = string -check/validation = 0x([0-9A-F]{4}) -check/validation/match = LINE -check/validation/message = Not a valid size ProductID: 0x0000-0xFFFF is allowed -default = 0x6001 -description = USB Product ID. Change only if testing a compatible device. - -[lis/#/lastline] -type = boolean -check/type = boolean -default = 1 ; TODO (elektra): default values conversion -description = "Specifies if the last line is pixel addressable (yes) or it only controls an -underline effect (no)" - -;MD8800 -;================================================== -[md8800] -default = "" -array = #0 - -[md8800/#] -type = struct -check/type = any -default = "" -gen/struct/type = MD8800DriverConfig -gen/struct/alloc = 0 -description = Configuration for a MD8800 driver. - -[md8800/#/file] -type = string -default = "MD8800" -description = name of the shared library to load (without prefix and extension) - -[md8800/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast - -[md8800/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 - -[md8800/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 -description = "Set the initial off-brightness -This value is used when the display is normally -switched off in case LCDd is inactive" - -[md8800/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - -[md8800/#/device] -type = string -check/type = string -; check/path = ; TODO (elektra): too many plugins -default = /dev/ttyS1 -description = "select the device to use" - -[md8800/#/size] -type = string -check/type = string -check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) -check/validation/match = LINE -check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 -default = 16x2 -description = display size - - -;mdm166a -;================================================== -[mdm166a] -default = "" -array = #0 - -[mdm166a/#] -type = struct -check/type = any -default = "" -gen/struct/type = Mdm166aDriverConfig -gen/struct/alloc = 0 -description = Configuration for a mdm166a driver. - -[mdm166a/#/file] -type = string -default = "mdm166a" -description = name of the shared library to load (without prefix and extension) - -[mdm166a/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast - -[mdm166a/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 - -[mdm166a/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 - -[mdm166a/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - -[mdm166a/#/clock] -type = enum -check/type = enum -check/enum = #2 -check/enum/#0 = no -check/enum/#1 = small -check/enum/#2 = big -default = no -description = "Show self-running clock after LCDd shutdown" - -[mdm166a/#/dimming] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = "Dim display, no dimming gives full brightness" - -[mdm166a/#/offdimming] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = "Dim display in case LCDd is inactive" - -;ms6931 -;================================================== -[ms6931] -default = "" -array = #0 - -[ms6931/#] -type = struct -check/type = any -default = "" -gen/struct/type = Ms6931DriverConfig -gen/struct/alloc = 0 -description = Configuration for a ms6931 driver. - -[ms6931/#/file] -type = string -default = "ms6931" -description = name of the shared library to load (without prefix and extension) - -[ms6931/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast - -[ms6931/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 - -[ms6931/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 - -[ms6931/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - -[ms6931/#/device] -type = string -check/type = string -; check/path = ; TODO (elektra): too many plugins -default = /dev/ttyS1 -description = "select the device to use" - -[ms6931/#/size] -type = string -check/type = string -check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) -check/validation/match = LINE -check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 -default = 16x2 -description = display size - -;mtc_s16209x -;================================================== -[mtc_s16209x] -default = "" -array = #0 - -[mtc_s16209x/#] -type = struct -check/type = any -default = "" -gen/struct/type = Mtc_s16209xDriverConfig -gen/struct/alloc = 0 -description = Configuration for a mtc_s16209x driver. - -[mtc_s16209x/#/file] -type = string -default = "mtc_s16209x" -description = name of the shared library to load (without prefix and extension) - -[mtc_s16209x/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast - -[mtc_s16209x/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 200 -check/range = 0-255 - -[mtc_s16209x/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 - -[mtc_s16209x/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - -[mtc_s16209x/#/device] -type = string -check/type = string -; check/path = ; TODO (elektra): too many plugins -default = /dev/lcd -description = "Select the output device to use" - -;MtxOrb -;================================================== -[mtxorb] -default = "" -array = #0 - -[mtxorb/#] -type = struct -check/type = any -default = "" -gen/struct/type = MtxOrbDriverConfig -gen/struct/alloc = 0 -description = Configuration for a MtxOrb driver. - -[mtxorb/#/file] -type = string -default = "MtxOrb" -description = name of the shared library to load (without prefix and extension) - -[mtxorb/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 480 -check/range = 0-1000 -description = "Set the initial contrast -NOTE: The driver will ignore this if the display -is a vfd or vkd as they don't have this feature" - -[mtxorb/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 - -[mtxorb/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 -description = "Set the initial off-brightness -This value is used when the display is normally -switched off in case LCDd is inactive" - -[mtxorb/#/device] -type = string -check/type = string -; check/path = ; TODO (elektra): too many plugins -default = /dev/ttyS0 -description = "Select the output device to use" - -[mtxorb/#/size] -type = string -check/type = string -check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) -check/validation/match = LINE -check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 -default = 20x4 -description = display size - -[mtxorb/#/type] -type = enum -check/type = enum -check/enum = #3 -check/enum/#0 = lcd -check/enum/#1 = lkd -check/enum/#2 = vfd -check/enum/#3 = vkd -default = lcd -description = "Set the display type" - -[mtxorb/#/hasadjustablebacklight] -type = boolean -check/type = boolean -gen/struct/field = hasAdjustableBacklight -default = 0 ; TODO (elektra): default values conversion -description = "Some old displays do not have an adjustable backlight but only can -switch the backlight on/off. If you experience randomly appearing block -characters, try setting this to false." - -[mtxorb/#/speed] -type = unsigned_short -check/type = unsigned_short -check/range = 1200, 2400, 9600, 19200 -default = 19200 -description = Set the communication - -[mtxorb/#/keypad_test_mode] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = permits one to test keypad assignment - -[mtxorb/#/keymap_a] -type = string -check/type = string -default = "" -description = "By default no keys are mapped, meaning the keypad is not used at all." - -[mtxorb/#/keymap_b] -type = string -check/type = string -default = "" -description = "By default no keys are mapped, meaning the keypad is not used at all." - -[mtxorb/#/keymap_c] -type = string -check/type = string -default = "" -description = "By default no keys are mapped, meaning the keypad is not used at all." - -[mtxorb/#/keymap_d] -type = string -check/type = string -default = "" -description = "By default no keys are mapped, meaning the keypad is not used at all." - -[mtxorb/#/keymap_e] -type = string -check/type = string -default = "" -description = "By default no keys are mapped, meaning the keypad is not used at all." - -[mtxorb/#/keymap_f] -type = string -check/type = string -default = "" -description = "By default no keys are mapped, meaning the keypad is not used at all." - -;mx5000 -;================================================== -[mx5000] -default = "" -array = #0 - -[mx5000/#] -type = struct -check/type = any -default = "" -gen/struct/type = Mx5000DriverConfig -gen/struct/alloc = 0 -description = Configuration for a mx5000 driver. - -[mx5000/#/file] -type = string -default = "mx5000" -description = name of the shared library to load (without prefix and extension) - -[mx5000/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast - -[mx5000/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 - -[mx5000/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 - -[mx5000/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - -[mx5000/#/device] -type = string -check/type = string -; check/path = ; TODO (elektra): too many plugins -default = /dev/hiddev0 -description = "Select the output device to use" - -[mx5000/#/waitafterrefresh] -type = unsigned_long -check/type = unsigned_long -; check/range = 1- ; TODO (elektra): open ranges -default = 1000 -description = Time to wait in ms after the refresh screen has been sent - -;NoritakeVFD -;================================================== -[noritakevfd] -default = "" -array = #0 - -[noritakevfd/#] -type = struct -check/type = any -default = "" -gen/struct/type = NoritakeVFDDriverConfig -gen/struct/alloc = 0 -description = Configuration for a NoritakeVFD driver. - -[noritakevfd/#/file] -type = string -default = "NoritakeVFD" -description = name of the shared library to load (without prefix and extension) - -[noritakevfd/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast - -[noritakevfd/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 - -[noritakevfd/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 -description = "Set the initial off-brightness -This value is used when the display is normally -switched off in case LCDd is inactive" - -[noritakevfd/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - -[noritakevfd/#/device] -type = string -check/type = string -; check/path = ; TODO (elektra): too many plugins -default = /dev/lcd -description = "device where the VFD is. Usual values are /dev/ttyS0 and /dev/ttyS1" - -[noritakevfd/#/size] -type = string -check/type = string -check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) -check/validation/match = LINE -check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 -default = 20x4 -description = display size - -[noritakevfd/#/speed] -type = unsigned_long -check/type = unsigned_long -check/range = 1200, 2400, 9600, 19200, 115200 -default = 19200 -description = set the serial port speed - -[noritakevfd/#/parity] -type = unsigned_long -check/type = unsigned_long -check/range = 0-2 -default = 0 -description = "Set serial data parity -Meaning: 0(=none), 1(=odd), 2(=even)" - -;Olimex_MOD_LCD1x9 -;================================================== -[olimex_mod_lcd1x9] -default = "" -array = #0 - -[olimex_mod_lcd1x9/#] -type = struct -check/type = any -default = "" -gen/struct/type = Olimex_MOD_LCD1x9DriverConfig -gen/struct/alloc = 0 -description = Configuration for a Olimex_MOD_LCD1x9 driver. - -[olimex_mod_lcd1x9/#/file] -type = string -default = "Olimex_MOD_LCD1x9" -description = name of the shared library to load (without prefix and extension) - -[olimex_mod_lcd1x9/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast - -[olimex_mod_lcd1x9/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 - -[olimex_mod_lcd1x9/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 - -[olimex_mod_lcd1x9/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - -[olimex_mod_lcd1x9/#/device] -type = string -check/type = string -; check/path = ; TODO (elektra): too many plugins -default = /dev/i2c-0 -description = "device file of the i2c controller" - -;picolcd -;================================================== -[picolcd] -default = "" -array = #0 - -[picolcd/#] -type = struct -check/type = any -default = "" -gen/struct/type = PicolcdDriverConfig -gen/struct/alloc = 0 -description = Configuration for a picolcd driver. - -[picolcd/#/file] -type = string -default = "picolcd" -description = name of the shared library to load (without prefix and extension) - -[picolcd/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast - -[picolcd/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = "Set the initial brightness [default: 1000; legal: 0 - 1000]. Works only -with the 20x4 device" - -[picolcd/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 -description = "Set the brightness while the backlight is 'off'. -Works only with the 20x4 device." - -[picolcd/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - -[picolcd/#/keytimeout] -type = unsigned_short -check/type = unsigned_short -check/range = 0-1000 -default = 500 -description = "KeyTimeout is only used if the picoLCD driver is built with libusb-0.1. When -built with libusb-1.0 key and IR data is input asynchronously so there is no -need to wait for the USB data. -KeyTimeout is the time in ms that LCDd spends waiting for a key press before -cycling through other duties. Higher values make LCDd use less CPU time and -make key presses more detectable. Lower values make LCDd more responsive -but a little prone to missing key presses. 500 (.5 second) is the default -and a balanced value." - -[picolcd/#/keyrepeatdelay] -type = unsigned_short -check/type = unsigned_short -check/range = 0-3000 -default = 300 -description = "Key auto repeat is only available if the picoLCD driver is built with -libusb-1.0. Use KeyRepeatDelay and KeyRepeatInterval to configure key auto -repeat. -# -Key auto repeat delay (time in ms from first key report to first repeat). Use -zero to disable auto repeat." - -[picolcd/#/keyrepeatinterval] -type = unsigned_short -check/type = unsigned_short -check/range = 0-3000 -default = 200 -description = "Key auto repeat interval (time in ms between repeat reports). Only used if -KeyRepeatDelay is not zero." - -[picolcd/#/backlight] -type = boolean -check/type = boolean -default = 1 ; TODO (elektra): default values conversion -description = Sets the initial state of the backlight upon start-up. - -[picolcd/#/linklights] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Link the key lights to the backlight? - -[picolcd/#/keylights] -type = boolean -check/type = boolean -default = 1 ; TODO (elektra): default values conversion -description = Light the keys? - -[picolcd/#/key0light] -type = boolean -check/type = boolean -default = 1 ; TODO (elektra): default values conversion -description = "If Keylights is on, the you can unlight specific keys below: -Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. -There is no LED for the +/- keys. This is a handy way to indicate to users -which keys are disabled." - -[picolcd/#/key1light] -type = boolean -check/type = boolean -default = 1 ; TODO (elektra): default values conversion -description = "If Keylights is on, the you can unlight specific keys below: -Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. -There is no LED for the +/- keys. This is a handy way to indicate to users -which keys are disabled." - -[picolcd/#/key2light] -type = boolean -check/type = boolean -default = 1 ; TODO (elektra): default values conversion -description = "If Keylights is on, the you can unlight specific keys below: -Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. -There is no LED for the +/- keys. This is a handy way to indicate to users -which keys are disabled." - -[picolcd/#/key3light] -type = boolean -check/type = boolean -default = 1 ; TODO (elektra): default values conversion -description = "If Keylights is on, the you can unlight specific keys below: -Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. -There is no LED for the +/- keys. This is a handy way to indicate to users -which keys are disabled." - -[picolcd/#/key4light] -type = boolean -check/type = boolean -default = 1 ; TODO (elektra): default values conversion -description = "If Keylights is on, the you can unlight specific keys below: -Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. -There is no LED for the +/- keys. This is a handy way to indicate to users -which keys are disabled." - -[picolcd/#/key5light] -type = boolean -check/type = boolean -default = 1 ; TODO (elektra): default values conversion -description = "If Keylights is on, the you can unlight specific keys below: -Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. -There is no LED for the +/- keys. This is a handy way to indicate to users -which keys are disabled." - -[picolcd/#/lirchost] -; check/ipaddr = ; TODO (elektra): too many plugins -type = string -check/type = string -default = 127.0.0.1 -description = Host name or IP address of the LIRC instance that is to receive IR codes\ -If not set, or set to an empty value, IR support is disabled. - -[picolcd/#/lircport] -; check/port = ; TODO (elektra): too many plugins -type = unsigned_short -default = 8765 -description = UDP port on which LIRC is listening - -[picolcd/#/lirctime_us] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = "UDP data time unit for LIRC -On: times sent in microseconds (requires LIRC UDP driver that accepts this). -Off: times sent in 'jiffies' (1/16384s) (supported by standard LIRC UDP driver)." - -[picolcd/#/lircflushthreshold] -type = unsigned_long -check/type = unsigned_long -check/validation = [1-9]\d{3,} -check/validation/match = LINE -check/validation/message = LircFlushThreshold must be a positive number >1000 -default = 1000 -description = "Threshold in microseconds of the gap that triggers flushing the IR data -to lirc [default: 8000; legal: 1000 - ] -If LircTime_us is on values greater than 32.767ms will disable the flush -If LircTime_us is off values greater than 1.999938s will disable the flush" - - -;pyramid -;================================================== -[pyramid] -default = "" -array = #0 - -[pyramid/#] -type = struct -check/type = any -default = "" -gen/struct/type = PyramidDriverConfig -gen/struct/alloc = 0 -description = Configuration for a pyramid driver. - -[pyramid/#/file] -type = string -default = "pyramid" -description = name of the shared library to load (without prefix and extension) - -[pyramid/#/device] -type = string -check/type = string -; check/path = ; TODO (elektra): too many plugins -default = /dev/lcd -description = "device to connect to" - -;rawserial -;================================================== -[rawserial] -default = "" -array = #0 - -[rawserial/#] -type = struct -check/type = any -default = "" -gen/struct/type = RawserialDriverConfig -gen/struct/alloc = 0 -description = Configuration for a rawserial driver. - -[rawserial/#/file] -type = string -default = "rawserial" -description = name of the shared library to load (without prefix and extension) - -[rawserial/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast - -[rawserial/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 - -[rawserial/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 - -[rawserial/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - -[rawserial/#/device] -type = string -check/type = string -; check/path = ; TODO (elektra): too many plugins -default = /dev/cuaU0 -description = "Select the output device to use" - -[rawserial/#/size] -type = string -check/type = string -check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) -check/validation/match = LINE -check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 -default = 40x4 -description = "Specifies the size of the LCD. If this driver is loaded as a secondary driver -it always adopts to the size of the primary driver. If loaded as the only -(or primary) driver, the size can be set." - -[rawserial/#/updaterate] -type = float -check/type = float -default = 1 -description = "How often to dump the LCD contents out the port, in Hertz (times per second) -1 = once per second, 4 is 4 times per second, 0.1 is once every 10 seconds. -[default: 1; legal: 0.0005 - 10]" - -[rawserial/#/speed] -type = unsigned_long -check/type = unsigned_long -default = 9600 -description = "Serial port baudrate [default: 9600]" - -;sed1330 -;================================================== -[sed1330] -default = "" -array = #0 - -[sed1330/#] -type = struct -check/type = any -default = "" -gen/struct/type = Sed1330DriverConfig -gen/struct/alloc = 0 -description = Configuration for a sed1330 driver. - -[sed1330/#/file] -type = string -default = "sed1330" -description = name of the shared library to load (without prefix and extension) - -[sed1330/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast - -[sed1330/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 - -[sed1330/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 - -[sed1330/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - -[sed1330/#/port] -type = string -check/type = string -check/validation = 0x([0-9A-F]{3}) -check/validation/match = LINE -check/validation/message = Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC -default = 0x378 -description = Port where the LPT is. Common values are 0x278, 0x378 and 0x3BC - -[sed1330/#/type] -type = enum -check/type = enum -check/enum = #5 -check/enum/#0 = G321D -check/enum/#1 = G121C -check/enum/#2 = G242C -check/enum/#3 = G191D -check/enum/#4 = G2446 -check/enum/#5 = SP14Q002 -default = G321D -description = "Type of LCD module. -Note: Currently only tested with G321D & SP14Q002." - -[sed1330/#/cellsize] -type = string -check/type = string -check/validation =[6-8]x([1-9][0-6]|[1-9]) -check/validation/match = LINE -check/validation/message = Width x Height of a character cell in pixels [legal: 6x7 - 8x16] -default = 6x10 -description = Width x Height of a character cell in pixels - -[sed1330/#/connectiontype] -type = enum -check/type = enum -check/enum = #1 -check/enum/#0 = classic -check/enum/#1 = bitshaker -default = classic -description = "Select what type of connection" - -;sed1520 -;================================================== -[sed1520] -default = "" -array = #0 - -[sed1520/#] -type = struct -check/type = any -default = "" -gen/struct/type = Sed1520DriverConfig -gen/struct/alloc = 0 -description = Configuration for a sed1520 driver. - -[sed1520/#/file] -type = string -default = "sed1520" -description = name of the shared library to load (without prefix and extension) - -[sed1520/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast - -[sed1520/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 - -[sed1520/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 - -[sed1520/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - -[sed1520/#/port] -type = string -check/type = string -check/validation = 0x([0-9A-F]{3}) -check/validation/match = LINE -check/validation/message = Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC -default = 0x378 -description = Port where the LPT is. Usual values are 0x278, 0x378 and 0x3BC - -[sed1520/#/interfacetype] -type = unsigned_short -check/type = unsigned_short -check/range = 68, 80 -default = 80 -description = "Select the interface type (wiring) for the display. Supported values are -68 for 68-style connection (RESET level high) and 80 for 80-style connection -(RESET level low)" - -[sed1520/#/delaymult] -type = unsigned_short -check/type = unsigned_short -check/range = 0-1000 -default = 1 -description = "On fast machines it may be necessary to slow down transfer to the display. -If this value is set to zero, delay is disabled. Any value greater than -zero slows down each write by one microsecond." - -[sed1520/#/haveinverter] -type = boolean -check/type = boolean -default = 1 ; TODO (elektra): default values conversion -description = "The original wiring used an inverter to drive the control lines. If you do -not use an inverter set haveInverter to no." - -[sed1520/#/invertedmapping] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = "On some displays column data in memory is mapped to segment lines from right -to left. This is called inverted mapping (not to be confused with -'haveInverter' from above)." - -[sed1520/#/usehardreset] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = "At least one display is reported (Everbouquet MG1203D) that requires sending -three times 0xFF before a reset during initialization." - -;serialPOS -;================================================== -[serialpos] -default = "" -array = #0 - -[serialpos/#] -type = struct -check/type = any -default = "" -gen/struct/type = SerialPOSDriverConfig -gen/struct/alloc = 0 -description = Configuration for a serialPOS driver. - -[serialpos/#/file] -type = string -default = "serialPOS" -description = name of the shared library to load (without prefix and extension) - -[serialpos/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast - -[serialpos/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 - -[serialpos/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 - -[serialpos/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - -[serialpos/#/device] -type = string -check/type = string -; check/path = ; TODO (elektra): too many plugins -default = /dev/ttyS0 -description = "Device to use in serial mode" - -[serialpos/#/size] -type = string -check/type = string -check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) -check/validation/match = LINE -check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 -default = 16x2 -description = "Specifies the size of the display in characters." - -[serialpos/#/cellsize] -type = string -check/type = string -check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) -check/validation/match = LINE -check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 -default = 5x8 -description = "Specifies the cell size of each character cell on the display in characters." - -[serialpos/#/custom_chars] -type = unsigned_long -check/type = unsigned_long -check/validation = ^([1-9]\d*|0)$ -check/validation/match = LINE -check/validation/message = Must be any positive number including 0 -default = 0 -description = "Specifies the number of custom characters supported by the display. -Custom characters are only used for the rendering of horizontal bars -and vertical bars. For displays whose cell character cell widths are -lower than the number of custom characters supported, -then custom characters will be used to render the horizontal bars. -For more information look at: https://github.com/lcdproc/lcdproc/blob/master/docs/lcdproc-user/drivers/serialPOS.docbook" - -[serialpos/#/type] -type = enum -check/type = enum -check/enum = #5 -check/enum/#0 = AEDEX -check/enum/#1 = CD5220 -check/enum/#2 = Epson -check/enum/#3 = Emax -check/enum/#4 = LogicControls -check/enum/#5 = Ultimate -default = AEDEX -description = "Set the communication protocol to use with the POS display." - -[serialpos/#/speed] -type = unsigned_short -check/type = unsigned_short -check/range = 1200, 2400, 4800, 9600, 19200, 115200 -default = 9600 -description = communication baud rate with the display - -;serialVFD -;================================================== -[serialvfd] -default = "" -array = #0 - -[serialvfd/#] -type = struct -check/type = any -default = "" -gen/struct/type = SerialVFDDriverConfig -gen/struct/alloc = 0 -description = Configuration for a serialVFD driver. - -[serialvfd/#/file] -type = string -default = "serialVFD" -description = name of the shared library to load (without prefix and extension) - -[serialvfd/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast - -[serialvfd/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial brightness. (4 steps 0-250, 251-500, 501-750, 751-1000) - -[serialvfd/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 -description = "Set the initial off-brightness -This value is used when the display is normally -switched off in case LCDd is inactive -(4 steps 0-250, 251-500, 501-750, 751-1000)" - -[serialvfd/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - -[serialvfd/#/type] -type = unsigned_short -check/type = unsigned_short -check/enum = #_17 -check/enum/#0 = nec_fipc8367 -check/enum/#1 = kd_rev_2_1 -check/enum/#2 = noritake_vfd -check/enum/#3 = futaba_vfd -check/enum/#4 = iee_s03601-95b -check/enum/#5 = iee_s03601-96-080 -check/enum/#6 = futaba_na202sd08fa -check/enum/#7 = samsung_20s207da4/20s207da6 -check/enum/#8 = nixdorf_ba6x/vt100 -check/enum/#_9 = 0 -gen/enum/value = 0 -check/enum/#_10 = 1 -gen/enum/value = 1 -check/enum/#_11 = 2 -gen/enum/value = 2 -check/enum/#_12 = 3 -gen/enum/value = 3 -check/enum/#_13 = 4 -gen/enum/value = 4 -check/enum/#_14 = 5 -gen/enum/value = 5 -check/enum/#_15 = 6 -gen/enum/value = 6 -check/enum/#_16 = 7 -gen/enum/value = 7 -check/enum/#_17 = 8 -gen/enum/value = 8 -gen/enum/type = SerialVFDType -default = 0 -description = "Specifies the displaytype.[default: 0] -0 NEC (FIPC8367 based) VFDs. -1 KD Rev 2.1. -2 Noritake VFDs (*). -3 Futaba VFDs -4 IEE S03601-95B -5 IEE S03601-96-080 (*) -6 Futaba NA202SD08FA (allmost IEE compatible) -7 Samsung 20S207DA4 and 20S207DA6 -8 Nixdorf BA6x / VT100 -(* most should work, not tested yet.)" - -[serialvfd/#/use_parallel] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = "'no' if display connected serial, 'yes' if connected parallel. -I.e. serial by default" - -[serialvfd/#/custom-characters] -type = unsigned_long -check/type = unsigned_long -default = 0 -description = "Number of Custom-Characters. default is display type dependent" - -[serialvfd/#/port] -type = string -check/type = string -check/validation = 0x([0-9A-F]{3}) -check/validation/match = LINE -check/validation/message = Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC -default = 0x378 -description = Portaddress where the LPT is. Used in parallel mode only. Usual values are 0x278, 0x378 and 0x3BC. - -[serialvfd/#/portwait] -type = unsigned_short -check/type = unsigned_short -check/range = 0-255 -default = 2 -description = Set parallel port timing delay (us). Used in parallel mode only. +[hd44780/#/ftdi/mode] +type = long +check/type = long +default = 8 +check/range = 4, 8 +description = "" ; TODO -[serialvfd/#/device] -type = string -check/type = string -; check/path = ; TODO (elektra): too many plugins -default = /dev/ttyS1 -description = "Device to use in serial mode. Usual values are /dev/ttyS0 and /dev/ttyS1" +[hd44780/#/ftdi/line_rs] +type = long +check/type = long +default = 1 ; TODO (elektra): default values conversion hex? +description = "" ; TODO -[serialvfd/#/size] -type = string -check/type = string -check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) -check/validation/match = LINE -check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 -default = 20x2 -description = "Specifies the size of the VFD." +[hd44780/#/ftdi/line_rw] +type = long +check/type = long +default = 2 ; TODO (elektra): default values conversion hex? +description = "" ; TODO -[serialvfd/#/speed] -type = unsigned_short -check/type = unsigned_short -check/range = 1200, 2400, 9600, 19200, 115200 -default = 9600 -description = set the serial port speed +[hd44780/#/ftdi/line_en] +type = long +check/type = long +default = 4 ; TODO (elektra): default values conversion hex? +description = "" ; TODO -[serialvfd/#/iso_8859_1] -type = boolean -check/type = boolean -default = 1 ; TODO (elektra): default values conversion -description = "enable ISO 8859 1 compatibility" +[hd44780/#/ftdi/line_backlight] +type = long +check/type = long +default = 8 ; TODO (elektra): default values conversion hex? +description = "" ; TODO -;stv5730 -;================================================== -[stv5730] -default = "" -array = #0 +[hd44780/#/gpio/pin_en] +type = long +check/type = long +default = -1 +description = "required if raspberrypi or gpio is used; +on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default -[stv5730/#] -type = struct -check/type = any -default = "" -gen/struct/type = Stv5730DriverConfig -gen/struct/alloc = 0 -description = Configuration for a stv5730 driver. +[hd44780/#/gpio/pin_rs] +type = long +check/type = long +default = -1 +description = "required if raspberrypi or gpio is used; +on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default -[stv5730/#/file] -type = string -default = "stv5730" -description = name of the shared library to load (without prefix and extension) +[hd44780/#/gpio/pin_rw] +type = long +check/type = long +default = -1 +description = "required if raspberrypi or gpio is used; +on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default -[stv5730/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast +[hd44780/#/gpio/pin_d7] +type = long +check/type = long +default = -1 +description = "required if raspberrypi or gpio is used; +on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default -[stv5730/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 +[hd44780/#/gpio/pin_d6] +type = long +check/type = long +default = -1 +description = "required if raspberrypi or gpio is used; +on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default -[stv5730/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 +[hd44780/#/gpio/pin_d5] +type = long +check/type = long +default = -1 +description = "required if raspberrypi or gpio is used; +on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default -[stv5730/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this +[hd44780/#/gpio/pin_d4] +type = long +check/type = long +default = -1 +description = "required if raspberrypi or gpio is used; +on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default -[stv5730/#/port] -type = string -check/type = string -check/validation = 0x([0-9A-F]{3}) -check/validation/match = LINE -check/validation/message = Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC -default = 0x378 -description = Port the device is connected to +[hd44780/#/gpio/pin_en2] +type = long +check/type = long +default = -1 +description = "required if raspberrypi or gpio is used and 2 controllers are connected; +on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default + +[hd44780/#/gpio/pin_bl] +type = long +check/type = long +default = -1 +description = "required if raspberrypi or gpio is used and backlight (external) is enabled; +on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default -;SureElec +;lb216 ;================================================== -[sureelec] +[lb216] default = "" array = #0 -[sureelec/#] +[lb216/#] type = struct check/type = any default = "" -gen/struct/type = SureElecDriverConfig +gen/struct/type = Lb216DriverConfig gen/struct/alloc = 0 -description = Configuration for a SureElec driver. +description = Configuration for a lb216 driver. -[sureelec/#/file] +[lb216/#/file] type = string -default = "SureElec" +default = "lb216" description = name of the shared library to load (without prefix and extension) -[sureelec/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 480 -check/range = 0-1000 -description = Set the initial contrast - -[sureelec/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 480 -check/range = 0-1000 - -[sureelec/#/offbrightness] +[lb216/#/brightness] type = unsigned_short check/type = unsigned_short -default = 480 -check/range = 0-1000 -description = "Set the initial off-brightness -This value is used when the display is normally -switched off in case LCDd is inactive" +default = 200 +check/range = 0-255 -[sureelec/#/reboot] +[lb216/#/reboot] type = boolean check/type = boolean default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this -[sureelec/#/device] +[lb216/#/device] type = string check/type = string ; check/path = ; TODO (elektra): too many plugins -default = /dev/ttyUSB0 -description = "Port the device is connected to (by default first USB serial port)" +default = /dev/lcd +description = "Select the input device to use" -[sureelec/#/edition] +[lb216/#/speed] type = unsigned_short check/type = unsigned_short -check/range = 1-3 -default = 2 -description = Edition level of the device (can be 1, 2 or 3) - -[sureelec/#/size] -type = string -check/type = string -check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) -check/validation/match = LINE -check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 -default = 16x2 -description = "set display size -Note: The size can be obtained directly from device for edition 2 & 3." +check/range = 2400, 9600 +default = 9600 +description = Set the communication speed -;svga +;lcdm001 ;================================================== -[svga] +[lcdm001] default = "" array = #0 -[svga/#] +[lcdm001/#] type = struct check/type = any default = "" -gen/struct/type = SvgaDriverConfig +gen/struct/type = Lcdm001DriverConfig gen/struct/alloc = 0 -description = Configuration for a svga driver. +description = Configuration for a lcdm001 driver. -[svga/#/file] +[lcdm001/#/file] type = string -default = "svga" +default = "lcdm001" description = name of the shared library to load (without prefix and extension) -[svga/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 500 -check/range = 0-1000 -description = Set the initial contrast - -[svga/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 1-1000 +[lcdm001/#/device] +type = string +check/type = string +; check/path = ; TODO (elektra): too many plugins +default = /dev/ttyS1 +description = "select the device to use" -[svga/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 500 -check/range = 1-1000 +[lcdm001/#/pausekey] +type = enum +check/type = enum +check/enum = #3 +check/enum/#0 = LeftKey +check/enum/#1 = RightKey +check/enum/#2 = UpKey +check/enum/#3 = DownKey +gen/enum/type = Lcdm001Keys +default = LeftKey +description = "Normal Context: Pause/Continue +Menu Context: Enter/select" -[svga/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this +[lcdm001/#/backkey] +type = enum +check/type = enum +check/enum = #3 +check/enum/#0 = LeftKey +check/enum/#1 = RightKey +check/enum/#2 = UpKey +check/enum/#3 = DownKey +gen/enum/type = Lcdm001Keys +default = UpKey +description = "Normal Context: Back(Go to previous screen) +Menu Context: Up/Left" -[svga/#/mode] -type = string -check/type = string -default = G320x240x256 -description = "svgalib mode to use [default: G320x240x256 ] -legal values are supported svgalib modes. See man7 pages for allowed values" +[lcdm001/#/forwardkey] +type = enum +check/type = enum +check/enum = #3 +check/enum/#0 = LeftKey +check/enum/#1 = RightKey +check/enum/#2 = UpKey +check/enum/#3 = DownKey +gen/enum/type = Lcdm001Keys +default = DownKey +description = "Normal Context: Forward(Go to next screen) +Menu Context: Down/Right" -[svga/#/size] -type = string -check/type = string -check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) -check/validation/match = LINE -check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 -default = 20x4 -description = "set display size" +[lcdm001/#/mainmenukey] +type = enum +check/type = enum +check/enum = #3 +check/enum/#0 = LeftKey +check/enum/#1 = RightKey +check/enum/#2 = UpKey +check/enum/#3 = DownKey +gen/enum/type = Lcdm001Keys +default = RightKey +description = "Normal Context: Open main menu +Menu Context: Exit/Cancel" -;text +;linux_input ;================================================== -[text] +[linux_input] default = "" array = #0 -[text/#] +[linux_input/#] type = struct check/type = any default = "" -gen/struct/type = TextDriverConfig +gen/struct/type = Linux_inputDriverConfig gen/struct/alloc = 0 -description = Configuration for a text driver. +description = Configuration for a linux_input driver. -[text/#/file] +[linux_input/#/file] type = string -default = "text" +default = "linux_input" description = name of the shared library to load (without prefix and extension) -[text/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast - -[text/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 - -[text/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 - -[text/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - -[text/#/size] +[linux_input/#/device] type = string check/type = string -check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) -check/validation/match = LINE -check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 -default = 20x4 -description = "set display size" +; check/path = ; TODO (elektra): too many plugins +default = /dev/input/event0 +description = "select the device to use" -;t6963 -;================================================== -[t6963] +[linux_input/#/keys] default = "" array = #0 +description = "specify a non-default key map, eg.: + /linux_input/key/#0/code = 1 + /linux_input/key/#0/button = Enter + sets the keycode 1 to be the Enter key" -[t6963/#] -type = struct -check/type = any -default = "" -gen/struct/type = T6963DriverConfig -gen/struct/alloc = 0 -description = Configuration for a t6963 driver. - -[t6963/#/file] +[linux_input/#/keys/#] type = string -default = "t6963" -description = name of the shared library to load (without prefix and extension) - -[t6963/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast - -[t6963/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 - -[t6963/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 - -[t6963/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this +default = "" +gen/struct/field/ignore = 1 +description = "INGORE: only here to generate tag" -[t6963/#/size] -type = string -check/type = string -check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) -check/validation/match = LINE -check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 -default = 128x64 -description = "set display size in pixels" +[linux_input/#/keys/#/code] +type = unsigned_short +check/type = unsigned_short +default = 0 ; should be required -[t6963/#/port] +[linux_input/#/keys/#/button] type = string check/type = string -check/validation = 0x([2-3][0-9A-F]{2}|400) -check/validation/match = LINE -check/validation/message = Not a valid port declaration. legal: 0x200 - 0x400 -default = 0x378 -description = Parallel port to use - -[t6963/#/bidirectional] -type = boolean -check/type = boolean -default = 1 ; TODO (elektra): default values conversion -description = "Use LPT port in bi-directional mode. This should work on most LPT port and -is required for proper timing!" - -[t6963/#/delaybus] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = "Insert additional delays into reads / writes." - -[t6963/#/cleargraphic] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = "Clear graphic memory on start-up." +default = "" ; should be required -;tyan +;MtxOrb ;================================================== -[tyan] +[mtxorb] default = "" array = #0 -[tyan/#] +[mtxorb/#] type = struct check/type = any default = "" -gen/struct/type = TyanDriverConfig +gen/struct/type = MtxOrbDriverConfig gen/struct/alloc = 0 -description = Configuration for a tyan driver. +description = Configuration for a MtxOrb driver. -[tyan/#/file] +[mtxorb/#/file] type = string -default = "tyan" +default = "MtxOrb" description = name of the shared library to load (without prefix and extension) -[tyan/#/contrast] +[mtxorb/#/contrast] type = unsigned_short check/type = unsigned_short -default = 1000 +default = 480 check/range = 0-1000 -description = Set the initial contrast +description = "Set the initial contrast +NOTE: The driver will ignore this if the display +is a vfd or vkd as they don't have this feature" -[tyan/#/brightness] +[mtxorb/#/brightness] type = unsigned_short check/type = unsigned_short default = 1000 check/range = 0-1000 -[tyan/#/offbrightness] +[mtxorb/#/offbrightness] type = unsigned_short check/type = unsigned_short default = 0 check/range = 0-1000 +description = "Set the initial off-brightness +This value is used when the display is normally +switched off in case LCDd is inactive" -[tyan/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - -[tyan/#/device] +[mtxorb/#/device] type = string check/type = string ; check/path = ; TODO (elektra): too many plugins -default = /dev/lcd +default = /dev/ttyS0 description = "Select the output device to use" -[tyan/#/speed] -type = unsigned_short -check/type = unsigned_short -check/range = 4800, 9600 -default = 9600 -description = Set the communication speed - -[tyan/#/size] +[mtxorb/#/size] type = string check/type = string check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) check/validation/match = LINE check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 -default = 16x2 -description = "set display size" - - -;ula200 -;================================================== -[ula200] -default = "" -array = #0 - -[ula200/#] -type = struct -check/type = any -default = "" -gen/struct/type = Ula200DriverConfig -gen/struct/alloc = 0 -description = Configuration for a ula200 driver. - -[ula200/#/file] -type = string -default = "ula200" -description = name of the shared library to load (without prefix and extension) +default = 20x4 +description = display size -[ula200/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast +[mtxorb/#/type] +type = enum +check/type = enum +check/enum = #3 +check/enum/#0 = lcd +check/enum/#1 = lkd +check/enum/#2 = vfd +check/enum/#3 = vkd +default = lcd +description = "Set the display type" -[ula200/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 +[mtxorb/#/hasadjustablebacklight] +type = boolean +check/type = boolean +gen/struct/field = hasAdjustableBacklight +default = 0 ; TODO (elektra): default values conversion +description = "Some old displays do not have an adjustable backlight but only can +switch the backlight on/off. If you experience randomly appearing block +characters, try setting this to false." -[ula200/#/offbrightness] +[mtxorb/#/speed] type = unsigned_short check/type = unsigned_short -default = 0 -check/range = 0-1000 +check/range = 1200, 2400, 9600, 19200 +default = 19200 +description = Set the communication -[ula200/#/reboot] +[mtxorb/#/keypad_test_mode] type = boolean check/type = boolean default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - -[ula200/#/size] -type = string -check/type = string -check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) -check/validation/match = LINE -check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 -default = 20x4 -description = "Select the LCD size" +description = permits one to test keypad assignment -[ula200/#/keymap_a] +[mtxorb/#/keymap_a] type = string check/type = string -default = Up -description = "If you have a non standard keypad you can associate any keystrings to keys. -There are 6 input key in the CwLnx hardware that generate characters -from 'A' to 'F'. -# -You can leave those unchanged if you have a standard keypad. -You can change it if you want to report other keystrings or have a non -standard keypad." +default = "" +description = "By default no keys are mapped, meaning the keypad is not used at all." -[ula200/#/keymap_b] +[mtxorb/#/keymap_b] type = string check/type = string -default = Down -description = "If you have a non standard keypad you can associate any keystrings to keys. -There are 6 input key in the CwLnx hardware that generate characters -from 'A' to 'F'. -# -You can leave those unchanged if you have a standard keypad. -You can change it if you want to report other keystrings or have a non -standard keypad." +default = "" +description = "By default no keys are mapped, meaning the keypad is not used at all." -[ula200/#/keymap_c] +[mtxorb/#/keymap_c] type = string check/type = string -default = Left -description = "If you have a non standard keypad you can associate any keystrings to keys. -There are 6 input key in the CwLnx hardware that generate characters -from 'A' to 'F'. -# -You can leave those unchanged if you have a standard keypad. -You can change it if you want to report other keystrings or have a non -standard keypad." +default = "" +description = "By default no keys are mapped, meaning the keypad is not used at all." -[ula200/#/keymap_d] +[mtxorb/#/keymap_d] type = string check/type = string -default = Right -description = "If you have a non standard keypad you can associate any keystrings to keys. -There are 6 input key in the CwLnx hardware that generate characters -from 'A' to 'F'. -# -You can leave those unchanged if you have a standard keypad. -You can change it if you want to report other keystrings or have a non -standard keypad." +default = "" +description = "By default no keys are mapped, meaning the keypad is not used at all." -[ula200/#/keymap_e] +[mtxorb/#/keymap_e] type = string check/type = string -default = Enter -description = "If you have a non standard keypad you can associate any keystrings to keys. -There are 6 input key in the CwLnx hardware that generate characters -from 'A' to 'F'. -# -You can leave those unchanged if you have a standard keypad. -You can change it if you want to report other keystrings or have a non -standard keypad." +default = "" +description = "By default no keys are mapped, meaning the keypad is not used at all." -[ula200/#/keymap_f] +[mtxorb/#/keymap_f] type = string check/type = string -default = Escape -description = "If you have a non standard keypad you can associate any keystrings to keys. -There are 6 input key in the CwLnx hardware that generate characters -from 'A' to 'F'. -# -You can leave those unchanged if you have a standard keypad. -You can change it if you want to report other keystrings or have a non -standard keypad." - +default = "" +description = "By default no keys are mapped, meaning the keypad is not used at all." -;sli +;pyramid ;================================================== -[sli] +[pyramid] default = "" array = #0 -[sli/#] +[pyramid/#] type = struct check/type = any default = "" -gen/struct/type = SliDriverConfig +gen/struct/type = PyramidDriverConfig gen/struct/alloc = 0 -description = Configuration for a sli driver. +description = Configuration for a pyramid driver. -[sli/#/file] +[pyramid/#/file] type = string -default = "sli" +default = "pyramid" description = name of the shared library to load (without prefix and extension) -[sli/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast - -[sli/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 - -[sli/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 - -[sli/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - -[sli/#/device] +[pyramid/#/device] type = string check/type = string ; check/path = ; TODO (elektra): too many plugins default = /dev/lcd -description = "Select the output device to use" - -[sli/#/speed] -type = unsigned_short -check/type = unsigned_short -check/range = 1200, 2400, 9600, 19200, 38400, 57600, 115200 -default = 19200 -description = Set the communication speed +description = "device to connect to" -;vlsys_m428 +;text ;================================================== -[vlsys_m428] +[text] default = "" array = #0 -[vlsys_m428/#] +[text/#] type = struct check/type = any default = "" -gen/struct/type = Vlsys_m428DriverConfig +gen/struct/type = TextDriverConfig gen/struct/alloc = 0 -description = Configuration for a vlsys_m428 driver. +description = Configuration for a text driver. -[vlsys_m428/#/file] +[text/#/file] type = string -default = "vlsys_m428" +default = "text" description = name of the shared library to load (without prefix and extension) -[vlsys_m428/#/contrast] +[text/#/contrast] type = unsigned_short check/type = unsigned_short default = 1000 check/range = 0-1000 description = Set the initial contrast -[vlsys_m428/#/brightness] +[text/#/brightness] type = unsigned_short check/type = unsigned_short default = 1000 check/range = 0-1000 -[vlsys_m428/#/offbrightness] +[text/#/offbrightness] type = unsigned_short check/type = unsigned_short default = 0 check/range = 0-1000 -[vlsys_m428/#/reboot] +[text/#/reboot] type = boolean check/type = boolean default = 0 ; TODO (elektra): default values conversion description = Reinitialize the LCD`s BIOS normally you shouldn`t need this -[vlsys_m428/#/device] +[text/#/size] type = string check/type = string -; check/path = ; TODO (elektra): too many plugins -default = /dev/ttyUSB0 -description = "Select the output device to use" +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 20x4 +description = "set display size" ;xosd ;================================================== @@ -4842,56 +1781,3 @@ type = string check/type = string default = "-*-terminus-*-r-*-*-*-320-*-*-*-*-*" description = "X font to use, in XLFD format, as given by 'xfontsel'" - -;yard2LCD -;================================================== -[yard2lcd] -default = "" -array = #0 - -[yard2lcd/#] -type = struct -check/type = any -default = "" -gen/struct/type = Yard2LCDDriverConfig -gen/struct/alloc = 0 -description = Configuration for a yard2LCD driver. - -[yard2lcd/#/file] -type = string -default = "yard2LCD" -description = name of the shared library to load (without prefix and extension) - -[yard2lcd/#/contrast] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 -description = Set the initial contrast - -[yard2lcd/#/brightness] -type = unsigned_short -check/type = unsigned_short -default = 1000 -check/range = 0-1000 - -[yard2lcd/#/offbrightness] -type = unsigned_short -check/type = unsigned_short -default = 0 -check/range = 0-1000 - -[yard2lcd/#/reboot] -type = boolean -check/type = boolean -default = 0 ; TODO (elektra): default values conversion -description = Reinitialize the LCD`s BIOS normally you shouldn`t need this - -[yard2lcd/#/size] -type = string -check/type = string -check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) -check/validation/match = LINE -check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 -default = 20x4 -description = "set display size" \ No newline at end of file diff --git a/server/specification/LCDd-spec_notupdated.ini b/server/specification/LCDd-spec_notupdated.ini new file mode 100644 index 00000000..1b2d5d7b --- /dev/null +++ b/server/specification/LCDd-spec_notupdated.ini @@ -0,0 +1,3109 @@ +; This file contains the specifications for drivers that haven't been updated yet. + +;ea65 +;================================================== +[ea65] +default = "" +array = #0 + +[ea65/#] +type = struct +check/type = any +default = "" +gen/struct/type = Ea65DriverConfig +gen/struct/alloc = 0 +description = Configuration for a ea65 driver. + +[ea65/#/file] +type = string +default = "ea65" +description = name of the shared library to load (without prefix and extension) + +[ea65/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[ea65/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 500 +check/range = 0-1000 +description = "As the VFD is self luminescent we don't have a backlight +But we can use the backlight functions to control the front LEDs +Brightness 0 to 299 -> LEDs off +Brightness 300 to 699 -> LEDs half bright +Brightness 700 to 1000 -> LEDs full bright" + +[ea65/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 +description = OffBrightness is the the value used for the 'backlight off' state + +[ea65/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +;EyeboxOne +;================================================== +[eyeboxone] +default = "" +array = #0 + +[eyeboxone/#] +type = struct +check/type = any +default = "" +gen/struct/type = EyeboxOneDriverConfig +gen/struct/alloc = 0 +description = Configuration for a EyeboxOne driver. + +[eyeboxone/#/file] +type = string +default = "EyeboxOne" +description = name of the shared library to load (without prefix and extension) + +[eyeboxone/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[eyeboxone/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[eyeboxone/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[eyeboxone/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[eyeboxone/#/device] +type = string +check/type = string +; check/path = ; TODO (elektra): too many plugins +default = /dev/ttyS1 +description = Select the output device to use + +[eyeboxone/#/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 20x4 +description = Set the display size + +[eyeboxone/#/backlight] +type = boolean +check/type = boolean +default = 1 ; TODO (elektra): default values conversion +description = Switch on the backlight? + +[eyeboxone/#/cursor] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Switch on the cursor? + +[eyeboxone/#/speed] +type = unsigned_short +check/type = unsigned_short +check/range = 1200, 2400, 9600, 19200 +default = 19200 +description = Set the communication speed + +[eyeboxone/#/leftkey] +type = string +check/type = string +default = D +description = "Enter Key is a \r character, so it's hardcoded in the driver" + +[eyeboxone/#/rightkey] +type = string +check/type = string +default = C +description = "Enter Key is a \r character, so it's hardcoded in the driver" + +[eyeboxone/#/upkey] +type = string +check/type = string +default = A +description = "Enter Key is a \r character, so it's hardcoded in the driver" + +[eyeboxone/#/downkey] +type = string +check/type = string +default = B +description = "Enter Key is a \r character, so it's hardcoded in the driver" + +[eyeboxone/#/escapekey] +type = string +check/type = string +default = P +description = "Enter Key is a \r character, so it's hardcoded in the driver" + + +[eyeboxone/#/keypad_test_mode] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = "You can find out which key of your display sends which +character by setting keypad_test_mode to yes and running +LCDd. LCDd will output all characters it receives. +Afterwards you can modify the settings above and set +keypad_set_mode to no again." + +;futaba +;================================================== +[futaba] +default = "" +array = #0 + +[futaba/#] +type = struct +check/type = any +default = "" +gen/struct/type = FutabaDriverConfig +gen/struct/alloc = 0 +description = Configuration for a futaba driver. + +[futaba/#/file] +type = string +default = "futaba" +description = name of the shared library to load (without prefix and extension) + +;g15 +;================================================== +[g15] +default = "" +array = #0 + +[g15/#] +type = struct +check/type = any +default = "" +gen/struct/type = G15DriverConfig +gen/struct/alloc = 0 +description = Configuration for a g15 driver. + +[g15/#/file] +type = string +default = "g15" +description = name of the shared library to load (without prefix and extension) + +[g15/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[g15/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[g15/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[g15/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[g15/#/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 20x5 +description = Display size (currently unused) + +;glcd +;================================================== +[glcd] +default = "" +array = #0 + +[glcd/#] +type = struct +check/type = any +default = "" +gen/struct/type = GlcdDriverConfig +gen/struct/alloc = 0 +description = Configuration for a glcd driver. + +[glcd/#/file] +type = string +default = "glcd" +description = name of the shared library to load (without prefix and extension) + +[glcd/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 600 +check/range = 0-1000 +description = Set the initial contrast + +[glcd/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 800 +check/range = 0-1000 + +[glcd/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 100 +check/range = 0-1000 + +[glcd/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[glcd/#/connectiontype] +type = enum +check/type = enum +check/enum = #6 +check/enum/#0 = t6963 +check/enum/#1 = png +check/enum/#2 = serdisplib +check/enum/#3 = glcd2usb +check/enum/#4 = x11 +check/enum/#5 = picolcdgfx +check/enum/#6 = xyz +gen/enum/type = GlcdConnectionType +default = t6963 +description = Select what type of connection. See documentation for types. + +[glcd/#/size] +type = string +check/type = string +check/validation = (640|[1-9]|[1-9][0-9]|[1-5][0-9][0-9]|6[0-3][0-9])x(480|[1-9]|[1-9][0-9]|[1-3][0-9][0-9]|4[0-7][0-9]) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. legal: 1x1 - 640x480 +default = 128x64 +description = Width and height of the display in pixel. The supported sizes may depend on the ConnectionType + +[glcd/#/cellsize] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 6x8 +description = Width and height of a character cell in pixels. This value is only used \ +the driver has been compiled with FreeType and it is enabled. Otherwise the\ +default 6x8 cell is used. + +[glcd/#/useft2] +type = boolean +check/type = boolean +default = 1 ; TODO (elektra): default values conversion +description = If LCDproc has been compiled with FreeType 2 support this option can be used\ +to turn if off intentionally. + +[glcd/#/normal_font] +type = string +check/type = string +; check/path = ; TODO (elektra): too many plugins +default = /usr/local/lib/X11/fonts/TTF/andalemo.ttf +description = Path to font file to use for FreeType rendering. This font must be monospace\ +and should contain some special Unicode characters like arrows (Andale Mono\ +is recommended and can be fetched at http://corefonts.sf.net). + +[glcd/#/fonthasicons] +type = boolean +check/type = boolean +default = 1 ; TODO (elektra): default values conversion +description = Some fonts miss the Unicode characters used to represent icons. In this case\ +the built-in 5x8 font can used if this option is turned off. + +[glcd/#/keyrepeatdelay] +type = unsigned_short +check/type = unsigned_short +check/range = 0-3000 +default = 500 +description = Time (ms) from first key report to first repeat. Set to 0 to disable repeated key reports. + +[glcd/#/keymap_a] +type = string +check/type = string +default = Up +description = "Assign key strings to keys. There may be up to 16 keys numbered 'A' to 'Z'. +By default keys 'A' to 'F' are assigned Up, Down, Left, Right, Enter, Escape." + +[glcd/#/keymap_b] +type = string +check/type = string +default = Down +description = "Assign key strings to keys. There may be up to 16 keys numbered 'A' to 'Z'. +By default keys 'A' to 'F' are assigned Up, Down, Left, Right, Enter, Escape." + +[glcd/#/keymap_c] +type = string +check/type = string +default = Left +description = "Assign key strings to keys. There may be up to 16 keys numbered 'A' to 'Z'. +By default keys 'A' to 'F' are assigned Up, Down, Left, Right, Enter, Escape." + +[glcd/#/keymap_d] +type = string +check/type = string +default = Right +description = "Assign key strings to keys. There may be up to 16 keys numbered 'A' to 'Z'. +By default keys 'A' to 'F' are assigned Up, Down, Left, Right, Enter, Escape." + +[glcd/#/keymap_e] +type = string +check/type = string +default = Enter +description = "Assign key strings to keys. There may be up to 16 keys numbered 'A' to 'Z'. +By default keys 'A' to 'F' are assigned Up, Down, Left, Right, Enter, Escape." + +[glcd/#/keymap_f] +type = string +check/type = string +default = Escape +description = "Assign key strings to keys. There may be up to 16 keys numbered 'A' to 'Z'. +By default keys 'A' to 'F' are assigned Up, Down, Left, Right, Enter, Escape." + +[glcd/#/keyrepeatinterval] +type = unsigned_short +check/type = unsigned_short +check/range = 0-3000 +default = 500 +description = Time (ms) between repeated key reports. Ignored if KeyRepeatDelay is disabled (set to zero). + +[glcd/#/port] +type = string +check/type = string +check/validation = 0x([2-3][0-9A-F]{2}|400) +check/validation/match = LINE +check/validation/message = Not a valid port declaration. legal: 0x200 - 0x400 +default = 0x378 +description = Parallel port to use + +[glcd/#/bidirectional] +type = boolean +check/type = boolean +default = 1 ; TODO (elektra): default values conversion +description = Use LPT port in bi-directional mode. This should work on most LPT port\ +and is required for proper timing! + +[glcd/#/delaybus] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Insert additional delays into reads / writes. + +[glcd/#/serdisp_name] +type = string +check/type = string +default = t6963 +description = Name of the underlying serdisplib driver, e.g. ctinclud. See +serdisplib documentation for details. + +[glcd/#/serdisp_device] +type = string +check/type = string +; check/path = ; TODO (elektra): too many plugins +default = /dev/ppi0 +description = The display device to use, e.g. serraw:/dev/ttyS0,\ +parport:/dev/parport0 or USB:07c0/1501 + + +;TODO (elektra): Are quotes really required now when switching to libelektra? + +[glcd/#/serdisp_options] +type = string +check/type = string +default = "INVERT=1" +description = "Options string to pass to serdisplib during initialization. Use +this to set any display related options (e.g. wiring). The display size is +always set based on the Size configured above! By default, no options are +set. +Important: The value must be quoted as it contains equal signs!" + +[glcd/#/x11_pixelsize] +type = string +check/type = string +check/validation = \d+\+\d+ +check/validation/match = LINE +default = 3+1 +check/validation/message = [number]+[number] has to be provided, eg: 3+1 or 5+2 +description = "Each LCD dot is drawn in the X window as a filled rectangle of this size + plus a gap between each filled rectangle. A PixelSize of 3+1 + would draw a 3x3 filled rectangle with a gap of 1 pixel to the right and + bottom, effectively using a 4x4 area of the window. Default is 3+1." + +[glcd/#/x11_pixelcolor] +type = string +check/type = string +check/validation = 0x[0-9A-F]{6} +check/validation/match = LINE +check/validation/message = Colors are in RRGGBB format prefixed with "0x" +default = 0x000000 +description = The color of each dot at full contrast. + +[glcd/#/x11_backlightcolor] +type = string +check/type = string +check/validation = 0x[0-9A-F]{6} +check/validation/match = LINE +check/validation/message = Colors are in RRGGBB format prefixed with "0x" +default = 0x80FF80 +description = The color of the backlight as full brightness. + +[glcd/#/x11_border] +type = unsigned_long +check/type = unsigned_long +default = 20 +description = Adds a border (empty space) around the LCD portion of X11 window. + +[glcd/#/x11_inverted] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Inverts the pixels. + +[glcd/#/picolcdgfx_keytimeout] +type = unsigned_long +check/type = unsigned_long +; check/range = 1- ; TODO (elektra): open ranges +default = 125 +description = Time in ms for usb_read to wait on a key press. + +[glcd/#/picolcdgfx_inverted] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Inverts the pixels. + +;glcdlib +;================================================== +[glcdlib] +default = "" +array = #0 + +[glcdlib/#] +type = struct +check/type = any +default = "" +gen/struct/type = GlcdlibDriverConfig +gen/struct/alloc = 0 +description = Configuration for a glcdlib driver. + +[glcdlib/#/file] +type = string +default = "glcdlib" +description = name of the shared library to load (without prefix and extension) + +[glcdlib/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 50 +check/range = 0-100 +description = Set the initial contrast + +[glcdlib/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 50 +check/range = 0-100 + +[glcdlib/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[glcdlib/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[glcdlib/#/driver] +type = string +check/type = string +default = image +description = " +Specify which graphical display supported by graphlcd-base to use. + Legal values for GRAPHLCD-DRIVER are + specified in graphlcd's configuration file /etc/graphlcd.conf. + For graphlcd 0.13 they comprise avrctl, framebuffer, gu140x32f, gu256x64-372, + gu256x64C-3xx0, hd61830, image, ks0108, noritake800, sed1330, sed1520, serdisp, simlcd, t6963c +" + +[glcdlib/#/CharEncoding] +type = string +check/type = string +default = iso8859-2 +description = "character encoding to use" + +[glcdlib/#/useft2] +type = boolean +check/type = boolean +default = 1 ; TODO (elektra): default values conversion +description = "no=use graphlcd bitmap fonts (they have only one size / font file) +yes=use fonts supported by FreeType2 (needs Freetype2 support in +libglcdprocdriver and its dependants)" + +[glcdlib/#/textresolution] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 16x4 +description = "Text resolution in fixed width characters. +(if it won't fit according to available physical pixel resolution +and the minimum available font face size in pixels, then +'DebugBorder' will automatically be turned on)" + +[glcdlib/#/fontfile] +type = string +check/type = string +; check/path = ; TODO (elektra): too many plugins +default = /usr/share/fonts/corefonts/courbd.ttf +description = "path to font file to use" + +[glcdlib/#/minfontfacesize] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 7x12 +description = "path to font file to use" + +[glcdlib/#/backlight] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion + +[glcdlib/#/upsidedown] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion + +[glcdlib/#/invert] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion + +[glcdlib/#/showdebugframe] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion + +[glcdlib/#/showbigborder] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion + +[glcdlib/#/showthinborder] +type = boolean +check/type = boolean +default = 1 ; TODO (elektra): default values conversion + +[glcdlib/#/pixelshiftx] +type = unsigned_short +check/type = unsigned_short +default = 0 + +[glcdlib/#/pixelshifty] +type = unsigned_short +check/type = unsigned_short +default = 2 + +;icp_a106 +;================================================== +[icp_a106] +default = "" +array = #0 + +[icp_a106/#] +type = struct +check/type = any +default = "" +gen/struct/type = Icp_a106DriverConfig +gen/struct/alloc = 0 +description = Configuration for a icp_a106 driver. + +[icp_a106/#/file] +type = string +default = "icp_a106" +description = name of the shared library to load (without prefix and extension) + +[icp_a106/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[icp_a106/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[icp_a106/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[icp_a106/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[icp_a106/#/device] +type = string +check/type = string +; check/path = ; TODO (elektra): too many plugins +default = /dev/lcd +description = "Device of the serial, I2C, or SPI interface" + +[icp_a106/#/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 20x2 +description = Display dimensions + +;IOWarrior +;================================================== +[iowarrior] +default = "" +array = #0 + +[iowarrior/#] +type = struct +check/type = any +default = "" +gen/struct/type = IOWarriorDriverConfig +gen/struct/alloc = 0 +description = Configuration for a IOWarrior driver. + +[iowarrior/#/file] +type = string +default = "IOWarrior" +description = name of the shared library to load (without prefix and extension) + +[iowarrior/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[iowarrior/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[iowarrior/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[iowarrior/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[iowarrior/#/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 20x4 +description = Display dimensions + +[iowarrior/#/serialnumber] +type = string +check/type = any +default = 00000674 +description = serial number. Must be exactly as listed by usbview\ +(if not given, the 1st IOWarrior found gets used) + +[iowarrior/#/extendedmode] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = "If you have an HD66712, a KS0073 or another 'almost HD44780-compatible', +set this flag to get into extended mode (4-line linear)." + +[iowarrior/#/lastline] +type = boolean +check/type = boolean +default = 1 ; TODO (elektra): default values conversion +description = "Specifies if the last line is pixel addressable (yes) or it controls an +underline effect (no)." + +;imon +;================================================== +[imon] +default = "" +array = #0 + +[imon/#] +type = struct +check/type = any +default = "" +gen/struct/type = ImonDriverConfig +gen/struct/alloc = 0 +description = Configuration for a imon driver. + +[imon/#/file] +type = string +default = "imon" +description = name of the shared library to load (without prefix and extension) + +[imon/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[imon/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[imon/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[imon/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[imon/#/device] +type = string +check/type = string +; check/path = ; TODO (elektra): too many plugins +default = /dev/lcd0 +description = "select the device to use" + +[imon/#/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 16x2 +description = Display dimensions + +[imon/#/charmap] +type = enum +check/type = enum +check/enum = #5 +check/enum/#0 = hd44780_euro +check/enum/#1 = upd16314 +check/enum/#2 = hd44780_koi8_r +check/enum/#3 = hd44780_cp1251 +check/enum/#4 = hd44780_8859_5 +check/enum/#5 = none +gen/enum/type = IMonCharmap +default = none +description = "Character map to to map ISO-8859-1 to the displays character set. (upd16314, hd44780_koi8_r, +hd44780_cp1251, hd44780_8859_5 are possible if compiled with additional +charmaps)" + +;imonlcd +;================================================== +[imonlcd] +default = "" +array = #0 + +[imonlcd/#] +type = struct +check/type = any +default = "" +gen/struct/type = ImonlcdDriverConfig +gen/struct/alloc = 0 +description = Configuration for a imonlcd driver. + +[imonlcd/#/file] +type = string +default = "imonlcd" +description = name of the shared library to load (without prefix and extension) + +[imonlcd/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 200 +check/range = 0-1000 +description = Set the initial contrast + +[imonlcd/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[imonlcd/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[imonlcd/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[imonlcd/#/protocol] +type = string +check/type = string +check/enum = #3 +check/enum/#0 = 15c2:ffdc +check/enum/#1 = 15c2:0038 +check/enum/#2 = 0 +gen/enum/#2/value = 0 +check/enum/#3 = 1 +gen/enum/#3/value = 1 +gen/enum/type = IMonLCDProtocol +default = 0 +description = "Specify which iMon protocol should be used +Choose 0 for 15c2:ffdc device, +Choose 1 for 15c2:0038 device" + +[imonlcd/#/onexit] +type = unsigned_short +check/type = unsigned_short +check/range = 0-2 +default = 1 +description = "Set the exit behavior +0 means leave shutdown message, +1 means show the big clock, +2 means blank device" + +[imonlcd/#/device] +type = string +check/type = string +; check/path = ; TODO (elektra): too many plugins +default = /dev/lcd0 +description = "select the output device to use" + +[imonlcd/#/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 96x16 +description = Specify the size of the display in pixels + +[imonlcd/#/backlight] +type = boolean +check/type = boolean +default = 1 ; TODO (elektra): default values conversion +description = "Set the backlight state" + +[imonlcd/#/discmode] +type = enum +check/type = enum +check/enum = #1 +check/enum/#0 = 0 +check/enum/#1 = 1 +gen/enum/type = IMonLCDDiscMode +default = 0 +description = "Set the disc mode +0 => spin the 'slim' disc - two disc segments, +1 => their complement spinning;" + +;IrMan +;================================================== +[irman] +default = "" +array = #0 + +[irman/#] +type = struct +check/type = any +default = "" +gen/struct/type = IrManDriverConfig +gen/struct/alloc = 0 +description = Configuration for a IrMan driver. + +[irman/#/file] +type = string +default = "IrMan" +description = name of the shared library to load (without prefix and extension) + +[irman/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[irman/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[irman/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[irman/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[irman/#/device] +type = string +check/type = string +; check/path = ; TODO (elektra): too many plugins +default = /dev/irman +description = "select the device to use" + +[irman/#/config] +type = string +check/type = string +; check/path = ; TODO (elektra): too many plugins +default = /etc/irman.cfg +description = "Select the configuration file to use" + +;irtrans +;================================================== +[irtrans] +default = "" +array = #0 + +[irtrans/#] +type = struct +check/type = any +default = "" +gen/struct/type = IrtransDriverConfig +gen/struct/alloc = 0 +description = Configuration for a irtrans driver. + +[irtrans/#/file] +type = string +default = "irtrans" +description = name of the shared library to load (without prefix and extension) + +[irtrans/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[irtrans/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[irtrans/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[irtrans/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[irtrans/#/backlight] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = "Does the device have a backlight?" + +[irtrans/#/hostname] +type = string +check/type = string +default = localhost +description = "IRTrans device to connect to" + +[irtrans/#/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 16x2 +description = Specify the size of the display in pixels + +;joy +;================================================== +[joy] +default = "" +array = #0 + +[joy/#] +type = struct +check/type = any +default = "" +gen/struct/type = JoyDriverConfig +gen/struct/alloc = 0 +description = Configuration for a joy driver. + +[joy/#/file] +type = string +default = "joy" +description = name of the shared library to load (without prefix and extension) + +[joy/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[joy/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[joy/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[joy/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[joy/#/device] +type = string +check/type = string +; check/path = ; TODO (elektra): too many plugins +default = /dev/js0 +description = "Select the input device to use" + +[joy/#/map_axis1neg] +type = string +check/type = string +default = Left +description = "set the axis map" + +[joy/#/map_axis1pos] +type = string +check/type = string +default = Right +description = "set the axis map" + +[joy/#/map_axis2neg] +type = string +check/type = string +default = Up +description = "set the axis map" + +[joy/#/map_axis2pos] +type = string +check/type = string +default = Down +description = "set the axis map" + +[joy/#/map_button1] +type = string +check/type = string +default = Enter +description = "set the button map" + +[joy/#/map_button2] +type = string +check/type = string +default = Escape +description = "set the button map" + +;lcterm +;================================================== +[lcterm] +default = "" +array = #0 + +[lcterm/#] +type = struct +check/type = any +default = "" +gen/struct/type = LctermDriverConfig +gen/struct/alloc = 0 +description = Configuration for a lcterm driver. + +[lcterm/#/file] +type = string +default = "lcterm" +description = name of the shared library to load (without prefix and extension) + +[lcterm/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[lcterm/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[lcterm/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[lcterm/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[lcterm/#/device] +type = string +check/type = string +; check/path = ; TODO (elektra): too many plugins +default = /dev/ttyS1 +description = "select the device to use" + +[lcterm/#/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 16x2 +description = Specify the size of the display in pixels + +;lirc +;================================================== +[lirc] +default = "" +array = #0 + +[lirc/#] +type = struct +check/type = any +default = "" +gen/struct/type = LircDriverConfig +gen/struct/alloc = 0 +description = Configuration for a lirc driver. + +[lirc/#/file] +type = string +default = "lirc" +description = name of the shared library to load (without prefix and extension) + +[lirc/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[lirc/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[lirc/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[lirc/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[lirc/#/lircrc] +type = string +check/type = string +; check/path = ; TODO (elektra): too many plugins +default = ~/.lircrc +description = "select the device to use" + +[lirc/#/prog] +type = string +check/type = string +default = lcdd +description = "Must be the same as in your lircrc" + +;lis +;================================================== +[lis] +default = "" +array = #0 + +[lis/#] +type = struct +check/type = any +default = "" +gen/struct/type = LisDriverConfig +gen/struct/alloc = 0 +description = Configuration for a lis driver. + +[lis/#/file] +type = string +default = "lis" +description = name of the shared library to load (without prefix and extension) + +[lis/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[lis/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = "Set the initial brightness +0-250 = 25%, 251-500 = 50%, 501-750 = 75%, 751-1000 = 100%" + +[lis/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[lis/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[lis/#/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 16x2 +description = Columns by lines + +[lis/#/vendorid] +type = string +check/type = string +check/validation = 0x([0-9A-F]{4}) +check/validation/match = LINE +check/validation/message = Not a valid size VendorID: 0x0000-0xFFFF is allowed +default = 0x0403 +description = USB Vendor ID. Change only if testing a compatible device. + +[lis/#/productid] +type = string +check/type = string +check/validation = 0x([0-9A-F]{4}) +check/validation/match = LINE +check/validation/message = Not a valid size ProductID: 0x0000-0xFFFF is allowed +default = 0x6001 +description = USB Product ID. Change only if testing a compatible device. + +[lis/#/lastline] +type = boolean +check/type = boolean +default = 1 ; TODO (elektra): default values conversion +description = "Specifies if the last line is pixel addressable (yes) or it only controls an +underline effect (no)" + +;MD8800 +;================================================== +[md8800] +default = "" +array = #0 + +[md8800/#] +type = struct +check/type = any +default = "" +gen/struct/type = MD8800DriverConfig +gen/struct/alloc = 0 +description = Configuration for a MD8800 driver. + +[md8800/#/file] +type = string +default = "MD8800" +description = name of the shared library to load (without prefix and extension) + +[md8800/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[md8800/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[md8800/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 +description = "Set the initial off-brightness +This value is used when the display is normally +switched off in case LCDd is inactive" + +[md8800/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[md8800/#/device] +type = string +check/type = string +; check/path = ; TODO (elektra): too many plugins +default = /dev/ttyS1 +description = "select the device to use" + +[md8800/#/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 16x2 +description = display size + +;mdm166a +;================================================== +[mdm166a] +default = "" +array = #0 + +[mdm166a/#] +type = struct +check/type = any +default = "" +gen/struct/type = Mdm166aDriverConfig +gen/struct/alloc = 0 +description = Configuration for a mdm166a driver. + +[mdm166a/#/file] +type = string +default = "mdm166a" +description = name of the shared library to load (without prefix and extension) + +[mdm166a/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[mdm166a/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[mdm166a/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[mdm166a/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[mdm166a/#/clock] +type = enum +check/type = enum +check/enum = #2 +check/enum/#0 = no +check/enum/#1 = small +check/enum/#2 = big +default = no +description = "Show self-running clock after LCDd shutdown" + +[mdm166a/#/dimming] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = "Dim display, no dimming gives full brightness" + +[mdm166a/#/offdimming] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = "Dim display in case LCDd is inactive" + +;ms6931 +;================================================== +[ms6931] +default = "" +array = #0 + +[ms6931/#] +type = struct +check/type = any +default = "" +gen/struct/type = Ms6931DriverConfig +gen/struct/alloc = 0 +description = Configuration for a ms6931 driver. + +[ms6931/#/file] +type = string +default = "ms6931" +description = name of the shared library to load (without prefix and extension) + +[ms6931/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[ms6931/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[ms6931/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[ms6931/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[ms6931/#/device] +type = string +check/type = string +; check/path = ; TODO (elektra): too many plugins +default = /dev/ttyS1 +description = "select the device to use" + +[ms6931/#/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 16x2 +description = display size + +;mtc_s16209x +;================================================== +[mtc_s16209x] +default = "" +array = #0 + +[mtc_s16209x/#] +type = struct +check/type = any +default = "" +gen/struct/type = Mtc_s16209xDriverConfig +gen/struct/alloc = 0 +description = Configuration for a mtc_s16209x driver. + +[mtc_s16209x/#/file] +type = string +default = "mtc_s16209x" +description = name of the shared library to load (without prefix and extension) + +[mtc_s16209x/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[mtc_s16209x/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 200 +check/range = 0-255 + +[mtc_s16209x/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[mtc_s16209x/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[mtc_s16209x/#/device] +type = string +check/type = string +; check/path = ; TODO (elektra): too many plugins +default = /dev/lcd +description = "Select the output device to use" + +;mx5000 +;================================================== +[mx5000] +default = "" +array = #0 + +[mx5000/#] +type = struct +check/type = any +default = "" +gen/struct/type = Mx5000DriverConfig +gen/struct/alloc = 0 +description = Configuration for a mx5000 driver. + +[mx5000/#/file] +type = string +default = "mx5000" +description = name of the shared library to load (without prefix and extension) + +[mx5000/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[mx5000/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[mx5000/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[mx5000/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[mx5000/#/device] +type = string +check/type = string +; check/path = ; TODO (elektra): too many plugins +default = /dev/hiddev0 +description = "Select the output device to use" + +[mx5000/#/waitafterrefresh] +type = unsigned_long +check/type = unsigned_long +; check/range = 1- ; TODO (elektra): open ranges +default = 1000 +description = Time to wait in ms after the refresh screen has been sent + +;NoritakeVFD +;================================================== +[noritakevfd] +default = "" +array = #0 + +[noritakevfd/#] +type = struct +check/type = any +default = "" +gen/struct/type = NoritakeVFDDriverConfig +gen/struct/alloc = 0 +description = Configuration for a NoritakeVFD driver. + +[noritakevfd/#/file] +type = string +default = "NoritakeVFD" +description = name of the shared library to load (without prefix and extension) + +[noritakevfd/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[noritakevfd/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[noritakevfd/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 +description = "Set the initial off-brightness +This value is used when the display is normally +switched off in case LCDd is inactive" + +[noritakevfd/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[noritakevfd/#/device] +type = string +check/type = string +; check/path = ; TODO (elektra): too many plugins +default = /dev/lcd +description = "device where the VFD is. Usual values are /dev/ttyS0 and /dev/ttyS1" + +[noritakevfd/#/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 20x4 +description = display size + +[noritakevfd/#/speed] +type = unsigned_long +check/type = unsigned_long +check/range = 1200, 2400, 9600, 19200, 115200 +default = 19200 +description = set the serial port speed + +[noritakevfd/#/parity] +type = unsigned_long +check/type = unsigned_long +check/range = 0-2 +default = 0 +description = "Set serial data parity +Meaning: 0(=none), 1(=odd), 2(=even)" + +;Olimex_MOD_LCD1x9 +;================================================== +[olimex_mod_lcd1x9] +default = "" +array = #0 + +[olimex_mod_lcd1x9/#] +type = struct +check/type = any +default = "" +gen/struct/type = Olimex_MOD_LCD1x9DriverConfig +gen/struct/alloc = 0 +description = Configuration for a Olimex_MOD_LCD1x9 driver. + +[olimex_mod_lcd1x9/#/file] +type = string +default = "Olimex_MOD_LCD1x9" +description = name of the shared library to load (without prefix and extension) + +[olimex_mod_lcd1x9/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[olimex_mod_lcd1x9/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[olimex_mod_lcd1x9/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[olimex_mod_lcd1x9/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[olimex_mod_lcd1x9/#/device] +type = string +check/type = string +; check/path = ; TODO (elektra): too many plugins +default = /dev/i2c-0 +description = "device file of the i2c controller" + +;picolcd +;================================================== +[picolcd] +default = "" +array = #0 + +[picolcd/#] +type = struct +check/type = any +default = "" +gen/struct/type = PicolcdDriverConfig +gen/struct/alloc = 0 +description = Configuration for a picolcd driver. + +[picolcd/#/file] +type = string +default = "picolcd" +description = name of the shared library to load (without prefix and extension) + +[picolcd/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[picolcd/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = "Set the initial brightness [default: 1000; legal: 0 - 1000]. Works only +with the 20x4 device" + +[picolcd/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 +description = "Set the brightness while the backlight is 'off'. +Works only with the 20x4 device." + +[picolcd/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[picolcd/#/keytimeout] +type = unsigned_short +check/type = unsigned_short +check/range = 0-1000 +default = 500 +description = "KeyTimeout is only used if the picoLCD driver is built with libusb-0.1. When +built with libusb-1.0 key and IR data is input asynchronously so there is no +need to wait for the USB data. +KeyTimeout is the time in ms that LCDd spends waiting for a key press before +cycling through other duties. Higher values make LCDd use less CPU time and +make key presses more detectable. Lower values make LCDd more responsive +but a little prone to missing key presses. 500 (.5 second) is the default +and a balanced value." + +[picolcd/#/keyrepeatdelay] +type = unsigned_short +check/type = unsigned_short +check/range = 0-3000 +default = 300 +description = "Key auto repeat is only available if the picoLCD driver is built with +libusb-1.0. Use KeyRepeatDelay and KeyRepeatInterval to configure key auto +repeat. +# +Key auto repeat delay (time in ms from first key report to first repeat). Use +zero to disable auto repeat." + +[picolcd/#/keyrepeatinterval] +type = unsigned_short +check/type = unsigned_short +check/range = 0-3000 +default = 200 +description = "Key auto repeat interval (time in ms between repeat reports). Only used if +KeyRepeatDelay is not zero." + +[picolcd/#/backlight] +type = boolean +check/type = boolean +default = 1 ; TODO (elektra): default values conversion +description = Sets the initial state of the backlight upon start-up. + +[picolcd/#/linklights] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Link the key lights to the backlight? + +[picolcd/#/keylights] +type = boolean +check/type = boolean +default = 1 ; TODO (elektra): default values conversion +description = Light the keys? + +[picolcd/#/key0light] +type = boolean +check/type = boolean +default = 1 ; TODO (elektra): default values conversion +description = "If Keylights is on, the you can unlight specific keys below: +Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. +There is no LED for the +/- keys. This is a handy way to indicate to users +which keys are disabled." + +[picolcd/#/key1light] +type = boolean +check/type = boolean +default = 1 ; TODO (elektra): default values conversion +description = "If Keylights is on, the you can unlight specific keys below: +Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. +There is no LED for the +/- keys. This is a handy way to indicate to users +which keys are disabled." + +[picolcd/#/key2light] +type = boolean +check/type = boolean +default = 1 ; TODO (elektra): default values conversion +description = "If Keylights is on, the you can unlight specific keys below: +Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. +There is no LED for the +/- keys. This is a handy way to indicate to users +which keys are disabled." + +[picolcd/#/key3light] +type = boolean +check/type = boolean +default = 1 ; TODO (elektra): default values conversion +description = "If Keylights is on, the you can unlight specific keys below: +Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. +There is no LED for the +/- keys. This is a handy way to indicate to users +which keys are disabled." + +[picolcd/#/key4light] +type = boolean +check/type = boolean +default = 1 ; TODO (elektra): default values conversion +description = "If Keylights is on, the you can unlight specific keys below: +Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. +There is no LED for the +/- keys. This is a handy way to indicate to users +which keys are disabled." + +[picolcd/#/key5light] +type = boolean +check/type = boolean +default = 1 ; TODO (elektra): default values conversion +description = "If Keylights is on, the you can unlight specific keys below: +Key0 is the directional pad. Key1 - Key5 correspond to the F1 - F5 keys. +There is no LED for the +/- keys. This is a handy way to indicate to users +which keys are disabled." + +[picolcd/#/lirchost] +; check/ipaddr = ; TODO (elektra): too many plugins +type = string +check/type = string +default = 127.0.0.1 +description = Host name or IP address of the LIRC instance that is to receive IR codes\ +If not set, or set to an empty value, IR support is disabled. + +[picolcd/#/lircport] +; check/port = ; TODO (elektra): too many plugins +type = unsigned_short +default = 8765 +description = UDP port on which LIRC is listening + +[picolcd/#/lirctime_us] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = "UDP data time unit for LIRC +On: times sent in microseconds (requires LIRC UDP driver that accepts this). +Off: times sent in 'jiffies' (1/16384s) (supported by standard LIRC UDP driver)." + +[picolcd/#/lircflushthreshold] +type = unsigned_long +check/type = unsigned_long +check/validation = [1-9]\d{3,} +check/validation/match = LINE +check/validation/message = LircFlushThreshold must be a positive number >1000 +default = 1000 +description = "Threshold in microseconds of the gap that triggers flushing the IR data +to lirc [default: 8000; legal: 1000 - ] +If LircTime_us is on values greater than 32.767ms will disable the flush +If LircTime_us is off values greater than 1.999938s will disable the flush" + +;rawserial +;================================================== +[rawserial] +default = "" +array = #0 + +[rawserial/#] +type = struct +check/type = any +default = "" +gen/struct/type = RawserialDriverConfig +gen/struct/alloc = 0 +description = Configuration for a rawserial driver. + +[rawserial/#/file] +type = string +default = "rawserial" +description = name of the shared library to load (without prefix and extension) + +[rawserial/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[rawserial/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[rawserial/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[rawserial/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[rawserial/#/device] +type = string +check/type = string +; check/path = ; TODO (elektra): too many plugins +default = /dev/cuaU0 +description = "Select the output device to use" + +[rawserial/#/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 40x4 +description = "Specifies the size of the LCD. If this driver is loaded as a secondary driver +it always adopts to the size of the primary driver. If loaded as the only +(or primary) driver, the size can be set." + +[rawserial/#/updaterate] +type = float +check/type = float +default = 1 +description = "How often to dump the LCD contents out the port, in Hertz (times per second) +1 = once per second, 4 is 4 times per second, 0.1 is once every 10 seconds. +[default: 1; legal: 0.0005 - 10]" + +[rawserial/#/speed] +type = unsigned_long +check/type = unsigned_long +default = 9600 +description = "Serial port baudrate [default: 9600]" + +;sed1330 +;================================================== +[sed1330] +default = "" +array = #0 + +[sed1330/#] +type = struct +check/type = any +default = "" +gen/struct/type = Sed1330DriverConfig +gen/struct/alloc = 0 +description = Configuration for a sed1330 driver. + +[sed1330/#/file] +type = string +default = "sed1330" +description = name of the shared library to load (without prefix and extension) + +[sed1330/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[sed1330/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[sed1330/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[sed1330/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[sed1330/#/port] +type = string +check/type = string +check/validation = 0x([0-9A-F]{3}) +check/validation/match = LINE +check/validation/message = Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC +default = 0x378 +description = Port where the LPT is. Common values are 0x278, 0x378 and 0x3BC + +[sed1330/#/type] +type = enum +check/type = enum +check/enum = #5 +check/enum/#0 = G321D +check/enum/#1 = G121C +check/enum/#2 = G242C +check/enum/#3 = G191D +check/enum/#4 = G2446 +check/enum/#5 = SP14Q002 +default = G321D +description = "Type of LCD module. +Note: Currently only tested with G321D & SP14Q002." + +[sed1330/#/cellsize] +type = string +check/type = string +check/validation =[6-8]x([1-9][0-6]|[1-9]) +check/validation/match = LINE +check/validation/message = Width x Height of a character cell in pixels [legal: 6x7 - 8x16] +default = 6x10 +description = Width x Height of a character cell in pixels + +[sed1330/#/connectiontype] +type = enum +check/type = enum +check/enum = #1 +check/enum/#0 = classic +check/enum/#1 = bitshaker +default = classic +description = "Select what type of connection" + +;sed1520 +;================================================== +[sed1520] +default = "" +array = #0 + +[sed1520/#] +type = struct +check/type = any +default = "" +gen/struct/type = Sed1520DriverConfig +gen/struct/alloc = 0 +description = Configuration for a sed1520 driver. + +[sed1520/#/file] +type = string +default = "sed1520" +description = name of the shared library to load (without prefix and extension) + +[sed1520/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[sed1520/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[sed1520/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[sed1520/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[sed1520/#/port] +type = string +check/type = string +check/validation = 0x([0-9A-F]{3}) +check/validation/match = LINE +check/validation/message = Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC +default = 0x378 +description = Port where the LPT is. Usual values are 0x278, 0x378 and 0x3BC + +[sed1520/#/interfacetype] +type = unsigned_short +check/type = unsigned_short +check/range = 68, 80 +default = 80 +description = "Select the interface type (wiring) for the display. Supported values are +68 for 68-style connection (RESET level high) and 80 for 80-style connection +(RESET level low)" + +[sed1520/#/delaymult] +type = unsigned_short +check/type = unsigned_short +check/range = 0-1000 +default = 1 +description = "On fast machines it may be necessary to slow down transfer to the display. +If this value is set to zero, delay is disabled. Any value greater than +zero slows down each write by one microsecond." + +[sed1520/#/haveinverter] +type = boolean +check/type = boolean +default = 1 ; TODO (elektra): default values conversion +description = "The original wiring used an inverter to drive the control lines. If you do +not use an inverter set haveInverter to no." + +[sed1520/#/invertedmapping] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = "On some displays column data in memory is mapped to segment lines from right +to left. This is called inverted mapping (not to be confused with +'haveInverter' from above)." + +[sed1520/#/usehardreset] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = "At least one display is reported (Everbouquet MG1203D) that requires sending +three times 0xFF before a reset during initialization." + +;serialPOS +;================================================== +[serialpos] +default = "" +array = #0 + +[serialpos/#] +type = struct +check/type = any +default = "" +gen/struct/type = SerialPOSDriverConfig +gen/struct/alloc = 0 +description = Configuration for a serialPOS driver. + +[serialpos/#/file] +type = string +default = "serialPOS" +description = name of the shared library to load (without prefix and extension) + +[serialpos/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[serialpos/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[serialpos/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[serialpos/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[serialpos/#/device] +type = string +check/type = string +; check/path = ; TODO (elektra): too many plugins +default = /dev/ttyS0 +description = "Device to use in serial mode" + +[serialpos/#/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 16x2 +description = "Specifies the size of the display in characters." + +[serialpos/#/cellsize] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 5x8 +description = "Specifies the cell size of each character cell on the display in characters." + +[serialpos/#/custom_chars] +type = unsigned_long +check/type = unsigned_long +check/validation = ^([1-9]\d*|0)$ +check/validation/match = LINE +check/validation/message = Must be any positive number including 0 +default = 0 +description = "Specifies the number of custom characters supported by the display. +Custom characters are only used for the rendering of horizontal bars +and vertical bars. For displays whose cell character cell widths are +lower than the number of custom characters supported, +then custom characters will be used to render the horizontal bars. +For more information look at: https://github.com/lcdproc/lcdproc/blob/master/docs/lcdproc-user/drivers/serialPOS.docbook" + +[serialpos/#/type] +type = enum +check/type = enum +check/enum = #5 +check/enum/#0 = AEDEX +check/enum/#1 = CD5220 +check/enum/#2 = Epson +check/enum/#3 = Emax +check/enum/#4 = LogicControls +check/enum/#5 = Ultimate +default = AEDEX +description = "Set the communication protocol to use with the POS display." + +[serialpos/#/speed] +type = unsigned_short +check/type = unsigned_short +check/range = 1200, 2400, 4800, 9600, 19200, 115200 +default = 9600 +description = communication baud rate with the display + +;serialVFD +;================================================== +[serialvfd] +default = "" +array = #0 + +[serialvfd/#] +type = struct +check/type = any +default = "" +gen/struct/type = SerialVFDDriverConfig +gen/struct/alloc = 0 +description = Configuration for a serialVFD driver. + +[serialvfd/#/file] +type = string +default = "serialVFD" +description = name of the shared library to load (without prefix and extension) + +[serialvfd/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[serialvfd/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial brightness. (4 steps 0-250, 251-500, 501-750, 751-1000) + +[serialvfd/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 +description = "Set the initial off-brightness +This value is used when the display is normally +switched off in case LCDd is inactive +(4 steps 0-250, 251-500, 501-750, 751-1000)" + +[serialvfd/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[serialvfd/#/type] +type = unsigned_short +check/type = unsigned_short +check/enum = #_17 +check/enum/#0 = nec_fipc8367 +check/enum/#1 = kd_rev_2_1 +check/enum/#2 = noritake_vfd +check/enum/#3 = futaba_vfd +check/enum/#4 = iee_s03601-95b +check/enum/#5 = iee_s03601-96-080 +check/enum/#6 = futaba_na202sd08fa +check/enum/#7 = samsung_20s207da4/20s207da6 +check/enum/#8 = nixdorf_ba6x/vt100 +check/enum/#_9 = 0 +gen/enum/value = 0 +check/enum/#_10 = 1 +gen/enum/value = 1 +check/enum/#_11 = 2 +gen/enum/value = 2 +check/enum/#_12 = 3 +gen/enum/value = 3 +check/enum/#_13 = 4 +gen/enum/value = 4 +check/enum/#_14 = 5 +gen/enum/value = 5 +check/enum/#_15 = 6 +gen/enum/value = 6 +check/enum/#_16 = 7 +gen/enum/value = 7 +check/enum/#_17 = 8 +gen/enum/value = 8 +gen/enum/type = SerialVFDType +default = 0 +description = "Specifies the displaytype.[default: 0] +0 NEC (FIPC8367 based) VFDs. +1 KD Rev 2.1. +2 Noritake VFDs (*). +3 Futaba VFDs +4 IEE S03601-95B +5 IEE S03601-96-080 (*) +6 Futaba NA202SD08FA (allmost IEE compatible) +7 Samsung 20S207DA4 and 20S207DA6 +8 Nixdorf BA6x / VT100 +(* most should work, not tested yet.)" + +[serialvfd/#/use_parallel] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = "'no' if display connected serial, 'yes' if connected parallel. +I.e. serial by default" + +[serialvfd/#/custom-characters] +type = unsigned_long +check/type = unsigned_long +default = 0 +description = "Number of Custom-Characters. default is display type dependent" + +[serialvfd/#/port] +type = string +check/type = string +check/validation = 0x([0-9A-F]{3}) +check/validation/match = LINE +check/validation/message = Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC +default = 0x378 +description = Portaddress where the LPT is. Used in parallel mode only. Usual values are 0x278, 0x378 and 0x3BC. + +[serialvfd/#/portwait] +type = unsigned_short +check/type = unsigned_short +check/range = 0-255 +default = 2 +description = Set parallel port timing delay (us). Used in parallel mode only. + +[serialvfd/#/device] +type = string +check/type = string +; check/path = ; TODO (elektra): too many plugins +default = /dev/ttyS1 +description = "Device to use in serial mode. Usual values are /dev/ttyS0 and /dev/ttyS1" + +[serialvfd/#/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 20x2 +description = "Specifies the size of the VFD." + +[serialvfd/#/speed] +type = unsigned_short +check/type = unsigned_short +check/range = 1200, 2400, 9600, 19200, 115200 +default = 9600 +description = set the serial port speed + +[serialvfd/#/iso_8859_1] +type = boolean +check/type = boolean +default = 1 ; TODO (elektra): default values conversion +description = "enable ISO 8859 1 compatibility" + +;sli +;================================================== +[sli] +default = "" +array = #0 + +[sli/#] +type = struct +check/type = any +default = "" +gen/struct/type = SliDriverConfig +gen/struct/alloc = 0 +description = Configuration for a sli driver. + +[sli/#/file] +type = string +default = "sli" +description = name of the shared library to load (without prefix and extension) + +[sli/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[sli/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[sli/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[sli/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[sli/#/device] +type = string +check/type = string +; check/path = ; TODO (elektra): too many plugins +default = /dev/lcd +description = "Select the output device to use" + +[sli/#/speed] +type = unsigned_short +check/type = unsigned_short +check/range = 1200, 2400, 9600, 19200, 38400, 57600, 115200 +default = 19200 +description = Set the communication speed + +;stv5730 +;================================================== +[stv5730] +default = "" +array = #0 + +[stv5730/#] +type = struct +check/type = any +default = "" +gen/struct/type = Stv5730DriverConfig +gen/struct/alloc = 0 +description = Configuration for a stv5730 driver. + +[stv5730/#/file] +type = string +default = "stv5730" +description = name of the shared library to load (without prefix and extension) + +[stv5730/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[stv5730/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[stv5730/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[stv5730/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[stv5730/#/port] +type = string +check/type = string +check/validation = 0x([0-9A-F]{3}) +check/validation/match = LINE +check/validation/message = Not a valid port declaration. It should start with 0x, followed by 3 HEX values. eg. 0x3BC +default = 0x378 +description = Port the device is connected to + +;SureElec +;================================================== +[sureelec] +default = "" +array = #0 + +[sureelec/#] +type = struct +check/type = any +default = "" +gen/struct/type = SureElecDriverConfig +gen/struct/alloc = 0 +description = Configuration for a SureElec driver. + +[sureelec/#/file] +type = string +default = "SureElec" +description = name of the shared library to load (without prefix and extension) + +[sureelec/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 480 +check/range = 0-1000 +description = Set the initial contrast + +[sureelec/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 480 +check/range = 0-1000 + +[sureelec/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 480 +check/range = 0-1000 +description = "Set the initial off-brightness +This value is used when the display is normally +switched off in case LCDd is inactive" + +[sureelec/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[sureelec/#/device] +type = string +check/type = string +; check/path = ; TODO (elektra): too many plugins +default = /dev/ttyUSB0 +description = "Port the device is connected to (by default first USB serial port)" + +[sureelec/#/edition] +type = unsigned_short +check/type = unsigned_short +check/range = 1-3 +default = 2 +description = Edition level of the device (can be 1, 2 or 3) + +[sureelec/#/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 16x2 +description = "set display size +Note: The size can be obtained directly from device for edition 2 & 3." + +;svga +;================================================== +[svga] +default = "" +array = #0 + +[svga/#] +type = struct +check/type = any +default = "" +gen/struct/type = SvgaDriverConfig +gen/struct/alloc = 0 +description = Configuration for a svga driver. + +[svga/#/file] +type = string +default = "svga" +description = name of the shared library to load (without prefix and extension) + +[svga/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 500 +check/range = 0-1000 +description = Set the initial contrast + +[svga/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 1-1000 + +[svga/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 500 +check/range = 1-1000 + +[svga/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[svga/#/mode] +type = string +check/type = string +default = G320x240x256 +description = "svgalib mode to use [default: G320x240x256 ] +legal values are supported svgalib modes. See man7 pages for allowed values" + +[svga/#/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 20x4 +description = "set display size" + +;t6963 +;================================================== +[t6963] +default = "" +array = #0 + +[t6963/#] +type = struct +check/type = any +default = "" +gen/struct/type = T6963DriverConfig +gen/struct/alloc = 0 +description = Configuration for a t6963 driver. + +[t6963/#/file] +type = string +default = "t6963" +description = name of the shared library to load (without prefix and extension) + +[t6963/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[t6963/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[t6963/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[t6963/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[t6963/#/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 128x64 +description = "set display size in pixels" + +[t6963/#/port] +type = string +check/type = string +check/validation = 0x([2-3][0-9A-F]{2}|400) +check/validation/match = LINE +check/validation/message = Not a valid port declaration. legal: 0x200 - 0x400 +default = 0x378 +description = Parallel port to use + +[t6963/#/bidirectional] +type = boolean +check/type = boolean +default = 1 ; TODO (elektra): default values conversion +description = "Use LPT port in bi-directional mode. This should work on most LPT port and +is required for proper timing!" + +[t6963/#/delaybus] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = "Insert additional delays into reads / writes." + +[t6963/#/cleargraphic] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = "Clear graphic memory on start-up." + +;tyan +;================================================== +[tyan] +default = "" +array = #0 + +[tyan/#] +type = struct +check/type = any +default = "" +gen/struct/type = TyanDriverConfig +gen/struct/alloc = 0 +description = Configuration for a tyan driver. + +[tyan/#/file] +type = string +default = "tyan" +description = name of the shared library to load (without prefix and extension) + +[tyan/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[tyan/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[tyan/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[tyan/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[tyan/#/device] +type = string +check/type = string +; check/path = ; TODO (elektra): too many plugins +default = /dev/lcd +description = "Select the output device to use" + +[tyan/#/speed] +type = unsigned_short +check/type = unsigned_short +check/range = 4800, 9600 +default = 9600 +description = Set the communication speed + +[tyan/#/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 16x2 +description = "set display size" + + +;ula200 +;================================================== +[ula200] +default = "" +array = #0 + +[ula200/#] +type = struct +check/type = any +default = "" +gen/struct/type = Ula200DriverConfig +gen/struct/alloc = 0 +description = Configuration for a ula200 driver. + +[ula200/#/file] +type = string +default = "ula200" +description = name of the shared library to load (without prefix and extension) + +[ula200/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[ula200/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[ula200/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[ula200/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[ula200/#/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 20x4 +description = "Select the LCD size" + +[ula200/#/keymap_a] +type = string +check/type = string +default = Up +description = "If you have a non standard keypad you can associate any keystrings to keys. +There are 6 input key in the CwLnx hardware that generate characters +from 'A' to 'F'. +# +You can leave those unchanged if you have a standard keypad. +You can change it if you want to report other keystrings or have a non +standard keypad." + +[ula200/#/keymap_b] +type = string +check/type = string +default = Down +description = "If you have a non standard keypad you can associate any keystrings to keys. +There are 6 input key in the CwLnx hardware that generate characters +from 'A' to 'F'. +# +You can leave those unchanged if you have a standard keypad. +You can change it if you want to report other keystrings or have a non +standard keypad." + +[ula200/#/keymap_c] +type = string +check/type = string +default = Left +description = "If you have a non standard keypad you can associate any keystrings to keys. +There are 6 input key in the CwLnx hardware that generate characters +from 'A' to 'F'. +# +You can leave those unchanged if you have a standard keypad. +You can change it if you want to report other keystrings or have a non +standard keypad." + +[ula200/#/keymap_d] +type = string +check/type = string +default = Right +description = "If you have a non standard keypad you can associate any keystrings to keys. +There are 6 input key in the CwLnx hardware that generate characters +from 'A' to 'F'. +# +You can leave those unchanged if you have a standard keypad. +You can change it if you want to report other keystrings or have a non +standard keypad." + +[ula200/#/keymap_e] +type = string +check/type = string +default = Enter +description = "If you have a non standard keypad you can associate any keystrings to keys. +There are 6 input key in the CwLnx hardware that generate characters +from 'A' to 'F'. +# +You can leave those unchanged if you have a standard keypad. +You can change it if you want to report other keystrings or have a non +standard keypad." + +[ula200/#/keymap_f] +type = string +check/type = string +default = Escape +description = "If you have a non standard keypad you can associate any keystrings to keys. +There are 6 input key in the CwLnx hardware that generate characters +from 'A' to 'F'. +# +You can leave those unchanged if you have a standard keypad. +You can change it if you want to report other keystrings or have a non +standard keypad." + +;vlsys_m428 +;================================================== +[vlsys_m428] +default = "" +array = #0 + +[vlsys_m428/#] +type = struct +check/type = any +default = "" +gen/struct/type = Vlsys_m428DriverConfig +gen/struct/alloc = 0 +description = Configuration for a vlsys_m428 driver. + +[vlsys_m428/#/file] +type = string +default = "vlsys_m428" +description = name of the shared library to load (without prefix and extension) + +[vlsys_m428/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[vlsys_m428/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[vlsys_m428/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[vlsys_m428/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[vlsys_m428/#/device] +type = string +check/type = string +; check/path = ; TODO (elektra): too many plugins +default = /dev/ttyUSB0 +description = "Select the output device to use" + +;yard2LCD +;================================================== +[yard2lcd] +default = "" +array = #0 + +[yard2lcd/#] +type = struct +check/type = any +default = "" +gen/struct/type = Yard2LCDDriverConfig +gen/struct/alloc = 0 +description = Configuration for a yard2LCD driver. + +[yard2lcd/#/file] +type = string +default = "yard2LCD" +description = name of the shared library to load (without prefix and extension) + +[yard2lcd/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 +description = Set the initial contrast + +[yard2lcd/#/brightness] +type = unsigned_short +check/type = unsigned_short +default = 1000 +check/range = 0-1000 + +[yard2lcd/#/offbrightness] +type = unsigned_short +check/type = unsigned_short +default = 0 +check/range = 0-1000 + +[yard2lcd/#/reboot] +type = boolean +check/type = boolean +default = 0 ; TODO (elektra): default values conversion +description = Reinitialize the LCD`s BIOS normally you shouldn`t need this + +[yard2lcd/#/size] +type = string +check/type = string +check/validation = ([1-9]+[0-9]*)x([1-9]+[0-9]*) +check/validation/match = LINE +check/validation/message = Not a valid size declaration. Examples: 20x4, 19x3, 40x150 +default = 20x4 +description = "set display size" From 7973efc3caa209a1c8ce4f9844bc6805014e795b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Sat, 8 Jun 2019 18:56:32 +0200 Subject: [PATCH 37/72] readconf: switch to ini, because of too many plugins --- readconf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readconf.py b/readconf.py index fc28fb5b..c2c14ca6 100755 --- a/readconf.py +++ b/readconf.py @@ -208,7 +208,7 @@ def write_meta(key, meta, value): def export_kdb_tmp(outfile): - cmd = ["kdb", "export", "user/sw/lcdproc/tmp", "yamlcpp", outfile.name] + cmd = ["kdb", "export", "user/sw/lcdproc/tmp", "ini", outfile.name] subprocess.run(cmd, stdout=subprocess.DEVNULL) @@ -246,4 +246,4 @@ def clean_kdb_tmp(): export_kdb_tmp(args.outfile) clean_kdb_tmp() -print("Success: Please mount '" + args.outfile.name + "' with yamlcpp under 'user/sw/lcdproc/" + mode + "/#0/current'") +print("Success: Please import '" + args.outfile.name + "' with ini into '/sw/lcdproc/" + mode + "/#0/current'") From 3a188c5177e86320b43a53374e3829843625b183 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Sun, 28 Jul 2019 15:53:09 +0200 Subject: [PATCH 38/72] all: switch to external spec --- clients/lcdexec/.gitignore | 3 +- clients/lcdexec/Makefile.am | 4 +- clients/lcdexec/lcdexec.c | 6 +- clients/lcdproc/.gitignore | 3 +- clients/lcdproc/Makefile.am | 4 +- clients/lcdproc/main.c | 6 +- .../lcdproc/specification/lcdproc-spec.ini | 3 +- clients/lcdvc/.gitignore | 3 +- clients/lcdvc/Makefile.am | 4 +- clients/lcdvc/lcdvc.c | 6 +- server/.gitignore | 3 +- server/Makefile.am | 4 +- server/main.c | 6 +- server/specification/LCDd-spec.ini | 59 ++++--------------- 14 files changed, 37 insertions(+), 77 deletions(-) diff --git a/clients/lcdexec/.gitignore b/clients/lcdexec/.gitignore index 2b176a28..14d664b9 100644 --- a/clients/lcdexec/.gitignore +++ b/clients/lcdexec/.gitignore @@ -3,4 +3,5 @@ Makefile Makefile.in lcdexec elektragen.c -elektragen.h \ No newline at end of file +elektragen.h +elektragen.spec.eqd diff --git a/clients/lcdexec/Makefile.am b/clients/lcdexec/Makefile.am index 078200d3..de4ed763 100644 --- a/clients/lcdexec/Makefile.am +++ b/clients/lcdexec/Makefile.am @@ -18,7 +18,7 @@ AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/shared -DSYSCONFDIR=\"$(sysconfdir EXTRA_DIST = $(sysconf_DATA) KDB ?= kdb -elektragen.c elektragen.h: specification/lcdexec-spec.ini - $(KDB) gen -F ni=specification/lcdexec-spec.ini elektra "spec/sw/lcdproc/lcdexec/#0/current" elektragen initFn=loadConfiguration specloadFn=doSpecloadCheck helpFn=printHelpMessage headers=menu.h +elektragen.c elektragen.h elektragen.spec.eqd: specification/lcdexec-spec.ini + $(KDB) gen -F ni=specification/lcdexec-spec.ini elektra "spec/sw/lcdproc/lcdexec/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage specLocation=external defaultsHandling=speconly headers=menu.h ## EOF diff --git a/clients/lcdexec/lcdexec.c b/clients/lcdexec/lcdexec.c index 0828658c..eada6841 100644 --- a/clients/lcdexec/lcdexec.c +++ b/clients/lcdexec/lcdexec.c @@ -108,9 +108,6 @@ static int main_loop(void); int main(int argc, const char **argv) { - // only returns, if not in specload mode - doSpecloadCheck(argc, argv); - int error = 0; struct sigaction sa; @@ -226,7 +223,8 @@ static int process_config() if (rc == 1) { // help mode - printHelpMessage(NULL, help_prefix); + printHelpMessage(elektra, NULL, help_prefix); + elektraClose (elektra); return 0; } diff --git a/clients/lcdproc/.gitignore b/clients/lcdproc/.gitignore index 00e5afac..e46ea901 100644 --- a/clients/lcdproc/.gitignore +++ b/clients/lcdproc/.gitignore @@ -3,4 +3,5 @@ Makefile Makefile.in lcdproc elektragen.c -elektragen.h \ No newline at end of file +elektragen.h +elektragen.spec.eqd diff --git a/clients/lcdproc/Makefile.am b/clients/lcdproc/Makefile.am index 3ee880e6..833a9513 100644 --- a/clients/lcdproc/Makefile.am +++ b/clients/lcdproc/Makefile.am @@ -21,7 +21,7 @@ AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/shared -DSYSCONFDIR=\"$(sysconfdir EXTRA_DIST = $(sysconf_DATA) KDB ?= kdb -elektragen.c elektragen.h: specification/lcdproc-spec.ini - $(KDB) gen -F ni=specification/lcdproc-spec.ini elektra "spec/sw/lcdproc/lcdproc/#0/current" elektragen initFn=loadConfiguration specloadFn=doSpecloadCheck helpFn=printHelpMessage headers=screen_config.h +elektragen.c elektragen.h elektragen.spec.eqd: specification/lcdproc-spec.ini + $(KDB) gen -F ni=specification/lcdproc-spec.ini elektra "spec/sw/lcdproc/lcdproc/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage specLocation=external defaultsHandling=speconly headers=screen_config.h ## EOF diff --git a/clients/lcdproc/main.c b/clients/lcdproc/main.c index f2bf4cf2..cc770794 100644 --- a/clients/lcdproc/main.c +++ b/clients/lcdproc/main.c @@ -220,9 +220,6 @@ clear_modes(void) int main(int argc, const char **argv) { - // only returns, if not in specload mode - doSpecloadCheck (argc, argv); - int cfgresult; /* set locale for cwdate & time formatting in chrono.c */ @@ -336,7 +333,8 @@ process_config() if (rc == 1) { // help mode - printHelpMessage(NULL, help_prefix); + printHelpMessage(elektra, NULL, help_prefix); + elektraClose (elektra); return 0; } diff --git a/clients/lcdproc/specification/lcdproc-spec.ini b/clients/lcdproc/specification/lcdproc-spec.ini index 01dd3b3f..baa8b128 100644 --- a/clients/lcdproc/specification/lcdproc-spec.ini +++ b/clients/lcdproc/specification/lcdproc-spec.ini @@ -17,10 +17,11 @@ opt/long = server type = unsigned_short check/port = check/type = unsigned_short -default = 13666 +;default = 13666 description = Port of the server to connect to opt = p opt/long = port +require = [lcdproc/reportlevel] type = unsigned_short diff --git a/clients/lcdvc/.gitignore b/clients/lcdvc/.gitignore index 83537c35..a3f69996 100644 --- a/clients/lcdvc/.gitignore +++ b/clients/lcdvc/.gitignore @@ -3,4 +3,5 @@ Makefile Makefile.in lcdvc elektragen.c -elektragen.h \ No newline at end of file +elektragen.h +elektragen.spec.eqd diff --git a/clients/lcdvc/Makefile.am b/clients/lcdvc/Makefile.am index b57d7d63..d73379ed 100644 --- a/clients/lcdvc/Makefile.am +++ b/clients/lcdvc/Makefile.am @@ -24,7 +24,7 @@ AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/shared -DSYSCONFDIR=\"$(sysconfdir EXTRA_DIST = $(sysconf_DATA) KDB ?= kdb -elektragen.c elektragen.h: specification/lcdvc-spec.ini - $(KDB) gen -F ni=specification/lcdvc-spec.ini elektra "spec/sw/lcdproc/lcdvc/#0/current" elektragen initFn=loadConfiguration specloadFn=doSpecloadCheck helpFn=printHelpMessage +elektragen.c elektragen.h elektragen.spec.eqd: specification/lcdvc-spec.ini + $(KDB) gen -F ni=specification/lcdvc-spec.ini elektra "spec/sw/lcdproc/lcdvc/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage specLocation=external defaultsHandling=speconly helpFn=printHelpMessage ## EOF diff --git a/clients/lcdvc/lcdvc.c b/clients/lcdvc/lcdvc.c index 6e3d49c6..02eaa836 100644 --- a/clients/lcdvc/lcdvc.c +++ b/clients/lcdvc/lcdvc.c @@ -63,9 +63,6 @@ static int main_loop(void); int main(int argc, const char **argv) { - // only returns, if not in specload mode - doSpecloadCheck (argc, argv); - int e = 0; struct sigaction sa; @@ -149,7 +146,8 @@ static int process_config() if (rc == 1) { // help mode - printHelpMessage(NULL, help_prefix); + printHelpMessage(elektra, NULL, help_prefix); + elektraClose (elektra); return EXIT_SUCCESS; } diff --git a/server/.gitignore b/server/.gitignore index 3c57b4d7..d7f248f6 100644 --- a/server/.gitignore +++ b/server/.gitignore @@ -4,4 +4,5 @@ Makefile Makefile.in main.d elektragen.c -elektragen.h \ No newline at end of file +elektragen.h +elektragen.spec.eqd diff --git a/server/Makefile.am b/server/Makefile.am index 8d18a239..701dd171 100644 --- a/server/Makefile.am +++ b/server/Makefile.am @@ -20,7 +20,7 @@ endif AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/shared -DSYSCONFDIR=\"$(sysconfdir)\" KDB ?= kdb -elektragen.c elektragen.h: specification/LCDd-spec.ini - $(KDB) gen -F ni=specification/LCDd-spec.ini elektra "spec/sw/lcdproc/lcdd/#0/current" elektragen initFn=loadConfiguration specloadFn=doSpecloadCheck helpFn=printHelpMessage +elektragen.c elektragen.h elektragen.spec.eqd: specification/LCDd-spec.ini + $(KDB) gen -F ni=specification/LCDd-spec.ini elektra "spec/sw/lcdproc/lcdd/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage specLocation=external defaultsHandling=speconly helpFn=printHelpMessage ## EOF diff --git a/server/main.c b/server/main.c index e0ee280f..6e91d30a 100644 --- a/server/main.c +++ b/server/main.c @@ -172,9 +172,6 @@ static const char * help_prefix = int main(int argc, const char **argv) { - // only returns, if not in specload mode - doSpecloadCheck(argc, argv); - int e = 0; pid_t parent_pid = 0; @@ -302,7 +299,8 @@ process_config() if (rc == 1) { // help mode - printHelpMessage(NULL, help_prefix); + printHelpMessage(elektra, NULL, help_prefix); + elektraClose (elektra); return EXIT_SUCCESS; } diff --git a/server/specification/LCDd-spec.ini b/server/specification/LCDd-spec.ini index 726993ff..fe34cd44 100644 --- a/server/specification/LCDd-spec.ini +++ b/server/specification/LCDd-spec.ini @@ -21,59 +21,22 @@ description = Select the LCD size default = "" array = #0 ; TODO (elektra): max drivers check/reference = single -check/reference/restrict = #_52 +check/reference/restrict = #_14 check/reference/restrict/#0 = @/bayrad/# check/reference/restrict/#1 = @/cfontz/# check/reference/restrict/#2 = @/cfontzpacket/# check/reference/restrict/#3 = @/curses/# check/reference/restrict/#4 = @/cwlnx/# -check/reference/restrict/#5 = @/ea65/# -check/reference/restrict/#6 = @/eyeboxone/# -check/reference/restrict/#7 = @/futaba/# -check/reference/restrict/#8 = @/g15/# -check/reference/restrict/#9 = @/glcd/# -check/reference/restrict/#_10 = @/glcdlib/# -check/reference/restrict/#_11 = @/glk/# -check/reference/restrict/#_12 = @/hd44780/# -check/reference/restrict/#_13 = @/icp_a106/# -check/reference/restrict/#_14 = @/imon/# -check/reference/restrict/#_15 = @/imonlcd/# -check/reference/restrict/#_16 = @/iowarrior/# -check/reference/restrict/#_17 = @/irman/# -check/reference/restrict/#_18 = @/joy/# -check/reference/restrict/#_19 = @/lb216/# -check/reference/restrict/#_20 = @/lcdm001/# -check/reference/restrict/#_21 = @/lcterm/# -check/reference/restrict/#_22 = @/linux_input/# -check/reference/restrict/#_23 = @/lirc/# -check/reference/restrict/#_24 = @/lis/# -check/reference/restrict/#_25 = @/md8800/# -check/reference/restrict/#_26 = @/mdm166a/# -check/reference/restrict/#_27 = @/ms6931/# -check/reference/restrict/#_28 = @/mtc_s16209x/# -check/reference/restrict/#_29 = @/mtxorb/# -check/reference/restrict/#_30 = @/mx5000/# -check/reference/restrict/#_31 = @/noritakevfd/# -check/reference/restrict/#_32 = @/olimex_mod_lcd1x9/# -check/reference/restrict/#_33 = @/picolcd/# -check/reference/restrict/#_34 = @/pyramid/# -check/reference/restrict/#_35 = @/rawserial/# -check/reference/restrict/#_36 = @/sdeclcd/# -check/reference/restrict/#_37 = @/sed1330/# -check/reference/restrict/#_38 = @/sed1520/# -check/reference/restrict/#_39 = @/serialpos/# -check/reference/restrict/#_40 = @/serialvfd/# -check/reference/restrict/#_41 = @/shuttlevfd/# -check/reference/restrict/#_42 = @/sli/# -check/reference/restrict/#_43 = @/stv5730/# -check/reference/restrict/#_44 = @/svga/# -check/reference/restrict/#_45 = @/t6963/# -check/reference/restrict/#_46 = @/text/# -check/reference/restrict/#_47 = @/tyan/# -check/reference/restrict/#_48 = @/ula200/# -check/reference/restrict/#_49 = @/vlsys_m428/# -check/reference/restrict/#_50 = @/xosd/# -check/reference/restrict/#_51 = @/yard2lcd/# +check/reference/restrict/#5 = @/glcd/# +check/reference/restrict/#6 = @/glk/# +check/reference/restrict/#7 = @/hd44780/# +check/reference/restrict/#8 = @/lb216/# +check/reference/restrict/#9 = @/lcdm001/# +check/reference/restrict/#_10 = @/linux_input/# +check/reference/restrict/#_11 = @/mtxorb/# +check/reference/restrict/#_12 = @/pyramid/# +check/reference/restrict/#_13 = @/text/# +check/reference/restrict/#_14 = @/xosd/# description = "Tells the server to load a driver. The given value is a reference the configuration of the driver, e.g. @/curses/#0" From 06040083a1eec00dc125c20aadb7b5bc0c3e3cde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Sun, 28 Jul 2019 15:53:34 +0200 Subject: [PATCH 39/72] doc: add basic documentation about elektra --- docs/elektra/README.md | 70 +++++++++++++++++++++ docs/elektra/drivers.md | 135 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 205 insertions(+) create mode 100644 docs/elektra/README.md create mode 100644 docs/elektra/drivers.md diff --git a/docs/elektra/README.md b/docs/elektra/README.md new file mode 100644 index 00000000..af3ab57a --- /dev/null +++ b/docs/elektra/README.md @@ -0,0 +1,70 @@ +# LCDproc with Elektra + +## Setting up Elektra + +- Checkout the latest version of Elektra's `master` branch (or PR #2805, if that hasn't been merged + yet). +- Compile Elektra + ```sh + # inside Elektra source directory + mkdir build && cd build + cmake .. -DPLUGINS="c;cache;dump;gopts;hexnumber;ini;list;mmapstorage;network;ni;noresolver;path;quickdump;range;reference;resolver;resolver_fm_hpu_b;spec;specload;type;validation" -DBUILD_TESTING=OFF -DENABLE_TESTING=OFF -DINSTALL_TESTING=OFF + ``` + This builds Elektra with the minimal set of plugins required for LCDproc and with testing disabled to speed up the build process. +- Install Elektra + ```sh + # inside Elektra build directory + sudo make install + ``` + +## Setting up LCDproc + +The basic instructions from `INSTALL.md` are still valid. The quickest way to get started is: + +```sh +# inside LCDproc source directory +sh ./autogen.sh +./configure +make +``` + +You may need to configure you're `PKG_CONFIG_PATH` such that `pkgconfig` is able to find Elektra. +For example this may work `PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure`, instead of +`./configure`. + +**Note:** Not all drivers have been updated yet. These drivers should work: bayrad, CFontz, +CFontzPacket, curses, CwLnx, glk, lb216, lcdm001, MtxOrb, pyramid, text, linux_input, xosd, hd44780 + +Once you built the server and/or the clients, you need to configure Elektra, so that it knows about +LCDprocs configuration. This process is called mounting (since it is similar to mounting a new file +system, but for configurations). + +We will demonstrate this process for running the `lcdvc` client directly from the source/build +directory, but it is similar for the other parts of LCDproc and for running installed versions. + +1. **Mount the specification:** Compiling `lcdvc` produces the file + `clients/lcdvc/elektragen.spec.eqd`. It contains the processed specificaiton for `lcdvc`. To mount it + we use: + `sh # inside LCDproc source directory sudo kdb mount -R noresolver "/usr/local/share/lcdproc/lcdvc_spec.eqd" "spec/sw/lcdproc/lcdvc/#0/current" specload "app=/usr/bin/cat" "app/args=#0" "app/args/#0=$PWD/clients/lcdvc/elektragen.spec.eqd"` +2. **Spec-mounting:** Once the specification is mounted, Elektra knows about it. However, Elektra + doesn't know to treat it as a specification for application yet. For that wee need to execute + another command: + `sh sudo kdb spec-mount "/sw/lcdproc/lcdvc/#0/current"` + +Now everything is setup and and we can use `lcdvc`. + +### Running installed versions of LCDproc + +TODO + +### Other parts of LCDproc + +The setup for other parts of LCDproc is the same, you just need to replace some paths. +This table helps you with that: + +| | | | | +| --------- | ------------------------------------------- | ------------------------------------ | ------------------------------------------ | +| `lcdvc` | `/usr/local/share/lcdproc/lcdvc_spec.eqd` | `spec/sw/lcdproc/lcdvc/#0/current` | `$PWD/clients/lcdvc/elektragen.spec.eqd` | +| `lcdexec` | `/usr/local/share/lcdproc/lcdexec_spec.eqd` | `spec/sw/lcdproc/lcdexec/#0/current` | `$PWD/clients/lcdexec/elektragen.spec.eqd` | +| `lcdproc` | `/usr/local/share/lcdproc/lcdproc_spec.eqd` | `spec/sw/lcdproc/lcdproc/#0/current` | `$PWD/clients/lcdproc/elektragen.spec.eqd` | +| `LCDd` | `/usr/local/share/lcdproc/lcdd_spec.eqd` | `spec/sw/lcdproc/lcdd/#0/current` | `$PWD/server/elektragen.spec.eqd` | diff --git a/docs/elektra/drivers.md b/docs/elektra/drivers.md new file mode 100644 index 00000000..332ee21b --- /dev/null +++ b/docs/elektra/drivers.md @@ -0,0 +1,135 @@ +# Drivers + +## Configuration specification + +The whole server uses a single specification. This specification also includes all the drivers. +To add a new driver (e.g. `newdriver`) to the specification, you need to add at least these lines: + +```ini +[newdriver] +default = "" +array = #0 + +[newdriver/#] +type = struct +check/type = any +default = "" +gen/struct/type = NewdriverDriverConfig +gen/struct/alloc = 0 +description = Configuration for a newdriver driver. + +[newdriver/#/file] +type = string +default = "newdriver" +description = name of the shared library to load (without prefix and extension) +``` + +This declares a new array called `newdriver` which will contain all of the different configurations +for the `newdriver` driver. It then specifies that each of the array elements is a struct of type +`NewdriverDriverConfig` (currently the standard is to call the struct `[DriverName]DriverConfig`). +Lastly we define that each array element has the subkey `file`. The driver itself can probably ignore +this key, but it is needed nonetheless. This key is used by the driver loading mechanism to determine +which `.so` file to load. + +Now you can add any configuration parameters your driver needs. For example if `newdriver` has a +contrast parameter, we could add: + +```ini +[newdriver/#/contrast] +type = unsigned_short +check/type = unsigned_short +default = 500 +check/range = 0-1000 +description = contrast value +``` + +**Note:** It is recommended to use a struct with `gen/struct/alloc = 0`, but there is no technical +need for it. It just makes loading the config easier and the code a bit more readable. You may also +use `gen/struct/alloc = 1` or not use structs at all, if you have a reason. + +After you added the specification for your driver, you need to update the list of known drivers in the +server part of the specification. The key `server/drivers` is an array of the active drivers. The +specification contains restrictions, so that only known drivers are allowed. + +```ini +[server/drivers] +default = "" +array = #0 ; TODO (elektra): max drivers +check/reference = single +check/reference/restrict = #_51 +check/reference/restrict/#0 = @/bayrad/# +check/reference/restrict/#1 = @/cfontz/# +; ... +check/reference/restrict/#_51 = @/yard2lcd/# +description = "Tells the server to load a driver. +The given value is a reference the configuration of the driver, e.g. @/curses/#0" +``` + +To add your driver to the list of allowed drivers, just increment the value of `check/reference/restrict` +and add a new entry to `check/reference/restrict/#` of the form `@/[DriverName]/#`. This tells Elektra +to only allow references to existing keys inside the `[DriverName]` array. The `@` just makes says the +reference is relative to the parent keys. Similar to what `~` does in the shell. For the `newdriver` driver +we would get: + +```ini +[server/drivers] +default = "" +array = #0 ; TODO (elektra): max drivers +check/reference = single +check/reference/restrict = #_52 +check/reference/restrict/#0 = @/bayrad/# +check/reference/restrict/#1 = @/cfontz/# +; ... +check/reference/restrict/#_51 = @/yard2lcd/# +check/reference/restrict/#_52 = @/newdriver/# +description = "Tells the server to load a driver. +The given value is a reference the configuration of the driver, e.g. @/curses/#0" +``` + +**Note:** To make it easier to maintain this list of driver, please keep the drivers in alphabetical order. So in the above example `newdriver` should be somewhere in the omitted part of the array. + +## Elektrifying drivers + +The process of elektrifying a driver is rather simple. As before, each driver must have an `init` +function, but now this function receives an `Elektra *` handle in addition to the `Driver *` handle. + +The `Driver` struct was modified as well. It no longer provides the `config_get_*` function pointers, +since they are not needed anymore. Instead use the `elektraGet*` functions to access configuration. +To distinguish between multiple configurations for the same driver, we store the `index` in the +`Driver` struct. + +**Note:** Please load the whole configuration during `init` and don't store the `Elektra *` handle, +it may become invalid after you return from `init`. + +There are various ways to access the configuration using Elektra. The easiest one is to use +`elektraFillStructV` to read the whole configuration into a struct, from which you can then copy +values into the driver specific data structures. + +For example for the `curses` driver we use: + +```c +CursesDriverConfig config; +elektraFillStructV(elektra, &config, ELEKTRA_TAG_CURSES, drvthis->index); +``` + +Since we use a stack allocated struct with `elektraFillStructV`, we don't have to do any memory +management. There is one caveat however. If our config struct contains any strings, they may become +invalid, so we need to `strcpy` or `strdup` them, if we want to store them. For more information on +the pointer lifespan see the documentation of `elektraGetString`. + +Not all kinds of specifications are compatible with the struct mechanism of Elektra's +code-generation, especially not with the `elektraFillStruct` version. If you have a more complicated +case, for example certain kinds of arrays, you will want to use the more basic `elektraGetV`. + +For example `linux_input` reads its keymap like this: + +```c +kdb_long_long_t size = elektraSizeV(elektra, ELEKTRA_TAG_LINUX_INPUT_KEYS, drvthis->index); + +for (kdb_long_long_t i = 0; i < size; ++i) { + struct keycode * key = malloc(sizeof(struct keycode)); + key->code = elektraGetV(elektra, ELEKTRA_TAG_LINUX_INPUT_KEYS_CODE, drvthis->index, i); + key->button = strdup(elektraGetV(elektra, ELEKTRA_TAG_LINUX_INPUT_KEYS_BUTTON, drvthis->index, i)); + LL_AddNode(p->buttonmap, key); +} +``` \ No newline at end of file From 508ee6d1b333e4b01b29b7a1b5c53fe52723ce0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Tue, 30 Jul 2019 16:39:44 +0200 Subject: [PATCH 40/72] lcdproc: fix spec --- clients/lcdproc/specification/lcdproc-spec.ini | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clients/lcdproc/specification/lcdproc-spec.ini b/clients/lcdproc/specification/lcdproc-spec.ini index baa8b128..01dd3b3f 100644 --- a/clients/lcdproc/specification/lcdproc-spec.ini +++ b/clients/lcdproc/specification/lcdproc-spec.ini @@ -17,11 +17,10 @@ opt/long = server type = unsigned_short check/port = check/type = unsigned_short -;default = 13666 +default = 13666 description = Port of the server to connect to opt = p opt/long = port -require = [lcdproc/reportlevel] type = unsigned_short From f052c0d4be92dc365c74c111a970e0bc955ed130 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Tue, 30 Jul 2019 16:40:07 +0200 Subject: [PATCH 41/72] lcdproc: change how base config is loaded --- clients/lcdproc/main.c | 32 ++++++++++++++++---------------- clients/lcdproc/main.h | 2 +- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/clients/lcdproc/main.c b/clients/lcdproc/main.c index cc770794..4729ba66 100644 --- a/clients/lcdproc/main.c +++ b/clients/lcdproc/main.c @@ -105,21 +105,21 @@ ScreenMode sequence[] = { /* flags default ACTIVE will run by default */ /* screen longname which on off inv timer flags func base_conf*/ - { LCDPROC_SCREEN_CPU, "CPU", 'C', 1, 2, 0, 0xffff, ACTIVE, cpu_screen, ELEKTRA_GET(ELEKTRA_TAG_CPU) }, // [C]PU - { LCDPROC_SCREEN_IFACE, "Iface", 'I', 1, 2, 0, 0xffff, 0, iface_screen, ELEKTRA_GET(ELEKTRA_TAG_IFACE) }, // [I]face - { LCDPROC_SCREEN_MEMORY, "Memory", 'M', 4, 16, 0, 0xffff, ACTIVE, mem_screen, ELEKTRA_GET(ELEKTRA_TAG_MEMORY) }, // [M]emory - { LCDPROC_SCREEN_LOAD, "Load", 'L', 64, 128, 1, 0xffff, ACTIVE, xload_screen, ELEKTRA_GET(ELEKTRA_TAG_LOAD) }, // [L]oad (load histogram) - { LCDPROC_SCREEN_TIME_DATE, "TimeDate", 'T', 4, 64, 0, 0xffff, ACTIVE, time_screen, ELEKTRA_GET(ELEKTRA_TAG_TIMEDATE) }, // [T]ime/Date - { LCDPROC_SCREEN_ABOUT, "About", 'A', 999, 9999, 0, 0xffff, ACTIVE, credit_screen, ELEKTRA_GET(ELEKTRA_TAG_ABOUT) }, // [A]bout (credits) - { LCDPROC_SCREEN_SMP_CPU, "SMP-CPU", 'P', 1, 2, 0, 0xffff, 0, cpu_smp_screen, ELEKTRA_GET(ELEKTRA_TAG_SMPCPU) }, // CPU_SM[P] - { LCDPROC_SCREEN_OLD_TIME, "OldTime", 'O', 4, 64, 0, 0xffff, 0, clock_screen, ELEKTRA_GET(ELEKTRA_TAG_OLDTIME) }, // [O]ld Timescreen - { LCDPROC_SCREEN_BIG_CLOCK, "BigClock", 'K', 4, 64, 0, 0xffff, 0, big_clock_screen, ELEKTRA_GET(ELEKTRA_TAG_BIGCLOCK) }, // big cloc[K] - { LCDPROC_SCREEN_UPTIME, "Uptime", 'U', 4, 128, 0, 0xffff, 0, uptime_screen, ELEKTRA_GET(ELEKTRA_TAG_UPTIME) }, // Old [U]ptime Screen - { LCDPROC_SCREEN_BATTERY, "Battery", 'B', 32, 256, 1, 0xffff, 0, battery_screen, ELEKTRA_GET(ELEKTRA_TAG_BATTERY) }, // [B]attery Status - { LCDPROC_SCREEN_CPU_GRAPH, "CPUGraph", 'G', 1, 2, 0, 0xffff, 0, cpu_graph_screen, ELEKTRA_GET(ELEKTRA_TAG_CPUGRAPH) }, // CPU histogram [G]raph - { LCDPROC_SCREEN_PROC_SIZE, "ProcSize", 'S', 16, 256, 1, 0xffff, 0, mem_top_screen, ELEKTRA_GET(ELEKTRA_TAG_PROCSIZE) }, // [S]ize of biggest processes - { LCDPROC_SCREEN_DISK, "Disk", 'D', 256, 256, 1, 0xffff, 0, disk_screen, ELEKTRA_GET(ELEKTRA_TAG_DISK) }, // [D]isk stats - { LCDPROC_SCREEN_MINI_CLOCK, "MiniClock", 'N', 4, 64, 0, 0xffff, 0, mini_clock_screen, ELEKTRA_GET(ELEKTRA_TAG_MINICLOCK) }, // Mi[n]i clock + { LCDPROC_SCREEN_CPU, "CPU", 'C', 1, 2, 0, 0xffff, ACTIVE, cpu_screen, "cpu" }, // [C]PU + { LCDPROC_SCREEN_IFACE, "Iface", 'I', 1, 2, 0, 0xffff, 0, iface_screen, "iface" }, // [I]face + { LCDPROC_SCREEN_MEMORY, "Memory", 'M', 4, 16, 0, 0xffff, ACTIVE, mem_screen, "memory" }, // [M]emory + { LCDPROC_SCREEN_LOAD, "Load", 'L', 64, 128, 1, 0xffff, ACTIVE, xload_screen, "load" }, // [L]oad (load histogram) + { LCDPROC_SCREEN_TIME_DATE, "TimeDate", 'T', 4, 64, 0, 0xffff, ACTIVE, time_screen, "timedate" }, // [T]ime/Date + { LCDPROC_SCREEN_ABOUT, "About", 'A', 999, 9999, 0, 0xffff, ACTIVE, credit_screen, "about" }, // [A]bout (credits) + { LCDPROC_SCREEN_SMP_CPU, "SMP-CPU", 'P', 1, 2, 0, 0xffff, 0, cpu_smp_screen, "smpcpu" }, // CPU_SM[P] + { LCDPROC_SCREEN_OLD_TIME, "OldTime", 'O', 4, 64, 0, 0xffff, 0, clock_screen, "oldtime" }, // [O]ld Timescreen + { LCDPROC_SCREEN_BIG_CLOCK, "BigClock", 'K', 4, 64, 0, 0xffff, 0, big_clock_screen, "bigclock" }, // big cloc[K] + { LCDPROC_SCREEN_UPTIME, "Uptime", 'U', 4, 128, 0, 0xffff, 0, uptime_screen, "uptime" }, // Old [U]ptime Screen + { LCDPROC_SCREEN_BATTERY, "Battery", 'B', 32, 256, 1, 0xffff, 0, battery_screen, "battery" }, // [B]attery Status + { LCDPROC_SCREEN_CPU_GRAPH, "CPUGraph", 'G', 1, 2, 0, 0xffff, 0, cpu_graph_screen, "cpugraph" }, // CPU histogram [G]raph + { LCDPROC_SCREEN_PROC_SIZE, "ProcSize", 'S', 16, 256, 1, 0xffff, 0, mem_top_screen, "procsize" }, // [S]ize of biggest processes + { LCDPROC_SCREEN_DISK, "Disk", 'D', 256, 256, 1, 0xffff, 0, disk_screen, "disk" }, // [D]isk stats + { LCDPROC_SCREEN_MINI_CLOCK, "MiniClock", 'N', 4, 64, 0, 0xffff, 0, mini_clock_screen, "miniclock" }, // Mi[n]i clock { 0, NULL, 0, 0, 0, 0, 0, 0, NULL}, // No more.. all done. }; @@ -355,7 +355,7 @@ process_config() */ for (int k = 0; sequence[k].which != 0; k++) { ScreenBaseConfig base_config; - sequence[k].get_base_config(elektra, &base_config); + ELEKTRA_GET (StructScreenBaseConfig) (elektra, sequence[k].base_config_name, &base_config); sequence[k].on_time = base_config.on_time; sequence[k].off_time = base_config.off_time; diff --git a/clients/lcdproc/main.h b/clients/lcdproc/main.h index 8790b1d7..8b0c34e7 100644 --- a/clients/lcdproc/main.h +++ b/clients/lcdproc/main.h @@ -57,7 +57,7 @@ typedef struct _screen_mode int timer; /**< Time since last update */ int flags; /**< See mode flags defines */ int (*func)(int,int,int *, Elektra *); /**< Pointer to init / update function */ - void (*get_base_config)(Elektra *, ScreenBaseConfig *); /**< Pointer to elektraGet function for base config */ + const char * base_config_name; /**< Key name of base config, will be read with ELEKTRA_GET (StructScreenBaseConfig) */ } ScreenMode; /* mode flags */ From f4b24175ce27840d2d532e829d225ba82af47245 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Tue, 30 Jul 2019 23:20:53 +0200 Subject: [PATCH 42/72] all: update todos --- clients/lcdexec/lcdexec.c | 4 +-- .../lcdexec/specification/lcdexec-spec.ini | 20 ++++++------- clients/lcdproc/main.c | 2 +- .../lcdproc/specification/lcdproc-spec.ini | 2 +- clients/lcdvc/lcdvc.c | 2 +- docs/elektra/drivers.md | 4 +-- server/main.c | 2 +- server/specification/LCDd-spec.ini | 28 +++++++++---------- server/specification/LCDd-spec_notupdated.ini | 3 -- 9 files changed, 31 insertions(+), 36 deletions(-) diff --git a/clients/lcdexec/lcdexec.c b/clients/lcdexec/lcdexec.c index eada6841..0bd7d5e1 100644 --- a/clients/lcdexec/lcdexec.c +++ b/clients/lcdexec/lcdexec.c @@ -201,7 +201,7 @@ static void sigchld_handler(int signal) } } -static void on_fatal_error(ElektraError * error) // TODO (elektra): finalize method +static void on_fatal_error(ElektraError * error) // TODO (kodebach): finalize method { fprintf(stderr, "ERROR: %s\n", elektraErrorDescription(error)); exit(EXIT_FAILURE); @@ -456,7 +456,7 @@ static int process_response(char *str) } /* Find the entry by id */ - Command * command; // TODO (elektra): last entry of command with args? + Command * command; // TODO (kodebach): last entry of command with args? if (!find_triggered_command(main_menu, atoi(argv[2]), &command)) { report(RPT_WARNING, "Could not find the item id given by the server"); free(str2); diff --git a/clients/lcdexec/specification/lcdexec-spec.ini b/clients/lcdexec/specification/lcdexec-spec.ini index a3e184a2..77fb8bfd 100644 --- a/clients/lcdexec/specification/lcdexec-spec.ini +++ b/clients/lcdexec/specification/lcdexec-spec.ini @@ -72,7 +72,7 @@ description = "display name for the main menu" [menu/main] type = struct_ref check/type = any -default = "" ; TODO (elektra): should be required +require = check/reference = single check/reference/restrict = ../menu/# description = "reference to the main menu" @@ -98,7 +98,7 @@ gen/enum/create = 0 [menu/menu/#/displayname] type = string check/type = string -default = "" ; TODO (elektra): should be required +require = description = "name to display in the parent menu" [menu/menu/#/entries] @@ -176,7 +176,7 @@ description = "name to display in the menu" [menu/command/#/exec] type = string check/type = string -default = "" ; TODO (elektra): should be required +require = description = "what the command should do" [menu/command/#/feedback] @@ -216,7 +216,7 @@ description = "name to display in the command" [menu/parameter/slider/#/envname] type = string check/type = string -default = "" ; TODO (elektra): should be required +require = description = "name of the environment variable used by the parameter" [menu/parameter/slider/#/value] @@ -286,7 +286,7 @@ description = "name to display in the command" [menu/parameter/checkbox/#/envname] type = string check/type = string -default = "" ; TODO (elektra): should be required +require = description = "name of the environment variable used by the parameter" [menu/parameter/checkbox/#/value] @@ -356,7 +356,7 @@ description = "name to display in the command" [menu/parameter/numeric/#/envname] type = string check/type = string -default = "" ; TODO (elektra): should be required +require = description = "name of the environment variable used by the parameter" [menu/parameter/numeric/#/value] @@ -408,7 +408,7 @@ description = "name to display in the command" [menu/parameter/ring/#/envname] type = string check/type = string -default = "" ; TODO (elektra): should be required +require = description = "name of the environment variable used by the parameter" [menu/parameter/ring/#/value] @@ -421,7 +421,7 @@ description = "initial value of the argument" type = string check/type = string description = "list of alternative strings to choose from" -default = "" ; TODO (elektra): should be required +require = [menu/parameter/alpha/#] type = struct @@ -454,7 +454,7 @@ description = "name to display in the command" [menu/parameter/alpha/#/envname] type = string check/type = string -default = "" ; TODO (elektra): should be required +require = description = "name of the environment variable used by the parameter" [menu/parameter/alpha/#/value] @@ -513,7 +513,7 @@ description = "name to display in the command" [menu/parameter/ip/#/envname] type = string check/type = string -default = "" ; TODO (elektra): should be required +require = description = "name of the environment variable used by the parameter" [menu/parameter/ip/#/value] diff --git a/clients/lcdproc/main.c b/clients/lcdproc/main.c index 4729ba66..c0b2e89c 100644 --- a/clients/lcdproc/main.c +++ b/clients/lcdproc/main.c @@ -305,7 +305,7 @@ main(int argc, const char **argv) return EXIT_SUCCESS; } -static void on_fatal_error(ElektraError * error) // TODO (elektra): finalize method +static void on_fatal_error(ElektraError * error) // TODO (kodebach): finalize method { fprintf(stderr, "ERROR: %s\n", elektraErrorDescription(error)); exit(EXIT_FAILURE); diff --git a/clients/lcdproc/specification/lcdproc-spec.ini b/clients/lcdproc/specification/lcdproc-spec.ini index 01dd3b3f..197ac98b 100644 --- a/clients/lcdproc/specification/lcdproc-spec.ini +++ b/clients/lcdproc/specification/lcdproc-spec.ini @@ -91,7 +91,7 @@ check/enum/#_13 = proc_size check/enum/#_14 = disk check/enum/#_15 = mini_clock gen/enum/type = LcdprocScreen -default = "" ; TODO (kodebach): opt doesn't need default +require = args = remaining ;CPU diff --git a/clients/lcdvc/lcdvc.c b/clients/lcdvc/lcdvc.c index 02eaa836..e018cbe5 100644 --- a/clients/lcdvc/lcdvc.c +++ b/clients/lcdvc/lcdvc.c @@ -124,7 +124,7 @@ static void exit_program(int val) exit(val); } -static void on_fatal_error(ElektraError * error) // TODO (elektra): finalize method +static void on_fatal_error(ElektraError * error) // TODO (kodebach): finalize method { fprintf(stderr, "ERROR: %s\n", elektraErrorDescription(error)); exit(EXIT_FAILURE); diff --git a/docs/elektra/drivers.md b/docs/elektra/drivers.md index 332ee21b..78c92abf 100644 --- a/docs/elektra/drivers.md +++ b/docs/elektra/drivers.md @@ -54,7 +54,7 @@ specification contains restrictions, so that only known drivers are allowed. ```ini [server/drivers] default = "" -array = #0 ; TODO (elektra): max drivers +array = #0 check/reference = single check/reference/restrict = #_51 check/reference/restrict/#0 = @/bayrad/# @@ -74,7 +74,7 @@ we would get: ```ini [server/drivers] default = "" -array = #0 ; TODO (elektra): max drivers +array = #0 check/reference = single check/reference/restrict = #_52 check/reference/restrict/#0 = @/bayrad/# diff --git a/server/main.c b/server/main.c index 6e91d30a..beef5098 100644 --- a/server/main.c +++ b/server/main.c @@ -272,7 +272,7 @@ clear_settings(void) num_drivers = 0; } -static void on_fatal_error(ElektraError * error) // TODO (elektra): finalize method +static void on_fatal_error(ElektraError * error) // TODO (kodebach): finalize method { fprintf(stderr, "ERROR: %s\n", elektraErrorDescription(error)); exit(EXIT_FAILURE); diff --git a/server/specification/LCDd-spec.ini b/server/specification/LCDd-spec.ini index fe34cd44..0a734e96 100644 --- a/server/specification/LCDd-spec.ini +++ b/server/specification/LCDd-spec.ini @@ -3,7 +3,6 @@ mountpoint = LCDd.conf infos/plugins = ini type reference range ; hexnumber network path ; TODO (elektra): Until the max plugin error is not fixed, some specifications will be left commented out -; TODO (elektra): sizes width/height as separate keys ;============================================================================= ;============================================================================= @@ -19,7 +18,7 @@ description = Select the LCD size [server/drivers] default = "" -array = #0 ; TODO (elektra): max drivers +array = #0 ; TODO (kodebach): max drivers ?? check/reference = single check/reference/restrict = #_14 check/reference/restrict/#0 = @/bayrad/# @@ -114,14 +113,14 @@ description = "GoodBye message: each entry represents a display line" [server/frameinterval] type = unsigned_long check/type = unsigned_long -; check/range = 1- ; TODO (elektra): open ranges +; check/range = 1- ; TODO (kodebach): open ranges default = 125000 description = "Sets the interval in microseconds for updating the display [default: 125000 meaning 8Hz]" [server/waittime] type = float check/type = float -; TODO (elektra): bigger than 2 +; TODO (kodebach): bigger than 2 default = 4 description = Sets the default time in seconds to displays a screen opt = w @@ -929,7 +928,7 @@ check/enum = #2 check/enum/#0 = external check/enum/#1 = internal check/enum/#2 = internalCmds -default = internal ; TODO (elektra): should be required +require = description = "If the switchable backlight is enabled (see hd44780/#/backlight), this value determines which method for turning it on/off will be used. # @@ -1245,63 +1244,62 @@ type = long check/type = long default = -1 description = "required if raspberrypi or gpio is used; -on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default +with raspberrypi -1 triggers the default (8), with gpio it causes an error" [hd44780/#/gpio/pin_rs] type = long check/type = long default = -1 description = "required if raspberrypi or gpio is used; -on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default +with raspberrypi -1 triggers the default (7), with gpio it causes an error" [hd44780/#/gpio/pin_rw] type = long check/type = long default = -1 -description = "required if raspberrypi or gpio is used; -on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default +description = "required if gpio is used" [hd44780/#/gpio/pin_d7] type = long check/type = long default = -1 description = "required if raspberrypi or gpio is used; -on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default +with raspberrypi -1 triggers the default (18), with gpio it causes an error" [hd44780/#/gpio/pin_d6] type = long check/type = long default = -1 description = "required if raspberrypi or gpio is used; -on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default +with raspberrypi -1 triggers the default (23), with gpio it causes an error" [hd44780/#/gpio/pin_d5] type = long check/type = long default = -1 description = "required if raspberrypi or gpio is used; -on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default +with raspberrypi -1 triggers the default (24), with gpio it causes an error" [hd44780/#/gpio/pin_d4] type = long check/type = long default = -1 description = "required if raspberrypi or gpio is used; -on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default +with raspberrypi -1 triggers the default (25), with gpio it causes an error" [hd44780/#/gpio/pin_en2] type = long check/type = long default = -1 description = "required if raspberrypi or gpio is used and 2 controllers are connected; -on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default +with raspberrypi -1 triggers the default (22), with gpio it causes an error" [hd44780/#/gpio/pin_bl] type = long check/type = long default = -1 description = "required if raspberrypi or gpio is used and backlight (external) is enabled; -on raspberrypi -1 triggers the default" ; TODO (kodebach): specify default +with raspberrypi -1 triggers the default (17), with gpio it causes an error" ;lb216 ;================================================== diff --git a/server/specification/LCDd-spec_notupdated.ini b/server/specification/LCDd-spec_notupdated.ini index 1b2d5d7b..476f10e0 100644 --- a/server/specification/LCDd-spec_notupdated.ini +++ b/server/specification/LCDd-spec_notupdated.ini @@ -437,9 +437,6 @@ default = /dev/ppi0 description = The display device to use, e.g. serraw:/dev/ttyS0,\ parport:/dev/parport0 or USB:07c0/1501 - -;TODO (elektra): Are quotes really required now when switching to libelektra? - [glcd/#/serdisp_options] type = string check/type = string From 4eb070ebdb39a403d7310f21c9777d5700913a59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Tue, 30 Jul 2019 23:21:12 +0200 Subject: [PATCH 43/72] hd44780: fix rpi version --- server/drivers/hd44780-rpi.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/server/drivers/hd44780-rpi.c b/server/drivers/hd44780-rpi.c index 5c559f4f..64defa43 100644 --- a/server/drivers/hd44780-rpi.c +++ b/server/drivers/hd44780-rpi.c @@ -369,12 +369,12 @@ hd_init_rpi(Driver *drvthis, const Hd44780DriverConfig * config) return -1; } - p->rpi_gpio->en = config->gpioEn > 0 ? config->gpioEn : RPI_DEF_EN; - p->rpi_gpio->rs = config->gpioRs > 0 ? config->gpioRs : RPI_DEF_RS; - p->rpi_gpio->d7 = config->gpioD7 > 0 ? config->gpioD7 : RPI_DEF_D7; - p->rpi_gpio->d6 = config->gpioD6 > 0 ? config->gpioD6 : RPI_DEF_D6; - p->rpi_gpio->d5 = config->gpioD5 > 0 ? config->gpioD5 : RPI_DEF_D5; - p->rpi_gpio->d4 = config->gpioD4 > 0 ? config->gpioD4 : RPI_DEF_D4; + p->rpi_gpio->en = config->gpioPinEn > 0 ? config->gpioPinEn : RPI_DEF_EN; + p->rpi_gpio->rs = config->gpioPinRs > 0 ? config->gpioPinRs : RPI_DEF_RS; + p->rpi_gpio->d7 = config->gpioPinD7 > 0 ? config->gpioPinD7 : RPI_DEF_D7; + p->rpi_gpio->d6 = config->gpioPinD6 > 0 ? config->gpioPinD6 : RPI_DEF_D6; + p->rpi_gpio->d5 = config->gpioPinD5 > 0 ? config->gpioPinD5 : RPI_DEF_D5; + p->rpi_gpio->d4 = config->gpioPinD4 > 0 ? config->gpioPinD4 : RPI_DEF_D4; report(RPT_INFO, "hd_init_rpi: Pin EN mapped to GPIO%d", p->rpi_gpio->en); report(RPT_INFO, "hd_init_rpi: Pin RS mapped to GPIO%d", p->rpi_gpio->rs); @@ -394,7 +394,7 @@ hd_init_rpi(Driver *drvthis, const Hd44780DriverConfig * config) } if (p->numDisplays > 1) { /* For displays with two controllers */ - p->rpi_gpio->en2 = config->gpioEn2 > 0 ? config->gpioEn2 : RPI_DEF_EN2; + p->rpi_gpio->en2 = config->gpioPinEn2 > 0 ? config->gpioPinEn2 : RPI_DEF_EN2; debug(RPT_INFO, "hd_init_rpi: Pin EN2 mapped to GPIO%d", p->rpi_gpio->en2); if (check_pin(drvthis, p->rpi_gpio->en2, allowed_gpio_pins, used_pins)) { free(p->rpi_gpio); @@ -403,7 +403,7 @@ hd_init_rpi(Driver *drvthis, const Hd44780DriverConfig * config) } if (have_backlight_pin(p)) { /* Backlight setup is optional */ - p->backlight_bit = config->gpioBl > 0 ? config->gpioBl : RPI_DEF_BL; + p->backlight_bit = config->gpioPinBl > 0 ? config->gpioPinBl : RPI_DEF_BL; debug(RPT_INFO, "hd_init_rpi: Backlight mapped to GPIO%d", p->backlight_bit); if (check_pin(drvthis, p->backlight_bit, allowed_gpio_pins, used_pins) != 0) { From 4f2a706ffcba53e1d2df80a7dafbbe9547250035 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Thu, 1 Aug 2019 15:08:13 +0200 Subject: [PATCH 44/72] lcdproc: fix include paths --- clients/lcdproc/batt.h | 2 +- clients/lcdproc/chrono.h | 2 +- clients/lcdproc/cpu.h | 2 +- clients/lcdproc/cpu_smp.h | 2 +- clients/lcdproc/disk.h | 2 +- clients/lcdproc/load.h | 2 +- clients/lcdproc/mem.h | 2 +- clients/lcdproc/mode.h | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/clients/lcdproc/batt.h b/clients/lcdproc/batt.h index 08640ccd..51fa2791 100644 --- a/clients/lcdproc/batt.h +++ b/clients/lcdproc/batt.h @@ -1,7 +1,7 @@ #ifndef BATT_H #define BATT_H -#include +#include int battery_screen(int rep, int display, int *flags_ptr, Elektra * elektra); diff --git a/clients/lcdproc/chrono.h b/clients/lcdproc/chrono.h index 19becb80..800c7bd6 100644 --- a/clients/lcdproc/chrono.h +++ b/clients/lcdproc/chrono.h @@ -1,7 +1,7 @@ #ifndef CHRONO_H #define CHRONO_H -#include +#include int clock_screen(int rep, int display, int *flags_ptr, Elektra * elektra); int uptime_screen(int rep, int display, int *flags_ptr, Elektra * elektra); diff --git a/clients/lcdproc/cpu.h b/clients/lcdproc/cpu.h index fdf25398..b5c1c666 100644 --- a/clients/lcdproc/cpu.h +++ b/clients/lcdproc/cpu.h @@ -1,7 +1,7 @@ #ifndef CPU_H #define CPU_H -#include +#include int cpu_screen(int rep, int display, int *flags_ptr, Elektra * elektra); int cpu_graph_screen(int rep, int display, int *flags_ptr, Elektra * elektra); diff --git a/clients/lcdproc/cpu_smp.h b/clients/lcdproc/cpu_smp.h index 3061ec14..d53903da 100644 --- a/clients/lcdproc/cpu_smp.h +++ b/clients/lcdproc/cpu_smp.h @@ -1,7 +1,7 @@ #ifndef CPU_SMP_H #define CPU_SMP_H -#include +#include int cpu_smp_screen(int rep, int display, int *flags_ptr, Elektra * elektra); diff --git a/clients/lcdproc/disk.h b/clients/lcdproc/disk.h index e6d3e639..8399a15f 100644 --- a/clients/lcdproc/disk.h +++ b/clients/lcdproc/disk.h @@ -1,7 +1,7 @@ #ifndef DISK_H #define DISK_H -#include +#include int disk_screen(int rep, int display, int *flags_ptr, Elektra * elektra); diff --git a/clients/lcdproc/load.h b/clients/lcdproc/load.h index 402f6661..22d27f23 100644 --- a/clients/lcdproc/load.h +++ b/clients/lcdproc/load.h @@ -8,7 +8,7 @@ #define LOAD_MIN 0.05 #endif -#include +#include int xload_screen(int rep, int display, int *flags_ptr, Elektra * elektra); diff --git a/clients/lcdproc/mem.h b/clients/lcdproc/mem.h index b7a6d7fb..0df7d89d 100644 --- a/clients/lcdproc/mem.h +++ b/clients/lcdproc/mem.h @@ -1,7 +1,7 @@ #ifndef MEM_H #define MEM_H -#include +#include int mem_screen(int rep, int display, int *flags_ptr, Elektra * elektra); int mem_top_screen(int rep, int display, int *flags_ptr, Elektra * elektra); diff --git a/clients/lcdproc/mode.h b/clients/lcdproc/mode.h index ec60bea9..dbbc6c31 100644 --- a/clients/lcdproc/mode.h +++ b/clients/lcdproc/mode.h @@ -1,7 +1,7 @@ #ifndef MODE_H #define MODE_H -#include +#include int mode_init(void); void mode_close(void); From 913598f9c124302c5796d39b6a25a61c7391f44f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Mon, 26 Aug 2019 21:33:41 +0200 Subject: [PATCH 45/72] all: update template from elektra to highlevel --- clients/lcdexec/Makefile.am | 2 +- clients/lcdproc/Makefile.am | 2 +- clients/lcdvc/Makefile.am | 2 +- server/Makefile.am | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/clients/lcdexec/Makefile.am b/clients/lcdexec/Makefile.am index de4ed763..1696b641 100644 --- a/clients/lcdexec/Makefile.am +++ b/clients/lcdexec/Makefile.am @@ -19,6 +19,6 @@ EXTRA_DIST = $(sysconf_DATA) KDB ?= kdb elektragen.c elektragen.h elektragen.spec.eqd: specification/lcdexec-spec.ini - $(KDB) gen -F ni=specification/lcdexec-spec.ini elektra "spec/sw/lcdproc/lcdexec/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage specLocation=external defaultsHandling=speconly headers=menu.h + $(KDB) gen -F ni=specification/lcdexec-spec.ini highlevel "spec/sw/lcdproc/lcdexec/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage specLocation=external defaultsHandling=speconly headers=menu.h ## EOF diff --git a/clients/lcdproc/Makefile.am b/clients/lcdproc/Makefile.am index 833a9513..c691c3c2 100644 --- a/clients/lcdproc/Makefile.am +++ b/clients/lcdproc/Makefile.am @@ -22,6 +22,6 @@ EXTRA_DIST = $(sysconf_DATA) KDB ?= kdb elektragen.c elektragen.h elektragen.spec.eqd: specification/lcdproc-spec.ini - $(KDB) gen -F ni=specification/lcdproc-spec.ini elektra "spec/sw/lcdproc/lcdproc/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage specLocation=external defaultsHandling=speconly headers=screen_config.h + $(KDB) gen -F ni=specification/lcdproc-spec.ini highlevel "spec/sw/lcdproc/lcdproc/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage specLocation=external defaultsHandling=speconly headers=screen_config.h ## EOF diff --git a/clients/lcdvc/Makefile.am b/clients/lcdvc/Makefile.am index d73379ed..354bbf22 100644 --- a/clients/lcdvc/Makefile.am +++ b/clients/lcdvc/Makefile.am @@ -25,6 +25,6 @@ EXTRA_DIST = $(sysconf_DATA) KDB ?= kdb elektragen.c elektragen.h elektragen.spec.eqd: specification/lcdvc-spec.ini - $(KDB) gen -F ni=specification/lcdvc-spec.ini elektra "spec/sw/lcdproc/lcdvc/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage specLocation=external defaultsHandling=speconly helpFn=printHelpMessage + $(KDB) gen -F ni=specification/lcdvc-spec.ini highlevel "spec/sw/lcdproc/lcdvc/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage specLocation=external defaultsHandling=speconly helpFn=printHelpMessage ## EOF diff --git a/server/Makefile.am b/server/Makefile.am index 701dd171..65dade5a 100644 --- a/server/Makefile.am +++ b/server/Makefile.am @@ -21,6 +21,6 @@ AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/shared -DSYSCONFDIR=\"$(sysconfdir KDB ?= kdb elektragen.c elektragen.h elektragen.spec.eqd: specification/LCDd-spec.ini - $(KDB) gen -F ni=specification/LCDd-spec.ini elektra "spec/sw/lcdproc/lcdd/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage specLocation=external defaultsHandling=speconly helpFn=printHelpMessage + $(KDB) gen -F ni=specification/LCDd-spec.ini highlevel "spec/sw/lcdproc/lcdd/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage specLocation=external defaultsHandling=speconly helpFn=printHelpMessage ## EOF From 2a5b716968e9a6582c0da5a5dacc70c67919bc7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Fri, 30 Aug 2019 15:03:38 +0200 Subject: [PATCH 46/72] all: ignore all elektragen files --- clients/lcdexec/.gitignore | 4 +--- clients/lcdproc/.gitignore | 4 +--- clients/lcdvc/.gitignore | 4 +--- server/.gitignore | 4 +--- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/clients/lcdexec/.gitignore b/clients/lcdexec/.gitignore index 14d664b9..40255623 100644 --- a/clients/lcdexec/.gitignore +++ b/clients/lcdexec/.gitignore @@ -2,6 +2,4 @@ Makefile Makefile.in lcdexec -elektragen.c -elektragen.h -elektragen.spec.eqd +elektragen.* diff --git a/clients/lcdproc/.gitignore b/clients/lcdproc/.gitignore index e46ea901..7ee0f8a0 100644 --- a/clients/lcdproc/.gitignore +++ b/clients/lcdproc/.gitignore @@ -2,6 +2,4 @@ Makefile Makefile.in lcdproc -elektragen.c -elektragen.h -elektragen.spec.eqd +elektragen.* diff --git a/clients/lcdvc/.gitignore b/clients/lcdvc/.gitignore index a3f69996..23482460 100644 --- a/clients/lcdvc/.gitignore +++ b/clients/lcdvc/.gitignore @@ -2,6 +2,4 @@ Makefile Makefile.in lcdvc -elektragen.c -elektragen.h -elektragen.spec.eqd +elektragen.* diff --git a/server/.gitignore b/server/.gitignore index d7f248f6..52bbc3fd 100644 --- a/server/.gitignore +++ b/server/.gitignore @@ -3,6 +3,4 @@ LCDd Makefile Makefile.in main.d -elektragen.c -elektragen.h -elektragen.spec.eqd +elektragen.* From 26a0327f57a2f0171168f5f501d9807b21fb27a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Fri, 30 Aug 2019 15:18:46 +0200 Subject: [PATCH 47/72] all: update to newest elektra --- clients/lcdexec/Makefile.am | 6 +++--- clients/lcdproc/Makefile.am | 6 +++--- clients/lcdvc/Makefile.am | 6 +++--- server/Makefile.am | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/clients/lcdexec/Makefile.am b/clients/lcdexec/Makefile.am index 1696b641..1361e594 100644 --- a/clients/lcdexec/Makefile.am +++ b/clients/lcdexec/Makefile.am @@ -9,7 +9,7 @@ nodist_lcdexec_SOURCES = elektragen.c elektragen.h lcdexec.$(OBJEXT): elektragen.c elektragen.h BUILT_SOURCES= elektragen.c elektragen.h -CLEANFILES = elektragen.c elektragen.h +CLEANFILES = elektragen.c elektragen.h elektragen.spec.eqd elektragen.mount.sh lcdexec_LDADD = ../../shared/libLCDstuff.a @@ -18,7 +18,7 @@ AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/shared -DSYSCONFDIR=\"$(sysconfdir EXTRA_DIST = $(sysconf_DATA) KDB ?= kdb -elektragen.c elektragen.h elektragen.spec.eqd: specification/lcdexec-spec.ini - $(KDB) gen -F ni=specification/lcdexec-spec.ini highlevel "spec/sw/lcdproc/lcdexec/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage specLocation=external defaultsHandling=speconly headers=menu.h +elektragen.c elektragen.h elektragen.spec.eqd elektragen.mount.sh: specification/lcdexec-spec.ini + $(KDB) gen -F ni=specification/lcdexec-spec.ini highlevel "spec/sw/lcdproc/lcdexec/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage embeddedSpec=defaults headers=menu.h ## EOF diff --git a/clients/lcdproc/Makefile.am b/clients/lcdproc/Makefile.am index c691c3c2..41c5d0c5 100644 --- a/clients/lcdproc/Makefile.am +++ b/clients/lcdproc/Makefile.am @@ -8,7 +8,7 @@ nodist_lcdproc_SOURCES = elektragen.c elektragen.h lcdproc.$(OBJEXT): elektragen.c elektragen.h BUILT_SOURCES= elektragen.c elektragen.h -CLEANFILES = elektragen.c elektragen.h +CLEANFILES = elektragen.c elektragen.h elektragen.spec.eqd elektragen.mount.sh lcdproc_LDADD = ../../shared/libLCDstuff.a @@ -21,7 +21,7 @@ AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/shared -DSYSCONFDIR=\"$(sysconfdir EXTRA_DIST = $(sysconf_DATA) KDB ?= kdb -elektragen.c elektragen.h elektragen.spec.eqd: specification/lcdproc-spec.ini - $(KDB) gen -F ni=specification/lcdproc-spec.ini highlevel "spec/sw/lcdproc/lcdproc/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage specLocation=external defaultsHandling=speconly headers=screen_config.h +elektragen.c elektragen.h elektragen.spec.eqd elektragen.mount.sh: specification/lcdproc-spec.ini + $(KDB) gen -F ni=specification/lcdproc-spec.ini highlevel "spec/sw/lcdproc/lcdproc/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage embeddedSpec=defaults headers=screen_config.h ## EOF diff --git a/clients/lcdvc/Makefile.am b/clients/lcdvc/Makefile.am index 354bbf22..cc8af7a5 100644 --- a/clients/lcdvc/Makefile.am +++ b/clients/lcdvc/Makefile.am @@ -7,7 +7,7 @@ lcdvc_SOURCES = lcdvc.c lcdvc.h lcd_link.c lcd_link.h vc_link.c vc_link.h nodist_lcdvc_SOURCES = elektragen.c elektragen.h lcdvc.$(OBJEXT): elektragen.c elektragen.h -CLEANFILES = elektragen.c elektragen.h +CLEANFILES = elektragen.c elektragen.h elektragen.spec.eqd elektragen.mount.sh lcdvc_LDADD = ../../shared/libLCDstuff.a @@ -24,7 +24,7 @@ AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/shared -DSYSCONFDIR=\"$(sysconfdir EXTRA_DIST = $(sysconf_DATA) KDB ?= kdb -elektragen.c elektragen.h elektragen.spec.eqd: specification/lcdvc-spec.ini - $(KDB) gen -F ni=specification/lcdvc-spec.ini highlevel "spec/sw/lcdproc/lcdvc/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage specLocation=external defaultsHandling=speconly helpFn=printHelpMessage +elektragen.c elektragen.h elektragen.spec.eqd elektragen.mount.sh: specification/lcdvc-spec.ini + $(KDB) gen -F ni=specification/lcdvc-spec.ini highlevel "spec/sw/lcdproc/lcdvc/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage embeddedSpec=defaults helpFn=printHelpMessage ## EOF diff --git a/server/Makefile.am b/server/Makefile.am index 65dade5a..7d458f12 100644 --- a/server/Makefile.am +++ b/server/Makefile.am @@ -9,7 +9,7 @@ nodist_LCDd_SOURCES = elektragen.c elektragen.h LCDd.$(OBJEXT): elektragen.c elektragen.h BUILT_SOURCES = elektragen.c elektragen.h -CLEANFILES = elektragen.c elektragen.h +CLEANFILES = elektragen.c elektragen.h elektragen.spec.eqd elektragen.mount.sh LDADD = ../shared/libLCDstuff.a commands/libLCDcommands.a @LIBPTHREAD_LIBS@ @@ -20,7 +20,7 @@ endif AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/shared -DSYSCONFDIR=\"$(sysconfdir)\" KDB ?= kdb -elektragen.c elektragen.h elektragen.spec.eqd: specification/LCDd-spec.ini - $(KDB) gen -F ni=specification/LCDd-spec.ini highlevel "spec/sw/lcdproc/lcdd/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage specLocation=external defaultsHandling=speconly helpFn=printHelpMessage +elektragen.c elektragen.h elektragen.spec.eqd elektragen.mount.sh: specification/LCDd-spec.ini + $(KDB) gen -F ni=specification/LCDd-spec.ini highlevel "spec/sw/lcdproc/lcdd/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage embeddedSpec=defaults ## EOF From d9878015386eec22db5f0021ed31a4bace83e316 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Fri, 30 Aug 2019 17:10:14 +0200 Subject: [PATCH 48/72] server: make driver/#0 required --- server/main.c | 4 ++-- server/specification/LCDd-spec.ini | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/main.c b/server/main.c index beef5098..cd4b6da0 100644 --- a/server/main.c +++ b/server/main.c @@ -293,7 +293,7 @@ process_config() { fprintf(stderr, "An error occurred while initializing elektra: %s", elektraErrorDescription(error)); elektraErrorReset(&error); - return EXIT_FAILURE; + return -1; } if (rc == 1) @@ -301,7 +301,7 @@ process_config() // help mode printHelpMessage(elektra, NULL, help_prefix); elektraClose (elektra); - return EXIT_SUCCESS; + exit (EXIT_SUCCESS); } elektraFatalErrorHandler(elektra, on_fatal_error); diff --git a/server/specification/LCDd-spec.ini b/server/specification/LCDd-spec.ini index 0a734e96..96770aee 100644 --- a/server/specification/LCDd-spec.ini +++ b/server/specification/LCDd-spec.ini @@ -42,7 +42,7 @@ The given value is a reference the configuration of the driver, e.g. @/curses/#0 [server/drivers/#] type = string check/type = string -default = "" +require = [server/bind] type = string From c5715880d4000b7743114073a055fbff225f4a10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Fri, 30 Aug 2019 19:33:24 +0200 Subject: [PATCH 49/72] all: add post-install script --- Makefile.am | 1 - clients/lcdexec/Makefile.am | 12 +++++++ clients/lcdexec/lcdexec.mount.sh | 38 ++++++++++++++++++++ clients/lcdexec/lcdexec.spec.eqd | Bin 0 -> 11102 bytes clients/lcdproc/Makefile.am | 12 +++++++ clients/lcdproc/lcdproc.mount.sh | 38 ++++++++++++++++++++ clients/lcdproc/lcdproc.spec.eqd | Bin 0 -> 12217 bytes clients/lcdvc/Makefile.am | 12 +++++++ clients/lcdvc/lcdvc.mount.sh | 38 ++++++++++++++++++++ clients/lcdvc/lcdvc.spec.eqd | Bin 0 -> 1787 bytes configure.ac | 12 ++----- docs/elektra/README.md | 37 ++++++------------- post-install.sh | 56 +++++++++++++++++++++++++++++ post-install.sh.in | 56 +++++++++++++++++++++++++++++ server/LCDd.mount.sh | 38 ++++++++++++++++++++ server/LCDd.spec.eqd | Bin 0 -> 42941 bytes server/Makefile.am | 12 +++++++ server/specification/LCDd-spec.ini | 2 +- 18 files changed, 325 insertions(+), 39 deletions(-) create mode 100644 clients/lcdexec/lcdexec.mount.sh create mode 100644 clients/lcdexec/lcdexec.spec.eqd create mode 100644 clients/lcdproc/lcdproc.mount.sh create mode 100644 clients/lcdproc/lcdproc.spec.eqd create mode 100644 clients/lcdvc/lcdvc.mount.sh create mode 100644 clients/lcdvc/lcdvc.spec.eqd create mode 100755 post-install.sh create mode 100644 post-install.sh.in create mode 100644 server/LCDd.mount.sh create mode 100644 server/LCDd.spec.eqd diff --git a/Makefile.am b/Makefile.am index 85ddf89e..a4df5a90 100644 --- a/Makefile.am +++ b/Makefile.am @@ -9,7 +9,6 @@ sysconf_DATA = LCDd.conf EXTRA_DIST = $(sysconf_DATA) CREDITS.md contrib - dist-hook: rm -rf `find $(distdir)/contrib -name CVS` diff --git a/clients/lcdexec/Makefile.am b/clients/lcdexec/Makefile.am index 1361e594..74474b6c 100644 --- a/clients/lcdexec/Makefile.am +++ b/clients/lcdexec/Makefile.am @@ -17,8 +17,20 @@ AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/shared -DSYSCONFDIR=\"$(sysconfdir EXTRA_DIST = $(sysconf_DATA) +scriptsdir = $(prefix)/libexec +scripts_DATA = lcdexec.mount.sh + +specdir = $(prefix)/share/lcdproc +spec_DATA = lcdexec.spec.eqd + KDB ?= kdb elektragen.c elektragen.h elektragen.spec.eqd elektragen.mount.sh: specification/lcdexec-spec.ini $(KDB) gen -F ni=specification/lcdexec-spec.ini highlevel "spec/sw/lcdproc/lcdexec/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage embeddedSpec=defaults headers=menu.h +lcdexec.mount.sh: elektragen.mount.sh + cp elektragen.mount.sh lcdexec.mount.sh + +lcdexec.spec.eqd: elektragen.spec.eqd + cp elektragen.spec.eqd lcdexec.spec.eqd + ## EOF diff --git a/clients/lcdexec/lcdexec.mount.sh b/clients/lcdexec/lcdexec.mount.sh new file mode 100644 index 00000000..6bd0e55c --- /dev/null +++ b/clients/lcdexec/lcdexec.mount.sh @@ -0,0 +1,38 @@ +#!/bin/sh + +if [ -z "$SPEC_FILE" ]; then + # TODO: set SPEC_FILE to the installed path of your spec.eqd file + SPEC_FILE='/usr/local/share/lcdproc/lcdexec.spec.eqd' +fi + +if ! [ -f "$SPEC_FILE" ]; then + echo "ERROR: SPEC_FILE points to non-existent file" 1>&2 + exit 1 +fi + +error_other_mp() { + echo "ERROR: another mountpoint already exists on spec/sw/lcdproc/lcdexec/#0/current. Please umount first." 1>&2 + exit 1 +} + +if kdb mount -13 | grep -Fxq 'spec/sw/lcdproc/lcdexec/#0/current'; then + if ! kdb mount | grep -Fxq 'lcdexec.overlay.spec.eqd on spec/sw/lcdproc/lcdexec/#0/current with name spec/sw/lcdproc/lcdexec/#0/current'; then + error_other_mp + fi + + MP=$(echo "spec/sw/lcdproc/lcdexec/#0/current" | sed 's:\\:\\\\:g' | sed 's:/:\\/:g') + if [ "$(kdb get "system/elektra/mountpoints/$MP/getplugins/#5#specload#specload#/config/file")" != "$SPEC_FILE" ]; then + error_other_mp + fi +else + sudo kdb mount -R noresolver "lcdexec.overlay.spec.eqd" "spec/sw/lcdproc/lcdexec/#0/current" specload "file=$SPEC_FILE" +fi + +if kdb mount -13 | grep -Fxq '/sw/lcdproc/lcdexec/#0/current'; then + if ! kdb mount | grep -Fxq 'lcdexec.conf on /sw/lcdproc/lcdexec/#0/current with name /sw/lcdproc/lcdexec/#0/current'; then + echo "ERROR: another mountpoint already exists on /sw/lcdproc/lcdexec/#0/current. Please umount first." 1>&2 + exit 1 + fi +else + sudo kdb spec-mount '/sw/lcdproc/lcdexec/#0/current' +fi diff --git a/clients/lcdexec/lcdexec.spec.eqd b/clients/lcdexec/lcdexec.spec.eqd new file mode 100644 index 0000000000000000000000000000000000000000..97b7bef689f15f460eccdafe47af71af25eb0686 GIT binary patch literal 11102 zcmdT~ZBN`t5*~yQ8buLWArwUj(P*^VjrPC{WI$PjB6h;=<`M$8WcOb7!>Sqg%viD8 zzHSd>?#q3=pKyQos=D2_yBXU_2;oqogfU%R)zwu`Jyo9LS1*2OwOaFYaxPj8_%N1U z5>7?|mq!5)NIFdz5tNVMUp8cd@c|>8rB|_d7p+9`gr`Xy@bqyw@Y#Dd*c!xq*jmp% zdDQm>lM?oRJQ%aVJ1#33G3KMfWLfO<@F%c6^KufWeKKL+N!h=&WYV(-0!VN2>mC6%FS#d#0;17ea!3|HmODa6j?q#Rh z0x`?V)3d<;5%wWrJfL`61kC1WFo&xpR1%-EDCV|vOwf2qEYiX)_{qAKwF#HOh%^5W zIfmcmu6oej-P_x<3^_Q11?Vf9rgSjIpRNT;Qh2D1y0lS_k|J6J!$l#xWFgr2NC&P; ziN)>BUO9Z6Epj{OcPtzKea=#;f<|wR9#Y%?iDW4Nzm3Ti73e%kDEA2yA{LUwJe+Rn zTNlMC9_xKJ)h4q~vuWZ`FHK`Pm0>(8oQ{cN!lN+Uj>X^4$MGce$rXYDIt9(t8$n#k zlu;kEQ>H$c`&^qT3o|z|Gt+oe3u#l0*4C=AQI1)NzOKtm?;_xy99xe4uM$L~CQ@f6 zLeeBf2PYyP2^z@*aOad{3&%7ikdaKt6r3!-Cz}J(KRr1)dh;S$Wc>2M`On9%U)w>u zhDq)X;wSz^ zwrKTi)!ql=7=&#JN%s|SftL)B0j40LUPrG@MK?tm+8d5)qXWBvslyt9>=@XD{n z0ayxpt_US5iy)+_m=d!Of!f0W#U=^h8CaEs457`5+Fi$rghH6H6k-bOSa;m?P=eth zt9IW)rx)!zLb-3f&i4M+mZ$&bdOR5h5W-%kPOy70Ls03th~L+X?mU|z3U!Xbb=OPo z?#__JT3;{rv^PVHhRK-L%k?tPfOO%UAn`h_{mMIPNZ@_U%bfUN!T}wL0#4IdtmR7H z0(Q#isAjE)#NbJm)Mq9_P%e62C-#m_RpE~Mb*m;E!g9miJvy~zOol=f*#~*31E_j^ z*IxgXiJNMP9a~~43zuqvU0a~77-8iBp4zJ)sNksHyk{?82ojCV%5Po{!phSt8m|9< zOTUI>h|C4J;FT_Py3wjmSNsUBUCQ9ge%x(i1eOb08$aimluM~Xptj1*TE%Nrk5K>W z3H*2rI6PI+qij}twU$+oBM| zU_X+M1F3w{`c7?ZAHLzj>kxJYm8&@a0CaT{<8#64@`=f}YJ73;Sd-(S7NLzFRFw)F1uaLlgRrxN^6K(%oY55`n6 zwVGa|cl1O5#qp0n{rvLJuU?v4rmjUZ)aBsQTxtbi+1id2y>0CiZQ8`>S*#=fChOg&QCvMCHm1p+uR!XgX_ z0(t>M0O-DaaxqoqA$NQgi$AKcC!+5|#z*Pcwy2HsoxE-?cDL;o^$^5@Xc9p~jk0D~ z1hWw!tUPP=)gG-%#Q|?t>@*RFzzIK4t>&V+TTEtnvy!=IvxsfO)GW%;E%=!Ad?#mJ z*5h5xt*mEHGX`Zn>>*DorG?E{GKofrm`!?1wB=dF{a?~>QW1@_v)}-(APr~;aR`#v zZobSch5-xx$JzSdaJikIx~D7d$PnI!T2@x^QSE-GkHb;u#Li4>P}qY^#>KG09t~qK z*_hgC($w{ymd1(-qExa%B^N&V7Por>V;q=GXgkbqtyj)vl??e3*wwFAe^>D3LV3v} z=*E=2FHJTv#|@;KAa3I_tBxF_5Yp?+rFxbMLhCGogJsvsGzV4 zLKpAJda|Q~x3WlF3#pRtiRn_h%p13tmHKT-k(K7H^6lj1`nh^(U6GmYyu;Y?MRLuZd^oA824&qIm-^n>DL_G1rvn>3`- zz3>I9L2nwm8yS_&~-gf7z`7PcvKs7V(n?tHwbaRh12DM8$ IKbY$L4@ecLv;Y7A literal 0 HcmV?d00001 diff --git a/clients/lcdproc/Makefile.am b/clients/lcdproc/Makefile.am index 41c5d0c5..3a910718 100644 --- a/clients/lcdproc/Makefile.am +++ b/clients/lcdproc/Makefile.am @@ -20,8 +20,20 @@ AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/shared -DSYSCONFDIR=\"$(sysconfdir EXTRA_DIST = $(sysconf_DATA) +scriptsdir = $(prefix)/libexec +scripts_DATA = lcdproc.mount.sh + +specdir = $(prefix)/share/lcdproc +spec_DATA = lcdproc.spec.eqd + KDB ?= kdb elektragen.c elektragen.h elektragen.spec.eqd elektragen.mount.sh: specification/lcdproc-spec.ini $(KDB) gen -F ni=specification/lcdproc-spec.ini highlevel "spec/sw/lcdproc/lcdproc/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage embeddedSpec=defaults headers=screen_config.h +lcdproc.mount.sh: elektragen.mount.sh + cp elektragen.mount.sh lcdproc.mount.sh + +lcdproc.spec.eqd: elektragen.spec.eqd + cp elektragen.spec.eqd lcdproc.spec.eqd + ## EOF diff --git a/clients/lcdproc/lcdproc.mount.sh b/clients/lcdproc/lcdproc.mount.sh new file mode 100644 index 00000000..aaafcc39 --- /dev/null +++ b/clients/lcdproc/lcdproc.mount.sh @@ -0,0 +1,38 @@ +#!/bin/sh + +if [ -z "$SPEC_FILE" ]; then + # TODO: set SPEC_FILE to the installed path of your spec.eqd file + SPEC_FILE='/usr/local/share/lcdproc/lcdproc.spec.eqd' +fi + +if ! [ -f "$SPEC_FILE" ]; then + echo "ERROR: SPEC_FILE points to non-existent file" 1>&2 + exit 1 +fi + +error_other_mp() { + echo "ERROR: another mountpoint already exists on spec/sw/lcdproc/lcdproc/#0/current. Please umount first." 1>&2 + exit 1 +} + +if kdb mount -13 | grep -Fxq 'spec/sw/lcdproc/lcdproc/#0/current'; then + if ! kdb mount | grep -Fxq 'lcdproc.overlay.spec.eqd on spec/sw/lcdproc/lcdproc/#0/current with name spec/sw/lcdproc/lcdproc/#0/current'; then + error_other_mp + fi + + MP=$(echo "spec/sw/lcdproc/lcdproc/#0/current" | sed 's:\\:\\\\:g' | sed 's:/:\\/:g') + if [ "$(kdb get "system/elektra/mountpoints/$MP/getplugins/#5#specload#specload#/config/file")" != "$SPEC_FILE" ]; then + error_other_mp + fi +else + sudo kdb mount -R noresolver "lcdproc.overlay.spec.eqd" "spec/sw/lcdproc/lcdproc/#0/current" specload "file=$SPEC_FILE" +fi + +if kdb mount -13 | grep -Fxq '/sw/lcdproc/lcdproc/#0/current'; then + if ! kdb mount | grep -Fxq 'ldcproc.conf on /sw/lcdproc/lcdproc/#0/current with name /sw/lcdproc/lcdproc/#0/current'; then + echo "ERROR: another mountpoint already exists on /sw/lcdproc/lcdproc/#0/current. Please umount first." 1>&2 + exit 1 + fi +else + sudo kdb spec-mount '/sw/lcdproc/lcdproc/#0/current' +fi diff --git a/clients/lcdproc/lcdproc.spec.eqd b/clients/lcdproc/lcdproc.spec.eqd new file mode 100644 index 0000000000000000000000000000000000000000..ad4f8d5cf53b2415c5644ce98bdf411521e16ae1 GIT binary patch literal 12217 zcmd5?ZExbn7G`f0AsR&}ilPW1#H0wNQ5Ou!Cb!*wsM>Dd)a}bvZa-BkWb84FVvo7w zA=%vf8>;^0p7D5Wk6{gy2)Owa2G4oUnR(8u`SzzbUso!Xy%*7oph>6~M%K)qPY8{A zgc8IbXBaV?PB5aFKZNWqI0?cz<+G4b-tb*##zLp>gw(4X*yC`{LC%RY#m=22_Ev5B z7}Qj)22+k&$S`lY+hg-JqhtA$0=;YQMhHZ{vv7K8Ka?WnyD@?z(Bm50ukx5V! z%ZE}{r4d70w!_Ii)-|Y)!_dbzO|{q?2B$8L97blGg!J@w8a^QS2;w#UJc51qP>Pgj zN>rsO;X=>jBq-oD=QJV{irtYP(n*S1`yBoj4!ni zr7;m41EKdMB4fW`lCnEB1}-RnlkrKlgn&^hp>SgLvCTPVkNVwgi5;y3d`*4~p3RT8 z0yJSr_44{=@mR|Vl3Hd!k^QU7MVL~Ce5%Yb;>d6jrJN&2V={3dCfx0WByEMhHI|&E zh$b}Izj?KIu;nbtOf#U#-V&Hnmh@6{jA&vUN;(=&gq=v|%VMymKz0D zF44qs%!1$@G7MQF&M-<^rRvP)I?$G)*9icx$w}SNr)0KM0cJwSy(Phi)|gm2xQFi>Mu7#6tu` znECeO%KAVl(_2(Vh|=>zxh}0t7qNA1=%$1=@jvsdolwWX{h)$cXc9}E?_Anp3XF$}xnf6pV%%4<^~l@qDToRZwo z1k-sS+@mRHDB`2l8Pvv)9P4Yt>X>kS>GE)9J9n6;>dS3;3;y@JK+6#v{gDi3UL%2l z`u#rg@x=D!=a&djULq;?UCz8wE3yjn?6&sx*Da74ss?#o$}|+3TZ^ z)P%wf+(kZ2YuxaGA{b9`V*ALZ6b4cb4lv~?^pg9D&?khVp*0)~qKlv!&iFwL8pKt- z4puo&^^#t{+H)Ikzj-4pK|lO@`)`dSK@vG+B=JIq_!OhS25msYdG5UPBHl^8R5a-- zg)vJ-n^P-!rVr0($MM&1#QhF7A!zJvF>gZ;Q%n(Tp%BB7 z9U<4o0W4=cTqd({K8;i*FfuzCVX`)UY^B3Eh$<{|jDz9T&CQLb=vTjq^8)^e>xwYD z$8d8Yf-aF_M;xR)zgc!-H328js(@3uNcDqE#X(dAmV=(^+zPDzb|xM}$#cMLxQjrZ zmQ7uR--Cw<3h&)#==J33!eymYmIUzeJ@x_kRECpyl3N}0uJh@)pnRs}rFKB)5#~rr z6*m`4UT%F)SudaFp`>7TPa=3IdS!5WtX;-ny(8}^7&*L+tPUX5fZ5S8!@}V}O=YJD zKef(ic&$gwq3G)MrAt|#>5Er~kdH(5sIR`N`JwIVYuCqORy%TGjIDohBgf$A zFdHrC@Yzx5yK-Wy<$=$SVfHbKXJkP;pCCrV!QmXn*`Q@%eW)g{#V;<80d^EOvBj^h zjzwr2MdZH=;$Fo)O>x8ZNdTvvD3+W4$5FqKG@5T^4v+)=pw94r=7eFmIl&5xAA?4Sy;)w`K|d{CQ9_Mw^n!RQ#hGeBi-a7E`Ok{*`v*fBtO0M{i*p`syAcJ%`9o z9H^NfzK)?z@j)o85#L7rWjQ0OGnG4C3`nMbEArVNmo$b zFDIc_=iZi_ttrF)*4(X?;F(Zke`x&LNSS584dd4V7l|oGqg zbMZfZ@C(&CM;Lkt&f=d3d~$WMIx(oaq7H?h0MOOiQnYI&;9KKzR{@H0d7b;%@4nYA z!x0;oT*mw7-$YyKwqY+z4}Ft9_Ng*vvmVyT!*Ie^|BytlP(S|18##c9i^Ny}l!^=* zVg$cE>Op-7la$cKee_ER_s*xHs1$QJFPt+ZzJ~gq!6OWRB+5)FfkZIdeSmor64ujx z&THY9NI0d6`0x^Wwjbfu4y)SNO3LANW6Dt+DqeSQH7188VFjK|m3(q!ITAgcXz6wm zTG|SIYq8}lMKp2X+H-n0~cOewUyS|z0@EhCpNFQVI%>gft}E#DY3Ukl2(Fe zLJ{+KC(0@VdKkYvxkxNA;)Zd#eI%lk$hkXVM_Zw<$qzlbJf+w^PZ9qQE0nWTITQLW zZSq$HxD06hU!oc}jJ*_PvmDOuQ~<71b?zu*CllSBxLQ+Alh<^#=XbTO1kZ%YPnn4+ SyG%l{=?@_<5?eM)&2 + exit 1 +fi + +error_other_mp() { + echo "ERROR: another mountpoint already exists on spec/sw/lcdproc/lcdvc/#0/current. Please umount first." 1>&2 + exit 1 +} + +if kdb mount -13 | grep -Fxq 'spec/sw/lcdproc/lcdvc/#0/current'; then + if ! kdb mount | grep -Fxq 'lcdvc.overlay.spec.eqd on spec/sw/lcdproc/lcdvc/#0/current with name spec/sw/lcdproc/lcdvc/#0/current'; then + error_other_mp + fi + + MP=$(echo "spec/sw/lcdproc/lcdvc/#0/current" | sed 's:\\:\\\\:g' | sed 's:/:\\/:g') + if [ "$(kdb get "system/elektra/mountpoints/$MP/getplugins/#5#specload#specload#/config/file")" != "$SPEC_FILE" ]; then + error_other_mp + fi +else + sudo kdb mount -R noresolver "lcdvc.overlay.spec.eqd" "spec/sw/lcdproc/lcdvc/#0/current" specload "file=$SPEC_FILE" +fi + +if kdb mount -13 | grep -Fxq '/sw/lcdproc/lcdvc/#0/current'; then + if ! kdb mount | grep -Fxq 'lcdvc.conf on /sw/lcdproc/lcdvc/#0/current with name /sw/lcdproc/lcdvc/#0/current'; then + echo "ERROR: another mountpoint already exists on /sw/lcdproc/lcdvc/#0/current. Please umount first." 1>&2 + exit 1 + fi +else + sudo kdb spec-mount '/sw/lcdproc/lcdvc/#0/current' +fi diff --git a/clients/lcdvc/lcdvc.spec.eqd b/clients/lcdvc/lcdvc.spec.eqd new file mode 100644 index 0000000000000000000000000000000000000000..f7a244db652b3e073369ddac21f55d3898cc2830 GIT binary patch literal 1787 zcmb7EK}#D!7>$G?K}rw_A|f3T4~6Qg#YpL)w6(n`R4P67Amh%ryMwdyEi?D}Y^py%fxXX~2~0Sh+qgH|Z-;sPo~B zw;U`GbeaTC^aD&u(=#Flmoyde%PW{NhpfZ~S^$CNME@jG@L^H_?c8`3rq)bqHirrxWaZF%z)e2TsA2BNXkoH7 zr6cQHQINTpUAd;INYmX4u6T;rkXcG9DKe=bc4Ijfhe^XtLijQRw@h#-QO62GW|InydorZ{WfYdZT3eZG5O=nqcaP__ar%Bd9!IJ^ z-q3(QFzy^r3;*k%;8ycv8hEataEYXM5W-`?k0@wBk>Kr6qqdjpCr9UtkzN9LRM|g^ z6#lsdXWKvrXm3^v|BlTHNpF!+oV|~haV;1agT^w{YI+=kXXbm@2{=bB$p829c5yEb z?bIsFO}FPCKFryq+v<}0+sw5y|wYdg@_)r$pv^{a}AVFlv4diu(0Qp*K2GF>RC vzy70IEH`#5p(Tl58fiN8Pbga+%^zBAA@1axuw5EknR2tEj2I6H>N&!{ya|WO literal 0 HcmV?d00001 diff --git a/configure.ac b/configure.ac index b045572a..61852e99 100644 --- a/configure.ac +++ b/configure.ac @@ -67,16 +67,6 @@ dnl (the spaces before $CFLAGS and -O are significant) fi fi -dnl Driver path -if test "x$prefix" = "xNONE" ; then - prefix="/usr/local" -fi -if test "x$exec_prefix" = "xNONE" ; then - exec_prefix=$prefix -fi -libdir="$exec_prefix/lib" -AC_DEFINE_UNQUOTED([DRIVER_LIB_PATH], ["$libdir/$PACKAGE"], [The default path for drivers.]) - dnl Checks for programs used in building AC_PROG_CC AC_PROG_CC_STDC @@ -93,6 +83,8 @@ ifdef([PKG_CHECK_MODULES], AC_SUBST([ELEKTRA_CFLAGS]) AC_SUBST([ELEKTRA_LIBS]) +AC_CONFIG_FILES([post-install.sh], [chmod +x post-install.sh]) + CFLAGS="$ELEKTRA_CFLAGS $CFLAGS" LIBS="$ELEKTRA_LIBS $LIBS -Wl,-rpath $ELEKTRA_LIBDIR" diff --git a/docs/elektra/README.md b/docs/elektra/README.md index af3ab57a..0e4aba5d 100644 --- a/docs/elektra/README.md +++ b/docs/elektra/README.md @@ -8,7 +8,7 @@ ```sh # inside Elektra source directory mkdir build && cd build - cmake .. -DPLUGINS="c;cache;dump;gopts;hexnumber;ini;list;mmapstorage;network;ni;noresolver;path;quickdump;range;reference;resolver;resolver_fm_hpu_b;spec;specload;type;validation" -DBUILD_TESTING=OFF -DENABLE_TESTING=OFF -DINSTALL_TESTING=OFF + cmake .. -DPLUGINS="c;cache;dump;gopts;hexnumber;ini;list;mmapstorage;network;ni;noresolver;path;quickdump;range;reference;resolver;resolver_fm_hpu_b;spec;specload;type;validation;sync" -DBUILD_TESTING=OFF -DENABLE_TESTING=OFF -DINSTALL_TESTING=OFF ``` This builds Elektra with the minimal set of plugins required for LCDproc and with testing disabled to speed up the build process. - Install Elektra @@ -39,32 +39,15 @@ Once you built the server and/or the clients, you need to configure Elektra, so LCDprocs configuration. This process is called mounting (since it is similar to mounting a new file system, but for configurations). -We will demonstrate this process for running the `lcdvc` client directly from the source/build -directory, but it is similar for the other parts of LCDproc and for running installed versions. +You could do this for the binaries directly in your source/build directory, but we recommend you +install LCDproc instead. -1. **Mount the specification:** Compiling `lcdvc` produces the file - `clients/lcdvc/elektragen.spec.eqd`. It contains the processed specificaiton for `lcdvc`. To mount it - we use: - `sh # inside LCDproc source directory sudo kdb mount -R noresolver "/usr/local/share/lcdproc/lcdvc_spec.eqd" "spec/sw/lcdproc/lcdvc/#0/current" specload "app=/usr/bin/cat" "app/args=#0" "app/args/#0=$PWD/clients/lcdvc/elektragen.spec.eqd"` -2. **Spec-mounting:** Once the specification is mounted, Elektra knows about it. However, Elektra - doesn't know to treat it as a specification for application yet. For that wee need to execute - another command: - `sh sudo kdb spec-mount "/sw/lcdproc/lcdvc/#0/current"` +To install LCDproc run: -Now everything is setup and and we can use `lcdvc`. - -### Running installed versions of LCDproc - -TODO - -### Other parts of LCDproc - -The setup for other parts of LCDproc is the same, you just need to replace some paths. -This table helps you with that: +```sh +# inside LCDproc source directory +sudo make install +./post-install.sh +``` -| | | | | -| --------- | ------------------------------------------- | ------------------------------------ | ------------------------------------------ | -| `lcdvc` | `/usr/local/share/lcdproc/lcdvc_spec.eqd` | `spec/sw/lcdproc/lcdvc/#0/current` | `$PWD/clients/lcdvc/elektragen.spec.eqd` | -| `lcdexec` | `/usr/local/share/lcdproc/lcdexec_spec.eqd` | `spec/sw/lcdproc/lcdexec/#0/current` | `$PWD/clients/lcdexec/elektragen.spec.eqd` | -| `lcdproc` | `/usr/local/share/lcdproc/lcdproc_spec.eqd` | `spec/sw/lcdproc/lcdproc/#0/current` | `$PWD/clients/lcdproc/elektragen.spec.eqd` | -| `LCDd` | `/usr/local/share/lcdproc/lcdd_spec.eqd` | `spec/sw/lcdproc/lcdd/#0/current` | `$PWD/server/elektragen.spec.eqd` | +The script `post-install.sh` sets up Elektra such that it knows about LCDprocs specifications. diff --git a/post-install.sh b/post-install.sh new file mode 100755 index 00000000..38fb16d8 --- /dev/null +++ b/post-install.sh @@ -0,0 +1,56 @@ +#!/bin/sh + +INSTALL_PREFIX="/usr/local" + +exit_usage() { + echo "Usage: $(basename "$0") [-h|--help] [app...]" 1>&2 + echo "" 1>&2 + echo "supported apps: lcdproc lcdexec lcdvc LCDd" 1>&2 + echo "if no app is given: use all apps" 1>&2 + exit 1 +} + +if [ "$#" -eq 0 ]; then + APPS="lcdproc lcdexec lcdvc LCDd" +elif [ "$#" -eq 1 ] && { [ "$1" = "-h" ] || [ "$1" = "--help" ]; }; then + exit_usage +else + APPS=$* +fi + +run_mount_script() { + SPEC_FILE="$INSTALL_PREFIX/share/lcdproc/$1.spec.eqd" sh "$INSTALL_PREFIX/libexec/$1.mount.sh" +} + +for APP in $APPS; do + case "$APP" in + lcdproc) + if [ ! "$lcdproc_done" ]; then + run_mount_script lcdproc + fi + lcdproc_done=1 + ;; + lcdexec) + if [ ! "$lcdexec_done" ]; then + run_mount_script lcdexec + fi + lcdexec_done=1 + ;; + lcdvc) + if [ ! "$lcdvc_done" ]; then + run_mount_script lcdvc + fi + lcdvc_done=1 + ;; + LCDd) + if [ ! "$LCDd_done" ]; then + run_mount_script LCDd && kdb set "/sw/lcdproc/lcdd/#0/current/server/driverpath" "$INSTALL_PREFIX/lib/lcdproc/" + fi + LCDd_done=1 + ;; + *) + echo "Unknown application $APP" 1>&2 + exit_usage + ;; + esac +done diff --git a/post-install.sh.in b/post-install.sh.in new file mode 100644 index 00000000..e8e2a892 --- /dev/null +++ b/post-install.sh.in @@ -0,0 +1,56 @@ +#!/bin/sh + +INSTALL_PREFIX="@prefix@" + +exit_usage() { + echo "Usage: $(basename "$0") [-h|--help] [app...]" 1>&2 + echo "" 1>&2 + echo "supported apps: lcdproc lcdexec lcdvc LCDd" 1>&2 + echo "if no app is given: use all apps" 1>&2 + exit 1 +} + +if [ "$#" -eq 0 ]; then + APPS="lcdproc lcdexec lcdvc LCDd" +elif [ "$#" -eq 1 ] && { [ "$1" = "-h" ] || [ "$1" = "--help" ]; }; then + exit_usage +else + APPS=$* +fi + +run_mount_script() { + SPEC_FILE="$INSTALL_PREFIX/share/lcdproc/$1.spec.eqd" sh "$INSTALL_PREFIX/libexec/$1.mount.sh" +} + +for APP in $APPS; do + case "$APP" in + lcdproc) + if [ ! "$lcdproc_done" ]; then + run_mount_script lcdproc + fi + lcdproc_done=1 + ;; + lcdexec) + if [ ! "$lcdexec_done" ]; then + run_mount_script lcdexec + fi + lcdexec_done=1 + ;; + lcdvc) + if [ ! "$lcdvc_done" ]; then + run_mount_script lcdvc + fi + lcdvc_done=1 + ;; + LCDd) + if [ ! "$LCDd_done" ]; then + run_mount_script LCDd && kdb set "/sw/lcdproc/lcdd/#0/current/server/driverpath" "$INSTALL_PREFIX/lib/lcdproc/" + fi + LCDd_done=1 + ;; + *) + echo "Unknown application $APP" 1>&2 + exit_usage + ;; + esac +done diff --git a/server/LCDd.mount.sh b/server/LCDd.mount.sh new file mode 100644 index 00000000..7d937b2d --- /dev/null +++ b/server/LCDd.mount.sh @@ -0,0 +1,38 @@ +#!/bin/sh + +if [ -z "$SPEC_FILE" ]; then + # TODO: set SPEC_FILE to the installed path of your spec.eqd file + SPEC_FILE='/usr/local/share/lcdproc/lcdd.spec.eqd' +fi + +if ! [ -f "$SPEC_FILE" ]; then + echo "ERROR: SPEC_FILE points to non-existent file" 1>&2 + exit 1 +fi + +error_other_mp() { + echo "ERROR: another mountpoint already exists on spec/sw/lcdproc/lcdd/#0/current. Please umount first." 1>&2 + exit 1 +} + +if kdb mount -13 | grep -Fxq 'spec/sw/lcdproc/lcdd/#0/current'; then + if ! kdb mount | grep -Fxq 'lcdd.overlay.spec.eqd on spec/sw/lcdproc/lcdd/#0/current with name spec/sw/lcdproc/lcdd/#0/current'; then + error_other_mp + fi + + MP=$(echo "spec/sw/lcdproc/lcdd/#0/current" | sed 's:\\:\\\\:g' | sed 's:/:\\/:g') + if [ "$(kdb get "system/elektra/mountpoints/$MP/getplugins/#5#specload#specload#/config/file")" != "$SPEC_FILE" ]; then + error_other_mp + fi +else + sudo kdb mount -R noresolver "lcdd.overlay.spec.eqd" "spec/sw/lcdproc/lcdd/#0/current" specload "file=$SPEC_FILE" +fi + +if kdb mount -13 | grep -Fxq '/sw/lcdproc/lcdd/#0/current'; then + if ! kdb mount | grep -Fxq 'LCDd.conf on /sw/lcdproc/lcdd/#0/current with name /sw/lcdproc/lcdd/#0/current'; then + echo "ERROR: another mountpoint already exists on /sw/lcdproc/lcdd/#0/current. Please umount first." 1>&2 + exit 1 + fi +else + sudo kdb spec-mount '/sw/lcdproc/lcdd/#0/current' +fi diff --git a/server/LCDd.spec.eqd b/server/LCDd.spec.eqd new file mode 100644 index 0000000000000000000000000000000000000000..719b0b764f103499e7c0936fd9303ea68f287965 GIT binary patch literal 42941 zcmeHwO>7*=k{%`Pm|zP8Aq#?_6$GV*mPyXA|M@4)&d!raYDTNy6{$Bfco=i5yQ|4E zyQ|t&)g*fi9}L3=3}bf>27K|+r}fSD&47<@fjt;L7%G)d8yL9Z9JnP?mlF=w)hj-XLp8P%*qd^ZfnrWE%(T4 zx;BK=%JcUVAg@rXa;Mp{fc<92?YPZY#0Rbj`f;xx3)z{71JRG%bVT$ubu$^U?R988 zy-sQkt*-x(?{v{=oBNIqoX~BFj@JmCa6p}R0;eSwkG=Q+vBJMbIa9QrLrt)EA-!cYxLjhJv=fu?N%TC?)z?QFFFXqIDvkK z+FP)%@3?YJnnAbQ_r0dvOCDH4mFa70w%HE+_-8J zt=tH`{e#$dqbResvz21Ca>}LTh9)_z>ZJr(#-7s==`i^#IiCOo@{B_#ir*fb>H4a@ zvDGXzdW?KnZYQw(VkDM~m?bf}krtYsH;FAJgZu7r+Y7tLpjxcH!T9DHLC|p>KOr7) zE_1uT*9)va7hrfq&0_Jndn~&6G!no6wWyUUioSJ^Q^jQTpxsWfo@~?;Rj(COnV?Aa4)c+7MNUHc)n;l zkt;~BP%F=OnlZTjn-D8>v7&_H6D;!Jm8<69{p>P$81;`L@$m7BofN!5&=+8I{Z7mO zqgeRhnP}=o5};(&ZziiAp)(r}Eko`|MvJBKTFeQ*TKrA5c<-k#e^bGKzgRl4|LhjC z?aN&UD>d`<@$>C&b@(M%jJ@~$B}ZhB(_hSZVyuDzNl4BR*1cy z)R)Cd<)jK4*Mew<-dPB_U`RNu5_c?@K+SIIR=NT?g5{eLf&~CnSARhPb0dMWA2sZ4 z(tDY#LI&~ck0aiBB{+cD5a#0b&ckmqxS+=9In6_tP%=-HsnwEgCJ<sDYv=G9Qn>x(|a`&u)?#m2BlZm@TEhQyUDHO??XXMxo zbLT8deMizP0i+wW+)he4uHWx|Hec`Fl>CVPEYDY_SL>Na)#XR^EirK2n`8qpB&6uin@jbKpqKQ@T~FQ1Y}v;zG*`1T?zFU)k!~w3 z+?yEUzqt5o7gk8nX$fqk(4A;iB@(RwVl);}zt@AIAbL*7sw-?f7y3ZI2Px>1hCqB2 z0tQygmJ>T<)aiLc?SuJn3^#jtmeJq>2dJqZNHb+qZ;Rf*{qQ;im7|l{(==Z}2G@Gv-U6F4m(2H{2 zMY5NPG@`qk4A*E~XhDNkZb0AK58(?VCyFvVq%>T&VNP8<7C^>U+w&+Uh`%lpI_ z?T7W*feY8xvHf&qrUCoPezrQ-h5GNuj{SITra6G2Y02mH%f|;^>}sfq+1r9veq$o| zAEwg-3>`$X{jz<;`S=GP@N2Z=6Po}svNACxF0EVm z+x`B)frc7H@UD`V?T6(bmq^S-F_cy)9xg;$8@~iSaKF%Z5sipTB_-7|V@wUfGjC9yzB;l6L}E*#mqe9_(z2XwYp09Vpfi03H;ANc?R?Wx}jG>~izCH{M0|0NVd;!(kG)u`z-}mc`~!zB;UybK{xb(83ucq0k!b+y!q=LJ@lbF z=sLYU$HoWkveXX2&tCT|aQ^*gkK2MgqX(qtIncxXB1pw=Iblnn%O0Xq^tuT((TSp< z>A}>4&N!f#GNcA)TEKsm3cCjgFbX)y#Tp#G6g{I>Ua6vmF+{wG~gLYbLJA zl6WGuPh=TTMijX%`ytZTVq_XnFaj+(t<2>h0qcyUWXi{gVRYQAtFmgS%Ft`~5VMH) z$Q}D8!0nWdCp~Zx55CdBhY}kI>V_0RQk9`1BcrMdD2IG7WJi_f%k2J52b6xsn(fuA zT&~t?^~}R69&ThG)@G_}m6~Y)+U`Hqk!jhSCen6|RrP0B8Y{$>m^mM(bK=i3F-V$a zNoYrY)`fpx6nK|p{ssMk-N7H#lNJ1dUAZr+YbP~Z;lHU-FfV{{eZoAw%QB%AlV{wci-}D8+uwE$#~AhuQ5iIT)h%P8{B0f{t8T{PvYEvUZV?|`stsi^FMKD# z9gX7)3B(+j$_=PwL_$z1-&#qSSXc6Y$XK_b{u zDSs@1llT#dYJ_qrU$7(~S^_ZF#Z7s7mCK3y3dJ7a*m3|m0T?^!`!FxT=1*HkdM3H*V0yn!Y zM7&b5Y}$WA*?u=GCzR;-p!n#gzrXSi-ZH!IU#^J8fU+jYvxenDUOvQaYZ)p8{8+KO z53dq3W*Ybbw^qa3FJf^#wB-noSgf2N1-VkJoIJumONo*-i~PS@-A?&?esNPKU`TJT zTov-1(Kw+`ImkNp$L?Tq5mO?%c&HzLty^w(TT!X-x<`7?nI@oiMA_I=)e(E*e=J*4 zt6QAJJhpr54CnoPS5rApo9XWCNv6Ahfg#7f}X_%Q;v~94V1a=?Rew zQ+aHN8k>?T-#WNLM?#2hGwl9~rc(QP?S_6%)H}@cO&0&J=djkqn`JKdFk@FNS1d-Z zD{`j0v@Fqwd3&MdlE=jZCLqbcYaSrq9d3BFMg7ocl#hWkWl9-8_BvoiN^$@jcL@%e za)xb{p8_jG_kN+s$6}aw6=~PgKM@iDi{uD}5(#oh2qD0M40d8{_AaLEuORe48gEM& zN-v)%s(gKpT%z=^Ucvw6BNBQ56=IFWPP6iKN~{(8SIma`pfsQhxvyPJo$nBowjdnaqJmFjkue z7$~8Sb}d~83hL}5#otc>I>$5#LiPoXV2F*)7oOo@o`;CJK++v~9+I8ry#PJ3K>^;Tnkhmmb<32R zqE6klJ-5>;!*_usjZ4+;TfprzK;`3BrN5y={*625c}+l^zParvp(~ z5P`l_4UjBx!)9@n+vK0>J9zc?IX5mWl+_wy3XEVRH>|IGnlVq`Kz_{jrLxp zVSlr7OZRsecpH16{dP5Z+w4_qtC?KswdC!_#_GMjRr}lZD@dlTlA>!r-?(w?9#ksi zR&e&J!#sRW&3kAaOy>T-FK+4}EAnkwhXZcVZ;y9g6bYPSm9T~QKjrNLk&^bn-jZ0f zr@gENz@D6F`nR0gGGzwyWSGj$85D?DKsZMpW%x?Hq6e3q;?GX2#pxSRO*I0j(@_!= z4RsNUh!V)8v)gzwGrw2Mrtr39*WR=b<}Wt=o}2HD3ev&c^+crwjb z=NiY&81J$#*5=TE>^DgJW?K;PIkt%)mbPR!z)o+yN>gkJ=k#JV7R~a znf)F%$4K6>eYX-*O#=QW7nO(dm{KPQ-$}lu6i^a7(8^jtvrlrsIB$LAK-zIGJ<-U0 z2-1T%?nU>@<$b6_{RU2ccj+v2FASQ=&qgO`;GkLr6|RgvBmJTX5rik4WD#kVw}cir zxQ9eoE8p?U@1(oKR=7-|a#!&bxW+M&v%2+2q?ju@Rj4+3PN!eC=d?&}0d`DK<`wOR;1m~r!K54VMX=k4k@I3E>mXgEGag-p$U zx>Bs4ib2>o`13_7(f}*bKO~e<<~?sj6rdnRf+|rT_8bg5BB$>kKi}DX@Jf8Y{hd^L z9~3J0#Wq|;UUX3Y1BbLDkhrF+r9$<-_#Ws2uZY-&iVwl~xPSnh{^Awva>p;!hg&_) zw?Mv1$&a*&GGWtRV(Hp4VWtxpbww_1So@?6C~7lh5OvxsihEchCexkm%6)TpVMbzQ zy0f|WDY`oz3tesWWDW7dlU3}?M5!4PJSI+MfE}}xU#1>2vWspS^~0nw6NV-P>nH zd+v>k%EskXP(x26o=ANXZIcPktR~reu}FkWo~I>hpzQpw3e1$uUdWb$l?*?=#Az)9 z7OU%Ul5ul63Q`#yjKk~?nqqRghEXPOo~@N}dy<{!U!8KAlT4wude$kdzV|7toOKFo z?|lmOvrb|CeNUmfamFc(=bl+w_{(=d3zN*i5C93+a{byQyYOlvwpFtfCvv(dy~k}$ zMDMjTZqsNGiPP}u6o)s~rU2F_6NJ5y)RxK&a|k!=V5!KEF` z+*@=@`z4XOu9sv*E(hF;t6#BONIG%Y(%bcq%tFO7 zWXwA)=n9f2fum_*?9Fhj1;!8zXuL$a048r?8`mBRFda>xL4V=i&8$ zramJ%f8c)U7VS=G3jgPD@z-VQSj zpD>_8M!&6^Yh@@wj7(*@|D3njsmd)+l~SoA`1_IZ#3cv=dM{5h@Dj*z1wsYn+HChj ztP8urd5N$Ac}E)z_Z_7}u=CUMDh)$!dqe)iPS0(6Pz4crkS=XbtDuf(t9tOBA_bw< zf>W03z=*{G_J&*~2vlGKk$W+ih?@vFHa&S!buAOHxzSuf5iq?+vA2 zBIl9oD^mU?S6rlDzF2z8Jk0Iq@DDreE*1~u{7S-wXsVplP&60mlqnmSp=XxF{a=rL z+xrafKSU8pI<+Wpr=yAv@l(R@o!#|HeT}eN)a97u7DIsoyz}8$lF#sVYwOj6XW}^U zQL2*iU}J_y9N-8d6->6+sSf%B<*7GACzr_**$}wqYIb<)0OU-n&c8xOwPEH1cOvRh^YrU9qA@+{iEmP&Nw1e_Qed4iRPSA#Yf$7pLi*(B9qnLgQDpWR}U`}G3qX&%bokBk%c_!BBTNFoF1R}9tB-095h>;8+5@6ppb*VB6#EaLvFJJG1BXaJrWL{bzO&Ni&;aQ9n0%i_= z{cUsb|M(?x26fUeYUNAFKd+p8z6|#Xkq8mg0Id2uOM^nkQk6p(QwoXt!_7n+ zxLi4@uiGw<-@W*_{6Y&(9W8$Pa+eoZ6~;2xhGz4{Pu8DR%SzVnZ%09 zcOq2`OaWn3sgy+>F5w|%m{{zqntLR(v;fx8Wkbz*->hR4&xKhk9`^((Z)pHGQE{-$P zIgE{5TBYJAb|*e&yAuQf7KgHy!YQ=L5LHz()ojJ@y^_=3qEw{8n~Y0?T0YK0n17Kf zqQpXIk_p*tZehh$U2z21lZ;j{mIl;FWZ0-wU$RMvG`QL~XAq;SIEb;~e5iAz{=^5( zY(4a5a!Z08=e60X_t1mpfI2o-LWp9a6?VpQ(k|zNC^@cDKI{Re46iVf&{D7Pa5x$*$}>`busLXqX?-OHi#NChU~U){*Ek*FN@?a zE_2CzRWbjIrEmV$TN-dbZKYN55&NKAqYe@gwaw*Gf&69855tdTq_!*SvoZF+KY|)M znxWhm2he*_#CX6K8Z=@`!$bMC1I=^TyeJiZO$+ih4Jfa6Xdt&rH=$!9D6&L$RqraeMi-L5Tq)L8 ztwP|VA<3(_-qD9_2JFF#lekuaz-KB1IM^lYJ@vU{m4^JzgdeOKy>6|DSgn zRx;K1t(M)?YoH~fX~SGguN69tMs^S1Vd@0M6E}G2Qlgb>G3VQ;luXO^TdWB0+4Lz@2e%%{-Sf8V6arD?wnr+XC z`pk5j{Nv}yKZ2UH36~!H2lx57*5bE_83c4G)sYwUp;vL;_a#wy2I$kKuX|;#aAv1~ zUsuZmNK|o2X)oVN7v(f`eGR(EQ8|tWJGSGpDi6`I2W<>Z-%3ZzP_@RacS_ew#_&Oi z@`tU%4+RMlG%?ZOpJvej;*p?Mn82>e5m-Q2S7toToCO$#2w$da)5VcuxU%{m%;Ka3 zXRc0^U7Z*35kWhE2Z5l^(#7_P7ne8bC^b&>SjQtqEy>+h>HnB~ou%S)UMSG`QkL!pM^iTF!a*vPzH;pC}NP!oCa_DwKqpOJ| zLHTJ4=4ffKWONUg{b`sVw<`1W%ZN(*v2A>wk_X0QwsF z;y_I_N_=Ygp1Y6eXgQVHNj!=e_3}-O&BxEbeenwQ6=WcjD&<0`f*;5N zxG^p`Ic)%a-JBywhcR$jP9s$<^0NmlYrLM@5lz|dCZm!kMidP4T$TL>@j;v#JN9W& zEXVX1tL4>2Sy?2))tB@gpMp**0MLbWt{|1;3HE#uYX?F=Xp~NZxL~ooIW#WP6|heQ z-Y4BuX$f4G0C7wD2Dv1t3=DIT!a&^sSJR=tbX=Xmm$B1s^2~VTk8Nsl()�{|&Sfq+h z@iATY)bc36NtDv;z?&Z9nneO3TQ^>k30DdD*p~bnFL}TBvCV6?8=nLrl_1Y^L0yq= zCs3_&Z}NE-pS%bg6KPd<ep11Gqn`H0;k{(R4>O>pv56CB%`DaLG*@;72X3xZ@4SqJwTKRHR(7`zA^KQ>{`YM`2ZjqQ6ln} zTcdiyq$Dl;qD8EW$>8Ud;gpHz{#8~4Vi@B_aukFEG-2ZJx8Af>va?1UFskfYx!;%{|^EHxm zPsp>8ies1`c{dl657iEzOm_}5k80DDT57ebPeWxgXJf}qrm0)gep=EqP-31l1LXu{ zpkuB#2%RoR^79nytLpUxnssjIN_8`lYQ6AMf;L*WzLP*#K8+ffAAMa)12a&ZDSZu| zFS$gDr%&BV$H}OEdiktHKX2V{UK+k-r;ma%$P+?gUdw5vb)D3Rwxdx0=Mt=FXjSCV z^Mhr{WLQn7q-T{9sT04bf7sNd7pfwG%-Eo7v690{w<>uakCbk|8|?3Q+*b_S6ZpRl zpa(U`AV*X#LY0D&;CIxoG46(pO2#Ou&|DTU6f`cN?pzibZnYs?;q>;3yPG zUXwC%(B7a!T}3^?QU(9o*t55bn_=bVD+>>3M7_@jY96wERJJG%*LqXHhQXmaR3sMd;cnTVW2}_j zsq$^ec_iOa6NlP>KqyyPm1W(M=Ve{=ht6NEbk|3{hExCAuMkWJ`)ZZv$F-}XoxD|f ze7o8m-A-RJJ+9X}^~x6vkMDKmD%#1LKgM;pdgWK;eF&EEovqDLD_qGiuB-Lyze-c= z#x>jkXe!BLT(f)VFNsEWzZ$(EI4^e_O^x8o{P^ayGg{Rc-?9c668SK`X&oy`i3?by zv9PY7-ANG9isviuf0@#x#A~9(PC$3OXc5Z=iX~|#N~wdoYzoJjR3Pt+@S;i%l>~;6 z6&-<15vekz8K)$!ZyroXkr*C5fa& z9S(g+UexZ+5ii0?ff)qn+>|q2OTUxcLIW|iq}W9p%8|>g4U1^ccSN@1EUK!a_PxcP z{tcMFyCA;$&t8L65ev7Xj4iIyaC!O!hJVN-=;hDj$l3;=Oom_YtKoC`i*J?yLfSV_7 zponq0aPLsU{;45hlaaMEX#xo=*Hj8mEj144a`dbYJl^8p|Bk*n%Q9*lqsAP|Utw&>5m!a2)5$ShGq9i}fl#Awvc{>u!X%PF#@Q*?ms6 zqC``voye$XR{M)^e{qC^vPzQ#Us37_*Us)x?K)SyM84JzD`=!JQpoc;=9xahP^9Xh z{5?p6vU@lZDmy}%E94n~)CCMJuI?8nhbV_#0nc02WQD2UM~RCIYO2lEkMl#itvxpCWgXk5^w>vqAKB zfbyyPHezX^ndmAR$JuXo2uKLrT79 zP{%GeI*xys&^&oWOn=9}C7%;CaL#sONo+zOy+BA=WBCmU2v?GWkXawe-JahDdtl9g zwKnot@wr`j|BAzE!9E{xRL!WY0pf~Bo-EkUUUvlRWZ_^nWscgRA~TodVN-$<_As0@ zjuv<}dS?iLVSW!;8D1nfyN@|wc9E!cT zgId`rwvmw%vXqfF|2{*_0&{u4Z1y ze6VS`N612VaGx&fph(N1WThlf{f8zrpX@2MJG=N|i&JA{f9X=Z>c;_r+KkqQgk{bB@!o#_FSU1%$@B5IPUgwW9L<}F3 zaTDK=yMKnw&=w zZ6wHAB;OXlC?cwbI|BO=ehu+|`nO)IsNe9H1?u4s@Kz!F7$OW(6MCyJet7z5i(FW! zkjK}jN|!vU4=kKeQ>6Ycq!Iy|+|-f+?_IO0bQq9Q{yGeulK)B`lIOx^sA?uloyj_9 zZ(roBDT|yz5%)M5hABHeHeV9k@@h>wD_^04G3nv+X3|M%s3J1qJ uE^uM{15QbJI@(ka4qiaM1cSVQ-N5(go|e@6hCY>JUF$m Date: Mon, 2 Sep 2019 19:36:23 +0200 Subject: [PATCH 50/72] all: mv generated files instead of copying --- clients/lcdexec/.gitignore | 5 ++++- clients/lcdexec/Makefile.am | 12 +++--------- clients/lcdproc/.gitignore | 5 ++++- clients/lcdproc/Makefile.am | 11 +++-------- clients/lcdvc/.gitignore | 5 ++++- clients/lcdvc/Makefile.am | 11 +++-------- server/.gitignore | 5 ++++- server/Makefile.am | 12 +++--------- 8 files changed, 28 insertions(+), 38 deletions(-) diff --git a/clients/lcdexec/.gitignore b/clients/lcdexec/.gitignore index 40255623..9c82a77d 100644 --- a/clients/lcdexec/.gitignore +++ b/clients/lcdexec/.gitignore @@ -2,4 +2,7 @@ Makefile Makefile.in lcdexec -elektragen.* +elektragen.c +elektragen.h +lcdexec.mount.sh +lcdexec.spec.eqd diff --git a/clients/lcdexec/Makefile.am b/clients/lcdexec/Makefile.am index 74474b6c..eb909a99 100644 --- a/clients/lcdexec/Makefile.am +++ b/clients/lcdexec/Makefile.am @@ -9,7 +9,7 @@ nodist_lcdexec_SOURCES = elektragen.c elektragen.h lcdexec.$(OBJEXT): elektragen.c elektragen.h BUILT_SOURCES= elektragen.c elektragen.h -CLEANFILES = elektragen.c elektragen.h elektragen.spec.eqd elektragen.mount.sh +CLEANFILES = elektragen.c elektragen.h lcdexec.spec.eqd lcdexec.mount.sh lcdexec_LDADD = ../../shared/libLCDstuff.a @@ -24,13 +24,7 @@ specdir = $(prefix)/share/lcdproc spec_DATA = lcdexec.spec.eqd KDB ?= kdb -elektragen.c elektragen.h elektragen.spec.eqd elektragen.mount.sh: specification/lcdexec-spec.ini - $(KDB) gen -F ni=specification/lcdexec-spec.ini highlevel "spec/sw/lcdproc/lcdexec/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage embeddedSpec=defaults headers=menu.h - -lcdexec.mount.sh: elektragen.mount.sh - cp elektragen.mount.sh lcdexec.mount.sh - -lcdexec.spec.eqd: elektragen.spec.eqd - cp elektragen.spec.eqd lcdexec.spec.eqd +elektragen.c elektragen.h lcdexec.spec.eqd lcdexec.mount.sh: specification/lcdexec-spec.ini + $(KDB) gen -F ni=specification/lcdexec-spec.ini highlevel "spec/sw/lcdproc/lcdexec/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage embeddedSpec=defaults headers=menu.h; mv elektragen.mount.sh lcdexec.mount.sh; mv elektragen.spec.eqd lcdexec.spec.eqd ## EOF diff --git a/clients/lcdproc/.gitignore b/clients/lcdproc/.gitignore index 7ee0f8a0..30fd6dab 100644 --- a/clients/lcdproc/.gitignore +++ b/clients/lcdproc/.gitignore @@ -2,4 +2,7 @@ Makefile Makefile.in lcdproc -elektragen.* +elektragen.c +elektragen.h +lcdproc.mount.sh +lcdproc.spec.eqd diff --git a/clients/lcdproc/Makefile.am b/clients/lcdproc/Makefile.am index 3a910718..decaa7e5 100644 --- a/clients/lcdproc/Makefile.am +++ b/clients/lcdproc/Makefile.am @@ -8,7 +8,7 @@ nodist_lcdproc_SOURCES = elektragen.c elektragen.h lcdproc.$(OBJEXT): elektragen.c elektragen.h BUILT_SOURCES= elektragen.c elektragen.h -CLEANFILES = elektragen.c elektragen.h elektragen.spec.eqd elektragen.mount.sh +CLEANFILES = elektragen.c elektragen.h lcdproc.spec.eqd lcdproc.mount.sh lcdproc_LDADD = ../../shared/libLCDstuff.a @@ -27,13 +27,8 @@ specdir = $(prefix)/share/lcdproc spec_DATA = lcdproc.spec.eqd KDB ?= kdb -elektragen.c elektragen.h elektragen.spec.eqd elektragen.mount.sh: specification/lcdproc-spec.ini - $(KDB) gen -F ni=specification/lcdproc-spec.ini highlevel "spec/sw/lcdproc/lcdproc/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage embeddedSpec=defaults headers=screen_config.h +elektragen.c elektragen.h lcdproc.spec.eqd lcdproc.mount.sh: specification/lcdproc-spec.ini + $(KDB) gen -F ni=specification/lcdproc-spec.ini highlevel "spec/sw/lcdproc/lcdproc/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage embeddedSpec=defaults headers=screen_config.h; mv elektragen.mount.sh lcdproc.mount.sh; mv elektragen.spec.eqd lcdproc.spec.eqd -lcdproc.mount.sh: elektragen.mount.sh - cp elektragen.mount.sh lcdproc.mount.sh - -lcdproc.spec.eqd: elektragen.spec.eqd - cp elektragen.spec.eqd lcdproc.spec.eqd ## EOF diff --git a/clients/lcdvc/.gitignore b/clients/lcdvc/.gitignore index 23482460..f5b0710b 100644 --- a/clients/lcdvc/.gitignore +++ b/clients/lcdvc/.gitignore @@ -2,4 +2,7 @@ Makefile Makefile.in lcdvc -elektragen.* +elektragen.c +elektragen.h +lcdvc.spec.eqd +lcdvc.mount.sh diff --git a/clients/lcdvc/Makefile.am b/clients/lcdvc/Makefile.am index fa1a6260..a8604a85 100644 --- a/clients/lcdvc/Makefile.am +++ b/clients/lcdvc/Makefile.am @@ -7,7 +7,7 @@ lcdvc_SOURCES = lcdvc.c lcdvc.h lcd_link.c lcd_link.h vc_link.c vc_link.h nodist_lcdvc_SOURCES = elektragen.c elektragen.h lcdvc.$(OBJEXT): elektragen.c elektragen.h -CLEANFILES = elektragen.c elektragen.h elektragen.spec.eqd elektragen.mount.sh +CLEANFILES = elektragen.c elektragen.h lcdvc.spec.eqd lcdvc.mount.sh lcdvc_LDADD = ../../shared/libLCDstuff.a @@ -30,13 +30,8 @@ specdir = $(prefix)/share/lcdproc spec_DATA = lcdvc.spec.eqd KDB ?= kdb -elektragen.c elektragen.h elektragen.spec.eqd elektragen.mount.sh: specification/lcdvc-spec.ini - $(KDB) gen -F ni=specification/lcdvc-spec.ini highlevel "spec/sw/lcdproc/lcdvc/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage embeddedSpec=defaults helpFn=printHelpMessage +elektragen.c elektragen.h lcdvc.spec.eqd lcdvc.mount.sh: specification/lcdvc-spec.ini + $(KDB) gen -F ni=specification/lcdvc-spec.ini highlevel "spec/sw/lcdproc/lcdvc/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage embeddedSpec=defaults helpFn=printHelpMessage; mv elektragen.mount.sh lcdvc.mount.sh; mv elektragen.spec.eqd lcdvc.spec.eqd -lcdvc.mount.sh: elektragen.mount.sh - cp elektragen.mount.sh lcdvc.mount.sh - -lcdvc.spec.eqd: elektragen.spec.eqd - cp elektragen.spec.eqd lcdvc.spec.eqd ## EOF diff --git a/server/.gitignore b/server/.gitignore index 52bbc3fd..1110fd45 100644 --- a/server/.gitignore +++ b/server/.gitignore @@ -3,4 +3,7 @@ LCDd Makefile Makefile.in main.d -elektragen.* +elektragen.c +elektragen.h +LCDd.mount.sh +LCDd.spec.eqd diff --git a/server/Makefile.am b/server/Makefile.am index 95682d9b..49c56ad0 100644 --- a/server/Makefile.am +++ b/server/Makefile.am @@ -9,7 +9,7 @@ nodist_LCDd_SOURCES = elektragen.c elektragen.h LCDd.$(OBJEXT): elektragen.c elektragen.h BUILT_SOURCES = elektragen.c elektragen.h -CLEANFILES = elektragen.c elektragen.h elektragen.spec.eqd elektragen.mount.sh +CLEANFILES = elektragen.c elektragen.h LCDd.spec.eqd LCDd.mount.sh LDADD = ../shared/libLCDstuff.a commands/libLCDcommands.a @LIBPTHREAD_LIBS@ @@ -26,13 +26,7 @@ specdir = $(prefix)/share/lcdproc spec_DATA = LCDd.spec.eqd KDB ?= kdb -elektragen.c elektragen.h elektragen.spec.eqd elektragen.mount.sh: specification/LCDd-spec.ini - $(KDB) gen -F ni=specification/LCDd-spec.ini highlevel "spec/sw/lcdproc/lcdd/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage embeddedSpec=defaults - -LCDd.mount.sh: elektragen.mount.sh - cp elektragen.mount.sh LCDd.mount.sh - -LCDd.spec.eqd: elektragen.spec.eqd - cp elektragen.spec.eqd LCDd.spec.eqd +elektragen.c elektragen.h LCDd.spec.eqd LCDd.mount.sh: specification/LCDd-spec.ini + $(KDB) gen -F ni=specification/LCDd-spec.ini highlevel "spec/sw/lcdproc/lcdd/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage embeddedSpec=defaults; mv elektragen.mount.sh LCDd.mount.sh; mv elektragen.spec.eqd LCDd.spec.eqd ## EOF From 41ddac75dd1e2b4adb0c1e01f9e4d5f8a9a7b641 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Mon, 2 Sep 2019 19:37:35 +0200 Subject: [PATCH 51/72] all: remove ignored files --- clients/lcdexec/lcdexec.mount.sh | 38 ------------------------------- clients/lcdexec/lcdexec.spec.eqd | Bin 11102 -> 0 bytes clients/lcdproc/lcdproc.mount.sh | 38 ------------------------------- clients/lcdproc/lcdproc.spec.eqd | Bin 12217 -> 0 bytes clients/lcdvc/lcdvc.mount.sh | 38 ------------------------------- clients/lcdvc/lcdvc.spec.eqd | Bin 1787 -> 0 bytes server/LCDd.mount.sh | 38 ------------------------------- server/LCDd.spec.eqd | Bin 42941 -> 0 bytes 8 files changed, 152 deletions(-) delete mode 100644 clients/lcdexec/lcdexec.mount.sh delete mode 100644 clients/lcdexec/lcdexec.spec.eqd delete mode 100644 clients/lcdproc/lcdproc.mount.sh delete mode 100644 clients/lcdproc/lcdproc.spec.eqd delete mode 100644 clients/lcdvc/lcdvc.mount.sh delete mode 100644 clients/lcdvc/lcdvc.spec.eqd delete mode 100644 server/LCDd.mount.sh delete mode 100644 server/LCDd.spec.eqd diff --git a/clients/lcdexec/lcdexec.mount.sh b/clients/lcdexec/lcdexec.mount.sh deleted file mode 100644 index 6bd0e55c..00000000 --- a/clients/lcdexec/lcdexec.mount.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/sh - -if [ -z "$SPEC_FILE" ]; then - # TODO: set SPEC_FILE to the installed path of your spec.eqd file - SPEC_FILE='/usr/local/share/lcdproc/lcdexec.spec.eqd' -fi - -if ! [ -f "$SPEC_FILE" ]; then - echo "ERROR: SPEC_FILE points to non-existent file" 1>&2 - exit 1 -fi - -error_other_mp() { - echo "ERROR: another mountpoint already exists on spec/sw/lcdproc/lcdexec/#0/current. Please umount first." 1>&2 - exit 1 -} - -if kdb mount -13 | grep -Fxq 'spec/sw/lcdproc/lcdexec/#0/current'; then - if ! kdb mount | grep -Fxq 'lcdexec.overlay.spec.eqd on spec/sw/lcdproc/lcdexec/#0/current with name spec/sw/lcdproc/lcdexec/#0/current'; then - error_other_mp - fi - - MP=$(echo "spec/sw/lcdproc/lcdexec/#0/current" | sed 's:\\:\\\\:g' | sed 's:/:\\/:g') - if [ "$(kdb get "system/elektra/mountpoints/$MP/getplugins/#5#specload#specload#/config/file")" != "$SPEC_FILE" ]; then - error_other_mp - fi -else - sudo kdb mount -R noresolver "lcdexec.overlay.spec.eqd" "spec/sw/lcdproc/lcdexec/#0/current" specload "file=$SPEC_FILE" -fi - -if kdb mount -13 | grep -Fxq '/sw/lcdproc/lcdexec/#0/current'; then - if ! kdb mount | grep -Fxq 'lcdexec.conf on /sw/lcdproc/lcdexec/#0/current with name /sw/lcdproc/lcdexec/#0/current'; then - echo "ERROR: another mountpoint already exists on /sw/lcdproc/lcdexec/#0/current. Please umount first." 1>&2 - exit 1 - fi -else - sudo kdb spec-mount '/sw/lcdproc/lcdexec/#0/current' -fi diff --git a/clients/lcdexec/lcdexec.spec.eqd b/clients/lcdexec/lcdexec.spec.eqd deleted file mode 100644 index 97b7bef689f15f460eccdafe47af71af25eb0686..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 11102 zcmdT~ZBN`t5*~yQ8buLWArwUj(P*^VjrPC{WI$PjB6h;=<`M$8WcOb7!>Sqg%viD8 zzHSd>?#q3=pKyQos=D2_yBXU_2;oqogfU%R)zwu`Jyo9LS1*2OwOaFYaxPj8_%N1U z5>7?|mq!5)NIFdz5tNVMUp8cd@c|>8rB|_d7p+9`gr`Xy@bqyw@Y#Dd*c!xq*jmp% zdDQm>lM?oRJQ%aVJ1#33G3KMfWLfO<@F%c6^KufWeKKL+N!h=&WYV(-0!VN2>mC6%FS#d#0;17ea!3|HmODa6j?q#Rh z0x`?V)3d<;5%wWrJfL`61kC1WFo&xpR1%-EDCV|vOwf2qEYiX)_{qAKwF#HOh%^5W zIfmcmu6oej-P_x<3^_Q11?Vf9rgSjIpRNT;Qh2D1y0lS_k|J6J!$l#xWFgr2NC&P; ziN)>BUO9Z6Epj{OcPtzKea=#;f<|wR9#Y%?iDW4Nzm3Ti73e%kDEA2yA{LUwJe+Rn zTNlMC9_xKJ)h4q~vuWZ`FHK`Pm0>(8oQ{cN!lN+Uj>X^4$MGce$rXYDIt9(t8$n#k zlu;kEQ>H$c`&^qT3o|z|Gt+oe3u#l0*4C=AQI1)NzOKtm?;_xy99xe4uM$L~CQ@f6 zLeeBf2PYyP2^z@*aOad{3&%7ikdaKt6r3!-Cz}J(KRr1)dh;S$Wc>2M`On9%U)w>u zhDq)X;wSz^ zwrKTi)!ql=7=&#JN%s|SftL)B0j40LUPrG@MK?tm+8d5)qXWBvslyt9>=@XD{n z0ayxpt_US5iy)+_m=d!Of!f0W#U=^h8CaEs457`5+Fi$rghH6H6k-bOSa;m?P=eth zt9IW)rx)!zLb-3f&i4M+mZ$&bdOR5h5W-%kPOy70Ls03th~L+X?mU|z3U!Xbb=OPo z?#__JT3;{rv^PVHhRK-L%k?tPfOO%UAn`h_{mMIPNZ@_U%bfUN!T}wL0#4IdtmR7H z0(Q#isAjE)#NbJm)Mq9_P%e62C-#m_RpE~Mb*m;E!g9miJvy~zOol=f*#~*31E_j^ z*IxgXiJNMP9a~~43zuqvU0a~77-8iBp4zJ)sNksHyk{?82ojCV%5Po{!phSt8m|9< zOTUI>h|C4J;FT_Py3wjmSNsUBUCQ9ge%x(i1eOb08$aimluM~Xptj1*TE%Nrk5K>W z3H*2rI6PI+qij}twU$+oBM| zU_X+M1F3w{`c7?ZAHLzj>kxJYm8&@a0CaT{<8#64@`=f}YJ73;Sd-(S7NLzFRFw)F1uaLlgRrxN^6K(%oY55`n6 zwVGa|cl1O5#qp0n{rvLJuU?v4rmjUZ)aBsQTxtbi+1id2y>0CiZQ8`>S*#=fChOg&QCvMCHm1p+uR!XgX_ z0(t>M0O-DaaxqoqA$NQgi$AKcC!+5|#z*Pcwy2HsoxE-?cDL;o^$^5@Xc9p~jk0D~ z1hWw!tUPP=)gG-%#Q|?t>@*RFzzIK4t>&V+TTEtnvy!=IvxsfO)GW%;E%=!Ad?#mJ z*5h5xt*mEHGX`Zn>>*DorG?E{GKofrm`!?1wB=dF{a?~>QW1@_v)}-(APr~;aR`#v zZobSch5-xx$JzSdaJikIx~D7d$PnI!T2@x^QSE-GkHb;u#Li4>P}qY^#>KG09t~qK z*_hgC($w{ymd1(-qExa%B^N&V7Por>V;q=GXgkbqtyj)vl??e3*wwFAe^>D3LV3v} z=*E=2FHJTv#|@;KAa3I_tBxF_5Yp?+rFxbMLhCGogJsvsGzV4 zLKpAJda|Q~x3WlF3#pRtiRn_h%p13tmHKT-k(K7H^6lj1`nh^(U6GmYyu;Y?MRLuZd^oA824&qIm-^n>DL_G1rvn>3`- zz3>I9L2nwm8yS_&~-gf7z`7PcvKs7V(n?tHwbaRh12DM8$ IKbY$L4@ecLv;Y7A diff --git a/clients/lcdproc/lcdproc.mount.sh b/clients/lcdproc/lcdproc.mount.sh deleted file mode 100644 index aaafcc39..00000000 --- a/clients/lcdproc/lcdproc.mount.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/sh - -if [ -z "$SPEC_FILE" ]; then - # TODO: set SPEC_FILE to the installed path of your spec.eqd file - SPEC_FILE='/usr/local/share/lcdproc/lcdproc.spec.eqd' -fi - -if ! [ -f "$SPEC_FILE" ]; then - echo "ERROR: SPEC_FILE points to non-existent file" 1>&2 - exit 1 -fi - -error_other_mp() { - echo "ERROR: another mountpoint already exists on spec/sw/lcdproc/lcdproc/#0/current. Please umount first." 1>&2 - exit 1 -} - -if kdb mount -13 | grep -Fxq 'spec/sw/lcdproc/lcdproc/#0/current'; then - if ! kdb mount | grep -Fxq 'lcdproc.overlay.spec.eqd on spec/sw/lcdproc/lcdproc/#0/current with name spec/sw/lcdproc/lcdproc/#0/current'; then - error_other_mp - fi - - MP=$(echo "spec/sw/lcdproc/lcdproc/#0/current" | sed 's:\\:\\\\:g' | sed 's:/:\\/:g') - if [ "$(kdb get "system/elektra/mountpoints/$MP/getplugins/#5#specload#specload#/config/file")" != "$SPEC_FILE" ]; then - error_other_mp - fi -else - sudo kdb mount -R noresolver "lcdproc.overlay.spec.eqd" "spec/sw/lcdproc/lcdproc/#0/current" specload "file=$SPEC_FILE" -fi - -if kdb mount -13 | grep -Fxq '/sw/lcdproc/lcdproc/#0/current'; then - if ! kdb mount | grep -Fxq 'ldcproc.conf on /sw/lcdproc/lcdproc/#0/current with name /sw/lcdproc/lcdproc/#0/current'; then - echo "ERROR: another mountpoint already exists on /sw/lcdproc/lcdproc/#0/current. Please umount first." 1>&2 - exit 1 - fi -else - sudo kdb spec-mount '/sw/lcdproc/lcdproc/#0/current' -fi diff --git a/clients/lcdproc/lcdproc.spec.eqd b/clients/lcdproc/lcdproc.spec.eqd deleted file mode 100644 index ad4f8d5cf53b2415c5644ce98bdf411521e16ae1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12217 zcmd5?ZExbn7G`f0AsR&}ilPW1#H0wNQ5Ou!Cb!*wsM>Dd)a}bvZa-BkWb84FVvo7w zA=%vf8>;^0p7D5Wk6{gy2)Owa2G4oUnR(8u`SzzbUso!Xy%*7oph>6~M%K)qPY8{A zgc8IbXBaV?PB5aFKZNWqI0?cz<+G4b-tb*##zLp>gw(4X*yC`{LC%RY#m=22_Ev5B z7}Qj)22+k&$S`lY+hg-JqhtA$0=;YQMhHZ{vv7K8Ka?WnyD@?z(Bm50ukx5V! z%ZE}{r4d70w!_Ii)-|Y)!_dbzO|{q?2B$8L97blGg!J@w8a^QS2;w#UJc51qP>Pgj zN>rsO;X=>jBq-oD=QJV{irtYP(n*S1`yBoj4!ni zr7;m41EKdMB4fW`lCnEB1}-RnlkrKlgn&^hp>SgLvCTPVkNVwgi5;y3d`*4~p3RT8 z0yJSr_44{=@mR|Vl3Hd!k^QU7MVL~Ce5%Yb;>d6jrJN&2V={3dCfx0WByEMhHI|&E zh$b}Izj?KIu;nbtOf#U#-V&Hnmh@6{jA&vUN;(=&gq=v|%VMymKz0D zF44qs%!1$@G7MQF&M-<^rRvP)I?$G)*9icx$w}SNr)0KM0cJwSy(Phi)|gm2xQFi>Mu7#6tu` znECeO%KAVl(_2(Vh|=>zxh}0t7qNA1=%$1=@jvsdolwWX{h)$cXc9}E?_Anp3XF$}xnf6pV%%4<^~l@qDToRZwo z1k-sS+@mRHDB`2l8Pvv)9P4Yt>X>kS>GE)9J9n6;>dS3;3;y@JK+6#v{gDi3UL%2l z`u#rg@x=D!=a&djULq;?UCz8wE3yjn?6&sx*Da74ss?#o$}|+3TZ^ z)P%wf+(kZ2YuxaGA{b9`V*ALZ6b4cb4lv~?^pg9D&?khVp*0)~qKlv!&iFwL8pKt- z4puo&^^#t{+H)Ikzj-4pK|lO@`)`dSK@vG+B=JIq_!OhS25msYdG5UPBHl^8R5a-- zg)vJ-n^P-!rVr0($MM&1#QhF7A!zJvF>gZ;Q%n(Tp%BB7 z9U<4o0W4=cTqd({K8;i*FfuzCVX`)UY^B3Eh$<{|jDz9T&CQLb=vTjq^8)^e>xwYD z$8d8Yf-aF_M;xR)zgc!-H328js(@3uNcDqE#X(dAmV=(^+zPDzb|xM}$#cMLxQjrZ zmQ7uR--Cw<3h&)#==J33!eymYmIUzeJ@x_kRECpyl3N}0uJh@)pnRs}rFKB)5#~rr z6*m`4UT%F)SudaFp`>7TPa=3IdS!5WtX;-ny(8}^7&*L+tPUX5fZ5S8!@}V}O=YJD zKef(ic&$gwq3G)MrAt|#>5Er~kdH(5sIR`N`JwIVYuCqORy%TGjIDohBgf$A zFdHrC@Yzx5yK-Wy<$=$SVfHbKXJkP;pCCrV!QmXn*`Q@%eW)g{#V;<80d^EOvBj^h zjzwr2MdZH=;$Fo)O>x8ZNdTvvD3+W4$5FqKG@5T^4v+)=pw94r=7eFmIl&5xAA?4Sy;)w`K|d{CQ9_Mw^n!RQ#hGeBi-a7E`Ok{*`v*fBtO0M{i*p`syAcJ%`9o z9H^NfzK)?z@j)o85#L7rWjQ0OGnG4C3`nMbEArVNmo$b zFDIc_=iZi_ttrF)*4(X?;F(Zke`x&LNSS584dd4V7l|oGqg zbMZfZ@C(&CM;Lkt&f=d3d~$WMIx(oaq7H?h0MOOiQnYI&;9KKzR{@H0d7b;%@4nYA z!x0;oT*mw7-$YyKwqY+z4}Ft9_Ng*vvmVyT!*Ie^|BytlP(S|18##c9i^Ny}l!^=* zVg$cE>Op-7la$cKee_ER_s*xHs1$QJFPt+ZzJ~gq!6OWRB+5)FfkZIdeSmor64ujx z&THY9NI0d6`0x^Wwjbfu4y)SNO3LANW6Dt+DqeSQH7188VFjK|m3(q!ITAgcXz6wm zTG|SIYq8}lMKp2X+H-n0~cOewUyS|z0@EhCpNFQVI%>gft}E#DY3Ukl2(Fe zLJ{+KC(0@VdKkYvxkxNA;)Zd#eI%lk$hkXVM_Zw<$qzlbJf+w^PZ9qQE0nWTITQLW zZSq$HxD06hU!oc}jJ*_PvmDOuQ~<71b?zu*CllSBxLQ+Alh<^#=XbTO1kZ%YPnn4+ SyG%l{=?@_<5?eM)&2 - exit 1 -fi - -error_other_mp() { - echo "ERROR: another mountpoint already exists on spec/sw/lcdproc/lcdvc/#0/current. Please umount first." 1>&2 - exit 1 -} - -if kdb mount -13 | grep -Fxq 'spec/sw/lcdproc/lcdvc/#0/current'; then - if ! kdb mount | grep -Fxq 'lcdvc.overlay.spec.eqd on spec/sw/lcdproc/lcdvc/#0/current with name spec/sw/lcdproc/lcdvc/#0/current'; then - error_other_mp - fi - - MP=$(echo "spec/sw/lcdproc/lcdvc/#0/current" | sed 's:\\:\\\\:g' | sed 's:/:\\/:g') - if [ "$(kdb get "system/elektra/mountpoints/$MP/getplugins/#5#specload#specload#/config/file")" != "$SPEC_FILE" ]; then - error_other_mp - fi -else - sudo kdb mount -R noresolver "lcdvc.overlay.spec.eqd" "spec/sw/lcdproc/lcdvc/#0/current" specload "file=$SPEC_FILE" -fi - -if kdb mount -13 | grep -Fxq '/sw/lcdproc/lcdvc/#0/current'; then - if ! kdb mount | grep -Fxq 'lcdvc.conf on /sw/lcdproc/lcdvc/#0/current with name /sw/lcdproc/lcdvc/#0/current'; then - echo "ERROR: another mountpoint already exists on /sw/lcdproc/lcdvc/#0/current. Please umount first." 1>&2 - exit 1 - fi -else - sudo kdb spec-mount '/sw/lcdproc/lcdvc/#0/current' -fi diff --git a/clients/lcdvc/lcdvc.spec.eqd b/clients/lcdvc/lcdvc.spec.eqd deleted file mode 100644 index f7a244db652b3e073369ddac21f55d3898cc2830..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1787 zcmb7EK}#D!7>$G?K}rw_A|f3T4~6Qg#YpL)w6(n`R4P67Amh%ryMwdyEi?D}Y^py%fxXX~2~0Sh+qgH|Z-;sPo~B zw;U`GbeaTC^aD&u(=#Flmoyde%PW{NhpfZ~S^$CNME@jG@L^H_?c8`3rq)bqHirrxWaZF%z)e2TsA2BNXkoH7 zr6cQHQINTpUAd;INYmX4u6T;rkXcG9DKe=bc4Ijfhe^XtLijQRw@h#-QO62GW|InydorZ{WfYdZT3eZG5O=nqcaP__ar%Bd9!IJ^ z-q3(QFzy^r3;*k%;8ycv8hEataEYXM5W-`?k0@wBk>Kr6qqdjpCr9UtkzN9LRM|g^ z6#lsdXWKvrXm3^v|BlTHNpF!+oV|~haV;1agT^w{YI+=kXXbm@2{=bB$p829c5yEb z?bIsFO}FPCKFryq+v<}0+sw5y|wYdg@_)r$pv^{a}AVFlv4diu(0Qp*K2GF>RC vzy70IEH`#5p(Tl58fiN8Pbga+%^zBAA@1axuw5EknR2tEj2I6H>N&!{ya|WO diff --git a/server/LCDd.mount.sh b/server/LCDd.mount.sh deleted file mode 100644 index 7d937b2d..00000000 --- a/server/LCDd.mount.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/sh - -if [ -z "$SPEC_FILE" ]; then - # TODO: set SPEC_FILE to the installed path of your spec.eqd file - SPEC_FILE='/usr/local/share/lcdproc/lcdd.spec.eqd' -fi - -if ! [ -f "$SPEC_FILE" ]; then - echo "ERROR: SPEC_FILE points to non-existent file" 1>&2 - exit 1 -fi - -error_other_mp() { - echo "ERROR: another mountpoint already exists on spec/sw/lcdproc/lcdd/#0/current. Please umount first." 1>&2 - exit 1 -} - -if kdb mount -13 | grep -Fxq 'spec/sw/lcdproc/lcdd/#0/current'; then - if ! kdb mount | grep -Fxq 'lcdd.overlay.spec.eqd on spec/sw/lcdproc/lcdd/#0/current with name spec/sw/lcdproc/lcdd/#0/current'; then - error_other_mp - fi - - MP=$(echo "spec/sw/lcdproc/lcdd/#0/current" | sed 's:\\:\\\\:g' | sed 's:/:\\/:g') - if [ "$(kdb get "system/elektra/mountpoints/$MP/getplugins/#5#specload#specload#/config/file")" != "$SPEC_FILE" ]; then - error_other_mp - fi -else - sudo kdb mount -R noresolver "lcdd.overlay.spec.eqd" "spec/sw/lcdproc/lcdd/#0/current" specload "file=$SPEC_FILE" -fi - -if kdb mount -13 | grep -Fxq '/sw/lcdproc/lcdd/#0/current'; then - if ! kdb mount | grep -Fxq 'LCDd.conf on /sw/lcdproc/lcdd/#0/current with name /sw/lcdproc/lcdd/#0/current'; then - echo "ERROR: another mountpoint already exists on /sw/lcdproc/lcdd/#0/current. Please umount first." 1>&2 - exit 1 - fi -else - sudo kdb spec-mount '/sw/lcdproc/lcdd/#0/current' -fi diff --git a/server/LCDd.spec.eqd b/server/LCDd.spec.eqd deleted file mode 100644 index 719b0b764f103499e7c0936fd9303ea68f287965..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 42941 zcmeHwO>7*=k{%`Pm|zP8Aq#?_6$GV*mPyXA|M@4)&d!raYDTNy6{$Bfco=i5yQ|4E zyQ|t&)g*fi9}L3=3}bf>27K|+r}fSD&47<@fjt;L7%G)d8yL9Z9JnP?mlF=w)hj-XLp8P%*qd^ZfnrWE%(T4 zx;BK=%JcUVAg@rXa;Mp{fc<92?YPZY#0Rbj`f;xx3)z{71JRG%bVT$ubu$^U?R988 zy-sQkt*-x(?{v{=oBNIqoX~BFj@JmCa6p}R0;eSwkG=Q+vBJMbIa9QrLrt)EA-!cYxLjhJv=fu?N%TC?)z?QFFFXqIDvkK z+FP)%@3?YJnnAbQ_r0dvOCDH4mFa70w%HE+_-8J zt=tH`{e#$dqbResvz21Ca>}LTh9)_z>ZJr(#-7s==`i^#IiCOo@{B_#ir*fb>H4a@ zvDGXzdW?KnZYQw(VkDM~m?bf}krtYsH;FAJgZu7r+Y7tLpjxcH!T9DHLC|p>KOr7) zE_1uT*9)va7hrfq&0_Jndn~&6G!no6wWyUUioSJ^Q^jQTpxsWfo@~?;Rj(COnV?Aa4)c+7MNUHc)n;l zkt;~BP%F=OnlZTjn-D8>v7&_H6D;!Jm8<69{p>P$81;`L@$m7BofN!5&=+8I{Z7mO zqgeRhnP}=o5};(&ZziiAp)(r}Eko`|MvJBKTFeQ*TKrA5c<-k#e^bGKzgRl4|LhjC z?aN&UD>d`<@$>C&b@(M%jJ@~$B}ZhB(_hSZVyuDzNl4BR*1cy z)R)Cd<)jK4*Mew<-dPB_U`RNu5_c?@K+SIIR=NT?g5{eLf&~CnSARhPb0dMWA2sZ4 z(tDY#LI&~ck0aiBB{+cD5a#0b&ckmqxS+=9In6_tP%=-HsnwEgCJ<sDYv=G9Qn>x(|a`&u)?#m2BlZm@TEhQyUDHO??XXMxo zbLT8deMizP0i+wW+)he4uHWx|Hec`Fl>CVPEYDY_SL>Na)#XR^EirK2n`8qpB&6uin@jbKpqKQ@T~FQ1Y}v;zG*`1T?zFU)k!~w3 z+?yEUzqt5o7gk8nX$fqk(4A;iB@(RwVl);}zt@AIAbL*7sw-?f7y3ZI2Px>1hCqB2 z0tQygmJ>T<)aiLc?SuJn3^#jtmeJq>2dJqZNHb+qZ;Rf*{qQ;im7|l{(==Z}2G@Gv-U6F4m(2H{2 zMY5NPG@`qk4A*E~XhDNkZb0AK58(?VCyFvVq%>T&VNP8<7C^>U+w&+Uh`%lpI_ z?T7W*feY8xvHf&qrUCoPezrQ-h5GNuj{SITra6G2Y02mH%f|;^>}sfq+1r9veq$o| zAEwg-3>`$X{jz<;`S=GP@N2Z=6Po}svNACxF0EVm z+x`B)frc7H@UD`V?T6(bmq^S-F_cy)9xg;$8@~iSaKF%Z5sipTB_-7|V@wUfGjC9yzB;l6L}E*#mqe9_(z2XwYp09Vpfi03H;ANc?R?Wx}jG>~izCH{M0|0NVd;!(kG)u`z-}mc`~!zB;UybK{xb(83ucq0k!b+y!q=LJ@lbF z=sLYU$HoWkveXX2&tCT|aQ^*gkK2MgqX(qtIncxXB1pw=Iblnn%O0Xq^tuT((TSp< z>A}>4&N!f#GNcA)TEKsm3cCjgFbX)y#Tp#G6g{I>Ua6vmF+{wG~gLYbLJA zl6WGuPh=TTMijX%`ytZTVq_XnFaj+(t<2>h0qcyUWXi{gVRYQAtFmgS%Ft`~5VMH) z$Q}D8!0nWdCp~Zx55CdBhY}kI>V_0RQk9`1BcrMdD2IG7WJi_f%k2J52b6xsn(fuA zT&~t?^~}R69&ThG)@G_}m6~Y)+U`Hqk!jhSCen6|RrP0B8Y{$>m^mM(bK=i3F-V$a zNoYrY)`fpx6nK|p{ssMk-N7H#lNJ1dUAZr+YbP~Z;lHU-FfV{{eZoAw%QB%AlV{wci-}D8+uwE$#~AhuQ5iIT)h%P8{B0f{t8T{PvYEvUZV?|`stsi^FMKD# z9gX7)3B(+j$_=PwL_$z1-&#qSSXc6Y$XK_b{u zDSs@1llT#dYJ_qrU$7(~S^_ZF#Z7s7mCK3y3dJ7a*m3|m0T?^!`!FxT=1*HkdM3H*V0yn!Y zM7&b5Y}$WA*?u=GCzR;-p!n#gzrXSi-ZH!IU#^J8fU+jYvxenDUOvQaYZ)p8{8+KO z53dq3W*Ybbw^qa3FJf^#wB-noSgf2N1-VkJoIJumONo*-i~PS@-A?&?esNPKU`TJT zTov-1(Kw+`ImkNp$L?Tq5mO?%c&HzLty^w(TT!X-x<`7?nI@oiMA_I=)e(E*e=J*4 zt6QAJJhpr54CnoPS5rApo9XWCNv6Ahfg#7f}X_%Q;v~94V1a=?Rew zQ+aHN8k>?T-#WNLM?#2hGwl9~rc(QP?S_6%)H}@cO&0&J=djkqn`JKdFk@FNS1d-Z zD{`j0v@Fqwd3&MdlE=jZCLqbcYaSrq9d3BFMg7ocl#hWkWl9-8_BvoiN^$@jcL@%e za)xb{p8_jG_kN+s$6}aw6=~PgKM@iDi{uD}5(#oh2qD0M40d8{_AaLEuORe48gEM& zN-v)%s(gKpT%z=^Ucvw6BNBQ56=IFWPP6iKN~{(8SIma`pfsQhxvyPJo$nBowjdnaqJmFjkue z7$~8Sb}d~83hL}5#otc>I>$5#LiPoXV2F*)7oOo@o`;CJK++v~9+I8ry#PJ3K>^;Tnkhmmb<32R zqE6klJ-5>;!*_usjZ4+;TfprzK;`3BrN5y={*625c}+l^zParvp(~ z5P`l_4UjBx!)9@n+vK0>J9zc?IX5mWl+_wy3XEVRH>|IGnlVq`Kz_{jrLxp zVSlr7OZRsecpH16{dP5Z+w4_qtC?KswdC!_#_GMjRr}lZD@dlTlA>!r-?(w?9#ksi zR&e&J!#sRW&3kAaOy>T-FK+4}EAnkwhXZcVZ;y9g6bYPSm9T~QKjrNLk&^bn-jZ0f zr@gENz@D6F`nR0gGGzwyWSGj$85D?DKsZMpW%x?Hq6e3q;?GX2#pxSRO*I0j(@_!= z4RsNUh!V)8v)gzwGrw2Mrtr39*WR=b<}Wt=o}2HD3ev&c^+crwjb z=NiY&81J$#*5=TE>^DgJW?K;PIkt%)mbPR!z)o+yN>gkJ=k#JV7R~a znf)F%$4K6>eYX-*O#=QW7nO(dm{KPQ-$}lu6i^a7(8^jtvrlrsIB$LAK-zIGJ<-U0 z2-1T%?nU>@<$b6_{RU2ccj+v2FASQ=&qgO`;GkLr6|RgvBmJTX5rik4WD#kVw}cir zxQ9eoE8p?U@1(oKR=7-|a#!&bxW+M&v%2+2q?ju@Rj4+3PN!eC=d?&}0d`DK<`wOR;1m~r!K54VMX=k4k@I3E>mXgEGag-p$U zx>Bs4ib2>o`13_7(f}*bKO~e<<~?sj6rdnRf+|rT_8bg5BB$>kKi}DX@Jf8Y{hd^L z9~3J0#Wq|;UUX3Y1BbLDkhrF+r9$<-_#Ws2uZY-&iVwl~xPSnh{^Awva>p;!hg&_) zw?Mv1$&a*&GGWtRV(Hp4VWtxpbww_1So@?6C~7lh5OvxsihEchCexkm%6)TpVMbzQ zy0f|WDY`oz3tesWWDW7dlU3}?M5!4PJSI+MfE}}xU#1>2vWspS^~0nw6NV-P>nH zd+v>k%EskXP(x26o=ANXZIcPktR~reu}FkWo~I>hpzQpw3e1$uUdWb$l?*?=#Az)9 z7OU%Ul5ul63Q`#yjKk~?nqqRghEXPOo~@N}dy<{!U!8KAlT4wude$kdzV|7toOKFo z?|lmOvrb|CeNUmfamFc(=bl+w_{(=d3zN*i5C93+a{byQyYOlvwpFtfCvv(dy~k}$ zMDMjTZqsNGiPP}u6o)s~rU2F_6NJ5y)RxK&a|k!=V5!KEF` z+*@=@`z4XOu9sv*E(hF;t6#BONIG%Y(%bcq%tFO7 zWXwA)=n9f2fum_*?9Fhj1;!8zXuL$a048r?8`mBRFda>xL4V=i&8$ zramJ%f8c)U7VS=G3jgPD@z-VQSj zpD>_8M!&6^Yh@@wj7(*@|D3njsmd)+l~SoA`1_IZ#3cv=dM{5h@Dj*z1wsYn+HChj ztP8urd5N$Ac}E)z_Z_7}u=CUMDh)$!dqe)iPS0(6Pz4crkS=XbtDuf(t9tOBA_bw< zf>W03z=*{G_J&*~2vlGKk$W+ih?@vFHa&S!buAOHxzSuf5iq?+vA2 zBIl9oD^mU?S6rlDzF2z8Jk0Iq@DDreE*1~u{7S-wXsVplP&60mlqnmSp=XxF{a=rL z+xrafKSU8pI<+Wpr=yAv@l(R@o!#|HeT}eN)a97u7DIsoyz}8$lF#sVYwOj6XW}^U zQL2*iU}J_y9N-8d6->6+sSf%B<*7GACzr_**$}wqYIb<)0OU-n&c8xOwPEH1cOvRh^YrU9qA@+{iEmP&Nw1e_Qed4iRPSA#Yf$7pLi*(B9qnLgQDpWR}U`}G3qX&%bokBk%c_!BBTNFoF1R}9tB-095h>;8+5@6ppb*VB6#EaLvFJJG1BXaJrWL{bzO&Ni&;aQ9n0%i_= z{cUsb|M(?x26fUeYUNAFKd+p8z6|#Xkq8mg0Id2uOM^nkQk6p(QwoXt!_7n+ zxLi4@uiGw<-@W*_{6Y&(9W8$Pa+eoZ6~;2xhGz4{Pu8DR%SzVnZ%09 zcOq2`OaWn3sgy+>F5w|%m{{zqntLR(v;fx8Wkbz*->hR4&xKhk9`^((Z)pHGQE{-$P zIgE{5TBYJAb|*e&yAuQf7KgHy!YQ=L5LHz()ojJ@y^_=3qEw{8n~Y0?T0YK0n17Kf zqQpXIk_p*tZehh$U2z21lZ;j{mIl;FWZ0-wU$RMvG`QL~XAq;SIEb;~e5iAz{=^5( zY(4a5a!Z08=e60X_t1mpfI2o-LWp9a6?VpQ(k|zNC^@cDKI{Re46iVf&{D7Pa5x$*$}>`busLXqX?-OHi#NChU~U){*Ek*FN@?a zE_2CzRWbjIrEmV$TN-dbZKYN55&NKAqYe@gwaw*Gf&69855tdTq_!*SvoZF+KY|)M znxWhm2he*_#CX6K8Z=@`!$bMC1I=^TyeJiZO$+ih4Jfa6Xdt&rH=$!9D6&L$RqraeMi-L5Tq)L8 ztwP|VA<3(_-qD9_2JFF#lekuaz-KB1IM^lYJ@vU{m4^JzgdeOKy>6|DSgn zRx;K1t(M)?YoH~fX~SGguN69tMs^S1Vd@0M6E}G2Qlgb>G3VQ;luXO^TdWB0+4Lz@2e%%{-Sf8V6arD?wnr+XC z`pk5j{Nv}yKZ2UH36~!H2lx57*5bE_83c4G)sYwUp;vL;_a#wy2I$kKuX|;#aAv1~ zUsuZmNK|o2X)oVN7v(f`eGR(EQ8|tWJGSGpDi6`I2W<>Z-%3ZzP_@RacS_ew#_&Oi z@`tU%4+RMlG%?ZOpJvej;*p?Mn82>e5m-Q2S7toToCO$#2w$da)5VcuxU%{m%;Ka3 zXRc0^U7Z*35kWhE2Z5l^(#7_P7ne8bC^b&>SjQtqEy>+h>HnB~ou%S)UMSG`QkL!pM^iTF!a*vPzH;pC}NP!oCa_DwKqpOJ| zLHTJ4=4ffKWONUg{b`sVw<`1W%ZN(*v2A>wk_X0QwsF z;y_I_N_=Ygp1Y6eXgQVHNj!=e_3}-O&BxEbeenwQ6=WcjD&<0`f*;5N zxG^p`Ic)%a-JBywhcR$jP9s$<^0NmlYrLM@5lz|dCZm!kMidP4T$TL>@j;v#JN9W& zEXVX1tL4>2Sy?2))tB@gpMp**0MLbWt{|1;3HE#uYX?F=Xp~NZxL~ooIW#WP6|heQ z-Y4BuX$f4G0C7wD2Dv1t3=DIT!a&^sSJR=tbX=Xmm$B1s^2~VTk8Nsl()�{|&Sfq+h z@iATY)bc36NtDv;z?&Z9nneO3TQ^>k30DdD*p~bnFL}TBvCV6?8=nLrl_1Y^L0yq= zCs3_&Z}NE-pS%bg6KPd<ep11Gqn`H0;k{(R4>O>pv56CB%`DaLG*@;72X3xZ@4SqJwTKRHR(7`zA^KQ>{`YM`2ZjqQ6ln} zTcdiyq$Dl;qD8EW$>8Ud;gpHz{#8~4Vi@B_aukFEG-2ZJx8Af>va?1UFskfYx!;%{|^EHxm zPsp>8ies1`c{dl657iEzOm_}5k80DDT57ebPeWxgXJf}qrm0)gep=EqP-31l1LXu{ zpkuB#2%RoR^79nytLpUxnssjIN_8`lYQ6AMf;L*WzLP*#K8+ffAAMa)12a&ZDSZu| zFS$gDr%&BV$H}OEdiktHKX2V{UK+k-r;ma%$P+?gUdw5vb)D3Rwxdx0=Mt=FXjSCV z^Mhr{WLQn7q-T{9sT04bf7sNd7pfwG%-Eo7v690{w<>uakCbk|8|?3Q+*b_S6ZpRl zpa(U`AV*X#LY0D&;CIxoG46(pO2#Ou&|DTU6f`cN?pzibZnYs?;q>;3yPG zUXwC%(B7a!T}3^?QU(9o*t55bn_=bVD+>>3M7_@jY96wERJJG%*LqXHhQXmaR3sMd;cnTVW2}_j zsq$^ec_iOa6NlP>KqyyPm1W(M=Ve{=ht6NEbk|3{hExCAuMkWJ`)ZZv$F-}XoxD|f ze7o8m-A-RJJ+9X}^~x6vkMDKmD%#1LKgM;pdgWK;eF&EEovqDLD_qGiuB-Lyze-c= z#x>jkXe!BLT(f)VFNsEWzZ$(EI4^e_O^x8o{P^ayGg{Rc-?9c668SK`X&oy`i3?by zv9PY7-ANG9isviuf0@#x#A~9(PC$3OXc5Z=iX~|#N~wdoYzoJjR3Pt+@S;i%l>~;6 z6&-<15vekz8K)$!ZyroXkr*C5fa& z9S(g+UexZ+5ii0?ff)qn+>|q2OTUxcLIW|iq}W9p%8|>g4U1^ccSN@1EUK!a_PxcP z{tcMFyCA;$&t8L65ev7Xj4iIyaC!O!hJVN-=;hDj$l3;=Oom_YtKoC`i*J?yLfSV_7 zponq0aPLsU{;45hlaaMEX#xo=*Hj8mEj144a`dbYJl^8p|Bk*n%Q9*lqsAP|Utw&>5m!a2)5$ShGq9i}fl#Awvc{>u!X%PF#@Q*?ms6 zqC``voye$XR{M)^e{qC^vPzQ#Us37_*Us)x?K)SyM84JzD`=!JQpoc;=9xahP^9Xh z{5?p6vU@lZDmy}%E94n~)CCMJuI?8nhbV_#0nc02WQD2UM~RCIYO2lEkMl#itvxpCWgXk5^w>vqAKB zfbyyPHezX^ndmAR$JuXo2uKLrT79 zP{%GeI*xys&^&oWOn=9}C7%;CaL#sONo+zOy+BA=WBCmU2v?GWkXawe-JahDdtl9g zwKnot@wr`j|BAzE!9E{xRL!WY0pf~Bo-EkUUUvlRWZ_^nWscgRA~TodVN-$<_As0@ zjuv<}dS?iLVSW!;8D1nfyN@|wc9E!cT zgId`rwvmw%vXqfF|2{*_0&{u4Z1y ze6VS`N612VaGx&fph(N1WThlf{f8zrpX@2MJG=N|i&JA{f9X=Z>c;_r+KkqQgk{bB@!o#_FSU1%$@B5IPUgwW9L<}F3 zaTDK=yMKnw&=w zZ6wHAB;OXlC?cwbI|BO=ehu+|`nO)IsNe9H1?u4s@Kz!F7$OW(6MCyJet7z5i(FW! zkjK}jN|!vU4=kKeQ>6Ycq!Iy|+|-f+?_IO0bQq9Q{yGeulK)B`lIOx^sA?uloyj_9 zZ(roBDT|yz5%)M5hABHeHeV9k@@h>wD_^04G3nv+X3|M%s3J1qJ uE^uM{15QbJI@(ka4qiaM1cSVQ-N5(go|e@6hCY>JUF$m Date: Mon, 2 Sep 2019 19:45:31 +0200 Subject: [PATCH 52/72] server: make first driver required (works now) --- server/specification/LCDd-spec.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/specification/LCDd-spec.ini b/server/specification/LCDd-spec.ini index 0a734e96..feeec384 100644 --- a/server/specification/LCDd-spec.ini +++ b/server/specification/LCDd-spec.ini @@ -42,7 +42,7 @@ The given value is a reference the configuration of the driver, e.g. @/curses/#0 [server/drivers/#] type = string check/type = string -default = "" +require = [server/bind] type = string From 4af024cbaed91891a770d86b0a8ccd0e3163dc2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Mon, 2 Sep 2019 19:49:31 +0200 Subject: [PATCH 53/72] docs: update elektra readme --- docs/elektra/README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/elektra/README.md b/docs/elektra/README.md index 0e4aba5d..d342ed48 100644 --- a/docs/elektra/README.md +++ b/docs/elektra/README.md @@ -51,3 +51,19 @@ sudo make install ``` The script `post-install.sh` sets up Elektra such that it knows about LCDprocs specifications. + +If you run `LCDd` now, you will see an error: + +``` +An error occurred while initializing elektra: Validation Semantic: Required key /sw/lcdproc/lcdd/#0/current/server/drivers/#0 is missing. +``` + +This simply means that you haven't chosen a driver yet. To choose a driver run: + +```sh +kdb set '/sw/lcdproc/lcdd/#0/current/server/drivers/#0' '@/curses/#0' +``` + +This chooses the `curses` driver. Specifically it choses the first configuration of the `curses` driver, +which is stored below `/sw/lcdproc/lcdd/#0/current/curses/#0` (`@` stands for the parent key +`/sw/lcdproc/lcdd/#0/current`). From 94b55325a7b9339e0f3b938e0c43443eb7640783 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Mon, 2 Sep 2019 20:22:30 +0200 Subject: [PATCH 54/72] all: add newline to error message --- clients/lcdexec/lcdexec.c | 2 +- clients/lcdproc/main.c | 2 +- clients/lcdvc/lcdvc.c | 2 +- server/main.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/clients/lcdexec/lcdexec.c b/clients/lcdexec/lcdexec.c index 0bd7d5e1..f24cca1a 100644 --- a/clients/lcdexec/lcdexec.c +++ b/clients/lcdexec/lcdexec.c @@ -215,7 +215,7 @@ static int process_config() if (rc == -1) { - fprintf(stderr, "An error occurred while initializing elektra: %s", elektraErrorDescription(error)); + fprintf(stderr, "An error occurred while initializing elektra: %s\n", elektraErrorDescription(error)); elektraErrorReset(&error); return -1; } diff --git a/clients/lcdproc/main.c b/clients/lcdproc/main.c index c0b2e89c..6be846c0 100644 --- a/clients/lcdproc/main.c +++ b/clients/lcdproc/main.c @@ -325,7 +325,7 @@ process_config() if (rc == -1) { - fprintf(stderr, "An error occurred while initializing elektra: %s", elektraErrorDescription(error)); + fprintf(stderr, "An error occurred while initializing elektra: %s\n", elektraErrorDescription(error)); elektraErrorReset(&error); return -1; } diff --git a/clients/lcdvc/lcdvc.c b/clients/lcdvc/lcdvc.c index e018cbe5..6cb04b1b 100644 --- a/clients/lcdvc/lcdvc.c +++ b/clients/lcdvc/lcdvc.c @@ -138,7 +138,7 @@ static int process_config() if (rc == -1) { - fprintf(stderr, "An error occurred while initializing elektra: %s", elektraErrorDescription(error)); + fprintf(stderr, "An error occurred while initializing elektra: %s\n", elektraErrorDescription(error)); elektraErrorReset(&error); return EXIT_FAILURE; } diff --git a/server/main.c b/server/main.c index cd4b6da0..a9c01c3d 100644 --- a/server/main.c +++ b/server/main.c @@ -291,7 +291,7 @@ process_config() if (rc == -1) { - fprintf(stderr, "An error occurred while initializing elektra: %s", elektraErrorDescription(error)); + fprintf(stderr, "An error occurred while initializing elektra: %s\n", elektraErrorDescription(error)); elektraErrorReset(&error); return -1; } From dbc292958c404a5728c11a8498bdbb2285485fe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Mon, 2 Sep 2019 20:53:10 +0200 Subject: [PATCH 55/72] all: update todos --- clients/lcdexec/lcdexec.c | 2 +- clients/lcdproc/main.c | 2 +- clients/lcdvc/lcdvc.c | 2 +- server/main.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/clients/lcdexec/lcdexec.c b/clients/lcdexec/lcdexec.c index f24cca1a..0f2d1791 100644 --- a/clients/lcdexec/lcdexec.c +++ b/clients/lcdexec/lcdexec.c @@ -201,7 +201,7 @@ static void sigchld_handler(int signal) } } -static void on_fatal_error(ElektraError * error) // TODO (kodebach): finalize method +static void on_fatal_error(ElektraError * error) // TODO: finalize method { fprintf(stderr, "ERROR: %s\n", elektraErrorDescription(error)); exit(EXIT_FAILURE); diff --git a/clients/lcdproc/main.c b/clients/lcdproc/main.c index 6be846c0..1aec9fb6 100644 --- a/clients/lcdproc/main.c +++ b/clients/lcdproc/main.c @@ -305,7 +305,7 @@ main(int argc, const char **argv) return EXIT_SUCCESS; } -static void on_fatal_error(ElektraError * error) // TODO (kodebach): finalize method +static void on_fatal_error(ElektraError * error) // TODO: finalize method { fprintf(stderr, "ERROR: %s\n", elektraErrorDescription(error)); exit(EXIT_FAILURE); diff --git a/clients/lcdvc/lcdvc.c b/clients/lcdvc/lcdvc.c index 6cb04b1b..2eb2fa63 100644 --- a/clients/lcdvc/lcdvc.c +++ b/clients/lcdvc/lcdvc.c @@ -124,7 +124,7 @@ static void exit_program(int val) exit(val); } -static void on_fatal_error(ElektraError * error) // TODO (kodebach): finalize method +static void on_fatal_error(ElektraError * error) // TODO: finalize method { fprintf(stderr, "ERROR: %s\n", elektraErrorDescription(error)); exit(EXIT_FAILURE); diff --git a/server/main.c b/server/main.c index a9c01c3d..4b3c6a34 100644 --- a/server/main.c +++ b/server/main.c @@ -272,7 +272,7 @@ clear_settings(void) num_drivers = 0; } -static void on_fatal_error(ElektraError * error) // TODO (kodebach): finalize method +static void on_fatal_error(ElektraError * error) // TODO: finalize method { fprintf(stderr, "ERROR: %s\n", elektraErrorDescription(error)); exit(EXIT_FAILURE); From 4d6a52e361448b4c1e287a1cb7de50940191a02b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Sat, 7 Sep 2019 14:57:03 +0200 Subject: [PATCH 56/72] doc: update Elektra version requirement --- docs/elektra/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/elektra/README.md b/docs/elektra/README.md index d342ed48..206f8c4b 100644 --- a/docs/elektra/README.md +++ b/docs/elektra/README.md @@ -2,8 +2,8 @@ ## Setting up Elektra -- Checkout the latest version of Elektra's `master` branch (or PR #2805, if that hasn't been merged - yet). +- Checkout the latest version of Elektra's `master` branch (commit `79408a3509d4e8f97369c877ff08709f7de04976` + or later). - Compile Elektra ```sh # inside Elektra source directory From ac69c573478989d59fa407f37d4bfd51db2bdf66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Sat, 7 Sep 2019 15:01:09 +0200 Subject: [PATCH 57/72] lcdexec: use tagPrefix=CONF_ --- clients/lcdexec/Makefile.am | 2 +- clients/lcdexec/lcdexec.c | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/clients/lcdexec/Makefile.am b/clients/lcdexec/Makefile.am index eb909a99..fa866e38 100644 --- a/clients/lcdexec/Makefile.am +++ b/clients/lcdexec/Makefile.am @@ -25,6 +25,6 @@ spec_DATA = lcdexec.spec.eqd KDB ?= kdb elektragen.c elektragen.h lcdexec.spec.eqd lcdexec.mount.sh: specification/lcdexec-spec.ini - $(KDB) gen -F ni=specification/lcdexec-spec.ini highlevel "spec/sw/lcdproc/lcdexec/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage embeddedSpec=defaults headers=menu.h; mv elektragen.mount.sh lcdexec.mount.sh; mv elektragen.spec.eqd lcdexec.spec.eqd + $(KDB) gen -F ni=specification/lcdexec-spec.ini highlevel "spec/sw/lcdproc/lcdexec/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage embeddedSpec=defaults headers=menu.h tagPrefix=CONF_; mv elektragen.mount.sh lcdexec.mount.sh; mv elektragen.spec.eqd lcdexec.spec.eqd ## EOF diff --git a/clients/lcdexec/lcdexec.c b/clients/lcdexec/lcdexec.c index 0f2d1791..df8f9e8e 100644 --- a/clients/lcdexec/lcdexec.c +++ b/clients/lcdexec/lcdexec.c @@ -230,18 +230,18 @@ static int process_config() elektraFatalErrorHandler(elektra, on_fatal_error); - address = strdup(elektraGet(elektra, ELEKTRA_TAG_LCDEXEC_ADDRESS)); - port = elektraGet(elektra, ELEKTRA_TAG_LCDEXEC_PORT); - report_level = elektraGet(elektra, ELEKTRA_TAG_LCDEXEC_REPORTLEVEL); - report_dest = elektraGet(elektra, ELEKTRA_TAG_LCDEXEC_REPORTTOSYSLOG) ? RPT_DEST_SYSLOG : RPT_DEST_STDERR; - foreground = elektraGet(elektra, ELEKTRA_TAG_LCDEXEC_FOREGROUND); - pidfile = strdup(elektraGet(elektra, ELEKTRA_TAG_LCDEXEC_PIDFILE)); + address = strdup(elektraGet(elektra, CONF_LCDEXEC_ADDRESS)); + port = elektraGet(elektra, CONF_LCDEXEC_PORT); + report_level = elektraGet(elektra, CONF_LCDEXEC_REPORTLEVEL); + report_dest = elektraGet(elektra, CONF_LCDEXEC_REPORTTOSYSLOG) ? RPT_DEST_SYSLOG : RPT_DEST_STDERR; + foreground = elektraGet(elektra, CONF_LCDEXEC_FOREGROUND); + pidfile = strdup(elektraGet(elektra, CONF_LCDEXEC_PIDFILE)); - displayname = strdup(elektraGet(elektra, ELEKTRA_TAG_LCDEXEC_DISPLAYNAME)); + displayname = strdup(elektraGet(elektra, CONF_LCDEXEC_DISPLAYNAME)); - default_shell = strdup(elektraGet(elektra, ELEKTRA_TAG_LCDEXEC_SHELL)); + default_shell = strdup(elektraGet(elektra, CONF_LCDEXEC_SHELL)); - main_menu = elektraGet(elektra, ELEKTRA_TAG_MENU_MAIN); + main_menu = elektraGet(elektra, CONF_MENU_MAIN); // fail on non-existent main menu; if (main_menu == NULL) { report(RPT_ERR, "no main menu found in configuration"); From 6aa793ee02caa6518a8b1d102dc1cab7d977b8cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Sat, 7 Sep 2019 15:03:03 +0200 Subject: [PATCH 58/72] lcdvc: use tagPrefix=CONF_ --- clients/lcdvc/Makefile.am | 2 +- clients/lcdvc/lcdvc.c | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/clients/lcdvc/Makefile.am b/clients/lcdvc/Makefile.am index a8604a85..53902249 100644 --- a/clients/lcdvc/Makefile.am +++ b/clients/lcdvc/Makefile.am @@ -31,7 +31,7 @@ spec_DATA = lcdvc.spec.eqd KDB ?= kdb elektragen.c elektragen.h lcdvc.spec.eqd lcdvc.mount.sh: specification/lcdvc-spec.ini - $(KDB) gen -F ni=specification/lcdvc-spec.ini highlevel "spec/sw/lcdproc/lcdvc/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage embeddedSpec=defaults helpFn=printHelpMessage; mv elektragen.mount.sh lcdvc.mount.sh; mv elektragen.spec.eqd lcdvc.spec.eqd + $(KDB) gen -F ni=specification/lcdvc-spec.ini highlevel "spec/sw/lcdproc/lcdvc/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage embeddedSpec=defaults tagPrefix=CONF_; mv elektragen.mount.sh lcdvc.mount.sh; mv elektragen.spec.eqd lcdvc.spec.eqd ## EOF diff --git a/clients/lcdvc/lcdvc.c b/clients/lcdvc/lcdvc.c index 2eb2fa63..802624bb 100644 --- a/clients/lcdvc/lcdvc.c +++ b/clients/lcdvc/lcdvc.c @@ -153,20 +153,20 @@ static int process_config() elektraFatalErrorHandler(elektra, on_fatal_error); - address = strdup(elektraGet(elektra, ELEKTRA_TAG_LCDVC_ADDRESS)); - port = elektraGet(elektra, ELEKTRA_TAG_LCDVC_PORT); - report_level = elektraGet(elektra, ELEKTRA_TAG_LCDVC_REPORTLEVEL); - report_dest = elektraGet(elektra, ELEKTRA_TAG_LCDVC_REPORTTOSYSLOG) ? RPT_DEST_SYSLOG : RPT_DEST_STDERR; - foreground = elektraGet(elektra, ELEKTRA_TAG_LCDVC_FOREGROUND); - pidfile = strdup(elektraGet(elektra, ELEKTRA_TAG_LCDVC_PIDFILE)); + address = strdup(elektraGet(elektra, CONF_LCDVC_ADDRESS)); + port = elektraGet(elektra, CONF_LCDVC_PORT); + report_level = elektraGet(elektra, CONF_LCDVC_REPORTLEVEL); + report_dest = elektraGet(elektra, CONF_LCDVC_REPORTTOSYSLOG) ? RPT_DEST_SYSLOG : RPT_DEST_STDERR; + foreground = elektraGet(elektra, CONF_LCDVC_FOREGROUND); + pidfile = strdup(elektraGet(elektra, CONF_LCDVC_PIDFILE)); - vcs_device = strdup(elektraGet(elektra, ELEKTRA_TAG_LCDVC_VCSDEVICE)); - vcsa_device = strdup(elektraGet(elektra, ELEKTRA_TAG_LCDVC_VCSADEVICE)); + vcs_device = strdup(elektraGet(elektra, CONF_LCDVC_VCSDEVICE)); + vcsa_device = strdup(elektraGet(elektra, CONF_LCDVC_VCSADEVICE)); - keys[0] = strdup(elektraGet(elektra, ELEKTRA_TAG_LCDVC_UPKEY)); - keys[1] = strdup(elektraGet(elektra, ELEKTRA_TAG_LCDVC_DOWNKEY)); - keys[2] = strdup(elektraGet(elektra, ELEKTRA_TAG_LCDVC_LEFTKEY)); - keys[3] = strdup(elektraGet(elektra, ELEKTRA_TAG_LCDVC_RIGHTKEY)); + keys[0] = strdup(elektraGet(elektra, CONF_LCDVC_UPKEY)); + keys[1] = strdup(elektraGet(elektra, CONF_LCDVC_DOWNKEY)); + keys[2] = strdup(elektraGet(elektra, CONF_LCDVC_LEFTKEY)); + keys[3] = strdup(elektraGet(elektra, CONF_LCDVC_RIGHTKEY)); elektraClose(elektra); From e19ce4d63c71a75ee887f9100939307577da6030 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Sat, 7 Sep 2019 15:05:45 +0200 Subject: [PATCH 59/72] lcdproc: use tagPrefix=CONF_ --- clients/lcdproc/Makefile.am | 2 +- clients/lcdproc/chrono.c | 14 +++++++------- clients/lcdproc/iface.c | 8 ++++---- clients/lcdproc/load.c | 4 ++-- clients/lcdproc/main.c | 20 ++++++++++---------- 5 files changed, 24 insertions(+), 24 deletions(-) diff --git a/clients/lcdproc/Makefile.am b/clients/lcdproc/Makefile.am index decaa7e5..b9184529 100644 --- a/clients/lcdproc/Makefile.am +++ b/clients/lcdproc/Makefile.am @@ -28,7 +28,7 @@ spec_DATA = lcdproc.spec.eqd KDB ?= kdb elektragen.c elektragen.h lcdproc.spec.eqd lcdproc.mount.sh: specification/lcdproc-spec.ini - $(KDB) gen -F ni=specification/lcdproc-spec.ini highlevel "spec/sw/lcdproc/lcdproc/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage embeddedSpec=defaults headers=screen_config.h; mv elektragen.mount.sh lcdproc.mount.sh; mv elektragen.spec.eqd lcdproc.spec.eqd + $(KDB) gen -F ni=specification/lcdproc-spec.ini highlevel "spec/sw/lcdproc/lcdproc/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage embeddedSpec=defaults headers=screen_config.h tagPrefix=CONF_; mv elektragen.mount.sh lcdproc.mount.sh; mv elektragen.spec.eqd lcdproc.spec.eqd ## EOF diff --git a/clients/lcdproc/chrono.c b/clients/lcdproc/chrono.c index f9da63ff..48e83f03 100644 --- a/clients/lcdproc/chrono.c +++ b/clients/lcdproc/chrono.c @@ -87,8 +87,8 @@ time_screen(int rep, int display, int *flags_ptr, Elektra * elektra) *flags_ptr |= INITIALIZED; /* get config values */ - timeFormat = elektraGet(elektra, ELEKTRA_TAG_TIMEDATE_TIMEFORMAT); - dateFormat = elektraGet(elektra, ELEKTRA_TAG_TIMEDATE_DATEFORMAT); + timeFormat = elektraGet(elektra, CONF_TIMEDATE_TIMEFORMAT); + dateFormat = elektraGet(elektra, CONF_TIMEDATE_DATEFORMAT); sock_send_string(sock, "screen_add T\n"); sock_printf(sock, "screen_set T -name {Time Screen: %s}\n", get_hostname()); @@ -210,9 +210,9 @@ clock_screen(int rep, int display, int *flags_ptr, Elektra * elektra) *flags_ptr |= INITIALIZED; /* get config values */ - timeFormat = elektraGet(elektra, ELEKTRA_TAG_OLDTIME_TIMEFORMAT); - dateFormat = elektraGet(elektra, ELEKTRA_TAG_OLDTIME_DATEFORMAT); - showTitle = elektraGet(elektra, ELEKTRA_TAG_OLDTIME_SHOWTITLE); + timeFormat = elektraGet(elektra, CONF_OLDTIME_TIMEFORMAT); + dateFormat = elektraGet(elektra, CONF_OLDTIME_DATEFORMAT); + showTitle = elektraGet(elektra, CONF_OLDTIME_SHOWTITLE); sock_send_string(sock, "screen_add O\n"); sock_printf(sock, "screen_set O -name {Old Clock Screen: %s}\n", get_hostname()); @@ -410,7 +410,7 @@ big_clock_screen(int rep, int display, int *flags_ptr, Elektra * elektra) int digits = (lcd_wid >= 20) ? 6 : 4; int xoffs = 0; - int showSecs = elektraGet(elektra, ELEKTRA_TAG_BIGCLOCK_SHOWSECS); + int showSecs = elektraGet(elektra, CONF_BIGCLOCK_SHOWSECS); if (!showSecs) { digits = 4; } @@ -505,7 +505,7 @@ mini_clock_screen(int rep, int display, int *flags_ptr, Elektra * elektra) *flags_ptr |= INITIALIZED; /* get config values */ - timeFormat = elektraGet(elektra, ELEKTRA_TAG_MINICLOCK_TIMEFORMAT); + timeFormat = elektraGet(elektra, CONF_MINICLOCK_TIMEFORMAT); sock_send_string(sock, "screen_add N\n"); sock_send_string(sock, "screen_set N -name {Mini Clock Screen} -heartbeat off\n"); diff --git a/clients/lcdproc/iface.c b/clients/lcdproc/iface.c index 3ba1c368..0b71f33b 100644 --- a/clients/lcdproc/iface.c +++ b/clients/lcdproc/iface.c @@ -68,10 +68,10 @@ iface_process_config(Elektra * elektra) sprintf(iface_label, "Interface%i", iface_count); debug(RPT_DEBUG, "Label %s count %i", iface_label, iface_count); - iface[iface_count].name = strdup(elektraGetV(elektra, ELEKTRA_TAG_IFACE_INTERFACE_NAME, iface_count)); + iface[iface_count].name = strdup(elektraGetV(elektra, CONF_IFACE_INTERFACE_NAME, iface_count)); sprintf(iface_label, "Alias%i", iface_count); - iface[iface_count].alias = strdup(elektraGetV(elektra, ELEKTRA_TAG_IFACE_INTERFACE_ALIAS, iface_count)); + iface[iface_count].alias = strdup(elektraGetV(elektra, CONF_IFACE_INTERFACE_ALIAS, iface_count)); if (strlen(iface[iface_count].alias) == 0) iface[iface_count].alias = iface[iface_count].name; @@ -79,8 +79,8 @@ iface_process_config(Elektra * elektra) iface_count, iface[iface_count].name, iface[iface_count].alias); } - unit = elektraGet(elektra, ELEKTRA_TAG_IFACE_UNIT); - transfer_screen = elektraGet(elektra, ELEKTRA_TAG_IFACE_TRANSFER); + unit = elektraGet(elektra, CONF_IFACE_UNIT); + transfer_screen = elektraGet(elektra, CONF_IFACE_TRANSFER); return 0; } diff --git a/clients/lcdproc/load.c b/clients/lcdproc/load.c index 06dde039..6e821c0d 100644 --- a/clients/lcdproc/load.c +++ b/clients/lcdproc/load.c @@ -62,8 +62,8 @@ xload_screen(int rep, int display, int *flags_ptr, Elektra * elektra) *flags_ptr |= INITIALIZED; /* get config values */ - lowLoad = elektraGet(elektra, ELEKTRA_TAG_LOAD_LOWLOAD); - highLoad = elektraGet(elektra, ELEKTRA_TAG_LOAD_HIGHLOAD); + lowLoad = elektraGet(elektra, CONF_LOAD_LOWLOAD); + highLoad = elektraGet(elektra, CONF_LOAD_HIGHLOAD); gauge_hgt = (lcd_hgt > 2) ? (lcd_hgt - 1) : lcd_hgt; memset(loads, '\0', sizeof(double) * LCD_MAX_WIDTH); diff --git a/clients/lcdproc/main.c b/clients/lcdproc/main.c index 1aec9fb6..4013ed82 100644 --- a/clients/lcdproc/main.c +++ b/clients/lcdproc/main.c @@ -340,14 +340,14 @@ process_config() elektraFatalErrorHandler(elektra, on_fatal_error); - server = strdup(elektraGet(elektra, ELEKTRA_TAG_LCDPROC_SERVER)); - port = elektraGet(elektra, ELEKTRA_TAG_LCDPROC_PORT); - report_level = elektraGet(elektra, ELEKTRA_TAG_LCDPROC_REPORTLEVEL); - report_dest = elektraGet(elektra, ELEKTRA_TAG_LCDPROC_REPORTTOSYSLOG) ? RPT_DEST_SYSLOG : RPT_DEST_STDERR; - foreground = elektraGet(elektra, ELEKTRA_TAG_LCDPROC_FOREGROUND); - pidfile = strdup(elektraGet(elektra, ELEKTRA_TAG_LCDPROC_PIDFILE)); - islow = elektraGet(elektra, ELEKTRA_TAG_LCDPROC_DELAY); - displayname = strdup(elektraGet(elektra, ELEKTRA_TAG_LCDPROC_DISPLAYNAME)); + server = strdup(elektraGet(elektra, CONF_LCDPROC_SERVER)); + port = elektraGet(elektra, CONF_LCDPROC_PORT); + report_level = elektraGet(elektra, CONF_LCDPROC_REPORTLEVEL); + report_dest = elektraGet(elektra, CONF_LCDPROC_REPORTTOSYSLOG) ? RPT_DEST_SYSLOG : RPT_DEST_STDERR; + foreground = elektraGet(elektra, CONF_LCDPROC_FOREGROUND); + pidfile = strdup(elektraGet(elektra, CONF_LCDPROC_PIDFILE)); + islow = elektraGet(elektra, CONF_LCDPROC_DELAY); + displayname = strdup(elektraGet(elektra, CONF_LCDPROC_DISPLAYNAME)); /* * check for config file variables to override all the sequence @@ -367,7 +367,7 @@ process_config() } /* read enabled screens, if defined */ - kdb_long_long_t screen_count = elektraSize(elektra, ELEKTRA_TAG_LCDPROC_SCREENS); + kdb_long_long_t screen_count = elektraSize(elektra, CONF_LCDPROC_SCREENS); if(screen_count > 0) { /* unset defaults */ @@ -375,7 +375,7 @@ process_config() for (kdb_long_long_t i = 0; i < screen_count; ++i) { - LcdprocScreen screen = elektraGetV(elektra, ELEKTRA_TAG_LCDPROC_SCREENS, i); + LcdprocScreen screen = elektraGetV(elektra, CONF_LCDPROC_SCREENS, i); set_mode(screen, 1); } } From d91d1d55e646c7895a3deba1d9ded5f0c03d3708 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Sat, 7 Sep 2019 15:09:26 +0200 Subject: [PATCH 60/72] server: use tagPrefix=CONF_ --- server/Makefile.am | 2 +- server/driver.c | 2 +- server/drivers.c | 2 +- server/drivers/CFontz.c | 2 +- server/drivers/CFontzPacket.c | 2 +- server/drivers/CwLnx.c | 2 +- server/drivers/MtxOrb.c | 2 +- server/drivers/bayrad.c | 2 +- server/drivers/curses_drv.c | 2 +- server/drivers/glk.c | 2 +- server/drivers/hd44780.c | 10 +++++----- server/drivers/lb216.c | 2 +- server/drivers/lcdm001.c | 2 +- server/drivers/linux_input.c | 8 ++++---- server/drivers/pylcd.c | 2 +- server/drivers/text.c | 2 +- server/drivers/xosdlib_drv.c | 2 +- server/input.c | 10 +++++----- server/main.c | 28 ++++++++++++++-------------- server/menuscreens.c | 14 +++++++------- server/serverscreens.c | 8 ++++---- 21 files changed, 54 insertions(+), 54 deletions(-) diff --git a/server/Makefile.am b/server/Makefile.am index 49c56ad0..278db7f9 100644 --- a/server/Makefile.am +++ b/server/Makefile.am @@ -27,6 +27,6 @@ spec_DATA = LCDd.spec.eqd KDB ?= kdb elektragen.c elektragen.h LCDd.spec.eqd LCDd.mount.sh: specification/LCDd-spec.ini - $(KDB) gen -F ni=specification/LCDd-spec.ini highlevel "spec/sw/lcdproc/lcdd/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage embeddedSpec=defaults; mv elektragen.mount.sh LCDd.mount.sh; mv elektragen.spec.eqd LCDd.spec.eqd + $(KDB) gen -F ni=specification/LCDd-spec.ini highlevel "spec/sw/lcdproc/lcdd/#0/current" elektragen initFn=loadConfiguration helpFn=printHelpMessage embeddedSpec=defaults tagPrefix=CONF_; mv elektragen.mount.sh LCDd.mount.sh; mv elektragen.spec.eqd LCDd.spec.eqd ## EOF diff --git a/server/driver.c b/server/driver.c index da99a451..1315c80c 100644 --- a/server/driver.c +++ b/server/driver.c @@ -141,7 +141,7 @@ driver_load(Elektra * elektra, const char * driverpath, kdb_long_long_t index) strcpy(&filename[len_driverpath + len_file], MODULE_EXTENSION); /* extract name for passing to driver */ - const char * reference = elektraGetV(elektra, ELEKTRA_TAG_SERVER_DRIVERS, index); + const char * reference = elektraGetV(elektra, CONF_SERVER_DRIVERS, index); const char * index_start = strrchr(reference, '#') - 1; const char * name_start = index_start - 1; while (*name_start != '/') { diff --git a/server/drivers.c b/server/drivers.c index 7ad61684..e8271371 100644 --- a/server/drivers.c +++ b/server/drivers.c @@ -65,7 +65,7 @@ drivers_load_driver(Elektra * elektra, kdb_long_long_t index) } /* Retrieve data from config file */ - const char * driverpath = elektraGet(elektra, ELEKTRA_TAG_SERVER_DRIVERPATH); + const char * driverpath = elektraGet(elektra, CONF_SERVER_DRIVERPATH); /* Load the module */ driver = driver_load(elektra, driverpath, index); diff --git a/server/drivers/CFontz.c b/server/drivers/CFontz.c index d42f786b..16a3a062 100644 --- a/server/drivers/CFontz.c +++ b/server/drivers/CFontz.c @@ -127,7 +127,7 @@ CFontz_init(Driver *drvthis, Elektra * elektra) /* Read config */ CFontzDriverConfig config; - elektraFillStructV (elektra, &config, ELEKTRA_TAG_CFONTZ, drvthis->index); + elektraFillStructV (elektra, &config, CONF_CFONTZ, drvthis->index); /* Which device should be used */ report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": using Device %s", drvthis->name, drvthis->index, config.device); diff --git a/server/drivers/CFontzPacket.c b/server/drivers/CFontzPacket.c index 9724f13b..eb248919 100644 --- a/server/drivers/CFontzPacket.c +++ b/server/drivers/CFontzPacket.c @@ -150,7 +150,7 @@ CFontzPacket_init (Driver *drvthis, Elektra * elektra) /* Read config */ CFontzPacketDriverConfig config; - elektraFillStructV(elektra, &config, ELEKTRA_TAG_CFONTZPACKET, drvthis->index); + elektraFillStructV(elektra, &config, CONF_CFONTZPACKET, drvthis->index); /* Try to find a matching model from our list of known modules */ debug(RPT_INFO, "%s: Model (in config) is '%d'", __FUNCTION__, config.model); diff --git a/server/drivers/CwLnx.c b/server/drivers/CwLnx.c index e961a1f4..651cc63d 100644 --- a/server/drivers/CwLnx.c +++ b/server/drivers/CwLnx.c @@ -474,7 +474,7 @@ CwLnx_init(Driver *drvthis, Elektra * elektra) /* Read config */ CwLnxDriverConfig config; - elektraFillStructV(elektra, &config, ELEKTRA_TAG_CWLNX, drvthis->index); + elektraFillStructV(elektra, &config, CONF_CWLNX, drvthis->index); /* Which model is it (1602, 12232 or 12832)? */ p->model = config.model; diff --git a/server/drivers/MtxOrb.c b/server/drivers/MtxOrb.c index 1a7cb335..c536be54 100644 --- a/server/drivers/MtxOrb.c +++ b/server/drivers/MtxOrb.c @@ -261,7 +261,7 @@ MtxOrb_init (Driver *drvthis, Elektra *elektra) /* READ CONFIG FILE */ MtxOrbDriverConfig config; - elektraFillStructV(elektra, &config, ELEKTRA_TAG_MTXORB, drvthis->index); + elektraFillStructV(elektra, &config, CONF_MTXORB, drvthis->index); /* Get serial device to use */ report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": using Device %s", drvthis->name, drvthis->index, config.device); diff --git a/server/drivers/bayrad.c b/server/drivers/bayrad.c index 0468583c..4cc079e9 100644 --- a/server/drivers/bayrad.c +++ b/server/drivers/bayrad.c @@ -97,7 +97,7 @@ bayrad_init(Driver *drvthis, Elektra * elektra) /* Read config */ BayradDriverConfig config; - elektraFillStructV (elektra, &config, ELEKTRA_TAG_BAYRAD, drvthis->index); + elektraFillStructV (elektra, &config, CONF_BAYRAD, drvthis->index); /* What device should be used */ report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": using Device %s", drvthis->name, drvthis->index, config.device); diff --git a/server/drivers/curses_drv.c b/server/drivers/curses_drv.c index cb9e07eb..bb1a30b4 100644 --- a/server/drivers/curses_drv.c +++ b/server/drivers/curses_drv.c @@ -179,7 +179,7 @@ curses_init (Driver *drvthis, Elektra * elektra) /* Get settings from config */ CursesDriverConfig config; - elektraFillStructV(elektra, &config, ELEKTRA_TAG_CURSES, drvthis->index); + elektraFillStructV(elektra, &config, CONF_CURSES, drvthis->index); /* Get color settings */ diff --git a/server/drivers/glk.c b/server/drivers/glk.c index 03ad323a..d4be8400 100644 --- a/server/drivers/glk.c +++ b/server/drivers/glk.c @@ -118,7 +118,7 @@ glk_init(Driver *drvthis, Elektra * elektra) /* Read config */ GlkDriverConfig config; - elektraFillStructV(elektra, &config, ELEKTRA_TAG_GLK, drvthis->index); + elektraFillStructV(elektra, &config, CONF_GLK, drvthis->index); /* What device should be used */ report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": using Device %s", drvthis->name, drvthis->index, config.device); diff --git a/server/drivers/hd44780.c b/server/drivers/hd44780.c index e50d7b31..79628def 100644 --- a/server/drivers/hd44780.c +++ b/server/drivers/hd44780.c @@ -193,10 +193,10 @@ static int get_config_backlight_type(Driver *drvthis, const Hd44780DriverConfig } int result = BACKLIGHT_NONE; - kdb_long_long_t size = elektraSizeV(elektra, ELEKTRA_TAG_HD44780_BACKLIGHTMODE, drvthis->index); + kdb_long_long_t size = elektraSizeV(elektra, CONF_HD44780_BACKLIGHTMODE, drvthis->index); for (kdb_long_long_t i = 0; i < size; ++i) { - ElektraEnumHd44780Backlightmode elektraMode = elektraGetV(elektra, ELEKTRA_TAG_HD44780_BACKLIGHTMODE, drvthis->index, i); + ElektraEnumHd44780Backlightmode elektraMode = elektraGetV(elektra, CONF_HD44780_BACKLIGHTMODE, drvthis->index, i); int mode = map_backlight_mode(elektraMode); if (mode < 0) { report(RPT_ERR, "%s ("ELEKTRA_LONG_LONG_F"): unknown Backlight mode: %d", drvthis->name, drvthis->index, elektraMode); @@ -299,7 +299,7 @@ HD44780_init(Driver *drvthis, Elektra * elektra) /* READ THE CONFIG */ Hd44780DriverConfig config; - elektraFillStructV(elektra, &config, ELEKTRA_TAG_HD44780, drvthis->index); + elektraFillStructV(elektra, &config, CONF_HD44780, drvthis->index); // TODO (elektra): use hexnumber? p->port = (unsigned int)strtoul(config.port, NULL, 16); /* works because, spec enforces hex string */ @@ -449,7 +449,7 @@ HD44780_init(Driver *drvthis, Elektra * elektra) /* Read keymap */ for (x = 0; x < KEYPAD_MAXX; x++) { - const char * key = elektraGetV(elektra, ELEKTRA_TAG_HD44780_KEYDIRECT, drvthis->index, x); + const char * key = elektraGetV(elektra, CONF_HD44780_KEYDIRECT, drvthis->index, x); /* Was a key specified in the config file ? */ if (strlen(key) == 0) { @@ -461,7 +461,7 @@ HD44780_init(Driver *drvthis, Elektra * elektra) p->keyMapDirect[x] = strdup(key); for (y = 0; y < KEYPAD_MAXY; y++) { - key = elektraGetV(elektra, ELEKTRA_TAG_HD44780_KEYMATRIX, drvthis->index, x, y); + key = elektraGetV(elektra, CONF_HD44780_KEYMATRIX, drvthis->index, x, y); /* Was a key specified in the config file ? */ if (strlen(key) == 0) { diff --git a/server/drivers/lb216.c b/server/drivers/lb216.c index d54e0df6..ab1a86ed 100644 --- a/server/drivers/lb216.c +++ b/server/drivers/lb216.c @@ -95,7 +95,7 @@ LB216_init(Driver *drvthis, Elektra * elektra) /* Read config */ Lb216DriverConfig config; - elektraFillStructV(elektra, &config, ELEKTRA_TAG_LB216, drvthis->index); + elektraFillStructV(elektra, &config, CONF_LB216, drvthis->index); /* What device should be used */ report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": using Device %s", drvthis->name, drvthis->index, config.device); diff --git a/server/drivers/lcdm001.c b/server/drivers/lcdm001.c index b7a892b9..46124e20 100644 --- a/server/drivers/lcdm001.c +++ b/server/drivers/lcdm001.c @@ -161,7 +161,7 @@ lcdm001_init (Driver *drvthis, Elektra * elektra) /* READ CONFIG FILE: */ Lcdm001DriverConfig config; - elektraFillStructV(elektra, &config, ELEKTRA_TAG_LCDM001, drvthis->index); + elektraFillStructV(elektra, &config, CONF_LCDM001, drvthis->index); /* which serial device should be used */ report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": using Device %s", drvthis->name, drvthis->index, config.device); diff --git a/server/drivers/linux_input.c b/server/drivers/linux_input.c index f010ea56..a3d6c666 100644 --- a/server/drivers/linux_input.c +++ b/server/drivers/linux_input.c @@ -75,7 +75,7 @@ linuxInput_init (Driver *drvthis, Elektra * elektra) /* not using struct, since it is inconvenient for keymap */ /* What device should be used */ - const char * device = elektraGetV(elektra, ELEKTRA_TAG_LINUX_INPUT_DEVICE, drvthis->index); + const char * device = elektraGetV(elektra, CONF_LINUX_INPUT_DEVICE, drvthis->index); report(RPT_INFO, "%s: using Device %s", drvthis->name, device); @@ -85,12 +85,12 @@ linuxInput_init (Driver *drvthis, Elektra * elektra) return -1; } - kdb_long_long_t size = elektraSizeV(elektra, ELEKTRA_TAG_LINUX_INPUT_KEYS, drvthis->index); + kdb_long_long_t size = elektraSizeV(elektra, CONF_LINUX_INPUT_KEYS, drvthis->index); for (kdb_long_long_t i = 0; i < size; ++i) { struct keycode * key = malloc(sizeof(struct keycode)); - key->code = elektraGetV(elektra, ELEKTRA_TAG_LINUX_INPUT_KEYS_CODE, drvthis->index, i); - key->button = strdup(elektraGetV(elektra, ELEKTRA_TAG_LINUX_INPUT_KEYS_BUTTON, drvthis->index, i)); + key->code = elektraGetV(elektra, CONF_LINUX_INPUT_KEYS_CODE, drvthis->index, i); + key->button = strdup(elektraGetV(elektra, CONF_LINUX_INPUT_KEYS_BUTTON, drvthis->index, i)); LL_AddNode(p->buttonmap, key); } diff --git a/server/drivers/pylcd.c b/server/drivers/pylcd.c index 91661b7d..e894b3e6 100644 --- a/server/drivers/pylcd.c +++ b/server/drivers/pylcd.c @@ -327,7 +327,7 @@ pyramid_init(Driver *drvthis, Elektra * elektra) */ PyramidDriverConfig config; - elektraFillStructV(elektra, &config, ELEKTRA_TAG_PYRAMID, drvthis->index); + elektraFillStructV(elektra, &config, CONF_PYRAMID, drvthis->index); /* Which serial device should be used? */ report(RPT_INFO, "%s/#"ELEKTRA_LONG_LONG_F": using Device %s", drvthis->name, drvthis->index, config.device); diff --git a/server/drivers/text.c b/server/drivers/text.c index 26850aac..3fe3b98d 100644 --- a/server/drivers/text.c +++ b/server/drivers/text.c @@ -71,7 +71,7 @@ text_init (Driver *drvthis, Elektra * elektra) /* initialize private data */ TextDriverConfig config; - elektraFillStructV(elektra, &config, ELEKTRA_TAG_TEXT, drvthis->index); + elektraFillStructV(elektra, &config, CONF_TEXT, drvthis->index); // Set display sizes if ((drvthis->request_display_width() > 0) diff --git a/server/drivers/xosdlib_drv.c b/server/drivers/xosdlib_drv.c index fc9f99bf..771c9cde 100644 --- a/server/drivers/xosdlib_drv.c +++ b/server/drivers/xosdlib_drv.c @@ -82,7 +82,7 @@ xosdlib_drv_init (Driver *drvthis, Elektra * elektra) /* Read config */ XosdDriverConfig config; - elektraFillStructV(elektra, &config, ELEKTRA_TAG_XOSD, drvthis->index); + elektraFillStructV(elektra, &config, CONF_XOSD, drvthis->index); /* Which size */ if ((drvthis->request_display_width() > 0) diff --git a/server/input.c b/server/input.c index d207659d..846e3e3b 100644 --- a/server/input.c +++ b/server/input.c @@ -51,11 +51,11 @@ int input_init(Elektra * elektra) keylist = LL_new(); /* Get rotate/scroll keys from config file */ - toggle_rotate_key = strdup(elektraGet(elektra, ELEKTRA_TAG_SERVER_TOGGLEROTATEKEY)); - prev_screen_key = strdup(elektraGet(elektra, ELEKTRA_TAG_SERVER_PREVSCREENKEY)); - next_screen_key = strdup(elektraGet(elektra, ELEKTRA_TAG_SERVER_NEXTSCREENKEY)); - scroll_up_key = strdup(elektraGet(elektra, ELEKTRA_TAG_SERVER_SCROLLUPKEY)); - scroll_down_key = strdup(elektraGet(elektra, ELEKTRA_TAG_SERVER_SCROLLDOWNKEY)); + toggle_rotate_key = strdup(elektraGet(elektra, CONF_SERVER_TOGGLEROTATEKEY)); + prev_screen_key = strdup(elektraGet(elektra, CONF_SERVER_PREVSCREENKEY)); + next_screen_key = strdup(elektraGet(elektra, CONF_SERVER_NEXTSCREENKEY)); + scroll_up_key = strdup(elektraGet(elektra, CONF_SERVER_SCROLLUPKEY)); + scroll_down_key = strdup(elektraGet(elektra, CONF_SERVER_SCROLLDOWNKEY)); return 0; } diff --git a/server/main.c b/server/main.c index 4b3c6a34..780e43c3 100644 --- a/server/main.c +++ b/server/main.c @@ -306,27 +306,27 @@ process_config() elektraFatalErrorHandler(elektra, on_fatal_error); - bind_port = elektraGet(elektra, ELEKTRA_TAG_SERVER_PORT); - strncpy(bind_addr, elektraGet(elektra, ELEKTRA_TAG_SERVER_BIND), sizeof(bind_addr)); - strncpy(user, elektraGet(elektra, ELEKTRA_TAG_SERVER_USER), sizeof(user)); + bind_port = elektraGet(elektra, CONF_SERVER_PORT); + strncpy(bind_addr, elektraGet(elektra, CONF_SERVER_BIND), sizeof(bind_addr)); + strncpy(user, elektraGet(elektra, CONF_SERVER_USER), sizeof(user)); - frame_interval = elektraGet(elektra, ELEKTRA_TAG_SERVER_FRAMEINTERVAL); - default_duration = elektraGet(elektra, ELEKTRA_TAG_SERVER_WAITTIME) * 1e6 / frame_interval; + frame_interval = elektraGet(elektra, CONF_SERVER_FRAMEINTERVAL); + default_duration = elektraGet(elektra, CONF_SERVER_WAITTIME) * 1e6 / frame_interval; if (default_duration * frame_interval < 2e6) { report(RPT_WARNING, "Waittime should be at least 2 (seconds). Set to 2 seconds."); default_duration = 2e6 / frame_interval; } - foreground_mode = elektraGet(elektra, ELEKTRA_TAG_SERVER_FOREGROUND); - rotate_server_screen = elektraGet(elektra, ELEKTRA_TAG_SERVER_SERVERSCREEN); - backlight = elektraGet(elektra, ELEKTRA_TAG_SERVER_BACKLIGHT); - heartbeat = elektraGet(elektra, ELEKTRA_TAG_SERVER_HEARTBEAT); - autorotate = elektraGet(elektra, ELEKTRA_TAG_SERVER_AUTOROTATE); + foreground_mode = elektraGet(elektra, CONF_SERVER_FOREGROUND); + rotate_server_screen = elektraGet(elektra, CONF_SERVER_SERVERSCREEN); + backlight = elektraGet(elektra, CONF_SERVER_BACKLIGHT); + heartbeat = elektraGet(elektra, CONF_SERVER_HEARTBEAT); + autorotate = elektraGet(elektra, CONF_SERVER_AUTOROTATE); - titlespeed = elektraGet(elektra, ELEKTRA_TAG_SERVER_TITLESPEED); - report_dest = (elektraGet(elektra, ELEKTRA_TAG_SERVER_REPORTTOSYSLOG)) ? RPT_DEST_SYSLOG : RPT_DEST_STDERR; + titlespeed = elektraGet(elektra, CONF_SERVER_TITLESPEED); + report_dest = (elektraGet(elektra, CONF_SERVER_REPORTTOSYSLOG)) ? RPT_DEST_SYSLOG : RPT_DEST_STDERR; - report_level = elektraGet(elektra, ELEKTRA_TAG_SERVER_REPORTLEVEL); + report_level = elektraGet(elektra, CONF_SERVER_REPORTLEVEL); return 0; } @@ -458,7 +458,7 @@ init_drivers(void) debug(RPT_DEBUG, "%s()", __FUNCTION__); /* Read drivers */ - num_drivers = elektraSize(elektra, ELEKTRA_TAG_SERVER_DRIVERS); + num_drivers = elektraSize(elektra, CONF_SERVER_DRIVERS); for (kdb_long_long_t i = 0; i < num_drivers; ++i) { if(i > MAX_DRIVERS) { diff --git a/server/menuscreens.c b/server/menuscreens.c index 12026509..ec217547 100644 --- a/server/menuscreens.c +++ b/server/menuscreens.c @@ -85,7 +85,7 @@ menuscreens_init(Elektra * elektra) debug(RPT_DEBUG, "%s()", __FUNCTION__); - menu_permissive_goto = elektraGet(elektra, ELEKTRA_TAG_MENU_PERMISSIVEGOTO); + menu_permissive_goto = elektraGet(elektra, CONF_MENU_PERMISSIVEGOTO); /* * Get keys from config file: MenuKey, EnterKey, UpKey, DownKey, @@ -94,36 +94,36 @@ menuscreens_init(Elektra * elektra) */ keymask = 0; menu_key = enter_key = NULL; - tmp = elektraGet(elektra, ELEKTRA_TAG_MENU_MENUKEY); + tmp = elektraGet(elektra, CONF_MENU_MENUKEY); if (strlen(tmp) > 0) { menu_key = strdup(tmp); keymask |= MENUTOKEN_MENU; } - tmp = elektraGet(elektra, ELEKTRA_TAG_MENU_ENTERKEY); + tmp = elektraGet(elektra, CONF_MENU_ENTERKEY); if (strlen(tmp) > 0) { enter_key = strdup(tmp); keymask |= MENUTOKEN_ENTER; } up_key = down_key = NULL; - tmp = elektraGet(elektra, ELEKTRA_TAG_MENU_UPKEY); + tmp = elektraGet(elektra, CONF_MENU_UPKEY); if (strlen(tmp) > 0) { up_key = strdup(tmp); keymask |= MENUTOKEN_UP; } - tmp = elektraGet(elektra, ELEKTRA_TAG_MENU_DOWNKEY); + tmp = elektraGet(elektra, CONF_MENU_DOWNKEY); if (strlen(tmp) > 0) { down_key = strdup(tmp); keymask |= MENUTOKEN_DOWN; } left_key = right_key = NULL; - tmp = elektraGet(elektra, ELEKTRA_TAG_MENU_LEFTKEY); + tmp = elektraGet(elektra, CONF_MENU_LEFTKEY); if (strlen(tmp) > 0) { left_key = strdup(tmp); keymask |= MENUTOKEN_LEFT; } - tmp = elektraGet(elektra, ELEKTRA_TAG_MENU_RIGHTKEY); + tmp = elektraGet(elektra, CONF_MENU_RIGHTKEY); if (strlen(tmp) > 0) { right_key = strdup(tmp); keymask |= MENUTOKEN_RIGHT; diff --git a/server/serverscreens.c b/server/serverscreens.c index b4cfdef6..91b56028 100644 --- a/server/serverscreens.c +++ b/server/serverscreens.c @@ -64,7 +64,7 @@ server_screen_init(Elektra * elektra) Widget *w; int i; - kdb_long_long_t helloArraySize = elektraSize(elektra, ELEKTRA_TAG_SERVER_GOODBYE); + kdb_long_long_t helloArraySize = elektraSize(elektra, CONF_SERVER_GOODBYE); has_hello_msg = helloArraySize > 0; debug(RPT_DEBUG, "%s()", __FUNCTION__); @@ -100,7 +100,7 @@ server_screen_init(Elektra * elektra) /* set the widgets depending on the Hello option in LCDd.conf */ if (has_hello_msg) { /* show whole Hello message */ for (kdb_long_long_t i = 0; i < display_props->height && i < helloArraySize; i++) { - const char *line = elektraGetV(elektra, ELEKTRA_TAG_SERVER_HELLO, i); + const char *line = elektraGetV(elektra, CONF_SERVER_HELLO, i); char id[30]; sprintf(id, "line"ELEKTRA_LONG_LONG_F, i+1); @@ -218,11 +218,11 @@ goodbye_screen(Elektra * elektra) drivers_clear(); - kdb_long_long_t arraySize = elektraSize(elektra, ELEKTRA_TAG_SERVER_GOODBYE); + kdb_long_long_t arraySize = elektraSize(elektra, CONF_SERVER_GOODBYE); if (arraySize > 0) { /* custom GoodBye */ /* loop over all display lines to read config & display message */ for (kdb_long_long_t i = 0; i < display_props->height && i < arraySize; i++) { - const char *line = elektraGetV(elektra, ELEKTRA_TAG_SERVER_GOODBYE, i); + const char *line = elektraGetV(elektra, CONF_SERVER_GOODBYE, i); drivers_string(1, 1+i, line); } From 58cd8d13df59227b125681f08514f0e775e933d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Mon, 9 Sep 2019 17:16:41 +0200 Subject: [PATCH 61/72] clients: exit immediately after help message fixes ElektraInitiative/lcdproc#9 --- clients/lcdexec/lcdexec.c | 2 +- clients/lcdproc/main.c | 8 +++++--- clients/lcdvc/lcdvc.c | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/clients/lcdexec/lcdexec.c b/clients/lcdexec/lcdexec.c index df8f9e8e..8589d0bf 100644 --- a/clients/lcdexec/lcdexec.c +++ b/clients/lcdexec/lcdexec.c @@ -225,7 +225,7 @@ static int process_config() // help mode printHelpMessage(elektra, NULL, help_prefix); elektraClose (elektra); - return 0; + exit(EXIT_SUCCESS); } elektraFatalErrorHandler(elektra, on_fatal_error); diff --git a/clients/lcdproc/main.c b/clients/lcdproc/main.c index 4013ed82..fae23971 100644 --- a/clients/lcdproc/main.c +++ b/clients/lcdproc/main.c @@ -312,8 +312,10 @@ static void on_fatal_error(ElektraError * error) // TODO: finalize method } /** - * Reads and parses configuration file. - * \param configfile The configfile to read or NULL for the default config. + * Loads the configuration from the KDB. + * + * If Elektra reports help mode, we print the help message and call exit(EXIT_SUCCESS); + * * \retval 0 on success * \retval !=0 on error */ @@ -335,7 +337,7 @@ process_config() // help mode printHelpMessage(elektra, NULL, help_prefix); elektraClose (elektra); - return 0; + exit(EXIT_SUCCESS); } elektraFatalErrorHandler(elektra, on_fatal_error); diff --git a/clients/lcdvc/lcdvc.c b/clients/lcdvc/lcdvc.c index 802624bb..6f31e67d 100644 --- a/clients/lcdvc/lcdvc.c +++ b/clients/lcdvc/lcdvc.c @@ -148,7 +148,7 @@ static int process_config() // help mode printHelpMessage(elektra, NULL, help_prefix); elektraClose (elektra); - return EXIT_SUCCESS; + exit(EXIT_SUCCESS); } elektraFatalErrorHandler(elektra, on_fatal_error); From 50f2430984caa3ae07ac7813baf6ab053701e230 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Tue, 10 Sep 2019 02:16:52 +0200 Subject: [PATCH 62/72] lcdexec: add setup script for creating menus --- clients/lcdexec/lcdexec-setup | 767 ++++++++++++++++++++++++++++++++++ 1 file changed, 767 insertions(+) create mode 100755 clients/lcdexec/lcdexec-setup diff --git a/clients/lcdexec/lcdexec-setup b/clients/lcdexec/lcdexec-setup new file mode 100755 index 00000000..36998099 --- /dev/null +++ b/clients/lcdexec/lcdexec-setup @@ -0,0 +1,767 @@ +#!/bin/sh + +usage() { + echo "lcdexec-setup [...]" >&2 + echo "" >&2 + echo "" >&2 + echo " menu - to create a new menu" >&2 + echo " command - to create a new command" >&2 + echo " param - to create a new parameter" >&2 + echo " help - to display more help" >&2 + echo "[...]" >&2 + echo " Use 'lcdexec-setup help ' to show available values." >&2 + echo " For paramters 'lcdexec-setup help param ' shows even more info." >&2 +} + +usage_menu() { + echo "lcdexec-setup menu [...]" >&2 + echo "" >&2 + echo " The display name for the menu." >&2 + echo "" >&2 + echo " Each is either a reference to a command or a menu." >&2 + echo " Command entries are of the form 'command/#', menu entries 'menu/#'." >&2 +} + +usage_command() { + echo "lcdexec-setup command [-d ] [-f] [...]" >&2 + echo "" >&2 + echo " What the command should do." >&2 + echo "-d The display name for the command." >&2 + echo "-f What the command should do." >&2 + echo "" >&2 + echo " Each is a reference to a parameter." >&2 + echo " All references must be of the form '/#'," >&2 + echo " where is one of the parameter types:" >&2 + echo " alpha, checkbox, ip, numeric, ring, slider" >&2 +} + +usage_param() { + echo "lcdexec-setup param [-d ] [...]" >&2 + echo "" >&2 + echo " One of: alpha, checkbox, ip, numeric, ring, slider" >&2 + echo " The environment variable the parameter uses." >&2 + echo "-d The display name for the parameter." >&2 + echo "[...]" >&2 + echo " Depends on " >&2 + echo " For more info use 'lcdexec-setup help param '" >&2 + echo " where is one of: alpha, checkbox, ip, numeric, ring, slider" >&2 +} + +usage_param_alpha() { + echo "lcdexec-setup param alpha [-d ] [-i ] [-a ] [-m ] [-M ]" >&2 + echo "" >&2 + echo " The environment variable the parameter uses." >&2 + echo "-d The display name for the parameter." >&2 + echo "-i The initial value of the parameter." >&2 + echo "-a The set of allowed characters. Any character in the string" >&2 + echo " will be allowed." >&2 + echo "-m (integer) The minimum length." >&2 + echo "-M (integer) The maximum length." >&2 +} + +usage_param_checkbox() { + echo "lcdexec-setup param checkbox [-d ] [-i (on|off|gray)] [-y ] [-n ] [-g []]" >&2 + echo "" >&2 + echo " The environment variable the parameter uses." >&2 + echo "-d The display name for the parameter." >&2 + echo "-i (on|off|gray) The initial value of the checkbox. One of: on, off, gray" >&2 + echo "-y Changes the text to display, when in the 'on' state." >&2 + echo "-n Changes the text to display, when in the 'gray' state." >&2 + echo "-g [] Enables the third 'gray' state of the checkbox, and" >&2 + echo " optionally sets the text to display in that state." >&2 +} + +usage_param_ip() { + echo "lcdexec-setup param ip [-d ] [-i ] [-6]" >&2 + echo "" >&2 + echo " The environment variable the parameter uses." >&2 + echo "-d The display name for the parameter." >&2 + echo "-i The initial value of the parameter." >&2 + echo "-6 Enables IPv6 mode." >&2 +} + +usage_param_numeric() { + echo "lcdexec-setup param numeric [-d ] [-i ] [-m ] [-M ]" >&2 + echo "" >&2 + echo " The environment variable the parameter uses." >&2 + echo "-d The display name for the parameter." >&2 + echo "-i (integer) The initial value of the parameter." >&2 + echo "-m (integer) The minimum value." >&2 + echo "-M (integer) The maximum value." >&2 +} + +usage_param_ring() { + echo "lcdexec-setup param ring [-d ] [-i ] ..." >&2 + echo "" >&2 + echo " The environment variable the parameter uses." >&2 + echo "-d The display name for the parameter." >&2 + echo "-i (integer) The initial value of the parameter. This is an" >&2 + echo " index (zero-based) NOT the initial string value." >&2 + echo "... The set of strings that can be chosen from." >&2 +} + +usage_param_slider() { + echo "lcdexec-setup param slider [-d ] [-i ] [-m ] [-M ] [-s ] [-t ] [-T ]" >&2 + echo "" >&2 + echo " The environment variable the parameter uses." >&2 + echo "-d The display name for the parameter." >&2 + echo "-i (integer) The initial value of the parameter." >&2 + echo "-m (integer) The minimum value." >&2 + echo "-M (integer) The maximum value." >&2 + echo "-s (integer) The step size." >&2 + echo "-t The text to display instead of the minimum value." >&2 + echo "-T The text to display instead of the maximum value." >&2 +} + +show_help() { + if [ "$#" -lt 1 ]; then + usage + return + fi + + case "$1" in + menu) + usage_menu + ;; + command) + usage_command + ;; + param) + case "$2" in + alpha) + usage_param_alpha + ;; + checkbox) + usage_param_checkbox + ;; + ip) + usage_param_ip + ;; + numeric) + usage_param_numeric + ;; + ring) + usage_param_ring + ;; + slider) + usage_param_slider + ;; + *) + usage_param + + if [ -n "$2" ]; then + exit 1 + fi + ;; + esac + ;; + help) + usage + ;; + *) + usage + exit 1 + ;; + esac +} + +BASE_KEY="/sw/lcdproc/lcdexec/#0/current/menu" +if [ "$(id -u)" = "0" ]; then + NAMESPACE="system" +else + NAMESPACE="user" +fi + +kdb_set() { + kdb set -N "$NAMESPACE" "$BASE_KEY/$1" "$2" +} + +kdb_setmeta() { + kdb setmeta "$NAMESPACE$BASE_KEY/$1" "$2" "$3" +} + +elektra_index() { + echo "$1" | awk '{ i=$0; gsub(".", "_", i); printf("#%s%s", substr(i, 2), $0) }' +} + +next_index() { + last="$(basename "$(kdb getmeta "$BASE_KEY/$1" array 2> /dev/null)")" + last="${last#\#}" + last="${last##*_}" + if [ -z "$last" ]; then + printf "#0" + else + elektra_index $((last + 1)) + fi +} + +exit_error() { + echo "ERROR: $1" >&2 + exit 1 +} + +# create_menu [...] +create_menu() { + if [ -z "$1" ]; then + usage_menu + exit 1 + fi + + name="$1" + shift + + for entry in "$@"; do + if ! echo "$entry" | grep -Eq '(menu|command)/#_*[0-9]+'; then + exit_error "not a valid menu entry: $entry" + fi + done + + index="$(next_index "menu")" + menu="menu/$index" + kdb_setmeta "menu" "array" "$index" + kdb_set "$menu/displayname" "$name" + + if [ "$#" -gt 0 ]; then + count="$#" + kdb_setmeta "$menu/entries" "array" "$(elektra_index $((count - 1)))" + index=0 + for entry in "$@"; do + kdb_set "$menu/entries/$(elektra_index "$index")" "@/menu/$entry" + index=$((index + 1)) + done + fi +} + +# create_command [-d ] [-f] [...] +create_command() { + if [ -z "$1" ]; then + usage_command + exit 1 + fi + + exec_cmd="$1" + shift + + OPTIND=1 + while getopts ":fd:" o; do + case "$o" in + f) + feedback=1 + ;; + d) + name="$OPTARG" + ;; + *) + usage_command + exit 1 + ;; + esac + done + shift $((OPTIND - 1)) + + for param in "$@"; do + if ! echo "$param" | grep -Eq '(alpha|checkbox|ip|numeric|ring|slider)/#_*[0-9]+'; then + exit_error "not a valid parameter: $param" + fi + done + + index="$(next_index "command")" + cmd="command/$index" + kdb_setmeta "command" "array" "$index" + kdb_set "$cmd/exec" "$exec_cmd" + + if [ -n "$name" ]; then + kdb_set "$cmd/displayname" "$name" + fi + + if [ "$feedback" = "1" ]; then + kdb_set "$cmd/feedback" "1" + fi + + if [ "$#" -gt 0 ]; then + count="$#" + kdb_setmeta "$cmd/parameters" "array" "$(elektra_index $((count - 1)))" + index=0 + for param in "$@"; do + kdb_set "$cmd/parameters/$(elektra_index "$index")" "@/menu/$param" + index=$((index + 1)) + done + fi +} + +# create_param [-d ] [...] +create_param() { + if [ "$#" -lt 1 ]; then + usage_param + exit 1 + fi + + type="$1" + shift + + case "$type" in + alpha) + create_param_alpha "$@" + ;; + checkbox) + create_param_checkbox "$@" + ;; + ip) + create_param_ip "$@" + ;; + numeric) + create_param_numeric "$@" + ;; + ring) + create_param_ring "$@" + ;; + slider) + create_param_slider "$@" + ;; + *) + usage_param + exit 1 + ;; + esac +} + +# create_param_alpha [-d ] [-i ] [-a ] [-m ] [-M ] +create_param_alpha() { + if [ "$#" -lt 1 ]; then + usage_param_alpha + exit 1 + fi + + envname="$1" + shift + + OPTIND=1 + while getopts ":d:i:a:m:M:" o; do + case "$o" in + i) + i=1 + initial="$OPTARG" + ;; + a) + a=1 + allowed="$OPTARG" + ;; + m) + m=1 + if ! [ "$OPTARG" -eq "$OPTARG" ] 2>/dev/null; then + exit_error "min must be an integer not: $OPTARG" + fi + if [ "$OPTARG" -lt 0 ] 2>/dev/null; then + exit_error "min must be positive: $OPTARG" + fi + min="$OPTARG" + ;; + M) + M=1 + if ! [ "$OPTARG" -eq "$OPTARG" ] 2>/dev/null; then + exit_error "max must be an integer not: $OPTARG" + fi + if [ "$OPTARG" -lt 0 ] 2>/dev/null; then + exit_error "max must be positive: $OPTARG" + fi + max="$OPTARG" + ;; + d) + d=1 + name="$OPTARG" + ;; + *) + usage_param_alpha + exit 1 + ;; + esac + done + shift $((OPTIND - 1)) + + if [ -n "$1" ]; then + exit_error "unknown argument: $1" + fi + + if ! echo "$initial" | grep -qE "^[$allowed]{$min,$max}$"; then + exit_error "invalid initial value: $initial" + fi + + index="$(next_index "parameter/alpha")" + param="parameter/alpha/$index" + kdb_setmeta "parameter/alpha" "array" "$index" + kdb_set "$param/envname" "$envname" + [ -n "$d" ] && kdb_set "$param/displayname" "$name" + [ -n "$i" ] && kdb_set "$param/value" "$initial" + [ -n "$a" ] && kdb_set "$param/allowed" "$allowed" + [ -n "$m" ] && kdb_set "$param/minlength" "$min" + [ -n "$M" ] && kdb_set "$param/maxlength" "$max" +} + +# create_param_checkbox [-d ] [-i (on|off|gray)] [-y ] [-n ] [-g []] +create_param_checkbox() { + if [ "$#" -lt 1 ]; then + usage_param_checkbox + exit 1 + fi + + envname="$1" + shift + + OPTIND=1 + while getopts ":d:i:y:n:g:" o; do + case "$o" in + i) + i=1 + if [ "$OPTARG" != "on" ] && [ "$OPTARG" != "off" ] && [ "$OPTARG" != "gray" ]; then + exit_error "illegal initial value: $OPTARG (allowed: on, off, gray)" + fi + initial="$OPTARG" + ;; + y) + y=1 + ontext="$OPTARG" + ;; + n) + n=1 + offtext="$OPTARG" + ;; + g) + g=1 + gray=1 + graytext="$OPTARG" + ;; + d) + d=1 + name="$OPTARG" + ;; + :) + if [ "$OPTARG" = "g" ]; then + g=1 + else + usage_param_checkbox + exit 1 + fi + ;; + *) + usage_param_checkbox + exit 1 + ;; + esac + done + shift $((OPTIND - 1)) + + if [ -n "$1" ]; then + exit_error "unknown argument $1" + fi + + if [ "$initial" = "gray" ] && [ -z "$g" ]; then + exit_error "initial value 'gray' only allowed with -g" + fi + + index="$(next_index "parameter/checkbox")" + param="parameter/checkbox/$index" + kdb_setmeta "parameter/checkbox" "array" "$index" + kdb_set "$param/envname" "$envname" + [ -n "$d" ] && kdb_set "$param/displayname" "$name" + [ -n "$i" ] && kdb_set "$param/value" "$initial" + [ -n "$y" ] && kdb_set "$param/ontext" "$ontext" + [ -n "$n" ] && kdb_set "$param/offtext" "$offtext" + [ -n "$g" ] && kdb_set "$param/allowgray" "1" + [ -n "$gray" ] && kdb_set "$param/graytext" "$graytext" +} + +# create_param_ip [-d ] [-i ] [-6] +create_param_ip() { + if [ "$#" -lt 1 ]; then + usage_param_ip + exit 1 + fi + + envname="$1" + shift + + OPTIND=1 + while getopts ":d:i:6" o; do + case "$o" in + i) + i=1 + initial="$OPTARG" + ;; + 6) + v6=1 + ;; + d) + d=1 + name="$OPTARG" + ;; + *) + usage_param_ip + exit 1 + ;; + esac + done + shift $((OPTIND - 1)) + + if [ -n "$1" ]; then + exit_error "unknown argument $1" + fi + + index="$(next_index "parameter/ip")" + param="parameter/ip/$index" + kdb_setmeta "parameter/ip" "array" "$index" + kdb_set "$param/envname" "$envname" + [ -n "$d" ] && kdb_set "$param/displayname" "$name" + [ -n "$i" ] && kdb_set "$param/value" "$initial" + [ -n "$v6" ] && kdb_set "$param/v6" "1" +} + +# create_param_numeric [-d ] [-i ] [-m ] [-M ] +create_param_numeric() { + if [ "$#" -lt 1 ]; then + usage_param_numeric + exit 1 + fi + + envname="$1" + shift + + OPTIND=1 + while getopts ":d:i:m:M:" o; do + case "$o" in + i) + i=1 + if ! [ "$OPTARG" -eq "$OPTARG" ] 2>/dev/null; then + exit_error "initial must be an integer not: $OPTARG" + fi + initial="$OPTARG" + ;; + m) + m=1 + if ! [ "$OPTARG" -eq "$OPTARG" ] 2>/dev/null; then + exit_error "min must be an integer not: $OPTARG" + fi + min="$OPTARG" + ;; + M) + M=1 + if ! [ "$OPTARG" -eq "$OPTARG" ] 2>/dev/null; then + exit_error "max must be an integer not: $OPTARG" + fi + max="$OPTARG" + ;; + d) + d=1 + name="$OPTARG" + ;; + *) + usage_param_numeric + exit 1 + ;; + esac + done + shift $((OPTIND - 1)) + + if [ -n "$1" ]; then + exit_error "unknown argument $1" + fi + + if [ "$initial" -lt "$min" ] || [ "$initial" -gt "$max" ]; then + exit_error "initial value out of range: $initial (min: $min, max: $max)" + fi + + index="$(next_index "parameter/numeric")" + param="parameter/numeric/$index" + kdb_setmeta "parameter/numeric" "array" "$index" + kdb_set "$param/envname" "$envname" + [ -n "$d" ] && kdb_set "$param/displayname" "$name" + [ -n "$i" ] && kdb_set "$param/value" "$initial" + [ -n "$m" ] && kdb_set "$param/minvalue" "$min" + [ -n "$M" ] && kdb_set "$param/maxvalue" "$max" +} + +# create_param_ring [-d ] [-i ] ... +create_param_ring() { + if [ "$#" -lt 1 ]; then + usage_param_ring + exit 1 + fi + + envname="$1" + shift + + OPTIND=1 + while getopts ":d:i:" o; do + case "$o" in + i) + i=1 + if ! [ "$OPTARG" -eq "$OPTARG" ] 2>/dev/null; then + exit_error "initial must be an integer not: $OPTARG" + fi + if [ "$OPTARG" -lt 0 ] 2>/dev/null; then + exit_error "initial must be positive: $OPTARG" + fi + initial="$OPTARG" + ;; + d) + d=1 + name="$OPTARG" + ;; + *) + usage_param_ring + exit 1 + ;; + esac + done + shift $((OPTIND - 1)) + + count="$#" + if [ "$count" -lt 1 ]; then + exit_error "at least one string required" + fi + + if [ "$initial" -ge "$count" ]; then + exit_error "initial value out of range: $initial (max: $((count - 1)))" + fi + + index="$(next_index "parameter/ring")" + param="parameter/ring/$index" + kdb_setmeta "parameter/ring" "array" "$index" + kdb_set "$param/envname" "$envname" + [ -n "$d" ] && kdb_set "$param/displayname" "$name" + [ -n "$i" ] && kdb_set "$param/value" "$initial" + + if [ "$count" -gt 0 ]; then + kdb_setmeta "$param/strings" "array" "$(elektra_index $((count - 1)))" + index=0 + for string in "$@"; do + kdb_set "$param/strings/$(elektra_index "$index")" "$string" + index=$((index + 1)) + done + fi +} + +# create_param_slider [-d ] [-i ] [-m ] [-M ] [-s ] [-t ] [-T ] +create_param_slider() { + if [ "$#" -lt 1 ]; then + usage_param_slider + exit 1 + fi + + envname="$1" + shift + + OPTIND=1 + while getopts ":d:i:m:M:s:t:T:" o; do + case "$o" in + i) + i=1 + if ! [ "$OPTARG" -eq "$OPTARG" ] 2>/dev/null; then + exit_error "initial must be an integer not: $OPTARG" + fi + initial="$OPTARG" + ;; + m) + m=1 + if ! [ "$OPTARG" -eq "$OPTARG" ] 2>/dev/null; then + exit_error "min must be an integer not: $OPTARG" + fi + min="$OPTARG" + ;; + M) + M=1 + if ! [ "$OPTARG" -eq "$OPTARG" ] 2>/dev/null; then + exit_error "max must be an integer not: $OPTARG" + fi + max="$OPTARG" + ;; + s) + s=1 + if ! [ "$OPTARG" -eq "$OPTARG" ] 2>/dev/null; then + exit_error "step must be an integer not: $OPTARG" + fi + step="$OPTARG" + ;; + t) + t=1 + min_text="$OPTARG" + ;; + T) + T=1 + max_text="$OPTARG" + ;; + d) + d=1 + name="$OPTARG" + ;; + *) + usage_param_slider + exit 1 + ;; + esac + done + shift $((OPTIND - 1)) + + if [ -n "$1" ]; then + exit_error "unknown argument $1" + fi + + if [ "$min" -ge "$max" ]; then + exit_error "min must be less than max: $min >= $max" + fi + + if [ "$step" -le 0 ]; then + exit_error "step must be positive (non-zero): $step" + fi + + if [ "$step" -gt "$((max - min))" ]; then + exit_error "step must not be greater than (max - min): $step > ($max - $min) = $((max - min))" + fi + + if [ "$initial" -lt "$min" ] || [ "$initial" -gt "$max" ]; then + exit_error "initial value out of range: $initial (min: $min, max: $max)" + fi + + index="$(next_index "parameter/slider")" + param="parameter/slider/$index" + kdb_setmeta "parameter/slider" "array" "$index" + kdb_set "$param/envname" "$envname" + [ -n "$d" ] && kdb_set "$param/displayname" "$name" + [ -n "$i" ] && kdb_set "$param/value" "$initial" + [ -n "$m" ] && kdb_set "$param/minvalue" "$min" + [ -n "$M" ] && kdb_set "$param/maxvalue" "$max" + [ -n "$s" ] && kdb_set "$param/stepsize" "$step" + [ -n "$t" ] && kdb_set "$param/mintext" "$min_text" + [ -n "$T" ] && kdb_set "$param/maxtext" "$max_text" +} + +# main [...] +main() { + if [ "$#" -lt 1 ]; then + usage + exit 1 + fi + + type="$1" + shift + + case "$type" in + menu) + create_menu "$@" + ;; + command) + create_command "$@" + ;; + param) + create_param "$@" + ;; + help) + show_help "$@" + ;; + *) + usage + exit 1 + ;; + esac +} + +main "$@" From aeabb35cf5e38ebafda86c4e5ba48455e2fafea1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Tue, 10 Sep 2019 02:21:56 +0200 Subject: [PATCH 63/72] ignore generated post-install script --- .gitignore | 2 ++ post-install.sh | 56 ------------------------------------------------- 2 files changed, 2 insertions(+), 56 deletions(-) delete mode 100755 post-install.sh diff --git a/.gitignore b/.gitignore index 6b2158ed..3318a27f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +/post-install.sh + ################# ## Eclipse ################# diff --git a/post-install.sh b/post-install.sh deleted file mode 100755 index 38fb16d8..00000000 --- a/post-install.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/sh - -INSTALL_PREFIX="/usr/local" - -exit_usage() { - echo "Usage: $(basename "$0") [-h|--help] [app...]" 1>&2 - echo "" 1>&2 - echo "supported apps: lcdproc lcdexec lcdvc LCDd" 1>&2 - echo "if no app is given: use all apps" 1>&2 - exit 1 -} - -if [ "$#" -eq 0 ]; then - APPS="lcdproc lcdexec lcdvc LCDd" -elif [ "$#" -eq 1 ] && { [ "$1" = "-h" ] || [ "$1" = "--help" ]; }; then - exit_usage -else - APPS=$* -fi - -run_mount_script() { - SPEC_FILE="$INSTALL_PREFIX/share/lcdproc/$1.spec.eqd" sh "$INSTALL_PREFIX/libexec/$1.mount.sh" -} - -for APP in $APPS; do - case "$APP" in - lcdproc) - if [ ! "$lcdproc_done" ]; then - run_mount_script lcdproc - fi - lcdproc_done=1 - ;; - lcdexec) - if [ ! "$lcdexec_done" ]; then - run_mount_script lcdexec - fi - lcdexec_done=1 - ;; - lcdvc) - if [ ! "$lcdvc_done" ]; then - run_mount_script lcdvc - fi - lcdvc_done=1 - ;; - LCDd) - if [ ! "$LCDd_done" ]; then - run_mount_script LCDd && kdb set "/sw/lcdproc/lcdd/#0/current/server/driverpath" "$INSTALL_PREFIX/lib/lcdproc/" - fi - LCDd_done=1 - ;; - *) - echo "Unknown application $APP" 1>&2 - exit_usage - ;; - esac -done From 4a97d5f791f7253648f801e662e8946a329db915 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Tue, 10 Sep 2019 02:25:20 +0200 Subject: [PATCH 64/72] lcdexec: install setup script --- clients/lcdexec/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/clients/lcdexec/Makefile.am b/clients/lcdexec/Makefile.am index fa866e38..e89c2487 100644 --- a/clients/lcdexec/Makefile.am +++ b/clients/lcdexec/Makefile.am @@ -3,6 +3,7 @@ sysconf_DATA = lcdexec.conf bin_PROGRAMS = lcdexec +bin_SCRIPTS = lcdexec-setup lcdexec_SOURCES = lcdexec.c menu.c menu.h nodist_lcdexec_SOURCES = elektragen.c elektragen.h From 8da10340a1312273c17af99d69d135bc852dca21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Thu, 12 Sep 2019 23:38:10 +0200 Subject: [PATCH 65/72] lcdexec: add delete command to setup script --- clients/lcdexec/lcdexec-setup | 227 +++++++++++++++++++++++++++++++++- 1 file changed, 223 insertions(+), 4 deletions(-) diff --git a/clients/lcdexec/lcdexec-setup b/clients/lcdexec/lcdexec-setup index 36998099..01fa5c6b 100755 --- a/clients/lcdexec/lcdexec-setup +++ b/clients/lcdexec/lcdexec-setup @@ -1,13 +1,18 @@ #!/bin/sh +VERBOSE=${VERBOSE:-0} +BACKUP="$(mktemp)" + usage() { - echo "lcdexec-setup [...]" >&2 + echo "lcdexec-setup [-v] [...]" >&2 echo "" >&2 + echo "-v Log what is happening to the KDB to stderr." >&2 echo "" >&2 echo " menu - to create a new menu" >&2 echo " command - to create a new command" >&2 echo " param - to create a new parameter" >&2 echo " help - to display more help" >&2 + echo " delete - delete a menu/command/parameter" >&2 echo "[...]" >&2 echo " Use 'lcdexec-setup help ' to show available values." >&2 echo " For paramters 'lcdexec-setup help param ' shows even more info." >&2 @@ -113,6 +118,17 @@ usage_param_slider() { echo "-T The text to display instead of the maximum value." >&2 } +usage_delete() { + echo "lcdexec-setup delete (menu|command|param/) " >&2 + echo "" >&2 + echo "Delete a menu/command/parameter and move other entries in the array" >&2 + echo "to keep it continuous." >&2 + echo "" >&2 + echo " What kind of parameter should be deleted?" >&2 + echo " One of: alpha, checkbox, ip, numeric, ring, slider" >&2 + echo " Index of the entry to delete." >&2 +} + show_help() { if [ "$#" -lt 1 ]; then usage @@ -158,6 +174,9 @@ show_help() { help) usage ;; + delete) + usage_delete + ;; *) usage exit 1 @@ -172,20 +191,64 @@ else NAMESPACE="user" fi +log() { + [ "$VERBOSE" = "1" ] && echo "$@" +} + +run_kdb() { + log "$ kdb $*" >&2 + kdb "$@" + rc=$? + if [ "$rc" != "0" ]; then + exit_error "FAILED ($rc): kdb $*" + fi +} + kdb_set() { - kdb set -N "$NAMESPACE" "$BASE_KEY/$1" "$2" + run_kdb set -N "$NAMESPACE" "$BASE_KEY/$1" "$2" } kdb_setmeta() { - kdb setmeta "$NAMESPACE$BASE_KEY/$1" "$2" "$3" + run_kdb setmeta "$NAMESPACE$BASE_KEY/$1" "$2" "$3" +} + +kdb_rm_r() { + run_kdb rm -r "$NAMESPACE$BASE_KEY/$1" +} + +kdb_exists() { + [ -n "$(run_kdb ls "$NAMESPACE$BASE_KEY/$1")" ] +} + +kdb_array_last() { + kdb getmeta "$BASE_KEY/$1" array 2>/dev/null +} + +kdb_export() { + run_kdb export "$NAMESPACE$BASE_KEY/$1" ni | grep -v '^ internal/' +} + +kdb_import() { + run_kdb import "$NAMESPACE$BASE_KEY/$1" ni } elektra_index() { echo "$1" | awk '{ i=$0; gsub(".", "_", i); printf("#%s%s", substr(i, 2), $0) }' } +prev_index() { + last="$(kdb_array_last "$1")" + last="${last#\#}" + last="${last##*_}" + if [ -z "$last" ] || [ "$last" -eq 0 ]; then + printf "" + else + elektra_index $((last - 1)) + fi +} + next_index() { - last="$(basename "$(kdb getmeta "$BASE_KEY/$1" array 2> /dev/null)")" + last="$(kdb_array_last "$1")" last="${last#\#}" last="${last##*_}" if [ -z "$last" ]; then @@ -197,9 +260,32 @@ next_index() { exit_error() { echo "ERROR: $1" >&2 + cleanup 1 exit 1 } +backup() { + kdb_export "" >"$BACKUP" +} + +restore() { + kdb_rm_r "" + kdb_import "" <"$BACKUP" +} + +cleanup() { + rc=$1 + shift + + if [ "$rc" != "0" ]; then + if [ "$#" -gt 0 ]; then + log "-- FAILED ($rc): $*" + fi + log "-- Restoring backup $BACKUP" + restore + fi +} + # create_menu [...] create_menu() { if [ -z "$1" ]; then @@ -734,6 +820,117 @@ create_param_slider() { [ -n "$T" ] && kdb_set "$param/maxtext" "$max_text" } +# delete_entry (menu|command|param/) +delete_entry() { + if [ "$#" -lt 2 ]; then + usage_delete + exit 1 + fi + + index="$2" + + case "$1" in + menu) + array="menu" + ;; + command) + array="command" + ;; + param/alpha) + array="parameter/alpha" + ;; + param/checkbox) + array="parameter/checkbox" + ;; + param/ip) + array="parameter/ip" + ;; + param/numeric) + array="parameter/numeric" + ;; + param/ring) + array="parameter/ring" + ;; + param/slider) + array="parameter/slider" + ;; + *) + usage_delete + exit 1 + ;; + esac + + entry="$array/$(elektra_index "$index")" + + if ! kdb_exists "$entry"; then + exit_error "$entry doesn't exist" + fi + + kdb_rm_r "$entry" + + new_last="$(prev_index "$array")" + kdb_setmeta "$array" "array" "$new_last" + + if [ -z "$new_last" ]; then + return + fi + + tmp_file="$(mktemp)" + + kdb_export "$array" >"$tmp_file" + kdb_rm_r "$array" + + mawk -v idx="$index" -F '[/ \]]' ' + /^#_*[0-9]+/ { + n = $1 + sub("^#_*", "", n) + + if (n > idx) { + m = n - 1 + + p = $1 + sub("[0-9]+$", "", p) + + if (length(m) < length(n)) { + p = substr(p, 0, length(p) - 1) + } + + s = $0 + sub("^#_*[0-9]+", "", s) + print p m s + + next + } + } + + /^\[#_*[0-9]+/ { + n = $1 + sub("^\[#_*", "", n) + + if (n > idx) { + m = n - 1 + + p = $1 + sub("[0-9]+$", "", p) + + if (length(m) < length(n)) { + p = substr(p, 0, length(p) - 1) + } + + s = $0 + sub("^\[#_*[0-9]+", "", s) + print p m s + + next + } + } + + { print } + ' "$tmp_file" | kdb_import "$array" + + rm "$tmp_file" +} + # main [...] main() { if [ "$#" -lt 1 ]; then @@ -741,9 +938,26 @@ main() { exit 1 fi + OPTIND=1 + while getopts ":v" o; do + case "$o" in + v) + VERBOSE=1 + ;; + *) + usage + exit 1 + ;; + esac + done + shift $((OPTIND - 1)) + type="$1" shift + log "-- Creating backup $BACKUP" + backup + case "$type" in menu) create_menu "$@" @@ -757,11 +971,16 @@ main() { help) show_help "$@" ;; + delete) + delete_entry "$@" + ;; *) usage exit 1 ;; esac + + echo "-- SUCCESS: removing backup $BACKUP" } main "$@" From 822380e17af8d26d39bb01f258c98f815cf2a5a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Sun, 15 Sep 2019 18:36:18 +0200 Subject: [PATCH 66/72] lcdd: use $ORIGIN so uninstalled server can be executed from anywhere --- server/specification/LCDd-spec.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/specification/LCDd-spec.ini b/server/specification/LCDd-spec.ini index feeec384..0702680e 100644 --- a/server/specification/LCDd-spec.ini +++ b/server/specification/LCDd-spec.ini @@ -13,7 +13,7 @@ infos/plugins = ini type reference range ; hexnumber network path type = string check/type = string ; check/path = ; TODO (elektra): too many plugins -default = server/drivers/ +default = $ORIGIN/drivers/ description = Select the LCD size [server/drivers] From 1244bbd10a409163ccbce1943c5f335afc0f1fe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Thu, 19 Sep 2019 16:58:50 +0200 Subject: [PATCH 67/72] server: fix typo --- server/specification/LCDd-spec.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/specification/LCDd-spec.ini b/server/specification/LCDd-spec.ini index 0702680e..991138dc 100644 --- a/server/specification/LCDd-spec.ini +++ b/server/specification/LCDd-spec.ini @@ -68,7 +68,7 @@ type = unsigned_short check/type = unsigned_short check/range = 0-5 default = 2 -description = TSets the reporting level, defaults to warnings and errors only. +description = Sets the reporting level, defaults to warnings and errors only. opt = r opt/long = report-level From 8d0ca88cd1277eac1f05ac2a2e350acf4c7a0e24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Sun, 22 Sep 2019 15:56:31 +0200 Subject: [PATCH 68/72] lcdexec: fix help message in setup script --- clients/lcdexec/lcdexec-setup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/lcdexec/lcdexec-setup b/clients/lcdexec/lcdexec-setup index 01fa5c6b..34fa51e7 100755 --- a/clients/lcdexec/lcdexec-setup +++ b/clients/lcdexec/lcdexec-setup @@ -32,7 +32,7 @@ usage_command() { echo "" >&2 echo " What the command should do." >&2 echo "-d The display name for the command." >&2 - echo "-f What the command should do." >&2 + echo "-f Set to enable feedback." >&2 echo "" >&2 echo " Each is a reference to a parameter." >&2 echo " All references must be of the form '/#'," >&2 @@ -980,7 +980,7 @@ main() { ;; esac - echo "-- SUCCESS: removing backup $BACKUP" + log "-- SUCCESS: removing backup $BACKUP" } main "$@" From bfa61409f43fba36e39802c489dce38c7ed3175c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Sun, 22 Sep 2019 18:03:07 +0200 Subject: [PATCH 69/72] lcdexec: some fixes for setup script --- clients/lcdexec/lcdexec-setup | 42 +++++++++++++++++++++++------------ 1 file changed, 28 insertions(+), 14 deletions(-) diff --git a/clients/lcdexec/lcdexec-setup b/clients/lcdexec/lcdexec-setup index 34fa51e7..2d56a114 100755 --- a/clients/lcdexec/lcdexec-setup +++ b/clients/lcdexec/lcdexec-setup @@ -269,8 +269,8 @@ backup() { } restore() { - kdb_rm_r "" - kdb_import "" <"$BACKUP" + kdb rm -r "$NAMESPACE$BASE_KEY" + kdb import "$NAMESPACE$BASE_KEY" ni <"$BACKUP" } cleanup() { @@ -369,7 +369,7 @@ create_command() { kdb_setmeta "$cmd/parameters" "array" "$(elektra_index $((count - 1)))" index=0 for param in "$@"; do - kdb_set "$cmd/parameters/$(elektra_index "$index")" "@/menu/$param" + kdb_set "$cmd/parameters/$(elektra_index "$index")" "@/menu/parameter/$param" index=$((index + 1)) done fi @@ -468,7 +468,7 @@ create_param_alpha() { exit_error "unknown argument: $1" fi - if ! echo "$initial" | grep -qE "^[$allowed]{$min,$max}$"; then + if ! echo "$initial" | grep -qE "^[${allowed:-ABCDEFGHIJKLMNOPQRSTUVWXYZ}]{${min:-0},${max:-100}}$"; then exit_error "invalid initial value: $initial" fi @@ -651,8 +651,12 @@ create_param_numeric() { exit_error "unknown argument $1" fi - if [ "$initial" -lt "$min" ] || [ "$initial" -gt "$max" ]; then - exit_error "initial value out of range: $initial (min: $min, max: $max)" + _min=${min:-0} + _max=${max:-0} + _initial=${initial:-0} + + if [ "$_initial" -lt "$_min" ] || [ "$_initial" -gt "$_max" ]; then + exit_error "initial value out of range: $_initial (min: $_min, max: $_max)" fi index="$(next_index "parameter/numeric")" @@ -791,20 +795,25 @@ create_param_slider() { exit_error "unknown argument $1" fi - if [ "$min" -ge "$max" ]; then - exit_error "min must be less than max: $min >= $max" + _min=${min:-0} + _max=${max:-1000} + _step=${step:-1} + _initial=${step:-0} + + if [ "$_min" -ge "$_max" ]; then + exit_error "min must be less than max: $_min >= $_max" fi - if [ "$step" -le 0 ]; then - exit_error "step must be positive (non-zero): $step" + if [ "$_step" -le 0 ]; then + exit_error "step must be positive (non-zero): $_step" fi - if [ "$step" -gt "$((max - min))" ]; then - exit_error "step must not be greater than (max - min): $step > ($max - $min) = $((max - min))" + if [ "$_step" -gt "$((_max - _min))" ]; then + exit_error "step must not be greater than (max - min): $_step > ($_max - $_min) = $((_max - _min))" fi - if [ "$initial" -lt "$min" ] || [ "$initial" -gt "$max" ]; then - exit_error "initial value out of range: $initial (min: $min, max: $max)" + if [ "$_initial" -lt "$_min" ] || [ "$_initial" -gt "$_max" ]; then + exit_error "initial value out of range: $_initial (min: $_min, max: $_max)" fi index="$(next_index "parameter/slider")" @@ -952,6 +961,11 @@ main() { done shift $((OPTIND - 1)) + if [ "$#" -lt 1 ]; then + usage + exit 1 + fi + type="$1" shift From ab49d06d49336f997011ecd523ab6318228debbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Sun, 22 Sep 2019 18:03:18 +0200 Subject: [PATCH 70/72] all: include config.h into report.h --- shared/report.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shared/report.h b/shared/report.h index 0a412d98..8217f9c0 100644 --- a/shared/report.h +++ b/shared/report.h @@ -61,6 +61,10 @@ * Ex: What function has been called, what subpart of a function is being * executed, what was received and sent over the socket, etc. */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #define RPT_CRIT 0 #define RPT_ERR 1 #define RPT_WARNING 2 From 7233372c3ef8d3809ad1a21dc1a7568bb3177a17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Sun, 22 Sep 2019 19:21:26 +0200 Subject: [PATCH 71/72] lcdexec: fix various problems --- clients/lcdexec/lcdexec.c | 66 ++++--- clients/lcdexec/menu.c | 180 +++++++++--------- clients/lcdexec/menu.h | 3 +- .../lcdexec/specification/lcdexec-spec.ini | 7 +- 4 files changed, 142 insertions(+), 114 deletions(-) diff --git a/clients/lcdexec/lcdexec.c b/clients/lcdexec/lcdexec.c index b4b71ba2..8b184b77 100644 --- a/clients/lcdexec/lcdexec.c +++ b/clients/lcdexec/lcdexec.c @@ -359,6 +359,7 @@ static bool find_triggered_command(Menu * menu, int id, Command ** command) *command = menu->entries[i].command; return true; } else if(menu->entries[i].command->actionId == id) { + *command = menu->entries[i].command; return true; } CommandParameterType t; @@ -429,6 +430,12 @@ static int process_response(char *str) char *argv[20]; int argc; + char * strCopy = NULL; + if (strncmp(str, "huh?", 4) == 0) { + // for error handling + strCopy = strdup(str); + } + debug(RPT_DEBUG, "Server said: \"%s\"", str); /* Check what the server just said to us... */ @@ -447,19 +454,22 @@ static int process_response(char *str) if (argc < 3) goto err_invalid; - /* Find the entry by id */ - Command * command; // TODO (kodebach): last entry of command with args? + /* Look for command by id or actionId */ + Command * command; if (!find_triggered_command(main_menu, atoi(argv[2]), &command)) { + // unknown id report(RPT_WARNING, "Could not find the item id given by the server"); return -1; } - if(command == NULL) { - report(RPT_WARNING, "Illegal menu entry type for event"); - return -1; + if(command != NULL) { + // found command + exec_command(command); + } else { + // found menu or parameter + debug(RPT_DEBUG, "got %s for %s", argv[1], argv[2]); + return 0; } - - exec_command(command); } else if ((strcmp(argv[1], "plus") == 0) || (strcmp(argv[1], "minus") == 0) || @@ -472,13 +482,15 @@ static int process_response(char *str) CommandParameter * parameter; CommandParameterType parameterType; if (!find_triggered_parameter(main_menu, atoi(argv[2]), ¶meter, ¶meterType)) { + // unknown id report(RPT_WARNING, "Could not find the item id given by the server"); return -1; } if(parameter == NULL) { - report(RPT_WARNING, "Illegal menu entry type for event"); - return -1; + // found menu or command + debug(RPT_DEBUG, "got %s for %s", argv[1], argv[2]); + return 0; } switch (parameterType) { @@ -511,7 +523,7 @@ static int process_response(char *str) parameter->checkbox->value = 0; break; default: - report(RPT_WARNING, "Illegal menu entry type for event"); + report(RPT_WARNING, "Illegal parameter type for event %s", argv[1]); return -1; } } @@ -537,11 +549,16 @@ static int process_response(char *str) } else if (strcmp(argv[0], "huh?") == 0) { /* Report errors */ - report(RPT_WARNING, "Server said: \"%s\"", str); + report(RPT_WARNING, "Server said: \"%s\"", strCopy); } else { ; /* Ignore all other responses */ } + + if (strCopy != NULL) { + free(strCopy); + } + return 0; err_invalid: @@ -559,7 +576,7 @@ static int exec_command(Command *cmd) const char *argv[4]; pid_t pid; ProcInfo *p; - char *envp[cmd->parametersSize+1]; + char ** envp = malloc((cmd->parametersSize + 1) * sizeof(char*)); /* set argument vector */ argv[0] = default_shell; @@ -569,47 +586,45 @@ static int exec_command(Command *cmd) /* set environment vector: allocate & fill contents */ for (kdb_long_long_t i = 0; i < cmd->parametersSize; ++i) { - char buf[1025]; - CommandParameter param = cmd->parameters[i]; switch (cmd->parameterTypes[i]) { case COMMAND_PARAMETER_TYPE_SLIDER: - envp[i] = elektraFormat(buf, "%s="ELEKTRA_LONG_F, param.slider->envname, param.slider->value); + envp[i] = elektraFormat("%s="ELEKTRA_LONG_F, param.slider->envname, param.slider->value); break; case COMMAND_PARAMETER_TYPE_RING: - envp[i] = elektraFormat(buf, "%s=%s", param.ring->envname, param.ring->strings[param.ring->value]); + envp[i] = elektraFormat("%s=%s", param.ring->envname, param.ring->strings[param.ring->value]); break; case COMMAND_PARAMETER_TYPE_NUMERIC: - envp[i] = elektraFormat(buf, "%s="ELEKTRA_LONG_F, param.numeric->envname, param.numeric->value); + envp[i] = elektraFormat("%s="ELEKTRA_LONG_F, param.numeric->envname, param.numeric->value); break; case COMMAND_PARAMETER_TYPE_ALPHA: - envp[i] = elektraFormat(buf, "%s=%s", param.alpha->envname, param.alpha->value); + envp[i] = elektraFormat("%s=%s", param.alpha->envname, param.alpha->value); break; case COMMAND_PARAMETER_TYPE_IP: - envp[i] = elektraFormat(buf, "%s=%s", param.ip->envname, param.ip->value); + envp[i] = elektraFormat("%s=%s", param.ip->envname, param.ip->value); break; case COMMAND_PARAMETER_TYPE_CHECKBOX: switch (param.checkbox->value) { case CHECKBOX_STATE_ON: if(strlen(param.checkbox->ontext) > 0) { - envp[i] = elektraFormat(buf, "%s", param.checkbox->ontext); + envp[i] = elektraFormat("%s", param.checkbox->ontext); } else { - envp[i] = elektraFormat(buf, "%s="ELEKTRA_LONG_F, param.checkbox->envname, param.checkbox->value); + envp[i] = elektraFormat("%s="ELEKTRA_LONG_F, param.checkbox->envname, param.checkbox->value); } break; case CHECKBOX_STATE_OFF: if(strlen(param.checkbox->offtext) > 0) { - envp[i] = elektraFormat(buf, "%s", param.checkbox->offtext); + envp[i] = elektraFormat("%s", param.checkbox->offtext); } else { - envp[i] = elektraFormat(buf, "%s="ELEKTRA_LONG_F, param.checkbox->envname, param.checkbox->value); + envp[i] = elektraFormat("%s="ELEKTRA_LONG_F, param.checkbox->envname, param.checkbox->value); } break; case CHECKBOX_STATE_GRAY: if(strlen(param.checkbox->graytext) > 0) { - envp[i] = elektraFormat(buf, "%s", param.checkbox->graytext); + envp[i] = elektraFormat("%s", param.checkbox->graytext); } else { - envp[i] = elektraFormat(buf, "%s="ELEKTRA_LONG_F, param.checkbox->envname, param.checkbox->value); + envp[i] = elektraFormat("%s="ELEKTRA_LONG_F, param.checkbox->envname, param.checkbox->value); } break; } @@ -653,6 +668,7 @@ static int exec_command(Command *cmd) for (kdb_long_long_t i = 0; i < cmd->parametersSize; i++) { elektraFree(envp[i]); } + free (envp); return 0; } diff --git a/clients/lcdexec/menu.c b/clients/lcdexec/menu.c index 53f3cae2..eadb3b65 100644 --- a/clients/lcdexec/menu.c +++ b/clients/lcdexec/menu.c @@ -23,13 +23,6 @@ #include "menu.h" #include "elektragen.h" -#define SET_PARAMETER_DISPLAY_NAME(p) \ - do \ - { \ - if (strlen(p->displayname) == 0) \ - p->displayname = p->envname; \ - } while (0) - static int menu_sock_send(Menu *menu, Menu *parent, int sock); static int menu_entries_sock_send(Menu *menu, int sock); static int command_sock_send(Command *command, Menu *parent, int sock); @@ -47,24 +40,27 @@ static void command_process(Command *command) { case COMMAND_PARAMETER_TYPE_NUMERIC: parameter.numeric->id = id++; - SET_PARAMETER_DISPLAY_NAME(parameter.numeric); break; case COMMAND_PARAMETER_TYPE_RING: parameter.ring->id = id++; - SET_PARAMETER_DISPLAY_NAME(parameter.ring); + size_t stringsLen = 0; + for (size_t i = 0; i < parameter.ring->stringsCount; i++) + { + if (parameter.ring->strings[i] != NULL) { + stringsLen += strlen(parameter.ring->strings[i]); + } + } + parameter.ring->stringsLength = stringsLen; break; case COMMAND_PARAMETER_TYPE_SLIDER: parameter.slider->id = id++; - SET_PARAMETER_DISPLAY_NAME(parameter.slider); break; case COMMAND_PARAMETER_TYPE_CHECKBOX: parameter.checkbox->id = id++; - SET_PARAMETER_DISPLAY_NAME(parameter.checkbox); break; case COMMAND_PARAMETER_TYPE_ALPHA: { parameter.alpha->id = id++; - SET_PARAMETER_DISPLAY_NAME(parameter.alpha); parameter.alpha->value = calloc(strlen(parameter.alpha->initialValue) + 1, sizeof(char)); strcpy(parameter.alpha->value, parameter.alpha->initialValue); } @@ -72,13 +68,18 @@ static void command_process(Command *command) case COMMAND_PARAMETER_TYPE_IP: { parameter.ip->id = id++; - SET_PARAMETER_DISPLAY_NAME(parameter.ip); parameter.ip->value = calloc(strlen(parameter.ip->initialValue) + 1, sizeof(char)); strcpy(parameter.ip->value, parameter.ip->initialValue); } break; } } + + if(command->parametersSize > 0) { + command->actionId = id++; + } else { + command->actionId = command->id; + } } static void menu_process(Menu *menu) @@ -112,6 +113,8 @@ int main_menu_sock_send(Menu *menu, int sock) static int menu_sock_send(Menu *menu, Menu *parent, int sock) { + debug(RPT_DEBUG, "Sending menu %d", menu->id); + char parent_id[ELEKTRA_MAX_ARRAY_SIZE] = ""; // more than big enough if (parent != NULL && parent->id > 0) { snprintf(parent_id, ELEKTRA_MAX_ARRAY_SIZE-1, "%d", parent->id); @@ -147,6 +150,8 @@ static int menu_entries_sock_send(Menu *menu, int sock) static int command_sock_send(Command *command, Menu *parent, int sock) { + debug(RPT_DEBUG, "Sending command %d", command->id); + char parent_id[ELEKTRA_MAX_ARRAY_SIZE] = ""; // more than big enough if (parent != NULL && parent->id > 0) { snprintf(parent_id, ELEKTRA_MAX_ARRAY_SIZE-1, "%d", parent->id); @@ -175,6 +180,7 @@ static int command_sock_send(Command *command, Menu *parent, int sock) switch (command->parameterTypes[i]) { case COMMAND_PARAMETER_TYPE_SLIDER: + debug(RPT_DEBUG, "Sending parameter %d", param.slider->id); lastId = param.slider->id; if (sock_printf(sock, "menu_add_item \"%d\" \"%d\" slider -text \"%s\"" " -value %d -minvalue %d -maxvalue %d" @@ -191,6 +197,7 @@ static int command_sock_send(Command *command, Menu *parent, int sock) break; case COMMAND_PARAMETER_TYPE_CHECKBOX: { + debug(RPT_DEBUG, "Sending parameter %d", param.checkbox->id); lastId = param.checkbox->id; const char *strValue = ELEKTRA_TO_CONST_STRING(EnumCheckboxState)(param.checkbox->value); int ret = sock_printf(sock, "menu_add_item \"%d\" \"%d\" checkbox -text \"%s\"" @@ -203,6 +210,7 @@ static int command_sock_send(Command *command, Menu *parent, int sock) break; } case COMMAND_PARAMETER_TYPE_NUMERIC: + debug(RPT_DEBUG, "Sending parameter %d", param.numeric->id); lastId = param.numeric->id; if (sock_printf(sock, "menu_add_item \"%d\" \"%d\" numeric -text \"%s\"" " -value %d -minvalue %d -maxvalue %d\n", @@ -214,34 +222,35 @@ static int command_sock_send(Command *command, Menu *parent, int sock) break; case COMMAND_PARAMETER_TYPE_RING: { + debug(RPT_DEBUG, "Sending parameter %d", param.ring->id); lastId = param.ring->id; - char *strings = calloc(1, sizeof(char)); - size_t stringsLen = 0; + char *strings = malloc((param.ring->stringsLength + param.ring->stringsCount + 1) * sizeof(char)); + strings[0] = '\0'; - for (kdb_long_long_t j = 0; j < param.ring->stringsSize; j++) + for (kdb_long_long_t j = 0; j < param.ring->stringsCount; j++) { - if (param.ring->strings[i] != NULL) + if (param.ring->strings[j] != NULL) { - size_t paramLen = strlen(param.ring->strings[i]); - strings = realloc(strings, (stringsLen + 1 + paramLen + 1) * sizeof(char)); - if (stringsLen > 0) + if (strings[0] != '\0') { - strings[stringsLen] = '\t'; + strcat(strings, "\t"); } - strcpy(&strings[stringsLen + 1], param.ring->strings[i]); - stringsLen += paramLen + 1; + strcat(strings, param.ring->strings[j]); } } - strings[stringsLen] = '\0'; + strings[param.ring->stringsLength + param.ring->stringsCount] = '\0'; if (sock_printf(sock, "menu_add_item \"%d\" \"%d\" ring -text \"%s\"" " -value %d -strings \"%s\"\n", command->id, param.ring->id, param.ring->displayname, param.ring->value, strings) < 0) return -1; + + free(strings); break; } case COMMAND_PARAMETER_TYPE_ALPHA: + debug(RPT_DEBUG, "Sending parameter %d", param.alpha->id); lastId = param.alpha->id; if (sock_printf(sock, "menu_add_item \"%d\" \"%d\" alpha -text \"%s\"" " -value \"%s\" -minlength %d -maxlength %d" @@ -255,6 +264,7 @@ static int command_sock_send(Command *command, Menu *parent, int sock) return -1; break; case COMMAND_PARAMETER_TYPE_IP: + debug(RPT_DEBUG, "Sending parameter %d", param.ip->id); lastId = param.ip->id; if (sock_printf(sock, "menu_add_item \"%d\" \"%d\" ip -text \"%s\"" " -value \"%s\" -v6 %s\n", @@ -289,11 +299,11 @@ static void command_dump(Command *command, int level) return; } - report(RPT_DEBUG, "%*sCommand("ELEKTRA_LONG_F") {\n", level, "", command->id); - report(RPT_DEBUG, "%*sdisplayname = \"%s\"\n", level + 1, "", command->displayname); - report(RPT_DEBUG, "%*sexec = \"%s\"\n", level + 1, "", command->exec); - report(RPT_DEBUG, "%*sfeedback = %s\n", level + 1, "", command->feedback ? "true" : "false"); - report(RPT_DEBUG, "%*sparameters = [\n", level + 1, ""); + report(RPT_DEBUG, "%*sCommand("ELEKTRA_LONG_F", "ELEKTRA_LONG_F") {", level, "", command->id, command->actionId); + report(RPT_DEBUG, "%*sdisplayname = \"%s\"", level + 1, "", command->displayname); + report(RPT_DEBUG, "%*sexec = \"%s\"", level + 1, "", command->exec); + report(RPT_DEBUG, "%*sfeedback = %s", level + 1, "", command->feedback ? "true" : "false"); + report(RPT_DEBUG, "%*sparameters = [", level + 1, ""); for (kdb_long_long_t i = 0; i < command->parametersSize; ++i) { @@ -301,74 +311,74 @@ static void command_dump(Command *command, int level) switch (command->parameterTypes[i]) { case COMMAND_PARAMETER_TYPE_NUMERIC: - report(RPT_DEBUG, "%*sNumeric("ELEKTRA_LONG_F") {\n", level + 2, "", parameter.numeric->id); - report(RPT_DEBUG, "%*sdisplayname = \"%s\"\n", level + 3, "", parameter.numeric->displayname); - report(RPT_DEBUG, "%*senvname = \"%s\"\n", level + 3, "", parameter.numeric->envname); - report(RPT_DEBUG, "%*sminvalue = " ELEKTRA_LONG_F "\n", level + 3, "", parameter.numeric->minvalue); - report(RPT_DEBUG, "%*smaxvalue = " ELEKTRA_LONG_F "\n", level + 3, "", parameter.numeric->maxvalue); - report(RPT_DEBUG, "%*svalue = " ELEKTRA_LONG_F "\n", level + 3, "", parameter.numeric->value); - report(RPT_DEBUG, "%*s}\n", level + 2, ""); + report(RPT_DEBUG, "%*sNumeric("ELEKTRA_LONG_F") {", level + 2, "", parameter.numeric->id); + report(RPT_DEBUG, "%*sdisplayname = \"%s\"", level + 3, "", parameter.numeric->displayname); + report(RPT_DEBUG, "%*senvname = \"%s\"", level + 3, "", parameter.numeric->envname); + report(RPT_DEBUG, "%*sminvalue = " ELEKTRA_LONG_F "", level + 3, "", parameter.numeric->minvalue); + report(RPT_DEBUG, "%*smaxvalue = " ELEKTRA_LONG_F "", level + 3, "", parameter.numeric->maxvalue); + report(RPT_DEBUG, "%*svalue = " ELEKTRA_LONG_F "", level + 3, "", parameter.numeric->value); + report(RPT_DEBUG, "%*s}", level + 2, ""); break; case COMMAND_PARAMETER_TYPE_RING: - report(RPT_DEBUG, "%*sRing("ELEKTRA_LONG_F") {\n", level + 2, "", parameter.ip->id); - report(RPT_DEBUG, "%*sdisplayname = \"%s\"\n", level + 3, "", parameter.ring->displayname); - report(RPT_DEBUG, "%*senvname = \"%s\"\n", level + 3, "", parameter.ring->envname); - report(RPT_DEBUG, "%*sstrings = [\n", level + 3, ""); - for (kdb_long_long_t j = 0; j < parameter.ring->stringsSize; ++j) + report(RPT_DEBUG, "%*sRing("ELEKTRA_LONG_F") {", level + 2, "", parameter.ip->id); + report(RPT_DEBUG, "%*sdisplayname = \"%s\"", level + 3, "", parameter.ring->displayname); + report(RPT_DEBUG, "%*senvname = \"%s\"", level + 3, "", parameter.ring->envname); + report(RPT_DEBUG, "%*sstrings = [", level + 3, ""); + for (kdb_long_long_t j = 0; j < parameter.ring->stringsCount; ++j) { - report(RPT_DEBUG, "%*s\"%s\"\n", level + 3, "", parameter.ring->strings[j]); + report(RPT_DEBUG, "%*s\"%s\"", level + 3, "", parameter.ring->strings[j]); } - report(RPT_DEBUG, "%*s]\n", level + 3, ""); - report(RPT_DEBUG, "%*svalue = " ELEKTRA_LONG_F "\n", level + 3, "", parameter.ring->value); - report(RPT_DEBUG, "%*s}\n", level + 2, ""); + report(RPT_DEBUG, "%*s]", level + 3, ""); + report(RPT_DEBUG, "%*svalue = " ELEKTRA_LONG_F "", level + 3, "", parameter.ring->value); + report(RPT_DEBUG, "%*s}", level + 2, ""); break; case COMMAND_PARAMETER_TYPE_SLIDER: - report(RPT_DEBUG, "%*sSlider("ELEKTRA_LONG_F") {\n", level + 2, "", parameter.slider->id); - report(RPT_DEBUG, "%*sdisplayname = \"%s\"\n", level + 3, "", parameter.slider->displayname); - report(RPT_DEBUG, "%*senvname = \"%s\"\n", level + 3, "", parameter.slider->envname); - report(RPT_DEBUG, "%*sminvalue = " ELEKTRA_LONG_F "\n", level + 3, "", parameter.slider->minvalue); - report(RPT_DEBUG, "%*smaxvalue = " ELEKTRA_LONG_F "\n", level + 3, "", parameter.slider->maxvalue); - report(RPT_DEBUG, "%*smintext = \"%s\"\n", level + 3, "", parameter.slider->mintext); - report(RPT_DEBUG, "%*smaxtext = \"%s\"\n", level + 3, "", parameter.slider->maxtext); - report(RPT_DEBUG, "%*svalue = " ELEKTRA_LONG_F "\n", level + 3, "", parameter.slider->value); - report(RPT_DEBUG, "%*sstepsize = " ELEKTRA_LONG_F "\n", level + 3, "", parameter.slider->stepsize); - report(RPT_DEBUG, "%*s}\n", level + 2, ""); + report(RPT_DEBUG, "%*sSlider("ELEKTRA_LONG_F") {", level + 2, "", parameter.slider->id); + report(RPT_DEBUG, "%*sdisplayname = \"%s\"", level + 3, "", parameter.slider->displayname); + report(RPT_DEBUG, "%*senvname = \"%s\"", level + 3, "", parameter.slider->envname); + report(RPT_DEBUG, "%*sminvalue = " ELEKTRA_LONG_F "", level + 3, "", parameter.slider->minvalue); + report(RPT_DEBUG, "%*smaxvalue = " ELEKTRA_LONG_F "", level + 3, "", parameter.slider->maxvalue); + report(RPT_DEBUG, "%*smintext = \"%s\"", level + 3, "", parameter.slider->mintext); + report(RPT_DEBUG, "%*smaxtext = \"%s\"", level + 3, "", parameter.slider->maxtext); + report(RPT_DEBUG, "%*svalue = " ELEKTRA_LONG_F "", level + 3, "", parameter.slider->value); + report(RPT_DEBUG, "%*sstepsize = " ELEKTRA_LONG_F "", level + 3, "", parameter.slider->stepsize); + report(RPT_DEBUG, "%*s}", level + 2, ""); break; case COMMAND_PARAMETER_TYPE_CHECKBOX: - report(RPT_DEBUG, "%*sCheckbox("ELEKTRA_LONG_F") {\n", level + 2, "", parameter.checkbox->id); - report(RPT_DEBUG, "%*sdisplayname = \"%s\"\n", level + 3, "", parameter.checkbox->displayname); - report(RPT_DEBUG, "%*senvname = \"%s\"\n", level + 3, "", parameter.checkbox->envname); - report(RPT_DEBUG, "%*sallowgray = %s\n", level + 3, "", parameter.checkbox->allowgray ? "true" : "false"); - report(RPT_DEBUG, "%*sontext = \"%s\"\n", level + 3, "", parameter.checkbox->ontext); - report(RPT_DEBUG, "%*sofftext = \"%s\"\n", level + 3, "", parameter.checkbox->offtext); - report(RPT_DEBUG, "%*sgraytext = \"%s\"\n", level + 3, "", parameter.checkbox->graytext); + report(RPT_DEBUG, "%*sCheckbox("ELEKTRA_LONG_F") {", level + 2, "", parameter.checkbox->id); + report(RPT_DEBUG, "%*sdisplayname = \"%s\"", level + 3, "", parameter.checkbox->displayname); + report(RPT_DEBUG, "%*senvname = \"%s\"", level + 3, "", parameter.checkbox->envname); + report(RPT_DEBUG, "%*sallowgray = %s", level + 3, "", parameter.checkbox->allowgray ? "true" : "false"); + report(RPT_DEBUG, "%*sontext = \"%s\"", level + 3, "", parameter.checkbox->ontext); + report(RPT_DEBUG, "%*sofftext = \"%s\"", level + 3, "", parameter.checkbox->offtext); + report(RPT_DEBUG, "%*sgraytext = \"%s\"", level + 3, "", parameter.checkbox->graytext); const char *strValue = ELEKTRA_TO_CONST_STRING(EnumCheckboxState)(parameter.checkbox->value); - report(RPT_DEBUG, "%*svalue = %s\n", level + 3, "", strValue); - report(RPT_DEBUG, "%*s}\n", level + 2, ""); + report(RPT_DEBUG, "%*svalue = %s", level + 3, "", strValue); + report(RPT_DEBUG, "%*s}", level + 2, ""); break; case COMMAND_PARAMETER_TYPE_ALPHA: - report(RPT_DEBUG, "%*sAlpha("ELEKTRA_LONG_F") {\n", level + 2, "", parameter.alpha->id); - report(RPT_DEBUG, "%*sdisplayname = \"%s\"\n", level + 3, "", parameter.alpha->displayname); - report(RPT_DEBUG, "%*senvname = \"%s\"\n", level + 3, "", parameter.alpha->envname); - report(RPT_DEBUG, "%*sallowedchars = \"%s\"\n", level + 3, "", parameter.alpha->allowedchars); - report(RPT_DEBUG, "%*sminlength = " ELEKTRA_LONG_F "\n", level + 3, "", parameter.alpha->minlength); - report(RPT_DEBUG, "%*smaxlength = " ELEKTRA_LONG_F "\n", level + 3, "", parameter.alpha->maxlength); - report(RPT_DEBUG, "%*svalue = \"%s\"\n", level + 3, "", parameter.alpha->value); - report(RPT_DEBUG, "%*s}\n", level + 2, ""); + report(RPT_DEBUG, "%*sAlpha("ELEKTRA_LONG_F") {", level + 2, "", parameter.alpha->id); + report(RPT_DEBUG, "%*sdisplayname = \"%s\"", level + 3, "", parameter.alpha->displayname); + report(RPT_DEBUG, "%*senvname = \"%s\"", level + 3, "", parameter.alpha->envname); + report(RPT_DEBUG, "%*sallowedchars = \"%s\"", level + 3, "", parameter.alpha->allowedchars); + report(RPT_DEBUG, "%*sminlength = " ELEKTRA_LONG_F "", level + 3, "", parameter.alpha->minlength); + report(RPT_DEBUG, "%*smaxlength = " ELEKTRA_LONG_F "", level + 3, "", parameter.alpha->maxlength); + report(RPT_DEBUG, "%*svalue = \"%s\"", level + 3, "", parameter.alpha->value); + report(RPT_DEBUG, "%*s}", level + 2, ""); break; case COMMAND_PARAMETER_TYPE_IP: - report(RPT_DEBUG, "%*sIp("ELEKTRA_LONG_F") {\n", level + 2, "", parameter.ip->id); - report(RPT_DEBUG, "%*sdisplayname = %s\n", level + 3, "", parameter.ip->displayname); - report(RPT_DEBUG, "%*senvname = %s\n", level + 3, "", parameter.ip->envname); - report(RPT_DEBUG, "%*sv6 = %s\n", level + 3, "", parameter.ip->v6 ? "true" : "false"); - report(RPT_DEBUG, "%*svalue = %s\n", level + 3, "", parameter.ip->value); - report(RPT_DEBUG, "%*s}\n", level + 2, ""); + report(RPT_DEBUG, "%*sIp("ELEKTRA_LONG_F") {", level + 2, "", parameter.ip->id); + report(RPT_DEBUG, "%*sdisplayname = %s", level + 3, "", parameter.ip->displayname); + report(RPT_DEBUG, "%*senvname = %s", level + 3, "", parameter.ip->envname); + report(RPT_DEBUG, "%*sv6 = %s", level + 3, "", parameter.ip->v6 ? "true" : "false"); + report(RPT_DEBUG, "%*svalue = %s", level + 3, "", parameter.ip->value); + report(RPT_DEBUG, "%*s}", level + 2, ""); break; } } - report(RPT_DEBUG, "%*s]\n", level + 1, ""); - report(RPT_DEBUG, "%*s}\n", level, ""); + report(RPT_DEBUG, "%*s]", level + 1, ""); + report(RPT_DEBUG, "%*s}", level, ""); } /** dump menu entry hierarchy to screen */ @@ -379,9 +389,9 @@ void menu_dump(Menu *menu, int level) return; } - report(RPT_DEBUG, "%*sMenu("ELEKTRA_LONG_F") {\n", level, "", menu->id); - report(RPT_DEBUG, "%*sdisplayname = \"%s\"\n", level + 1, "", menu->displayname); - report(RPT_DEBUG, "%*sentries = [\n", level + 1, ""); + report(RPT_DEBUG, "%*sMenu("ELEKTRA_LONG_F") {", level, "", menu->id); + report(RPT_DEBUG, "%*sdisplayname = \"%s\"", level + 1, "", menu->displayname); + report(RPT_DEBUG, "%*sentries = [", level + 1, ""); for (kdb_long_long_t i = 0; i < menu->entriesSize; ++i) { @@ -396,8 +406,8 @@ void menu_dump(Menu *menu, int level) } } - report(RPT_DEBUG, "%*s]\n", level + 1, ""); - report(RPT_DEBUG, "%*s}\n", level, ""); + report(RPT_DEBUG, "%*s]", level + 1, ""); + report(RPT_DEBUG, "%*s}", level, ""); } #endif diff --git a/clients/lcdexec/menu.h b/clients/lcdexec/menu.h index 8b1a6027..a373498d 100644 --- a/clients/lcdexec/menu.h +++ b/clients/lcdexec/menu.h @@ -133,8 +133,9 @@ typedef struct RingParameter kdb_long_t id; const char *displayname; const char *envname; - kdb_long_long_t stringsSize; + kdb_long_long_t stringsCount; const char **strings; + size_t stringsLength; kdb_long_t value; } RingParameter; diff --git a/clients/lcdexec/specification/lcdexec-spec.ini b/clients/lcdexec/specification/lcdexec-spec.ini index 77fb8bfd..c321bff1 100644 --- a/clients/lcdexec/specification/lcdexec-spec.ini +++ b/clients/lcdexec/specification/lcdexec-spec.ini @@ -311,19 +311,19 @@ description = whether to allow the third (gray) state type = string check/type = string description = text to display when in off state -default = "off" +default = "" ; TODO: has very weird behaviour [menu/parameter/checkbox/#/ontext] type = string check/type = string description = text to display when in on state -default = "on" +default = "" ; TODO: has very weird behaviour [menu/parameter/checkbox/#/graytext] type = string check/type = string description = text to display when in gray state -default = "gray" +default = "" ; TODO: has very weird behaviour [menu/parameter/numeric/#] type = struct @@ -422,6 +422,7 @@ type = string check/type = string description = "list of alternative strings to choose from" require = +gen/struct/array/sizefield = stringsCount [menu/parameter/alpha/#] type = struct From 3e2b9d3f5cade3bbe21fdb5a9ea1c9ffc1c994fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20B=C3=B6swirth?= Date: Mon, 30 Sep 2019 16:34:29 +0200 Subject: [PATCH 72/72] all: use ni plugin instead of ini multi-line comments otherwise break everything --- .../lcdexec/specification/lcdexec-spec.ini | 2 +- .../lcdproc/specification/lcdproc-spec.ini | 4 +-- clients/lcdvc/specification/lcdvc-spec.ini | 26 +++++++++---------- server/specification/LCDd-spec.ini | 2 +- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/clients/lcdexec/specification/lcdexec-spec.ini b/clients/lcdexec/specification/lcdexec-spec.ini index c321bff1..5d965b4c 100644 --- a/clients/lcdexec/specification/lcdexec-spec.ini +++ b/clients/lcdexec/specification/lcdexec-spec.ini @@ -2,7 +2,7 @@ [] mountpoint = lcdexec.conf -infos/plugins = ini type range reference network ; path +infos/plugins = ni type range reference network ; path [lcdexec/address] check/ipaddr = diff --git a/clients/lcdproc/specification/lcdproc-spec.ini b/clients/lcdproc/specification/lcdproc-spec.ini index 197ac98b..bc8fa3cf 100644 --- a/clients/lcdproc/specification/lcdproc-spec.ini +++ b/clients/lcdproc/specification/lcdproc-spec.ini @@ -1,6 +1,6 @@ [] mountpoint = ldcproc.conf -infos/plugins = ini type range network ; path +infos/plugins = ni type range network ; path ;lcdproc ;================================================== @@ -56,7 +56,7 @@ check/type = unsigned_long description = slow down initial announcement of screens (in 1/100s) default = 0 opt = e -opt = delay +opt/long = delay [lcdproc/displayname] type = string diff --git a/clients/lcdvc/specification/lcdvc-spec.ini b/clients/lcdvc/specification/lcdvc-spec.ini index 9913b731..cc1e4b52 100644 --- a/clients/lcdvc/specification/lcdvc-spec.ini +++ b/clients/lcdvc/specification/lcdvc-spec.ini @@ -1,8 +1,8 @@ [] mountpoint = lcdvc.conf -infos/plugins = ini type range network path +infos/plugins = ni type range network path -[/lcdvc/address] +[lcdvc/address] check/ipaddr = type = string check/type = string @@ -11,7 +11,7 @@ description = Address of the LCDd server opt=a opt/long=address -[/lcdvc/port] +[lcdvc/port] check/ipaddr = type = unsigned_short check/type = unsigned_short @@ -21,7 +21,7 @@ description = Port to attach to LCDd server opt=p opt/long=port -[/lcdvc/reportlevel] +[lcdvc/reportlevel] type = unsigned_short check/type = unsigned_short check/range = 0-5 @@ -30,7 +30,7 @@ description = Sets the reporting level, defaults to warnings and errors only. opt=r opt/long=report-level -[/lcdvc/reporttosyslog] +[lcdvc/reporttosyslog] type = boolean check/type = boolean default = 0 ; TODO (elektra): default values conversion @@ -39,45 +39,45 @@ opt=s opt/long=report-to-syslog opt/arg=none -[/lcdvc/upkey] +[lcdvc/upkey] type = string check/type = string default = Up description = "Key to move the visible area of the screen upwards" -[/lcdvc/downkey] +[lcdvc/downkey] type = string check/type = string default = Down description = "Key to move the visible area of the screen downwards" -[/lcdvc/leftkey] +[lcdvc/leftkey] type = string check/type = string default = Left description = "Key to move the visible area of the screen left" -[/lcdvc/rightkey] +[lcdvc/rightkey] type = string check/type = string default = Right description = "Key to move the visible area of the screen right" -[/lcdvc/vcsdevice] +[lcdvc/vcsdevice] type = string check/type = string check/path = default = /dev/vcs description = "vcs device to use" -[/lcdvc/vcsadevice] +[lcdvc/vcsadevice] type = string check/type = string check/path = default = /dev/vcsa description = "vcsa device to use" -[/lcdvc/foreground] +[lcdvc/foreground] type = boolean check/type = boolean default = 0 ; TODO (elektra): default values conversion @@ -86,7 +86,7 @@ opt=f opt/long=foreground opt/arg=none -[/lcdvc/pidfile] +[lcdvc/pidfile] type = string check/type = string ;check/path = ; TODO (elektra): does not have to exist diff --git a/server/specification/LCDd-spec.ini b/server/specification/LCDd-spec.ini index 991138dc..ade30d2c 100644 --- a/server/specification/LCDd-spec.ini +++ b/server/specification/LCDd-spec.ini @@ -1,6 +1,6 @@ [] mountpoint = LCDd.conf -infos/plugins = ini type reference range ; hexnumber network path +infos/plugins = ni type reference range ; hexnumber network path ; TODO (elektra): Until the max plugin error is not fixed, some specifications will be left commented out