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
Diff: iothub_client_ll_uploadtoblob.h
- Revision:
- 44:126f118a71ba
- Parent:
- 43:038d8511e817
--- a/iothub_client_ll_uploadtoblob.h Fri Jun 17 17:02:44 2016 -0700 +++ b/iothub_client_ll_uploadtoblob.h Sun Jun 19 20:50:15 2016 +0000 @@ -20,11 +20,11 @@ * often not desired. */ -#ifdef USE_UPLOADTOBLOB - #ifndef IOTHUB_CLIENT_LL_UPLOADTOBLOB_H #define IOTHUB_CLIENT_LL_UPLOADTOBLOB_H + + #include "iothub_client_ll.h" #include "azure_c_shared_utility/umock_c_prod.h" @@ -37,16 +37,15 @@ #endif typedef struct IOTHUB_CLIENT_LL_UPLOADTOBLOB_HANDLE_DATA* IOTHUB_CLIENT_LL_UPLOADTOBLOB_HANDLE; - +#ifdef USE_UPLOADTOBLOB MOCKABLE_FUNCTION(, IOTHUB_CLIENT_LL_UPLOADTOBLOB_HANDLE, IoTHubClient_LL_UploadToBlob_Create, const IOTHUB_CLIENT_CONFIG*, config); 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); MOCKABLE_FUNCTION(, void, IoTHubClient_LL_UploadToBlob_Destroy, IOTHUB_CLIENT_LL_UPLOADTOBLOB_HANDLE, handle); +#endif #ifdef __cplusplus } #endif #endif /* IOTHUB_CLIENT_LL_UPLOADTOBLOB_H */ -#else -#error "trying to #include iothub_client_ll_uploadtoblob.h in absence of #define USE_UPLOADTOBLOB" -#endif /*USE_UPLOADTOBLOB*/ +