Azure IoT common library

Dependents:   STM32F746_iothub_client_sample_mqtt f767zi_mqtt iothub_client_sample_amqp iothub_client_sample_http ... more

Revision:
10:1be0bc9a9deb
Parent:
6:c55b013dfc2a
Child:
13:920e00014ee3
--- a/socketio_mbed.c	Fri Aug 12 13:49:58 2016 -0700
+++ b/socketio_mbed.c	Fri Aug 26 12:59:40 2016 -0700
@@ -48,8 +48,38 @@
     LIST_HANDLE pending_io_list;
 } SOCKET_IO_INSTANCE;
 
+/*this function will clone an option given by name and value*/
+static void* socketio_CloneOption(const char* name, const void* value)
+{
+    (void)(name, value);
+    return NULL;
+}
+
+/*this function destroys an option previously created*/
+static void socketio_DestroyOption(const char* name, const void* value)
+{
+    (void)(name, value);
+}
+
+static OPTIONHANDLER_HANDLE socketio_retrieveoptions(CONCRETE_IO_HANDLE socket_io)
+{
+    OPTIONHANDLER_HANDLE result;
+    (void)socket_io;
+    result = OptionHandler_Create(socketio_CloneOption, socketio_DestroyOption, socketio_setoption);
+    if (result == NULL)
+    {
+        /*return as is*/
+    }
+    else
+    {
+        /*insert here work to add the options to "result" handle*/
+    }
+    return result;
+}
+
 static const IO_INTERFACE_DESCRIPTION socket_io_interface_description =
 {
+    socketio_retrieveoptions,
     socketio_create,
     socketio_destroy,
     socketio_open,