34 строки
721 B
C
34 строки
721 B
C
// Copyright (c) Microsoft. All rights reserved.
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
#ifndef UNIQUEID_H
|
|
#define UNIQUEID_H
|
|
|
|
#ifdef __cplusplus
|
|
#include <cstddef>
|
|
#else
|
|
#include <stddef.h>
|
|
#endif
|
|
|
|
#include "azure_macro_utils/macro_utils.h"
|
|
#include "umock_c/umock_c_prod.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define UNIQUEID_RESULT_VALUES \
|
|
UNIQUEID_OK, \
|
|
UNIQUEID_INVALID_ARG, \
|
|
UNIQUEID_ERROR
|
|
|
|
MU_DEFINE_ENUM(UNIQUEID_RESULT, UNIQUEID_RESULT_VALUES)
|
|
|
|
MOCKABLE_FUNCTION(, UNIQUEID_RESULT, UniqueId_Generate, char*, uid, size_t, bufferSize);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* UNIQUEID_H */
|