MOS Source Code
Loading...
Searching...
No Matches
syslog.pb.h
Go to the documentation of this file.
1/* Automatically generated nanopb header */
2/* Generated by nanopb-0.4.9-dev */
3
4#ifndef PB_SYSLOG_PB_H_INCLUDED
5#define PB_SYSLOG_PB_H_INCLUDED
6#include <pb.h>
7
8#if PB_PROTO_HEADER_VERSION != 40
9#error Regenerate this file with the current version of nanopb generator.
10#endif
11
12/* Enum definitions */
22
23/* Struct definitions */
24typedef struct _pb_thread {
26 char name[32];
27} pb_thread;
28
29typedef struct _pb_process {
31 char name[32];
33
34typedef struct _pb_source_location {
35 char filename[32];
37 char function[32];
39
45
54
55
56#ifdef __cplusplus
57extern "C" {
58#endif
59
60/* Helper constants for enums */
61#define _syslog_level_MIN syslog_level_UNSET
62#define _syslog_level_MAX syslog_level_FATAL
63#define _syslog_level_ARRAYSIZE ((syslog_level)(syslog_level_FATAL+1))
64
65
66
67
68#define pb_syslog_source_info_level_ENUMTYPE syslog_level
69
70
71
72/* Initializer values for message structs */
73#define pb_thread_init_default {0, ""}
74#define pb_process_init_default {0, ""}
75#define pb_source_location_init_default {"", 0, ""}
76#define pb_syslog_source_info_init_default {_syslog_level_MIN, 0, pb_source_location_init_default}
77#define pb_syslog_message_init_default {0, pb_syslog_source_info_init_default, "", pb_thread_init_default, pb_process_init_default, 0}
78#define pb_thread_init_zero {0, ""}
79#define pb_process_init_zero {0, ""}
80#define pb_source_location_init_zero {"", 0, ""}
81#define pb_syslog_source_info_init_zero {_syslog_level_MIN, 0, pb_source_location_init_zero}
82#define pb_syslog_message_init_zero {0, pb_syslog_source_info_init_zero, "", pb_thread_init_zero, pb_process_init_zero, 0}
83
84/* Field tags (for use in manual encoding/decoding) */
85#define pb_thread_tid_tag 1
86#define pb_thread_name_tag 2
87#define pb_process_pid_tag 1
88#define pb_process_name_tag 2
89#define pb_source_location_filename_tag 1
90#define pb_source_location_line_tag 2
91#define pb_source_location_function_tag 3
92#define pb_syslog_source_info_level_tag 1
93#define pb_syslog_source_info_featid_tag 2
94#define pb_syslog_source_info_source_location_tag 3
95#define pb_syslog_message_timestamp_tag 1
96#define pb_syslog_message_info_tag 2
97#define pb_syslog_message_message_tag 3
98#define pb_syslog_message_thread_tag 4
99#define pb_syslog_message_process_tag 5
100#define pb_syslog_message_cpu_id_tag 6
101
102/* Struct field encoding specification for nanopb */
103#define pb_thread_FIELDLIST(X, a) \
104X(a, STATIC, SINGULAR, UINT32, tid, 1) \
105X(a, STATIC, SINGULAR, STRING, name, 2)
106#define pb_thread_CALLBACK NULL
107#define pb_thread_DEFAULT NULL
108
109#define pb_process_FIELDLIST(X, a) \
110X(a, STATIC, SINGULAR, UINT32, pid, 1) \
111X(a, STATIC, SINGULAR, STRING, name, 2)
112#define pb_process_CALLBACK NULL
113#define pb_process_DEFAULT NULL
114
115#define pb_source_location_FIELDLIST(X, a) \
116X(a, STATIC, SINGULAR, STRING, filename, 1) \
117X(a, STATIC, SINGULAR, UINT32, line, 2) \
118X(a, STATIC, SINGULAR, STRING, function, 3)
119#define pb_source_location_CALLBACK NULL
120#define pb_source_location_DEFAULT NULL
121
122#define pb_syslog_source_info_FIELDLIST(X, a) \
123X(a, STATIC, SINGULAR, UENUM, level, 1) \
124X(a, STATIC, SINGULAR, UINT32, featid, 2) \
125X(a, STATIC, SINGULAR, MESSAGE, source_location, 3)
126#define pb_syslog_source_info_CALLBACK NULL
127#define pb_syslog_source_info_DEFAULT NULL
128#define pb_syslog_source_info_source_location_MSGTYPE pb_source_location
129
130#define pb_syslog_message_FIELDLIST(X, a) \
131X(a, STATIC, SINGULAR, UINT64, timestamp, 1) \
132X(a, STATIC, SINGULAR, MESSAGE, info, 2) \
133X(a, STATIC, SINGULAR, STRING, message, 3) \
134X(a, STATIC, SINGULAR, MESSAGE, thread, 4) \
135X(a, STATIC, SINGULAR, MESSAGE, process, 5) \
136X(a, STATIC, SINGULAR, UINT32, cpu_id, 6)
137#define pb_syslog_message_CALLBACK NULL
138#define pb_syslog_message_DEFAULT NULL
139#define pb_syslog_message_info_MSGTYPE pb_syslog_source_info
140#define pb_syslog_message_thread_MSGTYPE pb_thread
141#define pb_syslog_message_process_MSGTYPE pb_process
142
143extern const pb_msgdesc_t pb_thread_msg;
144extern const pb_msgdesc_t pb_process_msg;
145extern const pb_msgdesc_t pb_source_location_msg;
146extern const pb_msgdesc_t pb_syslog_source_info_msg;
147extern const pb_msgdesc_t pb_syslog_message_msg;
148
149/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
150#define pb_thread_fields &pb_thread_msg
151#define pb_process_fields &pb_process_msg
152#define pb_source_location_fields &pb_source_location_msg
153#define pb_syslog_source_info_fields &pb_syslog_source_info_msg
154#define pb_syslog_message_fields &pb_syslog_message_msg
155
156/* Maximum encoded size of messages (where known) */
157#define SYSLOG_PB_H_MAX_SIZE pb_syslog_message_size
158#define pb_process_size 39
159#define pb_source_location_size 72
160#define pb_syslog_message_size 697
161#define pb_syslog_source_info_size 82
162#define pb_thread_size 39
163
164#ifdef __cplusplus
165} /* extern "C" */
166#endif
167
168#endif
unsigned int uint32_t
Definition pb_syshdr.h:24
unsigned long long uint64_t
Definition pb_syshdr.h:26
const char * name
Definition slab.c:31
uint32_t pid
Definition syslog.pb.h:30
pb_process process
Definition syslog.pb.h:51
uint64_t timestamp
Definition syslog.pb.h:47
pb_syslog_source_info info
Definition syslog.pb.h:48
uint32_t cpu_id
Definition syslog.pb.h:52
pb_thread thread
Definition syslog.pb.h:50
syslog_level level
Definition syslog.pb.h:41
pb_source_location source_location
Definition syslog.pb.h:43
uint32_t tid
Definition syslog.pb.h:25
const pb_msgdesc_t pb_syslog_message_msg
const pb_msgdesc_t pb_process_msg
const pb_msgdesc_t pb_source_location_msg
const pb_msgdesc_t pb_thread_msg
syslog_level
Definition syslog.pb.h:13
@ syslog_level_WARN
Definition syslog.pb.h:18
@ syslog_level_EMERG
Definition syslog.pb.h:19
@ syslog_level_INFO2
Definition syslog.pb.h:15
@ syslog_level_EMPH
Definition syslog.pb.h:17
@ syslog_level_FATAL
Definition syslog.pb.h:20
@ syslog_level_INFO
Definition syslog.pb.h:16
@ syslog_level_UNSET
Definition syslog.pb.h:14
const pb_msgdesc_t pb_syslog_source_info_msg