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
amqp_management.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 AMQPMAN_H 00005 #define AMQPMAN_H 00006 00007 #include <stdbool.h> 00008 #include "azure_uamqp_c/session.h" 00009 #include "azure_uamqp_c/message.h" 00010 00011 #ifdef __cplusplus 00012 extern "C" { 00013 #endif /* __cplusplus */ 00014 00015 #include "azure_c_shared_utility/umock_c_prod.h" 00016 00017 typedef enum OPERATION_RESULT_TAG 00018 { 00019 OPERATION_RESULT_OK, 00020 OPERATION_RESULT_CBS_ERROR, 00021 OPERATION_RESULT_OPERATION_FAILED 00022 } OPERATION_RESULT; 00023 00024 typedef enum AMQP_MANAGEMENT_STATE_TAG 00025 { 00026 AMQP_MANAGEMENT_STATE_IDLE, 00027 AMQP_MANAGEMENT_STATE_OPENING, 00028 AMQP_MANAGEMENT_STATE_OPEN, 00029 AMQP_MANAGEMENT_STATE_ERROR 00030 } AMQP_MANAGEMENT_STATE; 00031 00032 typedef struct AMQP_MANAGEMENT_INSTANCE_TAG* AMQP_MANAGEMENT_HANDLE; 00033 typedef void(*ON_OPERATION_COMPLETE)(void* context, OPERATION_RESULT operation_result, unsigned int status_code, const char* status_description); 00034 typedef void(*ON_AMQP_MANAGEMENT_STATE_CHANGED)(void* context, AMQP_MANAGEMENT_STATE new_amqp_management_state, AMQP_MANAGEMENT_STATE previous_amqp_management_state); 00035 00036 MOCKABLE_FUNCTION(, AMQP_MANAGEMENT_HANDLE, amqpmanagement_create, SESSION_HANDLE, session, const char*, management_node, ON_AMQP_MANAGEMENT_STATE_CHANGED, on_amqp_management_state_changed, void*, callback_context); 00037 MOCKABLE_FUNCTION(, void, amqpmanagement_destroy, AMQP_MANAGEMENT_HANDLE, amqp_management); 00038 MOCKABLE_FUNCTION(, int, amqpmanagement_open, AMQP_MANAGEMENT_HANDLE, amqp_management); 00039 MOCKABLE_FUNCTION(, int, amqpmanagement_close, AMQP_MANAGEMENT_HANDLE, amqp_management); 00040 MOCKABLE_FUNCTION(, int, amqpmanagement_start_operation, AMQP_MANAGEMENT_HANDLE, amqp_management, const char*, operation, const char*, type, const char*, locales, MESSAGE_HANDLE, message, ON_OPERATION_COMPLETE, on_operation_complete, void*, context); 00041 MOCKABLE_FUNCTION(, void, amqpmanagement_set_trace, AMQP_MANAGEMENT_HANDLE, amqp_management, bool, traceOn); 00042 00043 #ifdef __cplusplus 00044 } 00045 #endif /* __cplusplus */ 00046 00047 #endif /* AMQPMAN_H */
Generated on Tue Jul 12 2022 12:43:17 by
