This file is indexed.

/usr/include/bglibs/cli/cli.h is in libbg1-dev 1.106-1.1.

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
#ifndef CLI__H__
#define CLI__H__

enum cli_option_type {
  CLI_FLAG,
  CLI_COUNTER,
  CLI_INTEGER,
  CLI_UINTEGER,
  CLI_STRING,
  CLI_STRINGLIST,
  CLI_FUNCTION,
  CLI_SEPARATOR,
};
typedef enum cli_option_type cli_option_type;

struct cli_option
{
  char ch;
  const char* name;
  cli_option_type type;
  int flag_value;
  void* dataptr;
  const char* helpstr;
  const char* defaultstr;
};
typedef struct cli_option cli_option;

struct cli_stringlist
{
  const char* string;
  const struct cli_option* option;
  struct cli_stringlist* next;
};
typedef struct cli_stringlist cli_stringlist;

typedef void cli_function(const char* string, const struct cli_option* option);

/* The following are required from the CLI program */
extern const char cli_help_prefix[];
extern const char cli_help_suffix[];
extern const char cli_args_usage[];
extern const int cli_args_min;
extern const int cli_args_max;
extern cli_option cli_options[];
extern int cli_main(int argc, char** argv);

/* The following are provided to the CLI program */
extern const char* argv0;
extern const char* argv0base;
extern const char* argv0dir;
extern void usage(int exit_value, const char* errorstr);
extern void cli_show_help(void);

#endif