| 1 |
// Copyright (c) Microsoft. All rights reserved. |
| 2 |
// Licensed under the MIT license. See LICENSE file in the project root for full license information. |
| 3 |
|
| 4 |
#include "azure_c_shared_utility/platform.h" |
| 5 |
#include "azure_c_shared_utility/tickcounter.h" |
| 6 |
#include "azure_c_shared_utility/tlsio_mbedtls.h" |
| 7 |
#include "azure_c_shared_utility/xio.h" |
| 8 |
|
| 9 |
int platform_init(void) |
| 10 |
{ |
| 11 |
return 0; |
| 12 |
} |
| 13 |
|
| 14 |
const IO_INTERFACE_DESCRIPTION *platform_get_default_tlsio(void) |
| 15 |
{ |
| 16 |
return tlsio_mbedtls_get_interface_description(); |
| 17 |
} |
| 18 |
|
| 19 |
STRING_HANDLE platform_get_platform_info(PLATFORM_INFO_OPTION options) |
| 20 |
{ |
| 21 |
// No applicable options, so ignoring parameter |
| 22 |
(void)options; |
| 23 |
|
| 24 |
// Expected format: "(<runtime name>; <operating system name>; <platform>)" |
| 25 |
return STRING_construct("(native; mbedOS5; undefined)"); |
| 26 |
} |
| 27 |
|
| 28 |
void platform_deinit(void) |
| 29 |
{ |
| 30 |
} |