summaryrefslogtreecommitdiff
path: root/librabbitmq/amqp.h
diff options
context:
space:
mode:
Diffstat (limited to 'librabbitmq/amqp.h')
-rw-r--r--librabbitmq/amqp.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/librabbitmq/amqp.h b/librabbitmq/amqp.h
index c8d0127..8c05fd1 100644
--- a/librabbitmq/amqp.h
+++ b/librabbitmq/amqp.h
@@ -1,3 +1,4 @@
+/** @file */
/*
* ***** BEGIN LICENSE BLOCK *****
* Version: MIT
@@ -33,6 +34,16 @@
#ifndef AMQP_H
#define AMQP_H
+/**
+ * @def AMQP_BEGIN_DECLS
+ * @internal
+ * Conditionally wrapping the file in an extern "C"
+ *
+ * @def AMQP_END_DECLS
+ * @internal
+ * Conditionally wrapping the file in an extern "C"
+ */
+
#ifdef __cplusplus
#define AMQP_BEGIN_DECLS extern "C" {
#define AMQP_END_DECLS }
@@ -293,6 +304,11 @@ typedef enum amqp_sasl_method_enum_ {
/* Opaque struct. */
typedef struct amqp_connection_state_t_ *amqp_connection_state_t;
+/**
+ * Gets the version of rabbitmq-c
+ *
+ * @return string representation of the library. Statically allocated, does not need to be freed
+ */
AMQP_PUBLIC_FUNCTION
char const *
AMQP_CALL amqp_version(void);