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

Files at this revision

API Documentation at this revision

Comitter:
DieterGraef
Date:
Sun Jun 19 20:50:15 2016 +0000
Parent:
43:038d8511e817
Commit message:
got compiling errors when typedef struct IOTHUB_CLIENT_LL_UPLOADTOBLOB_HANDLE_DATA* IOTHUB_CLIENT_LL_UPLOADTOBLOB_HANDLE; was not included in the sources

Changed in this revision

iothub_client_ll_uploadtoblob.c Show annotated file Show diff for this revision Revisions of this file
iothub_client_ll_uploadtoblob.h Show annotated file Show diff for this revision Revisions of this file
--- a/iothub_client_ll_uploadtoblob.c	Fri Jun 17 17:02:44 2016 -0700
+++ b/iothub_client_ll_uploadtoblob.c	Sun Jun 19 20:50:15 2016 +0000
@@ -21,6 +21,8 @@
 #include "iothub_client_ll_uploadtoblob.h"
 #include "blob.h"
 
+
+
 /*Codes_SRS_IOTHUBCLIENT_LL_02_085: [ IoTHubClient_LL_UploadToBlob shall use the same authorization as step 1. to prepare and perform a HTTP request with the following parameters: ]*/
 #define FILE_UPLOAD_FAILED_BODY "{ \"isSuccess\":false, \"statusCode\":-1,\"statusDescription\" : \"client not able to connect with the server\" }"
 
@@ -113,7 +115,7 @@
         }
     }
     return (IOTHUB_CLIENT_LL_UPLOADTOBLOB_HANDLE)handleData;
-    
+
 }
 
 /*returns 0 when correlationId, sasUri contain data*/
--- 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*/
+