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 Azure IoT

Committer:
AzureIoTClient
Date:
Fri Jun 17 17:02:44 2016 -0700
Revision:
43:038d8511e817
Parent:
42:448eecc3676e
Child:
44:126f118a71ba
1.0.9

Who changed what in which revision?

UserRevisionLine numberNew 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 43:038d8511e817 23 #ifdef USE_UPLOADTOBLOB
AzureIoTClient 43:038d8511e817 24
AzureIoTClient 42:448eecc3676e 25 #ifndef IOTHUB_CLIENT_LL_UPLOADTOBLOB_H
AzureIoTClient 42:448eecc3676e 26 #define IOTHUB_CLIENT_LL_UPLOADTOBLOB_H
AzureIoTClient 42:448eecc3676e 27
AzureIoTClient 42:448eecc3676e 28 #include "iothub_client_ll.h"
AzureIoTClient 42:448eecc3676e 29
AzureIoTClient 42:448eecc3676e 30 #include "azure_c_shared_utility/umock_c_prod.h"
AzureIoTClient 42:448eecc3676e 31 #ifdef __cplusplus
AzureIoTClient 42:448eecc3676e 32 #include <cstddef>
AzureIoTClient 42:448eecc3676e 33 extern "C"
AzureIoTClient 42:448eecc3676e 34 {
AzureIoTClient 42:448eecc3676e 35 #else
AzureIoTClient 42:448eecc3676e 36 #include <stddef.h>
AzureIoTClient 42:448eecc3676e 37 #endif
AzureIoTClient 42:448eecc3676e 38
AzureIoTClient 42:448eecc3676e 39 typedef struct IOTHUB_CLIENT_LL_UPLOADTOBLOB_HANDLE_DATA* IOTHUB_CLIENT_LL_UPLOADTOBLOB_HANDLE;
AzureIoTClient 42:448eecc3676e 40
AzureIoTClient 42:448eecc3676e 41 MOCKABLE_FUNCTION(, IOTHUB_CLIENT_LL_UPLOADTOBLOB_HANDLE, IoTHubClient_LL_UploadToBlob_Create, const IOTHUB_CLIENT_CONFIG*, config);
AzureIoTClient 42:448eecc3676e 42 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 43 MOCKABLE_FUNCTION(, void, IoTHubClient_LL_UploadToBlob_Destroy, IOTHUB_CLIENT_LL_UPLOADTOBLOB_HANDLE, handle);
AzureIoTClient 42:448eecc3676e 44 #ifdef __cplusplus
AzureIoTClient 42:448eecc3676e 45 }
AzureIoTClient 42:448eecc3676e 46 #endif
AzureIoTClient 42:448eecc3676e 47
AzureIoTClient 42:448eecc3676e 48 #endif /* IOTHUB_CLIENT_LL_UPLOADTOBLOB_H */
AzureIoTClient 43:038d8511e817 49
AzureIoTClient 43:038d8511e817 50 #else
AzureIoTClient 43:038d8511e817 51 #error "trying to #include iothub_client_ll_uploadtoblob.h in absence of #define USE_UPLOADTOBLOB"
AzureIoTClient 43:038d8511e817 52 #endif /*USE_UPLOADTOBLOB*/