Skip to content

Commit 187f4e9

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

File tree

5 files changed

+713
-0
lines changed

5 files changed

+713
-0
lines changed

CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,6 +1332,14 @@ 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+
message(STATUS "rabbitmq-c is not found. Disabling AMQP support.")
1340+
FLB_OPTION(FLB_IN_AMQP OFF)
1341+
endif()
1342+
13351343
# Pthread Local Storage
13361344
# =====================
13371345
# 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)