Coverage Report

Created: 2023-09-25 07:17

/src/neomutt/helpbar/config.c
Line
Count
Source
1
/**
2
 * @file
3
 * Config used by Help Bar
4
 *
5
 * @authors
6
 * Copyright (C) 2020 Richard Russon <rich@flatcap.org>
7
 *
8
 * @copyright
9
 * This program is free software: you can redistribute it and/or modify it under
10
 * the terms of the GNU General Public License as published by the Free Software
11
 * Foundation, either version 2 of the License, or (at your option) any later
12
 * version.
13
 *
14
 * This program is distributed in the hope that it will be useful, but WITHOUT
15
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16
 * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
17
 * details.
18
 *
19
 * You should have received a copy of the GNU General Public License along with
20
 * this program.  If not, see <http://www.gnu.org/licenses/>.
21
 */
22
23
/**
24
 * @page helpbar_config Config used by Help Bar
25
 *
26
 * Config used by Help Bar
27
 */
28
29
#include "config.h"
30
#include <stddef.h>
31
#include <stdbool.h>
32
#include "config/lib.h"
33
34
/**
35
 * HelpbarVars - Config definitions for the Helpbar
36
 */
37
static struct ConfigDef HelpbarVars[] = {
38
  // clang-format off
39
  { "help", DT_BOOL, true, 0, NULL,
40
    "Display a help line with common key bindings"
41
  },
42
  { NULL },
43
  // clang-format on
44
};
45
46
/**
47
 * config_init_helpbar - Register helpbar config variables - Implements ::module_init_config_t - @ingroup cfg_module_api
48
 */
49
bool config_init_helpbar(struct ConfigSet *cs)
50
9.94k
{
51
9.94k
  return cs_register_variables(cs, HelpbarVars, DT_NO_FLAGS);
52
9.94k
}