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 messaging.h Source File

messaging.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 MESSAGING_H
00005 #define MESSAGING_H
00006 
00007 #include "azure_uamqp_c/amqpvalue.h"
00008 #include "azure_uamqp_c/amqp_definitions.h"
00009 
00010 #ifdef __cplusplus
00011 #include <cstdint>
00012 extern "C" {
00013 #else
00014 #include <stdint.h>
00015 #endif /* __cplusplus */
00016 
00017 #include "azure_c_shared_utility/umock_c_prod.h"
00018 
00019     MOCKABLE_FUNCTION(, AMQP_VALUE, messaging_create_source, const char*, address);
00020     MOCKABLE_FUNCTION(, AMQP_VALUE, messaging_create_target, const char*, address);
00021 
00022     MOCKABLE_FUNCTION(, AMQP_VALUE, messaging_delivery_received, uint32_t, section_number, uint64_t, section_offset);
00023     MOCKABLE_FUNCTION(, AMQP_VALUE, messaging_delivery_accepted);
00024     MOCKABLE_FUNCTION(, AMQP_VALUE, messaging_delivery_rejected, const char*, error_condition, const char*, error_description);
00025     MOCKABLE_FUNCTION(, AMQP_VALUE, messaging_delivery_released);
00026     MOCKABLE_FUNCTION(, AMQP_VALUE, messaging_delivery_modified, bool, delivery_failed, bool, undeliverable_here, fields, message_annotations);
00027 
00028 #ifdef __cplusplus
00029 }
00030 #endif /* __cplusplus */
00031 
00032 #endif /* MESSAGING_H */