corrected version (with typedef struct IOTHUB_CLIENT_LL_UPLOADTOBLOB_HANDLE_DATA* IOTHUB_CLIENT_LL_UPLOADTOBLOB_HANDLE;) included in the sources
Dependents: STM32F746_iothub_client_sample_mqtt
Fork of iothub_client by
iothub_client_ll_uploadtoblob.h@42:448eecc3676e, 2016-06-07 (annotated)
- Committer:
- AzureIoTClient
- Date:
- Tue Jun 07 10:49:08 2016 -0700
- Revision:
- 42:448eecc3676e
- Child:
- 43:038d8511e817
1.0.8
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AzureIoTClient | 42:448eecc3676e | 1 | // Copyright (c) Microsoft. All rights reserved. |
AzureIoTClient | 42:448eecc3676e | 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. |
AzureIoTClient | 42:448eecc3676e | 3 | |
AzureIoTClient | 42:448eecc3676e | 4 | /** @file iothub_client_ll.h |
AzureIoTClient | 42:448eecc3676e | 5 | * @brief APIs that allow a user (usually a device) to communicate |
AzureIoTClient | 42:448eecc3676e | 6 | * with an Azure IoTHub. |
AzureIoTClient | 42:448eecc3676e | 7 | * |
AzureIoTClient | 42:448eecc3676e | 8 | * @details IoTHubClient_LL is a module that allows a user (usually a |
AzureIoTClient | 42:448eecc3676e | 9 | * device) to communicate with an Azure IoTHub. It can send events |
AzureIoTClient | 42:448eecc3676e | 10 | * and receive messages. At any given moment in time there can only |
AzureIoTClient | 42:448eecc3676e | 11 | * be at most 1 message callback function. |
AzureIoTClient | 42:448eecc3676e | 12 | * |
AzureIoTClient | 42:448eecc3676e | 13 | * This API surface contains a set of APIs that allows the user to |
AzureIoTClient | 42:448eecc3676e | 14 | * interact with the lower layer portion of the IoTHubClient. These APIs |
AzureIoTClient | 42:448eecc3676e | 15 | * contain @c _LL_ in their name, but retain the same functionality like the |
AzureIoTClient | 42:448eecc3676e | 16 | * @c IoTHubClient_... APIs, with one difference. If the @c _LL_ APIs are |
AzureIoTClient | 42:448eecc3676e | 17 | * used then the user is responsible for scheduling when the actual work done |
AzureIoTClient | 42:448eecc3676e | 18 | * by the IoTHubClient happens (when the data is sent/received on/from the wire). |
AzureIoTClient | 42:448eecc3676e | 19 | * This is useful for constrained devices where spinning a separate thread is |
AzureIoTClient | 42:448eecc3676e | 20 | * often not desired. |
AzureIoTClient | 42:448eecc3676e | 21 | */ |
AzureIoTClient | 42:448eecc3676e | 22 | |
AzureIoTClient | 42:448eecc3676e | 23 | #ifndef IOTHUB_CLIENT_LL_UPLOADTOBLOB_H |
AzureIoTClient | 42:448eecc3676e | 24 | #define IOTHUB_CLIENT_LL_UPLOADTOBLOB_H |
AzureIoTClient | 42:448eecc3676e | 25 | |
AzureIoTClient | 42:448eecc3676e | 26 | #include "iothub_client_ll.h" |
AzureIoTClient | 42:448eecc3676e | 27 | |
AzureIoTClient | 42:448eecc3676e | 28 | #include "azure_c_shared_utility/umock_c_prod.h" |
AzureIoTClient | 42:448eecc3676e | 29 | #ifdef __cplusplus |
AzureIoTClient | 42:448eecc3676e | 30 | #include <cstddef> |
AzureIoTClient | 42:448eecc3676e | 31 | extern "C" |
AzureIoTClient | 42:448eecc3676e | 32 | { |
AzureIoTClient | 42:448eecc3676e | 33 | #else |
AzureIoTClient | 42:448eecc3676e | 34 | #include <stddef.h> |
AzureIoTClient | 42:448eecc3676e | 35 | #endif |
AzureIoTClient | 42:448eecc3676e | 36 | |
AzureIoTClient | 42:448eecc3676e | 37 | typedef struct IOTHUB_CLIENT_LL_UPLOADTOBLOB_HANDLE_DATA* IOTHUB_CLIENT_LL_UPLOADTOBLOB_HANDLE; |
AzureIoTClient | 42:448eecc3676e | 38 | |
AzureIoTClient | 42:448eecc3676e | 39 | MOCKABLE_FUNCTION(, IOTHUB_CLIENT_LL_UPLOADTOBLOB_HANDLE, IoTHubClient_LL_UploadToBlob_Create, const IOTHUB_CLIENT_CONFIG*, config); |
AzureIoTClient | 42:448eecc3676e | 40 | MOCKABLE_FUNCTION(, IOTHUB_CLIENT_RESULT, IoTHubClient_LL_UploadToBlob_Impl, IOTHUB_CLIENT_LL_UPLOADTOBLOB_HANDLE, handle, const char*, destinationFileName, const unsigned char*, source, size_t, size); |
AzureIoTClient | 42:448eecc3676e | 41 | MOCKABLE_FUNCTION(, void, IoTHubClient_LL_UploadToBlob_Destroy, IOTHUB_CLIENT_LL_UPLOADTOBLOB_HANDLE, handle); |
AzureIoTClient | 42:448eecc3676e | 42 | #ifdef __cplusplus |
AzureIoTClient | 42:448eecc3676e | 43 | } |
AzureIoTClient | 42:448eecc3676e | 44 | #endif |
AzureIoTClient | 42:448eecc3676e | 45 | |
AzureIoTClient | 42:448eecc3676e | 46 | #endif /* IOTHUB_CLIENT_LL_UPLOADTOBLOB_H */ |