Skip to content

Commit 7e4e2fa

Browse files
authored
Merge pull request #548 from ldorau/Add_umfGetCurrentVersion_to_UMF_API
Add umfGetCurrentVersion() to UMF API
2 parents 224bd75 + 8fe7ade commit 7e4e2fa

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

include/umf.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ int umfInit(void);
3232
/// It must be called just before dlclose() and it is not required in other scenarios.
3333
void umfTearDown(void);
3434

35+
///
36+
/// @brief Get the current version of the UMF headers defined by UMF_VERSION_CURRENT.
37+
int umfGetCurrentVersion(void);
38+
3539
#ifdef __cplusplus
3640
}
3741
#endif

src/libumf.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,5 @@ void umfTearDown(void) {
4545
umf_ba_destroy_global();
4646
}
4747
}
48+
49+
int umfGetCurrentVersion(void) { return UMF_VERSION_CURRENT; }

src/libumf.def.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ EXPORTS
1212
DllMain
1313
umfInit
1414
umfTearDown
15+
umfGetCurrentVersion
1516
umfCloseIPCHandle
1617
umfFree
1718
umfGetIPCHandle

src/libumf.map

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ UMF_1.0 {
66
global:
77
umfInit;
88
umfTearDown;
9+
umfGetCurrentVersion;
910
umfCloseIPCHandle;
1011
umfFree;
1112
umfGetIPCHandle;

0 commit comments

Comments
 (0)