Mark Radbourne / Mbed 2 deprecated iothub_client_sample_amqp

Dependencies:   EthernetInterface NTPClient iothub_amqp_transport iothub_client mbed-rtos mbed

Fork of iothub_client_sample_amqp by Azure IoT

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers header_detect_io.h Source File

header_detect_io.h

00001 // Copyright (c) Microsoft. All rights reserved.
00002 // Licensed under the MIT license. See LICENSE file in the project root for full license information.
00003 
00004 #ifndef HEADER_DETECT_IO_H
00005 #define HEADER_DETECT_IO_H
00006 
00007 #include "azure_c_shared_utility/xio.h"
00008 
00009 #ifdef __cplusplus
00010 extern "C" {
00011 #endif /* __cplusplus */
00012 
00013 #include "azure_c_shared_utility/umock_c_prod.h"
00014 
00015     typedef struct HEADERDETECTIO_CONFIG_TAG
00016     {
00017         XIO_HANDLE underlying_io;
00018     } HEADERDETECTIO_CONFIG;
00019 
00020     MOCKABLE_FUNCTION(, CONCRETE_IO_HANDLE, headerdetectio_create, void*, io_create_parameters);
00021     MOCKABLE_FUNCTION(, void, headerdetectio_destroy, CONCRETE_IO_HANDLE, header_detect_io);
00022     MOCKABLE_FUNCTION(, int, headerdetectio_open, CONCRETE_IO_HANDLE, header_detect_io, ON_IO_OPEN_COMPLETE, on_io_open_complete, void*, on_io_open_complete_context, ON_BYTES_RECEIVED, on_bytes_received, void*, on_bytes_received_context, ON_IO_ERROR, on_io_error, void*, on_io_error_context);
00023     MOCKABLE_FUNCTION(, int, headerdetectio_close, CONCRETE_IO_HANDLE, header_detect_io, ON_IO_CLOSE_COMPLETE, on_io_close_complete, void*, callback_context);
00024     MOCKABLE_FUNCTION(, int, headerdetectio_send, CONCRETE_IO_HANDLE, header_detect_io, const void*, buffer, size_t, size, ON_SEND_COMPLETE, on_send_complete, void*, callback_context);
00025     MOCKABLE_FUNCTION(, void, headerdetectio_dowork, CONCRETE_IO_HANDLE, header_detect_io);
00026     MOCKABLE_FUNCTION(, int, headerdetectio_setoption, CONCRETE_IO_HANDLE, socket_io, const char*, optionName, const void*, value);
00027     
00028     MOCKABLE_FUNCTION(, const IO_INTERFACE_DESCRIPTION*, headerdetectio_get_interface_description);
00029 
00030 #ifdef __cplusplus
00031 }
00032 #endif /* __cplusplus */
00033 
00034 #endif /* HEADER_DETECT_IO_H */