From ae2be88d24ae6f9d73b3c3aeb7b316283e4bde60 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Tue, 14 May 2024 14:26:37 -0400 Subject: [PATCH] Normalize C/C++ include guards MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix all C/C++ include guards so that they satisfy `tools/check-include-guard.py`: $ tools/check-include-guards.sh &> /dev/null && echo 🎆 🎆 Change-Id: I9cce2f459b08dec0ddf4dc05c3c85f2809dca943 Signed-off-by: Simon Marchi Reviewed-on: https://review.lttng.org/c/babeltrace/+/12633 --- src/autodisc/autodisc.h | 6 +++--- src/bindings/python/bt2/bt2/logging.h | 6 +++--- src/bindings/python/bt2/bt2/native_bt_autodisc.i.h | 5 +++++ src/bindings/python/bt2/bt2/native_bt_bt2_objects.h | 6 +++++- src/bindings/python/bt2/bt2/native_bt_component_class.i.h | 5 +++++ src/bindings/python/bt2/bt2/native_bt_error.i.h | 5 +++++ src/bindings/python/bt2/bt2/native_bt_graph.i.h | 5 +++++ .../python/bt2/bt2/native_bt_log_and_append_error.h | 5 +++++ src/bindings/python/bt2/bt2/native_bt_message_iterator.i.h | 5 +++++ src/bindings/python/bt2/bt2/native_bt_mip.i.h | 5 +++++ src/bindings/python/bt2/bt2/native_bt_plugin.i.h | 5 +++++ src/bindings/python/bt2/bt2/native_bt_query_exec.i.h | 5 +++++ src/bindings/python/bt2/bt2/native_bt_trace.i.h | 5 +++++ src/bindings/python/bt2/bt2/native_bt_trace_class.i.h | 5 +++++ src/bindings/python/bt2/bt2/native_bt_value.i.h | 5 +++++ src/cli/babeltrace2-cfg-cli-args-connect.h | 6 +++--- src/cli/babeltrace2-cfg-cli-args-default.h | 6 +++--- src/cli/babeltrace2-cfg-cli-args.h | 6 +++--- src/cli/babeltrace2-cfg.h | 6 +++--- src/cli/babeltrace2-log-level.h | 6 +++--- src/cli/babeltrace2-plugins.h | 6 +++--- src/cli/babeltrace2-query.h | 6 +++--- src/cli/logging.h | 6 +++--- .../clock-correlation-validator.h | 6 +++--- .../clock-correlation-validator.hpp | 6 +++--- src/common/align.h | 6 +++--- src/common/assert.h | 6 +++--- src/common/common.h | 6 +++--- src/common/list.h | 6 +++--- src/common/macros.h | 6 +++--- src/common/mmap-align.h | 6 +++--- src/common/safe.h | 5 +++++ src/common/uuid.h | 6 +++--- src/common/version.h | 6 +++--- src/compat/bitfield.h | 6 +++--- src/compat/compiler.h | 6 +++--- src/compat/endian.h | 6 +++--- src/compat/fcntl.h | 6 +++--- src/compat/glib.h | 6 +++--- src/compat/limits.h | 6 +++--- src/compat/memstream.h | 6 +++--- src/compat/mman.h | 6 +++--- src/compat/stdio.h | 6 +++--- src/compat/stdlib.h | 6 +++--- src/compat/string.h | 6 +++--- src/compat/time.h | 7 ++++--- src/compat/unistd.h | 7 ++++--- src/compat/utc.h | 6 +++--- src/cpp-common/bt2/query-executor.hpp | 2 +- src/cpp-common/bt2c/file-utils.hpp | 6 +++--- src/cpp-common/bt2c/fmt.hpp | 5 +++++ src/cpp-common/bt2c/vector.hpp | 6 +++--- src/ctf-writer/assert-pre.h | 6 +++--- src/ctf-writer/clock-class.h | 6 +++--- src/ctf-writer/clock.h | 6 +++--- src/ctf-writer/event-class.h | 6 +++--- src/ctf-writer/event.h | 6 +++--- src/ctf-writer/field-path.h | 6 +++--- src/ctf-writer/field-types.h | 6 +++--- src/ctf-writer/field-wrapper.h | 6 +++--- src/ctf-writer/fields.h | 6 +++--- src/ctf-writer/functor.h | 6 +++--- src/ctf-writer/object-pool.h | 6 +++--- src/ctf-writer/object.h | 6 +++--- src/ctf-writer/resolve.h | 6 +++--- src/ctf-writer/stream-class.h | 6 +++--- src/ctf-writer/stream.h | 6 +++--- src/ctf-writer/trace.h | 6 +++--- src/ctf-writer/utils.h | 6 +++--- src/ctf-writer/validation.h | 6 +++--- src/ctf-writer/values.h | 6 +++--- src/ctf-writer/visitor.h | 6 +++--- src/ctf-writer/writer.h | 6 +++--- src/ctfser/ctfser.h | 6 +++--- src/fd-cache/fd-cache.h | 6 +++--- src/lib/assert-cond-base.h | 6 +++--- src/lib/assert-cond.h | 6 +++--- src/lib/error.h | 6 +++--- src/lib/func-status.h | 6 +++--- src/lib/graph/component-class-sink-simple.h | 6 +++--- src/lib/graph/component-class.h | 6 +++--- src/lib/graph/component-descriptor-set.h | 6 +++--- src/lib/graph/component-filter.h | 6 +++--- src/lib/graph/component-sink.h | 6 +++--- src/lib/graph/component-source.h | 6 +++--- src/lib/graph/component.h | 6 +++--- src/lib/graph/connection.h | 6 +++--- src/lib/graph/graph.h | 6 +++--- src/lib/graph/interrupter.h | 6 +++--- src/lib/graph/iterator.h | 6 +++--- src/lib/graph/message-iterator-class.h | 6 +++--- src/lib/graph/message/discarded-items.h | 6 +++--- src/lib/graph/message/event.h | 6 +++--- src/lib/graph/message/message-iterator-inactivity.h | 6 +++--- src/lib/graph/message/message.h | 6 +++--- src/lib/graph/message/packet.h | 6 +++--- src/lib/graph/message/stream.h | 6 +++--- src/lib/graph/port.h | 6 +++--- src/lib/graph/query-executor.h | 6 +++--- src/lib/integer-range-set.h | 6 +++--- src/lib/logging.h | 6 +++--- src/lib/object-pool.h | 6 +++--- src/lib/object.h | 6 +++--- src/lib/plugin/plugin-so.h | 6 +++--- src/lib/plugin/plugin.h | 6 +++--- src/lib/property.h | 6 +++--- src/lib/trace-ir/attributes.h | 6 +++--- src/lib/trace-ir/clock-class.h | 6 +++--- src/lib/trace-ir/clock-snapshot.h | 6 +++--- src/lib/trace-ir/event-class.h | 6 +++--- src/lib/trace-ir/event.h | 6 +++--- src/lib/trace-ir/field-class.h | 6 +++--- src/lib/trace-ir/field-path.h | 6 +++--- src/lib/trace-ir/field-wrapper.h | 6 +++--- src/lib/trace-ir/field.h | 6 +++--- src/lib/trace-ir/packet.h | 6 +++--- src/lib/trace-ir/resolve-field-path.h | 6 +++--- src/lib/trace-ir/stream-class.h | 6 +++--- src/lib/trace-ir/stream.h | 6 +++--- src/lib/trace-ir/trace-class.h | 6 +++--- src/lib/trace-ir/trace.h | 6 +++--- src/lib/trace-ir/utils.h | 6 +++--- src/lib/value.h | 6 +++--- src/param-parse/param-parse.h | 6 +++--- src/plugins/common/muxing/muxing.h | 6 +++--- src/plugins/common/param-validation/param-validation.h | 1 + src/plugins/ctf/common/src/bfcr/bfcr.hpp | 6 +++--- src/plugins/ctf/common/src/clk-cls-cfg.hpp | 6 +++--- src/plugins/ctf/common/src/metadata/tsdl/ast.hpp | 6 +++--- .../src/metadata/tsdl/ctf-meta-configure-ir-trace.hpp | 6 +++--- .../ctf/common/src/metadata/tsdl/ctf-meta-visitors.hpp | 6 +++--- src/plugins/ctf/common/src/metadata/tsdl/ctf-meta.hpp | 6 +++--- .../tsdl/decoder-packetized-file-stream-to-buf.hpp | 6 +++--- src/plugins/ctf/common/src/metadata/tsdl/decoder.hpp | 6 +++--- src/plugins/ctf/common/src/metadata/tsdl/logging.hpp | 6 +++--- src/plugins/ctf/common/src/metadata/tsdl/objstack.hpp | 6 +++--- src/plugins/ctf/common/src/metadata/tsdl/parser-wrap.hpp | 6 +++--- .../ctf/common/src/metadata/tsdl/scanner-symbols.hpp | 6 +++--- src/plugins/ctf/common/src/metadata/tsdl/scanner.hpp | 6 +++--- src/plugins/ctf/common/src/msg-iter/msg-iter.hpp | 6 +++--- src/plugins/ctf/fs-sink/fs-sink-ctf-meta.hpp | 6 +++--- src/plugins/ctf/fs-sink/fs-sink-stream.hpp | 6 +++--- src/plugins/ctf/fs-sink/fs-sink-trace.hpp | 6 +++--- src/plugins/ctf/fs-sink/fs-sink.hpp | 6 +++--- src/plugins/ctf/fs-sink/translate-ctf-ir-to-tsdl.hpp | 6 +++--- src/plugins/ctf/fs-sink/translate-trace-ir-to-ctf-ir.hpp | 6 +++--- src/plugins/ctf/fs-src/data-stream-file.hpp | 6 +++--- src/plugins/ctf/fs-src/file.hpp | 6 +++--- src/plugins/ctf/fs-src/fs.hpp | 6 +++--- src/plugins/ctf/fs-src/lttng-index.hpp | 6 +++--- src/plugins/ctf/fs-src/metadata.hpp | 6 +++--- src/plugins/ctf/fs-src/query.hpp | 6 +++--- src/plugins/ctf/lttng-live/data-stream.hpp | 6 +++--- src/plugins/ctf/lttng-live/lttng-live.hpp | 6 +++--- src/plugins/ctf/lttng-live/lttng-viewer-abi.hpp | 6 +++--- src/plugins/ctf/lttng-live/metadata.hpp | 6 +++--- src/plugins/ctf/lttng-live/viewer-connection.hpp | 6 +++--- src/plugins/lttng-utils/debug-info/bin-info.h | 6 +++--- src/plugins/lttng-utils/debug-info/crc32.h | 6 +++--- src/plugins/lttng-utils/debug-info/debug-info.h | 6 +++--- src/plugins/lttng-utils/debug-info/dwarf.h | 6 +++--- src/plugins/lttng-utils/debug-info/trace-ir-data-copy.h | 6 +++--- src/plugins/lttng-utils/debug-info/trace-ir-mapping.h | 6 +++--- .../lttng-utils/debug-info/trace-ir-metadata-copy.h | 6 +++--- .../debug-info/trace-ir-metadata-field-class-copy.h | 6 +++--- src/plugins/lttng-utils/debug-info/utils.h | 6 +++--- src/plugins/text/dmesg/dmesg.h | 6 +++--- src/plugins/text/pretty/pretty.h | 6 +++--- src/plugins/utils/counter/counter.h | 6 +++--- src/plugins/utils/dummy/dummy.h | 6 +++--- src/plugins/utils/muxer/upstream-msg-iter.hpp | 1 - src/plugins/utils/trimmer/trimmer.h | 6 +++--- src/py-common/py-common.h | 6 +++--- src/python-plugin-provider/python-plugin-provider.h | 6 +++--- src/string-format/format-error.h | 6 +++--- src/string-format/format-plugin-comp-cls-name.h | 6 +++--- tests/data/plugins/flt.lttng-utils.debug-info/libhello.h | 6 +++--- tests/lib/conds/clk-cls-compat-postconds-triggers.hpp | 6 +++--- tests/lib/conds/utils.hpp | 6 +++--- tests/lib/utils/run-in.hpp | 6 +++--- tests/utils/common.h | 6 +++--- 181 files changed, 568 insertions(+), 492 deletions(-) diff --git a/src/autodisc/autodisc.h b/src/autodisc/autodisc.h index a0387949..6a51111c 100644 --- a/src/autodisc/autodisc.h +++ b/src/autodisc/autodisc.h @@ -4,8 +4,8 @@ * Copyright (C) 2019 EfficiOS Inc. and Linux Foundation */ -#ifndef AUTODISC_AUTODISC_H -#define AUTODISC_AUTODISC_H +#ifndef BABELTRACE_AUTODISC_AUTODISC_H +#define BABELTRACE_AUTODISC_AUTODISC_H #include @@ -71,4 +71,4 @@ auto_source_discovery_status auto_discover_source_components( struct auto_source_discovery *auto_disc, const bt_interrupter *interrupter); -#endif /* AUTODISC_AUTODISC_H */ +#endif /* BABELTRACE_AUTODISC_AUTODISC_H */ diff --git a/src/bindings/python/bt2/bt2/logging.h b/src/bindings/python/bt2/bt2/logging.h index 360f253a..9a4efebc 100644 --- a/src/bindings/python/bt2/bt2/logging.h +++ b/src/bindings/python/bt2/bt2/logging.h @@ -4,12 +4,12 @@ * Copyright (c) 2017 Philippe Proulx */ -#ifndef BABELTRACE_BINDINGS_PYTHON_BT2_LOGGING_H -#define BABELTRACE_BINDINGS_PYTHON_BT2_LOGGING_H +#ifndef BABELTRACE_BINDINGS_PYTHON_BT2_BT2_LOGGING_H +#define BABELTRACE_BINDINGS_PYTHON_BT2_BT2_LOGGING_H #define BT_LOG_OUTPUT_LEVEL bt_python_bindings_bt2_log_level #include "logging/log.h" BT_LOG_LEVEL_EXTERN_SYMBOL(bt_python_bindings_bt2_log_level); -#endif /* BABELTRACE_BINDINGS_PYTHON_BT2_LOGGING_H */ +#endif /* BABELTRACE_BINDINGS_PYTHON_BT2_BT2_LOGGING_H */ diff --git a/src/bindings/python/bt2/bt2/native_bt_autodisc.i.h b/src/bindings/python/bt2/bt2/native_bt_autodisc.i.h index 9b12e8c3..f1629efb 100644 --- a/src/bindings/python/bt2/bt2/native_bt_autodisc.i.h +++ b/src/bindings/python/bt2/bt2/native_bt_autodisc.i.h @@ -4,6 +4,9 @@ * Copyright (c) 2016 Philippe Proulx */ +#ifndef BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_AUTODISC_I_H +#define BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_AUTODISC_I_H + #include #include @@ -209,3 +212,5 @@ end: return result; } + +#endif /* BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_AUTODISC_I_H */ diff --git a/src/bindings/python/bt2/bt2/native_bt_bt2_objects.h b/src/bindings/python/bt2/bt2/native_bt_bt2_objects.h index eedd97c1..9a47849e 100644 --- a/src/bindings/python/bt2/bt2/native_bt_bt2_objects.h +++ b/src/bindings/python/bt2/bt2/native_bt_bt2_objects.h @@ -4,8 +4,10 @@ * Copyright (c) 2017 Philippe Proulx */ -#include "logging/comp-logging.h" +#ifndef BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_BT2_OBJECTS_H +#define BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_BT2_OBJECTS_H +#include "logging/comp-logging.h" /* * Useful Python objects. @@ -70,3 +72,5 @@ void bt_bt2_exit_handler(void) Py_XDECREF(py_mod_bt2_exc_stop_type); Py_XDECREF(py_mod_bt2_exc_unknown_object_type); } + +#endif /* BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_BT2_OBJECTS_H */ diff --git a/src/bindings/python/bt2/bt2/native_bt_component_class.i.h b/src/bindings/python/bt2/bt2/native_bt_component_class.i.h index 628d5867..de11581a 100644 --- a/src/bindings/python/bt2/bt2/native_bt_component_class.i.h +++ b/src/bindings/python/bt2/bt2/native_bt_component_class.i.h @@ -4,6 +4,9 @@ * Copyright (c) 2017 Philippe Proulx */ +#ifndef BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_COMPONENT_CLASS_I_H +#define BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_COMPONENT_CLASS_I_H + #include "logging/comp-logging.h" #include "compat/glib.h" @@ -1524,3 +1527,5 @@ bt_component_class_sink *bt_bt2_component_class_sink_create( end: return component_class_sink; } + +#endif /* BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_COMPONENT_CLASS_I_H */ diff --git a/src/bindings/python/bt2/bt2/native_bt_error.i.h b/src/bindings/python/bt2/bt2/native_bt_error.i.h index 78eeb28a..5e542d17 100644 --- a/src/bindings/python/bt2/bt2/native_bt_error.i.h +++ b/src/bindings/python/bt2/bt2/native_bt_error.i.h @@ -4,6 +4,9 @@ * Copyright (c) 2019 Efficios, Inc. */ +#ifndef BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_ERROR_I_H +#define BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_ERROR_I_H + #include static @@ -41,3 +44,5 @@ PyObject *bt_bt2_format_bt_error(const bt_error *error) return py_error_str; } + +#endif /* BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_ERROR_I_H */ diff --git a/src/bindings/python/bt2/bt2/native_bt_graph.i.h b/src/bindings/python/bt2/bt2/native_bt_graph.i.h index 41569f3d..8831e21a 100644 --- a/src/bindings/python/bt2/bt2/native_bt_graph.i.h +++ b/src/bindings/python/bt2/bt2/native_bt_graph.i.h @@ -4,6 +4,9 @@ * Copyright (c) 2017 Philippe Proulx */ +#ifndef BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_GRAPH_I_H +#define BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_GRAPH_I_H + static bt_graph_listener_func_status port_added_listener( const void *component, swig_type_info *component_swig_type, @@ -257,3 +260,5 @@ bt_bt2_graph_add_sink_component( component_class, name, params, obj == Py_None ? NULL : obj, log_level, component); } + +#endif /* BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_GRAPH_I_H */ diff --git a/src/bindings/python/bt2/bt2/native_bt_log_and_append_error.h b/src/bindings/python/bt2/bt2/native_bt_log_and_append_error.h index 84c67172..2205772f 100644 --- a/src/bindings/python/bt2/bt2/native_bt_log_and_append_error.h +++ b/src/bindings/python/bt2/bt2/native_bt_log_and_append_error.h @@ -4,6 +4,9 @@ * Copyright (c) 2017 Philippe Proulx */ +#ifndef BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_LOG_AND_APPEND_ERROR_H +#define BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_LOG_AND_APPEND_ERROR_H + #include #include "logging/comp-logging.h" @@ -249,3 +252,5 @@ void logw_exception_clear(int active_log_level) false, NULL, NULL, NULL, NULL); PyErr_Clear(); } + +#endif /* BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_LOG_AND_APPEND_ERROR_H */ diff --git a/src/bindings/python/bt2/bt2/native_bt_message_iterator.i.h b/src/bindings/python/bt2/bt2/native_bt_message_iterator.i.h index 35c2612a..aaa88fca 100644 --- a/src/bindings/python/bt2/bt2/native_bt_message_iterator.i.h +++ b/src/bindings/python/bt2/bt2/native_bt_message_iterator.i.h @@ -4,6 +4,9 @@ * Copyright (c) 2017 Philippe Proulx */ +#ifndef BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_MESSAGE_ITERATOR_I_H +#define BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_MESSAGE_ITERATOR_I_H + static bt_message_iterator_create_from_message_iterator_status bt_bt2_message_iterator_create_from_message_iterator( @@ -116,3 +119,5 @@ static PyObject *bt_bt2_self_component_port_input_get_msg_range( &messages, &message_count); return get_msg_range_common(status, messages, message_count); } + +#endif /* BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_MESSAGE_ITERATOR_I_H */ diff --git a/src/bindings/python/bt2/bt2/native_bt_mip.i.h b/src/bindings/python/bt2/bt2/native_bt_mip.i.h index 1fa7c3fe..9e64084c 100644 --- a/src/bindings/python/bt2/bt2/native_bt_mip.i.h +++ b/src/bindings/python/bt2/bt2/native_bt_mip.i.h @@ -4,6 +4,9 @@ * Copyright (c) 2017 Philippe Proulx */ +#ifndef BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_MIP_I_H +#define BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_MIP_I_H + static bt_component_descriptor_set_add_descriptor_status bt_bt2_component_descriptor_set_add_descriptor_with_initialize_method_data( @@ -14,3 +17,5 @@ bt_bt2_component_descriptor_set_add_descriptor_with_initialize_method_data( return bt_component_descriptor_set_add_descriptor_with_initialize_method_data( comp_descr_set, comp_cls, params, obj == Py_None ? NULL : obj); } + +#endif /* BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_MIP_I_H */ diff --git a/src/bindings/python/bt2/bt2/native_bt_plugin.i.h b/src/bindings/python/bt2/bt2/native_bt_plugin.i.h index 105fafc7..1edf0813 100644 --- a/src/bindings/python/bt2/bt2/native_bt_plugin.i.h +++ b/src/bindings/python/bt2/bt2/native_bt_plugin.i.h @@ -4,6 +4,9 @@ * Copyright (c) 2017 Philippe Proulx */ +#ifndef BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_PLUGIN_I_H +#define BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_PLUGIN_I_H + /* * Those bt_bt2_*() functions below ensure that when the API function * fails, the output parameter is set to `NULL`. This is necessary @@ -95,3 +98,5 @@ bt_plugin_find_all_from_dir_status bt_bt2_plugin_find_all_from_dir( return status; } + +#endif /* BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_PLUGIN_I_H */ diff --git a/src/bindings/python/bt2/bt2/native_bt_query_exec.i.h b/src/bindings/python/bt2/bt2/native_bt_query_exec.i.h index 224b52a4..9c26acff 100644 --- a/src/bindings/python/bt2/bt2/native_bt_query_exec.i.h +++ b/src/bindings/python/bt2/bt2/native_bt_query_exec.i.h @@ -4,6 +4,9 @@ * Copyright (c) 2017 Philippe Proulx */ +#ifndef BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_QUERY_EXEC_I_H +#define BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_QUERY_EXEC_I_H + static bt_query_executor *bt_bt2_query_executor_create( const bt_component_class *component_class, const char *object, @@ -12,3 +15,5 @@ bt_query_executor *bt_bt2_query_executor_create( return bt_query_executor_create_with_method_data(component_class, object, params, py_obj == Py_None ? NULL : py_obj); } + +#endif /* BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_QUERY_EXEC_I_H */ diff --git a/src/bindings/python/bt2/bt2/native_bt_trace.i.h b/src/bindings/python/bt2/bt2/native_bt_trace.i.h index 7d4c6882..bccdf875 100644 --- a/src/bindings/python/bt2/bt2/native_bt_trace.i.h +++ b/src/bindings/python/bt2/bt2/native_bt_trace.i.h @@ -4,6 +4,9 @@ * Copyright (c) 2016 Philippe Proulx */ +#ifndef BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_TRACE_I_H +#define BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_TRACE_I_H + static void trace_destroyed_listener(const bt_trace *trace, void *py_callable) { @@ -46,3 +49,5 @@ int bt_bt2_trace_add_destruction_listener(bt_trace *trace, return status; } + +#endif /* BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_TRACE_I_H */ diff --git a/src/bindings/python/bt2/bt2/native_bt_trace_class.i.h b/src/bindings/python/bt2/bt2/native_bt_trace_class.i.h index 68ea78c4..201801da 100644 --- a/src/bindings/python/bt2/bt2/native_bt_trace_class.i.h +++ b/src/bindings/python/bt2/bt2/native_bt_trace_class.i.h @@ -4,6 +4,9 @@ * Copyright (c) 2016 Philippe Proulx */ +#ifndef BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_TRACE_CLASS_I_H +#define BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_TRACE_CLASS_I_H + static void trace_class_destroyed_listener(const bt_trace_class *trace_class, void *py_callable) { @@ -48,3 +51,5 @@ int bt_bt2_trace_class_add_destruction_listener( return status; } + +#endif /* BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_TRACE_CLASS_I_H */ diff --git a/src/bindings/python/bt2/bt2/native_bt_value.i.h b/src/bindings/python/bt2/bt2/native_bt_value.i.h index ed1034a9..650515f3 100644 --- a/src/bindings/python/bt2/bt2/native_bt_value.i.h +++ b/src/bindings/python/bt2/bt2/native_bt_value.i.h @@ -4,6 +4,9 @@ * Copyright (c) 2016 Philippe Proulx */ +#ifndef BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_VALUE_I_H +#define BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_VALUE_I_H + struct bt_value_map_get_keys_data { struct bt_value *keys; }; @@ -46,3 +49,5 @@ error: end: return data.keys; } + +#endif /* BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_VALUE_I_H */ diff --git a/src/cli/babeltrace2-cfg-cli-args-connect.h b/src/cli/babeltrace2-cfg-cli-args-connect.h index 48a442e7..2a8bf1cb 100644 --- a/src/cli/babeltrace2-cfg-cli-args-connect.h +++ b/src/cli/babeltrace2-cfg-cli-args-connect.h @@ -4,8 +4,8 @@ * Copyright 2017 Philippe Proulx */ -#ifndef CLI_BABELTRACE_CFG_CLI_ARGS_CONNECT_H -#define CLI_BABELTRACE_CFG_CLI_ARGS_CONNECT_H +#ifndef BABELTRACE_CLI_BABELTRACE2_CFG_CLI_ARGS_CONNECT_H +#define BABELTRACE_CLI_BABELTRACE2_CFG_CLI_ARGS_CONNECT_H #include #include @@ -16,4 +16,4 @@ int bt_config_cli_args_create_connections(struct bt_config *cfg, const bt_value *connection_args, char *error_buf, size_t error_buf_size); -#endif /* CLI_BABELTRACE_CFG_CLI_ARGS_CONNECT_H */ +#endif /* BABELTRACE_CLI_BABELTRACE2_CFG_CLI_ARGS_CONNECT_H */ diff --git a/src/cli/babeltrace2-cfg-cli-args-default.h b/src/cli/babeltrace2-cfg-cli-args-default.h index 61927ba0..d44915b9 100644 --- a/src/cli/babeltrace2-cfg-cli-args-default.h +++ b/src/cli/babeltrace2-cfg-cli-args-default.h @@ -6,8 +6,8 @@ * Babeltrace Trace Converter - Default Configuration */ -#ifndef CLI_BABELTRACE_CFG_CLI_ARGS_DEFAULT_H -#define CLI_BABELTRACE_CFG_CLI_ARGS_DEFAULT_H +#ifndef BABELTRACE_CLI_BABELTRACE2_CFG_CLI_ARGS_DEFAULT_H +#define BABELTRACE_CLI_BABELTRACE2_CFG_CLI_ARGS_DEFAULT_H #include "babeltrace2-cfg.h" @@ -15,4 +15,4 @@ enum bt_config_cli_args_status bt_config_cli_args_create_with_default(int argc, const char *argv[], struct bt_config **cfg, const bt_interrupter *interrupter); -#endif /* CLI_BABELTRACE_CFG_CLI_ARGS_DEFAULT_H */ +#endif /* BABELTRACE_CLI_BABELTRACE2_CFG_CLI_ARGS_DEFAULT_H */ diff --git a/src/cli/babeltrace2-cfg-cli-args.h b/src/cli/babeltrace2-cfg-cli-args.h index 1ceded7e..2be129a2 100644 --- a/src/cli/babeltrace2-cfg-cli-args.h +++ b/src/cli/babeltrace2-cfg-cli-args.h @@ -4,8 +4,8 @@ * Copyright 2016-2017 Philippe Proulx */ -#ifndef CLI_BABELTRACE_CFG_CLI_ARGS_H -#define CLI_BABELTRACE_CFG_CLI_ARGS_H +#ifndef BABELTRACE_CLI_BABELTRACE2_CFG_CLI_ARGS_H +#define BABELTRACE_CLI_BABELTRACE2_CFG_CLI_ARGS_H #include #include @@ -49,4 +49,4 @@ enum bt_config_cli_args_status bt_config_cli_args_create(int argc, const bt_value *initial_plugin_paths, const bt_interrupter *interrupter); -#endif /* CLI_BABELTRACE_CFG_CLI_ARGS_H */ +#endif /* BABELTRACE_CLI_BABELTRACE2_CFG_CLI_ARGS_H */ diff --git a/src/cli/babeltrace2-cfg.h b/src/cli/babeltrace2-cfg.h index 79e11610..81db306a 100644 --- a/src/cli/babeltrace2-cfg.h +++ b/src/cli/babeltrace2-cfg.h @@ -6,8 +6,8 @@ * Babeltrace trace converter - CLI tool's configuration */ -#ifndef CLI_BABELTRACE_CFG_H -#define CLI_BABELTRACE_CFG_H +#ifndef BABELTRACE_CLI_BABELTRACE2_CFG_H +#define BABELTRACE_CLI_BABELTRACE2_CFG_H #include #include @@ -120,4 +120,4 @@ int bt_config_append_plugin_paths(bt_value *plugin_paths, void bt_config_connection_destroy(struct bt_config_connection *connection); -#endif /* CLI_BABELTRACE_CFG_H */ +#endif /* BABELTRACE_CLI_BABELTRACE2_CFG_H */ diff --git a/src/cli/babeltrace2-log-level.h b/src/cli/babeltrace2-log-level.h index 66fe1038..d1e81432 100644 --- a/src/cli/babeltrace2-log-level.h +++ b/src/cli/babeltrace2-log-level.h @@ -4,8 +4,8 @@ * Copyright 2019 Philippe Proulx */ -#ifndef CLI_BABELTRACE_LOG_LEVEL_H -#define CLI_BABELTRACE_LOG_LEVEL_H +#ifndef BABELTRACE_CLI_BABELTRACE2_LOG_LEVEL_H +#define BABELTRACE_CLI_BABELTRACE2_LOG_LEVEL_H #include @@ -31,4 +31,4 @@ int logging_level_min(int a, int b) void set_auto_log_levels(int *logging_level); -#endif /* CLI_BABELTRACE_LOG_LEVEL_H */ +#endif /* BABELTRACE_CLI_BABELTRACE2_LOG_LEVEL_H */ diff --git a/src/cli/babeltrace2-plugins.h b/src/cli/babeltrace2-plugins.h index c95eda90..2ddf9768 100644 --- a/src/cli/babeltrace2-plugins.h +++ b/src/cli/babeltrace2-plugins.h @@ -6,8 +6,8 @@ * Babeltrace trace converter - CLI tool's configuration */ -#ifndef CLI_BABELTRACE_PLUGINS_H -#define CLI_BABELTRACE_PLUGINS_H +#ifndef BABELTRACE_CLI_BABELTRACE2_PLUGINS_H +#define BABELTRACE_CLI_BABELTRACE2_PLUGINS_H #include #include "common/macros.h" @@ -23,4 +23,4 @@ const bt_plugin *borrow_loaded_plugin_by_index(size_t index); const bt_plugin *borrow_loaded_plugin_by_name(const char *name); -#endif /* CLI_BABELTRACE_PLUGINS_H */ +#endif /* BABELTRACE_CLI_BABELTRACE2_PLUGINS_H */ diff --git a/src/cli/babeltrace2-query.h b/src/cli/babeltrace2-query.h index c128bb6c..86fa8ea2 100644 --- a/src/cli/babeltrace2-query.h +++ b/src/cli/babeltrace2-query.h @@ -4,8 +4,8 @@ * Copyright 2016-2019 EfficiOS Inc. */ -#ifndef CLI_BABELTRACE_QUERY_H -#define CLI_BABELTRACE_QUERY_H +#ifndef BABELTRACE_CLI_BABELTRACE2_QUERY_H +#define BABELTRACE_CLI_BABELTRACE2_QUERY_H #include #include "common/macros.h" @@ -15,4 +15,4 @@ bt_query_executor_query_status cli_query(const bt_component_class *comp_cls, bt_logging_level log_level, const bt_interrupter *interrupter, const bt_value **user_result, const char **fail_reason); -#endif /* CLI_BABELTRACE_QUERY_H */ +#endif /* BABELTRACE_CLI_BABELTRACE2_QUERY_H */ diff --git a/src/cli/logging.h b/src/cli/logging.h index 967b2382..9df7660c 100644 --- a/src/cli/logging.h +++ b/src/cli/logging.h @@ -4,8 +4,8 @@ * Copyright (C) 2017 Philippe Proulx */ -#ifndef CLI_LOGGING_H -#define CLI_LOGGING_H +#ifndef BABELTRACE_CLI_LOGGING_H +#define BABELTRACE_CLI_LOGGING_H #define BT_LOG_OUTPUT_LEVEL bt_cli_log_level #include "logging/log.h" @@ -24,4 +24,4 @@ BT_LOG_LEVEL_EXTERN_SYMBOL(bt_cli_log_level); #define BT_CLI_LOGW_APPEND_CAUSE(_fmt, ...) \ BT_CLI_LOG_AND_APPEND(BT_LOG_WARNING, _fmt, ##__VA_ARGS__) -#endif /* CLI_LOGGING_H */ +#endif /* BABELTRACE_CLI_LOGGING_H */ diff --git a/src/clock-correlation-validator/clock-correlation-validator.h b/src/clock-correlation-validator/clock-correlation-validator.h index 4ccb7598..20c1509d 100644 --- a/src/clock-correlation-validator/clock-correlation-validator.h +++ b/src/clock-correlation-validator/clock-correlation-validator.h @@ -4,8 +4,8 @@ * Copyright 2024 EfficiOS, Inc. */ -#ifndef CLOCK_CORRELATION_VALIDATOR_CLOCK_CORRELATION_VALIDATOR_H -#define CLOCK_CORRELATION_VALIDATOR_CLOCK_CORRELATION_VALIDATOR_H +#ifndef BABELTRACE_CLOCK_CORRELATION_VALIDATOR_CLOCK_CORRELATION_VALIDATOR_H +#define BABELTRACE_CLOCK_CORRELATION_VALIDATOR_CLOCK_CORRELATION_VALIDATOR_H #include #include @@ -51,4 +51,4 @@ void bt_clock_correlation_validator_destroy( } /* extern "C" */ #endif -#endif /* CLOCK_CORRELATION_VALIDATOR_CLOCK_CORRELATION_VALIDATOR_H */ +#endif /* BABELTRACE_CLOCK_CORRELATION_VALIDATOR_CLOCK_CORRELATION_VALIDATOR_H */ diff --git a/src/clock-correlation-validator/clock-correlation-validator.hpp b/src/clock-correlation-validator/clock-correlation-validator.hpp index 314551c3..94ca4e00 100644 --- a/src/clock-correlation-validator/clock-correlation-validator.hpp +++ b/src/clock-correlation-validator/clock-correlation-validator.hpp @@ -4,8 +4,8 @@ * Copyright 2024 EfficiOS, Inc. */ -#ifndef CLOCK_CORRELATION_VALIDATOR_CLOCK_CORRELATION_VALIDATOR_HPP -#define CLOCK_CORRELATION_VALIDATOR_CLOCK_CORRELATION_VALIDATOR_HPP +#ifndef BABELTRACE_CLOCK_CORRELATION_VALIDATOR_CLOCK_CORRELATION_VALIDATOR_HPP +#define BABELTRACE_CLOCK_CORRELATION_VALIDATOR_CLOCK_CORRELATION_VALIDATOR_HPP #include "cpp-common/bt2/message.hpp" @@ -148,4 +148,4 @@ private: } /* namespace bt2ccv */ -#endif /* CLOCK_CORRELATION_VALIDATOR_CLOCK_CORRELATION_VALIDATOR_HPP */ +#endif /* BABELTRACE_CLOCK_CORRELATION_VALIDATOR_CLOCK_CORRELATION_VALIDATOR_HPP */ diff --git a/src/common/align.h b/src/common/align.h index 01004c67..bf8acd6e 100644 --- a/src/common/align.h +++ b/src/common/align.h @@ -4,8 +4,8 @@ * Copyright 2010 Mathieu Desnoyers */ -#ifndef _BABELTRACE_ALIGN_H -#define _BABELTRACE_ALIGN_H +#ifndef BABELTRACE_COMMON_ALIGN_H +#define BABELTRACE_COMMON_ALIGN_H #include "compat/compiler.h" #include "compat/limits.h" @@ -19,4 +19,4 @@ ((__typeof__(p)) BT_ALIGN_FLOOR((unsigned long) (p), a)) #define BT_IS_ALIGNED(x, a) (((x) & ((__typeof__(x)) (a) - 1)) == 0) -#endif /* _BABELTRACE_ALIGN_H */ +#endif /* BABELTRACE_COMMON_ALIGN_H */ diff --git a/src/common/assert.h b/src/common/assert.h index 52349e64..a9485256 100644 --- a/src/common/assert.h +++ b/src/common/assert.h @@ -5,8 +5,8 @@ * Copyright (c) 2018-2019 Philippe Proulx */ -#ifndef BABELTRACE_ASSERT_INTERNAL_H -#define BABELTRACE_ASSERT_INTERNAL_H +#ifndef BABELTRACE_COMMON_ASSERT_H +#define BABELTRACE_COMMON_ASSERT_H #include #include @@ -63,4 +63,4 @@ extern void bt_common_assert_failed(const char *file, int line, } #endif -#endif /* BABELTRACE_ASSERT_INTERNAL_H */ +#endif /* BABELTRACE_COMMON_ASSERT_H */ diff --git a/src/common/common.h b/src/common/common.h index fd9da4e7..63b01cc9 100644 --- a/src/common/common.h +++ b/src/common/common.h @@ -5,8 +5,8 @@ * Copyright (c) 2018 Philippe Proulx */ -#ifndef BABELTRACE_COMMON_INTERNAL_H -#define BABELTRACE_COMMON_INTERNAL_H +#ifndef BABELTRACE_COMMON_COMMON_H +#define BABELTRACE_COMMON_COMMON_H #include #include @@ -781,4 +781,4 @@ const char *bt_common_message_type_string(enum bt_message_type type) } #endif -#endif /* BABELTRACE_COMMON_INTERNAL_H */ +#endif /* BABELTRACE_COMMON_COMMON_H */ diff --git a/src/common/list.h b/src/common/list.h index fd1f471c..1b9be5cc 100644 --- a/src/common/list.h +++ b/src/common/list.h @@ -6,8 +6,8 @@ * Contributed by Ulrich Drepper , 2002. */ -#ifndef _BT_LIST_H -#define _BT_LIST_H 1 +#ifndef BABELTRACE_COMMON_LIST_H +#define BABELTRACE_COMMON_LIST_H /* The definitions of this file are adopted from those which can be found in the Linux kernel headers to enable people familiar with @@ -163,4 +163,4 @@ static inline void bt_list_replace_init(struct bt_list_head *old, } #endif -#endif /* _BT_LIST_H */ +#endif /* BABELTRACE_COMMON_LIST_H */ diff --git a/src/common/macros.h b/src/common/macros.h index 0f2bc8fb..8a518b03 100644 --- a/src/common/macros.h +++ b/src/common/macros.h @@ -4,8 +4,8 @@ * Copyright 2012 Mathieu Desnoyers */ -#ifndef _BABELTRACE_INTERNAL_H -#define _BABELTRACE_INTERNAL_H +#ifndef BABELTRACE_COMMON_MACROS_H +#define BABELTRACE_COMMON_MACROS_H #ifdef __cplusplus extern "C" { @@ -96,4 +96,4 @@ extern "C" { } #endif -#endif +#endif /* BABELTRACE_COMMON_MACROS_H */ diff --git a/src/common/mmap-align.h b/src/common/mmap-align.h index 4d81b257..d4595dc5 100644 --- a/src/common/mmap-align.h +++ b/src/common/mmap-align.h @@ -4,8 +4,8 @@ * Copyright 2010 Mathieu Desnoyers */ -#ifndef _BABELTRACE_MMAP_ALIGN_H -#define _BABELTRACE_MMAP_ALIGN_H +#ifndef BABELTRACE_COMMON_MMAP_ALIGN_H +#define BABELTRACE_COMMON_MMAP_ALIGN_H #include "common/align.h" #include @@ -95,4 +95,4 @@ void mmap_align_set_addr(struct mmap_align_data *mma, void *addr) mma->addr = addr; } -#endif /* _BABELTRACE_MMAP_ALIGN_H */ +#endif /* BABELTRACE_COMMON_MMAP_ALIGN_H */ diff --git a/src/common/safe.h b/src/common/safe.h index cb962c48..8d742b27 100644 --- a/src/common/safe.h +++ b/src/common/safe.h @@ -4,6 +4,9 @@ * Copyright 2012 Mathieu Desnoyers */ +#ifndef BABELTRACE_COMMON_SAFE_H +#define BABELTRACE_COMMON_SAFE_H + #include #include @@ -46,3 +49,5 @@ bool bt_safe_to_add_uint64(uint64_t a, uint64_t b) #ifdef __cplusplus } #endif + +#endif /* BABELTRACE_COMMON_SAFE_H */ diff --git a/src/common/uuid.h b/src/common/uuid.h index c8418a67..1c656a94 100644 --- a/src/common/uuid.h +++ b/src/common/uuid.h @@ -4,8 +4,8 @@ * Copyright (C) 2019 Michael Jeanson */ -#ifndef _BABELTRACE_COMMON_UUID_H -#define _BABELTRACE_COMMON_UUID_H +#ifndef BABELTRACE_COMMON_UUID_H +#define BABELTRACE_COMMON_UUID_H #include #include @@ -47,4 +47,4 @@ void bt_uuid_copy(bt_uuid_t uuid_dest, const bt_uuid_t uuid_src); } #endif -#endif /* _BABELTRACE_COMMON_UUID_H */ +#endif /* BABELTRACE_COMMON_UUID_H */ diff --git a/src/common/version.h b/src/common/version.h index b9de46dd..2fb6de39 100644 --- a/src/common/version.h +++ b/src/common/version.h @@ -4,9 +4,9 @@ * Copyright (C) 2018 Michael Jeanson */ -#ifndef VERSION_H -#define VERSION_H +#ifndef BABELTRACE_COMMON_VERSION_H +#define BABELTRACE_COMMON_VERSION_H #include "common/version.i" -#endif /* VERSION_H */ +#endif /* BABELTRACE_COMMON_VERSION_H */ diff --git a/src/compat/bitfield.h b/src/compat/bitfield.h index df67401d..022cb4cf 100644 --- a/src/compat/bitfield.h +++ b/src/compat/bitfield.h @@ -4,8 +4,8 @@ * Copyright 2010-2019 Mathieu Desnoyers */ -#ifndef _BABELTRACE_BITFIELD_H -#define _BABELTRACE_BITFIELD_H +#ifndef BABELTRACE_COMPAT_BITFIELD_H +#define BABELTRACE_COMPAT_BITFIELD_H #include /* C99 5.2.4.2 Numerical limits */ #include /* C99 7.16 bool type */ @@ -506,4 +506,4 @@ do { \ #endif -#endif /* _BABELTRACE_BITFIELD_H */ +#endif /* BABELTRACE_COMPAT_BITFIELD_H */ diff --git a/src/compat/compiler.h b/src/compat/compiler.h index 90e80da8..94ebb2c0 100644 --- a/src/compat/compiler.h +++ b/src/compat/compiler.h @@ -4,8 +4,8 @@ * Copyright 2010 Mathieu Desnoyers */ -#ifndef _BABELTRACE_COMPILER_H -#define _BABELTRACE_COMPILER_H +#ifndef BABELTRACE_COMPAT_COMPILER_H +#define BABELTRACE_COMPAT_COMPILER_H #include /* for offsetof */ @@ -21,4 +21,4 @@ #define BT_ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) -#endif /* _BABELTRACE_COMPILER_H */ +#endif /* BABELTRACE_COMPAT_COMPILER_H */ diff --git a/src/compat/endian.h b/src/compat/endian.h index a1c0ab34..1de99d2d 100644 --- a/src/compat/endian.h +++ b/src/compat/endian.h @@ -6,8 +6,8 @@ * endian.h compatibility layer. */ -#ifndef _BABELTRACE_ENDIAN_H -#define _BABELTRACE_ENDIAN_H +#ifndef BABELTRACE_COMPAT_ENDIAN_H +#define BABELTRACE_COMPAT_ENDIAN_H #ifdef __FreeBSD__ #include @@ -221,4 +221,4 @@ #endif /* __FLOAT_WORD_ORDER */ #endif /* FLOAT_WORD_ORDER */ -#endif /* _BABELTRACE_ENDIAN_H */ +#endif /* BABELTRACE_COMPAT_ENDIAN_H */ diff --git a/src/compat/fcntl.h b/src/compat/fcntl.h index e78b6d49..f5b9bb34 100644 --- a/src/compat/fcntl.h +++ b/src/compat/fcntl.h @@ -6,8 +6,8 @@ * fcntl compatibility layer. */ -#ifndef _BABELTRACE_COMPAT_FCNTL_H -#define _BABELTRACE_COMPAT_FCNTL_H +#ifndef BABELTRACE_COMPAT_FCNTL_H +#define BABELTRACE_COMPAT_FCNTL_H #include "common/common.h" @@ -216,4 +216,4 @@ end: } #endif /* #else #ifdef BABELTRACE_HAVE_POSIX_FALLOCATE */ -#endif /* _BABELTRACE_COMPAT_FCNTL_H */ +#endif /* BABELTRACE_COMPAT_FCNTL_H */ diff --git a/src/compat/glib.h b/src/compat/glib.h index ef17be6c..5319fcb6 100644 --- a/src/compat/glib.h +++ b/src/compat/glib.h @@ -4,8 +4,8 @@ * Copyright (C) 2015 Michael Jeanson */ -#ifndef _BABELTRACE_COMPAT_GLIB_H -#define _BABELTRACE_COMPAT_GLIB_H +#ifndef BABELTRACE_COMPAT_GLIB_H +#define BABELTRACE_COMPAT_GLIB_H #include @@ -59,4 +59,4 @@ end: } #endif -#endif /* _BABELTRACE_COMPAT_GLIB_H */ +#endif /* BABELTRACE_COMPAT_GLIB_H */ diff --git a/src/compat/limits.h b/src/compat/limits.h index c51c2929..48c18e68 100644 --- a/src/compat/limits.h +++ b/src/compat/limits.h @@ -4,8 +4,8 @@ * Copyright (C) 2014 Jérémie Galarneau */ -#ifndef _BABELTRACE_LIMITS_H -#define _BABELTRACE_LIMITS_H +#ifndef BABELTRACE_COMPAT_LIMITS_H +#define BABELTRACE_COMPAT_LIMITS_H #include @@ -34,4 +34,4 @@ #define PATH_MAX 4096 #endif /* __GNU__ */ -#endif /* _BABELTRACE_LIMITS_H */ +#endif /* BABELTRACE_COMPAT_LIMITS_H */ diff --git a/src/compat/memstream.h b/src/compat/memstream.h index 374a5e72..b055b2e3 100644 --- a/src/compat/memstream.h +++ b/src/compat/memstream.h @@ -6,8 +6,8 @@ * memstream compatibility layer. */ -#ifndef _BABELTRACE_FORMAT_CTF_MEMSTREAM_H -#define _BABELTRACE_FORMAT_CTF_MEMSTREAM_H +#ifndef BABELTRACE_COMPAT_MEMSTREAM_H +#define BABELTRACE_COMPAT_MEMSTREAM_H #ifdef BABELTRACE_HAVE_FMEMOPEN #include @@ -344,4 +344,4 @@ error_free: #endif /* BABELTRACE_HAVE_OPEN_MEMSTREAM */ -#endif /* _BABELTRACE_FORMAT_CTF_MEMSTREAM_H */ +#endif /* BABELTRACE_COMPAT_MEMSTREAM_H */ diff --git a/src/compat/mman.h b/src/compat/mman.h index 33febccb..b33ca611 100644 --- a/src/compat/mman.h +++ b/src/compat/mman.h @@ -4,8 +4,8 @@ * Copyright (C) 2015-2016 Michael Jeanson */ -#ifndef _BABELTRACE_COMPAT_MMAN_H -#define _BABELTRACE_COMPAT_MMAN_H +#ifndef BABELTRACE_COMPAT_MMAN_H +#define BABELTRACE_COMPAT_MMAN_H #ifdef __MINGW32__ @@ -76,4 +76,4 @@ size_t bt_mmap_get_offset_align_size(int log_level) # endif #endif -#endif /* _BABELTRACE_COMPAT_MMAN_H */ +#endif /* BABELTRACE_COMPAT_MMAN_H */ diff --git a/src/compat/stdio.h b/src/compat/stdio.h index 076f43a9..d0200226 100644 --- a/src/compat/stdio.h +++ b/src/compat/stdio.h @@ -4,8 +4,8 @@ * Copyright (C) 2015 Mathieu Desnoyers */ -#ifndef _BABELTRACE_COMPAT_STDIO_H -#define _BABELTRACE_COMPAT_STDIO_H +#ifndef BABELTRACE_COMPAT_STDIO_H +#define BABELTRACE_COMPAT_STDIO_H #include #include @@ -109,4 +109,4 @@ ssize_t bt_getline(char **lineptr, size_t *n, FILE *stream) return linelen - 1; /* Count don't include final \0. */ } -#endif /* _BABELTRACE_COMPAT_STDIO_H */ +#endif /* BABELTRACE_COMPAT_STDIO_H */ diff --git a/src/compat/stdlib.h b/src/compat/stdlib.h index a06844d5..02a5cd9d 100644 --- a/src/compat/stdlib.h +++ b/src/compat/stdlib.h @@ -4,8 +4,8 @@ * Copyright (C) 2015 Michael Jeanson */ -#ifndef _BABELTRACE_COMPAT_STDLIB_H -#define _BABELTRACE_COMPAT_STDLIB_H +#ifndef BABELTRACE_COMPAT_STDLIB_H +#define BABELTRACE_COMPAT_STDLIB_H /* * This compat wrapper can be removed and replaced by g_mkdtemp() when we bump @@ -58,4 +58,4 @@ end: #endif -#endif /* _BABELTRACE_COMPAT_STDLIB_H */ +#endif /* BABELTRACE_COMPAT_STDLIB_H */ diff --git a/src/compat/string.h b/src/compat/string.h index a1503b29..7a3a27ef 100644 --- a/src/compat/string.h +++ b/src/compat/string.h @@ -4,8 +4,8 @@ * Copyright (C) 2013 Mathieu Desnoyers */ -#ifndef _BABELTRACE_COMPAT_STRING_H -#define _BABELTRACE_COMPAT_STRING_H +#ifndef BABELTRACE_COMPAT_STRING_H +#define BABELTRACE_COMPAT_STRING_H #include #include @@ -71,4 +71,4 @@ end: } #endif /* HAVE_STRNDUP */ -#endif /* _BABELTRACE_COMPAT_STRING_H */ +#endif /* BABELTRACE_COMPAT_STRING_H */ diff --git a/src/compat/time.h b/src/compat/time.h index 74172589..62982fc6 100644 --- a/src/compat/time.h +++ b/src/compat/time.h @@ -5,8 +5,8 @@ * Copyright (C) 2016 Michael Jeanson */ -#ifndef _BABELTRACE_INCLUDE_COMPAT_TIME_H -#define _BABELTRACE_INCLUDE_COMPAT_TIME_H +#ifndef BABELTRACE_COMPAT_TIME_H +#define BABELTRACE_COMPAT_TIME_H #include #include @@ -78,4 +78,5 @@ struct tm *bt_localtime_r(const time_t *timep, struct tm *result) } #endif /* __MINGW32__ */ -#endif /* _BABELTRACE_INCLUDE_COMPAT_TIME_H */ + +#endif /* BABELTRACE_COMPAT_TIME_H */ diff --git a/src/compat/unistd.h b/src/compat/unistd.h index e517e4bc..6aae01ad 100644 --- a/src/compat/unistd.h +++ b/src/compat/unistd.h @@ -4,8 +4,8 @@ * Copyright (C) 2016 Michael Jeanson */ -#ifndef _BABELTRACE_COMPAT_UNISTD_H -#define _BABELTRACE_COMPAT_UNISTD_H +#ifndef BABELTRACE_COMPAT_UNISTD_H +#define BABELTRACE_COMPAT_UNISTD_H #include @@ -39,4 +39,5 @@ long bt_sysconf(int name) } #endif -#endif /* _BABELTRACE_COMPAT_UNISTD_H */ + +#endif /* BABELTRACE_COMPAT_UNISTD_H */ diff --git a/src/compat/utc.h b/src/compat/utc.h index 4154c3e8..da95d0a9 100644 --- a/src/compat/utc.h +++ b/src/compat/utc.h @@ -4,8 +4,8 @@ * Copyright (C) 2011-2013 Mathieu Desnoyers */ -#ifndef _BABELTRACE_UTC_H -#define _BABELTRACE_UTC_H +#ifndef BABELTRACE_COMPAT_UTC_H +#define BABELTRACE_COMPAT_UTC_H #include @@ -86,4 +86,4 @@ time_t bt_timegm(struct tm *tm) #endif -#endif /* _BABELTRACE_UTC_H */ +#endif /* BABELTRACE_COMPAT_UTC_H */ diff --git a/src/cpp-common/bt2/query-executor.hpp b/src/cpp-common/bt2/query-executor.hpp index 4b3fb264..b610b3fd 100644 --- a/src/cpp-common/bt2/query-executor.hpp +++ b/src/cpp-common/bt2/query-executor.hpp @@ -121,4 +121,4 @@ using ConstQueryExecutor = CommonQueryExecutor; } /* namespace bt2 */ -#endif /* BABELTRACE_CPP_COMMON_BT2_QUERY_EXECUTOR_HPP */ +#endif /* BABELTRACE_CPP_COMMON_BT2_QUERY_EXECUTOR_HPP */ diff --git a/src/cpp-common/bt2c/file-utils.hpp b/src/cpp-common/bt2c/file-utils.hpp index 9890f0a8..17bbe8c3 100644 --- a/src/cpp-common/bt2c/file-utils.hpp +++ b/src/cpp-common/bt2c/file-utils.hpp @@ -4,8 +4,8 @@ * SPDX-License-Identifier: MIT */ -#ifndef BABELTRACE_CPP_COMMON_FILE_UTILS_HPP -#define BABELTRACE_CPP_COMMON_FILE_UTILS_HPP +#ifndef BABELTRACE_CPP_COMMON_BT2C_FILE_UTILS_HPP +#define BABELTRACE_CPP_COMMON_BT2C_FILE_UTILS_HPP #include #include @@ -19,4 +19,4 @@ std::vector dataFromFile(const char *path); } /* namespace bt2c */ -#endif /* BABELTRACE_CPP_COMMON_FILE_UTILS_HPP */ +#endif /* BABELTRACE_CPP_COMMON_BT2C_FILE_UTILS_HPP */ diff --git a/src/cpp-common/bt2c/fmt.hpp b/src/cpp-common/bt2c/fmt.hpp index ab3d6bc8..f29a77a2 100644 --- a/src/cpp-common/bt2c/fmt.hpp +++ b/src/cpp-common/bt2c/fmt.hpp @@ -4,6 +4,9 @@ * SPDX-License-Identifier: MIT */ +#ifndef BABELTRACE_CPP_COMMON_BT2C_FMT_HPP +#define BABELTRACE_CPP_COMMON_BT2C_FMT_HPP + #include "cpp-common/vendor/fmt/format.h" /* IWYU pragma: keep */ #include "cpp-common/vendor/wise-enum/wise_enum.h" @@ -41,3 +44,5 @@ inline std::string format_as(const UuidView uuid) } } /* namespace bt2c */ + +#endif /* BABELTRACE_CPP_COMMON_BT2C_FMT_HPP */ diff --git a/src/cpp-common/bt2c/vector.hpp b/src/cpp-common/bt2c/vector.hpp index 516a8263..e40a913f 100644 --- a/src/cpp-common/bt2c/vector.hpp +++ b/src/cpp-common/bt2c/vector.hpp @@ -4,8 +4,8 @@ * SPDX-License-Identifier: MIT */ -#ifndef SRC_CPP_COMMON_VECTOR_HPP -#define SRC_CPP_COMMON_VECTOR_HPP +#ifndef BABELTRACE_CPP_COMMON_BT2C_VECTOR_HPP +#define BABELTRACE_CPP_COMMON_BT2C_VECTOR_HPP #include @@ -34,4 +34,4 @@ void vectorFastRemove(std::vector& vec, } /* namespace bt2c */ -#endif /* SRC_CPP_COMMON_VECTOR_HPP */ +#endif /* BABELTRACE_CPP_COMMON_BT2C_VECTOR_HPP */ diff --git a/src/ctf-writer/assert-pre.h b/src/ctf-writer/assert-pre.h index 38e3ac2c..a118841d 100644 --- a/src/ctf-writer/assert-pre.h +++ b/src/ctf-writer/assert-pre.h @@ -5,8 +5,8 @@ * Copyright (c) 2018 Philippe Proulx */ -#ifndef BABELTRACE_CTF_WRITER_ASSERT_PRE_INTERNAL_H -#define BABELTRACE_CTF_WRITER_ASSERT_PRE_INTERNAL_H +#ifndef BABELTRACE_CTF_WRITER_ASSERT_PRE_H +#define BABELTRACE_CTF_WRITER_ASSERT_PRE_H /* * The macros in this header use macros defined in "logging/log.h". We @@ -142,4 +142,4 @@ "Index is out of bounds: index=%" PRIu64 ", " \ "count=%" PRIu64, (uint64_t) (_index), (uint64_t) (_length)) -#endif /* BABELTRACE_CTF_WRITER_ASSERT_PRE_INTERNAL_H */ +#endif /* BABELTRACE_CTF_WRITER_ASSERT_PRE_H */ diff --git a/src/ctf-writer/clock-class.h b/src/ctf-writer/clock-class.h index adbba43a..588b2d71 100644 --- a/src/ctf-writer/clock-class.h +++ b/src/ctf-writer/clock-class.h @@ -4,8 +4,8 @@ * Copyright 2013, 2014 Jérémie Galarneau */ -#ifndef BABELTRACE_CTF_WRITER_CLOCK_CLASS_INTERNAL_H -#define BABELTRACE_CTF_WRITER_CLOCK_CLASS_INTERNAL_H +#ifndef BABELTRACE_CTF_WRITER_CLOCK_CLASS_H +#define BABELTRACE_CTF_WRITER_CLOCK_CLASS_H #include "common/macros.h" #include "object-pool.h" @@ -78,4 +78,4 @@ const uint8_t *bt_ctf_clock_class_get_uuid( int bt_ctf_clock_class_set_uuid(struct bt_ctf_clock_class *clock_class, const uint8_t *uuid); -#endif /* BABELTRACE_CTF_WRITER_CLOCK_CLASS_INTERNAL_H */ +#endif /* BABELTRACE_CTF_WRITER_CLOCK_CLASS_H */ diff --git a/src/ctf-writer/clock.h b/src/ctf-writer/clock.h index cad188e7..3fc2a15c 100644 --- a/src/ctf-writer/clock.h +++ b/src/ctf-writer/clock.h @@ -4,8 +4,8 @@ * Copyright 2017 Philippe Proulx */ -#ifndef BABELTRACE_CTF_WRITER_CLOCK_INTERNAL_H -#define BABELTRACE_CTF_WRITER_CLOCK_INTERNAL_H +#ifndef BABELTRACE_CTF_WRITER_CLOCK_H +#define BABELTRACE_CTF_WRITER_CLOCK_H #include #include "common/macros.h" @@ -28,4 +28,4 @@ int bt_ctf_clock_get_value(struct bt_ctf_clock *clock, uint64_t *value); void bt_ctf_clock_class_serialize(struct bt_ctf_clock_class *clock_class, struct metadata_context *context); -#endif /* BABELTRACE_CTF_WRITER_CLOCK_INTERNAL_H */ +#endif /* BABELTRACE_CTF_WRITER_CLOCK_H */ diff --git a/src/ctf-writer/event-class.h b/src/ctf-writer/event-class.h index 429888a7..e8e53114 100644 --- a/src/ctf-writer/event-class.h +++ b/src/ctf-writer/event-class.h @@ -4,8 +4,8 @@ * Copyright 2013, 2014 Jérémie Galarneau */ -#ifndef BABELTRACE_CTF_WRITER_EVENT_CLASS_INTERNAL_H -#define BABELTRACE_CTF_WRITER_EVENT_CLASS_INTERNAL_H +#ifndef BABELTRACE_CTF_WRITER_EVENT_CLASS_H +#define BABELTRACE_CTF_WRITER_EVENT_CLASS_H #include "common/assert.h" #include "common/macros.h" @@ -371,4 +371,4 @@ end: return ret; } -#endif /* BABELTRACE_CTF_WRITER_EVENT_CLASS_INTERNAL_H */ +#endif /* BABELTRACE_CTF_WRITER_EVENT_CLASS_H */ diff --git a/src/ctf-writer/event.h b/src/ctf-writer/event.h index 52e4c520..df043477 100644 --- a/src/ctf-writer/event.h +++ b/src/ctf-writer/event.h @@ -7,8 +7,8 @@ * http://www.efficios.com/ctf */ -#ifndef BABELTRACE_CTF_WRITER_EVENT_INTERNAL_H -#define BABELTRACE_CTF_WRITER_EVENT_INTERNAL_H +#ifndef BABELTRACE_CTF_WRITER_EVENT_H +#define BABELTRACE_CTF_WRITER_EVENT_H #include @@ -249,4 +249,4 @@ struct bt_ctf_stream_class *bt_ctf_event_class_borrow_stream_class( BT_CTF_TO_COMMON(event_class))); } -#endif /* BABELTRACE_CTF_WRITER_EVENT_INTERNAL_H */ +#endif /* BABELTRACE_CTF_WRITER_EVENT_H */ diff --git a/src/ctf-writer/field-path.h b/src/ctf-writer/field-path.h index c823f009..372a8c97 100644 --- a/src/ctf-writer/field-path.h +++ b/src/ctf-writer/field-path.h @@ -7,8 +7,8 @@ * http://www.efficios.com/ctf */ -#ifndef BABELTRACE_CTF_WRITER_FIELD_PATH_INTERNAL -#define BABELTRACE_CTF_WRITER_FIELD_PATH_INTERNAL +#ifndef BABELTRACE_CTF_WRITER_FIELD_PATH_H +#define BABELTRACE_CTF_WRITER_FIELD_PATH_H #include "common/common.h" #include "common/assert.h" @@ -47,4 +47,4 @@ int64_t bt_ctf_field_path_get_index_count( int bt_ctf_field_path_get_index( const struct bt_ctf_field_path *field_path, uint64_t index); -#endif /* BABELTRACE_CTF_WRITER_FIELD_PATH_INTERNAL */ +#endif /* BABELTRACE_CTF_WRITER_FIELD_PATH_H */ diff --git a/src/ctf-writer/field-types.h b/src/ctf-writer/field-types.h index f5dbd99e..2ee48a4b 100644 --- a/src/ctf-writer/field-types.h +++ b/src/ctf-writer/field-types.h @@ -7,8 +7,8 @@ * http://www.efficios.com/ctf */ -#ifndef BABELTRACE_CTF_WRITER_FIELD_TYPES_INTERNAL_H -#define BABELTRACE_CTF_WRITER_FIELD_TYPES_INTERNAL_H +#ifndef BABELTRACE_CTF_WRITER_FIELD_TYPES_H +#define BABELTRACE_CTF_WRITER_FIELD_TYPES_H #include #include @@ -671,4 +671,4 @@ int bt_ctf_field_type_serialize_recursive(struct bt_ctf_field_type *type, struct bt_ctf_field_type *bt_ctf_field_type_copy(struct bt_ctf_field_type *ft); -#endif /* BABELTRACE_CTF_WRITER_FIELD_TYPES_INTERNAL_H */ +#endif /* BABELTRACE_CTF_WRITER_FIELD_TYPES_H */ diff --git a/src/ctf-writer/field-wrapper.h b/src/ctf-writer/field-wrapper.h index 2b3286d2..f0053cf8 100644 --- a/src/ctf-writer/field-wrapper.h +++ b/src/ctf-writer/field-wrapper.h @@ -4,8 +4,8 @@ * Copyright 2018 Philippe Proulx */ -#ifndef BABELTRACE_CTF_WRITER_FIELD_WRAPPER_INTERNAL_H -#define BABELTRACE_CTF_WRITER_FIELD_WRAPPER_INTERNAL_H +#ifndef BABELTRACE_CTF_WRITER_FIELD_WRAPPER_H +#define BABELTRACE_CTF_WRITER_FIELD_WRAPPER_H #include "common/macros.h" @@ -27,4 +27,4 @@ void bt_ctf_field_wrapper_destroy(struct bt_ctf_field_wrapper *field); struct bt_ctf_field_wrapper *bt_ctf_field_wrapper_create( struct bt_ctf_object_pool *pool, struct bt_ctf_field_type *ft); -#endif /* BABELTRACE_CTF_WRITER_FIELD_WRAPPER_INTERNAL_H */ +#endif /* BABELTRACE_CTF_WRITER_FIELD_WRAPPER_H */ diff --git a/src/ctf-writer/fields.h b/src/ctf-writer/fields.h index 3c13c3ef..8a440206 100644 --- a/src/ctf-writer/fields.h +++ b/src/ctf-writer/fields.h @@ -7,8 +7,8 @@ * http://www.efficios.com/ctf */ -#ifndef BABELTRACE_CTF_WRITER_FIELDS_INTERNAL_H -#define BABELTRACE_CTF_WRITER_FIELDS_INTERNAL_H +#ifndef BABELTRACE_CTF_WRITER_FIELDS_H +#define BABELTRACE_CTF_WRITER_FIELDS_H #include #include @@ -807,4 +807,4 @@ bt_ctf_bool bt_ctf_field_is_set_recursive( return bt_ctf_field_common_is_set_recursive((void *) field); } -#endif /* BABELTRACE_CTF_WRITER_FIELDS_INTERNAL_H */ +#endif /* BABELTRACE_CTF_WRITER_FIELDS_H */ diff --git a/src/ctf-writer/functor.h b/src/ctf-writer/functor.h index 0b13d47e..a7f4da76 100644 --- a/src/ctf-writer/functor.h +++ b/src/ctf-writer/functor.h @@ -4,12 +4,12 @@ * Copyright 2013, 2014 Jérémie Galarneau */ -#ifndef BABELTRACE_CTF_WRITER_FUNCTOR_INTERNAL_H -#define BABELTRACE_CTF_WRITER_FUNCTOR_INTERNAL_H +#ifndef BABELTRACE_CTF_WRITER_FUNCTOR_H +#define BABELTRACE_CTF_WRITER_FUNCTOR_H #include #include "common/macros.h" void value_exists(gpointer element, gpointer search_query); -#endif /* BABELTRACE_CTF_WRITER_FUNCTOR_INTERNAL_H */ +#endif /* BABELTRACE_CTF_WRITER_FUNCTOR_H */ diff --git a/src/ctf-writer/object-pool.h b/src/ctf-writer/object-pool.h index 34679ebf..fc118236 100644 --- a/src/ctf-writer/object-pool.h +++ b/src/ctf-writer/object-pool.h @@ -5,8 +5,8 @@ * Copyright (c) 2018 Philippe Proulx */ -#ifndef BABELTRACE_CTF_WRITER_OBJECT_POOL_INTERNAL_H -#define BABELTRACE_CTF_WRITER_OBJECT_POOL_INTERNAL_H +#ifndef BABELTRACE_CTF_WRITER_OBJECT_POOL_H +#define BABELTRACE_CTF_WRITER_OBJECT_POOL_H /* * This is a generic object pool to avoid memory allocation/deallocation @@ -165,4 +165,4 @@ void bt_ctf_object_pool_recycle_object(struct bt_ctf_object_pool *pool, void *ob #endif } -#endif /* BABELTRACE_CTF_WRITER_OBJECT_POOL_INTERNAL_H */ +#endif /* BABELTRACE_CTF_WRITER_OBJECT_POOL_H */ diff --git a/src/ctf-writer/object.h b/src/ctf-writer/object.h index 0f8eec4c..149e1658 100644 --- a/src/ctf-writer/object.h +++ b/src/ctf-writer/object.h @@ -4,8 +4,8 @@ * Copyright 2015 Jérémie Galarneau */ -#ifndef BABELTRACE_CTF_WRITER_OBJECT_INTERNAL_H -#define BABELTRACE_CTF_WRITER_OBJECT_INTERNAL_H +#ifndef BABELTRACE_CTF_WRITER_OBJECT_H +#define BABELTRACE_CTF_WRITER_OBJECT_H #include "common/macros.h" #include "common/assert.h" @@ -296,4 +296,4 @@ void bt_ctf_object_put_no_null_check(struct bt_ctf_object *obj) } } -#endif /* BABELTRACE_CTF_WRITER_OBJECT_INTERNAL_H */ +#endif /* BABELTRACE_CTF_WRITER_OBJECT_H */ diff --git a/src/ctf-writer/resolve.h b/src/ctf-writer/resolve.h index 7d72e934..15837bf6 100644 --- a/src/ctf-writer/resolve.h +++ b/src/ctf-writer/resolve.h @@ -5,8 +5,8 @@ * Copyright 2016 Philippe Proulx */ -#ifndef BABELTRACE_CTF_WRITER_RESOLVE_INTERNAL_H -#define BABELTRACE_CTF_WRITER_RESOLVE_INTERNAL_H +#ifndef BABELTRACE_CTF_WRITER_RESOLVE_H +#define BABELTRACE_CTF_WRITER_RESOLVE_H #include #include "common/macros.h" @@ -48,4 +48,4 @@ int bt_ctf_resolve_types(struct bt_ctf_private_value *environment, struct bt_ctf_field_type_common *event_payload_type, enum bt_ctf_resolve_flag flags); -#endif /* BABELTRACE_CTF_WRITER_RESOLVE_INTERNAL_H */ +#endif /* BABELTRACE_CTF_WRITER_RESOLVE_H */ diff --git a/src/ctf-writer/stream-class.h b/src/ctf-writer/stream-class.h index ab54ce73..1a8a0f17 100644 --- a/src/ctf-writer/stream-class.h +++ b/src/ctf-writer/stream-class.h @@ -7,8 +7,8 @@ * http://www.efficios.com/ctf */ -#ifndef BABELTRACE_CTF_WRITER_STREAM_CLASS_INTERNAL_H -#define BABELTRACE_CTF_WRITER_STREAM_CLASS_INTERNAL_H +#ifndef BABELTRACE_CTF_WRITER_STREAM_CLASS_H +#define BABELTRACE_CTF_WRITER_STREAM_CLASS_H #include "common/assert.h" #include "common/macros.h" @@ -508,4 +508,4 @@ int bt_ctf_stream_class_map_clock_class( struct bt_ctf_field_type *packet_context_type, struct bt_ctf_field_type *event_header_type); -#endif /* BABELTRACE_CTF_WRITER_STREAM_CLASS_INTERNAL_H */ +#endif /* BABELTRACE_CTF_WRITER_STREAM_CLASS_H */ diff --git a/src/ctf-writer/stream.h b/src/ctf-writer/stream.h index 605a3e55..f5817c50 100644 --- a/src/ctf-writer/stream.h +++ b/src/ctf-writer/stream.h @@ -7,8 +7,8 @@ * http://www.efficios.com/ctf */ -#ifndef BABELTRACE_CTF_WRITER_STREAM_INTERNAL_H -#define BABELTRACE_CTF_WRITER_STREAM_INTERNAL_H +#ifndef BABELTRACE_CTF_WRITER_STREAM_H +#define BABELTRACE_CTF_WRITER_STREAM_H #include "common/assert.h" #include "common/macros.h" @@ -84,4 +84,4 @@ struct bt_ctf_stream *bt_ctf_stream_create_with_id( struct bt_ctf_stream_class *stream_class, const char *name, uint64_t id); -#endif /* BABELTRACE_CTF_WRITER_STREAM_INTERNAL_H */ +#endif /* BABELTRACE_CTF_WRITER_STREAM_H */ diff --git a/src/ctf-writer/trace.h b/src/ctf-writer/trace.h index 29df2f42..eb751ea9 100644 --- a/src/ctf-writer/trace.h +++ b/src/ctf-writer/trace.h @@ -7,8 +7,8 @@ * http://www.efficios.com/ctf */ -#ifndef BABELTRACE_CTF_WRITER_TRACE_INTERNAL_H -#define BABELTRACE_CTF_WRITER_TRACE_INTERNAL_H +#ifndef BABELTRACE_CTF_WRITER_TRACE_H +#define BABELTRACE_CTF_WRITER_TRACE_H #include "common/macros.h" #include "common/uuid.h" @@ -350,4 +350,4 @@ bt_ctf_trace_get_environment_field_value_by_name( int bt_ctf_trace_visit(struct bt_ctf_trace *trace, bt_ctf_visitor visitor, void *data); -#endif /* BABELTRACE_CTF_WRITER_TRACE_INTERNAL_H */ +#endif /* BABELTRACE_CTF_WRITER_TRACE_H */ diff --git a/src/ctf-writer/utils.h b/src/ctf-writer/utils.h index 1ea5406a..4bd6bd68 100644 --- a/src/ctf-writer/utils.h +++ b/src/ctf-writer/utils.h @@ -4,8 +4,8 @@ * Copyright 2019 EfficiOS, Inc */ -#ifndef BABELTRACE_CTF_WRITER_UTILS_INTERNAL_H -#define BABELTRACE_CTF_WRITER_UTILS_INTERNAL_H +#ifndef BABELTRACE_CTF_WRITER_UTILS_H +#define BABELTRACE_CTF_WRITER_UTILS_H #include "common/macros.h" #include @@ -204,4 +204,4 @@ end: return str; } -#endif /* BABELTRACE_CTF_WRITER_UTILS_INTERNAL_H */ +#endif /* BABELTRACE_CTF_WRITER_UTILS_H */ diff --git a/src/ctf-writer/validation.h b/src/ctf-writer/validation.h index fef42a6d..0b93ddf9 100644 --- a/src/ctf-writer/validation.h +++ b/src/ctf-writer/validation.h @@ -4,8 +4,8 @@ * Copyright 2016 Philippe Proulx */ -#ifndef BABELTRACE_CTF_WRITER_VALIDATION_INTERNAL_H -#define BABELTRACE_CTF_WRITER_VALIDATION_INTERNAL_H +#ifndef BABELTRACE_CTF_WRITER_VALIDATION_H +#define BABELTRACE_CTF_WRITER_VALIDATION_H #include "common/macros.h" @@ -106,4 +106,4 @@ void bt_ctf_validation_replace_types(struct bt_ctf_trace_common *trace, void bt_ctf_validation_output_put_types( struct bt_ctf_validation_output *output); -#endif /* BABELTRACE_CTF_WRITER_VALIDATION_INTERNAL_H */ +#endif /* BABELTRACE_CTF_WRITER_VALIDATION_H */ diff --git a/src/ctf-writer/values.h b/src/ctf-writer/values.h index ad29a9fb..e752c475 100644 --- a/src/ctf-writer/values.h +++ b/src/ctf-writer/values.h @@ -5,8 +5,8 @@ * Copyright (c) 2015-2017 Philippe Proulx */ -#ifndef BABELTRACE_CTF_WRITER_VALUES_INTERNAL_H -#define BABELTRACE_CTF_WRITER_VALUES_INTERNAL_H +#ifndef BABELTRACE_CTF_WRITER_VALUES_H +#define BABELTRACE_CTF_WRITER_VALUES_H #include @@ -293,4 +293,4 @@ const char *bt_ctf_value_type_string(enum bt_ctf_value_type type) } }; -#endif /* BABELTRACE_CTF_WRITER_VALUES_INTERNAL_H */ +#endif /* BABELTRACE_CTF_WRITER_VALUES_H */ diff --git a/src/ctf-writer/visitor.h b/src/ctf-writer/visitor.h index bdbf2283..93375259 100644 --- a/src/ctf-writer/visitor.h +++ b/src/ctf-writer/visitor.h @@ -4,8 +4,8 @@ * Copyright 2016 Jérémie Galarneau */ -#ifndef BABELTRACE_CTF_WRITER_VISITOR_INTERNAL_H -#define BABELTRACE_CTF_WRITER_VISITOR_INTERNAL_H +#ifndef BABELTRACE_CTF_WRITER_VISITOR_H +#define BABELTRACE_CTF_WRITER_VISITOR_H #include #include @@ -29,4 +29,4 @@ int bt_ctf_visitor_helper(struct bt_ctf_visitor_object *root, bt_ctf_visitor visitor, void *data); -#endif /* BABELTRACE_CTF_WRITER_VISITOR_INTERNAL_H */ +#endif /* BABELTRACE_CTF_WRITER_VISITOR_H */ diff --git a/src/ctf-writer/writer.h b/src/ctf-writer/writer.h index 24c92c36..e99bb4da 100644 --- a/src/ctf-writer/writer.h +++ b/src/ctf-writer/writer.h @@ -4,8 +4,8 @@ * Copyright 2013, 2014 Jérémie Galarneau */ -#ifndef BABELTRACE_CTF_WRITER_WRITER_INTERNAL_H -#define BABELTRACE_CTF_WRITER_WRITER_INTERNAL_H +#ifndef BABELTRACE_CTF_WRITER_WRITER_H +#define BABELTRACE_CTF_WRITER_WRITER_H #include #include @@ -48,4 +48,4 @@ const char *bt_ctf_get_byte_order_string(enum bt_ctf_byte_order byte_order); void bt_ctf_writer_freeze(struct bt_ctf_writer *writer); -#endif /* BABELTRACE_CTF_WRITER_WRITER_INTERNAL_H */ +#endif /* BABELTRACE_CTF_WRITER_WRITER_H */ diff --git a/src/ctfser/ctfser.h b/src/ctfser/ctfser.h index 33d48d20..20f8bded 100644 --- a/src/ctfser/ctfser.h +++ b/src/ctfser/ctfser.h @@ -9,8 +9,8 @@ * http://www.efficios.com/ctf */ -#ifndef BABELTRACE_CTFSER_INTERNAL_H -#define BABELTRACE_CTFSER_INTERNAL_H +#ifndef BABELTRACE_CTFSER_CTFSER_H +#define BABELTRACE_CTFSER_CTFSER_H #include #include @@ -562,4 +562,4 @@ const char *bt_ctfser_get_file_path(struct bt_ctfser *ctfser) return ctfser->path->str; } -#endif /* BABELTRACE_CTFSER_INTERNAL_H */ +#endif /* BABELTRACE_CTFSER_CTFSER_H */ diff --git a/src/fd-cache/fd-cache.h b/src/fd-cache/fd-cache.h index 9a04bb47..6d1e4c10 100644 --- a/src/fd-cache/fd-cache.h +++ b/src/fd-cache/fd-cache.h @@ -6,8 +6,8 @@ * Babeltrace - File descriptor cache */ -#ifndef BABELTRACE_FD_CACHE_INTERNAL_H -#define BABELTRACE_FD_CACHE_INTERNAL_H +#ifndef BABELTRACE_FD_CACHE_FD_CACHE_H +#define BABELTRACE_FD_CACHE_FD_CACHE_H #include "common/macros.h" @@ -36,4 +36,4 @@ struct bt_fd_cache_handle *bt_fd_cache_get_handle(struct bt_fd_cache *fdc, void bt_fd_cache_put_handle(struct bt_fd_cache *fdc, struct bt_fd_cache_handle *handle); -#endif /* BABELTRACE_FD_CACHE_INTERNAL_H */ +#endif /* BABELTRACE_FD_CACHE_FD_CACHE_H */ diff --git a/src/lib/assert-cond-base.h b/src/lib/assert-cond-base.h index c8d04b63..a2dc3c5b 100644 --- a/src/lib/assert-cond-base.h +++ b/src/lib/assert-cond-base.h @@ -5,8 +5,8 @@ * Copyright (c) 2018-2020 Philippe Proulx */ -#ifndef BABELTRACE_ASSERT_COND_BASE_INTERNAL_H -#define BABELTRACE_ASSERT_COND_BASE_INTERNAL_H +#ifndef BABELTRACE_LIB_ASSERT_COND_BASE_H +#define BABELTRACE_LIB_ASSERT_COND_BASE_H /* * The macros in this header use macros defined in "lib/logging.h". We @@ -165,4 +165,4 @@ void bt_lib_assert_cond_failed(const char *cond_type, const char *func, */ #define BT_ASSERT_COND_SUPPORTED -#endif /* BABELTRACE_ASSERT_COND_BASE_INTERNAL_H */ +#endif /* BABELTRACE_LIB_ASSERT_COND_BASE_H */ diff --git a/src/lib/assert-cond.h b/src/lib/assert-cond.h index 4868c48c..993edcc9 100644 --- a/src/lib/assert-cond.h +++ b/src/lib/assert-cond.h @@ -5,8 +5,8 @@ * Copyright (c) 2018-2020 Philippe Proulx */ -#ifndef BABELTRACE_ASSERT_COND_INTERNAL_H -#define BABELTRACE_ASSERT_COND_INTERNAL_H +#ifndef BABELTRACE_LIB_ASSERT_COND_H +#define BABELTRACE_LIB_ASSERT_COND_H #include "assert-cond-base.h" @@ -1270,4 +1270,4 @@ BT_ASSERT_PRE_DEV_NON_NULL(_BT_ASSERT_PRE_KEY_ID, (_key), \ _BT_ASSERT_PRE_KEY_NAME) -#endif /* BABELTRACE_ASSERT_COND_INTERNAL_H */ +#endif /* BABELTRACE_LIB_ASSERT_COND_H */ diff --git a/src/lib/error.h b/src/lib/error.h index 39788185..41bf7101 100644 --- a/src/lib/error.h +++ b/src/lib/error.h @@ -4,8 +4,8 @@ * Copyright (c) 2019 Philippe Proulx */ -#ifndef BABELTRACE_ERROR_INTERNAL_H -#define BABELTRACE_ERROR_INTERNAL_H +#ifndef BABELTRACE_LIB_ERROR_H +#define BABELTRACE_LIB_ERROR_H #include #include @@ -97,4 +97,4 @@ int bt_error_append_cause_from_message_iterator( const char *file_name, uint64_t line_no, const char *msg_fmt, va_list args); -#endif /* BABELTRACE_ERROR_INTERNAL_H */ +#endif /* BABELTRACE_LIB_ERROR_H */ diff --git a/src/lib/func-status.h b/src/lib/func-status.h index 1da2097b..0f366cab 100644 --- a/src/lib/func-status.h +++ b/src/lib/func-status.h @@ -4,8 +4,8 @@ * Copyright (c) 2019 Philippe Proulx */ -#ifndef BABELTRACE_FUNC_STATUS_INTERNAL_H -#define BABELTRACE_FUNC_STATUS_INTERNAL_H +#ifndef BABELTRACE_LIB_FUNC_STATUS_H +#define BABELTRACE_LIB_FUNC_STATUS_H #define __BT_IN_BABELTRACE_H #include @@ -26,4 +26,4 @@ #define BT_FUNC_STATUS_OK __BT_FUNC_STATUS_OK #define BT_FUNC_STATUS_OVERFLOW_ERROR __BT_FUNC_STATUS_OVERFLOW_ERROR -#endif /* BABELTRACE_FUNC_STATUS_INTERNAL_H */ +#endif /* BABELTRACE_LIB_FUNC_STATUS_H */ diff --git a/src/lib/graph/component-class-sink-simple.h b/src/lib/graph/component-class-sink-simple.h index 7143da96..ce490178 100644 --- a/src/lib/graph/component-class-sink-simple.h +++ b/src/lib/graph/component-class-sink-simple.h @@ -4,8 +4,8 @@ * Copyright 2017-2019 Philippe Proulx */ -#ifndef BABELTRACE_GRAPH_COMPONENT_CLASS_SINK_SIMPLE_H -#define BABELTRACE_GRAPH_COMPONENT_CLASS_SINK_SIMPLE_H +#ifndef BABELTRACE_LIB_GRAPH_COMPONENT_CLASS_SINK_SIMPLE_H +#define BABELTRACE_LIB_GRAPH_COMPONENT_CLASS_SINK_SIMPLE_H #include #include @@ -19,4 +19,4 @@ struct simple_sink_init_method_data { struct bt_component_class_sink *bt_component_class_sink_simple_borrow(void); -#endif /* BABELTRACE_GRAPH_COMPONENT_CLASS_SINK_SIMPLE_H */ +#endif /* BABELTRACE_LIB_GRAPH_COMPONENT_CLASS_SINK_SIMPLE_H */ diff --git a/src/lib/graph/component-class.h b/src/lib/graph/component-class.h index c6a69e57..b8ce3ccf 100644 --- a/src/lib/graph/component-class.h +++ b/src/lib/graph/component-class.h @@ -5,8 +5,8 @@ * Copyright 2015 Jérémie Galarneau */ -#ifndef BABELTRACE_GRAPH_COMPONENT_CLASS_INTERNAL_H -#define BABELTRACE_GRAPH_COMPONENT_CLASS_INTERNAL_H +#ifndef BABELTRACE_LIB_GRAPH_COMPONENT_CLASS_H +#define BABELTRACE_LIB_GRAPH_COMPONENT_CLASS_H #include #include @@ -103,4 +103,4 @@ bool bt_component_class_has_message_iterator_class( component_class->type == BT_COMPONENT_CLASS_TYPE_FILTER; } -#endif /* BABELTRACE_GRAPH_COMPONENT_CLASS_INTERNAL_H */ +#endif /* BABELTRACE_LIB_GRAPH_COMPONENT_CLASS_H */ diff --git a/src/lib/graph/component-descriptor-set.h b/src/lib/graph/component-descriptor-set.h index fdc90f46..77f7459f 100644 --- a/src/lib/graph/component-descriptor-set.h +++ b/src/lib/graph/component-descriptor-set.h @@ -5,8 +5,8 @@ * Copyright 2017 Jérémie Galarneau */ -#ifndef BABELTRACE_GRAPH_COMPONENT_DESCRIPTOR_SET_INTERNAL_H -#define BABELTRACE_GRAPH_COMPONENT_DESCRIPTOR_SET_INTERNAL_H +#ifndef BABELTRACE_LIB_GRAPH_COMPONENT_DESCRIPTOR_SET_H +#define BABELTRACE_LIB_GRAPH_COMPONENT_DESCRIPTOR_SET_H #include #include @@ -39,4 +39,4 @@ struct bt_component_descriptor_set { GPtrArray *sinks; }; -#endif /* BABELTRACE_GRAPH_COMPONENT_DESCRIPTOR_SET_INTERNAL_H */ +#endif /* BABELTRACE_LIB_GRAPH_COMPONENT_DESCRIPTOR_SET_H */ diff --git a/src/lib/graph/component-filter.h b/src/lib/graph/component-filter.h index 83089191..53f7ed8f 100644 --- a/src/lib/graph/component-filter.h +++ b/src/lib/graph/component-filter.h @@ -5,8 +5,8 @@ * Copyright 2016 Jérémie Galarneau */ -#ifndef BABELTRACE_GRAPH_COMPONENT_FILTER_INTERNAL_H -#define BABELTRACE_GRAPH_COMPONENT_FILTER_INTERNAL_H +#ifndef BABELTRACE_LIB_GRAPH_COMPONENT_FILTER_H +#define BABELTRACE_LIB_GRAPH_COMPONENT_FILTER_H #include @@ -18,4 +18,4 @@ struct bt_component_filter { struct bt_component *bt_component_filter_create(void); -#endif /* BABELTRACE_GRAPH_COMPONENT_FILTER_INTERNAL_H */ +#endif /* BABELTRACE_LIB_GRAPH_COMPONENT_FILTER_H */ diff --git a/src/lib/graph/component-sink.h b/src/lib/graph/component-sink.h index 2c4569c0..69aa48e4 100644 --- a/src/lib/graph/component-sink.h +++ b/src/lib/graph/component-sink.h @@ -5,8 +5,8 @@ * Copyright 2015 Jérémie Galarneau */ -#ifndef BABELTRACE_GRAPH_COMPONENT_SINK_INTERNAL_H -#define BABELTRACE_GRAPH_COMPONENT_SINK_INTERNAL_H +#ifndef BABELTRACE_LIB_GRAPH_COMPONENT_SINK_H +#define BABELTRACE_LIB_GRAPH_COMPONENT_SINK_H #include @@ -22,4 +22,4 @@ struct bt_component_sink { struct bt_component *bt_component_sink_create(void); -#endif /* BABELTRACE_GRAPH_COMPONENT_SINK_INTERNAL_H */ +#endif /* BABELTRACE_LIB_GRAPH_COMPONENT_SINK_H */ diff --git a/src/lib/graph/component-source.h b/src/lib/graph/component-source.h index c91ebda4..6b0333db 100644 --- a/src/lib/graph/component-source.h +++ b/src/lib/graph/component-source.h @@ -5,8 +5,8 @@ * Copyright 2015 Jérémie Galarneau */ -#ifndef BABELTRACE_GRAPH_COMPONENT_SOURCE_INTERNAL_H -#define BABELTRACE_GRAPH_COMPONENT_SOURCE_INTERNAL_H +#ifndef BABELTRACE_LIB_GRAPH_COMPONENT_SOURCE_H +#define BABELTRACE_LIB_GRAPH_COMPONENT_SOURCE_H #include "component.h" @@ -16,4 +16,4 @@ struct bt_component_source { struct bt_component *bt_component_source_create(void); -#endif /* BABELTRACE_GRAPH_COMPONENT_SOURCE_INTERNAL_H */ +#endif /* BABELTRACE_LIB_GRAPH_COMPONENT_SOURCE_H */ diff --git a/src/lib/graph/component.h b/src/lib/graph/component.h index 401cc385..dbe1f1ff 100644 --- a/src/lib/graph/component.h +++ b/src/lib/graph/component.h @@ -5,8 +5,8 @@ * Copyright 2015 Jérémie Galarneau */ -#ifndef BABELTRACE_GRAPH_COMPONENT_INTERNAL_H -#define BABELTRACE_GRAPH_COMPONENT_INTERNAL_H +#ifndef BABELTRACE_LIB_GRAPH_COMPONENT_H +#define BABELTRACE_LIB_GRAPH_COMPONENT_H #include #include @@ -109,4 +109,4 @@ void bt_component_add_destroy_listener(struct bt_component *component, void bt_component_remove_destroy_listener(struct bt_component *component, bt_component_destroy_listener_func func, void *data); -#endif /* BABELTRACE_GRAPH_COMPONENT_INTERNAL_H */ +#endif /* BABELTRACE_LIB_GRAPH_COMPONENT_H */ diff --git a/src/lib/graph/connection.h b/src/lib/graph/connection.h index cc512e1f..18c586dd 100644 --- a/src/lib/graph/connection.h +++ b/src/lib/graph/connection.h @@ -5,8 +5,8 @@ * Copyright 2017 Jérémie Galarneau */ -#ifndef BABELTRACE_GRAPH_CONNECTION_INTERNAL_H -#define BABELTRACE_GRAPH_CONNECTION_INTERNAL_H +#ifndef BABELTRACE_LIB_GRAPH_CONNECTION_H +#define BABELTRACE_LIB_GRAPH_CONNECTION_H #include #include "lib/object.h" @@ -60,4 +60,4 @@ struct bt_graph *bt_connection_borrow_graph(struct bt_connection *conn) return (void *) conn->base.parent; } -#endif /* BABELTRACE_GRAPH_CONNECTION_INTERNAL_H */ +#endif /* BABELTRACE_LIB_GRAPH_CONNECTION_H */ diff --git a/src/lib/graph/graph.h b/src/lib/graph/graph.h index 01dfaec6..efc96991 100644 --- a/src/lib/graph/graph.h +++ b/src/lib/graph/graph.h @@ -5,8 +5,8 @@ * Copyright 2017 Jérémie Galarneau */ -#ifndef BABELTRACE_GRAPH_GRAPH_INTERNAL_H -#define BABELTRACE_GRAPH_GRAPH_INTERNAL_H +#ifndef BABELTRACE_LIB_GRAPH_GRAPH_H +#define BABELTRACE_LIB_GRAPH_GRAPH_H /* Protection: this file uses BT_LIB_LOG*() macros directly */ #ifndef BT_LIB_LOG_SUPPORTED @@ -172,4 +172,4 @@ void bt_graph_make_faulty(struct bt_graph *graph) BT_LIB_LOGI("Set graph's state to faulty: %![graph-]+g", graph); } -#endif /* BABELTRACE_GRAPH_GRAPH_INTERNAL_H */ +#endif /* BABELTRACE_LIB_GRAPH_GRAPH_H */ diff --git a/src/lib/graph/interrupter.h b/src/lib/graph/interrupter.h index 72b93288..fa533201 100644 --- a/src/lib/graph/interrupter.h +++ b/src/lib/graph/interrupter.h @@ -4,8 +4,8 @@ * Copyright (c) 2019 Philippe Proulx */ -#ifndef BABELTRACE_GRAPH_INTERRUPTER_INTERNAL_H -#define BABELTRACE_GRAPH_INTERRUPTER_INTERNAL_H +#ifndef BABELTRACE_LIB_GRAPH_INTERRUPTER_H +#define BABELTRACE_LIB_GRAPH_INTERRUPTER_H #include @@ -40,4 +40,4 @@ end: return is_set; } -#endif /* BABELTRACE_GRAPH_INTERRUPTER_INTERNAL_H */ +#endif /* BABELTRACE_LIB_GRAPH_INTERRUPTER_H */ diff --git a/src/lib/graph/iterator.h b/src/lib/graph/iterator.h index e508dc2b..5c7ea912 100644 --- a/src/lib/graph/iterator.h +++ b/src/lib/graph/iterator.h @@ -5,8 +5,8 @@ * Copyright 2015 Jérémie Galarneau */ -#ifndef BABELTRACE_GRAPH_MESSAGE_ITERATOR_INTERNAL_H -#define BABELTRACE_GRAPH_MESSAGE_ITERATOR_INTERNAL_H +#ifndef BABELTRACE_LIB_GRAPH_ITERATOR_H +#define BABELTRACE_LIB_GRAPH_ITERATOR_H #include "common/macros.h" #include "lib/object.h" @@ -189,4 +189,4 @@ const char *bt_message_iterator_state_string( } }; -#endif /* BABELTRACE_GRAPH_MESSAGE_ITERATOR_INTERNAL_H */ +#endif /* BABELTRACE_LIB_GRAPH_ITERATOR_H */ diff --git a/src/lib/graph/message-iterator-class.h b/src/lib/graph/message-iterator-class.h index 0606aa72..d8625d76 100644 --- a/src/lib/graph/message-iterator-class.h +++ b/src/lib/graph/message-iterator-class.h @@ -5,8 +5,8 @@ * Copyright 2015 Jérémie Galarneau */ -#ifndef BABELTRACE_GRAPH_MESSAGE_ITERATOR_CLASS_INTERNAL_H -#define BABELTRACE_GRAPH_MESSAGE_ITERATOR_CLASS_INTERNAL_H +#ifndef BABELTRACE_LIB_GRAPH_MESSAGE_ITERATOR_CLASS_H +#define BABELTRACE_LIB_GRAPH_MESSAGE_ITERATOR_CLASS_H #include #include @@ -38,4 +38,4 @@ void _bt_message_iterator_class_freeze( # define bt_message_iterator_class_freeze(_cls) #endif -#endif /* BABELTRACE_GRAPH_MESSAGE_ITERATOR_CLASS_INTERNAL_H */ +#endif /* BABELTRACE_LIB_GRAPH_MESSAGE_ITERATOR_CLASS_H */ diff --git a/src/lib/graph/message/discarded-items.h b/src/lib/graph/message/discarded-items.h index fe3416b1..5809a41d 100644 --- a/src/lib/graph/message/discarded-items.h +++ b/src/lib/graph/message/discarded-items.h @@ -4,8 +4,8 @@ * Copyright 2019 Philippe Proulx */ -#ifndef BABELTRACE_GRAPH_MESSAGE_DISCARDED_ITEMS_INTERNAL_H -#define BABELTRACE_GRAPH_MESSAGE_DISCARDED_ITEMS_INTERNAL_H +#ifndef BABELTRACE_LIB_GRAPH_MESSAGE_DISCARDED_ITEMS_H +#define BABELTRACE_LIB_GRAPH_MESSAGE_DISCARDED_ITEMS_H #include #include "lib/trace-ir/clock-snapshot.h" @@ -23,4 +23,4 @@ struct bt_message_discarded_items { struct bt_property_uint count; }; -#endif /* BABELTRACE_GRAPH_MESSAGE_DISCARDED_ITEMS_INTERNAL_H */ +#endif /* BABELTRACE_LIB_GRAPH_MESSAGE_DISCARDED_ITEMS_H */ diff --git a/src/lib/graph/message/event.h b/src/lib/graph/message/event.h index 98d4acf1..68cf1e7f 100644 --- a/src/lib/graph/message/event.h +++ b/src/lib/graph/message/event.h @@ -5,8 +5,8 @@ * Copyright 2016 Jérémie Galarneau */ -#ifndef BABELTRACE_GRAPH_MESSAGE_EVENT_INTERNAL_H -#define BABELTRACE_GRAPH_MESSAGE_EVENT_INTERNAL_H +#ifndef BABELTRACE_LIB_GRAPH_MESSAGE_EVENT_H +#define BABELTRACE_LIB_GRAPH_MESSAGE_EVENT_H #include "compat/compiler.h" #include @@ -34,4 +34,4 @@ void bt_message_event_destroy(struct bt_message *msg); } #endif -#endif /* BABELTRACE_GRAPH_MESSAGE_EVENT_INTERNAL_H */ +#endif /* BABELTRACE_LIB_GRAPH_MESSAGE_EVENT_H */ diff --git a/src/lib/graph/message/message-iterator-inactivity.h b/src/lib/graph/message/message-iterator-inactivity.h index 7cd1a7de..28cf7a2b 100644 --- a/src/lib/graph/message/message-iterator-inactivity.h +++ b/src/lib/graph/message/message-iterator-inactivity.h @@ -4,8 +4,8 @@ * Copyright 2017-2018 Philippe Proulx */ -#ifndef BABELTRACE_GRAPH_MESSAGE_MESSAGE_ITERATOR_INACTIVITY_INTERNAL_H -#define BABELTRACE_GRAPH_MESSAGE_MESSAGE_ITERATOR_INACTIVITY_INTERNAL_H +#ifndef BABELTRACE_LIB_GRAPH_MESSAGE_MESSAGE_ITERATOR_INACTIVITY_H +#define BABELTRACE_LIB_GRAPH_MESSAGE_MESSAGE_ITERATOR_INACTIVITY_H #include #include "lib/trace-ir/clock-snapshot.h" @@ -16,4 +16,4 @@ struct bt_message_message_iterator_inactivity { struct bt_clock_snapshot *cs; }; -#endif /* BABELTRACE_GRAPH_MESSAGE_MESSAGE_ITERATOR_INACTIVITY_INTERNAL_H */ +#endif /* BABELTRACE_LIB_GRAPH_MESSAGE_MESSAGE_ITERATOR_INACTIVITY_H */ diff --git a/src/lib/graph/message/message.h b/src/lib/graph/message/message.h index d6ba358a..3f749694 100644 --- a/src/lib/graph/message/message.h +++ b/src/lib/graph/message/message.h @@ -5,8 +5,8 @@ * Copyright 2015 Jérémie Galarneau */ -#ifndef BABELTRACE_GRAPH_MESSAGE_MESSAGE_INTERNAL_H -#define BABELTRACE_GRAPH_MESSAGE_MESSAGE_INTERNAL_H +#ifndef BABELTRACE_LIB_GRAPH_MESSAGE_MESSAGE_H +#define BABELTRACE_LIB_GRAPH_MESSAGE_MESSAGE_H /* Protection: this file uses BT_LIB_LOG*() macros directly */ #ifndef BT_LIB_LOG_SUPPORTED @@ -92,4 +92,4 @@ void bt_message_unlink_graph(struct bt_message *msg); # define bt_message_freeze(_x) #endif /* BT_DEV_MODE */ -#endif /* BABELTRACE_GRAPH_MESSAGE_MESSAGE_INTERNAL_H */ +#endif /* BABELTRACE_LIB_GRAPH_MESSAGE_MESSAGE_H */ diff --git a/src/lib/graph/message/packet.h b/src/lib/graph/message/packet.h index 632aaeea..451546b7 100644 --- a/src/lib/graph/message/packet.h +++ b/src/lib/graph/message/packet.h @@ -5,8 +5,8 @@ * Copyright 2016 Jérémie Galarneau */ -#ifndef BABELTRACE_GRAPH_MESSAGE_PACKET_INTERNAL_H -#define BABELTRACE_GRAPH_MESSAGE_PACKET_INTERNAL_H +#ifndef BABELTRACE_LIB_GRAPH_MESSAGE_PACKET_H +#define BABELTRACE_LIB_GRAPH_MESSAGE_PACKET_H #include "compat/compiler.h" #include @@ -30,4 +30,4 @@ struct bt_message *bt_message_packet_end_new(struct bt_graph *graph); void bt_message_packet_end_recycle(struct bt_message *msg); -#endif /* BABELTRACE_GRAPH_MESSAGE_PACKET_INTERNAL_H */ +#endif /* BABELTRACE_LIB_GRAPH_MESSAGE_PACKET_H */ diff --git a/src/lib/graph/message/stream.h b/src/lib/graph/message/stream.h index c90476db..46af8291 100644 --- a/src/lib/graph/message/stream.h +++ b/src/lib/graph/message/stream.h @@ -5,8 +5,8 @@ * Copyright 2016 Jérémie Galarneau */ -#ifndef BABELTRACE_GRAPH_MESSAGE_STREAM_INTERNAL_H -#define BABELTRACE_GRAPH_MESSAGE_STREAM_INTERNAL_H +#ifndef BABELTRACE_LIB_GRAPH_MESSAGE_STREAM_H +#define BABELTRACE_LIB_GRAPH_MESSAGE_STREAM_H #include @@ -38,4 +38,4 @@ const char *bt_message_stream_clock_snapshot_state_string( } -#endif /* BABELTRACE_GRAPH_MESSAGE_STREAM_INTERNAL_H */ +#endif /* BABELTRACE_LIB_GRAPH_MESSAGE_STREAM_H */ diff --git a/src/lib/graph/port.h b/src/lib/graph/port.h index 4a84db1c..7032e52a 100644 --- a/src/lib/graph/port.h +++ b/src/lib/graph/port.h @@ -5,8 +5,8 @@ * Copyright 2017 Jérémie Galarneau */ -#ifndef BABELTRACE_GRAPH_PORT_INTERNAL_H -#define BABELTRACE_GRAPH_PORT_INTERNAL_H +#ifndef BABELTRACE_LIB_GRAPH_PORT_H +#define BABELTRACE_LIB_GRAPH_PORT_H #include @@ -46,4 +46,4 @@ const char *bt_port_type_string(enum bt_port_type port_type) } } -#endif /* BABELTRACE_GRAPH_PORT_INTERNAL_H */ +#endif /* BABELTRACE_LIB_GRAPH_PORT_H */ diff --git a/src/lib/graph/query-executor.h b/src/lib/graph/query-executor.h index d14de9a1..eed1da31 100644 --- a/src/lib/graph/query-executor.h +++ b/src/lib/graph/query-executor.h @@ -4,8 +4,8 @@ * Copyright 2017-2018 Philippe Proulx */ -#ifndef BABELTRACE_GRAPH_QUERY_EXECUTOR_INTERNAL_H -#define BABELTRACE_GRAPH_QUERY_EXECUTOR_INTERNAL_H +#ifndef BABELTRACE_LIB_GRAPH_QUERY_EXECUTOR_H +#define BABELTRACE_LIB_GRAPH_QUERY_EXECUTOR_H #include @@ -44,4 +44,4 @@ struct bt_query_executor { enum bt_logging_level log_level; }; -#endif /* BABELTRACE_GRAPH_QUERY_EXECUTOR_INTERNAL_H */ +#endif /* BABELTRACE_LIB_GRAPH_QUERY_EXECUTOR_H */ diff --git a/src/lib/integer-range-set.h b/src/lib/integer-range-set.h index c53a7849..7dcc8557 100644 --- a/src/lib/integer-range-set.h +++ b/src/lib/integer-range-set.h @@ -7,8 +7,8 @@ * http://www.efficios.com/ctf */ -#ifndef BABELTRACE_INTEGER_RANGE_SET_INTERNAL_H -#define BABELTRACE_INTEGER_RANGE_SET_INTERNAL_H +#ifndef BABELTRACE_LIB_INTEGER_RANGE_SET_H +#define BABELTRACE_LIB_INTEGER_RANGE_SET_H #include #include @@ -53,4 +53,4 @@ bool bt_integer_range_set_unsigned_has_overlaps( bool bt_integer_range_set_signed_has_overlaps( const struct bt_integer_range_set *range_set); -#endif /* BABELTRACE_INTEGER_RANGE_SET_INTERNAL_H */ +#endif /* BABELTRACE_LIB_INTEGER_RANGE_SET_H */ diff --git a/src/lib/logging.h b/src/lib/logging.h index aa4fc5e5..669b41bc 100644 --- a/src/lib/logging.h +++ b/src/lib/logging.h @@ -4,8 +4,8 @@ * Copyright 2017-2018 Philippe Proulx */ -#ifndef BABELTRACE_LIB_LOGGING_INTERNAL_H -#define BABELTRACE_LIB_LOGGING_INTERNAL_H +#ifndef BABELTRACE_LIB_LOGGING_H +#define BABELTRACE_LIB_LOGGING_H #include @@ -86,4 +86,4 @@ void bt_lib_maybe_log_and_append_cause(const char *func, const char *file, #define BT_LIB_LOG_SUPPORTED -#endif /* BABELTRACE_LIB_LOGGING_INTERNAL_H */ +#endif /* BABELTRACE_LIB_LOGGING_H */ diff --git a/src/lib/object-pool.h b/src/lib/object-pool.h index e0501daf..c1558de1 100644 --- a/src/lib/object-pool.h +++ b/src/lib/object-pool.h @@ -4,8 +4,8 @@ * Copyright (c) 2018 Philippe Proulx */ -#ifndef BABELTRACE_OBJECT_POOL_INTERNAL_H -#define BABELTRACE_OBJECT_POOL_INTERNAL_H +#ifndef BABELTRACE_LIB_OBJECT_POOL_H +#define BABELTRACE_LIB_OBJECT_POOL_H /* * This is a generic object pool to avoid memory allocation/deallocation @@ -151,4 +151,4 @@ void bt_object_pool_recycle_object(struct bt_object_pool *pool, void *obj) pool, pool->size, pool->objects->len, obj); } -#endif /* BABELTRACE_OBJECT_POOL_INTERNAL_H */ +#endif /* BABELTRACE_LIB_OBJECT_POOL_H */ diff --git a/src/lib/object.h b/src/lib/object.h index 6531394a..94b6e807 100644 --- a/src/lib/object.h +++ b/src/lib/object.h @@ -5,8 +5,8 @@ * Copyright 2015 Jérémie Galarneau */ -#ifndef BABELTRACE_OBJECT_INTERNAL_H -#define BABELTRACE_OBJECT_INTERNAL_H +#ifndef BABELTRACE_LIB_OBJECT_H +#define BABELTRACE_LIB_OBJECT_H #include "common/assert.h" #include @@ -347,4 +347,4 @@ void bt_object_put_ref(const void *ptr) (_var_src) = NULL; \ } while (0) -#endif /* BABELTRACE_OBJECT_INTERNAL_H */ +#endif /* BABELTRACE_LIB_OBJECT_H */ diff --git a/src/lib/plugin/plugin-so.h b/src/lib/plugin/plugin-so.h index 7d663e20..525fe424 100644 --- a/src/lib/plugin/plugin-so.h +++ b/src/lib/plugin/plugin-so.h @@ -5,8 +5,8 @@ * Copyright 2016 Jérémie Galarneau */ -#ifndef BABELTRACE_PLUGIN_PLUGIN_SO_INTERNAL_H -#define BABELTRACE_PLUGIN_PLUGIN_SO_INTERNAL_H +#ifndef BABELTRACE_LIB_PLUGIN_PLUGIN_SO_H +#define BABELTRACE_LIB_PLUGIN_PLUGIN_SO_H #include #include @@ -45,4 +45,4 @@ int bt_plugin_so_create_all_from_static(bool fail_on_load_error, void bt_plugin_so_on_add_component_class(struct bt_plugin *plugin, struct bt_component_class *comp_class); -#endif /* BABELTRACE_PLUGIN_PLUGIN_SO_INTERNAL_H */ +#endif /* BABELTRACE_LIB_PLUGIN_PLUGIN_SO_H */ diff --git a/src/lib/plugin/plugin.h b/src/lib/plugin/plugin.h index 60db3aaa..a186e022 100644 --- a/src/lib/plugin/plugin.h +++ b/src/lib/plugin/plugin.h @@ -5,8 +5,8 @@ * Copyright 2015 Jérémie Galarneau */ -#ifndef BABELTRACE_PLUGIN_PLUGIN_INTERNAL_H -#define BABELTRACE_PLUGIN_PLUGIN_INTERNAL_H +#ifndef BABELTRACE_LIB_PLUGIN_PLUGIN_H +#define BABELTRACE_LIB_PLUGIN_PLUGIN_H #include "common/common.h" #include "lib/graph/component-class.h" @@ -446,4 +446,4 @@ end: return; } -#endif /* BABELTRACE_PLUGIN_PLUGIN_INTERNAL_H */ +#endif /* BABELTRACE_LIB_PLUGIN_PLUGIN_H */ diff --git a/src/lib/property.h b/src/lib/property.h index 685568c7..93f2b270 100644 --- a/src/lib/property.h +++ b/src/lib/property.h @@ -4,8 +4,8 @@ * Copyright (c) 2018 Philippe Proulx */ -#ifndef BABELTRACE_PROPERTY_INTERNAL_H -#define BABELTRACE_PROPERTY_INTERNAL_H +#ifndef BABELTRACE_LIB_PROPERTY_H +#define BABELTRACE_LIB_PROPERTY_H #include "common/assert.h" #include @@ -38,4 +38,4 @@ void bt_property_uint_init(struct bt_property_uint *prop, prop->value = value; } -#endif /* BABELTRACE_PROPERTY_INTERNAL_H */ +#endif /* BABELTRACE_LIB_PROPERTY_H */ diff --git a/src/lib/trace-ir/attributes.h b/src/lib/trace-ir/attributes.h index 2920f383..ab7aa6e3 100644 --- a/src/lib/trace-ir/attributes.h +++ b/src/lib/trace-ir/attributes.h @@ -5,8 +5,8 @@ * Copyright (c) 2015 EfficiOS Inc. and Linux Foundation */ -#ifndef BABELTRACE_TRACE_IR_ATTRIBUTES_H -#define BABELTRACE_TRACE_IR_ATTRIBUTES_H +#ifndef BABELTRACE_LIB_TRACE_IR_ATTRIBUTES_H +#define BABELTRACE_LIB_TRACE_IR_ATTRIBUTES_H #ifdef __cplusplus extern "C" { @@ -40,4 +40,4 @@ int bt_attributes_freeze(const struct bt_value *attr_obj); } #endif -#endif /* BABELTRACE_TRACE_IR_ATTRIBUTES_H */ +#endif /* BABELTRACE_LIB_TRACE_IR_ATTRIBUTES_H */ diff --git a/src/lib/trace-ir/clock-class.h b/src/lib/trace-ir/clock-class.h index 54eeb0c8..50df464b 100644 --- a/src/lib/trace-ir/clock-class.h +++ b/src/lib/trace-ir/clock-class.h @@ -5,8 +5,8 @@ * Copyright 2013, 2014 Jérémie Galarneau */ -#ifndef BABELTRACE_TRACE_IR_CLOCK_CLASS_INTERNAL_H -#define BABELTRACE_TRACE_IR_CLOCK_CLASS_INTERNAL_H +#ifndef BABELTRACE_LIB_TRACE_IR_CLOCK_CLASS_H +#define BABELTRACE_LIB_TRACE_IR_CLOCK_CLASS_H #include #include "lib/object.h" @@ -89,4 +89,4 @@ int bt_clock_class_clock_value_from_ns_from_origin( raw_value) ? BT_FUNC_STATUS_OVERFLOW_ERROR : BT_FUNC_STATUS_OK; } -#endif /* BABELTRACE_TRACE_IR_CLOCK_CLASS_INTERNAL_H */ +#endif /* BABELTRACE_LIB_TRACE_IR_CLOCK_CLASS_H */ diff --git a/src/lib/trace-ir/clock-snapshot.h b/src/lib/trace-ir/clock-snapshot.h index 860b4200..49dcd84d 100644 --- a/src/lib/trace-ir/clock-snapshot.h +++ b/src/lib/trace-ir/clock-snapshot.h @@ -4,8 +4,8 @@ * Copyright 2017-2018 Philippe Proulx */ -#ifndef BABELTRACE_TRACE_IR_CLOCK_SNAPSHOT_INTERNAL_H -#define BABELTRACE_TRACE_IR_CLOCK_SNAPSHOT_INTERNAL_H +#ifndef BABELTRACE_LIB_TRACE_IR_CLOCK_SNAPSHOT_H +#define BABELTRACE_LIB_TRACE_IR_CLOCK_SNAPSHOT_H #include "lib/object.h" #include @@ -68,4 +68,4 @@ struct bt_clock_snapshot *bt_clock_snapshot_create( void bt_clock_snapshot_recycle(struct bt_clock_snapshot *clock_snapshot); -#endif /* BABELTRACE_TRACE_IR_CLOCK_SNAPSHOT_INTERNAL_H */ +#endif /* BABELTRACE_LIB_TRACE_IR_CLOCK_SNAPSHOT_H */ diff --git a/src/lib/trace-ir/event-class.h b/src/lib/trace-ir/event-class.h index ccbc0009..5e1d5071 100644 --- a/src/lib/trace-ir/event-class.h +++ b/src/lib/trace-ir/event-class.h @@ -5,8 +5,8 @@ * Copyright 2013, 2014 Jérémie Galarneau */ -#ifndef BABELTRACE_TRACE_IR_EVENT_CLASS_INTERNAL_H -#define BABELTRACE_TRACE_IR_EVENT_CLASS_INTERNAL_H +#ifndef BABELTRACE_LIB_TRACE_IR_EVENT_CLASS_H +#define BABELTRACE_LIB_TRACE_IR_EVENT_CLASS_H #include #include @@ -58,4 +58,4 @@ struct bt_stream_class *bt_event_class_borrow_stream_class_inline( return (void *) bt_object_borrow_parent(&event_class->base); } -#endif /* BABELTRACE_TRACE_IR_EVENT_CLASS_INTERNAL_H */ +#endif /* BABELTRACE_LIB_TRACE_IR_EVENT_CLASS_H */ diff --git a/src/lib/trace-ir/event.h b/src/lib/trace-ir/event.h index 53130c4b..852113d4 100644 --- a/src/lib/trace-ir/event.h +++ b/src/lib/trace-ir/event.h @@ -5,8 +5,8 @@ * Copyright 2013, 2014 Jérémie Galarneau */ -#ifndef BABELTRACE_TRACE_IR_EVENT_INTERNAL_H -#define BABELTRACE_TRACE_IR_EVENT_INTERNAL_H +#ifndef BABELTRACE_LIB_TRACE_IR_EVENT_H +#define BABELTRACE_LIB_TRACE_IR_EVENT_H /* Protection: this file uses BT_LIB_LOG*() macros directly */ #ifndef BT_LIB_LOG_SUPPORTED @@ -148,4 +148,4 @@ void bt_event_recycle(struct bt_event *event) bt_object_put_ref_no_null_check(&event_class->base); } -#endif /* BABELTRACE_TRACE_IR_EVENT_INTERNAL_H */ +#endif /* BABELTRACE_LIB_TRACE_IR_EVENT_H */ diff --git a/src/lib/trace-ir/field-class.h b/src/lib/trace-ir/field-class.h index 289f3b09..12f42749 100644 --- a/src/lib/trace-ir/field-class.h +++ b/src/lib/trace-ir/field-class.h @@ -5,8 +5,8 @@ * Copyright 2013, 2014 Jérémie Galarneau */ -#ifndef BABELTRACE_TRACE_IR_FIELD_CLASSES_INTERNAL_H -#define BABELTRACE_TRACE_IR_FIELD_CLASSES_INTERNAL_H +#ifndef BABELTRACE_LIB_TRACE_IR_FIELD_CLASS_H +#define BABELTRACE_LIB_TRACE_IR_FIELD_CLASS_H #include #include @@ -247,4 +247,4 @@ void _bt_named_field_class_freeze(const struct bt_named_field_class *named_fc); void bt_field_class_make_part_of_trace_class( const struct bt_field_class *field_class); -#endif /* BABELTRACE_TRACE_IR_FIELD_CLASSES_INTERNAL_H */ +#endif /* BABELTRACE_LIB_TRACE_IR_FIELD_CLASS_H */ diff --git a/src/lib/trace-ir/field-path.h b/src/lib/trace-ir/field-path.h index 79e9d8f1..41e523cc 100644 --- a/src/lib/trace-ir/field-path.h +++ b/src/lib/trace-ir/field-path.h @@ -7,8 +7,8 @@ * http://www.efficios.com/ctf */ -#ifndef BABELTRACE_TRACE_IR_FIELD_PATH_INTERNAL -#define BABELTRACE_TRACE_IR_FIELD_PATH_INTERNAL +#ifndef BABELTRACE_LIB_TRACE_IR_FIELD_PATH_H +#define BABELTRACE_LIB_TRACE_IR_FIELD_PATH_H #include "lib/object.h" #include @@ -71,4 +71,4 @@ const char *bt_field_path_item_type_string(enum bt_field_path_item_type type) } }; -#endif /* BABELTRACE_TRACE_IR_FIELD_PATH_INTERNAL */ +#endif /* BABELTRACE_LIB_TRACE_IR_FIELD_PATH_H */ diff --git a/src/lib/trace-ir/field-wrapper.h b/src/lib/trace-ir/field-wrapper.h index c80d6a30..0afcfb5e 100644 --- a/src/lib/trace-ir/field-wrapper.h +++ b/src/lib/trace-ir/field-wrapper.h @@ -4,8 +4,8 @@ * Copyright 2018 Philippe Proulx */ -#ifndef BABELTRACE_TRACE_IR_FIELD_WRAPPER_INTERNAL_H -#define BABELTRACE_TRACE_IR_FIELD_WRAPPER_INTERNAL_H +#ifndef BABELTRACE_LIB_TRACE_IR_FIELD_WRAPPER_H +#define BABELTRACE_LIB_TRACE_IR_FIELD_WRAPPER_H #include "lib/object-pool.h" #include "lib/object.h" @@ -26,4 +26,4 @@ void bt_field_wrapper_destroy(struct bt_field_wrapper *field); struct bt_field_wrapper *bt_field_wrapper_create( struct bt_object_pool *pool, struct bt_field_class *fc); -#endif /* BABELTRACE_TRACE_IR_FIELD_WRAPPER_INTERNAL_H */ +#endif /* BABELTRACE_LIB_TRACE_IR_FIELD_WRAPPER_H */ diff --git a/src/lib/trace-ir/field.h b/src/lib/trace-ir/field.h index 87446b26..bf90380a 100644 --- a/src/lib/trace-ir/field.h +++ b/src/lib/trace-ir/field.h @@ -5,8 +5,8 @@ * Copyright 2013, 2014 Jérémie Galarneau */ -#ifndef BABELTRACE_TRACE_IR_FIELDS_INTERNAL_H -#define BABELTRACE_TRACE_IR_FIELDS_INTERNAL_H +#ifndef BABELTRACE_LIB_TRACE_IR_FIELD_H +#define BABELTRACE_LIB_TRACE_IR_FIELD_H #include "lib/object.h" #include @@ -161,4 +161,4 @@ struct bt_field *bt_field_create(struct bt_field_class *class); void bt_field_destroy(struct bt_field *field); -#endif /* BABELTRACE_TRACE_IR_FIELDS_INTERNAL_H */ +#endif /* BABELTRACE_LIB_TRACE_IR_FIELD_H */ diff --git a/src/lib/trace-ir/packet.h b/src/lib/trace-ir/packet.h index c22e7c9f..e5292fd4 100644 --- a/src/lib/trace-ir/packet.h +++ b/src/lib/trace-ir/packet.h @@ -4,8 +4,8 @@ * Copyright 2016-2018 Philippe Proulx */ -#ifndef BABELTRACE_TRACE_IR_PACKET_INTERNAL_H -#define BABELTRACE_TRACE_IR_PACKET_INTERNAL_H +#ifndef BABELTRACE_LIB_TRACE_IR_PACKET_H +#define BABELTRACE_LIB_TRACE_IR_PACKET_H #include #include @@ -37,4 +37,4 @@ void bt_packet_recycle(struct bt_packet *packet); void bt_packet_destroy(struct bt_packet *packet); -#endif /* BABELTRACE_TRACE_IR_PACKET_INTERNAL_H */ +#endif /* BABELTRACE_LIB_TRACE_IR_PACKET_H */ diff --git a/src/lib/trace-ir/resolve-field-path.h b/src/lib/trace-ir/resolve-field-path.h index a0df1cd5..1f8cced4 100644 --- a/src/lib/trace-ir/resolve-field-path.h +++ b/src/lib/trace-ir/resolve-field-path.h @@ -7,8 +7,8 @@ * http://www.efficios.com/ctf */ -#ifndef BABELTRACE_TRACE_IR_RESOLVE_FIELD_PATH_INTERNAL -#define BABELTRACE_TRACE_IR_RESOLVE_FIELD_PATH_INTERNAL +#ifndef BABELTRACE_LIB_TRACE_IR_RESOLVE_FIELD_PATH_H +#define BABELTRACE_LIB_TRACE_IR_RESOLVE_FIELD_PATH_H #include #include @@ -25,4 +25,4 @@ int bt_resolve_field_paths(struct bt_field_class *field_class, struct bt_resolve_field_path_context *ctx, const char *api_func); -#endif /* BABELTRACE_TRACE_IR_RESOLVE_FIELD_PATH_INTERNAL */ +#endif /* BABELTRACE_LIB_TRACE_IR_RESOLVE_FIELD_PATH_H */ diff --git a/src/lib/trace-ir/stream-class.h b/src/lib/trace-ir/stream-class.h index a1d9ab60..7ebb1d02 100644 --- a/src/lib/trace-ir/stream-class.h +++ b/src/lib/trace-ir/stream-class.h @@ -5,8 +5,8 @@ * Copyright 2013, 2014 Jérémie Galarneau */ -#ifndef BABELTRACE_TRACE_IR_STREAM_CLASS_INTERNAL_H -#define BABELTRACE_TRACE_IR_STREAM_CLASS_INTERNAL_H +#ifndef BABELTRACE_LIB_TRACE_IR_STREAM_CLASS_H +#define BABELTRACE_LIB_TRACE_IR_STREAM_CLASS_H #include "common/assert.h" #include @@ -64,4 +64,4 @@ struct bt_trace_class *bt_stream_class_borrow_trace_class_inline( return (void *) bt_object_borrow_parent(&stream_class->base); } -#endif /* BABELTRACE_TRACE_IR_STREAM_CLASS_INTERNAL_H */ +#endif /* BABELTRACE_LIB_TRACE_IR_STREAM_CLASS_H */ diff --git a/src/lib/trace-ir/stream.h b/src/lib/trace-ir/stream.h index 89e236a6..250f7948 100644 --- a/src/lib/trace-ir/stream.h +++ b/src/lib/trace-ir/stream.h @@ -5,8 +5,8 @@ * Copyright 2013, 2014 Jérémie Galarneau */ -#ifndef BABELTRACE_TRACE_IR_STREAM_INTERNAL_H -#define BABELTRACE_TRACE_IR_STREAM_INTERNAL_H +#ifndef BABELTRACE_LIB_TRACE_IR_STREAM_H +#define BABELTRACE_LIB_TRACE_IR_STREAM_H #include #include "lib/object.h" @@ -51,4 +51,4 @@ struct bt_trace *bt_stream_borrow_trace_inline(const struct bt_stream *stream) return (void *) bt_object_borrow_parent(&stream->base); } -#endif /* BABELTRACE_TRACE_IR_STREAM_INTERNAL_H */ +#endif /* BABELTRACE_LIB_TRACE_IR_STREAM_H */ diff --git a/src/lib/trace-ir/trace-class.h b/src/lib/trace-ir/trace-class.h index 8df87e97..3484ffc2 100644 --- a/src/lib/trace-ir/trace-class.h +++ b/src/lib/trace-ir/trace-class.h @@ -5,8 +5,8 @@ * Copyright 2014 Jérémie Galarneau */ -#ifndef BABELTRACE_TRACE_IR_TRACE_CLASS_INTERNAL_H -#define BABELTRACE_TRACE_IR_TRACE_CLASS_INTERNAL_H +#ifndef BABELTRACE_LIB_TRACE_IR_TRACE_CLASS_H +#define BABELTRACE_LIB_TRACE_IR_TRACE_CLASS_H #include #include @@ -40,4 +40,4 @@ void _bt_trace_class_freeze(const struct bt_trace_class *trace_class); # define bt_trace_class_freeze(_tc) #endif -#endif /* BABELTRACE_TRACE_IR_TRACE_CLASS_INTERNAL_H */ +#endif /* BABELTRACE_LIB_TRACE_IR_TRACE_CLASS_H */ diff --git a/src/lib/trace-ir/trace.h b/src/lib/trace-ir/trace.h index ed0df692..4ab18f1b 100644 --- a/src/lib/trace-ir/trace.h +++ b/src/lib/trace-ir/trace.h @@ -5,8 +5,8 @@ * Copyright 2014 Jérémie Galarneau */ -#ifndef BABELTRACE_TRACE_IR_TRACE_INTERNAL_H -#define BABELTRACE_TRACE_IR_TRACE_INTERNAL_H +#ifndef BABELTRACE_LIB_TRACE_IR_TRACE_H +#define BABELTRACE_LIB_TRACE_IR_TRACE_H #include #include @@ -69,4 +69,4 @@ void bt_trace_add_stream(struct bt_trace *trace, struct bt_stream *stream); uint64_t bt_trace_get_automatic_stream_id(const struct bt_trace *trace, const struct bt_stream_class *stream_class); -#endif /* BABELTRACE_TRACE_IR_TRACE_INTERNAL_H */ +#endif /* BABELTRACE_LIB_TRACE_IR_TRACE_H */ diff --git a/src/lib/trace-ir/utils.h b/src/lib/trace-ir/utils.h index f9c2f6e3..8943ee24 100644 --- a/src/lib/trace-ir/utils.h +++ b/src/lib/trace-ir/utils.h @@ -4,8 +4,8 @@ * Copyright 2017-2018 Philippe Proulx */ -#ifndef BABELTRACE_TRACE_IR_UTILS_INTERNAL_H -#define BABELTRACE_TRACE_IR_UTILS_INTERNAL_H +#ifndef BABELTRACE_LIB_TRACE_IR_UTILS_H +#define BABELTRACE_LIB_TRACE_IR_UTILS_H #include #include @@ -155,4 +155,4 @@ bool bt_util_value_is_in_range_unsigned(unsigned int size, uint64_t value) return value <= max_value; } -#endif /* BABELTRACE_TRACE_IR_UTILS_INTERNAL_H */ +#endif /* BABELTRACE_LIB_TRACE_IR_UTILS_H */ diff --git a/src/lib/value.h b/src/lib/value.h index 34b7a40a..68cd907e 100644 --- a/src/lib/value.h +++ b/src/lib/value.h @@ -4,8 +4,8 @@ * Copyright (c) 2015-2018 Philippe Proulx */ -#ifndef BABELTRACE_VALUES_INTERNAL_H -#define BABELTRACE_VALUES_INTERNAL_H +#ifndef BABELTRACE_LIB_VALUE_H +#define BABELTRACE_LIB_VALUE_H #include #include @@ -59,4 +59,4 @@ void _bt_value_freeze(const struct bt_value *object); # define bt_value_freeze(_value) #endif /* BT_DEV_MODE */ -#endif /* BABELTRACE_VALUES_INTERNAL_H */ +#endif /* BABELTRACE_LIB_VALUE_H */ diff --git a/src/param-parse/param-parse.h b/src/param-parse/param-parse.h index 8ca0e3eb..d53b4177 100644 --- a/src/param-parse/param-parse.h +++ b/src/param-parse/param-parse.h @@ -4,8 +4,8 @@ * Copyright 2016-2019 Philippe Proulx */ -#ifndef SRC_PARAMS_PARSE_VALUE_PARSE_H -#define SRC_PARAMS_PARSE_VALUE_PARSE_H +#ifndef BABELTRACE_PARAM_PARSE_PARAM_PARSE_H +#define BABELTRACE_PARAM_PARSE_PARAM_PARSE_H #include @@ -15,4 +15,4 @@ bt_value *bt_param_parse(const char *arg, GString *ini_error); -#endif /* SRC_VALUE_PARSE_VALUE_PARSE_H */ +#endif /* BABELTRACE_PARAM_PARSE_PARAM_PARSE_H */ diff --git a/src/plugins/common/muxing/muxing.h b/src/plugins/common/muxing/muxing.h index d724f8a4..9f0e913e 100644 --- a/src/plugins/common/muxing/muxing.h +++ b/src/plugins/common/muxing/muxing.h @@ -4,8 +4,8 @@ * Copyright 2019 Francis Deslauriers */ -#ifndef BABELTRACE_PLUGIN_COMMON_MUXING_H -#define BABELTRACE_PLUGIN_COMMON_MUXING_H +#ifndef BABELTRACE_PLUGINS_COMMON_MUXING_MUXING_H +#define BABELTRACE_PLUGINS_COMMON_MUXING_MUXING_H #include #include "common/macros.h" @@ -14,4 +14,4 @@ BT_EXTERN_C int common_muxing_compare_messages(const bt_message *left_msg, const bt_message *right_msg); -#endif /* BABELTRACE_PLUGIN_COMMON_MUXING_H */ +#endif /* BABELTRACE_PLUGINS_COMMON_MUXING_MUXING_H */ diff --git a/src/plugins/common/param-validation/param-validation.h b/src/plugins/common/param-validation/param-validation.h index 40d57609..8361b593 100644 --- a/src/plugins/common/param-validation/param-validation.h +++ b/src/plugins/common/param-validation/param-validation.h @@ -3,6 +3,7 @@ * * Copyright 2019 EfficiOS Inc. */ + #ifndef BABELTRACE_PLUGINS_COMMON_PARAM_VALIDATION_PARAM_VALIDATION_H #define BABELTRACE_PLUGINS_COMMON_PARAM_VALIDATION_PARAM_VALIDATION_H diff --git a/src/plugins/ctf/common/src/bfcr/bfcr.hpp b/src/plugins/ctf/common/src/bfcr/bfcr.hpp index 984b695c..f43f2109 100644 --- a/src/plugins/ctf/common/src/bfcr/bfcr.hpp +++ b/src/plugins/ctf/common/src/bfcr/bfcr.hpp @@ -7,8 +7,8 @@ * Babeltrace - CTF binary field class reader (BFCR) */ -#ifndef CTF_BFCR_H -#define CTF_BFCR_H +#ifndef BABELTRACE_PLUGINS_CTF_COMMON_SRC_BFCR_BFCR_HPP +#define BABELTRACE_PLUGINS_CTF_COMMON_SRC_BFCR_BFCR_HPP #include #include @@ -355,4 +355,4 @@ size_t bt_bfcr_continue(struct bt_bfcr *bfcr, const uint8_t *buf, size_t sz, void bt_bfcr_set_unsigned_int_cb(struct bt_bfcr *bfcr, bt_bfcr_unsigned_int_cb_func cb); -#endif /* CTF_BFCR_H */ +#endif /* BABELTRACE_PLUGINS_CTF_COMMON_SRC_BFCR_BFCR_HPP */ diff --git a/src/plugins/ctf/common/src/clk-cls-cfg.hpp b/src/plugins/ctf/common/src/clk-cls-cfg.hpp index 0c3b52d7..e46b66e5 100644 --- a/src/plugins/ctf/common/src/clk-cls-cfg.hpp +++ b/src/plugins/ctf/common/src/clk-cls-cfg.hpp @@ -4,8 +4,8 @@ * Copyright (c) 2022 EfficiOS Inc. and Linux Foundation */ -#ifndef CTF_COMMON_SRC_CLK_CLS_CFG_HPP -#define CTF_COMMON_SRC_CLK_CLS_CFG_HPP +#ifndef BABELTRACE_PLUGINS_CTF_COMMON_SRC_CLK_CLS_CFG_HPP +#define BABELTRACE_PLUGINS_CTF_COMMON_SRC_CLK_CLS_CFG_HPP #include @@ -22,4 +22,4 @@ struct ClkClsCfg } /* namespace src */ } /* namespace ctf */ -#endif /* CTF_COMMON_SRC_CLK_CLS_CFG_HPP */ +#endif /* BABELTRACE_PLUGINS_CTF_COMMON_SRC_CLK_CLS_CFG_HPP */ diff --git a/src/plugins/ctf/common/src/metadata/tsdl/ast.hpp b/src/plugins/ctf/common/src/metadata/tsdl/ast.hpp index 597cb3a4..93bfe8bc 100644 --- a/src/plugins/ctf/common/src/metadata/tsdl/ast.hpp +++ b/src/plugins/ctf/common/src/metadata/tsdl/ast.hpp @@ -4,8 +4,8 @@ * Copyright 2011-2012 Mathieu Desnoyers */ -#ifndef _CTF_AST_H -#define _CTF_AST_H +#ifndef BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_AST_HPP +#define BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_AST_HPP #include @@ -608,4 +608,4 @@ end: return ret; } -#endif /* _CTF_AST_H */ +#endif /* BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_AST_HPP */ diff --git a/src/plugins/ctf/common/src/metadata/tsdl/ctf-meta-configure-ir-trace.hpp b/src/plugins/ctf/common/src/metadata/tsdl/ctf-meta-configure-ir-trace.hpp index 2adffb53..3ce3fa96 100644 --- a/src/plugins/ctf/common/src/metadata/tsdl/ctf-meta-configure-ir-trace.hpp +++ b/src/plugins/ctf/common/src/metadata/tsdl/ctf-meta-configure-ir-trace.hpp @@ -4,11 +4,11 @@ * Copyright 2019 Philippe Proulx */ -#ifndef _CTF_META_CONFIGURE_IR_TRACE_H -#define _CTF_META_CONFIGURE_IR_TRACE_H +#ifndef BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_CTF_META_CONFIGURE_IR_TRACE_HPP +#define BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_CTF_META_CONFIGURE_IR_TRACE_HPP #include "cpp-common/bt2/trace-ir.hpp" void ctf_trace_class_configure_ir_trace(struct ctf_trace_class *tc, bt2::Trace ir_trace); -#endif /* _CTF_META_CONFIGURE_IR_TRACE_H */ +#endif /* BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_CTF_META_CONFIGURE_IR_TRACE_HPP */ diff --git a/src/plugins/ctf/common/src/metadata/tsdl/ctf-meta-visitors.hpp b/src/plugins/ctf/common/src/metadata/tsdl/ctf-meta-visitors.hpp index 1a6f708f..0b2e5b09 100644 --- a/src/plugins/ctf/common/src/metadata/tsdl/ctf-meta-visitors.hpp +++ b/src/plugins/ctf/common/src/metadata/tsdl/ctf-meta-visitors.hpp @@ -4,8 +4,8 @@ * Copyright 2018 Philippe Proulx */ -#ifndef _CTF_META_VISITORS_H -#define _CTF_META_VISITORS_H +#ifndef BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_CTF_META_VISITORS_HPP +#define BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_CTF_META_VISITORS_HPP #include @@ -43,4 +43,4 @@ int ctf_trace_class_validate(struct ctf_trace_class *ctf_tc, const bt2c::Logger& void ctf_trace_class_warn_meaningless_header_fields(struct ctf_trace_class *ctf_tc, const bt2c::Logger& parentLogger); -#endif /* _CTF_META_VISITORS_H */ +#endif /* BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_CTF_META_VISITORS_HPP */ diff --git a/src/plugins/ctf/common/src/metadata/tsdl/ctf-meta.hpp b/src/plugins/ctf/common/src/metadata/tsdl/ctf-meta.hpp index 5efa7106..541fba6d 100644 --- a/src/plugins/ctf/common/src/metadata/tsdl/ctf-meta.hpp +++ b/src/plugins/ctf/common/src/metadata/tsdl/ctf-meta.hpp @@ -4,8 +4,8 @@ * Copyright 2018 Philippe Proulx */ -#ifndef _CTF_META_H -#define _CTF_META_H +#ifndef BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_CTF_META_HPP +#define BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_CTF_META_HPP #include #include @@ -1773,4 +1773,4 @@ end: return ret_entry; } -#endif /* _CTF_META_H */ +#endif /* BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_CTF_META_HPP */ diff --git a/src/plugins/ctf/common/src/metadata/tsdl/decoder-packetized-file-stream-to-buf.hpp b/src/plugins/ctf/common/src/metadata/tsdl/decoder-packetized-file-stream-to-buf.hpp index 6190b061..b0d544c2 100644 --- a/src/plugins/ctf/common/src/metadata/tsdl/decoder-packetized-file-stream-to-buf.hpp +++ b/src/plugins/ctf/common/src/metadata/tsdl/decoder-packetized-file-stream-to-buf.hpp @@ -4,8 +4,8 @@ * Copyright 2019 Efficios Inc. */ -#ifndef SRC_PLUGINS_CTF_COMMON_METADATA_DECODER_PACKETIZED_FILE_STREAM_TO_BUF -#define SRC_PLUGINS_CTF_COMMON_METADATA_DECODER_PACKETIZED_FILE_STREAM_TO_BUF +#ifndef BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_DECODER_PACKETIZED_FILE_STREAM_TO_BUF_HPP +#define BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_DECODER_PACKETIZED_FILE_STREAM_TO_BUF_HPP #include @@ -23,4 +23,4 @@ int ctf_metadata_decoder_packetized_file_stream_to_buf(FILE *fp, char **buf, int bool *is_uuid_set, uint8_t *uuid, const bt2c::Logger& parentLogger); -#endif /* SRC_PLUGINS_CTF_COMMON_METADATA_DECODER_PACKETIZED_FILE_STREAM_TO_BUF */ +#endif /* BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_DECODER_PACKETIZED_FILE_STREAM_TO_BUF_HPP */ diff --git a/src/plugins/ctf/common/src/metadata/tsdl/decoder.hpp b/src/plugins/ctf/common/src/metadata/tsdl/decoder.hpp index b4dbce87..9d230fd3 100644 --- a/src/plugins/ctf/common/src/metadata/tsdl/decoder.hpp +++ b/src/plugins/ctf/common/src/metadata/tsdl/decoder.hpp @@ -4,8 +4,8 @@ * Copyright 2016-2017 Philippe Proulx */ -#ifndef _METADATA_DECODER_H -#define _METADATA_DECODER_H +#ifndef BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_DECODER_HPP +#define BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_DECODER_HPP #include @@ -191,4 +191,4 @@ static inline bool ctf_metadata_decoder_is_packet_version_valid(unsigned int maj return major == 1 && minor == 8; } -#endif /* _METADATA_DECODER_H */ +#endif /* BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_DECODER_HPP */ diff --git a/src/plugins/ctf/common/src/metadata/tsdl/logging.hpp b/src/plugins/ctf/common/src/metadata/tsdl/logging.hpp index ee019a3c..e19e37f3 100644 --- a/src/plugins/ctf/common/src/metadata/tsdl/logging.hpp +++ b/src/plugins/ctf/common/src/metadata/tsdl/logging.hpp @@ -4,8 +4,8 @@ * Copyright (c) 2017 Jérémie Galarneau */ -#ifndef CTF_METADATA_LOGGING_H -#define CTF_METADATA_LOGGING_H +#ifndef BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_LOGGING_HPP +#define BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_LOGGING_HPP #include @@ -23,4 +23,4 @@ #define _BT_CPPLOGE_APPEND_CAUSE_LINENO(logger, _lineno, _msg, args...) \ BT_CPPLOGE_APPEND_CAUSE_SPEC((logger), "At line {} in metadata stream: " _msg, _lineno, ##args) -#endif /* CTF_METADATA_LOGGING_H */ +#endif /* BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_LOGGING_HPP */ diff --git a/src/plugins/ctf/common/src/metadata/tsdl/objstack.hpp b/src/plugins/ctf/common/src/metadata/tsdl/objstack.hpp index cc17d433..511a411f 100644 --- a/src/plugins/ctf/common/src/metadata/tsdl/objstack.hpp +++ b/src/plugins/ctf/common/src/metadata/tsdl/objstack.hpp @@ -6,8 +6,8 @@ * Common Trace Format Object Stack. */ -#ifndef _OBJSTACK_H -#define _OBJSTACK_H +#ifndef BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_OBJSTACK_HPP +#define BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_OBJSTACK_HPP #include @@ -26,4 +26,4 @@ void objstack_destroy(struct objstack *objstack); */ void *objstack_alloc(struct objstack *objstack, size_t len); -#endif /* _OBJSTACK_H */ +#endif /* BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_OBJSTACK_HPP */ diff --git a/src/plugins/ctf/common/src/metadata/tsdl/parser-wrap.hpp b/src/plugins/ctf/common/src/metadata/tsdl/parser-wrap.hpp index bfc0e907..ba128994 100644 --- a/src/plugins/ctf/common/src/metadata/tsdl/parser-wrap.hpp +++ b/src/plugins/ctf/common/src/metadata/tsdl/parser-wrap.hpp @@ -4,8 +4,8 @@ * Copyright 2019 EfficiOS Inc. */ -#ifndef BABELTRACE_PLUGINS_CTF_COMMON_METADATA_PARSER_WRAP_H -#define BABELTRACE_PLUGINS_CTF_COMMON_METADATA_PARSER_WRAP_H +#ifndef BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_PARSER_WRAP_HPP +#define BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_PARSER_WRAP_HPP /* * Small wrapper around the bison-generated parser.h to conditionally define @@ -24,4 +24,4 @@ #include "plugins/ctf/common/src/metadata/tsdl/parser.hpp" #undef ALLOW_INCLUDE_PARSER_H -#endif +#endif /* BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_PARSER_WRAP_HPP */ diff --git a/src/plugins/ctf/common/src/metadata/tsdl/scanner-symbols.hpp b/src/plugins/ctf/common/src/metadata/tsdl/scanner-symbols.hpp index 1f6f144d..e2740366 100644 --- a/src/plugins/ctf/common/src/metadata/tsdl/scanner-symbols.hpp +++ b/src/plugins/ctf/common/src/metadata/tsdl/scanner-symbols.hpp @@ -4,8 +4,8 @@ * Copyright 2011-2012 Mathieu Desnoyers */ -#ifndef _CTF_SCANNER_SYMBOLS -#define _CTF_SCANNER_SYMBOLS +#ifndef BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_SCANNER_SYMBOLS_HPP +#define BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_SCANNER_SYMBOLS_HPP #define yy_create_buffer bt_yy_create_buffer #define yy_delete_buffer bt_yy_delete_buffer @@ -37,4 +37,4 @@ #define yyset_lval bt_yyset_lval #define yyset_out bt_yyset_out -#endif /* _CTF_SCANNER_SYMBOLS */ +#endif /* BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_SCANNER_SYMBOLS_HPP */ diff --git a/src/plugins/ctf/common/src/metadata/tsdl/scanner.hpp b/src/plugins/ctf/common/src/metadata/tsdl/scanner.hpp index 4f2a1f86..79933d50 100644 --- a/src/plugins/ctf/common/src/metadata/tsdl/scanner.hpp +++ b/src/plugins/ctf/common/src/metadata/tsdl/scanner.hpp @@ -4,8 +4,8 @@ * Copyright 2011-2012 Mathieu Desnoyers */ -#ifndef _CTF_SCANNER_H -#define _CTF_SCANNER_H +#ifndef BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_SCANNER_HPP +#define BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_SCANNER_HPP #include @@ -51,4 +51,4 @@ static inline struct ctf_ast *ctf_scanner_get_ast(struct ctf_scanner *scanner) int is_type(struct ctf_scanner *scanner, const char *id); -#endif /* _CTF_SCANNER_H */ +#endif /* BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_SCANNER_HPP */ diff --git a/src/plugins/ctf/common/src/msg-iter/msg-iter.hpp b/src/plugins/ctf/common/src/msg-iter/msg-iter.hpp index f9bb7f2a..b375b0d8 100644 --- a/src/plugins/ctf/common/src/msg-iter/msg-iter.hpp +++ b/src/plugins/ctf/common/src/msg-iter/msg-iter.hpp @@ -7,8 +7,8 @@ * Babeltrace - CTF message iterator */ -#ifndef CTF_MSG_ITER_H -#define CTF_MSG_ITER_H +#ifndef BABELTRACE_PLUGINS_CTF_COMMON_SRC_MSG_ITER_MSG_ITER_HPP +#define BABELTRACE_PLUGINS_CTF_COMMON_SRC_MSG_ITER_MSG_ITER_HPP #include #include @@ -362,4 +362,4 @@ void ctf_msg_iter_reset_for_next_stream_file(struct ctf_msg_iter *msg_it); void ctf_msg_iter_set_dry_run(struct ctf_msg_iter *msg_it, bool val); -#endif /* CTF_MSG_ITER_H */ +#endif /* BABELTRACE_PLUGINS_CTF_COMMON_SRC_MSG_ITER_MSG_ITER_HPP */ diff --git a/src/plugins/ctf/fs-sink/fs-sink-ctf-meta.hpp b/src/plugins/ctf/fs-sink/fs-sink-ctf-meta.hpp index 7161fb35..440fca72 100644 --- a/src/plugins/ctf/fs-sink/fs-sink-ctf-meta.hpp +++ b/src/plugins/ctf/fs-sink/fs-sink-ctf-meta.hpp @@ -4,8 +4,8 @@ * Copyright 2018-2019 Philippe Proulx */ -#ifndef BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_CTF_META_H -#define BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_CTF_META_H +#ifndef BABELTRACE_PLUGINS_CTF_FS_SINK_FS_SINK_CTF_META_HPP +#define BABELTRACE_PLUGINS_CTF_FS_SINK_FS_SINK_CTF_META_HPP #include #include @@ -935,4 +935,4 @@ static inline struct fs_sink_ctf_trace *fs_sink_ctf_trace_create(const bt_trace return trace; } -#endif /* BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_CTF_META_H */ +#endif /* BABELTRACE_PLUGINS_CTF_FS_SINK_FS_SINK_CTF_META_HPP */ diff --git a/src/plugins/ctf/fs-sink/fs-sink-stream.hpp b/src/plugins/ctf/fs-sink/fs-sink-stream.hpp index 8c309525..b30f7751 100644 --- a/src/plugins/ctf/fs-sink/fs-sink-stream.hpp +++ b/src/plugins/ctf/fs-sink/fs-sink-stream.hpp @@ -4,8 +4,8 @@ * Copyright 2019 Philippe Proulx */ -#ifndef BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_STREAM_H -#define BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_STREAM_H +#ifndef BABELTRACE_PLUGINS_CTF_FS_SINK_FS_SINK_STREAM_HPP +#define BABELTRACE_PLUGINS_CTF_FS_SINK_FS_SINK_STREAM_HPP #include #include @@ -179,4 +179,4 @@ int fs_sink_stream_open_packet(struct fs_sink_stream *stream, const bt_clock_sna int fs_sink_stream_close_packet(struct fs_sink_stream *stream, const bt_clock_snapshot *cs); -#endif /* BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_STREAM_H */ +#endif /* BABELTRACE_PLUGINS_CTF_FS_SINK_FS_SINK_STREAM_HPP */ diff --git a/src/plugins/ctf/fs-sink/fs-sink-trace.hpp b/src/plugins/ctf/fs-sink/fs-sink-trace.hpp index c9b16436..ac558b97 100644 --- a/src/plugins/ctf/fs-sink/fs-sink-trace.hpp +++ b/src/plugins/ctf/fs-sink/fs-sink-trace.hpp @@ -4,8 +4,8 @@ * Copyright 2019 Philippe Proulx */ -#ifndef BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_TRACE_H -#define BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_TRACE_H +#ifndef BABELTRACE_PLUGINS_CTF_FS_SINK_FS_SINK_TRACE_HPP +#define BABELTRACE_PLUGINS_CTF_FS_SINK_FS_SINK_TRACE_HPP #include @@ -62,4 +62,4 @@ struct fs_sink_trace *fs_sink_trace_create(struct fs_sink_comp *fs_sink, const b void fs_sink_trace_destroy(struct fs_sink_trace *trace); -#endif /* BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_TRACE_H */ +#endif /* BABELTRACE_PLUGINS_CTF_FS_SINK_FS_SINK_TRACE_HPP */ diff --git a/src/plugins/ctf/fs-sink/fs-sink.hpp b/src/plugins/ctf/fs-sink/fs-sink.hpp index 529ae346..71a15745 100644 --- a/src/plugins/ctf/fs-sink/fs-sink.hpp +++ b/src/plugins/ctf/fs-sink/fs-sink.hpp @@ -4,8 +4,8 @@ * Copyright 2019 Philippe Proulx */ -#ifndef BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_H -#define BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_H +#ifndef BABELTRACE_PLUGINS_CTF_FS_SINK_FS_SINK_HPP +#define BABELTRACE_PLUGINS_CTF_FS_SINK_FS_SINK_HPP #include @@ -67,4 +67,4 @@ ctf_fs_sink_graph_is_configured(bt_self_component_sink *component); void ctf_fs_sink_finalize(bt_self_component_sink *component); -#endif /* BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_H */ +#endif /* BABELTRACE_PLUGINS_CTF_FS_SINK_FS_SINK_HPP */ diff --git a/src/plugins/ctf/fs-sink/translate-ctf-ir-to-tsdl.hpp b/src/plugins/ctf/fs-sink/translate-ctf-ir-to-tsdl.hpp index 1efe100f..a3658d65 100644 --- a/src/plugins/ctf/fs-sink/translate-ctf-ir-to-tsdl.hpp +++ b/src/plugins/ctf/fs-sink/translate-ctf-ir-to-tsdl.hpp @@ -4,11 +4,11 @@ * Copyright 2019 Philippe Proulx */ -#ifndef BABELTRACE_PLUGIN_CTF_FS_SINK_TRANSLATE_CTF_IR_TO_TSDL_H -#define BABELTRACE_PLUGIN_CTF_FS_SINK_TRANSLATE_CTF_IR_TO_TSDL_H +#ifndef BABELTRACE_PLUGINS_CTF_FS_SINK_TRANSLATE_CTF_IR_TO_TSDL_HPP +#define BABELTRACE_PLUGINS_CTF_FS_SINK_TRANSLATE_CTF_IR_TO_TSDL_HPP #include void translate_trace_ctf_ir_to_tsdl(struct fs_sink_ctf_trace *trace, GString *tsdl); -#endif /* BABELTRACE_PLUGIN_CTF_FS_SINK_TRANSLATE_CTF_IR_TO_TSDL_H */ +#endif /* BABELTRACE_PLUGINS_CTF_FS_SINK_TRANSLATE_CTF_IR_TO_TSDL_HPP */ diff --git a/src/plugins/ctf/fs-sink/translate-trace-ir-to-ctf-ir.hpp b/src/plugins/ctf/fs-sink/translate-trace-ir-to-ctf-ir.hpp index 5a3fda6c..b371ab63 100644 --- a/src/plugins/ctf/fs-sink/translate-trace-ir-to-ctf-ir.hpp +++ b/src/plugins/ctf/fs-sink/translate-trace-ir-to-ctf-ir.hpp @@ -4,8 +4,8 @@ * Copyright 2019 Philippe Proulx */ -#ifndef BABELTRACE_PLUGIN_CTF_FS_SINK_TRANSLATE_TRACE_IR_TO_CTF_IR_H -#define BABELTRACE_PLUGIN_CTF_FS_SINK_TRANSLATE_TRACE_IR_TO_CTF_IR_H +#ifndef BABELTRACE_PLUGINS_CTF_FS_SINK_TRANSLATE_TRACE_IR_TO_CTF_IR_HPP +#define BABELTRACE_PLUGINS_CTF_FS_SINK_TRANSLATE_TRACE_IR_TO_CTF_IR_HPP #include @@ -22,4 +22,4 @@ int try_translate_stream_class_trace_ir_to_ctf_ir(struct fs_sink_comp *fs_sink, struct fs_sink_ctf_trace *translate_trace_trace_ir_to_ctf_ir(struct fs_sink_comp *fs_sink, const bt_trace *ir_trace); -#endif /* BABELTRACE_PLUGIN_CTF_FS_SINK_TRANSLATE_TRACE_IR_TO_CTF_IR_H */ +#endif /* BABELTRACE_PLUGINS_CTF_FS_SINK_TRANSLATE_TRACE_IR_TO_CTF_IR_HPP */ diff --git a/src/plugins/ctf/fs-src/data-stream-file.hpp b/src/plugins/ctf/fs-src/data-stream-file.hpp index 05a6db13..eb20944d 100644 --- a/src/plugins/ctf/fs-src/data-stream-file.hpp +++ b/src/plugins/ctf/fs-src/data-stream-file.hpp @@ -4,8 +4,8 @@ * Copyright (C) 2016 Philippe Proulx */ -#ifndef CTF_FS_DS_FILE_H -#define CTF_FS_DS_FILE_H +#ifndef BABELTRACE_PLUGINS_CTF_FS_SRC_DATA_STREAM_FILE_HPP +#define BABELTRACE_PLUGINS_CTF_FS_SRC_DATA_STREAM_FILE_HPP #include #include @@ -201,4 +201,4 @@ ctf_fs_ds_group_medops_data_create(struct ctf_fs_ds_file_group *ds_file_group, void ctf_fs_ds_group_medops_data_reset(struct ctf_fs_ds_group_medops_data *data); -#endif /* CTF_FS_DS_FILE_H */ +#endif /* BABELTRACE_PLUGINS_CTF_FS_SRC_DATA_STREAM_FILE_HPP */ diff --git a/src/plugins/ctf/fs-src/file.hpp b/src/plugins/ctf/fs-src/file.hpp index ee6441cb..5516f44c 100644 --- a/src/plugins/ctf/fs-src/file.hpp +++ b/src/plugins/ctf/fs-src/file.hpp @@ -4,8 +4,8 @@ * Copyright (C) 2016 Philippe Proulx */ -#ifndef CTF_FS_FILE_H -#define CTF_FS_FILE_H +#ifndef BABELTRACE_PLUGINS_CTF_FS_SRC_FILE_HPP +#define BABELTRACE_PLUGINS_CTF_FS_SRC_FILE_HPP #include #include @@ -35,4 +35,4 @@ struct ctf_fs_file int ctf_fs_file_open(struct ctf_fs_file *file, const char *mode); -#endif /* CTF_FS_FILE_H */ +#endif /* BABELTRACE_PLUGINS_CTF_FS_SRC_FILE_HPP */ diff --git a/src/plugins/ctf/fs-src/fs.hpp b/src/plugins/ctf/fs-src/fs.hpp index c9ca2a90..4fe799f1 100644 --- a/src/plugins/ctf/fs-src/fs.hpp +++ b/src/plugins/ctf/fs-src/fs.hpp @@ -7,8 +7,8 @@ * BabelTrace - CTF on File System Component */ -#ifndef BABELTRACE_PLUGIN_CTF_FS_H -#define BABELTRACE_PLUGIN_CTF_FS_H +#ifndef BABELTRACE_PLUGINS_CTF_FS_SRC_FS_HPP +#define BABELTRACE_PLUGINS_CTF_FS_SRC_FS_HPP #include @@ -199,4 +199,4 @@ ctf::src::fs::Parameters read_src_fs_parameters(bt2::ConstMapValue params, std::string ctf_fs_make_port_name(ctf_fs_ds_file_group *ds_file_group); -#endif /* BABELTRACE_PLUGIN_CTF_FS_H */ +#endif /* BABELTRACE_PLUGINS_CTF_FS_SRC_FS_HPP */ diff --git a/src/plugins/ctf/fs-src/lttng-index.hpp b/src/plugins/ctf/fs-src/lttng-index.hpp index 36dc7cc9..3faccb09 100644 --- a/src/plugins/ctf/fs-src/lttng-index.hpp +++ b/src/plugins/ctf/fs-src/lttng-index.hpp @@ -6,8 +6,8 @@ * Copyright (C) 2013 David Goulet */ -#ifndef LTTNG_INDEX_H -#define LTTNG_INDEX_H +#ifndef BABELTRACE_PLUGINS_CTF_FS_SRC_LTTNG_INDEX_HPP +#define BABELTRACE_PLUGINS_CTF_FS_SRC_LTTNG_INDEX_HPP #include @@ -49,4 +49,4 @@ struct ctf_packet_index uint64_t packet_seq_num; /* packet sequence number */ } __attribute__((__packed__)); -#endif /* LTTNG_INDEX_H */ +#endif /* BABELTRACE_PLUGINS_CTF_FS_SRC_LTTNG_INDEX_HPP */ diff --git a/src/plugins/ctf/fs-src/metadata.hpp b/src/plugins/ctf/fs-src/metadata.hpp index 14d7cc19..bab69e26 100644 --- a/src/plugins/ctf/fs-src/metadata.hpp +++ b/src/plugins/ctf/fs-src/metadata.hpp @@ -4,8 +4,8 @@ * Copyright 2016 Philippe Proulx */ -#ifndef CTF_FS_METADATA_H -#define CTF_FS_METADATA_H +#ifndef BABELTRACE_PLUGINS_CTF_FS_SRC_METADATA_HPP +#define BABELTRACE_PLUGINS_CTF_FS_SRC_METADATA_HPP #include @@ -28,4 +28,4 @@ FILE *ctf_fs_metadata_open_file(const char *trace_path, const bt2c::Logger& logg bool ctf_metadata_is_packetized(FILE *fp, int *byte_order); -#endif /* CTF_FS_METADATA_H */ +#endif /* BABELTRACE_PLUGINS_CTF_FS_SRC_METADATA_HPP */ diff --git a/src/plugins/ctf/fs-src/query.hpp b/src/plugins/ctf/fs-src/query.hpp index 2c7aca09..f5066120 100644 --- a/src/plugins/ctf/fs-src/query.hpp +++ b/src/plugins/ctf/fs-src/query.hpp @@ -6,8 +6,8 @@ * BabelTrace - CTF on File System Component */ -#ifndef BABELTRACE_PLUGIN_CTF_FS_QUERY_H -#define BABELTRACE_PLUGIN_CTF_FS_QUERY_H +#ifndef BABELTRACE_PLUGINS_CTF_FS_SRC_QUERY_HPP +#define BABELTRACE_PLUGINS_CTF_FS_SRC_QUERY_HPP #include "cpp-common/bt2/value.hpp" @@ -23,4 +23,4 @@ bt2::Value::Shared trace_infos_query(bt2::ConstMapValue params, const bt2c::Logg bt2::Value::Shared support_info_query(bt2::ConstMapValue params, const bt2c::Logger& logger); -#endif /* BABELTRACE_PLUGIN_CTF_FS_QUERY_H */ +#endif /* BABELTRACE_PLUGINS_CTF_FS_SRC_QUERY_HPP */ diff --git a/src/plugins/ctf/lttng-live/data-stream.hpp b/src/plugins/ctf/lttng-live/data-stream.hpp index 675bbdbb..9ad85bba 100644 --- a/src/plugins/ctf/lttng-live/data-stream.hpp +++ b/src/plugins/ctf/lttng-live/data-stream.hpp @@ -4,8 +4,8 @@ * Copyright 2016 Philippe Proulx */ -#ifndef LTTNG_LIVE_DATA_STREAM_H -#define LTTNG_LIVE_DATA_STREAM_H +#ifndef BABELTRACE_PLUGINS_CTF_LTTNG_LIVE_DATA_STREAM_HPP +#define BABELTRACE_PLUGINS_CTF_LTTNG_LIVE_DATA_STREAM_HPP #include @@ -18,4 +18,4 @@ struct lttng_live_stream_iterator * lttng_live_stream_iterator_create(struct lttng_live_session *session, uint64_t ctf_trace_id, uint64_t stream_id, bt_self_message_iterator *self_msg_iter); -#endif /* LTTNG_LIVE_DATA_STREAM_H */ +#endif /* BABELTRACE_PLUGINS_CTF_LTTNG_LIVE_DATA_STREAM_HPP */ diff --git a/src/plugins/ctf/lttng-live/lttng-live.hpp b/src/plugins/ctf/lttng-live/lttng-live.hpp index 9dbc432a..be2689ce 100644 --- a/src/plugins/ctf/lttng-live/lttng-live.hpp +++ b/src/plugins/ctf/lttng-live/lttng-live.hpp @@ -8,8 +8,8 @@ * BabelTrace - LTTng-live client Component */ -#ifndef BABELTRACE_PLUGIN_CTF_LTTNG_LIVE_H -#define BABELTRACE_PLUGIN_CTF_LTTNG_LIVE_H +#ifndef BABELTRACE_PLUGINS_CTF_LTTNG_LIVE_LTTNG_LIVE_HPP +#define BABELTRACE_PLUGINS_CTF_LTTNG_LIVE_LTTNG_LIVE_HPP #include #include @@ -451,4 +451,4 @@ bool lttng_live_graph_is_canceled(struct lttng_live_msg_iter *msg_iter); void lttng_live_stream_iterator_set_state(struct lttng_live_stream_iterator *stream_iter, enum lttng_live_stream_state new_state); -#endif /* BABELTRACE_PLUGIN_CTF_LTTNG_LIVE_H */ +#endif /* BABELTRACE_PLUGINS_CTF_LTTNG_LIVE_LTTNG_LIVE_HPP */ diff --git a/src/plugins/ctf/lttng-live/lttng-viewer-abi.hpp b/src/plugins/ctf/lttng-live/lttng-viewer-abi.hpp index 926ace11..e4d480f6 100644 --- a/src/plugins/ctf/lttng-live/lttng-viewer-abi.hpp +++ b/src/plugins/ctf/lttng-live/lttng-viewer-abi.hpp @@ -6,8 +6,8 @@ * Copyright (C) 2013 David Goulet */ -#ifndef LTTNG_VIEWER_ABI_H -#define LTTNG_VIEWER_ABI_H +#ifndef BABELTRACE_PLUGINS_CTF_LTTNG_LIVE_LTTNG_VIEWER_ABI_HPP +#define BABELTRACE_PLUGINS_CTF_LTTNG_LIVE_LTTNG_VIEWER_ABI_HPP #include @@ -359,4 +359,4 @@ struct lttng_viewer_detach_session_response uint32_t status; } __attribute__((__packed__)); -#endif /* LTTNG_VIEWER_ABI_H */ +#endif /* BABELTRACE_PLUGINS_CTF_LTTNG_LIVE_LTTNG_VIEWER_ABI_HPP */ diff --git a/src/plugins/ctf/lttng-live/metadata.hpp b/src/plugins/ctf/lttng-live/metadata.hpp index 7c2d7659..2a02032c 100644 --- a/src/plugins/ctf/lttng-live/metadata.hpp +++ b/src/plugins/ctf/lttng-live/metadata.hpp @@ -4,8 +4,8 @@ * Copyright 2016 Philippe Proulx */ -#ifndef LTTNG_LIVE_METADATA_H -#define LTTNG_LIVE_METADATA_H +#ifndef BABELTRACE_PLUGINS_CTF_LTTNG_LIVE_METADATA_HPP +#define BABELTRACE_PLUGINS_CTF_LTTNG_LIVE_METADATA_HPP #include @@ -16,4 +16,4 @@ int lttng_live_metadata_create_stream(struct lttng_live_session *session, uint64 enum lttng_live_iterator_status lttng_live_metadata_update(struct lttng_live_trace *trace); -#endif /* LTTNG_LIVE_METADATA_H */ +#endif /* BABELTRACE_PLUGINS_CTF_LTTNG_LIVE_METADATA_HPP */ diff --git a/src/plugins/ctf/lttng-live/viewer-connection.hpp b/src/plugins/ctf/lttng-live/viewer-connection.hpp index 0f284581..9610a15e 100644 --- a/src/plugins/ctf/lttng-live/viewer-connection.hpp +++ b/src/plugins/ctf/lttng-live/viewer-connection.hpp @@ -4,8 +4,8 @@ * Copyright 2016 Mathieu Desnoyers */ -#ifndef LTTNG_LIVE_VIEWER_CONNECTION_H -#define LTTNG_LIVE_VIEWER_CONNECTION_H +#ifndef BABELTRACE_PLUGINS_CTF_LTTNG_LIVE_VIEWER_CONNECTION_HPP +#define BABELTRACE_PLUGINS_CTF_LTTNG_LIVE_VIEWER_CONNECTION_HPP #include @@ -111,4 +111,4 @@ lttng_live_create_viewer_session(struct lttng_live_msg_iter *lttng_live_msg_iter bt2::Value::Shared live_viewer_connection_list_sessions(struct live_viewer_connection *viewer_connection); -#endif /* LTTNG_LIVE_VIEWER_CONNECTION_H */ +#endif /* BABELTRACE_PLUGINS_CTF_LTTNG_LIVE_VIEWER_CONNECTION_HPP */ diff --git a/src/plugins/lttng-utils/debug-info/bin-info.h b/src/plugins/lttng-utils/debug-info/bin-info.h index cd9b9d61..2a641691 100644 --- a/src/plugins/lttng-utils/debug-info/bin-info.h +++ b/src/plugins/lttng-utils/debug-info/bin-info.h @@ -6,8 +6,8 @@ * Babeltrace - Executable and Shared Object Debug Info Reader */ -#ifndef _BABELTRACE_BIN_INFO_H -#define _BABELTRACE_BIN_INFO_H +#ifndef BABELTRACE_PLUGINS_LTTNG_UTILS_DEBUG_INFO_BIN_INFO_H +#define BABELTRACE_PLUGINS_LTTNG_UTILS_DEBUG_INFO_BIN_INFO_H #include #include @@ -218,4 +218,4 @@ int bin_info_get_bin_loc(struct bin_info *bin, uint64_t addr, char **bin_loc); */ void source_location_destroy(struct source_location *src_loc); -#endif /* _BABELTRACE_BIN_INFO_H */ +#endif /* BABELTRACE_PLUGINS_LTTNG_UTILS_DEBUG_INFO_BIN_INFO_H */ diff --git a/src/plugins/lttng-utils/debug-info/crc32.h b/src/plugins/lttng-utils/debug-info/crc32.h index 7e1e254c..5dedda43 100644 --- a/src/plugins/lttng-utils/debug-info/crc32.h +++ b/src/plugins/lttng-utils/debug-info/crc32.h @@ -4,8 +4,8 @@ * Copyright (c) 1991, 1993 The Regents of the University of California. */ -#ifndef _BABELTRACE_CRC32_H -#define _BABELTRACE_CRC32_H +#ifndef BABELTRACE_PLUGINS_LTTNG_UTILS_DEBUG_INFO_CRC32_H +#define BABELTRACE_PLUGINS_LTTNG_UTILS_DEBUG_INFO_CRC32_H #include #include @@ -24,4 +24,4 @@ */ int crc32(int fd, uint32_t *crc); -#endif /* _BABELTRACE_CRC32_H */ +#endif /* BABELTRACE_PLUGINS_LTTNG_UTILS_DEBUG_INFO_CRC32_H */ diff --git a/src/plugins/lttng-utils/debug-info/debug-info.h b/src/plugins/lttng-utils/debug-info/debug-info.h index 8a7e8ea0..5877a056 100644 --- a/src/plugins/lttng-utils/debug-info/debug-info.h +++ b/src/plugins/lttng-utils/debug-info/debug-info.h @@ -8,8 +8,8 @@ * Babeltrace - Debug information Plugin */ -#ifndef BABELTRACE_PLUGIN_DEBUG_INFO_H -#define BABELTRACE_PLUGIN_DEBUG_INFO_H +#ifndef BABELTRACE_PLUGINS_LTTNG_UTILS_DEBUG_INFO_DEBUG_INFO_H +#define BABELTRACE_PLUGINS_LTTNG_UTILS_DEBUG_INFO_DEBUG_INFO_H #include #include @@ -55,4 +55,4 @@ bt_message_iterator_class_seek_beginning_method_status debug_info_msg_iter_seek_ void debug_info_msg_iter_finalize(bt_self_message_iterator *it); -#endif /* BABELTRACE_PLUGIN_DEBUG_INFO_H */ +#endif /* BABELTRACE_PLUGINS_LTTNG_UTILS_DEBUG_INFO_DEBUG_INFO_H */ diff --git a/src/plugins/lttng-utils/debug-info/dwarf.h b/src/plugins/lttng-utils/debug-info/dwarf.h index 2a446b19..288eb9c2 100644 --- a/src/plugins/lttng-utils/debug-info/dwarf.h +++ b/src/plugins/lttng-utils/debug-info/dwarf.h @@ -6,8 +6,8 @@ * Babeltrace - DWARF Information Reader */ -#ifndef _BABELTRACE_DWARF_H -#define _BABELTRACE_DWARF_H +#ifndef BABELTRACE_PLUGINS_LTTNG_UTILS_DEBUG_INFO_DWARF_H +#define BABELTRACE_PLUGINS_LTTNG_UTILS_DEBUG_INFO_DWARF_H #include #include @@ -201,4 +201,4 @@ int bt_dwarf_die_get_call_line(struct bt_dwarf_die *die, int bt_dwarf_die_contains_addr(struct bt_dwarf_die *die, uint64_t addr, bool *contains); -#endif /* _BABELTRACE_DWARF_H */ +#endif /* BABELTRACE_PLUGINS_LTTNG_UTILS_DEBUG_INFO_DWARF_H */ diff --git a/src/plugins/lttng-utils/debug-info/trace-ir-data-copy.h b/src/plugins/lttng-utils/debug-info/trace-ir-data-copy.h index 319d366b..847befa1 100644 --- a/src/plugins/lttng-utils/debug-info/trace-ir-data-copy.h +++ b/src/plugins/lttng-utils/debug-info/trace-ir-data-copy.h @@ -7,8 +7,8 @@ * Babeltrace - Trace IR data object copy */ -#ifndef BABELTRACE_PLUGIN_DEBUG_INFO_TRACE_DATA_COPY_H -#define BABELTRACE_PLUGIN_DEBUG_INFO_TRACE_DATA_COPY_H +#ifndef BABELTRACE_PLUGINS_LTTNG_UTILS_DEBUG_INFO_TRACE_IR_DATA_COPY_H +#define BABELTRACE_PLUGINS_LTTNG_UTILS_DEBUG_INFO_TRACE_IR_DATA_COPY_H #include @@ -31,4 +31,4 @@ enum debug_info_trace_ir_mapping_status copy_field_content( const bt_field *in_field, bt_field *out_field, bt_logging_level log_level, bt_self_component *self_comp); -#endif /* BABELTRACE_PLUGIN_DEBUG_INFO_TRACE_DATA_COPY_H */ +#endif /* BABELTRACE_PLUGINS_LTTNG_UTILS_DEBUG_INFO_TRACE_IR_DATA_COPY_H */ diff --git a/src/plugins/lttng-utils/debug-info/trace-ir-mapping.h b/src/plugins/lttng-utils/debug-info/trace-ir-mapping.h index 37da3bcf..b4d7445b 100644 --- a/src/plugins/lttng-utils/debug-info/trace-ir-mapping.h +++ b/src/plugins/lttng-utils/debug-info/trace-ir-mapping.h @@ -4,8 +4,8 @@ * Copyright 2019 Francis Deslauriers francis.deslauriers@efficios.com> */ -#ifndef BABELTRACE_PLUGIN_DEBUG_INFO_TRACE_IR_MAPPING_H -#define BABELTRACE_PLUGIN_DEBUG_INFO_TRACE_IR_MAPPING_H +#ifndef BABELTRACE_PLUGINS_LTTNG_UTILS_DEBUG_INFO_TRACE_IR_MAPPING_H +#define BABELTRACE_PLUGINS_LTTNG_UTILS_DEBUG_INFO_TRACE_IR_MAPPING_H #include @@ -261,4 +261,4 @@ struct trace_ir_metadata_maps *borrow_metadata_maps_from_input_event_class( bt_event_class_borrow_stream_class_const(in_event_class)); } -#endif /* BABELTRACE_PLUGIN_DEBUG_INFO_TRACE_IR_MAPPING_H */ +#endif /* BABELTRACE_PLUGINS_LTTNG_UTILS_DEBUG_INFO_TRACE_IR_MAPPING_H */ diff --git a/src/plugins/lttng-utils/debug-info/trace-ir-metadata-copy.h b/src/plugins/lttng-utils/debug-info/trace-ir-metadata-copy.h index b853ada9..06c99035 100644 --- a/src/plugins/lttng-utils/debug-info/trace-ir-metadata-copy.h +++ b/src/plugins/lttng-utils/debug-info/trace-ir-metadata-copy.h @@ -8,8 +8,8 @@ * Babeltrace - Trace IR metadata object copy */ -#ifndef BABELTRACE_PLUGIN_DEBUG_INFO_TRACE_METADATA_COPY_H -#define BABELTRACE_PLUGIN_DEBUG_INFO_TRACE_METADATA_COPY_H +#ifndef BABELTRACE_PLUGINS_LTTNG_UTILS_DEBUG_INFO_TRACE_IR_METADATA_COPY_H +#define BABELTRACE_PLUGINS_LTTNG_UTILS_DEBUG_INFO_TRACE_IR_METADATA_COPY_H #include #include "common/macros.h" @@ -47,4 +47,4 @@ bt_field_class *create_field_class_copy( struct trace_ir_metadata_maps *trace_ir_metadata_maps, const bt_field_class *in_field_class); -#endif /* BABELTRACE_PLUGIN_DEBUG_INFO_TRACE_METADATA_COPY_H */ +#endif /* BABELTRACE_PLUGINS_LTTNG_UTILS_DEBUG_INFO_TRACE_IR_METADATA_COPY_H */ diff --git a/src/plugins/lttng-utils/debug-info/trace-ir-metadata-field-class-copy.h b/src/plugins/lttng-utils/debug-info/trace-ir-metadata-field-class-copy.h index 65c6ecd7..84802c9d 100644 --- a/src/plugins/lttng-utils/debug-info/trace-ir-metadata-field-class-copy.h +++ b/src/plugins/lttng-utils/debug-info/trace-ir-metadata-field-class-copy.h @@ -7,8 +7,8 @@ * Babeltrace - Trace IR metadata field class copy */ -#ifndef BABELTRACE_PLUGIN_DEBUG_INFO_FIELD_CLASS_COPY_H -#define BABELTRACE_PLUGIN_DEBUG_INFO_FIELD_CLASS_COPY_H +#ifndef BABELTRACE_PLUGINS_LTTNG_UTILS_DEBUG_INFO_TRACE_IR_METADATA_FIELD_CLASS_COPY_H +#define BABELTRACE_PLUGINS_LTTNG_UTILS_DEBUG_INFO_TRACE_IR_METADATA_FIELD_CLASS_COPY_H #include #include "common/macros.h" @@ -23,4 +23,4 @@ bt_field_class *create_field_class_copy_internal( struct trace_ir_metadata_maps *trace_ir_metadata_maps, const bt_field_class *in_field_class); -#endif /* BABELTRACE_PLUGIN_DEBUG_INFO_FIELD_CLASS_COPY_H */ +#endif /* BABELTRACE_PLUGINS_LTTNG_UTILS_DEBUG_INFO_TRACE_IR_METADATA_FIELD_CLASS_COPY_H */ diff --git a/src/plugins/lttng-utils/debug-info/utils.h b/src/plugins/lttng-utils/debug-info/utils.h index 27cf93ec..4d9310d9 100644 --- a/src/plugins/lttng-utils/debug-info/utils.h +++ b/src/plugins/lttng-utils/debug-info/utils.h @@ -6,8 +6,8 @@ * Babeltrace - Debug Info Utilities */ -#ifndef BABELTRACE_PLUGIN_DEBUG_INFO_UTILS_H -#define BABELTRACE_PLUGIN_DEBUG_INFO_UTILS_H +#ifndef BABELTRACE_PLUGINS_LTTNG_UTILS_DEBUG_INFO_UTILS_H +#define BABELTRACE_PLUGINS_LTTNG_UTILS_DEBUG_INFO_UTILS_H #include @@ -25,4 +25,4 @@ bool is_event_common_ctx_dbg_info_compatible( const bt_field_class *in_field_class, const char *debug_info_field_class_name); -#endif /* BABELTRACE_PLUGIN_DEBUG_INFO_UTILS_H */ +#endif /* BABELTRACE_PLUGINS_LTTNG_UTILS_DEBUG_INFO_UTILS_H */ diff --git a/src/plugins/text/dmesg/dmesg.h b/src/plugins/text/dmesg/dmesg.h index f4cb3dc1..e3759318 100644 --- a/src/plugins/text/dmesg/dmesg.h +++ b/src/plugins/text/dmesg/dmesg.h @@ -4,8 +4,8 @@ * Copyright 2017 Philippe Proulx */ -#ifndef BABELTRACE_PLUGIN_TEXT_DMESG_DMESG_H -#define BABELTRACE_PLUGIN_TEXT_DMESG_DMESG_H +#ifndef BABELTRACE_PLUGINS_TEXT_DMESG_DMESG_H +#define BABELTRACE_PLUGINS_TEXT_DMESG_DMESG_H #include #include "common/macros.h" @@ -38,4 +38,4 @@ dmesg_msg_iter_can_seek_beginning( bt_message_iterator_class_seek_beginning_method_status dmesg_msg_iter_seek_beginning( bt_self_message_iterator *message_iterator); -#endif /* BABELTRACE_PLUGIN_TEXT_DMESG_DMESG_H */ +#endif /* BABELTRACE_PLUGINS_TEXT_DMESG_DMESG_H */ diff --git a/src/plugins/text/pretty/pretty.h b/src/plugins/text/pretty/pretty.h index b73f3345..f19b18c1 100644 --- a/src/plugins/text/pretty/pretty.h +++ b/src/plugins/text/pretty/pretty.h @@ -4,8 +4,8 @@ * Copyright 2016 Jérémie Galarneau */ -#ifndef BABELTRACE_PLUGIN_TEXT_PRETTY_PRETTY_H -#define BABELTRACE_PLUGIN_TEXT_PRETTY_PRETTY_H +#ifndef BABELTRACE_PLUGINS_TEXT_PRETTY_PRETTY_H +#define BABELTRACE_PLUGINS_TEXT_PRETTY_PRETTY_H #include #include @@ -117,4 +117,4 @@ int pretty_print_discarded_items(struct pretty_component *pretty, void pretty_print_init(void); -#endif /* BABELTRACE_PLUGIN_TEXT_PRETTY_PRETTY_H */ +#endif /* BABELTRACE_PLUGINS_TEXT_PRETTY_PRETTY_H */ diff --git a/src/plugins/utils/counter/counter.h b/src/plugins/utils/counter/counter.h index ad886bb3..302d6993 100644 --- a/src/plugins/utils/counter/counter.h +++ b/src/plugins/utils/counter/counter.h @@ -4,8 +4,8 @@ * Copyright 2017 Philippe Proulx */ -#ifndef BABELTRACE_PLUGINS_UTILS_COUNTER_H -#define BABELTRACE_PLUGINS_UTILS_COUNTER_H +#ifndef BABELTRACE_PLUGINS_UTILS_COUNTER_COUNTER_H +#define BABELTRACE_PLUGINS_UTILS_COUNTER_COUNTER_H #include #include @@ -54,4 +54,4 @@ bt_component_class_sink_consume_method_status counter_consume(bt_self_component_ } #endif -#endif /* BABELTRACE_PLUGINS_UTILS_COUNTER_H */ +#endif /* BABELTRACE_PLUGINS_UTILS_COUNTER_COUNTER_H */ diff --git a/src/plugins/utils/dummy/dummy.h b/src/plugins/utils/dummy/dummy.h index 0a7c6a95..29e4e7cd 100644 --- a/src/plugins/utils/dummy/dummy.h +++ b/src/plugins/utils/dummy/dummy.h @@ -4,8 +4,8 @@ * Copyright 2017 Philippe Proulx */ -#ifndef BABELTRACE_PLUGINS_UTILS_DUMMY_H -#define BABELTRACE_PLUGINS_UTILS_DUMMY_H +#ifndef BABELTRACE_PLUGINS_UTILS_DUMMY_DUMMY_H +#define BABELTRACE_PLUGINS_UTILS_DUMMY_DUMMY_H #include #include @@ -36,4 +36,4 @@ bt_component_class_sink_consume_method_status dummy_consume( } #endif -#endif /* BABELTRACE_PLUGINS_UTILS_DUMMY_H */ +#endif /* BABELTRACE_PLUGINS_UTILS_DUMMY_DUMMY_H */ diff --git a/src/plugins/utils/muxer/upstream-msg-iter.hpp b/src/plugins/utils/muxer/upstream-msg-iter.hpp index 4d89da39..ff24cb36 100644 --- a/src/plugins/utils/muxer/upstream-msg-iter.hpp +++ b/src/plugins/utils/muxer/upstream-msg-iter.hpp @@ -1,4 +1,3 @@ - /* * SPDX-License-Identifier: MIT * diff --git a/src/plugins/utils/trimmer/trimmer.h b/src/plugins/utils/trimmer/trimmer.h index 0cb997a4..d61374f8 100644 --- a/src/plugins/utils/trimmer/trimmer.h +++ b/src/plugins/utils/trimmer/trimmer.h @@ -6,8 +6,8 @@ * BabelTrace - Trace Trimmer Plug-in */ -#ifndef BABELTRACE_PLUGINS_UTILS_TRIMMER_H -#define BABELTRACE_PLUGINS_UTILS_TRIMMER_H +#ifndef BABELTRACE_PLUGINS_UTILS_TRIMMER_TRIMMER_H +#define BABELTRACE_PLUGINS_UTILS_TRIMMER_TRIMMER_H #include "common/macros.h" #include @@ -39,4 +39,4 @@ void trimmer_msg_iter_finalize(bt_self_message_iterator *self_msg_iter); } #endif -#endif /* BABELTRACE_PLUGINS_UTILS_TRIMMER_H */ +#endif /* BABELTRACE_PLUGINS_UTILS_TRIMMER_TRIMMER_H */ diff --git a/src/py-common/py-common.h b/src/py-common/py-common.h index 7d4e3f14..6ba19590 100644 --- a/src/py-common/py-common.h +++ b/src/py-common/py-common.h @@ -6,8 +6,8 @@ * Copyright (c) 2019 Simon Marchi */ -#ifndef BABELTRACE_PY_COMMON_INTERNAL_H -#define BABELTRACE_PY_COMMON_INTERNAL_H +#ifndef BABELTRACE_PY_COMMON_PY_COMMON_H +#define BABELTRACE_PY_COMMON_PY_COMMON_H #include #include @@ -46,4 +46,4 @@ GString *bt_py_common_format_exception(PyObject *py_exc_type, */ GString *bt_py_common_format_current_exception(int log_level); -#endif /* BABELTRACE_PY_COMMON_INTERNAL_H */ +#endif /* BABELTRACE_PY_COMMON_PY_COMMON_H */ diff --git a/src/python-plugin-provider/python-plugin-provider.h b/src/python-plugin-provider/python-plugin-provider.h index 74694714..3393cba2 100644 --- a/src/python-plugin-provider/python-plugin-provider.h +++ b/src/python-plugin-provider/python-plugin-provider.h @@ -4,8 +4,8 @@ * Copyright 2017-2018 Philippe Proulx */ -#ifndef BABELTRACE_PLUGIN_PYTHON_PLUGIN_PROVIDER_INTERNAL_H -#define BABELTRACE_PLUGIN_PYTHON_PLUGIN_PROVIDER_INTERNAL_H +#ifndef BABELTRACE_PYTHON_PLUGIN_PROVIDER_PYTHON_PLUGIN_PROVIDER_H +#define BABELTRACE_PYTHON_PLUGIN_PROVIDER_PYTHON_PLUGIN_PROVIDER_H #include #include @@ -15,4 +15,4 @@ int bt_plugin_python_create_all_from_file(const char *path, bool fail_on_load_error, struct bt_plugin_set **plugin_set_out); -#endif /* BABELTRACE_PLUGIN_PYTHON_PLUGIN_PROVIDER_INTERNAL_H */ +#endif /* BABELTRACE_PYTHON_PLUGIN_PROVIDER_PYTHON_PLUGIN_PROVIDER_H */ diff --git a/src/string-format/format-error.h b/src/string-format/format-error.h index 25da4648..799c397f 100644 --- a/src/string-format/format-error.h +++ b/src/string-format/format-error.h @@ -4,8 +4,8 @@ * Copyright (C) 2019 EfficiOS, Inc. */ -#ifndef _BABELTRACE_STRING_FORMAT_FORMAT_ERROR_H -#define _BABELTRACE_STRING_FORMAT_FORMAT_ERROR_H +#ifndef BABELTRACE_STRING_FORMAT_FORMAT_ERROR_H +#define BABELTRACE_STRING_FORMAT_FORMAT_ERROR_H #include #include @@ -24,4 +24,4 @@ gchar *format_bt_error( bt_logging_level log_level, enum bt_common_color_when use_colors); -#endif /* _BABELTRACE_STRING_FORMAT_FORMAT_ERROR_H */ +#endif /* BABELTRACE_STRING_FORMAT_FORMAT_ERROR_H */ diff --git a/src/string-format/format-plugin-comp-cls-name.h b/src/string-format/format-plugin-comp-cls-name.h index 25050042..3508da33 100644 --- a/src/string-format/format-plugin-comp-cls-name.h +++ b/src/string-format/format-plugin-comp-cls-name.h @@ -4,8 +4,8 @@ * Copyright (C) 2019 EfficiOS, Inc. */ -#ifndef _BABELTRACE_STRING_FORMAT_FORMAT_PLUGIN_COMP_CLS_NAME_H -#define _BABELTRACE_STRING_FORMAT_FORMAT_PLUGIN_COMP_CLS_NAME_H +#ifndef BABELTRACE_STRING_FORMAT_FORMAT_PLUGIN_COMP_CLS_NAME_H +#define BABELTRACE_STRING_FORMAT_FORMAT_PLUGIN_COMP_CLS_NAME_H #include #include @@ -16,4 +16,4 @@ gchar *format_plugin_comp_cls_opt(const char *plugin_name, const char *comp_cls_name, bt_component_class_type type, enum bt_common_color_when use_colors); -#endif /* _BABELTRACE_STRING_FORMAT_FORMAT_PLUGIN_COMP_CLS_NAME_H */ +#endif /* BABELTRACE_STRING_FORMAT_FORMAT_PLUGIN_COMP_CLS_NAME_H */ diff --git a/tests/data/plugins/flt.lttng-utils.debug-info/libhello.h b/tests/data/plugins/flt.lttng-utils.debug-info/libhello.h index 173ffeb0..ada3bbf1 100644 --- a/tests/data/plugins/flt.lttng-utils.debug-info/libhello.h +++ b/tests/data/plugins/flt.lttng-utils.debug-info/libhello.h @@ -6,11 +6,11 @@ * Debug Info - Tests */ -#ifndef _LIBHELLO_H -#define _LIBHELLO_H +#ifndef BABELTRACE_TESTS_DATA_PLUGINS_FLT_LTTNG_UTILS_DEBUG_INFO_LIBHELLO_H +#define BABELTRACE_TESTS_DATA_PLUGINS_FLT_LTTNG_UTILS_DEBUG_INFO_LIBHELLO_H void foo(); void bar(); void baz(); -#endif /* _LIBHELLO_H */ +#endif /* BABELTRACE_TESTS_DATA_PLUGINS_FLT_LTTNG_UTILS_DEBUG_INFO_LIBHELLO_H */ diff --git a/tests/lib/conds/clk-cls-compat-postconds-triggers.hpp b/tests/lib/conds/clk-cls-compat-postconds-triggers.hpp index cabf25cf..7f28e20f 100644 --- a/tests/lib/conds/clk-cls-compat-postconds-triggers.hpp +++ b/tests/lib/conds/clk-cls-compat-postconds-triggers.hpp @@ -4,11 +4,11 @@ * Copyright (C) 2024 EfficiOS Inc. */ -#ifndef TESTS_LIB_CONDS_CLK_CLS_COMPAT_POSTCONDS_TRIGGERS_HPP -#define TESTS_LIB_CONDS_CLK_CLS_COMPAT_POSTCONDS_TRIGGERS_HPP +#ifndef BABELTRACE_TESTS_LIB_CONDS_CLK_CLS_COMPAT_POSTCONDS_TRIGGERS_HPP +#define BABELTRACE_TESTS_LIB_CONDS_CLK_CLS_COMPAT_POSTCONDS_TRIGGERS_HPP #include "utils.hpp" void addClkClsCompatTriggers(CondTriggers& triggers); -#endif +#endif /* BABELTRACE_TESTS_LIB_CONDS_CLK_CLS_COMPAT_POSTCONDS_TRIGGERS_HPP */ diff --git a/tests/lib/conds/utils.hpp b/tests/lib/conds/utils.hpp index 2ea53bc4..7833c072 100644 --- a/tests/lib/conds/utils.hpp +++ b/tests/lib/conds/utils.hpp @@ -4,8 +4,8 @@ * Copyright (C) 2020 Philippe Proulx */ -#ifndef TESTS_LIB_CONDS_UTILS_HPP -#define TESTS_LIB_CONDS_UTILS_HPP +#ifndef BABELTRACE_TESTS_LIB_CONDS_UTILS_HPP +#define BABELTRACE_TESTS_LIB_CONDS_UTILS_HPP #include #include @@ -180,4 +180,4 @@ using CondTriggers = std::vector; */ void condMain(const bt2s::span argv, const CondTriggers& triggers) noexcept; -#endif /* TESTS_LIB_CONDS_UTILS_HPP */ +#endif /* BABELTRACE_TESTS_LIB_CONDS_UTILS_HPP */ diff --git a/tests/lib/utils/run-in.hpp b/tests/lib/utils/run-in.hpp index 54e8ec20..62770b5d 100644 --- a/tests/lib/utils/run-in.hpp +++ b/tests/lib/utils/run-in.hpp @@ -4,8 +4,8 @@ * Copyright (C) 2020-2023 EfficiOS, inc. */ -#ifndef TESTS_LIB_UTILS_RUN_IN_HPP -#define TESTS_LIB_UTILS_RUN_IN_HPP +#ifndef BABELTRACE_TESTS_LIB_UTILS_RUN_IN_HPP +#define BABELTRACE_TESTS_LIB_UTILS_RUN_IN_HPP #include @@ -52,4 +52,4 @@ public: */ void runIn(RunIn& runIn); -#endif /* TESTS_LIB_UTILS_RUN_IN_HPP */ +#endif /* BABELTRACE_TESTS_LIB_UTILS_RUN_IN_HPP */ diff --git a/tests/utils/common.h b/tests/utils/common.h index cbd96cf1..1831d5de 100644 --- a/tests/utils/common.h +++ b/tests/utils/common.h @@ -7,9 +7,9 @@ * Lib BabelTrace - Common function to all tests */ -#ifndef TESTS_UTILS_COMMON_H -#define TESTS_UTILS_COMMON_H +#ifndef BABELTRACE_TESTS_UTILS_COMMON_H +#define BABELTRACE_TESTS_UTILS_COMMON_H void recursive_rmdir(const char *path); -#endif /* TESTS_UTILS_COMMON_H */ +#endif /* BABELTRACE_TESTS_UTILS_COMMON_H */ -- 2.34.1