Azure IoT common library

Fork of azure_c_shared_utility by Azure IoT

Committer:
wiggly
Date:
Thu Aug 24 14:14:15 2017 +0100
Revision:
34:651c23af382c
Parent:
33:5f2a48fc7e5b
Pass in network stack to platform initialisation
Remove NTP setup from azure platform code

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Azure.IoT Build 0:fa2de1b79154 1 // Copyright (c) Microsoft. All rights reserved.
Azure.IoT Build 0:fa2de1b79154 2 // Licensed under the MIT license. See LICENSE file in the project root for full license information.
Azure.IoT Build 0:fa2de1b79154 3
Azure.IoT Build 0:fa2de1b79154 4 #ifndef PLATFORM_H
Azure.IoT Build 0:fa2de1b79154 5 #define PLATFORM_H
Azure.IoT Build 0:fa2de1b79154 6
Azure.IoT Build 0:fa2de1b79154 7 #ifdef __cplusplus
Azure.IoT Build 0:fa2de1b79154 8 extern "C" {
Azure.IoT Build 0:fa2de1b79154 9 #endif /* __cplusplus */
Azure.IoT Build 0:fa2de1b79154 10
AzureIoTClient 25:8507bf644fdf 11 #include "azure_c_shared_utility/strings.h"
Azure.IoT Build 0:fa2de1b79154 12 #include "azure_c_shared_utility/xio.h"
AzureIoTClient 2:20b88da3e604 13 #include "azure_c_shared_utility/umock_c_prod.h"
Azure.IoT Build 0:fa2de1b79154 14
wiggly 33:5f2a48fc7e5b 15 typedef struct NetworkInterface NetworkInterface;
wiggly 33:5f2a48fc7e5b 16
wiggly 33:5f2a48fc7e5b 17 MOCKABLE_FUNCTION(, int, platform_init, NetworkInterface*, net);
AzureIoTClient 2:20b88da3e604 18 MOCKABLE_FUNCTION(, void, platform_deinit);
AzureIoTClient 2:20b88da3e604 19 MOCKABLE_FUNCTION(, const IO_INTERFACE_DESCRIPTION*, platform_get_default_tlsio);
AzureIoTClient 25:8507bf644fdf 20 MOCKABLE_FUNCTION(, STRING_HANDLE, platform_get_platform_info);
Azure.IoT Build 0:fa2de1b79154 21
wiggly 34:651c23af382c 22 MOCKABLE_FUNCTION(, NetworkInterface*, platform_get_network_stack);
Azure.IoT Build 0:fa2de1b79154 23 #ifdef __cplusplus
Azure.IoT Build 0:fa2de1b79154 24 }
Azure.IoT Build 0:fa2de1b79154 25 #endif /* __cplusplus */
Azure.IoT Build 0:fa2de1b79154 26
Azure.IoT Build 0:fa2de1b79154 27 #endif /* PLATFORM_H */