Skip to content

Commit 88b71fb

Browse files
committed
input: add setting event_type to match proposed struct changes
This change just adds setting the empty value for event_type on input. Inputs do not set event type. This is related to a prosposed change in the fluent-bit library to ensure that the struct is the same format as the proposed change to enable output plugins to set their event type. Signed-off-by: jmccormick7 <[email protected]>
1 parent 2211c6d commit 88b71fb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

input/flb_plugin.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ struct flb_plugin_proxy_def {
3838
int flags;
3939
char *name;
4040
char *description;
41+
int event_type;
4142
};
4243

4344
#endif

input/input.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ func FLBPluginRegister(def unsafe.Pointer, name, desc string) int {
5252
p.flags = 0
5353
p.name = C.CString(name)
5454
p.description = C.CString(desc)
55+
p.event_type = 0
5556
return 0
5657
}
5758

0 commit comments

Comments
 (0)