Microsoft Azure IoTHub client libraries
Dependents: sht15_remote_monitoring RobotArmDemo iothub_client_sample_amqp f767zi_mqtt ... more
This library implements the Microsoft Azure IoTHub client library. The code is replicated from https://github.com/Azure/azure-iot-sdks
Diff: iothub_client.c
- Revision:
- 35:ceed20da4ba6
- Parent:
- 18:1e9adb15c645
- Child:
- 37:18310e4d888d
--- a/iothub_client.c Thu Feb 04 11:28:52 2016 -0800 +++ b/iothub_client.c Tue Feb 16 14:24:56 2016 -0800 @@ -9,6 +9,7 @@ #include <stdlib.h> #include <signal.h> +#include <stddef.h> #include "crt_abstractions.h" #include "iothub_client.h" #include "iothub_client_ll.h" @@ -24,6 +25,9 @@ sig_atomic_t StopThread; } IOTHUB_CLIENT_INSTANCE; +/*used by unittests only*/ +const size_t IoTHubClient_ThreadTerminationOffset = offsetof(IOTHUB_CLIENT_INSTANCE, StopThread); + static int ScheduleWork_Thread(void* threadArgument) { IOTHUB_CLIENT_INSTANCE* iotHubClientInstance = (IOTHUB_CLIENT_INSTANCE*)threadArgument;