Products Support Documentation Download
rdmrowidapi.h
Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2  * Raima Database Manager
3  *
4  * Copyright (c) 2014 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  */
12 
17 #if !defined(RDMROWIDAPI_H_INCLUDED)
18 #define RDMROWIDAPI_H_INCLUDED
19 
20 #if defined(__cplusplus) && !defined(CPP_HEADER_INCLUDED)
21 #error rdmrowidapi.h is only for C applications. Do not include it directly in C++ applications. Use cpp-rdmrowidapi.h instead
22 #endif
23 
34 #include "rdmrowidtypes.h"
35 
56 RDM_EXPORT RDM_SLOT EXTERNAL_FCN rdm_rowidDecode(
57  RDM_ROWID_T rowid,
58  RDM_UNO *uno
59  );
60 
73 RDM_EXPORT RDM_ROWID_T EXTERNAL_FCN rdm_rowidEncode(
74  RDM_UNO uno,
75  RDM_SLOT slot
76  );
77 
79 #endif /* RDMROWIDAPI_H_INCLUDED */
RDM_SLOT rdm_rowidDecode(RDM_ROWID_T rowid, RDM_UNO *uno)
Decode a ROWID into a union number and slot.
RDM_ROWID_T rdm_rowidEncode(RDM_UNO uno, RDM_SLOT slot)
Encode a union number and slot into a ROWID.
uint8_t RDM_UNO
Definition: rdmrowidtypes.h:22
uint64_t RDM_ROWID_T
Definition: rdmrowidtypes.h:21
Header for row ID types.
uint64_t RDM_SLOT
Definition: rdmrowidtypes.h:23