This file is indexed.

/usr/share/doc/mongrel2-core/examples/kegogi/src/param.h is in mongrel2-core 1.11.0-1build1.

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

#include <bstring.h>
#include <adt/dict.h>

#define MAX_PARAM_COUNT 100

typedef enum ParamType {
    STRING,
    PATTERN, 
    DICT
} ParamType;

typedef struct ParamDict {
    dict_t *dict;
} ParamDict;

typedef struct Param {
    bstring name;
    ParamType type;
    union {
        bstring string;
        bstring pattern;
        ParamDict *dict;
    } data;
} Param;

Param *Param_create(bstring name, ParamType type, void *val);
Param *Param_parse(bstring name, char **pP, char **pPe);
Param *Param_copy(Param *p);
void Param_destroy(Param *p);

ParamDict *ParamDict_create();
ParamDict *ParamDict_copy();
void ParamDict_destroy(ParamDict *pd);
void ParamDict_set(ParamDict *pd, Param *p);
Param *ParamDict_get(ParamDict *pd, bstring name);

#define ParamDict_foreach(pd, p, d)                                     \
    for(d = dict_first(pd->dict), p = (d == NULL) ? NULL : dnode_get(d); \
        d != NULL;                                                      \
        d = dict_next(pd->dict, d), p = (d == NULL) ? NULL : dnode_get(d))


#endif