| 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 |
#ifndef UNIQUEID_H |
| 5 |
#define UNIQUEID_H |
| 6 |
|
| 7 |
#ifdef __cplusplus |
| 8 |
#include <cstddef> |
| 9 |
#else |
| 10 |
#include <stddef.h> |
| 11 |
#endif |
| 12 |
|
| 13 |
#include "azure_macro_utils/macro_utils.h" |
| 14 |
#include "umock_c/umock_c_prod.h" |
| 15 |
|
| 16 |
#ifdef __cplusplus |
| 17 |
extern "C" { |
| 18 |
#endif |
| 19 |
|
| 20 |
#define UNIQUEID_RESULT_VALUES \ |
| 21 |
UNIQUEID_OK, \ |
| 22 |
UNIQUEID_INVALID_ARG, \ |
| 23 |
UNIQUEID_ERROR |
| 24 |
|
| 25 |
MU_DEFINE_ENUM(UNIQUEID_RESULT, UNIQUEID_RESULT_VALUES) |
| 26 |
|
| 27 |
MOCKABLE_FUNCTION(, UNIQUEID_RESULT, UniqueId_Generate, char*, uid, size_t, bufferSize); |
| 28 |
|
| 29 |
#ifdef __cplusplus |
| 30 |
} |
| 31 |
#endif |
| 32 |
|
| 33 |
#endif /* UNIQUEID_H */ |