Skip to content

Commit 96cf303

Browse files
committed
publish api version in the header
1 parent d69f83f commit 96cf303

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

IntelPresentMon/PresentMonAPI2/PresentMonAPI.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@
99

1010
#include <cstdint>
1111

12+
#define PM_API_VERSION_MAJOR 3
13+
#define PM_API_VERSION_MINOR 0
14+
1215
#ifdef __cplusplus
1316
extern "C" {
1417
#endif
1518

19+
1620
enum PM_STATUS
1721
{
1822
PM_STATUS_SUCCESS,

IntelPresentMon/Versioning/PresentMonAPIVersion.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
#include "PresentMonAPIVersion.h"
22
#include "BuildId.h"
33
#include <cstring>
4+
#include "../PresentMonAPI2/PresentMonAPI.h"
45

56
namespace pmon::bid
67
{
78
PM_VERSION GetApiVersion() noexcept
89
{
910
PM_VERSION ver{
10-
.major = 3,
11-
.minor = 0,
11+
.major = PM_API_VERSION_MAJOR,
12+
.minor = PM_API_VERSION_MINOR,
1213
.patch = 0,
1314
.tag = "",
1415
};

0 commit comments

Comments
 (0)