nmsg 1.1.2
http.pb-c.h
1/* Generated by the protocol buffer compiler. DO NOT EDIT! */
2/* Generated from: nmsg/base/http.proto */
3
4#ifndef PROTOBUF_C_nmsg_2fbase_2fhttp_2eproto__INCLUDED
5#define PROTOBUF_C_nmsg_2fbase_2fhttp_2eproto__INCLUDED
6
7#include <protobuf-c/protobuf-c.h>
8
9PROTOBUF_C__BEGIN_DECLS
10
11#if PROTOBUF_C_VERSION_NUMBER < 1000000
12# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers.
13#elif 1004001 < PROTOBUF_C_MIN_COMPILER_VERSION
14# 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.
15#endif
16
17
19
20
21/* --- enums --- */
22
23typedef enum _Nmsg__Base__Http__HttpType {
24 NMSG__BASE__HTTP__HTTP_TYPE__unknown = 0,
25 NMSG__BASE__HTTP__HTTP_TYPE__sinkhole = 1
26 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(NMSG__BASE__HTTP__HTTP_TYPE)
27} Nmsg__Base__Http__HttpType;
28
29/* --- messages --- */
30
32{
33 ProtobufCMessage base;
34 Nmsg__Base__Http__HttpType type;
35 protobuf_c_boolean has_srcip;
36 ProtobufCBinaryData srcip;
37 protobuf_c_boolean has_srchost;
38 ProtobufCBinaryData srchost;
39 protobuf_c_boolean has_srcport;
40 uint32_t srcport;
41 protobuf_c_boolean has_dstip;
42 ProtobufCBinaryData dstip;
43 protobuf_c_boolean has_dstport;
44 uint32_t dstport;
45 protobuf_c_boolean has_request;
46 ProtobufCBinaryData request;
47 protobuf_c_boolean has_p0f_genre;
48 ProtobufCBinaryData p0f_genre;
49 protobuf_c_boolean has_p0f_detail;
50 ProtobufCBinaryData p0f_detail;
51 protobuf_c_boolean has_p0f_dist;
52 int32_t p0f_dist;
53 protobuf_c_boolean has_p0f_link;
54 ProtobufCBinaryData p0f_link;
55 protobuf_c_boolean has_p0f_tos;
56 ProtobufCBinaryData p0f_tos;
57 protobuf_c_boolean has_p0f_fw;
58 uint32_t p0f_fw;
59 protobuf_c_boolean has_p0f_nat;
60 uint32_t p0f_nat;
61 protobuf_c_boolean has_p0f_real;
62 uint32_t p0f_real;
63 protobuf_c_boolean has_p0f_score;
64 int32_t p0f_score;
65 protobuf_c_boolean has_p0f_mflags;
66 uint32_t p0f_mflags;
67 protobuf_c_boolean has_p0f_uptime;
68 int32_t p0f_uptime;
69};
70#define NMSG__BASE__HTTP__INIT \
71 { PROTOBUF_C_MESSAGE_INIT (&nmsg__base__http__descriptor) \
72, NMSG__BASE__HTTP__HTTP_TYPE__unknown, 0, {0,NULL}, 0, {0,NULL}, 0, 0, 0, {0,NULL}, 0, 0, 0, {0,NULL}, 0, {0,NULL}, 0, {0,NULL}, 0, 0, 0, {0,NULL}, 0, {0,NULL}, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
73
74
75/* Nmsg__Base__Http methods */
76void nmsg__base__http__init
77 (Nmsg__Base__Http *message);
78size_t nmsg__base__http__get_packed_size
79 (const Nmsg__Base__Http *message);
80size_t nmsg__base__http__pack
81 (const Nmsg__Base__Http *message,
82 uint8_t *out);
83size_t nmsg__base__http__pack_to_buffer
84 (const Nmsg__Base__Http *message,
85 ProtobufCBuffer *buffer);
87 nmsg__base__http__unpack
88 (ProtobufCAllocator *allocator,
89 size_t len,
90 const uint8_t *data);
91void nmsg__base__http__free_unpacked
92 (Nmsg__Base__Http *message,
93 ProtobufCAllocator *allocator);
94/* --- per-message closures --- */
95
96typedef void (*Nmsg__Base__Http_Closure)
97 (const Nmsg__Base__Http *message,
98 void *closure_data);
99
100/* --- services --- */
101
102
103/* --- descriptors --- */
104
105extern const ProtobufCMessageDescriptor nmsg__base__http__descriptor;
106extern const ProtobufCEnumDescriptor nmsg__base__http__http_type__descriptor;
107
108PROTOBUF_C__END_DECLS
109
110
111#endif /* PROTOBUF_C_nmsg_2fbase_2fhttp_2eproto__INCLUDED */