This file is indexed.

/usr/include/riemann/proto/riemann.pb-c.h is in libriemann-client-dev 1.8.1-2build1.

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
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
/* Generated by the protocol buffer compiler.  DO NOT EDIT! */
/* Generated from: riemann.proto */

#ifndef PROTOBUF_C_riemann_2eproto__INCLUDED
#define PROTOBUF_C_riemann_2eproto__INCLUDED

#include <protobuf-c/protobuf-c.h>

PROTOBUF_C__BEGIN_DECLS

#if PROTOBUF_C_VERSION_NUMBER < 1000000
# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers.
#elif 1002001 < PROTOBUF_C_MIN_COMPILER_VERSION
# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c.
#endif


typedef struct _State State;
typedef struct _Event Event;
typedef struct _Query Query;
typedef struct _Msg Msg;
typedef struct _Attribute Attribute;


/* --- enums --- */


/* --- messages --- */

struct  _State
{
  ProtobufCMessage base;
  protobuf_c_boolean has_time;
  int64_t time;
  char *state;
  char *service;
  char *host;
  char *description;
  protobuf_c_boolean has_once;
  protobuf_c_boolean once;
  size_t n_tags;
  char **tags;
  protobuf_c_boolean has_ttl;
  float ttl;
};
#define STATE__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&state__descriptor) \
    , 0,0, NULL, NULL, NULL, NULL, 0,0, 0,NULL, 0,0 }


struct  _Event
{
  ProtobufCMessage base;
  protobuf_c_boolean has_time;
  int64_t time;
  char *state;
  char *service;
  char *host;
  char *description;
  size_t n_tags;
  char **tags;
  protobuf_c_boolean has_ttl;
  float ttl;
  size_t n_attributes;
  Attribute **attributes;
  protobuf_c_boolean has_metric_sint64;
  int64_t metric_sint64;
  protobuf_c_boolean has_metric_d;
  double metric_d;
  protobuf_c_boolean has_metric_f;
  float metric_f;
};
#define EVENT__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&event__descriptor) \
    , 0,0, NULL, NULL, NULL, NULL, 0,NULL, 0,0, 0,NULL, 0,0, 0,0, 0,0 }


struct  _Query
{
  ProtobufCMessage base;
  char *string;
};
#define QUERY__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&query__descriptor) \
    , NULL }


struct  _Msg
{
  ProtobufCMessage base;
  protobuf_c_boolean has_ok;
  protobuf_c_boolean ok;
  char *error;
  size_t n_states;
  State **states;
  Query *query;
  size_t n_events;
  Event **events;
};
#define MSG__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&msg__descriptor) \
    , 0,0, NULL, 0,NULL, NULL, 0,NULL }


struct  _Attribute
{
  ProtobufCMessage base;
  char *key;
  char *value;
};
#define ATTRIBUTE__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&attribute__descriptor) \
    , NULL, NULL }


/* State methods */
void   state__init
                     (State         *message);
size_t state__get_packed_size
                     (const State   *message);
size_t state__pack
                     (const State   *message,
                      uint8_t             *out);
size_t state__pack_to_buffer
                     (const State   *message,
                      ProtobufCBuffer     *buffer);
State *
       state__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   state__free_unpacked
                     (State *message,
                      ProtobufCAllocator *allocator);
/* Event methods */
void   event__init
                     (Event         *message);
size_t event__get_packed_size
                     (const Event   *message);
size_t event__pack
                     (const Event   *message,
                      uint8_t             *out);
size_t event__pack_to_buffer
                     (const Event   *message,
                      ProtobufCBuffer     *buffer);
Event *
       event__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   event__free_unpacked
                     (Event *message,
                      ProtobufCAllocator *allocator);
/* Query methods */
void   query__init
                     (Query         *message);
size_t query__get_packed_size
                     (const Query   *message);
size_t query__pack
                     (const Query   *message,
                      uint8_t             *out);
size_t query__pack_to_buffer
                     (const Query   *message,
                      ProtobufCBuffer     *buffer);
Query *
       query__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   query__free_unpacked
                     (Query *message,
                      ProtobufCAllocator *allocator);
/* Msg methods */
void   msg__init
                     (Msg         *message);
size_t msg__get_packed_size
                     (const Msg   *message);
size_t msg__pack
                     (const Msg   *message,
                      uint8_t             *out);
size_t msg__pack_to_buffer
                     (const Msg   *message,
                      ProtobufCBuffer     *buffer);
Msg *
       msg__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   msg__free_unpacked
                     (Msg *message,
                      ProtobufCAllocator *allocator);
/* Attribute methods */
void   attribute__init
                     (Attribute         *message);
size_t attribute__get_packed_size
                     (const Attribute   *message);
size_t attribute__pack
                     (const Attribute   *message,
                      uint8_t             *out);
size_t attribute__pack_to_buffer
                     (const Attribute   *message,
                      ProtobufCBuffer     *buffer);
Attribute *
       attribute__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   attribute__free_unpacked
                     (Attribute *message,
                      ProtobufCAllocator *allocator);
/* --- per-message closures --- */

typedef void (*State_Closure)
                 (const State *message,
                  void *closure_data);
typedef void (*Event_Closure)
                 (const Event *message,
                  void *closure_data);
typedef void (*Query_Closure)
                 (const Query *message,
                  void *closure_data);
typedef void (*Msg_Closure)
                 (const Msg *message,
                  void *closure_data);
typedef void (*Attribute_Closure)
                 (const Attribute *message,
                  void *closure_data);

/* --- services --- */


/* --- descriptors --- */

extern const ProtobufCMessageDescriptor state__descriptor;
extern const ProtobufCMessageDescriptor event__descriptor;
extern const ProtobufCMessageDescriptor query__descriptor;
extern const ProtobufCMessageDescriptor msg__descriptor;
extern const ProtobufCMessageDescriptor attribute__descriptor;

PROTOBUF_C__END_DECLS


#endif  /* PROTOBUF_C_riemann_2eproto__INCLUDED */