summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2017-12-04 21:32:34 -0800
committerAlan Antonuk <alan.antonuk@gmail.com>2017-12-04 21:32:34 -0800
commitcf96c0bec713ab6f1ac6528504bcfde603364479 (patch)
treec398a55e0c8c69a099f76fe6da0dd874a8e56cae /examples
parentbd7c497e5d1a1924661df2190d3c38f11add5b2b (diff)
downloadrabbitmq-c-cf96c0bec713ab6f1ac6528504bcfde603364479.tar.gz
Examples: remove #include <amqp_framing.h>
amqp_framing.h is included by amqp.h, user code should not need to include this.
Diffstat (limited to 'examples')
-rw-r--r--examples/amqp_bind.c5
-rw-r--r--examples/amqp_connect_timeout.c2
-rw-r--r--examples/amqp_consumer.c5
-rw-r--r--examples/amqp_exchange_declare.c5
-rw-r--r--examples/amqp_listen.c5
-rw-r--r--examples/amqp_listenq.c5
-rw-r--r--examples/amqp_producer.c5
-rw-r--r--examples/amqp_rpc_sendstring_client.c5
-rw-r--r--examples/amqp_sendstring.c5
-rw-r--r--examples/amqp_unbind.c5
-rw-r--r--examples/amqps_bind.c4
-rw-r--r--examples/amqps_connect_timeout.c3
-rw-r--r--examples/amqps_consumer.c4
-rw-r--r--examples/amqps_exchange_declare.c4
-rw-r--r--examples/amqps_listen.c4
-rw-r--r--examples/amqps_listenq.c4
-rw-r--r--examples/amqps_producer.c4
-rw-r--r--examples/amqps_sendstring.c4
-rw-r--r--examples/amqps_unbind.c4
19 files changed, 37 insertions, 45 deletions
diff --git a/examples/amqp_bind.c b/examples/amqp_bind.c
index de1e0a5..3e90eb2 100644
--- a/examples/amqp_bind.c
+++ b/examples/amqp_bind.c
@@ -34,14 +34,13 @@
* ***** END LICENSE BLOCK *****
*/
+#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <stdint.h>
-#include <amqp_tcp_socket.h>
#include <amqp.h>
-#include <amqp_framing.h>
+#include <amqp_tcp_socket.h>
#include "utils.h"
diff --git a/examples/amqp_connect_timeout.c b/examples/amqp_connect_timeout.c
index 03eddc9..6253e04 100644
--- a/examples/amqp_connect_timeout.c
+++ b/examples/amqp_connect_timeout.c
@@ -37,11 +37,11 @@
* ***** END LICENSE BLOCK *****
*/
+#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <stdint.h>
#include <amqp.h>
#include <amqp_tcp_socket.h>
diff --git a/examples/amqp_consumer.c b/examples/amqp_consumer.c
index cfb5118..8ac3149 100644
--- a/examples/amqp_consumer.c
+++ b/examples/amqp_consumer.c
@@ -34,14 +34,13 @@
* ***** END LICENSE BLOCK *****
*/
+#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <stdint.h>
-#include <amqp_tcp_socket.h>
#include <amqp.h>
-#include <amqp_framing.h>
+#include <amqp_tcp_socket.h>
#include <assert.h>
diff --git a/examples/amqp_exchange_declare.c b/examples/amqp_exchange_declare.c
index 16ebe14..c093451 100644
--- a/examples/amqp_exchange_declare.c
+++ b/examples/amqp_exchange_declare.c
@@ -34,14 +34,13 @@
* ***** END LICENSE BLOCK *****
*/
+#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <stdint.h>
-#include <amqp_tcp_socket.h>
#include <amqp.h>
-#include <amqp_framing.h>
+#include <amqp_tcp_socket.h>
#include "utils.h"
diff --git a/examples/amqp_listen.c b/examples/amqp_listen.c
index b452cb5..09abf1a 100644
--- a/examples/amqp_listen.c
+++ b/examples/amqp_listen.c
@@ -34,14 +34,13 @@
* ***** END LICENSE BLOCK *****
*/
+#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <stdint.h>
-#include <amqp_tcp_socket.h>
#include <amqp.h>
-#include <amqp_framing.h>
+#include <amqp_tcp_socket.h>
#include <assert.h>
diff --git a/examples/amqp_listenq.c b/examples/amqp_listenq.c
index b6439f1..3e1a33c 100644
--- a/examples/amqp_listenq.c
+++ b/examples/amqp_listenq.c
@@ -34,14 +34,13 @@
* ***** END LICENSE BLOCK *****
*/
+#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <stdint.h>
-#include <amqp_tcp_socket.h>
#include <amqp.h>
-#include <amqp_framing.h>
+#include <amqp_tcp_socket.h>
#include <assert.h>
diff --git a/examples/amqp_producer.c b/examples/amqp_producer.c
index b6fca58..1684d6e 100644
--- a/examples/amqp_producer.c
+++ b/examples/amqp_producer.c
@@ -34,14 +34,13 @@
* ***** END LICENSE BLOCK *****
*/
+#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <stdint.h>
-#include <amqp_tcp_socket.h>
#include <amqp.h>
-#include <amqp_framing.h>
+#include <amqp_tcp_socket.h>
#include "utils.h"
diff --git a/examples/amqp_rpc_sendstring_client.c b/examples/amqp_rpc_sendstring_client.c
index fdca18a..a96c251 100644
--- a/examples/amqp_rpc_sendstring_client.c
+++ b/examples/amqp_rpc_sendstring_client.c
@@ -34,14 +34,13 @@
* ***** END LICENSE BLOCK *****
*/
+#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <stdint.h>
-#include <amqp_tcp_socket.h>
#include <amqp.h>
-#include <amqp_framing.h>
+#include <amqp_tcp_socket.h>
#include <assert.h>
diff --git a/examples/amqp_sendstring.c b/examples/amqp_sendstring.c
index bc48054..d29823a 100644
--- a/examples/amqp_sendstring.c
+++ b/examples/amqp_sendstring.c
@@ -34,14 +34,13 @@
* ***** END LICENSE BLOCK *****
*/
+#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <stdint.h>
-#include <amqp_tcp_socket.h>
#include <amqp.h>
-#include <amqp_framing.h>
+#include <amqp_tcp_socket.h>
#include "utils.h"
diff --git a/examples/amqp_unbind.c b/examples/amqp_unbind.c
index 1ca3e83..8fcbbda 100644
--- a/examples/amqp_unbind.c
+++ b/examples/amqp_unbind.c
@@ -34,14 +34,13 @@
* ***** END LICENSE BLOCK *****
*/
+#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <stdint.h>
-#include <amqp_tcp_socket.h>
#include <amqp.h>
-#include <amqp_framing.h>
+#include <amqp_tcp_socket.h>
#include "utils.h"
diff --git a/examples/amqps_bind.c b/examples/amqps_bind.c
index c78e0b5..38975f8 100644
--- a/examples/amqps_bind.c
+++ b/examples/amqps_bind.c
@@ -37,13 +37,13 @@
* ***** END LICENSE BLOCK *****
*/
+#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <stdint.h>
+#include <amqp.h>
#include <amqp_ssl_socket.h>
-#include <amqp_framing.h>
#include "utils.h"
diff --git a/examples/amqps_connect_timeout.c b/examples/amqps_connect_timeout.c
index 972c2f7..e8ec718 100644
--- a/examples/amqps_connect_timeout.c
+++ b/examples/amqps_connect_timeout.c
@@ -40,11 +40,12 @@
* ***** END LICENSE BLOCK *****
*/
+#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <stdint.h>
+#include <amqp.h>
#include <amqp_ssl_socket.h>
#include <assert.h>
diff --git a/examples/amqps_consumer.c b/examples/amqps_consumer.c
index de4b8d6..f034f7a 100644
--- a/examples/amqps_consumer.c
+++ b/examples/amqps_consumer.c
@@ -37,13 +37,13 @@
* ***** END LICENSE BLOCK *****
*/
+#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <stdint.h>
+#include <amqp.h>
#include <amqp_ssl_socket.h>
-#include <amqp_framing.h>
#include <assert.h>
diff --git a/examples/amqps_exchange_declare.c b/examples/amqps_exchange_declare.c
index d13c9c7..a4c33f2 100644
--- a/examples/amqps_exchange_declare.c
+++ b/examples/amqps_exchange_declare.c
@@ -37,13 +37,13 @@
* ***** END LICENSE BLOCK *****
*/
+#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <stdint.h>
+#include <amqp.h>
#include <amqp_ssl_socket.h>
-#include <amqp_framing.h>
#include "utils.h"
diff --git a/examples/amqps_listen.c b/examples/amqps_listen.c
index dc563d8..9acbac1 100644
--- a/examples/amqps_listen.c
+++ b/examples/amqps_listen.c
@@ -37,13 +37,13 @@
* ***** END LICENSE BLOCK *****
*/
+#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <stdint.h>
+#include <amqp.h>
#include <amqp_ssl_socket.h>
-#include <amqp_framing.h>
#include <assert.h>
diff --git a/examples/amqps_listenq.c b/examples/amqps_listenq.c
index 7095686..60ca01e 100644
--- a/examples/amqps_listenq.c
+++ b/examples/amqps_listenq.c
@@ -37,13 +37,13 @@
* ***** END LICENSE BLOCK *****
*/
+#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <stdint.h>
+#include <amqp.h>
#include <amqp_ssl_socket.h>
-#include <amqp_framing.h>
#include <assert.h>
diff --git a/examples/amqps_producer.c b/examples/amqps_producer.c
index 07e7ad7..08ffa16 100644
--- a/examples/amqps_producer.c
+++ b/examples/amqps_producer.c
@@ -37,13 +37,13 @@
* ***** END LICENSE BLOCK *****
*/
+#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <stdint.h>
+#include <amqp.h>
#include <amqp_ssl_socket.h>
-#include <amqp_framing.h>
#include "utils.h"
diff --git a/examples/amqps_sendstring.c b/examples/amqps_sendstring.c
index 6ef4396..86fd9cb 100644
--- a/examples/amqps_sendstring.c
+++ b/examples/amqps_sendstring.c
@@ -37,13 +37,13 @@
* ***** END LICENSE BLOCK *****
*/
+#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <stdint.h>
+#include <amqp.h>
#include <amqp_ssl_socket.h>
-#include <amqp_framing.h>
#include "utils.h"
diff --git a/examples/amqps_unbind.c b/examples/amqps_unbind.c
index 29102bb..1d50265 100644
--- a/examples/amqps_unbind.c
+++ b/examples/amqps_unbind.c
@@ -37,13 +37,13 @@
* ***** END LICENSE BLOCK *****
*/
+#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <stdint.h>
+#include <amqp.h>
#include <amqp_ssl_socket.h>
-#include <amqp_framing.h>
#include "utils.h"