2015-11-15 22:54:49 +03:00
|
|
|
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
|
2015-10-30 22:42:59 +03:00
|
|
|
#ifndef PLATFORM_H
|
|
|
|
#define PLATFORM_H
|
|
|
|
|
2017-04-12 19:18:13 +03:00
|
|
|
#include "azure_c_shared_utility/strings.h"
|
2016-04-06 06:50:09 +03:00
|
|
|
#include "azure_c_shared_utility/xio.h"
|
2019-04-11 03:36:08 +03:00
|
|
|
#include "umock_c/umock_c_prod.h"
|
2016-01-31 08:53:08 +03:00
|
|
|
|
2019-01-11 01:10:14 +03:00
|
|
|
#define GUID_LENGTH 64
|
2019-03-06 00:29:28 +03:00
|
|
|
|
2017-08-28 22:09:47 +03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2019-05-02 19:50:22 +03:00
|
|
|
#define PLATFORM_INFO_OPTION_VALUES \
|
|
|
|
PLATFORM_INFO_OPTION_DEFAULT, \
|
|
|
|
PLATFORM_INFO_OPTION_RETRIEVE_SQM
|
|
|
|
|
|
|
|
MU_DEFINE_ENUM(PLATFORM_INFO_OPTION, PLATFORM_INFO_OPTION_VALUES);
|
|
|
|
|
2016-04-25 05:18:33 +03:00
|
|
|
MOCKABLE_FUNCTION(, int, platform_init);
|
|
|
|
MOCKABLE_FUNCTION(, void, platform_deinit);
|
|
|
|
MOCKABLE_FUNCTION(, const IO_INTERFACE_DESCRIPTION*, platform_get_default_tlsio);
|
2019-03-06 00:29:28 +03:00
|
|
|
MOCKABLE_FUNCTION(, STRING_HANDLE, platform_get_platform_info, PLATFORM_INFO_OPTION, options);
|
2015-10-30 22:42:59 +03:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
#endif /* PLATFORM_H */
|