This file is indexed.

/usr/include/grok_match.h is in libgrok-dev 1.20110708.1-1ubuntu1.

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
/**
 * @file grok_match.h
 */
#ifndef _GROK_MATCH_H_
#define _GROK_MATCH_H_

#include "grok_capture_xdr.h"

typedef struct grok_match {
  /** The grok_t instance that generated this match.
   * This is a pointer to the grok parameter given to grok_exec().
   * @see grok_exec()
   */
  const grok_t *grok;

  /** Pointer to the string matched.
   * This is a pointer to the text parameter given to grok_exec() 
   * @see grok_exec()
   */
  const char *subject;

  /** Start position of the match. 0 is beginning of string */
  int start;

  /** End position of match. */
  int end;
} grok_match_t;

const grok_capture * grok_match_get_named_capture(const grok_match_t *gm,
                                                  const char *name);
int grok_match_get_named_substring(const grok_match_t *gm, const char *name,
                                   const char **substr, int *len);

void grok_match_walk_init(const grok_match_t *gm);
int grok_match_walk_next(const grok_match_t *gm,
                         char **name, int *namelen,
                         const char **substr, int *substrlen);
void grok_match_walk_end(const grok_match_t *gm);

#endif /*  _GROK_MATCH_H_ */