2022-01-10 22:11:12 +03:00
|
|
|
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
|
|
|
|
#ifndef REAL_UUID_H
|
|
|
|
#define REAL_UUID_H
|
|
|
|
|
2024-01-30 09:00:45 +03:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
2022-01-10 22:11:12 +03:00
|
|
|
#include "macro_utils/macro_utils.h"
|
|
|
|
|
|
|
|
#define R2(X) REGISTER_GLOBAL_MOCK_HOOK(X, real_##X);
|
|
|
|
|
2024-01-30 09:00:45 +03:00
|
|
|
#define REGISTER_UUID_GLOBAL_MOCK_HOOK() \
|
|
|
|
MU_FOR_EACH_1(R2, \
|
|
|
|
uuid_produce, \
|
|
|
|
is_uuid_nil \
|
2022-01-10 22:11:12 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
int real_uuid_produce(UUID_T destination);
|
2024-01-30 09:00:45 +03:00
|
|
|
bool real_is_uuid_nil(const UUID_T uuid_value);
|
2022-01-10 22:11:12 +03:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif //REAL_UUID_H
|