Products Support Documentation Download
rdmuuidapi.h
Go to the documentation of this file.
1 /*
2  * Raima Database Manager
3  *
4  * Copyright (C) 2016 Raima Inc., All rights reserved.
5  *
6  * Use of this software, whether in source code format, or in executable,
7  * binary object code form, is governed by the Raima LICENSE which
8  * is fully described in the LICENSE.TXT file, included within this
9  * distribution of files.
10  */
11 
16 #if !defined(RDMUUIDAPI_H_INCLUDED_)
17 #define RDMUUIDAPI_H_INCLUDED_
18 
19 #include "rdmuuidtypes.h"
20 #include "rdmretcodetypes.h"
21 
22 #if defined(__cplusplus) && !defined(CPP_HEADER_INCLUDED)
23 #error rdmuuidapi.h is only for C applications. Do not include it directly in C applications. Use cpp-rdmuuidapi.h instead
24 #endif
25 
26 #if !defined(RDM_NO_UNICODE)
27 #define rdm_uuidFromString RDM_T_FUNC(rdm_uuidFromString)
28 #define rdm_uuidToString RDM_T_FUNC(rdm_uuidToString)
29 #endif
30 
52 RDM_EXPORT void EXTERNAL_FCN rdm_uuidCreate(
53  RDM_UUID_T *uuid
54  );
55 
66 RDM_EXPORT RDM_RETCODE EXTERNAL_FCN rdm_uuidFromString(
67  const RDM_TCHAR_T *str,
68  RDM_UUID_T *uuid
69  );
70 
78 RDM_EXPORT size_t EXTERNAL_FCN rdm_uuidStrLen(
79  const RDM_UUID_T *uuid,
80  RDM_BOOL_T braces
81  );
82 
96 RDM_EXPORT RDM_RETCODE EXTERNAL_FCN rdm_uuidToString(
97  const RDM_UUID_T *uuid,
98  RDM_TCHAR_T *str,
99  size_t len,
100  RDM_BOOL_T braces
101  );
102 
105 #endif /* RDMUUIDAPI_H_INCLUDED_ */
RDM_BOOL_T
Definition: psptypes.h:62
size_t rdm_uuidStrLen(const RDM_UUID_T *uuid, RDM_BOOL_T braces)
RDM Status and Error Return Codes.
RDM_RETCODE rdm_uuidFromString(const RDM_TCHAR_T *str, RDM_UUID_T *uuid)
RDM_RETCODE
RDM status and error return codes.
void rdm_uuidCreate(RDM_UUID_T *uuid)
The RDM UUID data structure.
Definition: rdmuuidtypes.h:23
#define RDM_TCHAR_T
Definition: psptypes.h:134
RDM_RETCODE rdm_uuidToString(const RDM_UUID_T *uuid, RDM_TCHAR_T *str, size_t len, RDM_BOOL_T braces)
Header for Universally Unique Identifier (UUID) types.