diff --git a/iothub_client/inc/internal/iothub_client_ll_uploadtoblob.h b/iothub_client/inc/internal/iothub_client_ll_uploadtoblob.h index c3bff63a9..da80dab02 100644 --- a/iothub_client/inc/internal/iothub_client_ll_uploadtoblob.h +++ b/iothub_client/inc/internal/iothub_client_ll_uploadtoblob.h @@ -41,16 +41,6 @@ extern "C" typedef struct IOTHUB_CLIENT_LL_UPLOADTOBLOB_HANDLE_DATA* IOTHUB_CLIENT_LL_UPLOADTOBLOB_HANDLE; - /* - * @remark `struct IOTHUB_CLIENT_LL_UPLOADTOBLOB_CONTEXT_STRUCT` contains information specifically - * related to an individual upload request currently active in Azure IoT Hub, mainly - * the correlation-id and Azure Blob SAS URI provided by the Azure IoT Hub when a new - * upload is started. The `struct IOTHUB_CLIENT_LL_UPLOADTOBLOB_HANDLE_DATA` on the other hand - * holds common information (independent from individual upload requests) that is used for - * upload-to-blob Rest API calls to Azure IoT Hub. - */ - typedef struct IOTHUB_CLIENT_LL_UPLOADTOBLOB_CONTEXT_STRUCT* IOTHUB_CLIENT_LL_UPLOADTOBLOB_CONTEXT_HANDLE; - MOCKABLE_FUNCTION(, IOTHUB_CLIENT_LL_UPLOADTOBLOB_HANDLE, IoTHubClient_LL_UploadToBlob_Create, const IOTHUB_CLIENT_CONFIG*, config, IOTHUB_AUTHORIZATION_HANDLE, auth_handle); /* diff --git a/iothub_client/inc/iothub_client_core_common.h b/iothub_client/inc/iothub_client_core_common.h index e45e4c032..595835cc9 100644 --- a/iothub_client/inc/iothub_client_core_common.h +++ b/iothub_client/inc/iothub_client_core_common.h @@ -33,6 +33,15 @@ extern "C" */ typedef void(*IOTHUB_CLIENT_FILE_UPLOAD_CALLBACK)(IOTHUB_CLIENT_FILE_UPLOAD_RESULT result, void* userContextCallback); +/** @remark `struct IOTHUB_CLIENT_LL_UPLOADTOBLOB_CONTEXT_STRUCT` contains information specifically + * related to an individual upload request currently active in Azure IoT Hub, mainly + * the correlation-id and Azure Blob SAS URI provided by the Azure IoT Hub when a new + * upload is started. The `struct IOTHUB_CLIENT_LL_UPLOADTOBLOB_HANDLE_DATA` on the other hand + * holds common information (independent from individual upload requests) that is used for + * upload-to-blob Rest API calls to Azure IoT Hub. + */ +typedef struct IOTHUB_CLIENT_LL_UPLOADTOBLOB_CONTEXT_STRUCT* IOTHUB_CLIENT_LL_UPLOADTOBLOB_CONTEXT_HANDLE; + #define IOTHUB_CLIENT_RESULT_VALUES \ IOTHUB_CLIENT_OK, \ IOTHUB_CLIENT_INVALID_ARG, \ diff --git a/iothub_client/inc/iothub_client_core_ll.h b/iothub_client/inc/iothub_client_core_ll.h index befe5364a..55ca36d73 100644 --- a/iothub_client/inc/iothub_client_core_ll.h +++ b/iothub_client/inc/iothub_client_core_ll.h @@ -18,9 +18,6 @@ typedef struct IOTHUB_CLIENT_CORE_LL_HANDLE_DATA_TAG* IOTHUB_CLIENT_CORE_LL_HAND #include "umock_c/umock_c_prod.h" #include "iothub_transport_ll.h" #include "iothub_client_core_common.h" -#ifndef DONT_USE_UPLOADTOBLOB -#include "internal/iothub_client_ll_uploadtoblob.h" -#endif #ifdef __cplusplus extern "C"