diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 12:08:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 12:08:18 +0000 |
commit | 5da14042f70711ea5cf66e034699730335462f66 (patch) | |
tree | 0f6354ccac934ed87a2d555f45be4c831cf92f4a /src/fluent-bit/lib/monkey/deps/flb_libco/libco.h | |
parent | Releasing debian version 1.44.3-2. (diff) | |
download | netdata-5da14042f70711ea5cf66e034699730335462f66.tar.xz netdata-5da14042f70711ea5cf66e034699730335462f66.zip |
Merging upstream version 1.45.3+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/fluent-bit/lib/monkey/deps/flb_libco/libco.h')
-rw-r--r-- | src/fluent-bit/lib/monkey/deps/flb_libco/libco.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/fluent-bit/lib/monkey/deps/flb_libco/libco.h b/src/fluent-bit/lib/monkey/deps/flb_libco/libco.h new file mode 100644 index 000000000..f2e2487aa --- /dev/null +++ b/src/fluent-bit/lib/monkey/deps/flb_libco/libco.h @@ -0,0 +1,28 @@ +/* + libco v18 (2016-09-14) + author: byuu + license: public domain +*/ + +#ifndef LIBCO_H +#define LIBCO_H + +#include <stddef.h> + +#ifdef __cplusplus +extern "C" { +#endif + +typedef void* cothread_t; + +cothread_t co_active(); +cothread_t co_create(unsigned int, void (*)(void), size_t *); +void co_delete(cothread_t); +void co_switch(cothread_t); + +#ifdef __cplusplus +} +#endif + +/* ifndef LIBCO_H */ +#endif |