Skip to content

Commit ead056e

Browse files
committed
Initial implementation for in_amqp plugin
Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
1 parent a4c158d commit ead056e

5 files changed

Lines changed: 696 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,6 +1332,13 @@ if (FLB_IN_EBPF)
13321332

13331333
endif()
13341334

1335+
# AMQP
1336+
# ==========
1337+
find_package(rabbitmq-c)
1338+
if(FLB_IN_AMQP AND (NOT rabbitmq-c_FOUND))
1339+
FLB_OPTION(FLB_IN_AMQP OFF)
1340+
endif()
1341+
13351342
# Pthread Local Storage
13361343
# =====================
13371344
# By default we expect the compiler already support thread local storage

plugins/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ REGISTER_IN_PLUGIN("in_mqtt")
340340
REGISTER_IN_PLUGIN("in_lib")
341341
REGISTER_IN_PLUGIN("in_forward")
342342
REGISTER_IN_PLUGIN("in_random")
343+
REGISTER_IN_PLUGIN("in_amqp")
343344

344345
# PROCESSORS
345346
# ==========

plugins/in_amqp/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
set(src
2+
in_amqp.c)
3+
4+
FLB_PLUGIN(in_amqp "${src}" rabbitmq::rabbitmq)

0 commit comments

Comments
 (0)