Skip to content

Commit

Permalink
flb_lib: update examples and at least one test to use fluent-bit-mini…
Browse files Browse the repository at this point in the history
…mal.h

To verify that fluent-bit-minimal.h works, I updated one of the
existing unit tests to use it.  Many more unit tests could be
switched, or a new unit test entirely could be added, but this
seemed like the simplest solution for testing.

I also updated the examples to use the new header, since this
is what third party users will be looking at first.

Signed-off-by: Michael Conrad <[email protected]>
  • Loading branch information
nrdvana committed Dec 4, 2023
1 parent ab1eb0e commit 5d0e4a0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion examples/hello_world/hello_world.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
* limitations under the License.
*/

#include <fluent-bit.h>
#include <stdio.h>
#include <stdlib.h>
#include <fluent-bit-minimal.h>

int main()
{
Expand Down
4 changes: 3 additions & 1 deletion examples/out_lib/out_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
* limitations under the License.
*/

#include <fluent-bit.h>
#include <stdio.h>
#include <stdlib.h>
#include <fluent-bit-minimal.h>
#include <msgpack.h>

int my_stdout_json(void *record, size_t size, void *data)
Expand Down
2 changes: 1 addition & 1 deletion tests/runtime/in_event_test.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */

#include <fluent-bit.h>
#include <fluent-bit-minimal.h>
#include "flb_tests_runtime.h"

void flb_test_input_event()
Expand Down

0 comments on commit 5d0e4a0

Please sign in to comment.