LCOV - code coverage report
Current view: top level - src/plugins/hosts - contract.h (source / functions) Hit Total Coverage
Test: coverage-filtered.info Lines: 1 1 100.0 %
Date: 2019-09-12 12:28:41 Functions: 0 0 -

          Line data    Source code
       1             : /**
       2             :  * @file
       3             :  *
       4             :  * @brief
       5             :  *
       6             :  * @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
       7             :  */
       8             : 
       9             : #ifndef CONTRACT_HOSTS_H_
      10             : #define CONTRACT_HOSTS_H_
      11             : 
      12             : // clang-format off
      13             : 
      14             : 
      15          98 : ksNew (30,
      16             :                 keyNew ("system/elektra/modules/hosts",
      17             :                         KEY_VALUE, "hosts plugin waits for your orders", KEY_END),
      18             :                 keyNew ("system/elektra/modules/hosts/exports", KEY_END),
      19             :                 keyNew ("system/elektra/modules/hosts/exports/get",
      20             :                         KEY_FUNC, elektraHostsGet,
      21             :                         KEY_END),
      22             :                 keyNew ("system/elektra/modules/hosts/exports/set",
      23             :                         KEY_FUNC, elektraHostsSet,
      24             :                         KEY_END),
      25             : #include "readme_hosts.c"
      26             :                 keyNew ("system/elektra/modules/hosts/infos/version",
      27             :                         KEY_VALUE, PLUGINVERSION,
      28             :                         KEY_END),
      29             :                 keyNew ("system/elektra/modules/hosts/config", KEY_END),
      30             :                 keyNew ("system/elektra/modules/hosts/config/needs", KEY_END),
      31             :                 keyNew ("system/elektra/modules/hosts/config/needs/glob/set/#0",
      32             :                         KEY_VALUE, "/ipv4/*",
      33             :                         KEY_META, "check/ipaddr", "ipv4",                           /* Preferred way to check */
      34             :                         KEY_META, "check/validation", "^[0-9.]+$", /* Can be checked additionally */
      35             :                         KEY_META, "check/validation/match", "LINE",
      36             :                         KEY_META, "check/validation/message", "Character present not suitable for ipv4 address",
      37             :                         KEY_END),
      38             :                 keyNew ("system/elektra/modules/hosts/config/needs/glob/set/#1",
      39             :                         KEY_VALUE, "/ipv6/*",
      40             :                         KEY_META, "check/ipaddr", "ipv6",                           /* Preferred way to check */
      41             :                         KEY_META, "check/validation", "^[0-9A-Fa-f.:]+$", /* Can be checked additionally */
      42             :                         KEY_META, "check/validation/match", "LINE",
      43             :                         KEY_META, "check/validation/message", "Character present not suitable for ipv6 address",
      44             :                         KEY_END),
      45             :                 keyNew ("system/elektra/modules/hosts/config/needs/glob/set/#2",
      46             :                                 KEY_VALUE, "/ipv4/*/*",
      47             :                                 KEY_END),
      48             :                 keyNew ("system/elektra/modules/hosts/config/needs/glob/set/#3",
      49             :                                 KEY_VALUE, "/ipv6/*/*",
      50             :                                 KEY_END),
      51             :                 keyNew ("system/elektra/modules/hosts/config/needs/glob/set/#4",
      52             :                         KEY_VALUE, "/*",
      53             :                         KEY_META, "trigger/error", "162",
      54             :                         KEY_END),
      55             :                 keyNew ("system/elektra/modules/hosts/config/needs/glob/set/#4/flags",
      56             :                         KEY_VALUE, "", /* disable the path matching mode */
      57             :                         KEY_END),
      58             :                 KS_END);
      59             : 
      60             : // clang-format on
      61             : 
      62             : #endif /* CONTRACT_HOSTS_H_ */

Generated by: LCOV version 1.13