Nigel Rantor / azure_c_shared_utility

Fork of azure_c_shared_utility by Azure IoT

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers uniqueid.h Source File

uniqueid.h

00001 // Copyright (c) Microsoft. All rights reserved.
00002 // Licensed under the MIT license. See LICENSE file in the project root for full license information.
00003 
00004 #ifndef UNIQUEID_H
00005 #define UNIQUEID_H
00006 
00007 #include "azure_c_shared_utility/macro_utils.h"
00008 
00009 #ifdef __cplusplus
00010 #include <cstddef>
00011 extern "C" {
00012 #else
00013 #include <stddef.h>
00014 #endif
00015 
00016 #include "azure_c_shared_utility/umock_c_prod.h"
00017 
00018 #define UNIQUEID_RESULT_VALUES    \
00019     UNIQUEID_OK,                  \
00020     UNIQUEID_INVALID_ARG,         \
00021     UNIQUEID_ERROR
00022 
00023     DEFINE_ENUM(UNIQUEID_RESULT, UNIQUEID_RESULT_VALUES)
00024 
00025         MOCKABLE_FUNCTION(, UNIQUEID_RESULT, UniqueId_Generate, char*, uid, size_t, bufferSize);
00026 
00027 #ifdef __cplusplus
00028 }
00029 #endif
00030 
00031 #endif /* UNIQUEID_H */