Microsoft Azure IoTHub client libraries
Dependents: sht15_remote_monitoring RobotArmDemo iothub_client_sample_amqp f767zi_mqtt ... more
This library implements the Microsoft Azure IoTHub client library. The code is replicated from https://github.com/Azure/azure-iot-sdks
iothubtransport.h@85:de16c0a8a196, 2018-03-20 (annotated)
- Committer:
- AzureIoTClient
- Date:
- Tue Mar 20 10:29:00 2018 -0700
- Revision:
- 85:de16c0a8a196
- Parent:
- 66:a419827cb051
1.2.1
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Azure.IoT Build | 37:18310e4d888d | 1 | // Copyright (c) Microsoft. All rights reserved. |
Azure.IoT Build | 37:18310e4d888d | 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. |
Azure.IoT Build | 37:18310e4d888d | 3 | |
Azure.IoT Build | 37:18310e4d888d | 4 | #ifndef IOTHUB_TRANSPORT_H |
Azure.IoT Build | 37:18310e4d888d | 5 | #define IOTHUB_TRANSPORT_H |
Azure.IoT Build | 37:18310e4d888d | 6 | |
Azure.IoT Build | 37:18310e4d888d | 7 | typedef struct TRANSPORT_HANDLE_DATA_TAG* TRANSPORT_HANDLE; |
Azure.IoT Build | 37:18310e4d888d | 8 | |
Azure.IoT.Build | 54:6dcad9019a64 | 9 | |
Azure.IoT Build | 38:a05929a75111 | 10 | #include "azure_c_shared_utility/lock.h" |
Azure.IoT Build | 38:a05929a75111 | 11 | #include "azure_c_shared_utility/crt_abstractions.h" |
Azure.IoT.Build | 54:6dcad9019a64 | 12 | |
Azure.IoT.Build | 54:6dcad9019a64 | 13 | #include "iothub_client_ll.h" |
Azure.IoT Build | 37:18310e4d888d | 14 | #include "iothub_client_private.h" |
Azure.IoT Build | 38:a05929a75111 | 15 | #include "iothub_transport_ll.h" |
Azure.IoT Build | 37:18310e4d888d | 16 | |
Azure.IoT.Build | 54:6dcad9019a64 | 17 | #ifndef IOTHUB_CLIENT_INSTANCE_TYPE |
Azure.IoT.Build | 54:6dcad9019a64 | 18 | typedef struct IOTHUB_CLIENT_INSTANCE_TAG* IOTHUB_CLIENT_HANDLE; |
Azure.IoT.Build | 54:6dcad9019a64 | 19 | #define IOTHUB_CLIENT_INSTANCE_TYPE |
Azure.IoT.Build | 54:6dcad9019a64 | 20 | #endif // IOTHUB_CLIENT_INSTANCE |
Azure.IoT.Build | 54:6dcad9019a64 | 21 | |
Azure.IoT.Build | 54:6dcad9019a64 | 22 | #include "azure_c_shared_utility/umock_c_prod.h" |
AzureIoTClient | 66:a419827cb051 | 23 | |
AzureIoTClient | 66:a419827cb051 | 24 | typedef void(*IOTHUB_CLIENT_MULTIPLEXED_DO_WORK)(void* iotHubClientInstance); |
AzureIoTClient | 66:a419827cb051 | 25 | |
Azure.IoT Build | 37:18310e4d888d | 26 | #ifdef __cplusplus |
Azure.IoT Build | 37:18310e4d888d | 27 | extern "C" |
Azure.IoT Build | 37:18310e4d888d | 28 | { |
Azure.IoT Build | 37:18310e4d888d | 29 | #endif |
Azure.IoT Build | 37:18310e4d888d | 30 | |
Azure.IoT.Build | 54:6dcad9019a64 | 31 | MOCKABLE_FUNCTION(, TRANSPORT_HANDLE, IoTHubTransport_Create, IOTHUB_CLIENT_TRANSPORT_PROVIDER, protocol, const char*, iotHubName, const char*, iotHubSuffix); |
Azure.IoT.Build | 54:6dcad9019a64 | 32 | MOCKABLE_FUNCTION(, void, IoTHubTransport_Destroy, TRANSPORT_HANDLE, transportHandle); |
Azure.IoT.Build | 54:6dcad9019a64 | 33 | MOCKABLE_FUNCTION(, LOCK_HANDLE, IoTHubTransport_GetLock, TRANSPORT_HANDLE, transportHandle); |
Azure.IoT.Build | 54:6dcad9019a64 | 34 | MOCKABLE_FUNCTION(, TRANSPORT_LL_HANDLE, IoTHubTransport_GetLLTransport, TRANSPORT_HANDLE, transportHandle); |
AzureIoTClient | 66:a419827cb051 | 35 | MOCKABLE_FUNCTION(, IOTHUB_CLIENT_RESULT, IoTHubTransport_StartWorkerThread, TRANSPORT_HANDLE, transportHandle, IOTHUB_CLIENT_HANDLE, clientHandle, IOTHUB_CLIENT_MULTIPLEXED_DO_WORK, muxDoWork); |
Azure.IoT.Build | 54:6dcad9019a64 | 36 | MOCKABLE_FUNCTION(, bool, IoTHubTransport_SignalEndWorkerThread, TRANSPORT_HANDLE, transportHandle, IOTHUB_CLIENT_HANDLE, clientHandle); |
Azure.IoT.Build | 54:6dcad9019a64 | 37 | MOCKABLE_FUNCTION(, void, IoTHubTransport_JoinWorkerThread, TRANSPORT_HANDLE, transportHandle, IOTHUB_CLIENT_HANDLE, clientHandle); |
Azure.IoT Build | 37:18310e4d888d | 38 | |
Azure.IoT Build | 37:18310e4d888d | 39 | #ifdef __cplusplus |
Azure.IoT Build | 37:18310e4d888d | 40 | } |
Azure.IoT Build | 37:18310e4d888d | 41 | #endif |
Azure.IoT Build | 37:18310e4d888d | 42 | |
Azure.IoT Build | 37:18310e4d888d | 43 | #endif /* IOTHUB_TRANSPORT_H */ |