forked from aristanetworks/EosSdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathversion.h
60 lines (45 loc) · 1.85 KB
/
version.h
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/**
* @file
* The version module. It provides EosSdk version information.
*
* This module provides access to EosSdk version information, including
* version major number, version minor number and version patch number.
*
* To access the version information, application will need to include
* "eos/version.h", then it can access it directly, as following:
* eos::version_major
* eos::version_minor
* eos::version_patch
* eos::version
*
* Note: eos::version is of type "char *" while version_major, version_minor
* and version_patch are of type "uint8_t".
*/
// Copyright (c) 2013 Arista Networks, Inc. All rights reserved.
// Arista Networks, Inc. Confidential and Proprietary.
#ifndef EOSSDK_VERSION_H
#define EOSSDK_VERSION_H
#include <eos/base.h>
namespace eos {
// Version string, at least of the form "X.Y.Z", but possibly followed by a
// dash and more characters (e.g. "X.Y.Z-rc1").
extern const char * const version EOS_SDK_PUBLIC;
// Major version number (i.e. the "X" in "X.Y.Z")
extern const uint8_t version_major EOS_SDK_PUBLIC;
// Minor version number (i.e. the "Y" in "X.Y.Z")
extern const uint8_t version_minor EOS_SDK_PUBLIC;
// Patch version number (i.e. the "Z" in "X.Y.Z", regardless of any trailing
// characters followed by the dash optional)
extern const uint8_t version_patch EOS_SDK_PUBLIC;
// Arista project name used to build the EOS SDK.
extern const char * const build_project EOS_SDK_PUBLIC;
// User that built the EOS SDK.
extern const char * const build_user EOS_SDK_PUBLIC;
// Path under which the EOS SDK was built.
extern const char * const build_path EOS_SDK_PUBLIC;
// Source control system revision number at which the EOS SDK was built.
extern const uint32_t build_cl EOS_SDK_PUBLIC;
// UNIX timestamp at which the EOS SDK was built.
extern const uint64_t build_timestamp EOS_SDK_PUBLIC;
}
#endif // EOSSDK_VERSION_H