Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion include/fluent-bit/flb_mp.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ struct flb_mp_map_header {
void *data;
};


/* */
struct flb_mp_accessor_match {
int matched;
Expand All @@ -54,6 +53,13 @@ struct flb_mp_accessor_match {
struct flb_record_accessor *ra;
};

/* wrapper to hold a list of record_accessor contexts */
struct flb_mp_accessor_ra {
int is_active;
struct flb_record_accessor *ra;
struct mk_list _head;
};

/* A context to abstract usage of record accessor when multiple patterns exists */
struct flb_mp_accessor {
int matches_size;
Expand All @@ -75,5 +81,8 @@ void flb_mp_accessor_destroy(struct flb_mp_accessor *mpa);
int flb_mp_accessor_keys_remove(struct flb_mp_accessor *mpa,
msgpack_object *map,
void **out_buf, size_t *out_size);
void flb_mp_accessor_set_active(struct flb_mp_accessor *mpa, int status);
int flb_mp_accessor_set_active_by_pattern(struct flb_mp_accessor *mpa,
const char *pattern, int status);

#endif
Loading