This file is indexed.

/usr/include/lirc/lirc_options.h is in liblirc-dev 0.10.0-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/****************************************************************************
** options.h ***************************************************************
****************************************************************************/

/**
 * @file lirc_options.h
 * @brief Options management: options file, parse and retrieve.
 *
 * @ingroup private_api
 */

#ifndef LIRC_OPTIONS
#define LIRC_OPTIONS

#ifdef __cplusplus
extern "C" {
#endif

#include "lirc_log.h"
#include "ciniparser.h"

/* Global options instance with all option values. */
extern dictionary* lirc_options;

/* Set given option to value (always a string). */
void options_set_opt(const char* key, const char* value);

/** Parse and store a loglevel, returning value (possibly LIRC_BADLEVEL). */
loglevel_t options_set_loglevel(const char* optarg);

/**
 * Return loglevel based on (falling priority)
 *  - LIRC_LOGLEVEL in environment,
 *  - If app is non-NULL the 'debug' value in the [app]section
 *  - The 'debug' value in the [lircd] options file section.
 *  - The hardcoded default LIRC_DEBUG
 */
loglevel_t options_get_app_loglevel(const char* app);

/* Get a [string|int|boolean] option with 0 as default value. */
const char* options_getstring(const char* const key);
int options_getint(const char* const key);
int options_getboolean(const char* const key);


/*
 * Set unset options using values in defaults list.
 * Arguments:
 *   - defaults: NULL-terminated list of key, value [, key, value]...
 */
void options_add_defaults(const char* const defaults[]);


/*
 *   Parse global option file and command line. On exit, all values
 *   @ingroup  private_api
 *   are set, possibly to defaults.
 *   Arguments:
 *      - argc, argv; As handled to main()
 *      - options-file: Path to options file. If NULL, the default one
 *        will be used.
 *      - options_load: Function called as options_load(argc, argv, path).
 *        argc and argv are as given to options_init; path is the absolute
 *        path to the configuration file.
 *
 */
void options_load(int argc,
		  char** const argv,
		  const char* options_file,
		  void (*options_load)(int, char** const));


/* Reset options to pristine state. */
void options_unload(void);

#ifdef __cplusplus
}
#endif

#endif