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
sasl_frame_codec.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 SASL_FRAME_CODEC_H 00005 #define SASL_FRAME_CODEC_H 00006 00007 #ifdef __cplusplus 00008 extern "C" { 00009 #include <cstdint> 00010 #include <cstddef> 00011 #else 00012 #include <stdint.h> 00013 #include <stddef.h> 00014 #endif /* __cplusplus */ 00015 #include "azure_uamqp_c/frame_codec.h" 00016 00017 #include "azure_c_shared_utility/umock_c_prod.h" 00018 00019 #define SASL_MECHANISMS (uint64_t)0x40 00020 #define SASL_INIT (uint64_t)0x41 00021 #define SASL_CHALLENGE (uint64_t)0x42 00022 #define SASL_RESPONSE (uint64_t)0x43 00023 #define SASL_OUTCOME (uint64_t)0x44 00024 00025 typedef struct SASL_FRAME_CODEC_INSTANCE_TAG* SASL_FRAME_CODEC_HANDLE; 00026 typedef void(*ON_SASL_FRAME_RECEIVED)(void* context, AMQP_VALUE sasl_frame_value); 00027 typedef void(*ON_SASL_FRAME_CODEC_ERROR)(void* context); 00028 00029 MOCKABLE_FUNCTION(, SASL_FRAME_CODEC_HANDLE, sasl_frame_codec_create, FRAME_CODEC_HANDLE, frame_codec, ON_SASL_FRAME_RECEIVED, on_sasl_frame_received, ON_SASL_FRAME_CODEC_ERROR, on_sasl_frame_codec_error, void*, callback_context); 00030 MOCKABLE_FUNCTION(, void, sasl_frame_codec_destroy, SASL_FRAME_CODEC_HANDLE, sasl_frame_codec); 00031 MOCKABLE_FUNCTION(, int, sasl_frame_codec_encode_frame, SASL_FRAME_CODEC_HANDLE, sasl_frame_codec, const AMQP_VALUE, sasl_frame_value, ON_BYTES_ENCODED, on_bytes_encoded, void*, callback_context); 00032 00033 #ifdef __cplusplus 00034 } 00035 #endif /* __cplusplus */ 00036 00037 #endif /* SASL_FRAME_CODEC_H */
Generated on Tue Jul 12 2022 12:43:22 by
