2016-12-28 09:53:23 +03:00
|
|
|
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "azure_c_shared_utility/platform.h"
|
|
|
|
#include "azure_c_shared_utility/tlsio_mbedtls.h"
|
|
|
|
|
|
|
|
int platform_init(void)
|
|
|
|
{
|
2018-09-07 01:34:57 +03:00
|
|
|
return 0;
|
2016-12-28 09:53:23 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
const IO_INTERFACE_DESCRIPTION* platform_get_default_tlsio(void)
|
|
|
|
{
|
2018-09-07 01:34:57 +03:00
|
|
|
return tlsio_mbedtls_get_interface_description();
|
2016-12-28 09:53:23 +03:00
|
|
|
}
|
|
|
|
|
2019-03-06 00:29:28 +03:00
|
|
|
STRING_HANDLE platform_get_platform_info(PLATFORM_INFO_OPTION options)
|
2017-04-12 19:18:13 +03:00
|
|
|
{
|
2019-03-11 23:29:02 +03:00
|
|
|
// No applicable options, so ignoring parameter
|
2019-01-11 01:10:14 +03:00
|
|
|
(void)options;
|
|
|
|
|
2017-11-16 02:49:07 +03:00
|
|
|
// Expected format: "(<runtime name>; <operating system name>; <platform>)"
|
|
|
|
|
|
|
|
return STRING_construct("(native; tizenrt; undefined)");
|
2017-04-12 19:18:13 +03:00
|
|
|
}
|
|
|
|
|
2016-12-28 09:53:23 +03:00
|
|
|
void platform_deinit(void)
|
|
|
|
{
|
2018-09-07 01:34:57 +03:00
|
|
|
return;
|
2016-12-28 09:53:23 +03:00
|
|
|
}
|