A small memory footprint AMQP implimentation

Dependents:   iothub_client_sample_amqp remote_monitoring simplesample_amqp

Revision:
6:641a9672db08
Parent:
5:ae49385aff34
Child:
17:923575db8b2d
--- a/header_detect_io.c	Fri Jul 01 10:42:48 2016 -0700
+++ b/header_detect_io.c	Fri Jul 29 15:58:39 2016 -0700
@@ -58,6 +58,7 @@
 static void on_underlying_io_error(void* context);
 static void on_send_complete_close(void* context, IO_SEND_RESULT send_result)
 {
+    (void)send_result;
     on_underlying_io_error(context);
 }
 
@@ -383,8 +384,39 @@
     return result;
 }
 
+/*this function will clone an option given by name and value*/
+static void* headerdetectio_CloneOption(const char* name, const void* value)
+{
+    (void)(name, value);
+    return NULL;
+}
+
+/*this function destroys an option previously created*/
+static void headerdetectio_DestroyOption(const char* name, const void* value)
+{
+    (void)(name, value);
+}
+
+static OPTIONHANDLER_HANDLE headerdetectio_retrieveoptions(CONCRETE_IO_HANDLE handle)
+{
+    OPTIONHANDLER_HANDLE result;
+    (void)handle;
+    result = OptionHandler_Create(headerdetectio_CloneOption, headerdetectio_DestroyOption, headerdetectio_setoption);
+    if (result == NULL)
+    {
+        LogError("unable to OptionHandler_Create");
+        /*return as is*/
+    }
+    else
+    {
+        /*insert here work to add the options to "result" handle*/
+    }
+    return result;
+}
+
 static const IO_INTERFACE_DESCRIPTION header_detect_io_interface_description =
 {
+    headerdetectio_retrieveoptions,
 	headerdetectio_create,
 	headerdetectio_destroy,
 	headerdetectio_open,