Skip to content

Commit e9e2b0c

Browse files
reecehollandRaphvK
authored andcommitted
Use <lttng/lttng.h> in lttngpy and clean up includes (ros2#222)
Signed-off-by: Reece Holland <reece.j.holland@gmail.com>
1 parent 2be1e12 commit e9e2b0c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lttngpy/src/lttngpy/snapshot.cpp

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

15-
#include <lttng/clear.h>
16-
#include <lttng/clear-handle.h>
17-
#include <lttng/lttng-error.h>
18-
#include <lttng/snapshot.h>
15+
#include <lttng/lttng.h>
1916

2017
#include <string>
2118

@@ -65,7 +62,7 @@ int record_snapshot(const std::string & session_name)
6562
}
6663

6764
// Clear the session after recording the snapshot
68-
lttng_clear_handle *handle;
65+
lttng_clear_handle * handle;
6966
ret = lttng_clear_session(session_name.c_str(), &handle);
7067
if (0 > ret) {
7168
lttng_clear_handle_destroy(handle);

0 commit comments

Comments
 (0)