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 25f8f5e commit 9016ad8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions examples/hello_world/hello_world.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
* limitations under the License.
*/

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

int main()
Expand Down
2 changes: 2 additions & 0 deletions examples/out_lib/out_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
* limitations under the License.
*/

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

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 9016ad8

Please sign in to comment.