forked from microsoft/SEAL
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathversion.cpp
More file actions
36 lines (27 loc) · 681 Bytes
/
version.cpp
File metadata and controls
36 lines (27 loc) · 681 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
// SEALNet
#include "seal/c/utilities.h"
#include "seal/c/version.h"
// SEAL
#include "seal/util/config.h"
using namespace std;
using namespace seal::c;
SEAL_C_FUNC Version_Major(uint8_t *result)
{
IfNullRet(result, E_POINTER);
*result = (uint8_t)SEAL_VERSION_MAJOR;
return S_OK;
}
SEAL_C_FUNC Version_Minor(uint8_t *result)
{
IfNullRet(result, E_POINTER);
*result = (uint8_t)SEAL_VERSION_MINOR;
return S_OK;
}
SEAL_C_FUNC Version_Patch(uint8_t *result)
{
IfNullRet(result, E_POINTER);
*result = (uint8_t)SEAL_VERSION_PATCH;
return S_OK;
}