A small memory footprint AMQP implimentation

Dependents:   iothub_client_sample_amqp remote_monitoring simplesample_amqp

Revision:
16:22a72cf8e416
Parent:
15:5db103709f20
Child:
17:923575db8b2d
diff -r 5db103709f20 -r 22a72cf8e416 saslclientio.c
--- a/saslclientio.c	Sun Jan 08 11:12:13 2017 -0800
+++ b/saslclientio.c	Fri Jan 13 18:40:42 2017 -0800
@@ -68,7 +68,7 @@
     unsigned int is_trace_on : 1;
 } SASL_CLIENT_IO_INSTANCE;
 
-/* Codes_SRS_SASLCLIENTIO_01_002: [The protocol header consists of the upper case ASCII letters “AMQP” followed by a protocol id of three, followed by three unsigned bytes representing the major, minor, and revision of the specification version (currently 1 (SASL-MAJOR), 0 (SASLMINOR), 0 (SASL-REVISION)).] */
+/* Codes_SRS_SASLCLIENTIO_01_002: [The protocol header consists of the upper case ASCII letters "AMQP" followed by a protocol id of three, followed by three unsigned bytes representing the major, minor, and revision of the specification version (currently 1 (SASL-MAJOR), 0 (SASLMINOR), 0 (SASL-REVISION)).] */
 /* Codes_SRS_SASLCLIENTIO_01_124: [SASL-MAJOR 1 major protocol version.] */
 /* Codes_SRS_SASLCLIENTIO_01_125: [SASL-MINOR 0 minor protocol version.] */
 /* Codes_SRS_SASLCLIENTIO_01_126: [SASL-REVISION 0 protocol revision.] */
@@ -158,7 +158,7 @@
     {
         if (sasl_client_io_instance->is_trace_on == 1)
         {
-            LOG(LOG_TRACE, LOG_LINE, "-> Header (AMQP 3.1.0.0)");
+            LOG(AZ_LOG_TRACE, LOG_LINE, "-> Header (AMQP 3.1.0.0)");
         }
         result = 0;
     }
@@ -273,10 +273,10 @@
         AMQP_VALUE descriptor = amqpvalue_get_inplace_descriptor(performative);
         if (descriptor != NULL)
         {
-            LOG(LOG_TRACE, 0, "<- ");
-            LOG(LOG_TRACE, 0, (char*)get_frame_type_as_string(descriptor));
+            LOG(AZ_LOG_TRACE, 0, "<- ");
+            LOG(AZ_LOG_TRACE, 0, (char*)get_frame_type_as_string(descriptor));
             char* performative_as_string = NULL;
-            LOG(LOG_TRACE, LOG_LINE, (performative_as_string = amqpvalue_to_string(performative)));
+            LOG(AZ_LOG_TRACE, LOG_LINE, (performative_as_string = amqpvalue_to_string(performative)));
             if (performative_as_string != NULL)
             {
                 amqpalloc_free(performative_as_string);
@@ -296,10 +296,10 @@
         AMQP_VALUE descriptor = amqpvalue_get_inplace_descriptor(performative);
         if (descriptor != NULL)
         {
-            LOG(LOG_TRACE, 0, "-> ");
-            LOG(LOG_TRACE, 0, (char*)get_frame_type_as_string(descriptor));
+            LOG(AZ_LOG_TRACE, 0, "-> ");
+            LOG(AZ_LOG_TRACE, 0, (char*)get_frame_type_as_string(descriptor));
             char* performative_as_string = NULL;
-            LOG(LOG_TRACE, LOG_LINE, (performative_as_string = amqpvalue_to_string(performative)));
+            LOG(AZ_LOG_TRACE, LOG_LINE, (performative_as_string = amqpvalue_to_string(performative)));
             if (performative_as_string != NULL)
             {
                 amqpalloc_free(performative_as_string);
@@ -362,7 +362,7 @@
             {
                 if (sasl_client_io_instance->is_trace_on == 1)
                 {
-                    LOG(LOG_TRACE, LOG_LINE, "<- Header (AMQP 3.1.0.0)");
+                    LOG(AZ_LOG_TRACE, LOG_LINE, "<- Header (AMQP 3.1.0.0)");
                 }
 
                 switch (sasl_client_io_instance->sasl_header_exchange_state)