Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetInterface NTPClient iothub_amqp_transport iothub_client mbed-rtos mbed
Fork of iothub_client_sample_amqp by
saslclientio.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 SASLCLIENTIO_H 00005 #define SASLCLIENTIO_H 00006 00007 #ifdef __cplusplus 00008 extern "C" { 00009 #include <cstddef> 00010 #else 00011 #include <stddef.h> 00012 #endif /* __cplusplus */ 00013 00014 #include <stdbool.h> 00015 00016 #include "azure_c_shared_utility/xio.h" 00017 #include "azure_uamqp_c/sasl_mechanism.h" 00018 00019 #include "azure_c_shared_utility/umock_c_prod.h" 00020 00021 typedef struct SASLCLIENTIO_CONFIG_TAG 00022 { 00023 XIO_HANDLE underlying_io; 00024 SASL_MECHANISM_HANDLE sasl_mechanism; 00025 } SASLCLIENTIO_CONFIG; 00026 00027 MOCKABLE_FUNCTION(, CONCRETE_IO_HANDLE, saslclientio_create, void*, io_create_parameters); 00028 MOCKABLE_FUNCTION(, void, saslclientio_destroy, CONCRETE_IO_HANDLE, sasl_client_io); 00029 MOCKABLE_FUNCTION(, int, saslclientio_open, CONCRETE_IO_HANDLE, sasl_client_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); 00030 MOCKABLE_FUNCTION(, int, saslclientio_close, CONCRETE_IO_HANDLE, sasl_client_io, ON_IO_CLOSE_COMPLETE, on_io_close_complete, void*, callback_context); 00031 MOCKABLE_FUNCTION(, int, saslclientio_send, CONCRETE_IO_HANDLE, sasl_client_io, const void*, buffer, size_t, size, ON_SEND_COMPLETE, on_send_complete, void*, callback_context); 00032 MOCKABLE_FUNCTION(, void, saslclientio_dowork, CONCRETE_IO_HANDLE, sasl_client_io); 00033 MOCKABLE_FUNCTION(, int, saslclientio_setoption, CONCRETE_IO_HANDLE, socket_io, const char*, optionName, const void*, value); 00034 00035 MOCKABLE_FUNCTION(, const IO_INTERFACE_DESCRIPTION*, saslclientio_get_interface_description); 00036 00037 #ifdef __cplusplus 00038 } 00039 #endif /* __cplusplus */ 00040 00041 #endif /* SASLCLIENTIO_H */
Generated on Tue Jul 12 2022 12:43:22 by
