Motr  M0
version.h
Go to the documentation of this file.
1 /* -*- C -*- */
2 /*
3  * Copyright (c) 2013-2020 Seagate Technology LLC and/or its Affiliates
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  * For any questions about this software or licensing,
18  * please email opensource@seagate.com or cortx-questions@seagate.com.
19  *
20  */
21 
22 
23 #pragma once
24 
25 #ifndef __MOTR_MOTR_VERSION_H__
26 #define __MOTR_MOTR_VERSION_H__
27 
28 #include "motr/version_macros.h"
29 #include "lib/types.h"
30 
31 struct m0_build_info {
32  uint32_t bi_version;
33  const char *bi_version_string;
34  const char *bi_git_rev_id;
35  const char *bi_git_describe;
36  const char *bi_git_branch;
41  const char *bi_host;
42  const char *bi_user;
43  const char *bi_time;
44  const char *bi_toolchain;
45  const char *bi_kernel;
46  const char *bi_cflags;
47  const char *bi_kcflags;
48  const char *bi_ldflags;
49  const char *bi_configure_opts;
50  const char *bi_build_dir;
51  const char *bi_lustre_src;
52  const char *bi_lustre_version;
53 };
54 
55 const struct m0_build_info *m0_build_info_get(void);
56 
57 void m0_build_info_print(void);
58 
59 #endif /* __MOTR_MOTR_VERSION_H__ */
60 
61 /*
62  * Local variables:
63  * c-indentation-style: "K&R"
64  * c-basic-offset: 8
65  * tab-width: 8
66  * fill-column: 80
67  * scroll-step: 1
68  * End:
69  */
70 /*
71  * vim: tabstop=8 shiftwidth=8 noexpandtab textwidth=80 nowrap
72  */
const char * bi_git_branch
Definition: version.h:36
const char * bi_host
Definition: version.h:41
const char * bi_xcode_protocol_be_checksum
Definition: version.h:38
void m0_build_info_print(void)
Definition: version.c:66
const char * bi_cflags
Definition: version.h:46
const char * bi_configure_opts
Definition: version.h:49
const char * bi_kernel
Definition: version.h:45
const char * bi_xcode_protocol_rpc_checksum
Definition: version.h:40
const char * bi_git_describe
Definition: version.h:35
uint32_t bi_version
Definition: version.h:32
const char * bi_git_rev_id
Definition: version.h:34
const char * bi_kcflags
Definition: version.h:47
const char * bi_lustre_src
Definition: version.h:51
const char * bi_build_dir
Definition: version.h:50
const char * bi_lustre_version
Definition: version.h:52
const char * bi_ldflags
Definition: version.h:48
const char * bi_user
Definition: version.h:42
const char * bi_time
Definition: version.h:43
const char * bi_xcode_protocol_conf_checksum
Definition: version.h:39
const char * bi_xcode_protocol_checksum
Definition: version.h:37
const char * bi_toolchain
Definition: version.h:44
const struct m0_build_info * m0_build_info_get(void)
Definition: version.c:61
const char * bi_version_string
Definition: version.h:33