Publishing 2019 R1 content
[platform/upstream/dldt.git] / inference-engine / include / ie_version.hpp
1 // Copyright (C) 2018-2019 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
3 //
4
5 /**
6  * @brief A header file that provides versioning information for the inference engine shared library
7  * @file ie_version.hpp
8  */
9 #pragma once
10
11 #include "ie_api.h"
12
13 namespace InferenceEngine {
14
15 /**
16  * @struct Version
17  * @brief  Represents version information that describes plugins and the inference engine runtime library
18  */
19 #pragma pack(push, 1)
20 struct Version {
21     /**
22      * @brief An API version reflects the set of supported features
23      */
24     struct {
25         int major;
26         int minor;
27     } apiVersion;
28     /**
29      * @brief A null terminated string with build number
30      */
31     const char * buildNumber;
32     /**
33      * @brief A null terminated description string
34      */
35     const char * description;
36 };
37 #pragma pack(pop)
38
39 /**
40  * @brief Gets the current Inference Engine version
41  * @return The current Inference Engine version
42  */
43 INFERENCE_ENGINE_API(const Version*) GetInferenceEngineVersion() noexcept;
44
45 }  // namespace InferenceEngine