Skip to content

Commit 888e17f

Browse files
mergify[bot]reecehollandchristophebedard
authored
Use <lttng/lttng.h> in lttngpy and clean up includes (backport #222) (#231)
Signed-off-by: Reece Holland <reece.j.holland@gmail.com> (cherry picked from commit 91ff616) Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com> Co-authored-by: RHolland <17493785+reeceholland@users.noreply.github.com> Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com>
1 parent b47eb1d commit 888e17f

File tree

10 files changed

+11
-23
lines changed

10 files changed

+11
-23
lines changed

lttngpy/src/lttngpy/channel.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
// Include lttng-error.h before channel.h, otherwise lttng_error_code isn't known
16-
// TODO(mosfet80): order it alphabetically once liblttng-ctl 2.14+ is fixed:
17-
// https://review.lttng.org/c/lttng-tools/+/15165
18-
#include <lttng/lttng-error.h>
19-
#include <lttng/channel.h>
20-
#include <lttng/constant.h>
21-
#include <lttng/domain.h>
22-
#include <lttng/event.h>
23-
#include <lttng/handle.h>
15+
#include <lttng/lttng.h>
2416

2517
#include <optional>
2618
#include <string>

lttngpy/src/lttngpy/channel.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515
#ifndef LTTNGPY__CHANNEL_HPP_
1616
#define LTTNGPY__CHANNEL_HPP_
1717

18-
#include <lttng/domain.h>
18+
#include <lttng/lttng.h>
1919

20+
#include <optional>
2021
#include <string>
2122

2223
namespace lttngpy

lttngpy/src/lttngpy/context_app.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#include <lttng/lttng-error.h>
15+
#include <lttng/lttng.h>
1616

1717
#include <string>
1818
#include <variant>

lttngpy/src/lttngpy/context_lttng.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#include <lttng/event.h>
15+
#include <lttng/lttng.h>
1616

1717
#include <map>
1818
#include <optional>

lttngpy/src/lttngpy/context_lttng.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#ifndef LTTNGPY__CONTEXT_LTTNG_HPP_
1616
#define LTTNGPY__CONTEXT_LTTNG_HPP_
1717

18-
#include <lttng/event.h>
18+
#include <lttng/lttng.h>
1919

2020
#include <optional>
2121
#include <string>

lttngpy/src/lttngpy/context_perf.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#include <lttng/event.h>
16-
#include <lttng/lttng-error.h>
15+
#include <lttng/lttng.h>
1716

1817
#include <algorithm>
1918
#include <map>

lttngpy/src/lttngpy/context_perf.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#ifndef LTTNGPY__CONTEXT_PERF_HPP_
1616
#define LTTNGPY__CONTEXT_PERF_HPP_
1717

18-
#include <lttng/event.h>
18+
#include <lttng/lttng.h>
1919

2020
#include <string>
2121
#include <variant>

lttngpy/src/lttngpy/event.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#include <lttng/domain.h>
16-
#include <lttng/event.h>
17-
#include <lttng/lttng-error.h>
15+
#include <lttng/lttng.h>
1816
#include <string.h>
1917

2018
#include <map>

lttngpy/src/lttngpy/event.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
#ifndef LTTNGPY__EVENT_HPP_
1616
#define LTTNGPY__EVENT_HPP_
1717

18-
#include <lttng/domain.h>
19-
#include <lttng/event.h>
18+
#include <lttng/lttng.h>
2019

2120
#include <set>
2221
#include <string>

lttngpy/src/lttngpy/session.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#include <lttng/lttng-error.h>
16-
#include <lttng/session.h>
15+
#include <lttng/lttng.h>
1716

1817
#include <set>
1918
#include <string>

0 commit comments

Comments
 (0)