A small memory footprint AMQP implimentation

Dependents:   iothub_client_sample_amqp remote_monitoring simplesample_amqp

Committer:
AzureIoTClient
Date:
Mon Mar 05 17:41:28 2018 -0800
Revision:
40:f0ceafa8d570
Child:
43:4c1e4e94cdd3
1.2.0

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AzureIoTClient 40:f0ceafa8d570 1
AzureIoTClient 40:f0ceafa8d570 2
AzureIoTClient 40:f0ceafa8d570 3 // Copyright (c) Microsoft. All rights reserved.
AzureIoTClient 40:f0ceafa8d570 4 // Licensed under the MIT license. See LICENSE file in the project root for full license information.
AzureIoTClient 40:f0ceafa8d570 5
AzureIoTClient 40:f0ceafa8d570 6 #ifndef AMQP_DEFINITIONS_BEGIN_H
AzureIoTClient 40:f0ceafa8d570 7 #define AMQP_DEFINITIONS_BEGIN_H
AzureIoTClient 40:f0ceafa8d570 8
AzureIoTClient 40:f0ceafa8d570 9
AzureIoTClient 40:f0ceafa8d570 10 #ifdef __cplusplus
AzureIoTClient 40:f0ceafa8d570 11 #include <cstdint>
AzureIoTClient 40:f0ceafa8d570 12 extern "C" {
AzureIoTClient 40:f0ceafa8d570 13 #else
AzureIoTClient 40:f0ceafa8d570 14 #include <stdint.h>
AzureIoTClient 40:f0ceafa8d570 15 #include <stdbool.h>
AzureIoTClient 40:f0ceafa8d570 16 #endif
AzureIoTClient 40:f0ceafa8d570 17
AzureIoTClient 40:f0ceafa8d570 18 #include "azure_uamqp_c/amqpvalue.h"
AzureIoTClient 40:f0ceafa8d570 19 #include "azure_c_shared_utility/umock_c_prod.h"
AzureIoTClient 40:f0ceafa8d570 20
AzureIoTClient 40:f0ceafa8d570 21 typedef struct BEGIN_INSTANCE_TAG* BEGIN_HANDLE;
AzureIoTClient 40:f0ceafa8d570 22
AzureIoTClient 40:f0ceafa8d570 23 MOCKABLE_FUNCTION(, BEGIN_HANDLE, begin_create , transfer_number, next_outgoing_id_value, uint32_t, incoming_window_value, uint32_t, outgoing_window_value);
AzureIoTClient 40:f0ceafa8d570 24 MOCKABLE_FUNCTION(, BEGIN_HANDLE, begin_clone, BEGIN_HANDLE, value);
AzureIoTClient 40:f0ceafa8d570 25 MOCKABLE_FUNCTION(, void, begin_destroy, BEGIN_HANDLE, begin);
AzureIoTClient 40:f0ceafa8d570 26 MOCKABLE_FUNCTION(, bool, is_begin_type_by_descriptor, AMQP_VALUE, descriptor);
AzureIoTClient 40:f0ceafa8d570 27 MOCKABLE_FUNCTION(, int, amqpvalue_get_begin, AMQP_VALUE, value, BEGIN_HANDLE*, BEGIN_handle);
AzureIoTClient 40:f0ceafa8d570 28 MOCKABLE_FUNCTION(, AMQP_VALUE, amqpvalue_create_begin, BEGIN_HANDLE, begin);
AzureIoTClient 40:f0ceafa8d570 29
AzureIoTClient 40:f0ceafa8d570 30 MOCKABLE_FUNCTION(, int, begin_get_remote_channel, BEGIN_HANDLE, begin, uint16_t*, remote_channel_value);
AzureIoTClient 40:f0ceafa8d570 31 MOCKABLE_FUNCTION(, int, begin_set_remote_channel, BEGIN_HANDLE, begin, uint16_t, remote_channel_value);
AzureIoTClient 40:f0ceafa8d570 32 MOCKABLE_FUNCTION(, int, begin_get_next_outgoing_id, BEGIN_HANDLE, begin, transfer_number*, next_outgoing_id_value);
AzureIoTClient 40:f0ceafa8d570 33 MOCKABLE_FUNCTION(, int, begin_set_next_outgoing_id, BEGIN_HANDLE, begin, transfer_number, next_outgoing_id_value);
AzureIoTClient 40:f0ceafa8d570 34 MOCKABLE_FUNCTION(, int, begin_get_incoming_window, BEGIN_HANDLE, begin, uint32_t*, incoming_window_value);
AzureIoTClient 40:f0ceafa8d570 35 MOCKABLE_FUNCTION(, int, begin_set_incoming_window, BEGIN_HANDLE, begin, uint32_t, incoming_window_value);
AzureIoTClient 40:f0ceafa8d570 36 MOCKABLE_FUNCTION(, int, begin_get_outgoing_window, BEGIN_HANDLE, begin, uint32_t*, outgoing_window_value);
AzureIoTClient 40:f0ceafa8d570 37 MOCKABLE_FUNCTION(, int, begin_set_outgoing_window, BEGIN_HANDLE, begin, uint32_t, outgoing_window_value);
AzureIoTClient 40:f0ceafa8d570 38 MOCKABLE_FUNCTION(, int, begin_get_handle_max, BEGIN_HANDLE, begin, handle*, handle_max_value);
AzureIoTClient 40:f0ceafa8d570 39 MOCKABLE_FUNCTION(, int, begin_set_handle_max, BEGIN_HANDLE, begin, handle, handle_max_value);
AzureIoTClient 40:f0ceafa8d570 40 MOCKABLE_FUNCTION(, int, begin_get_offered_capabilities, BEGIN_HANDLE, begin, AMQP_VALUE*, offered_capabilities_value);
AzureIoTClient 40:f0ceafa8d570 41 MOCKABLE_FUNCTION(, int, begin_set_offered_capabilities, BEGIN_HANDLE, begin, AMQP_VALUE, offered_capabilities_value);
AzureIoTClient 40:f0ceafa8d570 42 MOCKABLE_FUNCTION(, int, begin_get_desired_capabilities, BEGIN_HANDLE, begin, AMQP_VALUE*, desired_capabilities_value);
AzureIoTClient 40:f0ceafa8d570 43 MOCKABLE_FUNCTION(, int, begin_set_desired_capabilities, BEGIN_HANDLE, begin, AMQP_VALUE, desired_capabilities_value);
AzureIoTClient 40:f0ceafa8d570 44 MOCKABLE_FUNCTION(, int, begin_get_properties, BEGIN_HANDLE, begin, fields*, properties_value);
AzureIoTClient 40:f0ceafa8d570 45 MOCKABLE_FUNCTION(, int, begin_set_properties, BEGIN_HANDLE, begin, fields, properties_value);
AzureIoTClient 40:f0ceafa8d570 46
AzureIoTClient 40:f0ceafa8d570 47
AzureIoTClient 40:f0ceafa8d570 48 #ifdef __cplusplus
AzureIoTClient 40:f0ceafa8d570 49 }
AzureIoTClient 40:f0ceafa8d570 50 #endif
AzureIoTClient 40:f0ceafa8d570 51
AzureIoTClient 40:f0ceafa8d570 52 #endif /* AMQP_DEFINITIONS_BEGIN_H */