A small memory footprint AMQP implimentation

Dependents:   iothub_client_sample_amqp remote_monitoring simplesample_amqp

Revision:
23:1111ee8bcba4
Parent:
21:f9c433d8e6ca
Child:
27:d74f1cea23e1
--- a/message_receiver.c	Thu Apr 06 14:11:27 2017 -0700
+++ b/message_receiver.c	Fri Apr 21 14:50:32 2017 -0700
@@ -145,7 +145,7 @@
 			else
 			{
                 BINARY_DATA binary_data;
-                binary_data.bytes = data_value.bytes;
+                binary_data.bytes = (const unsigned char*)data_value.bytes;
                 binary_data.length = data_value.length;
 				if (message_add_body_amqp_data(decoded_message, binary_data) != 0)
 				{
@@ -267,7 +267,7 @@
 	}
 }
 
-int messagereceiver_open(MESSAGE_RECEIVER_HANDLE message_receiver, ON_MESSAGE_RECEIVED on_message_received, const void* callback_context)
+int messagereceiver_open(MESSAGE_RECEIVER_HANDLE message_receiver, ON_MESSAGE_RECEIVED on_message_received, void* callback_context)
 {
 	int result;
 
@@ -433,3 +433,10 @@
 
     return result;
 }
+
+void messagereceiver_set_trace(MESSAGE_RECEIVER_HANDLE message_receiver, bool trace_on)
+{
+    /* No tracing is yet implemented for message receiver */
+    (void)message_receiver;
+    (void)trace_on;
+}