[388] | 1 | // Copyright (c) Microsoft. All rights reserved.
|
---|
| 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
---|
| 3 |
|
---|
| 4 | #ifndef IOTHUB_TRANSPORT_LL_H
|
---|
| 5 | #define IOTHUB_TRANSPORT_LL_H
|
---|
| 6 |
|
---|
| 7 | #ifdef __cplusplus
|
---|
| 8 | #include <cstddef>
|
---|
| 9 | #include <cstdint>
|
---|
| 10 | extern "C"
|
---|
| 11 | {
|
---|
| 12 | #else
|
---|
| 13 | #include <stddef.h>
|
---|
| 14 | #include <stdint.h>
|
---|
| 15 | #endif
|
---|
| 16 |
|
---|
| 17 | #include "azure_c_shared_utility/umock_c_prod.h"
|
---|
| 18 |
|
---|
| 19 | typedef void* TRANSPORT_LL_HANDLE;
|
---|
| 20 | typedef void* IOTHUB_DEVICE_HANDLE;
|
---|
| 21 |
|
---|
| 22 | struct TRANSPORT_HANDLE_DATA_TAG;
|
---|
| 23 | typedef struct TRANSPORT_HANDLE_DATA_TAG* TRANSPORT_HANDLE;
|
---|
| 24 |
|
---|
| 25 | typedef void* METHOD_HANDLE;
|
---|
| 26 |
|
---|
| 27 | struct TRANSPORT_PROVIDER_TAG;
|
---|
| 28 | typedef struct TRANSPORT_PROVIDER_TAG TRANSPORT_PROVIDER;
|
---|
| 29 |
|
---|
| 30 | typedef const TRANSPORT_PROVIDER*(*IOTHUB_CLIENT_TRANSPORT_PROVIDER)(void);
|
---|
| 31 |
|
---|
| 32 | MOCKABLE_FUNCTION(, TRANSPORT_HANDLE, IoTHubTransport_Create, IOTHUB_CLIENT_TRANSPORT_PROVIDER, protocol, const char*, iotHubName, const char*, iotHubSuffix);
|
---|
| 33 | MOCKABLE_FUNCTION(, void, IoTHubTransport_Destroy, TRANSPORT_HANDLE, transportHandle);
|
---|
| 34 | MOCKABLE_FUNCTION(, TRANSPORT_LL_HANDLE, IoTHubTransport_GetLLTransport, TRANSPORT_HANDLE, transportHandle);
|
---|
| 35 |
|
---|
| 36 | #ifdef __cplusplus
|
---|
| 37 | }
|
---|
| 38 | #endif
|
---|
| 39 |
|
---|
| 40 | #endif /* IOTHUB_TRANSPORT_LL_H */
|
---|
| 41 |
|
---|