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@54:6dcad9019a64, 2016-12-14 (annotated)
- Committer:
- Azure.IoT.Build
- Date:
- Wed Dec 14 15:59:51 2016 -0800
- Revision:
- 54:6dcad9019a64
- Parent:
- 38:a05929a75111
- Child:
- 66:a419827cb051
1.1.2
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" |
Azure.IoT Build | 37:18310e4d888d | 23 | #ifdef __cplusplus |
Azure.IoT Build | 37:18310e4d888d | 24 | extern "C" |
Azure.IoT Build | 37:18310e4d888d | 25 | { |
Azure.IoT Build | 37:18310e4d888d | 26 | #endif |
Azure.IoT Build | 37:18310e4d888d | 27 | |
Azure.IoT.Build | 54:6dcad9019a64 | 28 | MOCKABLE_FUNCTION(, TRANSPORT_HANDLE, IoTHubTransport_Create, IOTHUB_CLIENT_TRANSPORT_PROVIDER, protocol, const char*, iotHubName, const char*, iotHubSuffix); |
Azure.IoT.Build | 54:6dcad9019a64 | 29 | MOCKABLE_FUNCTION(, void, IoTHubTransport_Destroy, TRANSPORT_HANDLE, transportHandle); |
Azure.IoT.Build | 54:6dcad9019a64 | 30 | MOCKABLE_FUNCTION(, LOCK_HANDLE, IoTHubTransport_GetLock, TRANSPORT_HANDLE, transportHandle); |
Azure.IoT.Build | 54:6dcad9019a64 | 31 | MOCKABLE_FUNCTION(, TRANSPORT_LL_HANDLE, IoTHubTransport_GetLLTransport, TRANSPORT_HANDLE, transportHandle); |
Azure.IoT.Build | 54:6dcad9019a64 | 32 | MOCKABLE_FUNCTION(, IOTHUB_CLIENT_RESULT, IoTHubTransport_StartWorkerThread, TRANSPORT_HANDLE, transportHandle, IOTHUB_CLIENT_HANDLE, clientHandle); |
Azure.IoT.Build | 54:6dcad9019a64 | 33 | MOCKABLE_FUNCTION(, bool, IoTHubTransport_SignalEndWorkerThread, TRANSPORT_HANDLE, transportHandle, IOTHUB_CLIENT_HANDLE, clientHandle); |
Azure.IoT.Build | 54:6dcad9019a64 | 34 | MOCKABLE_FUNCTION(, void, IoTHubTransport_JoinWorkerThread, TRANSPORT_HANDLE, transportHandle, IOTHUB_CLIENT_HANDLE, clientHandle); |
Azure.IoT Build | 37:18310e4d888d | 35 | |
Azure.IoT Build | 37:18310e4d888d | 36 | #ifdef __cplusplus |
Azure.IoT Build | 37:18310e4d888d | 37 | } |
Azure.IoT Build | 37:18310e4d888d | 38 | #endif |
Azure.IoT Build | 37:18310e4d888d | 39 | |
Azure.IoT Build | 37:18310e4d888d | 40 | #endif /* IOTHUB_TRANSPORT_H */ |