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_private.h
- Revision:
- 38:a05929a75111
- Parent:
- 37:18310e4d888d
--- a/iothub_client_private.h Fri Mar 25 16:00:25 2016 -0700 +++ b/iothub_client_private.h Fri Apr 08 13:24:33 2016 -0700 @@ -6,12 +6,10 @@ #include <signal.h> -#include "macro_utils.h" -#include "threadapi.h" -#include "lock.h" -#include "crt_abstractions.h" +#include "azure_c_shared_utility/macro_utils.h" +#include "azure_c_shared_utility/crt_abstractions.h" +#include "azure_c_shared_utility/doublylinkedlist.h" -#include "doublylinkedlist.h" #include "iothub_message.h" #include "iothub_client_ll.h" @@ -48,34 +46,6 @@ uint64_t ms_timesOutAfter; /* a value of "0" means "no timeout", if the IOTHUBCLIENT_LL's handle tickcounter > msTimesOutAfer then the message shall timeout*/ }IOTHUB_MESSAGE_LIST; -typedef void* TRANSPORT_LL_HANDLE; -typedef void* IOTHUB_DEVICE_HANDLE; - -typedef IOTHUB_CLIENT_RESULT(*pfIoTHubTransport_SetOption)(TRANSPORT_LL_HANDLE handle, const char *optionName, const void* value); -typedef TRANSPORT_LL_HANDLE(*pfIoTHubTransport_Create)(const IOTHUBTRANSPORT_CONFIG* config); -typedef void (*pfIoTHubTransport_Destroy)(TRANSPORT_LL_HANDLE handle); -typedef IOTHUB_DEVICE_HANDLE(*pfIotHubTransport_Register)(TRANSPORT_LL_HANDLE handle, const char* deviceId, const char* deviceKey, IOTHUB_CLIENT_LL_HANDLE iotHubClientHandle, PDLIST_ENTRY waitingToSend); -typedef void(*pfIotHubTransport_Unregister)(IOTHUB_DEVICE_HANDLE deviceHandle); -typedef int (*pfIoTHubTransport_Subscribe)(IOTHUB_DEVICE_HANDLE handle); -typedef void (*pfIoTHubTransport_Unsubscribe)(IOTHUB_DEVICE_HANDLE handle); -typedef void (*pfIoTHubTransport_DoWork)(TRANSPORT_LL_HANDLE handle, IOTHUB_CLIENT_LL_HANDLE iotHubClientHandle); -typedef IOTHUB_CLIENT_RESULT(*pfIoTHubTransport_GetSendStatus)(IOTHUB_DEVICE_HANDLE handle, IOTHUB_CLIENT_STATUS *iotHubClientStatus); - -#define TRANSPORT_PROVIDER_FIELDS \ -pfIoTHubTransport_SetOption IoTHubTransport_SetOption; \ -pfIoTHubTransport_Create IoTHubTransport_Create; \ -pfIoTHubTransport_Destroy IoTHubTransport_Destroy; \ -pfIotHubTransport_Register IoTHubTransport_Register; \ -pfIotHubTransport_Unregister IoTHubTransport_Unregister; \ -pfIoTHubTransport_Subscribe IoTHubTransport_Subscribe; \ -pfIoTHubTransport_Unsubscribe IoTHubTransport_Unsubscribe; \ -pfIoTHubTransport_DoWork IoTHubTransport_DoWork; \ -pfIoTHubTransport_GetSendStatus IoTHubTransport_GetSendStatus /*there's an intentional missing ; on this line*/ \ - -typedef struct TRANSPORT_PROVIDER_TAG -{ - TRANSPORT_PROVIDER_FIELDS; -}TRANSPORT_PROVIDER; #ifdef __cplusplus }