libabigail
Loading...
Searching...
No Matches
abg-config.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2// -*- Mode: C++ -*-
3//
4// Copyright (C) 2013-2024 Red Hat, Inc.
5
6/// @file
7
8#ifndef __ABG_CONFIG_H__
9#define __ABG_CONFIG_H__
10
11#include <string>
12
13namespace abigail
14{
15
16/// This type abstracts the configuration information of the library.
17class config
18{
19 std::string m_format_minor;
20 std::string m_format_major;
21 unsigned m_xml_element_indent;
22 std::string m_tu_instr_suffix;
23 std::string m_tu_instr_archive_suffix;
24
25public:
26 config();
27
28 const std::string&
29 get_format_minor_version_number() const;
30
31 void
32 set_format_minor_version_number(const std::string& v);
33
34 const std::string&
35 get_format_major_version_number() const;
36
37 void
38 set_format_major_version_number(const std::string& v);
39
40 unsigned
41 get_xml_element_indent() const;
42
43 void
44 set_xml_element_indent(unsigned);
45
46 const std::string&
47 get_tu_instr_suffix() const;
48
49 void
50 set_tu_instr_suffix(const std::string&);
51
52 const std::string&
53 get_tu_instr_archive_suffix() const;
54
55 void
56 set_tu_instr_archive_suffix(const std::string&);
57};
58
59extern "C"
60{
61 void
62 abigail_get_library_version(std::string& maj,
63 std::string& min,
64 std::string& rev,
65 std::string& suf);
66
67 void
68 abigail_get_abixml_version(std::string& maj, std::string& min);
69}
70
71}//end namespace abigail
72
73#endif //__ABG_CONFIG_H__
This type abstracts the configuration information of the library.
Definition abg-config.h:18
Toplevel namespace for libabigail.
void abigail_get_library_version(std::string &major, std::string &minor, std::string &revision, std::string &suffix)
Return the relevant version numbers of the library.
Definition abg-config.cc:81
void abigail_get_abixml_version(std::string &major, std::string &minor)
Return the version numbers for the ABIXML format.
Definition abg-config.cc:98