Microsoft Azure IoTHub client AMQP transport

Dependents:   sht15_remote_monitoring RobotArmDemo iothub_client_sample_amqp iothub_client_sample_amqp ... more

This library implements the AMQP transport for Microsoft Azure IoTHub client. The code is replicated from https://github.com/Azure/azure-iot-sdks

Committer:
AzureIoTClient
Date:
Thu Oct 04 09:14:47 2018 -0700
Revision:
57:56ac1346c70d
Parent:
54:830550fef7ea
1.2.10

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AzureIoTClient 25:63f7d371c030 1 // Copyright (c) Microsoft. All rights reserved.
AzureIoTClient 25:63f7d371c030 2 // Licensed under the MIT license. See LICENSE file in the project root for full license information.
AzureIoTClient 25:63f7d371c030 3
AzureIoTClient 25:63f7d371c030 4 #ifndef IOTHUBTRANSPORTAMQP_METHODS_H
AzureIoTClient 25:63f7d371c030 5 #define IOTHUBTRANSPORTAMQP_METHODS_H
AzureIoTClient 25:63f7d371c030 6
AzureIoTClient 25:63f7d371c030 7 #include "azure_uamqp_c/session.h"
AzureIoTClient 25:63f7d371c030 8 #include "azure_c_shared_utility/buffer_.h"
AzureIoTClient 25:63f7d371c030 9 #include "azure_c_shared_utility/umock_c_prod.h"
AzureIoTClient 25:63f7d371c030 10
AzureIoTClient 25:63f7d371c030 11 #ifdef __cplusplus
AzureIoTClient 25:63f7d371c030 12 #include <cstddef>
AzureIoTClient 25:63f7d371c030 13
AzureIoTClient 25:63f7d371c030 14 extern "C"
AzureIoTClient 25:63f7d371c030 15 {
AzureIoTClient 25:63f7d371c030 16 #else
AzureIoTClient 25:63f7d371c030 17 #include <stddef.h>
AzureIoTClient 25:63f7d371c030 18 #endif
AzureIoTClient 25:63f7d371c030 19
AzureIoTClient 25:63f7d371c030 20 typedef struct IOTHUBTRANSPORT_AMQP_METHOD_TAG* IOTHUBTRANSPORT_AMQP_METHOD_HANDLE;
AzureIoTClient 25:63f7d371c030 21 typedef struct IOTHUBTRANSPORT_AMQP_METHODS_TAG* IOTHUBTRANSPORT_AMQP_METHODS_HANDLE;
AzureIoTClient 25:63f7d371c030 22 typedef void(*ON_METHODS_ERROR)(void* context);
AzureIoTClient 25:63f7d371c030 23 typedef int(*ON_METHOD_REQUEST_RECEIVED)(void* context, const char* method_name, const unsigned char* request, size_t request_size, IOTHUBTRANSPORT_AMQP_METHOD_HANDLE response);
AzureIoTClient 29:7e8852b14e3b 24 typedef void(*ON_METHODS_UNSUBSCRIBED)(void* context);
AzureIoTClient 25:63f7d371c030 25
AzureIoTClient 54:830550fef7ea 26 MOCKABLE_FUNCTION(, IOTHUBTRANSPORT_AMQP_METHODS_HANDLE, iothubtransportamqp_methods_create, const char*, hostname, const char*, device_id, const char*, module_id);
AzureIoTClient 25:63f7d371c030 27 MOCKABLE_FUNCTION(, void, iothubtransportamqp_methods_destroy, IOTHUBTRANSPORT_AMQP_METHODS_HANDLE, iothubtransport_amqp_methods_handle);
AzureIoTClient 25:63f7d371c030 28 MOCKABLE_FUNCTION(, int, iothubtransportamqp_methods_subscribe, IOTHUBTRANSPORT_AMQP_METHODS_HANDLE, iothubtransport_amqp_methods_handle,
AzureIoTClient 25:63f7d371c030 29 SESSION_HANDLE, session_handle, ON_METHODS_ERROR, on_methods_error, void*, on_methods_error_context,
AzureIoTClient 29:7e8852b14e3b 30 ON_METHOD_REQUEST_RECEIVED, on_method_request_received, void*, on_method_request_received_context,
AzureIoTClient 29:7e8852b14e3b 31 ON_METHODS_UNSUBSCRIBED, on_methods_unsubscribed, void*, on_methods_unsubscribed_context);
AzureIoTClient 25:63f7d371c030 32 MOCKABLE_FUNCTION(, int, iothubtransportamqp_methods_respond, IOTHUBTRANSPORT_AMQP_METHOD_HANDLE, method_handle,
AzureIoTClient 25:63f7d371c030 33 const unsigned char*, response, size_t, response_size, int, status_code);
AzureIoTClient 25:63f7d371c030 34 MOCKABLE_FUNCTION(, void, iothubtransportamqp_methods_unsubscribe, IOTHUBTRANSPORT_AMQP_METHODS_HANDLE, iothubtransport_amqp_methods_handle);
AzureIoTClient 25:63f7d371c030 35
AzureIoTClient 25:63f7d371c030 36 #ifdef __cplusplus
AzureIoTClient 25:63f7d371c030 37 }
AzureIoTClient 25:63f7d371c030 38 #endif
AzureIoTClient 25:63f7d371c030 39
AzureIoTClient 25:63f7d371c030 40 #endif /* IOTHUBTRANSPORTAMQP_METHODS_H */