Hi everyone,
I’m trying to use the Fluent Bit C API in my C# application instead of running the fluent-bit.exe directly. I understand that I need to use P/Invoke to call C functions from C#, but I’m not sure how to convert or wrap the Fluent Bit C API functions into a form that can be used in C#.
Has anyone here successfully integrated Fluent Bit’s C API into a .NET (C#) application? If so, could you please guide me on:
1. How to build Fluent Bit as a DLL?
2. How to create a wrapper or properly expose the C functions for use with P/Invoke?
I’ve already followed the documentation, but I wasn’t able to generate a usable DLL. Any guidance on how to convert Fluent Bit C code into a DLL or wrapper for use in C# would be greatly appreciated.
Thanks in advance!