-
Notifications
You must be signed in to change notification settings - Fork 22
/
pinba.pb-c.h
99 lines (79 loc) · 2.6 KB
/
pinba.pb-c.h
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
/* Generated by the protocol buffer compiler. DO NOT EDIT! */
#ifndef PROTOBUF_C_pinba_2eproto__INCLUDED
#define PROTOBUF_C_pinba_2eproto__INCLUDED
#include "protobuf-c.h"
PROTOBUF_C_BEGIN_DECLS
typedef struct _Pinba__Request Pinba__Request;
/* --- enums --- */
/* --- messages --- */
struct _Pinba__Request
{
ProtobufCMessage base;
char *hostname;
char *server_name;
char *script_name;
uint32_t request_count;
uint32_t document_size;
uint32_t memory_peak;
float request_time;
float ru_utime;
float ru_stime;
size_t n_timer_hit_count;
uint32_t *timer_hit_count;
size_t n_timer_value;
float *timer_value;
size_t n_timer_tag_count;
uint32_t *timer_tag_count;
size_t n_timer_tag_name;
uint32_t *timer_tag_name;
size_t n_timer_tag_value;
uint32_t *timer_tag_value;
size_t n_dictionary;
char **dictionary;
protobuf_c_boolean has_status;
uint32_t status;
protobuf_c_boolean has_memory_footprint;
uint32_t memory_footprint;
size_t n_requests;
Pinba__Request **requests;
char *schema;
size_t n_tag_name;
uint32_t *tag_name;
size_t n_tag_value;
uint32_t *tag_value;
size_t n_timer_ru_utime;
float *timer_ru_utime;
size_t n_timer_ru_stime;
float *timer_ru_stime;
};
#define PINBA__REQUEST__INIT \
{ PROTOBUF_C_MESSAGE_INIT (&pinba__request__descriptor) \
, NULL, NULL, NULL, 0, 0, 0, 0, 0, 0, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,0, 0,0, 0,NULL, NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL }
/* Pinba__Request methods */
void pinba__request__init
(Pinba__Request *message);
size_t pinba__request__get_packed_size
(const Pinba__Request *message);
size_t pinba__request__pack
(const Pinba__Request *message,
uint8_t *out);
size_t pinba__request__pack_to_buffer
(const Pinba__Request *message,
ProtobufCBuffer *buffer);
Pinba__Request *
pinba__request__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data);
void pinba__request__free_unpacked
(Pinba__Request *message,
ProtobufCAllocator *allocator);
/* --- per-message closures --- */
typedef void (*Pinba__Request_Closure)
(const Pinba__Request *message,
void *closure_data);
/* --- services --- */
/* --- descriptors --- */
extern const ProtobufCMessageDescriptor pinba__request__descriptor;
PROTOBUF_C_END_DECLS
#endif /* PROTOBUF_pinba_2eproto__INCLUDED */