Skip to content

Commit

Permalink
Move official includes to rabbitmq-c/ directory
Browse files Browse the repository at this point in the history
Move official rabbitmq-c includes under the rabbitmq-c, thus new
programs should use the following include paths:
amqp.h -> rabbitmq-c/amqp.h
amqp_tcp_socket.h -> rabbitmq-c/tcp_socket.h
amqp_ssl_socket .h-> rabbitmq-c/ssl_socket.h
amqp_framing.h -> rabbitmq-c/framing.h

Existing include files are left with a warning message and including
their new equivalents, so existing programs should compile without
modification.

Signed-off-by: GitHub <noreply@github.com>
  • Loading branch information
alanxz committed Apr 6, 2021
1 parent 5a75fbe commit c8c1170
Show file tree
Hide file tree
Showing 35 changed files with 4,123 additions and 3,954 deletions.
6 changes: 3 additions & 3 deletions cmake/VersionFunctions.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function(get_library_version VERSION_ARG)
file(STRINGS include/amqp.h _API_VERSION_MAJOR REGEX "^#define AMQP_VERSION_MAJOR [0-9]+$")
file(STRINGS include/amqp.h _API_VERSION_MINOR REGEX "^#define AMQP_VERSION_MINOR [0-9]+$")
file(STRINGS include/amqp.h _API_VERSION_PATCH REGEX "^#define AMQP_VERSION_PATCH [0-9]+$")
file(STRINGS include/rabbitmq-c/amqp.h _API_VERSION_MAJOR REGEX "^#define AMQP_VERSION_MAJOR [0-9]+$")
file(STRINGS include/rabbitmq-c/amqp.h _API_VERSION_MINOR REGEX "^#define AMQP_VERSION_MINOR [0-9]+$")
file(STRINGS include/rabbitmq-c/amqp.h _API_VERSION_PATCH REGEX "^#define AMQP_VERSION_PATCH [0-9]+$")

string(REGEX MATCH "[0-9]+" _API_VERSION_MAJOR ${_API_VERSION_MAJOR})
string(REGEX MATCH "[0-9]+" _API_VERSION_MINOR ${_API_VERSION_MINOR})
Expand Down
4 changes: 2 additions & 2 deletions examples/amqp_bind.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
#include <stdlib.h>
#include <string.h>

#include <amqp.h>
#include <amqp_tcp_socket.h>
#include <rabbitmq-c/amqp.h>
#include <rabbitmq-c/tcp_socket.h>

#include "utils.h"

Expand Down
4 changes: 2 additions & 2 deletions examples/amqp_connect_timeout.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
#include <stdlib.h>
#include <string.h>

#include <amqp.h>
#include <amqp_tcp_socket.h>
#include <rabbitmq-c/amqp.h>
#include <rabbitmq-c/tcp_socket.h>

#include <assert.h>

Expand Down
4 changes: 2 additions & 2 deletions examples/amqp_consumer.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
#include <stdlib.h>
#include <string.h>

#include <amqp.h>
#include <amqp_tcp_socket.h>
#include <rabbitmq-c/amqp.h>
#include <rabbitmq-c/tcp_socket.h>

#include <assert.h>

Expand Down
4 changes: 2 additions & 2 deletions examples/amqp_exchange_declare.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
#include <stdlib.h>
#include <string.h>

#include <amqp.h>
#include <amqp_tcp_socket.h>
#include <rabbitmq-c/amqp.h>
#include <rabbitmq-c/tcp_socket.h>

#include "utils.h"

Expand Down
4 changes: 2 additions & 2 deletions examples/amqp_listen.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
#include <stdlib.h>
#include <string.h>

#include <amqp.h>
#include <amqp_tcp_socket.h>
#include <rabbitmq-c/amqp.h>
#include <rabbitmq-c/tcp_socket.h>

#include <assert.h>

Expand Down
4 changes: 2 additions & 2 deletions examples/amqp_listenq.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
#include <stdlib.h>
#include <string.h>

#include <amqp.h>
#include <amqp_tcp_socket.h>
#include <rabbitmq-c/amqp.h>
#include <rabbitmq-c/tcp_socket.h>

#include <assert.h>

Expand Down
4 changes: 2 additions & 2 deletions examples/amqp_producer.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
#include <stdlib.h>
#include <string.h>

#include <amqp.h>
#include <amqp_tcp_socket.h>
#include <rabbitmq-c/amqp.h>
#include <rabbitmq-c/tcp_socket.h>

#include "utils.h"

Expand Down
4 changes: 2 additions & 2 deletions examples/amqp_rpc_sendstring_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
#include <stdlib.h>
#include <string.h>

#include <amqp.h>
#include <amqp_tcp_socket.h>
#include <rabbitmq-c/amqp.h>
#include <rabbitmq-c/tcp_socket.h>

#include <assert.h>

Expand Down
4 changes: 2 additions & 2 deletions examples/amqp_sendstring.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
#include <stdlib.h>
#include <string.h>

#include <amqp.h>
#include <amqp_tcp_socket.h>
#include <rabbitmq-c/amqp.h>
#include <rabbitmq-c/tcp_socket.h>

#include "utils.h"

Expand Down
4 changes: 2 additions & 2 deletions examples/amqp_ssl_connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
#include <stdlib.h>
#include <string.h>

#include <amqp.h>
#include <amqp_ssl_socket.h>
#include <rabbitmq-c/amqp.h>
#include <rabbitmq-c/ssl_socket.h>

#include <assert.h>

Expand Down
4 changes: 2 additions & 2 deletions examples/amqp_unbind.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
#include <stdlib.h>
#include <string.h>

#include <amqp.h>
#include <amqp_tcp_socket.h>
#include <rabbitmq-c/amqp.h>
#include <rabbitmq-c/tcp_socket.h>

#include "utils.h"

Expand Down
4 changes: 2 additions & 2 deletions examples/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
#include <stdlib.h>
#include <string.h>

#include <amqp.h>
#include <amqp_framing.h>
#include <rabbitmq-c/amqp.h>
#include <rabbitmq-c/framing.h>
#include <stdint.h>

#include "utils.h"
Expand Down

0 comments on commit c8c1170

Please sign in to comment.