lib: add aliases for Babeltrace structure types
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Sat, 8 Dec 2018 17:30:25 +0000 (12:30 -0500)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 2 May 2019 20:50:15 +0000 (20:50 +0000)
And uses aliases in CLI, plugins, and tests.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
141 files changed:
cli/babeltrace-cfg-cli-args-connect.c
cli/babeltrace-cfg-cli-args-connect.h
cli/babeltrace-cfg-cli-args-default.c
cli/babeltrace-cfg-cli-args.c
cli/babeltrace-cfg-cli-args.h
cli/babeltrace-cfg.c
cli/babeltrace-cfg.h
cli/babeltrace.c
include/babeltrace/graph/component-class-const.h
include/babeltrace/graph/component-class-filter-const.h
include/babeltrace/graph/component-class-filter.h
include/babeltrace/graph/component-class-sink-const.h
include/babeltrace/graph/component-class-sink.h
include/babeltrace/graph/component-class-source-const.h
include/babeltrace/graph/component-class-source.h
include/babeltrace/graph/component-class.h
include/babeltrace/graph/component-const.h
include/babeltrace/graph/component-filter-const.h
include/babeltrace/graph/component-sink-const.h
include/babeltrace/graph/component-source-const.h
include/babeltrace/graph/connection-const.h
include/babeltrace/graph/graph-const.h
include/babeltrace/graph/graph.h
include/babeltrace/graph/notification-const.h
include/babeltrace/graph/notification-event-const.h
include/babeltrace/graph/notification-event.h
include/babeltrace/graph/notification-inactivity-const.h
include/babeltrace/graph/notification-inactivity.h
include/babeltrace/graph/notification-iterator.h
include/babeltrace/graph/notification-packet-const.h
include/babeltrace/graph/notification-packet.h
include/babeltrace/graph/notification-stream-const.h
include/babeltrace/graph/notification-stream.h
include/babeltrace/graph/port-const.h
include/babeltrace/graph/port-input-const.h
include/babeltrace/graph/port-output-const.h
include/babeltrace/graph/port-output-notification-iterator.h
include/babeltrace/graph/query-executor-const.h
include/babeltrace/graph/query-executor.h
include/babeltrace/graph/self-component-class-filter.h
include/babeltrace/graph/self-component-class-sink.h
include/babeltrace/graph/self-component-class-source.h
include/babeltrace/graph/self-component-filter.h
include/babeltrace/graph/self-component-port-input-notification-iterator.h
include/babeltrace/graph/self-component-port-input.h
include/babeltrace/graph/self-component-port-output.h
include/babeltrace/graph/self-component-port.h
include/babeltrace/graph/self-component-sink.h
include/babeltrace/graph/self-component-source.h
include/babeltrace/graph/self-component.h
include/babeltrace/graph/self-notification-iterator.h
include/babeltrace/plugin/plugin-const.h
include/babeltrace/plugin/plugin-dev.h
include/babeltrace/plugin/plugin-set-const.h
include/babeltrace/trace-ir/clock-class-const.h
include/babeltrace/trace-ir/clock-class.h
include/babeltrace/trace-ir/clock-value-const.h
include/babeltrace/trace-ir/event-class-const.h
include/babeltrace/trace-ir/event-class.h
include/babeltrace/trace-ir/event-const.h
include/babeltrace/trace-ir/event-header-field.h
include/babeltrace/trace-ir/event.h
include/babeltrace/trace-ir/field-class-const.h
include/babeltrace/trace-ir/field-class.h
include/babeltrace/trace-ir/field-const.h
include/babeltrace/trace-ir/field-path-const.h
include/babeltrace/trace-ir/field.h
include/babeltrace/trace-ir/packet-const.h
include/babeltrace/trace-ir/packet-context-field.h
include/babeltrace/trace-ir/packet-header-field.h
include/babeltrace/trace-ir/packet.h
include/babeltrace/trace-ir/stream-class-const.h
include/babeltrace/trace-ir/stream-class.h
include/babeltrace/trace-ir/stream-const.h
include/babeltrace/trace-ir/stream.h
include/babeltrace/trace-ir/trace-class-const.h
include/babeltrace/trace-ir/trace-class.h
include/babeltrace/trace-ir/trace-const.h
include/babeltrace/trace-ir/trace.h
include/babeltrace/types.h
include/babeltrace/value-const.h
include/babeltrace/value.h
plugins/ctf/common/metadata/ast.h
plugins/ctf/common/metadata/ctf-meta-translate.c
plugins/ctf/common/metadata/ctf-meta-update-default-clock-classes.c
plugins/ctf/common/metadata/ctf-meta-visitors.h
plugins/ctf/common/metadata/ctf-meta.h
plugins/ctf/common/metadata/decoder.c
plugins/ctf/common/metadata/decoder.h
plugins/ctf/common/metadata/visitor-generate-ir.c
plugins/ctf/common/notif-iter/notif-iter.c
plugins/ctf/common/notif-iter/notif-iter.h
plugins/ctf/fs-sink/write.c
plugins/ctf/fs-sink/writer.c
plugins/ctf/fs-sink/writer.h
plugins/ctf/fs-src/data-stream-file.c
plugins/ctf/fs-src/data-stream-file.h
plugins/ctf/fs-src/fs.c
plugins/ctf/fs-src/fs.h
plugins/ctf/fs-src/query.c
plugins/ctf/fs-src/query.h
plugins/ctf/lttng-live/data-stream.c
plugins/ctf/lttng-live/lttng-live-internal.h
plugins/ctf/lttng-live/lttng-live.c
plugins/ctf/lttng-live/metadata.c
plugins/ctf/lttng-live/viewer-connection.c
plugins/ctf/lttng-live/viewer-connection.h
plugins/libctfcopytrace/clock-fields.c
plugins/libctfcopytrace/clock-fields.h
plugins/libctfcopytrace/ctfcopytrace.c
plugins/libctfcopytrace/ctfcopytrace.h
plugins/lttng-utils/copy.c
plugins/lttng-utils/copy.h
plugins/lttng-utils/debug-info.c
plugins/lttng-utils/debug-info.h
plugins/lttng-utils/plugin.c
plugins/text/dmesg/dmesg.c
plugins/text/dmesg/dmesg.h
plugins/text/pretty/pretty.c
plugins/text/pretty/pretty.h
plugins/text/pretty/print.c
plugins/utils/counter/counter.c
plugins/utils/counter/counter.h
plugins/utils/dummy/dummy.c
plugins/utils/dummy/dummy.h
plugins/utils/muxer/muxer.c
plugins/utils/muxer/muxer.h
plugins/utils/trimmer/copy.c
plugins/utils/trimmer/copy.h
plugins/utils/trimmer/iterator.c
plugins/utils/trimmer/iterator.h
plugins/utils/trimmer/trimmer.c
plugins/utils/trimmer/trimmer.h
python-plugin-provider/python-plugin-provider.c
tests/lib/test-plugin-plugins/minimal.c
tests/lib/test-plugin-plugins/sfs.c
tests/lib/test_bt_notification_iterator.c
tests/lib/test_bt_values.c
tests/lib/test_graph_topo.c
tests/lib/test_plugin.c
tests/lib/test_trace_ir_ref.c

index 020fbdcc137e3f4b7a98252bd3409eeef992e791..ff3bf91701fb3c125f5d990688243c3c500ce88e 100644 (file)
@@ -507,7 +507,7 @@ end:
 }
 
 static int validate_all_components_connected_in_array(GPtrArray *comps,
-               const struct bt_value *connected_components,
+               const bt_value *connected_components,
                char *error_buf, size_t error_buf_size)
 {
        int ret = 0;
@@ -535,7 +535,7 @@ static int validate_all_components_connected(struct bt_config *cfg,
 {
        size_t i;
        int ret = 0;
-       struct bt_value *connected_components = bt_value_map_create();
+       bt_value *connected_components = bt_value_map_create();
 
        if (!connected_components) {
                ret = -1;
@@ -593,7 +593,7 @@ static int validate_no_duplicate_connection(struct bt_config *cfg,
 {
        size_t i;
        int ret = 0;
-       struct bt_value *flat_connection_names =
+       bt_value *flat_connection_names =
                bt_value_map_create();
        GString *flat_connection_name = NULL;
 
@@ -679,7 +679,7 @@ end:
 }
 
 int bt_config_cli_args_create_connections(struct bt_config *cfg,
-               const struct bt_value *connection_args,
+               const bt_value *connection_args,
                char *error_buf, size_t error_buf_size)
 {
        int ret;
@@ -692,7 +692,7 @@ int bt_config_cli_args_create_connections(struct bt_config *cfg,
        }
 
        for (i = 0; i < bt_value_array_get_size(connection_args); i++) {
-               const struct bt_value *arg_value =
+               const bt_value *arg_value =
                        bt_value_array_borrow_element_by_index_const(
                                connection_args, i);
                const char *arg;
index 7814bcd597c5cddaa663d27e51b29503d7c33d39..5e81f794062f246aae02a8de80f01acc207ffe45 100644 (file)
@@ -30,7 +30,7 @@
 #include "babeltrace-cfg.h"
 
 int bt_config_cli_args_create_connections(struct bt_config *cfg,
-               const struct bt_value *connection_args,
+               const bt_value *connection_args,
                char *error_buf, size_t error_buf_size);
 
 #endif /* CLI_BABELTRACE_CFG_CLI_ARGS_CONNECT_H */
index 27eae102dd11b6411b954750cab60956ee6efb97..ec7b4803993e4cd474dafbcbb84a65d17ac45b3f 100644 (file)
@@ -37,7 +37,7 @@
 struct bt_config *bt_config_cli_args_create_with_default(int argc,
                const char *argv[], int *retcode)
 {
-       struct bt_value *initial_plugin_paths;
+       bt_value *initial_plugin_paths;
        struct bt_config *cfg = NULL;
        int ret;
 
index d881e75c6160633d61598efaa3614e7912d20351..1a41bcbf29859707cf45c772521d931c7a42f488 100644 (file)
@@ -83,7 +83,7 @@ struct ini_parsing_state {
        GScanner *scanner;
 
        /* Output map value object being filled (owned by this) */
-       struct bt_value *params;
+       bt_value *params;
 
        /* Next expected FSM state */
        enum ini_parsing_fsm_state expecting;
@@ -120,8 +120,8 @@ struct text_legacy_opts {
        GString *output;
        GString *dbg_info_dir;
        GString *dbg_info_target_prefix;
-       const struct bt_value *names;
-       const struct bt_value *fields;
+       const bt_value *names;
+       const bt_value *fields;
 
        /* Flags */
        bool no_delta;
@@ -193,7 +193,7 @@ int ini_handle_state(struct ini_parsing_state *state)
 {
        int ret = 0;
        GTokenType token_type;
-       struct bt_value *value = NULL;
+       bt_value *value = NULL;
 
        token_type = g_scanner_get_next_token(state->scanner);
        if (token_type == G_TOKEN_EOF) {
@@ -427,7 +427,7 @@ end:
  * Return value is owned by the caller.
  */
 static
-struct bt_value *bt_value_from_ini(const char *arg,
+bt_value *bt_value_from_ini(const char *arg,
                GString *ini_error)
 {
        /* Lexical scanner configuration */
@@ -553,9 +553,9 @@ end:
  * Return value is owned by the caller.
  */
 static
-struct bt_value *bt_value_from_arg(const char *arg)
+bt_value *bt_value_from_arg(const char *arg)
 {
-       struct bt_value *params = NULL;
+       bt_value *params = NULL;
        GString *ini_error = NULL;
 
        ini_error = g_string_new(NULL);
@@ -738,7 +738,7 @@ void print_version(void)
  * Destroys a component configuration.
  */
 static
-void bt_config_component_destroy(struct bt_object *obj)
+void bt_config_component_destroy(bt_object *obj)
 {
        struct bt_config_component *bt_config_component =
                container_of(obj, struct bt_config_component, base);
@@ -866,7 +866,7 @@ end:
  * Destroys a configuration.
  */
 static
-void bt_config_destroy(struct bt_object *obj)
+void bt_config_destroy(bt_object *obj)
 {
        struct bt_config *cfg =
                container_of(obj, struct bt_config, base);
@@ -1007,10 +1007,10 @@ GScanner *create_csv_identifiers_scanner(void)
  * Return value is owned by the caller.
  */
 static
-struct bt_value *names_from_arg(const char *arg)
+bt_value *names_from_arg(const char *arg)
 {
        GScanner *scanner = NULL;
-       struct bt_value *names = NULL;
+       bt_value *names = NULL;
        bool found_all = false, found_none = false, found_item = false;
 
        names = bt_value_array_create();
@@ -1119,10 +1119,10 @@ error:
  * Return value is owned by the caller.
  */
 static
-struct bt_value *fields_from_arg(const char *arg)
+bt_value *fields_from_arg(const char *arg)
 {
        GScanner *scanner = NULL;
-       struct bt_value *fields;
+       bt_value *fields;
 
        fields = bt_value_array_create();
        if (!fields) {
@@ -1208,7 +1208,7 @@ void append_param_arg(GString *params_arg, const char *key, const char *value)
  */
 static
 int insert_flat_params_from_array(GString *params_arg,
-               const struct bt_value *names_array, const char *prefix)
+               const bt_value *names_array, const char *prefix)
 {
        int ret = 0;
        int i;
@@ -1238,7 +1238,7 @@ int insert_flat_params_from_array(GString *params_arg,
        }
 
        for (i = 0; i < bt_value_array_get_size(names_array); i++) {
-               const struct bt_value *str_obj =
+               const bt_value *str_obj =
                        bt_value_array_borrow_element_by_index_const(names_array,
                                                                     i);
                const char *suffix;
@@ -1379,7 +1379,7 @@ static
 int add_run_cfg_comp_check_name(struct bt_config *cfg,
                struct bt_config_component *cfg_comp,
                enum bt_config_component_dest dest,
-               struct bt_value *instance_names)
+               bt_value *instance_names)
 {
        int ret = 0;
 
@@ -1411,7 +1411,7 @@ end:
 }
 
 static
-int append_env_var_plugin_paths(struct bt_value *plugin_paths)
+int append_env_var_plugin_paths(bt_value *plugin_paths)
 {
        int ret = 0;
        const char *envvar;
@@ -1437,7 +1437,7 @@ end:
 }
 
 static
-int append_home_and_system_plugin_paths(struct bt_value *plugin_paths,
+int append_home_and_system_plugin_paths(bt_value *plugin_paths,
                bool omit_system_plugin_path, bool omit_home_plugin_path)
 {
        int ret;
@@ -1484,7 +1484,7 @@ int append_home_and_system_plugin_paths_cfg(struct bt_config *cfg)
 
 static
 struct bt_config *bt_config_base_create(enum bt_config_command command,
-               const struct bt_value *initial_plugin_paths,
+               const bt_value *initial_plugin_paths,
                bool needs_plugins)
 {
        struct bt_config *cfg;
@@ -1501,7 +1501,7 @@ struct bt_config *bt_config_base_create(enum bt_config_command command,
        cfg->command_needs_plugins = needs_plugins;
 
        if (initial_plugin_paths) {
-               struct bt_value *initial_plugin_paths_copy;
+               bt_value *initial_plugin_paths_copy;
 
                (void) bt_value_copy(initial_plugin_paths,
                        &initial_plugin_paths_copy);
@@ -1525,7 +1525,7 @@ end:
 
 static
 struct bt_config *bt_config_run_create(
-               const struct bt_value *initial_plugin_paths)
+               const bt_value *initial_plugin_paths)
 {
        struct bt_config *cfg;
 
@@ -1575,7 +1575,7 @@ end:
 
 static
 struct bt_config *bt_config_list_plugins_create(
-               const struct bt_value *initial_plugin_paths)
+               const bt_value *initial_plugin_paths)
 {
        struct bt_config *cfg;
 
@@ -1597,7 +1597,7 @@ end:
 
 static
 struct bt_config *bt_config_help_create(
-               const struct bt_value *initial_plugin_paths)
+               const bt_value *initial_plugin_paths)
 {
        struct bt_config *cfg;
 
@@ -1625,7 +1625,7 @@ end:
 
 static
 struct bt_config *bt_config_query_create(
-               const struct bt_value *initial_plugin_paths)
+               const bt_value *initial_plugin_paths)
 {
        struct bt_config *cfg;
 
@@ -1653,7 +1653,7 @@ end:
 
 static
 struct bt_config *bt_config_print_ctf_metadata_create(
-               const struct bt_value *initial_plugin_paths)
+               const bt_value *initial_plugin_paths)
 {
        struct bt_config *cfg;
 
@@ -1687,7 +1687,7 @@ end:
 
 static
 struct bt_config *bt_config_print_lttng_live_sessions_create(
-               const struct bt_value *initial_plugin_paths)
+               const bt_value *initial_plugin_paths)
 {
        struct bt_config *cfg;
 
@@ -1722,7 +1722,7 @@ end:
 
 static
 int bt_config_append_plugin_paths_check_setuid_setgid(
-               struct bt_value *plugin_paths, const char *arg)
+               bt_value *plugin_paths, const char *arg)
 {
        int ret = 0;
 
@@ -1823,7 +1823,7 @@ static
 struct bt_config *bt_config_help_from_args(int argc, const char *argv[],
                int *retcode, bool force_omit_system_plugin_path,
                bool force_omit_home_plugin_path,
-               const struct bt_value *initial_plugin_paths)
+               const bt_value *initial_plugin_paths)
 {
        poptContext pc = NULL;
        char *arg = NULL;
@@ -1985,7 +1985,7 @@ static
 struct bt_config *bt_config_query_from_args(int argc, const char *argv[],
                int *retcode, bool force_omit_system_plugin_path,
                bool force_omit_home_plugin_path,
-               const struct bt_value *initial_plugin_paths)
+               const bt_value *initial_plugin_paths)
 {
        poptContext pc = NULL;
        char *arg = NULL;
@@ -1993,7 +1993,7 @@ struct bt_config *bt_config_query_from_args(int argc, const char *argv[],
        int ret;
        struct bt_config *cfg = NULL;
        const char *leftover;
-       struct bt_value *params = bt_value_null;
+       bt_value *params = bt_value_null;
 
        *retcode = 0;
        cfg = bt_config_query_create(initial_plugin_paths);
@@ -2174,7 +2174,7 @@ static
 struct bt_config *bt_config_list_plugins_from_args(int argc, const char *argv[],
                int *retcode, bool force_omit_system_plugin_path,
                bool force_omit_home_plugin_path,
-               const struct bt_value *initial_plugin_paths)
+               const bt_value *initial_plugin_paths)
 {
        poptContext pc = NULL;
        char *arg = NULL;
@@ -2364,18 +2364,18 @@ static
 struct bt_config *bt_config_run_from_args(int argc, const char *argv[],
                int *retcode, bool force_omit_system_plugin_path,
                bool force_omit_home_plugin_path,
-               const struct bt_value *initial_plugin_paths)
+               const bt_value *initial_plugin_paths)
 {
        poptContext pc = NULL;
        char *arg = NULL;
        struct bt_config_component *cur_cfg_comp = NULL;
        enum bt_config_component_dest cur_cfg_comp_dest =
                        BT_CONFIG_COMPONENT_DEST_UNKNOWN;
-       struct bt_value *cur_base_params = NULL;
+       bt_value *cur_base_params = NULL;
        int opt, ret = 0;
        struct bt_config *cfg = NULL;
-       struct bt_value *instance_names = NULL;
-       struct bt_value *connection_args = NULL;
+       bt_value *instance_names = NULL;
+       bt_value *connection_args = NULL;
        GString *cur_param_key = NULL;
        char error_buf[256] = { 0 };
        long retry_duration = -1;
@@ -2516,8 +2516,8 @@ struct bt_config *bt_config_run_from_args(int argc, const char *argv[],
                }
                case OPT_PARAMS:
                {
-                       struct bt_value *params;
-                       struct bt_value *params_to_set;
+                       bt_value *params;
+                       bt_value *params_to_set;
 
                        if (!cur_cfg_comp) {
                                printf_err("Cannot add parameters to unavailable component:\n    %s\n",
@@ -2582,7 +2582,7 @@ struct bt_config *bt_config_run_from_args(int argc, const char *argv[],
                        break;
                case OPT_BASE_PARAMS:
                {
-                       struct bt_value *params =
+                       bt_value *params =
                                bt_value_from_arg(arg);
 
                        if (!params) {
@@ -2703,10 +2703,10 @@ end:
 }
 
 static
-struct bt_config *bt_config_run_from_args_array(const struct bt_value *run_args,
+struct bt_config *bt_config_run_from_args_array(const bt_value *run_args,
                int *retcode, bool force_omit_system_plugin_path,
                bool force_omit_home_plugin_path,
-               const struct bt_value *initial_plugin_paths)
+               const bt_value *initial_plugin_paths)
 {
        struct bt_config *cfg = NULL;
        const char **argv;
@@ -2727,7 +2727,7 @@ struct bt_config *bt_config_run_from_args_array(const struct bt_value *run_args,
                goto end;
        }
        for (i = 0; i < len; i++) {
-               const struct bt_value *arg_value =
+               const bt_value *arg_value =
                        bt_value_array_borrow_element_by_index_const(run_args,
                                                                     i);
                const char *arg;
@@ -2927,7 +2927,7 @@ struct poptOption convert_long_options[] = {
 
 static
 GString *get_component_auto_name(const char *prefix,
-               const struct bt_value *existing_names)
+               const bt_value *existing_names)
 {
        unsigned int i = 0;
        GString *auto_name = g_string_new(NULL);
@@ -2956,12 +2956,12 @@ struct implicit_component_args {
        GString *comp_arg;
        GString *name_arg;
        GString *params_arg;
-       struct bt_value *extra_params;
+       bt_value *extra_params;
 };
 
 static
 int assign_name_to_implicit_component(struct implicit_component_args *args,
-               const char *prefix, struct bt_value *existing_names,
+               const char *prefix, bt_value *existing_names,
                GList **comp_names, bool append_to_comp_names)
 {
        int ret = 0;
@@ -3004,7 +3004,7 @@ end:
 static
 int append_run_args_for_implicit_component(
                struct implicit_component_args *impl_args,
-               struct bt_value *run_args)
+               bt_value *run_args)
 {
        int ret = 0;
        size_t i;
@@ -3048,7 +3048,7 @@ int append_run_args_for_implicit_component(
 
        for (i = 0; i < bt_value_array_get_size(impl_args->extra_params);
                        i++) {
-               const struct bt_value *elem;
+               const bt_value *elem;
                const char *arg;
 
                elem = bt_value_array_borrow_element_by_index(impl_args->extra_params,
@@ -3181,8 +3181,8 @@ end:
 static
 int convert_append_name_param(enum bt_config_component_dest dest,
                GString *cur_name, GString *cur_name_prefix,
-               struct bt_value *run_args,
-               struct bt_value *all_names,
+               bt_value *run_args,
+               bt_value *all_names,
                GList **source_names, GList **filter_names,
                GList **sink_names)
 {
@@ -3307,7 +3307,7 @@ end:
  * function.
  */
 static
-int append_connect_arg(struct bt_value *run_args,
+int append_connect_arg(bt_value *run_args,
                const char *upstream_name, const char *downstream_name)
 {
        int ret = 0;
@@ -3358,7 +3358,7 @@ end:
  * Appends the run command's --connect options for the convert command.
  */
 static
-int convert_auto_connect(struct bt_value *run_args,
+int convert_auto_connect(bt_value *run_args,
                GList *source_names, GList *filter_names,
                GList *sink_names)
 {
@@ -3580,7 +3580,7 @@ static
 struct bt_config *bt_config_convert_from_args(int argc, const char *argv[],
                int *retcode, bool force_omit_system_plugin_path,
                bool force_omit_home_plugin_path,
-               const struct bt_value *initial_plugin_paths, char *log_level)
+               const bt_value *initial_plugin_paths, char *log_level)
 {
        poptContext pc = NULL;
        char *arg = NULL;
@@ -3599,8 +3599,8 @@ struct bt_config *bt_config_convert_from_args(int argc, const char *argv[],
        bool print_run_args = false;
        bool print_run_args_0 = false;
        bool print_ctf_metadata = false;
-       struct bt_value *run_args = NULL;
-       struct bt_value *all_names = NULL;
+       bt_value *run_args = NULL;
+       bt_value *all_names = NULL;
        GList *source_names = NULL;
        GList *filter_names = NULL;
        GList *sink_names = NULL;
@@ -3614,7 +3614,7 @@ struct bt_config *bt_config_convert_from_args(int argc, const char *argv[],
        struct implicit_component_args implicit_debug_info_args = { 0 };
        struct implicit_component_args implicit_muxer_args = { 0 };
        struct implicit_component_args implicit_trimmer_args = { 0 };
-       struct bt_value *plugin_paths;
+       bt_value *plugin_paths;
        char error_buf[256] = { 0 };
        size_t i;
        struct bt_common_lttng_live_url_parts lttng_live_url_parts = { 0 };
@@ -4154,7 +4154,7 @@ struct bt_config *bt_config_convert_from_args(int argc, const char *argv[],
                        break;
                case OPT_FIELDS:
                {
-                       struct bt_value *fields = fields_from_arg(arg);
+                       bt_value *fields = fields_from_arg(arg);
 
                        if (!fields) {
                                goto error;
@@ -4172,7 +4172,7 @@ struct bt_config *bt_config_convert_from_args(int argc, const char *argv[],
                }
                case OPT_NAMES:
                {
-                       struct bt_value *names = names_from_arg(arg);
+                       bt_value *names = names_from_arg(arg);
 
                        if (!names) {
                                goto error;
@@ -4672,7 +4672,7 @@ struct bt_config *bt_config_convert_from_args(int argc, const char *argv[],
                }
 
                for (i = 0; i < bt_value_array_get_size(run_args); i++) {
-                       const struct bt_value *arg_value =
+                       const bt_value *arg_value =
                                bt_value_array_borrow_element_by_index(run_args,
                                                                       i);
                        const char *arg;
@@ -4830,7 +4830,7 @@ char log_level_from_arg(const char *arg)
 struct bt_config *bt_config_cli_args_create(int argc, const char *argv[],
                int *retcode, bool force_omit_system_plugin_path,
                bool force_omit_home_plugin_path,
-               const struct bt_value *initial_plugin_paths)
+               const bt_value *initial_plugin_paths)
 {
        struct bt_config *config = NULL;
        int i;
index ff9a329126e7ebeb312a913965144998551420f4..78899c56d74d9258af304dae72d1a0bc5037585d 100644 (file)
@@ -36,6 +36,6 @@
 struct bt_config *bt_config_cli_args_create(int argc, const char *argv[],
                int *retcode, bool force_omit_system_plugin_path,
                bool force_omit_home_plugin_path,
-               const struct bt_value *initial_plugin_paths);
+               const bt_value *initial_plugin_paths);
 
 #endif /* CLI_BABELTRACE_CFG_CLI_ARGS_H */
index f4d836ae2858bfbb98538d8a83f31988b5d84101..1205b21d88579d9bcad3b25ed07089cf395e367d 100644 (file)
@@ -38,7 +38,7 @@ void destroy_gstring(void *data)
  * and appends them to the array value object plugin_paths.
  */
 int bt_config_append_plugin_paths(
-               struct bt_value *plugin_paths, const char *arg)
+               bt_value *plugin_paths, const char *arg)
 {
        int ret = 0;
        GPtrArray *dirs = g_ptr_array_new_with_free_func(destroy_gstring);
index e8796652514a35d218ce9e6bce828efd6790d3a7..7ccf9515580493e0816c2f9ab9481b7c6617a083 100644 (file)
@@ -44,11 +44,11 @@ enum bt_config_command {
 };
 
 struct bt_config_component {
-       struct bt_object base;
+       bt_object base;
        enum bt_component_class_type type;
        GString *plugin_name;
        GString *comp_cls_name;
-       struct bt_value *params;
+       bt_value *params;
        GString *instance_name;
 };
 
@@ -61,10 +61,10 @@ struct bt_config_connection {
 };
 
 struct bt_config {
-       struct bt_object base;
+       bt_object base;
        bool debug;
        bool verbose;
-       struct bt_value *plugin_paths;
+       bt_value *plugin_paths;
        bool omit_system_plugin_path;
        bool omit_home_plugin_path;
        bool command_needs_plugins;
@@ -134,7 +134,7 @@ struct bt_config_component *bt_config_get_component(GPtrArray *array,
        return comp;
 }
 
-int bt_config_append_plugin_paths(struct bt_value *plugin_paths,
+int bt_config_append_plugin_paths(bt_value *plugin_paths,
                const char *arg);
 
 void bt_config_connection_destroy(struct bt_config_connection *connection);
index 3dc37e19723a73dcb1b5962cc890fe244a98793d..0f3b05ca60a6b996788569e2e353a865f911b357 100644 (file)
@@ -69,8 +69,8 @@ static const char* log_level_env_var_names[] = {
 };
 
 /* Application's processing graph (weak) */
-static struct bt_graph *the_graph;
-static struct bt_query_executor *the_query_executor;
+static bt_graph *the_graph;
+static bt_query_executor *the_query_executor;
 static bool canceled = false;
 
 GPtrArray *loaded_plugins;
@@ -169,11 +169,11 @@ void destroy_the_query_executor(void)
 }
 
 static
-int query(const struct bt_component_class *comp_cls, const char *obj,
-               const struct bt_value *params, const struct bt_value **user_result,
+int query(const bt_component_class *comp_cls, const char *obj,
+               const bt_value *params, const bt_value **user_result,
                const char **fail_reason)
 {
-       const struct bt_value *result = NULL;
+       const bt_value *result = NULL;
        enum bt_query_executor_status status;
        *fail_reason = "unknown error";
        int ret = 0;
@@ -261,10 +261,10 @@ end:
 }
 
 static
-const struct bt_plugin *find_plugin(const char *name)
+const bt_plugin *find_plugin(const char *name)
 {
        int i;
-       const struct bt_plugin *plugin = NULL;
+       const bt_plugin *plugin = NULL;
 
        BT_ASSERT(name);
        BT_LOGD("Finding plugin: name=\"%s\"", name);
@@ -292,7 +292,7 @@ const struct bt_plugin *find_plugin(const char *name)
 }
 
 typedef const void *(*plugin_borrow_comp_cls_func_t)(
-               const struct bt_plugin *, const char *);
+               const bt_plugin *, const char *);
 
 static
 const void *find_component_class_from_plugin(const char *plugin_name,
@@ -300,7 +300,7 @@ const void *find_component_class_from_plugin(const char *plugin_name,
                plugin_borrow_comp_cls_func_t plugin_borrow_comp_cls_func)
 {
        const void *comp_class = NULL;
-       const struct bt_plugin *plugin;
+       const bt_plugin *plugin;
 
        BT_LOGD("Finding component class: plugin-name=\"%s\", "
                "comp-cls-name=\"%s\"", plugin_name, comp_class_name);
@@ -328,7 +328,7 @@ end:
 }
 
 static
-const struct bt_component_class_source *find_source_component_class(
+const bt_component_class_source *find_source_component_class(
                const char *plugin_name, const char *comp_class_name)
 {
        return (const void *) find_component_class_from_plugin(
@@ -338,7 +338,7 @@ const struct bt_component_class_source *find_source_component_class(
 }
 
 static
-const struct bt_component_class_filter *find_filter_component_class(
+const bt_component_class_filter *find_filter_component_class(
                const char *plugin_name, const char *comp_class_name)
 {
        return (const void *) find_component_class_from_plugin(
@@ -348,7 +348,7 @@ const struct bt_component_class_filter *find_filter_component_class(
 }
 
 static
-const struct bt_component_class_sink *find_sink_component_class(
+const bt_component_class_sink *find_sink_component_class(
                const char *plugin_name, const char *comp_class_name)
 {
        return (const void *) find_component_class_from_plugin(plugin_name,
@@ -358,11 +358,11 @@ const struct bt_component_class_sink *find_sink_component_class(
 }
 
 static
-const struct bt_component_class *find_component_class(const char *plugin_name,
+const bt_component_class *find_component_class(const char *plugin_name,
                const char *comp_class_name,
                enum bt_component_class_type comp_class_type)
 {
-       const struct bt_component_class *comp_cls = NULL;
+       const bt_component_class *comp_cls = NULL;
 
        switch (comp_class_type) {
        case BT_COMPONENT_CLASS_TYPE_SOURCE:
@@ -446,10 +446,10 @@ end:
 }
 
 static
-void print_value(FILE *, const struct bt_value *, size_t);
+void print_value(FILE *, const bt_value *, size_t);
 
 static
-void print_value_rec(FILE *, const struct bt_value *, size_t);
+void print_value_rec(FILE *, const bt_value *, size_t);
 
 struct print_map_value_data {
        size_t indent;
@@ -457,7 +457,7 @@ struct print_map_value_data {
 };
 
 static
-bt_bool print_map_value(const char *key, const struct bt_value *object,
+bt_bool print_map_value(const char *key, const bt_value *object,
                void *data)
 {
        struct print_map_value_data *print_map_value_data = data;
@@ -489,7 +489,7 @@ bt_bool print_map_value(const char *key, const struct bt_value *object,
 }
 
 static
-void print_value_rec(FILE *fp, const struct bt_value *value, size_t indent)
+void print_value_rec(FILE *fp, const bt_value *value, size_t indent)
 {
        bt_bool bool_val;
        int64_t int_val;
@@ -544,7 +544,7 @@ void print_value_rec(FILE *fp, const struct bt_value *value, size_t indent)
                }
 
                for (i = 0; i < size; i++) {
-                       const struct bt_value *element =
+                       const bt_value *element =
                                bt_value_array_borrow_element_by_index_const(
                                        value, i);
 
@@ -601,7 +601,7 @@ error:
 }
 
 static
-void print_value(FILE *fp, const struct bt_value *value, size_t indent)
+void print_value(FILE *fp, const bt_value *value, size_t indent)
 {
        if (!bt_value_is_array(value) && !bt_value_is_map(value)) {
                print_indent(fp, indent);
@@ -642,7 +642,7 @@ void print_bt_config_components(GPtrArray *array)
 }
 
 static
-void print_plugin_paths(const struct bt_value *plugin_paths)
+void print_plugin_paths(const bt_value *plugin_paths)
 {
        fprintf(stderr, "  Plugin paths:\n");
        print_value(stderr, plugin_paths, 4);
@@ -754,7 +754,7 @@ void print_cfg(struct bt_config *cfg)
 }
 
 static
-void add_to_loaded_plugins(const struct bt_plugin_set *plugin_set)
+void add_to_loaded_plugins(const bt_plugin_set *plugin_set)
 {
        int64_t i;
        int64_t count;
@@ -763,9 +763,9 @@ void add_to_loaded_plugins(const struct bt_plugin_set *plugin_set)
        BT_ASSERT(count >= 0);
 
        for (i = 0; i < count; i++) {
-               const struct bt_plugin *plugin =
+               const bt_plugin *plugin =
                        bt_plugin_set_borrow_plugin_by_index_const(plugin_set, i);
-               const struct bt_plugin *loaded_plugin =
+               const bt_plugin *loaded_plugin =
                        find_plugin(bt_plugin_get_name(plugin));
 
                BT_ASSERT(plugin);
@@ -789,7 +789,7 @@ void add_to_loaded_plugins(const struct bt_plugin_set *plugin_set)
 }
 
 static
-int load_dynamic_plugins(const struct bt_value *plugin_paths)
+int load_dynamic_plugins(const bt_value *plugin_paths)
 {
        int nr_paths, i, ret = 0;
 
@@ -803,9 +803,9 @@ int load_dynamic_plugins(const struct bt_value *plugin_paths)
        BT_LOGI("Loading dynamic plugins.");
 
        for (i = 0; i < nr_paths; i++) {
-               const struct bt_value *plugin_path_value = NULL;
+               const bt_value *plugin_path_value = NULL;
                const char *plugin_path;
-               const struct bt_plugin_set *plugin_set;
+               const bt_plugin_set *plugin_set;
 
                plugin_path_value =
                        bt_value_array_borrow_element_by_index_const(
@@ -841,7 +841,7 @@ static
 int load_static_plugins(void)
 {
        int ret = 0;
-       const struct bt_plugin_set *plugin_set;
+       const bt_plugin_set *plugin_set;
 
        BT_LOGI("Loading static plugins.");
        plugin_set = bt_plugin_create_all_from_static();
@@ -858,7 +858,7 @@ end:
 }
 
 static
-int load_all_plugins(const struct bt_value *plugin_paths)
+int load_all_plugins(const bt_value *plugin_paths)
 {
        int ret = 0;
 
@@ -879,7 +879,7 @@ end:
 }
 
 static
-void print_plugin_info(const struct bt_plugin *plugin)
+void print_plugin_info(const bt_plugin *plugin)
 {
        unsigned int major, minor, patch;
        const char *extra;
@@ -933,8 +933,8 @@ static
 int cmd_query(struct bt_config *cfg)
 {
        int ret = 0;
-       const struct bt_component_class *comp_cls = NULL;
-       const struct bt_value *results = NULL;
+       const bt_component_class *comp_cls = NULL;
+       const bt_value *results = NULL;
        const char *fail_reason = NULL;
 
        comp_cls = find_component_class(
@@ -1002,7 +1002,7 @@ end:
 
 static
 void print_component_class_help(const char *plugin_name,
-               const struct bt_component_class *comp_cls)
+               const bt_component_class *comp_cls)
 {
        const char *comp_class_name =
                bt_component_class_get_name(comp_cls);
@@ -1028,8 +1028,8 @@ static
 int cmd_help(struct bt_config *cfg)
 {
        int ret = 0;
-       const struct bt_plugin *plugin = NULL;
-       const struct bt_component_class *needed_comp_cls = NULL;
+       const bt_plugin *plugin = NULL;
+       const bt_component_class *needed_comp_cls = NULL;
 
        plugin = find_plugin(cfg->cmd_data.help.cfg_component->plugin_name->str);
        if (!plugin) {
@@ -1097,12 +1097,12 @@ end:
        return ret;
 }
 
-typedef void *(* plugin_borrow_comp_cls_by_index_func_t)(const struct bt_plugin *,
+typedef void *(* plugin_borrow_comp_cls_by_index_func_t)(const bt_plugin *,
        uint64_t);
-typedef const struct bt_component_class *(* spec_comp_cls_borrow_comp_cls_func_t)(
+typedef const bt_component_class *(* spec_comp_cls_borrow_comp_cls_func_t)(
        void *);
 
-void cmd_list_plugins_print_component_classes(const struct bt_plugin *plugin,
+void cmd_list_plugins_print_component_classes(const bt_plugin *plugin,
                const char *cc_type_name, uint64_t count,
                plugin_borrow_comp_cls_by_index_func_t borrow_comp_cls_by_index_func,
                spec_comp_cls_borrow_comp_cls_func_t spec_comp_cls_borrow_comp_cls_func)
@@ -1121,7 +1121,7 @@ void cmd_list_plugins_print_component_classes(const struct bt_plugin *plugin,
        }
 
        for (i = 0; i < count; i++) {
-               const struct bt_component_class *comp_class =
+               const bt_component_class *comp_class =
                        spec_comp_cls_borrow_comp_cls_func(
                                borrow_comp_cls_by_index_func(plugin, i));
                const char *comp_class_name =
@@ -1163,7 +1163,7 @@ int cmd_list_plugins(struct bt_config *cfg)
        }
 
        for (i = 0; i < plugins_count; i++) {
-               const struct bt_plugin *plugin = g_ptr_array_index(loaded_plugins, i);
+               const bt_plugin *plugin = g_ptr_array_index(loaded_plugins, i);
 
                component_classes_count +=
                        bt_plugin_get_source_component_class_count(plugin) +
@@ -1180,7 +1180,7 @@ int cmd_list_plugins(struct bt_config *cfg)
                bt_common_color_reset());
 
        for (i = 0; i < plugins_count; i++) {
-               const struct bt_plugin *plugin = g_ptr_array_index(loaded_plugins, i);
+               const bt_plugin *plugin = g_ptr_array_index(loaded_plugins, i);
 
                printf("\n");
                print_plugin_info(plugin);
@@ -1212,11 +1212,11 @@ static
 int cmd_print_lttng_live_sessions(struct bt_config *cfg)
 {
        int ret = 0;
-       const struct bt_component_class *comp_cls = NULL;
-       const struct bt_value *results = NULL;
-       struct bt_value *params = NULL;
-       const struct bt_value *map = NULL;
-       const struct bt_value *v = NULL;
+       const bt_component_class *comp_cls = NULL;
+       const bt_value *results = NULL;
+       bt_value *params = NULL;
+       const bt_value *map = NULL;
+       const bt_value *v = NULL;
        static const char * const plugin_name = "ctf";
        static const char * const comp_cls_name = "lttng-live";
        static const enum bt_component_class_type comp_cls_type =
@@ -1364,10 +1364,10 @@ static
 int cmd_print_ctf_metadata(struct bt_config *cfg)
 {
        int ret = 0;
-       const struct bt_component_class *comp_cls = NULL;
-       const struct bt_value *results = NULL;
-       struct bt_value *params = NULL;
-       const struct bt_value *metadata_text_value = NULL;
+       const bt_component_class *comp_cls = NULL;
+       const bt_value *results = NULL;
+       bt_value *params = NULL;
+       const bt_value *metadata_text_value = NULL;
        const char *metadata_text = NULL;
        static const char * const plugin_name = "ctf";
        static const char * const comp_cls_name = "fs";
@@ -1530,7 +1530,7 @@ struct cmd_run_ctx {
        GHashTable *sink_components;
 
        /* Owned by this */
-       struct bt_graph *graph;
+       bt_graph *graph;
 
        /* Weak */
        struct bt_config *cfg;
@@ -1593,14 +1593,14 @@ char *s_from_ns(int64_t ns)
 static
 int cmd_run_ctx_connect_upstream_port_to_downstream_component(
                struct cmd_run_ctx *ctx,
-               const struct bt_component *upstream_comp,
-               const struct bt_port_output *out_upstream_port,
+               const bt_component *upstream_comp,
+               const bt_port_output *out_upstream_port,
                struct bt_config_connection *cfg_conn)
 {
        typedef uint64_t (*input_port_count_func_t)(void *);
-       typedef const struct bt_port_input *(*borrow_input_port_by_index_func_t)(
+       typedef const bt_port_input *(*borrow_input_port_by_index_func_t)(
                const void *, uint64_t);
-       const struct bt_port *upstream_port =
+       const bt_port *upstream_port =
                bt_port_output_as_port_const(out_upstream_port);
 
        int ret = 0;
@@ -1612,13 +1612,13 @@ int cmd_run_ctx_connect_upstream_port_to_downstream_component(
        borrow_input_port_by_index_func_t port_by_index_fn;
        enum bt_graph_status status = BT_GRAPH_STATUS_ERROR;
        bool insert_trimmer = false;
-       struct bt_value *trimmer_params = NULL;
+       bt_value *trimmer_params = NULL;
        char *intersection_begin = NULL;
        char *intersection_end = NULL;
-       const struct bt_component_filter *trimmer = NULL;
-       const struct bt_component_class_filter *trimmer_class = NULL;
-       const struct bt_port_input *trimmer_input = NULL;
-       const struct bt_port_output *trimmer_output = NULL;
+       const bt_component_filter *trimmer = NULL;
+       const bt_component_class_filter *trimmer_class = NULL;
+       const bt_port_input *trimmer_input = NULL;
+       const bt_port_output *trimmer_output = NULL;
 
        if (ctx->intersections &&
                bt_component_get_class_type(upstream_comp) ==
@@ -1710,9 +1710,9 @@ int cmd_run_ctx_connect_upstream_port_to_downstream_component(
        BT_ASSERT(downstream_port_count >= 0);
 
        for (i = 0; i < downstream_port_count; i++) {
-               const struct bt_port_input *in_downstream_port =
+               const bt_port_input *in_downstream_port =
                        port_by_index_fn(downstream_comp, i);
-               const struct bt_port *downstream_port =
+               const bt_port *downstream_port =
                        bt_port_input_as_port_const(in_downstream_port);
                const char *upstream_port_name;
                const char *downstream_port_name;
@@ -1910,12 +1910,12 @@ end:
 
 static
 int cmd_run_ctx_connect_upstream_port(struct cmd_run_ctx *ctx,
-               const struct bt_port_output *upstream_port)
+               const bt_port_output *upstream_port)
 {
        int ret = 0;
        const char *upstream_port_name;
        const char *upstream_comp_name;
-       const struct bt_component *upstream_comp = NULL;
+       const bt_component *upstream_comp = NULL;
        size_t i;
 
        BT_ASSERT(ctx);
@@ -1989,10 +1989,10 @@ end:
 
 static
 void graph_output_port_added_listener(struct cmd_run_ctx *ctx,
-               const struct bt_port_output *out_port)
+               const bt_port_output *out_port)
 {
-       const struct bt_component *comp;
-       const struct bt_port *port = bt_port_output_as_port_const(out_port);
+       const bt_component *comp;
+       const bt_port *port = bt_port_output_as_port_const(out_port);
 
        comp = bt_port_borrow_component_const(port);
        BT_LOGI("Port added to a graph's component: comp-addr=%p, "
@@ -2026,16 +2026,16 @@ end:
 
 static
 void graph_source_output_port_added_listener(
-               const struct bt_component_source *component,
-               const struct bt_port_output *port, void *data)
+               const bt_component_source *component,
+               const bt_port_output *port, void *data)
 {
        graph_output_port_added_listener(data, port);
 }
 
 static
 void graph_filter_output_port_added_listener(
-               const struct bt_component_filter *component,
-               const struct bt_port_output *port, void *data)
+               const bt_component_filter *component,
+               const bt_port_output *port, void *data)
 {
        graph_output_port_added_listener(data, port);
 }
@@ -2142,28 +2142,28 @@ end:
 static
 int set_stream_intersections(struct cmd_run_ctx *ctx,
                struct bt_config_component *cfg_comp,
-               const struct bt_component_class_source *src_comp_cls)
+               const bt_component_class_source *src_comp_cls)
 {
        int ret = 0;
        uint64_t trace_idx;
        int64_t trace_count;
        enum bt_value_status value_status;
        const char *path = NULL;
-       const struct bt_value *component_path_value = NULL;
-       struct bt_value *query_params = NULL;
-       const struct bt_value *query_result = NULL;
-       const struct bt_value *trace_info = NULL;
-       const struct bt_value *intersection_range = NULL;
-       const struct bt_value *intersection_begin = NULL;
-       const struct bt_value *intersection_end = NULL;
-       const struct bt_value *stream_path_value = NULL;
-       const struct bt_value *stream_paths = NULL;
-       const struct bt_value *stream_infos = NULL;
-       const struct bt_value *stream_info = NULL;
+       const bt_value *component_path_value = NULL;
+       bt_value *query_params = NULL;
+       const bt_value *query_result = NULL;
+       const bt_value *trace_info = NULL;
+       const bt_value *intersection_range = NULL;
+       const bt_value *intersection_begin = NULL;
+       const bt_value *intersection_end = NULL;
+       const bt_value *stream_path_value = NULL;
+       const bt_value *stream_paths = NULL;
+       const bt_value *stream_infos = NULL;
+       const bt_value *stream_info = NULL;
        struct port_id *port_id = NULL;
        struct trace_range *trace_range = NULL;
        const char *fail_reason = NULL;
-       const struct bt_component_class *comp_cls =
+       const bt_component_class *comp_cls =
                bt_component_class_source_as_component_class_const(src_comp_cls);
 
        component_path_value = bt_value_map_borrow_entry_value(cfg_comp->params,
@@ -2551,7 +2551,7 @@ end:
 }
 
 typedef uint64_t (*output_port_count_func_t)(const void *);
-typedef const struct bt_port_output *(*borrow_output_port_by_index_func_t)(
+typedef const bt_port_output *(*borrow_output_port_by_index_func_t)(
        const void *, uint64_t);
 
 static
@@ -2567,7 +2567,7 @@ int cmd_run_ctx_connect_comp_ports(struct cmd_run_ctx *ctx,
        BT_ASSERT(count >= 0);
 
        for (i = 0; i < count; i++) {
-               const struct bt_port_output *upstream_port = port_by_index_fn(comp, i);
+               const bt_port_output *upstream_port = port_by_index_fn(comp, i);
 
                BT_ASSERT(upstream_port);
                ret = cmd_run_ctx_connect_upstream_port(ctx, upstream_port);
index 59dba54ca4387da7d5fe22a6afb1d8fe4a05e897..9e4e6c7f800ca929b7fdca7ee7d1ed05de969c8e 100644 (file)
  * SOFTWARE.
  */
 
-/* For bt_bool */
+/* For bt_bool, bt_component_class */
 #include <babeltrace/types.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_component_class;
-
 enum bt_component_class_type {
        BT_COMPONENT_CLASS_TYPE_SOURCE =        0,
        BT_COMPONENT_CLASS_TYPE_FILTER =        1,
@@ -40,20 +38,20 @@ enum bt_component_class_type {
 };
 
 extern const char *bt_component_class_get_name(
-               const struct bt_component_class *component_class);
+               const bt_component_class *component_class);
 
 extern const char *bt_component_class_get_description(
-               const struct bt_component_class *component_class);
+               const bt_component_class *component_class);
 
 extern const char *bt_component_class_get_help(
-               const struct bt_component_class *component_class);
+               const bt_component_class *component_class);
 
 extern enum bt_component_class_type bt_component_class_get_type(
-               const struct bt_component_class *component_class);
+               const bt_component_class *component_class);
 
 static inline
 bt_bool bt_component_class_is_source(
-               const struct bt_component_class *component_class)
+               const bt_component_class *component_class)
 {
        return bt_component_class_get_type(component_class) ==
                BT_COMPONENT_CLASS_TYPE_SOURCE;
@@ -61,7 +59,7 @@ bt_bool bt_component_class_is_source(
 
 static inline
 bt_bool bt_component_class_is_filter(
-               const struct bt_component_class *component_class)
+               const bt_component_class *component_class)
 {
        return bt_component_class_get_type(component_class) ==
                BT_COMPONENT_CLASS_TYPE_FILTER;
@@ -69,17 +67,17 @@ bt_bool bt_component_class_is_filter(
 
 static inline
 bt_bool bt_component_class_is_sink(
-               const struct bt_component_class *component_class)
+               const bt_component_class *component_class)
 {
        return bt_component_class_get_type(component_class) ==
                BT_COMPONENT_CLASS_TYPE_SINK;
 }
 
 extern void bt_component_class_get_ref(
-               const struct bt_component_class *component_class);
+               const bt_component_class *component_class);
 
 extern void bt_component_class_put_ref(
-               const struct bt_component_class *component_class);
+               const bt_component_class *component_class);
 
 #define BT_COMPONENT_CLASS_PUT_REF_AND_RESET(_var)     \
        do {                                            \
index 3fa6dca031b690b0bb320b2f3d84fddb14ce5d14..668d326b678effe2bc7ec9de3ada5fe7ebc4950c 100644 (file)
  * SOFTWARE.
  */
 
+/* For bt_component_class, bt_component_class_filter */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_component_class;
-struct bt_component_class_filter;
-
 static inline
-const struct bt_component_class *
+const bt_component_class *
 bt_component_class_filter_as_component_class_const(
-               const struct bt_component_class_filter *comp_cls_filter)
+               const bt_component_class_filter *comp_cls_filter)
 {
        return (const void *) comp_cls_filter;
 }
 
 extern void bt_component_class_filter_get_ref(
-               const struct bt_component_class_filter *component_class_filter);
+               const bt_component_class_filter *component_class_filter);
 
 extern void bt_component_class_filter_put_ref(
-               const struct bt_component_class_filter *component_class_filter);
+               const bt_component_class_filter *component_class_filter);
 
 #define BT_COMPONENT_CLASS_FILTER_PUT_REF_AND_RESET(_var)      \
        do {                                                    \
index 1f4dc4ff7ea230debc4902841cab051c10fa22ea..d7832cff0bb23da71bcb3b513f0fa91501d130d5 100644 (file)
@@ -26,9 +26,6 @@
 
 #include <stdint.h>
 
-/* For enum bt_notification_array_const */
-#include <babeltrace/graph/notification-const.h>
-
 /* For enum bt_self_component_status */
 #include <babeltrace/graph/self-component.h>
 
 /* For enum bt_query_status */
 #include <babeltrace/graph/component-class.h>
 
+/*
+ * For bt_component_class, bt_component_class_filter, bt_port_input,
+ * bt_port_output, bt_query_executor, bt_self_component_class_filter,
+ * bt_self_component_filter, bt_self_component_port_input,
+ * bt_self_component_port_output, bt_value, bt_notification_array_const
+ */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_component_class;
-struct bt_component_class_filter;
-struct bt_port_input;
-struct bt_port_output;
-struct bt_query_executor;
-struct bt_self_component_class_filter;
-struct bt_self_component_filter;
-struct bt_self_component_port_input;
-struct bt_self_component_port_output;
-struct bt_value;
-
 typedef enum bt_self_component_status
 (*bt_component_class_filter_init_method)(
-               struct bt_self_component_filter *self_component,
-               const struct bt_value *params, void *init_method_data);
+               bt_self_component_filter *self_component,
+               const bt_value *params, void *init_method_data);
 
 typedef void (*bt_component_class_filter_finalize_method)(
-               struct bt_self_component_filter *self_component);
+               bt_self_component_filter *self_component);
 
 typedef enum bt_self_notification_iterator_status
 (*bt_component_class_filter_notification_iterator_init_method)(
-               struct bt_self_notification_iterator *notification_iterator,
-               struct bt_self_component_filter *self_component,
-               struct bt_self_component_port_output *port);
+               bt_self_notification_iterator *notification_iterator,
+               bt_self_component_filter *self_component,
+               bt_self_component_port_output *port);
 
 typedef void
 (*bt_component_class_filter_notification_iterator_finalize_method)(
-               struct bt_self_notification_iterator *notification_iterator);
+               bt_self_notification_iterator *notification_iterator);
 
 typedef enum bt_self_notification_iterator_status
 (*bt_component_class_filter_notification_iterator_next_method)(
-               struct bt_self_notification_iterator *notification_iterator,
+               bt_self_notification_iterator *notification_iterator,
                bt_notification_array_const notifs, uint64_t capacity,
                uint64_t *count);
 
 typedef enum bt_query_status
 (*bt_component_class_filter_query_method)(
-               struct bt_self_component_class_filter *comp_class,
-               const struct bt_query_executor *query_executor,
-               const char *object, const struct bt_value *params,
-               const struct bt_value **result);
+               bt_self_component_class_filter *comp_class,
+               const bt_query_executor *query_executor,
+               const char *object, const bt_value *params,
+               const bt_value **result);
 
 typedef enum bt_self_component_status
 (*bt_component_class_filter_accept_input_port_connection_method)(
-               struct bt_self_component_filter *self_component,
-               struct bt_self_component_port_input *self_port,
-               const struct bt_port_output *other_port);
+               bt_self_component_filter *self_component,
+               bt_self_component_port_input *self_port,
+               const bt_port_output *other_port);
 
 typedef enum bt_self_component_status
 (*bt_component_class_filter_accept_output_port_connection_method)(
-               struct bt_self_component_filter *self_component,
-               struct bt_self_component_port_output *self_port,
-               const struct bt_port_input *other_port);
+               bt_self_component_filter *self_component,
+               bt_self_component_port_output *self_port,
+               const bt_port_input *other_port);
 
 typedef enum bt_self_component_status
 (*bt_component_class_filter_input_port_connected_method)(
-               struct bt_self_component_filter *self_component,
-               struct bt_self_component_port_input *self_port,
-               const struct bt_port_output *other_port);
+               bt_self_component_filter *self_component,
+               bt_self_component_port_input *self_port,
+               const bt_port_output *other_port);
 
 typedef enum bt_self_component_status
 (*bt_component_class_filter_output_port_connected_method)(
-               struct bt_self_component_filter *self_component,
-               struct bt_self_component_port_output *self_port,
-               const struct bt_port_input *other_port);
+               bt_self_component_filter *self_component,
+               bt_self_component_port_output *self_port,
+               const bt_port_input *other_port);
 
 typedef void
 (*bt_component_class_filter_input_port_disconnected_method)(
-               struct bt_self_component_filter *self_component,
-               struct bt_self_component_port_input *self_port);
+               bt_self_component_filter *self_component,
+               bt_self_component_port_input *self_port);
 
 typedef void
 (*bt_component_class_filter_output_port_disconnected_method)(
-               struct bt_self_component_filter *self_component,
-               struct bt_self_component_port_output *self_port);
+               bt_self_component_filter *self_component,
+               bt_self_component_port_output *self_port);
 
 static inline
-struct bt_component_class *bt_component_class_filter_as_component_class(
-               struct bt_component_class_filter *comp_cls_filter)
+bt_component_class *bt_component_class_filter_as_component_class(
+               bt_component_class_filter *comp_cls_filter)
 {
        return (void *) comp_cls_filter;
 }
 
 extern
-struct bt_component_class_filter *bt_component_class_filter_create(
+bt_component_class_filter *bt_component_class_filter_create(
                const char *name,
                bt_component_class_filter_notification_iterator_next_method method);
 
 extern int bt_component_class_filter_set_init_method(
-               struct bt_component_class_filter *comp_class,
+               bt_component_class_filter *comp_class,
                bt_component_class_filter_init_method method);
 
 extern int bt_component_class_filter_set_finalize_method(
-               struct bt_component_class_filter *comp_class,
+               bt_component_class_filter *comp_class,
                bt_component_class_filter_finalize_method method);
 
 extern int bt_component_class_filter_set_accept_input_port_connection_method(
-               struct bt_component_class_filter *comp_class,
+               bt_component_class_filter *comp_class,
                bt_component_class_filter_accept_input_port_connection_method method);
 
 extern int bt_component_class_filter_set_accept_output_port_connection_method(
-               struct bt_component_class_filter *comp_class,
+               bt_component_class_filter *comp_class,
                bt_component_class_filter_accept_output_port_connection_method method);
 
 extern int bt_component_class_filter_set_input_port_connected_method(
-               struct bt_component_class_filter *comp_class,
+               bt_component_class_filter *comp_class,
                bt_component_class_filter_input_port_connected_method method);
 
 extern int bt_component_class_filter_set_output_port_connected_method(
-               struct bt_component_class_filter *comp_class,
+               bt_component_class_filter *comp_class,
                bt_component_class_filter_output_port_connected_method method);
 
 extern int bt_component_class_filter_set_input_port_disconnected_method(
-               struct bt_component_class_filter *comp_class,
+               bt_component_class_filter *comp_class,
                bt_component_class_filter_input_port_disconnected_method method);
 
 extern int bt_component_class_filter_set_output_port_disconnected_method(
-               struct bt_component_class_filter *comp_class,
+               bt_component_class_filter *comp_class,
                bt_component_class_filter_output_port_disconnected_method method);
 
 extern int bt_component_class_filter_set_query_method(
-               struct bt_component_class_filter *comp_class,
+               bt_component_class_filter *comp_class,
                bt_component_class_filter_query_method method);
 
 extern int bt_component_class_filter_set_notification_iterator_init_method(
-               struct bt_component_class_filter *comp_class,
+               bt_component_class_filter *comp_class,
                bt_component_class_filter_notification_iterator_init_method method);
 
 extern int bt_component_class_filter_set_notification_iterator_finalize_method(
-               struct bt_component_class_filter *comp_class,
+               bt_component_class_filter *comp_class,
                bt_component_class_filter_notification_iterator_finalize_method method);
 
 #ifdef __cplusplus
index 4cfa7b7aa0fb3ec01cc20ada33524f646dc65558..ecd0059c31ac01b2f782532091d7b49e90977f79 100644 (file)
  * SOFTWARE.
  */
 
+/* For bt_component_class, bt_component_class_sink */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_component_class;
-struct bt_component_class_sink;
-
 static inline
-const struct bt_component_class *
+const bt_component_class *
 bt_component_class_sink_as_component_class_const(
-               const struct bt_component_class_sink *comp_cls_sink)
+               const bt_component_class_sink *comp_cls_sink)
 {
        return (const void *) comp_cls_sink;
 }
 
 extern void bt_component_class_sink_get_ref(
-               const struct bt_component_class_sink *component_class_sink);
+               const bt_component_class_sink *component_class_sink);
 
 extern void bt_component_class_sink_put_ref(
-               const struct bt_component_class_sink *component_class_sink);
+               const bt_component_class_sink *component_class_sink);
 
 #define BT_COMPONENT_CLASS_SINK_PUT_REF_AND_RESET(_var)                \
        do {                                                    \
index 196a2ef13dbe680202d4ccc589acb373774f7416..b57abc94cf713092634490bb8200dd0160b22af0 100644 (file)
 /* For enum bt_query_status */
 #include <babeltrace/graph/component-class.h>
 
+/*
+ * For bt_component_class, bt_component_class_sink, bt_port_output,
+ * bt_query_executor, bt_self_component_class_sink,
+ * bt_self_component_sink, bt_self_component_port_input, bt_value
+ */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_component_class;
-struct bt_component_class_sink;
-struct bt_port_output;
-struct bt_query_executor;
-struct bt_self_component_class_sink;
-struct bt_self_component_port_input;
-struct bt_self_component_sink;
-struct bt_value;
-
 typedef enum bt_self_component_status
 (*bt_component_class_sink_init_method)(
-               struct bt_self_component_sink *self_component,
-               const struct bt_value *params, void *init_method_data);
+               bt_self_component_sink *self_component,
+               const bt_value *params, void *init_method_data);
 
 typedef void (*bt_component_class_sink_finalize_method)(
-               struct bt_self_component_sink *self_component);
+               bt_self_component_sink *self_component);
 
 typedef enum bt_query_status
 (*bt_component_class_sink_query_method)(
-               struct bt_self_component_class_sink *comp_class,
-               const struct bt_query_executor *query_executor,
-               const char *object, const struct bt_value *params,
-               const struct bt_value **result);
+               bt_self_component_class_sink *comp_class,
+               const bt_query_executor *query_executor,
+               const char *object, const bt_value *params,
+               const bt_value **result);
 
 typedef enum bt_self_component_status
 (*bt_component_class_sink_accept_input_port_connection_method)(
-               struct bt_self_component_sink *self_component,
-               struct bt_self_component_port_input *self_port,
-               const struct bt_port_output *other_port);
+               bt_self_component_sink *self_component,
+               bt_self_component_port_input *self_port,
+               const bt_port_output *other_port);
 
 typedef enum bt_self_component_status
 (*bt_component_class_sink_input_port_connected_method)(
-               struct bt_self_component_sink *self_component,
-               struct bt_self_component_port_input *self_port,
-               const struct bt_port_output *other_port);
+               bt_self_component_sink *self_component,
+               bt_self_component_port_input *self_port,
+               const bt_port_output *other_port);
 
 typedef void
 (*bt_component_class_sink_input_port_disconnected_method)(
-               struct bt_self_component_sink *self_component,
-               struct bt_self_component_port_input *self_port);
+               bt_self_component_sink *self_component,
+               bt_self_component_port_input *self_port);
 
 typedef enum bt_self_component_status
 (*bt_component_class_sink_consume_method)(
-       struct bt_self_component_sink *self_component);
+       bt_self_component_sink *self_component);
 
 static inline
-struct bt_component_class *bt_component_class_sink_as_component_class(
-               struct bt_component_class_sink *comp_cls_sink)
+bt_component_class *bt_component_class_sink_as_component_class(
+               bt_component_class_sink *comp_cls_sink)
 {
        return (void *) comp_cls_sink;
 }
 
 extern
-struct bt_component_class_sink *bt_component_class_sink_create(
+bt_component_class_sink *bt_component_class_sink_create(
                const char *name,
                bt_component_class_sink_consume_method method);
 
 extern int bt_component_class_sink_set_init_method(
-               struct bt_component_class_sink *comp_class,
+               bt_component_class_sink *comp_class,
                bt_component_class_sink_init_method method);
 
 extern int bt_component_class_sink_set_finalize_method(
-               struct bt_component_class_sink *comp_class,
+               bt_component_class_sink *comp_class,
                bt_component_class_sink_finalize_method method);
 
 extern int bt_component_class_sink_set_accept_input_port_connection_method(
-               struct bt_component_class_sink *comp_class,
+               bt_component_class_sink *comp_class,
                bt_component_class_sink_accept_input_port_connection_method method);
 
 extern int bt_component_class_sink_set_input_port_connected_method(
-               struct bt_component_class_sink *comp_class,
+               bt_component_class_sink *comp_class,
                bt_component_class_sink_input_port_connected_method method);
 
 extern int bt_component_class_sink_set_input_port_disconnected_method(
-               struct bt_component_class_sink *comp_class,
+               bt_component_class_sink *comp_class,
                bt_component_class_sink_input_port_disconnected_method method);
 
 extern int bt_component_class_sink_set_query_method(
-               struct bt_component_class_sink *comp_class,
+               bt_component_class_sink *comp_class,
                bt_component_class_sink_query_method method);
 
 #ifdef __cplusplus
index aaf6d65860fd28cbe8eef6416954ea0dd46eca6e..60c2665ff68932305c613306ada03bfff87bdcdf 100644 (file)
  * SOFTWARE.
  */
 
+/* For bt_component_class, bt_component_class_source */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_component_class;
-struct bt_component_class_source;
-
 static inline
-const struct bt_component_class *
+const bt_component_class *
 bt_component_class_source_as_component_class_const(
-               const struct bt_component_class_source *comp_cls_source)
+               const bt_component_class_source *comp_cls_source)
 {
        return (const void *) comp_cls_source;
 }
 
 extern void bt_component_class_source_get_ref(
-               const struct bt_component_class_source *component_class_source);
+               const bt_component_class_source *component_class_source);
 
 extern void bt_component_class_source_put_ref(
-               const struct bt_component_class_source *component_class_source);
+               const bt_component_class_source *component_class_source);
 
 #define BT_COMPONENT_CLASS_SOURCE_PUT_REF_AND_RESET(_var)      \
        do {                                                    \
index 6bf0a8acd7cb1c0f6910fde81863b9c855494ba3..77444ec2083cd732b1c59103db58e1cc7b03f35e 100644 (file)
@@ -26,9 +26,6 @@
 
 #include <stdint.h>
 
-/* For enum bt_notification_array_const */
-#include <babeltrace/graph/notification-const.h>
-
 /* For enum bt_self_component_status */
 #include <babeltrace/graph/self-component.h>
 
 /* For enum bt_query_status */
 #include <babeltrace/graph/component-class.h>
 
+/*
+ * For bt_component_class, bt_component_class_source, bt_port_input,
+ * bt_query_executor, bt_self_component_class_source,
+ * bt_self_component_source, bt_self_component_port_output, bt_value,
+ * bt_notification_array_const
+ */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_self_component_class_source;
-struct bt_component_class_source;
-struct bt_self_component_source;
-struct bt_component_class_source;
-struct bt_self_component_port_output;
-struct bt_port_input;
-struct bt_query_executor;
-struct bt_value;
-
 typedef enum bt_self_component_status
 (*bt_component_class_source_init_method)(
-               struct bt_self_component_source *self_component,
-               const struct bt_value *params, void *init_method_data);
+               bt_self_component_source *self_component,
+               const bt_value *params, void *init_method_data);
 
 typedef void (*bt_component_class_source_finalize_method)(
-               struct bt_self_component_source *self_component);
+               bt_self_component_source *self_component);
 
 typedef enum bt_self_notification_iterator_status
 (*bt_component_class_source_notification_iterator_init_method)(
-               struct bt_self_notification_iterator *notification_iterator,
-               struct bt_self_component_source *self_component,
-               struct bt_self_component_port_output *port);
+               bt_self_notification_iterator *notification_iterator,
+               bt_self_component_source *self_component,
+               bt_self_component_port_output *port);
 
 typedef void
 (*bt_component_class_source_notification_iterator_finalize_method)(
-               struct bt_self_notification_iterator *notification_iterator);
+               bt_self_notification_iterator *notification_iterator);
 
 typedef enum bt_self_notification_iterator_status
 (*bt_component_class_source_notification_iterator_next_method)(
-               struct bt_self_notification_iterator *notification_iterator,
+               bt_self_notification_iterator *notification_iterator,
                bt_notification_array_const notifs, uint64_t capacity,
                uint64_t *count);
 
 typedef enum bt_query_status
 (*bt_component_class_source_query_method)(
-               struct bt_self_component_class_source *comp_class,
-               const struct bt_query_executor *query_executor,
-               const char *object, const struct bt_value *params,
-               const struct bt_value **result);
+               bt_self_component_class_source *comp_class,
+               const bt_query_executor *query_executor,
+               const char *object, const bt_value *params,
+               const bt_value **result);
 
 typedef enum bt_self_component_status
 (*bt_component_class_source_accept_output_port_connection_method)(
-               struct bt_self_component_source *self_component,
-               struct bt_self_component_port_output *self_port,
-               const struct bt_port_input *other_port);
+               bt_self_component_source *self_component,
+               bt_self_component_port_output *self_port,
+               const bt_port_input *other_port);
 
 typedef enum bt_self_component_status
 (*bt_component_class_source_output_port_connected_method)(
-               struct bt_self_component_source *self_component,
-               struct bt_self_component_port_output *self_port,
-               const struct bt_port_input *other_port);
+               bt_self_component_source *self_component,
+               bt_self_component_port_output *self_port,
+               const bt_port_input *other_port);
 
 typedef void
 (*bt_component_class_source_output_port_disconnected_method)(
-               struct bt_self_component_source *self_component,
-               struct bt_self_component_port_output *self_port);
+               bt_self_component_source *self_component,
+               bt_self_component_port_output *self_port);
 
 static inline
-struct bt_component_class *bt_component_class_source_as_component_class(
-               struct bt_component_class_source *comp_cls_source)
+bt_component_class *bt_component_class_source_as_component_class(
+               bt_component_class_source *comp_cls_source)
 {
        return (void *) comp_cls_source;
 }
 
 extern
-struct bt_component_class_source *bt_component_class_source_create(
+bt_component_class_source *bt_component_class_source_create(
                const char *name,
                bt_component_class_source_notification_iterator_next_method method);
 
 extern int bt_component_class_source_set_init_method(
-               struct bt_component_class_source *comp_class,
+               bt_component_class_source *comp_class,
                bt_component_class_source_init_method method);
 
 extern int bt_component_class_source_set_finalize_method(
-               struct bt_component_class_source *comp_class,
+               bt_component_class_source *comp_class,
                bt_component_class_source_finalize_method method);
 
 extern int bt_component_class_source_set_accept_output_port_connection_method(
-               struct bt_component_class_source *comp_class,
+               bt_component_class_source *comp_class,
                bt_component_class_source_accept_output_port_connection_method method);
 
 extern int bt_component_class_source_set_output_port_connected_method(
-               struct bt_component_class_source *comp_class,
+               bt_component_class_source *comp_class,
                bt_component_class_source_output_port_connected_method method);
 
 extern int bt_component_class_source_set_output_port_disconnected_method(
-               struct bt_component_class_source *comp_class,
+               bt_component_class_source *comp_class,
                bt_component_class_source_output_port_disconnected_method method);
 
 extern int bt_component_class_source_set_query_method(
-               struct bt_component_class_source *comp_class,
+               bt_component_class_source *comp_class,
                bt_component_class_source_query_method method);
 
 extern int bt_component_class_source_set_notification_iterator_init_method(
-               struct bt_component_class_source *comp_class,
+               bt_component_class_source *comp_class,
                bt_component_class_source_notification_iterator_init_method method);
 
 extern int bt_component_class_source_set_notification_iterator_finalize_method(
-               struct bt_component_class_source *comp_class,
+               bt_component_class_source *comp_class,
                bt_component_class_source_notification_iterator_finalize_method method);
 
 #ifdef __cplusplus
index 5a8332e985facc89472b6eb303b4fee5158b6fe7..bc278ce16ebac937707d3bc1216483b97c5f5fba 100644 (file)
 /* For enum bt_query_executor_status */
 #include <babeltrace/graph/query-executor-const.h>
 
+/* For bt_component_class */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_component_class;
-
 enum bt_query_status {
        BT_QUERY_STATUS_OK = BT_QUERY_EXECUTOR_STATUS_OK,
        BT_QUERY_STATUS_AGAIN = BT_QUERY_EXECUTOR_STATUS_AGAIN,
@@ -43,11 +44,11 @@ enum bt_query_status {
 };
 
 extern int bt_component_class_set_description(
-               struct bt_component_class *component_class,
+               bt_component_class *component_class,
                const char *description);
 
 extern int bt_component_class_set_help(
-               struct bt_component_class *component_class,
+               bt_component_class *component_class,
                const char *help);
 
 #ifdef __cplusplus
index a737d0d59ae79c5bcefc6d5831b6ac2e51164532..8a3f2add55a068507ffc7c05bf7fcb3d890f01b8 100644 (file)
 /* For enum bt_component_class_type */
 #include <babeltrace/graph/component-class-const.h>
 
-/* For bt_bool */
+/*
+ * For bt_bool, bt_component_class, bt_component_graph, bt_component,
+ * bt_value, bt_port
+ */
 #include <babeltrace/types.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_component_class;
-struct bt_component_graph;
-struct bt_component;
-struct bt_value;
-struct bt_port;
-
 /**
  * Get component's name.
  *
  * @param component    Component instance of which to get the name
  * @returns            Returns a pointer to the component's name
  */
-extern const char *bt_component_get_name(const struct bt_component *component);
+extern const char *bt_component_get_name(const bt_component *component);
 
 /**
  * Get component's class.
@@ -54,39 +51,39 @@ extern const char *bt_component_get_name(const struct bt_component *component);
  * @param component    Component instance of which to get the class
  * @returns            The component's class
  */
-extern const struct bt_component_class *bt_component_borrow_class_const(
-               const struct bt_component *component);
+extern const bt_component_class *bt_component_borrow_class_const(
+               const bt_component *component);
 
 extern enum bt_component_class_type bt_component_get_class_type(
-               const struct bt_component *component);
+               const bt_component *component);
 
 static inline
-bt_bool bt_component_is_source(const struct bt_component *component)
+bt_bool bt_component_is_source(const bt_component *component)
 {
        return bt_component_get_class_type(component) ==
                BT_COMPONENT_CLASS_TYPE_SOURCE;
 }
 
 static inline
-bt_bool bt_component_is_filter(const struct bt_component *component)
+bt_bool bt_component_is_filter(const bt_component *component)
 {
        return bt_component_get_class_type(component) ==
                BT_COMPONENT_CLASS_TYPE_FILTER;
 }
 
 static inline
-bt_bool bt_component_is_sink(const struct bt_component *component)
+bt_bool bt_component_is_sink(const bt_component *component)
 {
        return bt_component_get_class_type(component) ==
                BT_COMPONENT_CLASS_TYPE_SINK;
 }
 
 extern bt_bool bt_component_graph_is_canceled(
-               const struct bt_component *component);
+               const bt_component *component);
 
-extern void bt_component_get_ref(const struct bt_component *component);
+extern void bt_component_get_ref(const bt_component *component);
 
-extern void bt_component_put_ref(const struct bt_component *component);
+extern void bt_component_put_ref(const bt_component *component);
 
 #define BT_COMPONENT_PUT_REF_AND_RESET(_var)           \
        do {                                            \
index 5da4869bb3c87cf68061ccbf04b5305f60a52abf..b5d6947dd25877c21d1687a9a8b4727f3625482a 100644 (file)
 
 #include <stdint.h>
 
+/* For bt_component, bt_component_filter, bt_port_input, bt_port_output */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_component;
-struct bt_component_filter;
-struct bt_port_input;
-struct bt_port_output;
-
 static inline
-const struct bt_component *bt_component_filter_as_component_const(
-               const struct bt_component_filter *component)
+const bt_component *bt_component_filter_as_component_const(
+               const bt_component_filter *component)
 {
        return (const void *) component;
 }
 
 extern uint64_t bt_component_filter_get_input_port_count(
-               const struct bt_component_filter *component);
+               const bt_component_filter *component);
 
-extern const struct bt_port_input *
+extern const bt_port_input *
 bt_component_filter_borrow_input_port_by_name_const(
-               const struct bt_component_filter *component, const char *name);
+               const bt_component_filter *component, const char *name);
 
-extern const struct bt_port_input *
+extern const bt_port_input *
 bt_component_filter_borrow_input_port_by_index_const(
-               const struct bt_component_filter *component, uint64_t index);
+               const bt_component_filter *component, uint64_t index);
 
 extern uint64_t bt_component_filter_get_output_port_count(
-               const struct bt_component_filter *component);
+               const bt_component_filter *component);
 
-extern const struct bt_port_output *
+extern const bt_port_output *
 bt_component_filter_borrow_output_port_by_name_const(
-               const struct bt_component_filter *component, const char *name);
+               const bt_component_filter *component, const char *name);
 
-extern const struct bt_port_output *
+extern const bt_port_output *
 bt_component_filter_borrow_output_port_by_index_const(
-               const struct bt_component_filter *component, uint64_t index);
+               const bt_component_filter *component, uint64_t index);
 
 extern void bt_component_filter_get_ref(
-               const struct bt_component_filter *component_filter);
+               const bt_component_filter *component_filter);
 
 extern void bt_component_filter_put_ref(
-               const struct bt_component_filter *component_filter);
+               const bt_component_filter *component_filter);
 
 #define BT_COMPONENT_FILTER_PUT_REF_AND_RESET(_var)            \
        do {                                                    \
index bda32846b2e440b4af9b50af603fd833bc833a41..0fece9ce253124e0c3c4edaf477ff560d8a91d39 100644 (file)
 
 #include <stdint.h>
 
+/* For bt_component, bt_component_filter, bt_port_input */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_component;
-struct bt_component_sink;
-struct bt_port_input;
-
 static inline
-const struct bt_component *bt_component_sink_as_component_const(
-               const struct bt_component_sink *component)
+const bt_component *bt_component_sink_as_component_const(
+               const bt_component_sink *component)
 {
        return (const void *) component;
 }
 
 extern uint64_t bt_component_sink_get_input_port_count(
-               const struct bt_component_sink *component);
+               const bt_component_sink *component);
 
-extern const struct bt_port_input *
+extern const bt_port_input *
 bt_component_sink_borrow_input_port_by_name_const(
-               const struct bt_component_sink *component, const char *name);
+               const bt_component_sink *component, const char *name);
 
-extern const struct bt_port_input *
+extern const bt_port_input *
 bt_component_sink_borrow_input_port_by_index_const(
-               const struct bt_component_sink *component, uint64_t index);
+               const bt_component_sink *component, uint64_t index);
 
 extern void bt_component_sink_get_ref(
-               const struct bt_component_sink *component_sink);
+               const bt_component_sink *component_sink);
 
 extern void bt_component_sink_put_ref(
-               const struct bt_component_sink *component_sink);
+               const bt_component_sink *component_sink);
 
 #define BT_COMPONENT_SINK_PUT_REF_AND_RESET(_var)              \
        do {                                                    \
index 7c16d03e15453bbfdf320298af13463b8e03efcb..f0d9ee51b7cf9620022f8fff3fb0514ca1f0b592 100644 (file)
 
 #include <stdint.h>
 
+/* For bt_component, bt_component_filter, bt_port_output */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_component;
-struct bt_component_source;
-struct bt_port_output;
-
 static inline
-const struct bt_component *bt_component_source_as_component_const(
-               const struct bt_component_source *component)
+const bt_component *bt_component_source_as_component_const(
+               const bt_component_source *component)
 {
        return (void *) component;
 }
 
 extern uint64_t bt_component_source_get_output_port_count(
-               const struct bt_component_source *component);
+               const bt_component_source *component);
 
-extern const struct bt_port_output *
+extern const bt_port_output *
 bt_component_source_borrow_output_port_by_name_const(
-               const struct bt_component_source *component, const char *name);
+               const bt_component_source *component, const char *name);
 
-extern const struct bt_port_output *
+extern const bt_port_output *
 bt_component_source_borrow_output_port_by_index_const(
-               const struct bt_component_source *component, uint64_t index);
+               const bt_component_source *component, uint64_t index);
 
 extern void bt_component_source_get_ref(
-               const struct bt_component_source *component_source);
+               const bt_component_source *component_source);
 
 extern void bt_component_source_put_ref(
-               const struct bt_component_source *component_source);
+               const bt_component_source *component_source);
 
 #define BT_COMPONENT_SOURCE_PUT_REF_AND_RESET(_var)            \
        do {                                                    \
index 52f605e054fa9fad55504aad6471137234d30410..137be8d14b96533da8a81e96c0c9c6b5b5465723 100644 (file)
  * SOFTWARE.
  */
 
-/* For bt_bool */
+/* For bt_bool, bt_port_input, bt_port_output, bt_connection */
 #include <babeltrace/types.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_port_input;
-struct bt_port_output;
-struct bt_connection;
+extern const bt_port_input *bt_connection_borrow_downstream_port_const(
+               const bt_connection *connection);
 
-extern const struct bt_port_input *bt_connection_borrow_downstream_port_const(
-               const struct bt_connection *connection);
+extern const bt_port_output *bt_connection_borrow_upstream_port_const(
+               const bt_connection *connection);
 
-extern const struct bt_port_output *bt_connection_borrow_upstream_port_const(
-               const struct bt_connection *connection);
+extern bt_bool bt_connection_is_ended(const bt_connection *connection);
 
-extern bt_bool bt_connection_is_ended(const struct bt_connection *connection);
+extern void bt_connection_get_ref(const bt_connection *connection);
 
-extern void bt_connection_get_ref(const struct bt_connection *connection);
-
-extern void bt_connection_put_ref(const struct bt_connection *connection);
+extern void bt_connection_put_ref(const bt_connection *connection);
 
 #define BT_CONNECTION_PUT_REF_AND_RESET(_var)          \
        do {                                            \
index c920209c45acaf40bdb4ddb3901480f8b2d784f9..1ce433ea3b50d24e72ba16005934563d4d463455 100644 (file)
  * SOFTWARE.
  */
 
-/* For bt_bool */
+/* For bt_bool, bt_graph */
 #include <babeltrace/types.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_graph;
-
 enum bt_graph_status {
        BT_GRAPH_STATUS_OK = 0,
        BT_GRAPH_STATUS_END = 1,
@@ -44,11 +42,11 @@ enum bt_graph_status {
        BT_GRAPH_STATUS_NOMEM = -12,
 };
 
-extern bt_bool bt_graph_is_canceled(const struct bt_graph *graph);
+extern bt_bool bt_graph_is_canceled(const bt_graph *graph);
 
-extern void bt_graph_get_ref(const struct bt_graph *graph);
+extern void bt_graph_get_ref(const bt_graph *graph);
 
-extern void bt_graph_put_ref(const struct bt_graph *graph);
+extern void bt_graph_put_ref(const bt_graph *graph);
 
 #define BT_GRAPH_PUT_REF_AND_RESET(_var)       \
        do {                                    \
index 029bfda2142cddf5ad66d93f62b886bc0717030c..2b0e4eb1fe3be9f7f015fc9563e114a07a7af19b 100644 (file)
  * SOFTWARE.
  */
 
-/* For bt_bool */
+/*
+ * For bt_bool, bt_component, bt_component_class,
+ * bt_component_class_filter, bt_component_class_sink,
+ * bt_component_class_source, bt_component_filter, bt_component_sink,
+ * bt_component_source, bt_connection, bt_graph, bt_port_input,
+ * bt_port_output, bt_value
+ */
 #include <babeltrace/types.h>
 
 /* For enum bt_graph_status */
 extern "C" {
 #endif
 
-struct bt_component;
-struct bt_component_class;
-struct bt_component_class_filter;
-struct bt_component_class_sink;
-struct bt_component_class_source;
-struct bt_component_filter;
-struct bt_component_sink;
-struct bt_component_source;
-struct bt_connection;
-struct bt_graph;
-struct bt_port_input;
-struct bt_port_output;
-struct bt_value;
-
 typedef void (*bt_graph_filter_component_input_port_added_listener_func)(
-               const struct bt_component_filter *component,
-               const struct bt_port_input *port, void *data);
+               const bt_component_filter *component,
+               const bt_port_input *port, void *data);
 
 typedef void (*bt_graph_sink_component_input_port_added_listener_func)(
-               const struct bt_component_sink *component,
-               const struct bt_port_input *port, void *data);
+               const bt_component_sink *component,
+               const bt_port_input *port, void *data);
 
 typedef void (*bt_graph_source_component_output_port_added_listener_func)(
-               const struct bt_component_source *component,
-               const struct bt_port_output *port, void *data);
+               const bt_component_source *component,
+               const bt_port_output *port, void *data);
 
 typedef void (*bt_graph_filter_component_output_port_added_listener_func)(
-               const struct bt_component_filter *component,
-               const struct bt_port_output *port, void *data);
+               const bt_component_filter *component,
+               const bt_port_output *port, void *data);
 
 typedef void (*bt_graph_filter_component_input_port_removed_listener_func)(
-               const struct bt_component_filter *component,
-               const struct bt_port_input *port, void *data);
+               const bt_component_filter *component,
+               const bt_port_input *port, void *data);
 
 typedef void (*bt_graph_sink_component_input_port_removed_listener_func)(
-               const struct bt_component_sink *component,
-               const struct bt_port_input *port, void *data);
+               const bt_component_sink *component,
+               const bt_port_input *port, void *data);
 
 typedef void (*bt_graph_source_component_output_port_removed_listener_func)(
-               const struct bt_component_source *component,
-               const struct bt_port_output *port, void *data);
+               const bt_component_source *component,
+               const bt_port_output *port, void *data);
 
 typedef void (*bt_graph_filter_component_output_port_removed_listener_func)(
-               const struct bt_component_filter *component,
-               const struct bt_port_output *port, void *data);
+               const bt_component_filter *component,
+               const bt_port_output *port, void *data);
 
 typedef void (*bt_graph_source_filter_component_ports_connected_listener_func)(
-               const struct bt_component_source *source_component,
-               const struct bt_component_filter *filter_component,
-               const struct bt_port_output *upstream_port,
-               const struct bt_port_input *downstream_port, void *data);
+               const bt_component_source *source_component,
+               const bt_component_filter *filter_component,
+               const bt_port_output *upstream_port,
+               const bt_port_input *downstream_port, void *data);
 
 typedef void (*bt_graph_source_sink_component_ports_connected_listener_func)(
-               const struct bt_component_source *source_component,
-               const struct bt_component_sink *sink_component,
-               const struct bt_port_output *upstream_port,
-               const struct bt_port_input *downstream_port, void *data);
+               const bt_component_source *source_component,
+               const bt_component_sink *sink_component,
+               const bt_port_output *upstream_port,
+               const bt_port_input *downstream_port, void *data);
 
 typedef void (*bt_graph_filter_sink_component_ports_connected_listener_func)(
-               const struct bt_component_filter *filter_component,
-               const struct bt_component_sink *sink_component,
-               const struct bt_port_output *upstream_port,
-               const struct bt_port_input *downstream_port, void *data);
+               const bt_component_filter *filter_component,
+               const bt_component_sink *sink_component,
+               const bt_port_output *upstream_port,
+               const bt_port_input *downstream_port, void *data);
 
 typedef void (*bt_graph_source_filter_component_ports_disconnected_listener_func)(
-               const struct bt_component_source *source_component,
-               const struct bt_component_filter *filter_component,
-               const struct bt_port_output *upstream_port,
-               const struct bt_port_input *downstream_port,
+               const bt_component_source *source_component,
+               const bt_component_filter *filter_component,
+               const bt_port_output *upstream_port,
+               const bt_port_input *downstream_port,
                void *data);
 
 typedef void (*bt_graph_source_sink_component_ports_disconnected_listener_func)(
-               const struct bt_component_source *source_component,
-               const struct bt_component_sink *sink_component,
-               const struct bt_port_output *upstream_port,
-               const struct bt_port_input *downstream_port,
+               const bt_component_source *source_component,
+               const bt_component_sink *sink_component,
+               const bt_port_output *upstream_port,
+               const bt_port_input *downstream_port,
                void *data);
 
 typedef void (*bt_graph_filter_sink_component_ports_disconnected_listener_func)(
-               const struct bt_component_filter *filter_component,
-               const struct bt_component_sink *sink_component,
-               const struct bt_port_output *upstream_port,
-               const struct bt_port_input *downstream_port,
+               const bt_component_filter *filter_component,
+               const bt_component_sink *sink_component,
+               const bt_port_output *upstream_port,
+               const bt_port_input *downstream_port,
                void *data);
 
 typedef void (* bt_graph_listener_removed_func)(void *data);
 
-extern struct bt_graph *bt_graph_create(void);
+extern bt_graph *bt_graph_create(void);
 
 extern enum bt_graph_status bt_graph_add_source_component(
-               struct bt_graph *graph,
-               const struct bt_component_class_source *component_class,
-               const char *name, const struct bt_value *params,
-               const struct bt_component_source **component);
+               bt_graph *graph,
+               const bt_component_class_source *component_class,
+               const char *name, const bt_value *params,
+               const bt_component_source **component);
 
 extern enum bt_graph_status
 bt_graph_add_source_component_with_init_method_data(
-               struct bt_graph *graph,
-               const struct bt_component_class_source *component_class,
-               const char *name, const struct bt_value *params,
+               bt_graph *graph,
+               const bt_component_class_source *component_class,
+               const char *name, const bt_value *params,
                void *init_method_data,
-               const struct bt_component_source **component);
+               const bt_component_source **component);
 
 extern enum bt_graph_status bt_graph_add_filter_component(
-               struct bt_graph *graph,
-               const struct bt_component_class_filter *component_class,
-               const char *name, const struct bt_value *params,
-               const struct bt_component_filter **component);
+               bt_graph *graph,
+               const bt_component_class_filter *component_class,
+               const char *name, const bt_value *params,
+               const bt_component_filter **component);
 
 extern enum bt_graph_status
 bt_graph_add_filter_component_with_init_method_data(
-               struct bt_graph *graph,
-               const struct bt_component_class_filter *component_class,
-               const char *name, const struct bt_value *params,
+               bt_graph *graph,
+               const bt_component_class_filter *component_class,
+               const char *name, const bt_value *params,
                void *init_method_data,
-               const struct bt_component_filter **component);
+               const bt_component_filter **component);
 
 extern enum bt_graph_status bt_graph_add_sink_component(
-               struct bt_graph *graph,
-               const struct bt_component_class_sink *component_class,
-               const char *name, const struct bt_value *params,
-               const struct bt_component_sink **component);
+               bt_graph *graph,
+               const bt_component_class_sink *component_class,
+               const char *name, const bt_value *params,
+               const bt_component_sink **component);
 
 extern enum bt_graph_status
 bt_graph_add_sink_component_with_init_method_data(
-               struct bt_graph *graph,
-               const struct bt_component_class_sink *component_class,
-               const char *name, const struct bt_value *params,
+               bt_graph *graph,
+               const bt_component_class_sink *component_class,
+               const char *name, const bt_value *params,
                void *init_method_data,
-               const struct bt_component_sink **component);
+               const bt_component_sink **component);
 
 extern enum bt_graph_status bt_graph_connect_ports(
-               struct bt_graph *graph,
-               const struct bt_port_output *upstream,
-               const struct bt_port_input *downstream,
-               const struct bt_connection **connection);
+               bt_graph *graph,
+               const bt_port_output *upstream,
+               const bt_port_input *downstream,
+               const bt_connection **connection);
 
-extern enum bt_graph_status bt_graph_run(struct bt_graph *graph);
+extern enum bt_graph_status bt_graph_run(bt_graph *graph);
 
 extern enum bt_graph_status bt_graph_consume(
-               struct bt_graph *graph);
+               bt_graph *graph);
 
 extern enum bt_graph_status
 bt_graph_add_filter_component_input_port_added_listener(
-               struct bt_graph *graph,
+               bt_graph *graph,
                bt_graph_filter_component_input_port_added_listener_func listener,
                bt_graph_listener_removed_func listener_removed, void *data,
                int *listener_id);
 
 extern enum bt_graph_status
 bt_graph_add_sink_component_input_port_added_listener(
-               struct bt_graph *graph,
+               bt_graph *graph,
                bt_graph_sink_component_input_port_added_listener_func listener,
                bt_graph_listener_removed_func listener_removed, void *data,
                int *listener_id);
 
 extern enum bt_graph_status
 bt_graph_add_source_component_output_port_added_listener(
-               struct bt_graph *graph,
+               bt_graph *graph,
                bt_graph_source_component_output_port_added_listener_func listener,
                bt_graph_listener_removed_func listener_removed, void *data,
                int *listener_id);
 
 extern enum bt_graph_status
 bt_graph_add_filter_component_output_port_added_listener(
-               struct bt_graph *graph,
+               bt_graph *graph,
                bt_graph_filter_component_output_port_added_listener_func listener,
                bt_graph_listener_removed_func listener_removed, void *data,
                int *listener_id);
 
 extern enum bt_graph_status
 bt_graph_add_filter_component_input_port_removed_listener(
-               struct bt_graph *graph,
+               bt_graph *graph,
                bt_graph_filter_component_input_port_removed_listener_func listener,
                bt_graph_listener_removed_func listener_removed, void *data,
                int *listener_id);
 
 extern enum bt_graph_status
 bt_graph_add_sink_component_input_port_removed_listener(
-               struct bt_graph *graph,
+               bt_graph *graph,
                bt_graph_sink_component_input_port_removed_listener_func listener,
                bt_graph_listener_removed_func listener_removed, void *data,
                int *listener_id);
 
 extern enum bt_graph_status
 bt_graph_add_source_component_output_port_removed_listener(
-               struct bt_graph *graph,
+               bt_graph *graph,
                bt_graph_source_component_output_port_removed_listener_func listener,
                bt_graph_listener_removed_func listener_removed, void *data,
                int *listener_id);
 
 extern enum bt_graph_status
 bt_graph_add_filter_component_output_port_removed_listener(
-               struct bt_graph *graph,
+               bt_graph *graph,
                bt_graph_filter_component_output_port_removed_listener_func listener,
                bt_graph_listener_removed_func listener_removed, void *data,
                int *listener_id);
 
 extern enum bt_graph_status
 bt_graph_add_source_filter_component_ports_connected_listener(
-               struct bt_graph *graph,
+               bt_graph *graph,
                bt_graph_source_filter_component_ports_connected_listener_func listener,
                bt_graph_listener_removed_func listener_removed, void *data,
                int *listener_id);
 
 extern enum bt_graph_status
 bt_graph_add_source_sink_component_ports_connected_listener(
-               struct bt_graph *graph,
+               bt_graph *graph,
                bt_graph_source_sink_component_ports_connected_listener_func listener,
                bt_graph_listener_removed_func listener_removed, void *data,
                int *listener_id);
 
 extern enum bt_graph_status
 bt_graph_add_filter_sink_component_ports_connected_listener(
-               struct bt_graph *graph,
+               bt_graph *graph,
                bt_graph_filter_sink_component_ports_connected_listener_func listener,
                bt_graph_listener_removed_func listener_removed, void *data,
                int *listener_id);
 
 extern enum bt_graph_status
 bt_graph_add_source_filter_component_ports_disconnected_listener(
-               struct bt_graph *graph,
+               bt_graph *graph,
                bt_graph_source_filter_component_ports_disconnected_listener_func listener,
                bt_graph_listener_removed_func listener_removed, void *data,
                int *listener_id);
 
 extern enum bt_graph_status
 bt_graph_add_source_sink_component_ports_disconnected_listener(
-               struct bt_graph *graph,
+               bt_graph *graph,
                bt_graph_source_sink_component_ports_disconnected_listener_func listener,
                bt_graph_listener_removed_func listener_removed, void *data,
                int *listener_id);
 
 extern enum bt_graph_status
 bt_graph_add_filter_sink_component_ports_disconnected_listener(
-               struct bt_graph *graph,
+               bt_graph *graph,
                bt_graph_filter_sink_component_ports_disconnected_listener_func listener,
                bt_graph_listener_removed_func listener_removed, void *data,
                int *listener_id);
 
-extern enum bt_graph_status bt_graph_cancel(struct bt_graph *graph);
+extern enum bt_graph_status bt_graph_cancel(bt_graph *graph);
 
 #ifdef __cplusplus
 }
index a513c0c6fb537f8edc01f69da6508effb1e8bc2b..8754088999ce269f7cf350b9e29aa6480c0b218d 100644 (file)
  * SOFTWARE.
  */
 
+/* For bt_notification */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_notification;
-
-typedef const struct bt_notification **bt_notification_array_const;
-
 /**
  * Notification types. Unhandled notification types should be ignored.
  */
@@ -51,11 +50,11 @@ enum bt_notification_type {
  * @returns            One of #bt_notification_type
  */
 extern enum bt_notification_type bt_notification_get_type(
-               const struct bt_notification *notification);
+               const bt_notification *notification);
 
-extern void bt_notification_get_ref(const struct bt_notification *notification);
+extern void bt_notification_get_ref(const bt_notification *notification);
 
-extern void bt_notification_put_ref(const struct bt_notification *notification);
+extern void bt_notification_put_ref(const bt_notification *notification);
 
 #define BT_NOTIFICATION_PUT_REF_AND_RESET(_var)                \
        do {                                            \
index 59d6e8ed69f9618bb906a8403f9d213c715953bb..a9e47dcbe590857208af9da4484be06acafb27d6 100644 (file)
  * SOFTWARE.
  */
 
+/* For bt_notification, bt_event */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_notification;
-struct bt_event;
-
-extern const struct bt_event *bt_notification_event_borrow_event_const(
-               const struct bt_notification *notification);
+extern const bt_event *bt_notification_event_borrow_event_const(
+               const bt_notification *notification);
 
 #ifdef __cplusplus
 }
index 14b8e56b13c684d73c0408e91d39f66faa368cce..be5b94eae65641f1ec8e972414871670264000da 100644 (file)
  * SOFTWARE.
  */
 
+/*
+ * For bt_self_notification_iterator, bt_event, bt_packet,
+ * bt_event_class, bt_notification
+ */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_self_notification_iterator;
-struct bt_event;
-struct bt_packet;
-struct bt_event_class;
-
 extern
-struct bt_notification *bt_notification_event_create(
-               struct bt_self_notification_iterator *notification_iterator,
-               struct bt_event_class *event_class,
-               struct bt_packet *packet);
+bt_notification *bt_notification_event_create(
+               bt_self_notification_iterator *notification_iterator,
+               bt_event_class *event_class,
+               bt_packet *packet);
 
-extern struct bt_event *bt_notification_event_borrow_event(
-               struct bt_notification *notification);
+extern bt_event *bt_notification_event_borrow_event(
+               bt_notification *notification);
 
 #ifdef __cplusplus
 }
index b5a0429756ab844c4dcb0a77f9e14e51d051f3aa..9f5bf001ad0232be4a01482281e81b406d99c870 100644 (file)
  * SOFTWARE.
  */
 
+/* For bt_notification, bt_clock_value */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_notification;
-struct bt_clock_value;
-
-extern const struct bt_clock_value *
+extern const bt_clock_value *
 bt_notification_inactivity_borrow_default_clock_value_const(
-               const struct bt_notification *notif);
+               const bt_notification *notif);
 
 #ifdef __cplusplus
 }
index ce26bd6285e6f531f329a868132632971d4bc18c..ee9937ab640750ea836c2bd5efc447030989a92f 100644 (file)
  * SOFTWARE.
  */
 
+/* For bt_self_notification_iterator, bt_notification, bt_clock_class */
+#include <babeltrace/types.h>
+
 #include <stdint.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_notification;
-struct bt_self_notification_iterator;
-struct bt_clock_class;
-
 extern
-struct bt_notification *bt_notification_inactivity_create(
-               struct bt_self_notification_iterator *notification_iterator,
-               struct bt_clock_class *default_clock_class);
+bt_notification *bt_notification_inactivity_create(
+               bt_self_notification_iterator *notification_iterator,
+               bt_clock_class *default_clock_class);
 
 extern void bt_notification_inactivity_set_default_clock_value(
-               struct bt_notification *notif, uint64_t raw_value);
+               bt_notification *notif, uint64_t raw_value);
 
 #ifdef __cplusplus
 }
index 48f9316f15272cfc755e3ac04b65aaa6cc6df851..bd58398cf61d90672448182420cd47c550e80c08 100644 (file)
  * SOFTWARE.
  */
 
+/* For bt_notification, bt_notification_iterator */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_notification;
-struct bt_notification_iterator;
-
 enum bt_notification_iterator_status {
        BT_NOTIFICATION_ITERATOR_STATUS_OK = 0,
        BT_NOTIFICATION_ITERATOR_STATUS_END = 1,
index 9256e3e36e8587516a2700e2900a483ded83fd61..48778a83768b6d5905ab5b52cd9c05bbe18d0811 100644 (file)
  * SOFTWARE.
  */
 
+/* For bt_notification, bt_packet */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_notification;
-struct bt_packet;
-
-extern const struct bt_packet *bt_notification_packet_beginning_borrow_packet_const(
-               const struct bt_notification *notification);
+extern const bt_packet *bt_notification_packet_beginning_borrow_packet_const(
+               const bt_notification *notification);
 
-extern const struct bt_packet *bt_notification_packet_end_borrow_packet_const(
-               const struct bt_notification *notification);
+extern const bt_packet *bt_notification_packet_end_borrow_packet_const(
+               const bt_notification *notification);
 
 #ifdef __cplusplus
 }
index 25bcb5e6e0cd2d60a566042f2d0e724c82570877..0b4cca976f3a9f44fac967df92883802d2b0a27d 100644 (file)
  * SOFTWARE.
  */
 
+/* For bt_notification, bt_self_notification_iterator, bt_packet */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_notification;
-struct bt_self_notification_iterator;
-struct bt_packet;
-
 extern
-struct bt_notification *bt_notification_packet_beginning_create(
-               struct bt_self_notification_iterator *notification_iterator,
-               struct bt_packet *packet);
+bt_notification *bt_notification_packet_beginning_create(
+               bt_self_notification_iterator *notification_iterator,
+               bt_packet *packet);
 
 extern
-struct bt_notification *bt_notification_packet_end_create(
-               struct bt_self_notification_iterator *notification_iterator,
-               struct bt_packet *packet);
+bt_notification *bt_notification_packet_end_create(
+               bt_self_notification_iterator *notification_iterator,
+               bt_packet *packet);
 
-extern struct bt_packet *bt_notification_packet_beginning_borrow_packet(
-               struct bt_notification *notification);
+extern bt_packet *bt_notification_packet_beginning_borrow_packet(
+               bt_notification *notification);
 
-extern struct bt_packet *bt_notification_packet_end_borrow_packet(
-               struct bt_notification *notification);
+extern bt_packet *bt_notification_packet_end_borrow_packet(
+               bt_notification *notification);
 
 #ifdef __cplusplus
 }
index 0adf346bad4565427006d7ae04f66d968549aa38..fdbcecfce880e6fa65fe3dd67052f074b4e77333 100644 (file)
  * SOFTWARE.
  */
 
+/* For bt_notification, bt_clock_value, bt_stream */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_notification;
-struct bt_self_notification_iterator;
-struct bt_clock_value;
-struct bt_stream;
-
-extern const struct bt_stream *bt_notification_stream_beginning_borrow_stream_const(
-               const struct bt_notification *notification);
+extern const bt_stream *bt_notification_stream_beginning_borrow_stream_const(
+               const bt_notification *notification);
 
-extern const struct bt_clock_value *
+extern const bt_clock_value *
 bt_notification_stream_beginning_borrow_default_clock_value_const(
-               const struct bt_notification *notif);
+               const bt_notification *notif);
 
-extern const struct bt_stream *bt_notification_stream_end_borrow_stream_const(
-               const struct bt_notification *notification);
+extern const bt_stream *bt_notification_stream_end_borrow_stream_const(
+               const bt_notification *notification);
 
-extern const struct bt_clock_value *
+extern const bt_clock_value *
 bt_notification_stream_end_borrow_default_clock_value_const(
-               const struct bt_notification *notif);
+               const bt_notification *notif);
 
 #ifdef __cplusplus
 }
index 14ffe32742d4462842a43eafff720a20fa263726..ac9ee65b2e007236ff073a23530893fca14e01d8 100644 (file)
  * SOFTWARE.
  */
 
-#include <stdint.h>
+/* For bt_notification, bt_self_notification_iterator, bt_stream */
+#include <babeltrace/types.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_notification;
-struct bt_self_notification_iterator;
-struct bt_stream;
-
 extern
-struct bt_notification *bt_notification_stream_beginning_create(
-               struct bt_self_notification_iterator *notification_iterator,
-               struct bt_stream *stream);
+bt_notification *bt_notification_stream_beginning_create(
+               bt_self_notification_iterator *notification_iterator,
+               bt_stream *stream);
 
 extern
-struct bt_notification *bt_notification_stream_end_create(
-               struct bt_self_notification_iterator *notification_iterator,
-               struct bt_stream *stream);
+bt_notification *bt_notification_stream_end_create(
+               bt_self_notification_iterator *notification_iterator,
+               bt_stream *stream);
 
-extern struct bt_stream *bt_notification_stream_beginning_borrow_stream(
-               struct bt_notification *notification);
+extern bt_stream *bt_notification_stream_beginning_borrow_stream(
+               bt_notification *notification);
 
 extern void bt_notification_stream_beginning_set_default_clock_value(
-               struct bt_notification *notif, uint64_t value_cycles);
+               bt_notification *notif, uint64_t value_cycles);
 
-extern struct bt_stream *bt_notification_stream_end_borrow_stream(
-               struct bt_notification *notification);
+extern bt_stream *bt_notification_stream_end_borrow_stream(
+               bt_notification *notification);
 
 extern void bt_notification_stream_end_set_default_clock_value(
-               struct bt_notification *notif, uint64_t value_cycles);
+               bt_notification *notif, uint64_t value_cycles);
 
 #ifdef __cplusplus
 }
index 826ab02b034a456589e2807d42c798cc792b87fc..cb290cdbb999dd17ca48d59c4db3a84f186c3936 100644 (file)
 
 #include <stdint.h>
 
-/* For bt_bool */
+/* For bt_bool, bt_port, bt_connection, bt_component */
 #include <babeltrace/types.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_port;
-struct bt_connection;
-struct bt_component;
-
 enum bt_port_type {
        BT_PORT_TYPE_INPUT = 0,
        BT_PORT_TYPE_OUTPUT = 1,
 };
 
-extern const char *bt_port_get_name(const struct bt_port *port);
+extern const char *bt_port_get_name(const bt_port *port);
 
-extern enum bt_port_type bt_port_get_type(const struct bt_port *port);
+extern enum bt_port_type bt_port_get_type(const bt_port *port);
 
-extern const struct bt_connection *bt_port_borrow_connection_const(
-               const struct bt_port *port);
+extern const bt_connection *bt_port_borrow_connection_const(
+               const bt_port *port);
 
-extern const struct bt_component *bt_port_borrow_component_const(
-               const struct bt_port *port);
+extern const bt_component *bt_port_borrow_component_const(
+               const bt_port *port);
 
-extern bt_bool bt_port_is_connected(const struct bt_port *port);
+extern bt_bool bt_port_is_connected(const bt_port *port);
 
 static inline
-bt_bool bt_port_is_input(const struct bt_port *port)
+bt_bool bt_port_is_input(const bt_port *port)
 {
        return bt_port_get_type(port) == BT_PORT_TYPE_INPUT;
 }
 
 static inline
-bt_bool bt_port_is_output(const struct bt_port *port)
+bt_bool bt_port_is_output(const bt_port *port)
 {
        return bt_port_get_type(port) == BT_PORT_TYPE_OUTPUT;
 }
 
-extern void bt_port_get_ref(const struct bt_port *port);
+extern void bt_port_get_ref(const bt_port *port);
 
-extern void bt_port_put_ref(const struct bt_port *port);
+extern void bt_port_put_ref(const bt_port *port);
 
 #define BT_PORT_PUT_REF_AND_RESET(_var)                \
        do {                                    \
index 1f13de9dd10a3a6b6b3732272ea8fc2ae3cc2087..51aef4732697b89a1dadaa79274233fea855a526 100644 (file)
  * SOFTWARE.
  */
 
+/* For bt_port, bt_port_input */
+#include <babeltrace/types.h>
+
 #include <stdint.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_port;
-struct bt_port_input;
-
 static inline
-const struct bt_port *bt_port_input_as_port_const(
-               const struct bt_port_input *port_input)
+const bt_port *bt_port_input_as_port_const(
+               const bt_port_input *port_input)
 {
        return (const void *) port_input;
 }
 
-extern void bt_port_input_get_ref(const struct bt_port_input *port_input);
+extern void bt_port_input_get_ref(const bt_port_input *port_input);
 
-extern void bt_port_input_put_ref(const struct bt_port_input *port_input);
+extern void bt_port_input_put_ref(const bt_port_input *port_input);
 
 #define BT_PORT_INPUT_PUT_REF_AND_RESET(_var)          \
        do {                                            \
index d13c7395c777e81c0611c7b0e5fd77359cf87e0e..7c6e801fa9763e9e65198d861cf411e43d5cf295 100644 (file)
  * SOFTWARE.
  */
 
+/* For bt_port, bt_port_output */
+#include <babeltrace/types.h>
+
 #include <stdint.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_port;
-struct bt_port_output;
-
 static inline
-const struct bt_port *bt_port_output_as_port_const(
-               const struct bt_port_output *port_output)
+const bt_port *bt_port_output_as_port_const(
+               const bt_port_output *port_output)
 {
        return (const void *) port_output;
 }
 
-extern void bt_port_output_get_ref(const struct bt_port_output *port_output);
+extern void bt_port_output_get_ref(const bt_port_output *port_output);
 
-extern void bt_port_output_put_ref(const struct bt_port_output *port_output);
+extern void bt_port_output_put_ref(const bt_port_output *port_output);
 
 #define BT_PORT_OUTPUT_PUT_REF_AND_RESET(_var)         \
        do {                                            \
index dfe5a3f4905fc2725337dd4719e83f0b31ce1d4a..ceec9141055d31829a4d1b32bad3bece24f49e92 100644 (file)
 /* For enum bt_notification_iterator_status */
 #include <babeltrace/graph/notification-iterator.h>
 
-/* For bt_notification_array_const */
-#include <babeltrace/graph/notification-const.h>
+/*
+ * For bt_port, bt_notification, bt_notification_iterator,
+ * bt_port_output_notification_iterator, bt_graph, bt_port_output,
+ * bt_notification_array_const
+ */
+#include <babeltrace/types.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_port;
-struct bt_notification;
-struct bt_notification_iterator;
-struct bt_port_output_notification_iterator;
-struct bt_graph;
-struct bt_port_output;
-
 static inline
-struct bt_notification_iterator *
+bt_notification_iterator *
 bt_port_output_notification_iterator_as_notification_iterator(
-               struct bt_port_output_notification_iterator *iterator)
+               bt_port_output_notification_iterator *iterator)
 {
        return (void *) iterator;
 }
 
-extern struct bt_port_output_notification_iterator *
+extern bt_port_output_notification_iterator *
 bt_port_output_notification_iterator_create(
-               struct bt_graph *graph,
-               const struct bt_port_output *output_port);
+               bt_graph *graph,
+               const bt_port_output *output_port);
 
 extern enum bt_notification_iterator_status
 bt_port_output_notification_iterator_next(
-               struct bt_port_output_notification_iterator *iterator,
+               bt_port_output_notification_iterator *iterator,
                bt_notification_array_const *notifs, uint64_t *count);
 
 extern void bt_port_output_notification_iterator_get_ref(
-               const struct bt_port_output_notification_iterator *port_output_notification_iterator);
+               const bt_port_output_notification_iterator *port_output_notification_iterator);
 
 extern void bt_port_output_notification_iterator_put_ref(
-               const struct bt_port_output_notification_iterator *port_output_notification_iterator);
+               const bt_port_output_notification_iterator *port_output_notification_iterator);
 
 #define BT_PORT_OUTPUT_NOTIFICATION_ITERATOR_PUT_REF_AND_RESET(_var)   \
        do {                                                            \
index d2e846cedf7ad25824afce8b054c1c53773027c9..ab6dc242c8211eb95f515db7eed0902901a2817f 100644 (file)
  * SOFTWARE.
  */
 
-/* For bt_bool */
+/* For bt_bool, bt_query_executor */
 #include <babeltrace/types.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_query_executor;
-
 enum bt_query_executor_status {
        BT_QUERY_EXECUTOR_STATUS_OK = 0,
        BT_QUERY_EXECUTOR_STATUS_AGAIN = 11,
@@ -45,13 +43,13 @@ enum bt_query_executor_status {
 
 extern
 bt_bool bt_query_executor_is_canceled(
-               const struct bt_query_executor *query_executor);
+               const bt_query_executor *query_executor);
 
 extern void bt_query_executor_get_ref(
-               const struct bt_query_executor *query_executor);
+               const bt_query_executor *query_executor);
 
 extern void bt_query_executor_put_ref(
-               const struct bt_query_executor *query_executor);
+               const bt_query_executor *query_executor);
 
 #define BT_QUERY_EXECUTOR_PUT_REF_AND_RESET(_var)              \
        do {                                                    \
index c86021cdd0454eaa1ac6e01150d697e3ed2da378..ef1b09e275793f45b974ec62f450f0a36b11262d 100644 (file)
 /* For enum bt_query_executor_status */
 #include <babeltrace/graph/query-executor.h>
 
+/* For bt_query_executor, bt_component_class, bt_value */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_query_executor;
-struct bt_component_class;
-struct bt_value;
-
 extern
-struct bt_query_executor *bt_query_executor_create(void);
+bt_query_executor *bt_query_executor_create(void);
 
 extern
 enum bt_query_executor_status bt_query_executor_query(
-               struct bt_query_executor *query_executor,
-               const struct bt_component_class *component_class,
-               const char *object, const struct bt_value *params,
-               const struct bt_value **result);
+               bt_query_executor *query_executor,
+               const bt_component_class *component_class,
+               const char *object, const bt_value *params,
+               const bt_value **result);
 
 extern
 enum bt_query_executor_status bt_query_executor_cancel(
-               struct bt_query_executor *query_executor);
+               bt_query_executor *query_executor);
 
 #ifdef __cplusplus
 }
index a171821e6e9bce136bdbb9a0b03020c67c1da41a..2d209ac241c21f44ebe4848b4d8554fb6c7091ce 100644 (file)
  * SOFTWARE.
  */
 
+/* For bt_component_class_filter, bt_self_component_class_filter */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_component_class_filter;
-struct bt_self_component_class_filter;
-
 static inline
-const struct bt_component_class_filter *
+const bt_component_class_filter *
 bt_self_component_class_filter_as_component_class_filter(
-               struct bt_self_component_class_filter *self_comp_cls_filter)
+               bt_self_component_class_filter *self_comp_cls_filter)
 {
        return (const void *) self_comp_cls_filter;
 }
index 1ccd615ad079e4b0b2e6c2f132fdceda04b80da5..8f40385e4d76378a3e54e74f3d2f65717a784b98 100644 (file)
  * SOFTWARE.
  */
 
+/* For bt_component_class_sink, bt_self_component_class_sink */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_component_class_sink;
-struct bt_self_component_class_sink;
-
 static inline
-const struct bt_component_class_sink *
+const bt_component_class_sink *
 bt_self_component_class_sink_as_component_class_sink(
-               struct bt_self_component_class_sink *self_comp_cls_sink)
+               bt_self_component_class_sink *self_comp_cls_sink)
 {
        return (const void *) self_comp_cls_sink;
 }
index 07bb19121251f026942106da54799acf64cac639..29bb1aa105fef0a2705b311055433396763ffda3 100644 (file)
  * SOFTWARE.
  */
 
+/* For bt_component_class_source, bt_self_component_class_source */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_component_class_source;
-struct bt_self_component_class_source;
-
 static inline
-const struct bt_component_class_source *
+const bt_component_class_source *
 bt_self_component_class_source_as_component_class_source(
-               struct bt_self_component_class_source *self_comp_cls_source)
+               bt_self_component_class_source *self_comp_cls_source)
 {
        return (const void *) self_comp_cls_source;
 }
index c47fc1262d23f024b4634915b38b0d297032c480..13a976f4b3e2e68aa3917eeeff5a7c86b49f3753 100644 (file)
 /* For enum bt_self_component_status */
 #include <babeltrace/graph/self-component.h>
 
+/*
+ * For bt_component_filter, bt_self_component, bt_self_component_filter,
+ * bt_self_component_port_input, bt_self_component_port_output
+ */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_component_filter;
-struct bt_self_component;
-struct bt_self_component_filter;
-struct bt_self_component_port_input;
-struct bt_self_component_port_output;
-
 static inline
-struct bt_self_component *bt_self_component_filter_as_self_component(
-               struct bt_self_component_filter *self_comp_filter)
+bt_self_component *bt_self_component_filter_as_self_component(
+               bt_self_component_filter *self_comp_filter)
 {
        return (void *) self_comp_filter;
 }
 
 static inline
-const struct bt_component_filter *
+const bt_component_filter *
 bt_self_component_filter_as_component_filter(
-               struct bt_self_component_filter *self_comp_filter)
+               bt_self_component_filter *self_comp_filter)
 {
        return (const void *) self_comp_filter;
 }
 
-extern struct bt_component_filter *bt_component_filter_borrow_from_self(
-               struct bt_self_component_filter *self_component);
+extern bt_component_filter *bt_component_filter_borrow_from_self(
+               bt_self_component_filter *self_component);
 
-extern struct bt_self_component_port_output *
+extern bt_self_component_port_output *
 bt_self_component_filter_borrow_output_port_by_name(
-               struct bt_self_component_filter *self_component,
+               bt_self_component_filter *self_component,
                const char *name);
 
-extern struct bt_self_component_port_output *
+extern bt_self_component_port_output *
 bt_self_component_filter_borrow_output_port_by_index(
-               struct bt_self_component_filter *self_component,
+               bt_self_component_filter *self_component,
                uint64_t index);
 
 extern enum bt_self_component_status
 bt_self_component_filter_add_output_port(
-               struct bt_self_component_filter *self_component,
+               bt_self_component_filter *self_component,
                const char *name, void *data,
-               struct bt_self_component_port_output **self_component_port);
+               bt_self_component_port_output **self_component_port);
 
-extern struct bt_self_component_port_input *
+extern bt_self_component_port_input *
 bt_self_component_filter_borrow_input_port_by_name(
-               struct bt_self_component_filter *self_component,
+               bt_self_component_filter *self_component,
                const char *name);
 
-extern struct bt_self_component_port_input *
+extern bt_self_component_port_input *
 bt_self_component_filter_borrow_input_port_by_index(
-               struct bt_self_component_filter *self_component,
+               bt_self_component_filter *self_component,
                uint64_t index);
 
 extern enum bt_self_component_status
 bt_self_component_filter_add_input_port(
-               struct bt_self_component_filter *self_component,
+               bt_self_component_filter *self_component,
                const char *name, void *data,
-               struct bt_self_component_port_input **self_component_port);
+               bt_self_component_port_input **self_component_port);
 
 #ifdef __cplusplus
 }
index 45f7e194306c85d2d443aa35aa38a38723ca1d9b..0f8712bcecd27e6237f1596a626fb14cb4864f19 100644 (file)
 /* For enum bt_notification_iterator_status */
 #include <babeltrace/graph/notification-iterator.h>
 
-/* For bt_notification_array_const */
-#include <babeltrace/graph/notification-const.h>
+/*
+ * For bt_component, bt_notification_iterator,
+ * bt_self_component_port_input_notification_iterator,
+ * bt_self_component_port_input, bt_notification_array_const
+ */
+#include <babeltrace/types.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_component;
-struct bt_notification_iterator;
-struct bt_self_component_port_input_notification_iterator;
-struct bt_self_component_port_input;
-
 static inline
-struct bt_notification_iterator *
+bt_notification_iterator *
 bt_self_component_port_input_notification_iterator_as_notification_iterator(
-               struct bt_self_component_port_input_notification_iterator *iterator)
+               bt_self_component_port_input_notification_iterator *iterator)
 {
        return (void *) iterator;
 }
 
-extern struct bt_self_component_port_input_notification_iterator *
+extern bt_self_component_port_input_notification_iterator *
 bt_self_component_port_input_notification_iterator_create(
-               struct bt_self_component_port_input *input_port);
+               bt_self_component_port_input *input_port);
 
-extern struct bt_component *
+extern bt_component *
 bt_self_component_port_input_notification_iterator_borrow_component(
-               struct bt_self_component_port_input_notification_iterator *iterator);
+               bt_self_component_port_input_notification_iterator *iterator);
 
 extern enum bt_notification_iterator_status
 bt_self_component_port_input_notification_iterator_next(
-               struct bt_self_component_port_input_notification_iterator *iterator,
+               bt_self_component_port_input_notification_iterator *iterator,
                bt_notification_array_const *notifs, uint64_t *count);
 
 extern void bt_self_component_port_input_notification_iterator_get_ref(
-               const struct bt_self_component_port_input_notification_iterator *self_component_port_input_notification_iterator);
+               const bt_self_component_port_input_notification_iterator *self_component_port_input_notification_iterator);
 
 extern void bt_self_component_port_input_notification_iterator_put_ref(
-               const struct bt_self_component_port_input_notification_iterator *self_component_port_input_notification_iterator);
+               const bt_self_component_port_input_notification_iterator *self_component_port_input_notification_iterator);
 
 #define BT_SELF_COMPONENT_PORT_INPUT_NOTIFICATION_ITERATOR_PUT_REF_AND_RESET(_var) \
        do {                                                            \
index 2a55c6029650ef52c57f15f72dcbd410e8678190..ab8694b180dc793fa2a65750240aa5f35dad92a6 100644 (file)
 /* For enum bt_self_component_port_status */
 #include <babeltrace/graph/self-component-port.h>
 
+/*
+ * For bt_port_input, bt_self_component_port,
+ * bt_self_component_port_input
+ */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_port_input;
-struct bt_self_component_port;
-struct bt_self_component_port_input;
-
 static inline
-struct bt_self_component_port *
+bt_self_component_port *
 bt_self_component_port_input_as_self_component_port(
-               struct bt_self_component_port_input *self_component_port)
+               bt_self_component_port_input *self_component_port)
 {
        return (void *) self_component_port;
 }
 
 static inline
-const struct bt_port_input *bt_self_component_port_input_as_port_input(
-               const struct bt_self_component_port_input *self_component_port)
+const bt_port_input *bt_self_component_port_input_as_port_input(
+               const bt_self_component_port_input *self_component_port)
 {
        return (const void *) self_component_port;
 }
index 5d58698ae6555258874fea2a9f6cd05ddc289b0a..6fd4b138fb88b48ba5c796573d1e462b10087c6c 100644 (file)
 /* For enum bt_self_component_port_status */
 #include <babeltrace/graph/self-component-port.h>
 
+/*
+ * For bt_port_output, bt_self_component_port,
+ * bt_self_component_port_output
+ */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_port_output;
-struct bt_self_component_port;
-struct bt_self_component_port_output;
-
 static inline
-struct bt_self_component_port *
+bt_self_component_port *
 bt_self_component_port_output_as_self_component_port(
-               struct bt_self_component_port_output *self_component_port)
+               bt_self_component_port_output *self_component_port)
 {
        return (void *) self_component_port;
 }
 
 static inline
-const struct bt_port_output *bt_self_component_port_output_as_port_output(
-               struct bt_self_component_port_output *self_component_port)
+const bt_port_output *bt_self_component_port_output_as_port_output(
+               bt_self_component_port_output *self_component_port)
 {
        return (const void *) self_component_port;
 }
index 7af4102a0f404b6a2961c0342e6f6fb26c04ff99..4a79409b587f1df57a134be55e122dac2058cd71 100644 (file)
  * SOFTWARE.
  */
 
+/*
+ * For bt_port, bt_self_component_port, bt_self_component, bt_connection
+ */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_port;
-struct bt_self_component_port;
-struct bt_self_component;
-struct bt_connection;
-
 enum bt_self_component_port_status {
        BT_SELF_PORT_STATUS_OK = 0,
 };
 
 static inline
-const struct bt_port *bt_self_component_port_as_port(
-               struct bt_self_component_port *self_port)
+const bt_port *bt_self_component_port_as_port(
+               bt_self_component_port *self_port)
 {
        return (const void *) self_port;
 }
 
-extern struct bt_self_component *bt_self_component_port_borrow_component(
-               struct bt_self_component_port *self_port);
+extern bt_self_component *bt_self_component_port_borrow_component(
+               bt_self_component_port *self_port);
 
 extern enum bt_self_component_port_status
 bt_self_component_port_remove_from_component(
-               struct bt_self_component_port *self_port);
+               bt_self_component_port *self_port);
 
 extern void *bt_self_component_port_get_data(
-               const struct bt_self_component_port *self_port);
+               const bt_self_component_port *self_port);
 
 #ifdef __cplusplus
 }
index 0a389038418eb7857c546d4ea64bbdc88b048d47..720a9919b8390fe493db00b1557f4fb756bbdc07 100644 (file)
 /* For enum bt_self_component_status */
 #include <babeltrace/graph/self-component.h>
 
+/*
+ * For bt_component_sink, bt_self_component, bt_self_component_sink,
+ * bt_self_component_port_input
+ */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_component_sink;
-struct bt_self_component;
-struct bt_self_component_sink;
-struct bt_self_component_port_input;
-
 static inline
-struct bt_self_component *bt_self_component_sink_as_self_component(
-               struct bt_self_component_sink *self_comp_sink)
+bt_self_component *bt_self_component_sink_as_self_component(
+               bt_self_component_sink *self_comp_sink)
 {
        return (void *) self_comp_sink;
 }
 
 static inline
-const struct bt_component_sink *
+const bt_component_sink *
 bt_self_component_sink_as_component_sink(
-               struct bt_self_component_sink *self_comp_sink)
+               bt_self_component_sink *self_comp_sink)
 {
        return (const void *) self_comp_sink;
 }
 
-extern struct bt_self_component_port_input *
+extern bt_self_component_port_input *
 bt_self_component_sink_borrow_input_port_by_name(
-               struct bt_self_component_sink *self_component,
+               bt_self_component_sink *self_component,
                const char *name);
 
-extern struct bt_self_component_port_input *
+extern bt_self_component_port_input *
 bt_self_component_sink_borrow_input_port_by_index(
-               struct bt_self_component_sink *self_component, uint64_t index);
+               bt_self_component_sink *self_component, uint64_t index);
 
 extern enum bt_self_component_status
 bt_self_component_sink_add_input_port(
-               struct bt_self_component_sink *self_component,
+               bt_self_component_sink *self_component,
                const char *name, void *user_data,
-               struct bt_self_component_port_input **self_component_port);
+               bt_self_component_port_input **self_component_port);
 
 #ifdef __cplusplus
 }
index b9f148b5de97794356fd6566a6f4f995cae37648..ed2676e7e60fcb9264679e7e9d59ec7d6d8a8c72 100644 (file)
 /* For enum bt_self_component_status */
 #include <babeltrace/graph/self-component.h>
 
+/*
+ * For bt_component_source, bt_self_component, bt_self_component_source,
+ * bt_self_component_port_output
+ */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_component_source;
-struct bt_self_component;
-struct bt_self_component_source;
-struct bt_self_component_port_output;
-
 static inline
-struct bt_self_component *bt_self_component_source_as_self_component(
-               struct bt_self_component_source *self_comp_source)
+bt_self_component *bt_self_component_source_as_self_component(
+               bt_self_component_source *self_comp_source)
 {
        return (void *) self_comp_source;
 }
 
 static inline
-const struct bt_component_source *
+const bt_component_source *
 bt_self_component_source_as_component_source(
-               struct bt_self_component_source *self_comp_source)
+               bt_self_component_source *self_comp_source)
 {
        return (const void *) self_comp_source;
 }
 
-extern struct bt_self_component_port_output *
+extern bt_self_component_port_output *
 bt_self_component_source_borrow_output_port_by_name(
-               struct bt_self_component_source *self_component,
+               bt_self_component_source *self_component,
                const char *name);
 
-extern struct bt_self_component_port_output *
+extern bt_self_component_port_output *
 bt_self_component_source_borrow_output_port_by_index(
-               struct bt_self_component_source *self_component,
+               bt_self_component_source *self_component,
                uint64_t index);
 
 extern enum bt_self_component_status
 bt_self_component_source_add_output_port(
-               struct bt_self_component_source *self_component,
+               bt_self_component_source *self_component,
                const char *name, void *user_data,
-               struct bt_self_component_port_output **self_component_port);
+               bt_self_component_port_output **self_component_port);
 
 #ifdef __cplusplus
 }
index a1bc8b49f0e38ffb9742a81293dfd6c974b4811a..3461eace7af5433e84ab6c2cb5b4a1d4ad5cce88 100644 (file)
  * SOFTWARE.
  */
 
+/* For bt_component, bt_self_component */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_component;
-struct bt_self_component;
-
 enum bt_self_component_status {
        BT_SELF_COMPONENT_STATUS_OK = 0,
        BT_SELF_COMPONENT_STATUS_END = 1,
@@ -40,17 +40,17 @@ enum bt_self_component_status {
 };
 
 static inline
-const struct bt_component *bt_self_component_as_component(
-               struct bt_self_component *self_component)
+const bt_component *bt_self_component_as_component(
+               bt_self_component *self_component)
 {
        return (const void *) self_component;
 }
 
 extern void *bt_self_component_get_data(
-               const struct bt_self_component *private_component);
+               const bt_self_component *private_component);
 
 extern void bt_self_component_set_data(
-               struct bt_self_component *private_component, void *data);
+               bt_self_component *private_component, void *data);
 
 #ifdef __cplusplus
 }
index 2d850a2595b9a514187f1c067c060efd184ea43f..bac1875a808dec3722884332fc99639103987157 100644 (file)
 /* For BT_NOTIFICATION_ITERATOR_STATUS_* */
 #include <babeltrace/graph/notification-iterator.h>
 
+/* For bt_self_component, bt_self_notification_iterator, bt_self_port_output */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_self_component;
-struct bt_self_notification_iterator;
-
 enum bt_self_notification_iterator_status {
        BT_SELF_NOTIFICATION_ITERATOR_STATUS_OK = BT_NOTIFICATION_ITERATOR_STATUS_OK,
        BT_SELF_NOTIFICATION_ITERATOR_STATUS_END = BT_NOTIFICATION_ITERATOR_STATUS_END,
@@ -41,20 +41,20 @@ enum bt_self_notification_iterator_status {
        BT_SELF_NOTIFICATION_ITERATOR_STATUS_NOMEM = BT_NOTIFICATION_ITERATOR_STATUS_NOMEM,
 };
 
-extern struct bt_self_component *
+extern bt_self_component *
 bt_self_notification_iterator_borrow_component(
-               struct bt_self_notification_iterator *notification_iterator);
+               bt_self_notification_iterator *notification_iterator);
 
-extern struct bt_self_port_output *
+extern bt_self_port_output *
 bt_self_notification_iterator_borrow_port(
-               struct bt_self_notification_iterator *notification_iterator);
+               bt_self_notification_iterator *notification_iterator);
 
 extern void bt_self_notification_iterator_set_data(
-               struct bt_self_notification_iterator *notification_iterator,
+               bt_self_notification_iterator *notification_iterator,
                void *user_data);
 
 extern void *bt_self_notification_iterator_get_data(
-               const struct bt_self_notification_iterator *notification_iterator);
+               const bt_self_notification_iterator *notification_iterator);
 
 #ifdef __cplusplus
 }
index ad0b454d4b9cb02ddbad611ee879969018ca30f3..fe581f4edc3e208510ca93301260e18c9dc77eef 100644 (file)
 #include <stdint.h>
 #include <stddef.h>
 
-/* For bt_bool */
+/*
+ * For bt_bool, bt_plugin, bt_plugin_set, bt_component_class,
+ * bt_component_class_source, bt_component_class_filter,
+ * bt_component_class_sink
+ */
 #include <babeltrace/types.h>
 
 /* For enum bt_component_class_type */
 extern "C" {
 #endif
 
-struct bt_plugin;
-struct bt_plugin_set;
-struct bt_component_class;
-struct bt_component_class_source;
-struct bt_component_class_filter;
-struct bt_component_class_sink;
-
 enum bt_plugin_status {
        BT_PLUGIN_STATUS_OK =           0,
        BT_PLUGIN_STATUS_ERROR =        -1,
        BT_PLUGIN_STATUS_NOMEM =        -12,
 };
 
-extern const struct bt_plugin *bt_plugin_find(const char *plugin_name);
+extern const bt_plugin *bt_plugin_find(const char *plugin_name);
 
-extern const struct bt_plugin_set *bt_plugin_create_all_from_file(
+extern const bt_plugin_set *bt_plugin_create_all_from_file(
                const char *path);
 
-extern const struct bt_plugin_set *bt_plugin_create_all_from_dir(
+extern const bt_plugin_set *bt_plugin_create_all_from_dir(
                const char *path, bt_bool recurse);
 
-extern const struct bt_plugin_set *bt_plugin_create_all_from_static(void);
+extern const bt_plugin_set *bt_plugin_create_all_from_static(void);
 
-extern const char *bt_plugin_get_name(const struct bt_plugin *plugin);
+extern const char *bt_plugin_get_name(const bt_plugin *plugin);
 
-extern const char *bt_plugin_get_author(const struct bt_plugin *plugin);
+extern const char *bt_plugin_get_author(const bt_plugin *plugin);
 
-extern const char *bt_plugin_get_license(const struct bt_plugin *plugin);
+extern const char *bt_plugin_get_license(const bt_plugin *plugin);
 
-extern const char *bt_plugin_get_description(const struct bt_plugin *plugin);
+extern const char *bt_plugin_get_description(const bt_plugin *plugin);
 
-extern const char *bt_plugin_get_path(const struct bt_plugin *plugin);
+extern const char *bt_plugin_get_path(const bt_plugin *plugin);
 
 extern enum bt_property_availability bt_plugin_get_version(
-               const struct bt_plugin *plugin, unsigned int *major,
+               const bt_plugin *plugin, unsigned int *major,
                unsigned int *minor, unsigned int *patch, const char **extra);
 
 extern uint64_t bt_plugin_get_source_component_class_count(
-               const struct bt_plugin *plugin);
+               const bt_plugin *plugin);
 
 extern uint64_t bt_plugin_get_filter_component_class_count(
-               const struct bt_plugin *plugin);
+               const bt_plugin *plugin);
 
 extern uint64_t bt_plugin_get_sink_component_class_count(
-               const struct bt_plugin *plugin);
+               const bt_plugin *plugin);
 
-extern const struct bt_component_class_source *
+extern const bt_component_class_source *
 bt_plugin_borrow_source_component_class_by_index_const_const(
-               const struct bt_plugin *plugin, uint64_t index);
+               const bt_plugin *plugin, uint64_t index);
 
-extern const struct bt_component_class_filter *
+extern const bt_component_class_filter *
 bt_plugin_borrow_filter_component_class_by_index_const(
-               const struct bt_plugin *plugin, uint64_t index);
+               const bt_plugin *plugin, uint64_t index);
 
-extern const struct bt_component_class_sink *
+extern const bt_component_class_sink *
 bt_plugin_borrow_sink_component_class_by_index_const(
-               const struct bt_plugin *plugin, uint64_t index);
+               const bt_plugin *plugin, uint64_t index);
 
-extern const struct bt_component_class_source *
+extern const bt_component_class_source *
 bt_plugin_borrow_source_component_class_by_name_const(
-               const struct bt_plugin *plugin, const char *name);
+               const bt_plugin *plugin, const char *name);
 
-extern const struct bt_component_class_filter *
+extern const bt_component_class_filter *
 bt_plugin_borrow_filter_component_class_by_name_const(
-               const struct bt_plugin *plugin, const char *name);
+               const bt_plugin *plugin, const char *name);
 
-extern const struct bt_component_class_sink *
+extern const bt_component_class_sink *
 bt_plugin_borrow_sink_component_class_by_name_const(
-               const struct bt_plugin *plugin, const char *name);
+               const bt_plugin *plugin, const char *name);
 
-extern void bt_plugin_get_ref(const struct bt_plugin *plugin);
+extern void bt_plugin_get_ref(const bt_plugin *plugin);
 
-extern void bt_plugin_put_ref(const struct bt_plugin *plugin);
+extern void bt_plugin_put_ref(const bt_plugin *plugin);
 
 #define BT_PLUGIN_PUT_REF_AND_RESET(_var)              \
        do {                                            \
index f41bc1ffbc3452b3085b1591cc6eca0044475d53..ca6e9080606dbe34b88e1fd23f0da86c5a7183e3 100644 (file)
@@ -64,7 +64,7 @@ extern "C" {
 
 /* Plugin initialization function type */
 typedef enum bt_plugin_status (*bt_plugin_init_func)(
-               const struct bt_plugin *plugin);
+               const bt_plugin *plugin);
 
 /* Plugin exit function type */
 typedef enum bt_plugin_status (*bt_plugin_exit_func)(void);
index 53f8c24a8bbdb4c05a854c21fd89faaafe9202b2..772c7cbbb60f2eebb1cd43ac372bb10d4b71cdfa 100644 (file)
 
 #include <stdint.h>
 
+/* For bt_plugin, bt_plugin_set */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_plugin;
-struct bt_plugin_set;
-
 extern uint64_t bt_plugin_set_get_plugin_count(
-               const struct bt_plugin_set *plugin_set);
+               const bt_plugin_set *plugin_set);
 
-extern const struct bt_plugin *bt_plugin_set_borrow_plugin_by_index_const(
-               const struct bt_plugin_set *plugin_set, uint64_t index);
+extern const bt_plugin *bt_plugin_set_borrow_plugin_by_index_const(
+               const bt_plugin_set *plugin_set, uint64_t index);
 
-extern void bt_plugin_set_get_ref(const struct bt_plugin_set *plugin_set);
+extern void bt_plugin_set_get_ref(const bt_plugin_set *plugin_set);
 
-extern void bt_plugin_set_put_ref(const struct bt_plugin_set *plugin_set);
+extern void bt_plugin_set_put_ref(const bt_plugin_set *plugin_set);
 
 #define BT_PLUGIN_SET_PUT_REF_AND_RESET(_var)          \
        do {                                            \
index 0a0cecf84dca9a59cc0e91d144112b4c9fde6e33..0974facc848b0740a0db303aa8c9e7ef82035ef2 100644 (file)
 
 #include <stdint.h>
 
-/* For bt_bool, bt_uuid */
+/* For bt_bool, bt_uuid, bt_clock_class */
 #include <babeltrace/types.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_clock_class;
-
 extern const char *bt_clock_class_get_name(
-               const struct bt_clock_class *clock_class);
+               const bt_clock_class *clock_class);
 
 extern const char *bt_clock_class_get_description(
-               const struct bt_clock_class *clock_class);
+               const bt_clock_class *clock_class);
 
 extern uint64_t bt_clock_class_get_frequency(
-               const struct bt_clock_class *clock_class);
+               const bt_clock_class *clock_class);
 
 extern uint64_t bt_clock_class_get_precision(
-               const struct bt_clock_class *clock_class);
+               const bt_clock_class *clock_class);
 
-extern void bt_clock_class_get_offset(const struct bt_clock_class *clock_class,
+extern void bt_clock_class_get_offset(const bt_clock_class *clock_class,
                int64_t *seconds, uint64_t *cycles);
 
 extern bt_bool bt_clock_class_is_absolute(
-               const struct bt_clock_class *clock_class);
+               const bt_clock_class *clock_class);
 
 extern bt_uuid bt_clock_class_get_uuid(
-               const struct bt_clock_class *clock_class);
+               const bt_clock_class *clock_class);
 
 extern int bt_clock_class_cycles_to_ns_from_origin(
-               const struct bt_clock_class *clock_class,
+               const bt_clock_class *clock_class,
                uint64_t cycles, int64_t *ns_from_origin);
 
-extern void bt_clock_class_get_ref(const struct bt_clock_class *clock_class);
+extern void bt_clock_class_get_ref(const bt_clock_class *clock_class);
 
-extern void bt_clock_class_put_ref(const struct bt_clock_class *clock_class);
+extern void bt_clock_class_put_ref(const bt_clock_class *clock_class);
 
 #define BT_CLOCK_CLASS_PUT_REF_AND_RESET(_var)         \
        do {                                            \
index 53bc6df1439535e669f6741f8df35b74f6782a83..5fae62ca1964f825932bc5c20164e2a240ceabaf 100644 (file)
 
 #include <stdint.h>
 
-/* For bt_bool, bt_uuid */
+/* For bt_bool, bt_uuid, bt_clock_class */
 #include <babeltrace/types.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_clock_class;
+extern bt_clock_class *bt_clock_class_create(void);
 
-extern struct bt_clock_class *bt_clock_class_create(void);
-
-extern int bt_clock_class_set_name(struct bt_clock_class *clock_class,
+extern int bt_clock_class_set_name(bt_clock_class *clock_class,
                const char *name);
 
-extern int bt_clock_class_set_description(struct bt_clock_class *clock_class,
+extern int bt_clock_class_set_description(bt_clock_class *clock_class,
                const char *description);
 
-extern void bt_clock_class_set_frequency(struct bt_clock_class *clock_class,
+extern void bt_clock_class_set_frequency(bt_clock_class *clock_class,
                uint64_t freq);
 
-extern void bt_clock_class_set_precision(struct bt_clock_class *clock_class,
+extern void bt_clock_class_set_precision(bt_clock_class *clock_class,
                uint64_t precision);
 
-extern void bt_clock_class_set_offset(struct bt_clock_class *clock_class,
+extern void bt_clock_class_set_offset(bt_clock_class *clock_class,
                int64_t seconds, uint64_t cycles);
 
-extern void bt_clock_class_set_is_absolute(struct bt_clock_class *clock_class,
+extern void bt_clock_class_set_is_absolute(bt_clock_class *clock_class,
                bt_bool is_absolute);
 
-extern void bt_clock_class_set_uuid(struct bt_clock_class *clock_class,
+extern void bt_clock_class_set_uuid(bt_clock_class *clock_class,
                bt_uuid uuid);
 
 #ifdef __cplusplus
index f2ef6ff5ffb7871b8bc6c1d96ef50cc1ab15eb79..53ed627b59385f8d2c93421277d6f5c0e7ced07f 100644 (file)
 
 #include <stdint.h>
 
+/* For bt_clock_class, bt_clock_value */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_clock_class;
-struct bt_clock_value;
-
 enum bt_clock_value_status {
        BT_CLOCK_VALUE_STATUS_KNOWN,
        BT_CLOCK_VALUE_STATUS_UNKNOWN,
 };
 
-extern const struct bt_clock_class *bt_clock_value_borrow_clock_class_const(
-               const struct bt_clock_value *clock_value);
+extern const bt_clock_class *bt_clock_value_borrow_clock_class_const(
+               const bt_clock_value *clock_value);
 
 extern uint64_t bt_clock_value_get_value(
-               const struct bt_clock_value *clock_value);
+               const bt_clock_value *clock_value);
 
 extern int bt_clock_value_get_ns_from_origin(
-               const struct bt_clock_value *clock_value,
+               const bt_clock_value *clock_value,
                int64_t *ns_from_origin);
 
 #ifdef __cplusplus
index 2cc9d793b0310a6a2ad2ba95e976e58adbbcf7ee..8acad21561c45c4aa280b22a88d0ca93b9c86302 100644 (file)
@@ -30,6 +30,9 @@
 /* For enum bt_property_availability */
 #include <babeltrace/property.h>
 
+/* For bt_event_class, bt_field_class, bt_stream_class */
+#include <babeltrace/types.h>
+
 #include <stdint.h>
 #include <stddef.h>
 
 extern "C" {
 #endif
 
-struct bt_event_class;
-struct bt_field_class;
-struct bt_stream_class;
-
 enum bt_event_class_log_level {
        BT_EVENT_CLASS_LOG_LEVEL_EMERGENCY,
        BT_EVENT_CLASS_LOG_LEVEL_ALERT,
@@ -59,30 +58,30 @@ enum bt_event_class_log_level {
        BT_EVENT_CLASS_LOG_LEVEL_DEBUG,
 };
 
-extern const struct bt_stream_class *bt_event_class_borrow_stream_class_const(
-               const struct bt_event_class *event_class);
+extern const bt_stream_class *bt_event_class_borrow_stream_class_const(
+               const bt_event_class *event_class);
 
-extern const char *bt_event_class_get_name(const struct bt_event_class *event_class);
+extern const char *bt_event_class_get_name(const bt_event_class *event_class);
 
-extern uint64_t bt_event_class_get_id(const struct bt_event_class *event_class);
+extern uint64_t bt_event_class_get_id(const bt_event_class *event_class);
 
 extern enum bt_property_availability bt_event_class_get_log_level(
-               const struct bt_event_class *event_class,
+               const bt_event_class *event_class,
                enum bt_event_class_log_level *log_level);
 
 extern const char *bt_event_class_get_emf_uri(
-               const struct bt_event_class *event_class);
+               const bt_event_class *event_class);
 
-extern const struct bt_field_class *
+extern const bt_field_class *
 bt_event_class_borrow_specific_context_field_class(
-               const struct bt_event_class *event_class);
+               const bt_event_class *event_class);
 
-extern const struct bt_field_class *bt_event_class_borrow_payload_field_class(
-               const struct bt_event_class *event_class);
+extern const bt_field_class *bt_event_class_borrow_payload_field_class(
+               const bt_event_class *event_class);
 
-extern void bt_event_class_get_ref(const struct bt_event_class *event_class);
+extern void bt_event_class_get_ref(const bt_event_class *event_class);
 
-extern void bt_event_class_put_ref(const struct bt_event_class *event_class);
+extern void bt_event_class_put_ref(const bt_event_class *event_class);
 
 #define BT_EVENT_CLASS_PUT_REF_AND_RESET(_var)         \
        do {                                            \
index 1b0c2d374017e05fd4b50138c6068e1fb855ffe9..2b4a42549e24b545105f793378a2f5fd9bc9350c 100644 (file)
 /* For enum bt_event_class_log_level */
 #include <babeltrace/trace-ir/event-class-const.h>
 
+/* For bt_event_class, bt_stream_class */
+#include <babeltrace/types.h>
+
 #include <stdint.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_event_class;
-struct bt_stream_class;
-
-extern struct bt_event_class *bt_event_class_create(
-               struct bt_stream_class *stream_class);
+extern bt_event_class *bt_event_class_create(
+               bt_stream_class *stream_class);
 
-extern struct bt_event_class *bt_event_class_create_with_id(
-               struct bt_stream_class *stream_class, uint64_t id);
+extern bt_event_class *bt_event_class_create_with_id(
+               bt_stream_class *stream_class, uint64_t id);
 
-extern struct bt_stream_class *bt_event_class_borrow_stream_class(
-               struct bt_event_class *event_class);
+extern bt_stream_class *bt_event_class_borrow_stream_class(
+               bt_event_class *event_class);
 
-extern int bt_event_class_set_name(struct bt_event_class *event_class,
+extern int bt_event_class_set_name(bt_event_class *event_class,
                const char *name);
 
 extern void bt_event_class_set_log_level(
-               struct bt_event_class *event_class,
+               bt_event_class *event_class,
                enum bt_event_class_log_level log_level);
 
 extern int bt_event_class_set_emf_uri(
-               struct bt_event_class *event_class,
+               bt_event_class *event_class,
                const char *emf_uri);
 
 extern int bt_event_class_set_specific_context_field_class(
-               struct bt_event_class *event_class,
-               struct bt_field_class *field_class);
+               bt_event_class *event_class,
+               bt_field_class *field_class);
 
 extern int bt_event_class_set_payload_field_class(
-               struct bt_event_class *event_class,
-               struct bt_field_class *field_class);
+               bt_event_class *event_class,
+               bt_field_class *field_class);
 
 #ifdef __cplusplus
 }
index 06daede82fbdc719d99769d4aaf8549ba1daf878..87877e7889ffb1b425a779c188ef49fcb1f78d17 100644 (file)
 /* For enum bt_clock_value_status */
 #include <babeltrace/trace-ir/clock-value-const.h>
 
+/* For bt_event, bt_clock_value, bt_event_class, bt_field, bt_packet */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_event;
-struct bt_clock_value;
-struct bt_event_class;
-struct bt_field;
-struct bt_packet;
-
-extern const struct bt_event_class *bt_event_borrow_class_const(
-               const struct bt_event *event);
+extern const bt_event_class *bt_event_borrow_class_const(
+               const bt_event *event);
 
-extern const struct bt_packet *bt_event_borrow_packet_const(
-               const struct bt_event *event);
+extern const bt_packet *bt_event_borrow_packet_const(
+               const bt_event *event);
 
-extern const struct bt_stream *bt_event_borrow_stream_const(
-               const struct bt_event *event);
+extern const bt_stream *bt_event_borrow_stream_const(
+               const bt_event *event);
 
-extern const struct bt_field *bt_event_borrow_header_field_const(
-               const struct bt_event *event);
+extern const bt_field *bt_event_borrow_header_field_const(
+               const bt_event *event);
 
-extern const struct bt_field *bt_event_borrow_common_context_field_const(
-               const struct bt_event *event);
+extern const bt_field *bt_event_borrow_common_context_field_const(
+               const bt_event *event);
 
-extern const struct bt_field *bt_event_borrow_specific_context_field_const(
-               const struct bt_event *event);
+extern const bt_field *bt_event_borrow_specific_context_field_const(
+               const bt_event *event);
 
-extern const struct bt_field *bt_event_borrow_payload_field_const(
-               const struct bt_event *event);
+extern const bt_field *bt_event_borrow_payload_field_const(
+               const bt_event *event);
 
 extern enum bt_clock_value_status bt_event_borrow_default_clock_value_const(
-               const struct bt_event *event,
-               const struct bt_clock_value **clock_value);
+               const bt_event *event,
+               const bt_clock_value **clock_value);
 
 #ifdef __cplusplus
 }
index fa3719ed56988fd0e9c17ee260a8504ff14c6fed..8445845dd7c763acff69e2763121ca73e7fd96a5 100644 (file)
  * http://www.efficios.com/ctf
  */
 
+/* For bt_stream_class, bt_event_header_field, bt_field */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_stream_class;
-struct bt_event_header_field;
-struct bt_field;
-
 extern
-struct bt_event_header_field *bt_event_header_field_create(
-               struct bt_stream_class *stream_class);
+bt_event_header_field *bt_event_header_field_create(
+               bt_stream_class *stream_class);
 
 extern
-struct bt_field *bt_event_header_field_borrow_field(
-               struct bt_event_header_field *field);
+bt_field *bt_event_header_field_borrow_field(
+               bt_event_header_field *field);
 
 extern
-void bt_event_header_field_release(struct bt_event_header_field *field);
+void bt_event_header_field_release(bt_event_header_field *field);
 
 #ifdef __cplusplus
 }
index 2c00874216ad628e3aaaba62be6bd9630b3332bf..4440b14523c0fcf57fb2b9973082ead39d753647 100644 (file)
  * http://www.efficios.com/ctf
  */
 
+/* For bt_event, bt_event_header_field, bt_event_class, bt_field, bt_packet */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_event;
-struct bt_event_header_field;
-struct bt_event_class;
-struct bt_field;
-struct bt_packet;
-
-extern struct bt_event_class *bt_event_borrow_class(struct bt_event *event);
+extern bt_event_class *bt_event_borrow_class(bt_event *event);
 
-extern struct bt_packet *bt_event_borrow_packet(struct bt_event *event);
+extern bt_packet *bt_event_borrow_packet(bt_event *event);
 
-extern struct bt_stream *bt_event_borrow_stream(struct bt_event *event);
+extern bt_stream *bt_event_borrow_stream(bt_event *event);
 
-extern struct bt_field *bt_event_borrow_header_field(struct bt_event *event);
+extern bt_field *bt_event_borrow_header_field(bt_event *event);
 
-extern int bt_event_move_header_field(struct bt_event *event,
-               struct bt_event_header_field *header);
+extern int bt_event_move_header_field(bt_event *event,
+               bt_event_header_field *header);
 
-extern struct bt_field *
-bt_event_borrow_common_context_field(struct bt_event *event);
+extern bt_field *
+bt_event_borrow_common_context_field(bt_event *event);
 
-extern struct bt_field *
-bt_event_borrow_specific_context_field(struct bt_event *event);
+extern bt_field *
+bt_event_borrow_specific_context_field(bt_event *event);
 
-extern struct bt_field *bt_event_borrow_payload_field(struct bt_event *event);
+extern bt_field *bt_event_borrow_payload_field(bt_event *event);
 
-extern void bt_event_set_default_clock_value(struct bt_event *event,
+extern void bt_event_set_default_clock_value(bt_event *event,
                uint64_t value_cycles);
 
 #ifdef __cplusplus
index 3f902cebe42ea34c114821b173d661339457b031..da751ebec9faffe3bf18eb956c96e0811534699a 100644 (file)
  * http://www.efficios.com/ctf
  */
 
-/* For bt_bool */
+/*
+ * For bt_bool, bt_field_class bt_field_path
+ * bt_field_class_signed_enumeration_mapping_ranges
+ * bt_field_class_unsigned_enumeration_mapping_ranges,
+ * bt_field_class_enumeration_mapping_label_array
+ */
 #include <babeltrace/types.h>
 
 #include <stdint.h>
 extern "C" {
 #endif
 
-struct bt_field_class;
-struct bt_field_path;
-struct bt_field_class_signed_enumeration_mapping_ranges;
-struct bt_field_class_unsigned_enumeration_mapping_ranges;
-
-typedef const char * const *bt_field_class_enumeration_mapping_label_array;
-
 enum bt_field_class_type {
        BT_FIELD_CLASS_TYPE_UNSIGNED_INTEGER,
        BT_FIELD_CLASS_TYPE_SIGNED_INTEGER,
@@ -65,102 +63,102 @@ enum bt_field_class_integer_preferred_display_base {
 };
 
 extern enum bt_field_class_type bt_field_class_get_type(
-               const struct bt_field_class *field_class);
+               const bt_field_class *field_class);
 
 extern uint64_t bt_field_class_integer_get_field_value_range(
-               const struct bt_field_class *field_class);
+               const bt_field_class *field_class);
 
 extern enum bt_field_class_integer_preferred_display_base
 bt_field_class_integer_get_preferred_display_base(
-               const struct bt_field_class *field_class);
+               const bt_field_class *field_class);
 
 extern bt_bool bt_field_class_real_is_single_precision(
-               const struct bt_field_class *field_class);
+               const bt_field_class *field_class);
 
 extern uint64_t bt_field_class_enumeration_get_mapping_count(
-               const struct bt_field_class *field_class);
+               const bt_field_class *field_class);
 
 extern void bt_field_class_unsigned_enumeration_borrow_mapping_by_index_const(
-               const struct bt_field_class *field_class, uint64_t index,
+               const bt_field_class *field_class, uint64_t index,
                const char **label,
-               const struct bt_field_class_unsigned_enumeration_mapping_ranges **ranges);
+               const bt_field_class_unsigned_enumeration_mapping_ranges **ranges);
 
 extern void bt_field_class_signed_enumeration_borrow_mapping_by_index_const(
-               const struct bt_field_class *field_class, uint64_t index,
+               const bt_field_class *field_class, uint64_t index,
                const char **label,
-               const struct bt_field_class_signed_enumeration_mapping_ranges **ranges);
+               const bt_field_class_signed_enumeration_mapping_ranges **ranges);
 
 extern uint64_t
 bt_field_class_unsigned_enumeration_mapping_ranges_get_range_count(
-               const struct bt_field_class_unsigned_enumeration_mapping_ranges *ranges);
+               const bt_field_class_unsigned_enumeration_mapping_ranges *ranges);
 
 extern uint64_t
 bt_field_class_signed_enumeration_mapping_ranges_get_range_count(
-               const struct bt_field_class_signed_enumeration_mapping_ranges *ranges);
+               const bt_field_class_signed_enumeration_mapping_ranges *ranges);
 
 extern void
 bt_field_class_unsigned_enumeration_mapping_ranges_get_range_by_index(
-               const struct bt_field_class_unsigned_enumeration_mapping_ranges *ranges,
+               const bt_field_class_unsigned_enumeration_mapping_ranges *ranges,
                uint64_t index, uint64_t *lower, uint64_t *upper);
 
 extern void
 bt_field_class_signed_enumeration_mapping_ranges_get_range_by_index(
-               const struct bt_field_class_unsigned_enumeration_mapping_ranges *ranges,
+               const bt_field_class_unsigned_enumeration_mapping_ranges *ranges,
                uint64_t index, int64_t *lower, int64_t *upper);
 
 extern int bt_field_class_unsigned_enumeration_get_mapping_labels_by_value(
-               const struct bt_field_class *field_class, uint64_t value,
+               const bt_field_class *field_class, uint64_t value,
                bt_field_class_enumeration_mapping_label_array *label_array,
                uint64_t *count);
 
 extern int bt_field_class_signed_enumeration_get_mapping_labels_by_value(
-               const struct bt_field_class *field_class, int64_t value,
+               const bt_field_class *field_class, int64_t value,
                bt_field_class_enumeration_mapping_label_array *label_array,
                uint64_t *count);
 
 extern uint64_t bt_field_class_structure_get_member_count(
-               const struct bt_field_class *field_class);
+               const bt_field_class *field_class);
 
 extern void bt_field_class_structure_borrow_member_by_index_const(
-               const struct bt_field_class *struct_field_class, uint64_t index,
-               const char **name, const struct bt_field_class **field_class);
+               const bt_field_class *struct_field_class, uint64_t index,
+               const char **name, const bt_field_class **field_class);
 
 extern
-const struct bt_field_class *
+const bt_field_class *
 bt_field_class_structure_borrow_member_field_class_by_name_const(
-               const struct bt_field_class *field_class, const char *name);
+               const bt_field_class *field_class, const char *name);
 
-extern const struct bt_field_class *
+extern const bt_field_class *
 bt_field_class_array_borrow_element_field_class_const(
-               const struct bt_field_class *field_class);
+               const bt_field_class *field_class);
 
 extern uint64_t bt_field_class_static_array_get_length(
-               const struct bt_field_class *field_class);
+               const bt_field_class *field_class);
 
-extern const struct bt_field_path *
+extern const bt_field_path *
 bt_field_class_dynamic_array_borrow_length_field_path_const(
-               const struct bt_field_class *field_class);
+               const bt_field_class *field_class);
 
-extern const struct bt_field_path *
+extern const bt_field_path *
 bt_field_class_variant_borrow_selector_field_path_const(
-               const struct bt_field_class *field_class);
+               const bt_field_class *field_class);
 
 extern uint64_t bt_field_class_variant_get_option_count(
-               const struct bt_field_class *field_class);
+               const bt_field_class *field_class);
 
 extern void bt_field_class_variant_borrow_option_by_index_const(
-               const struct bt_field_class *variant_field_class, uint64_t index,
-               const char **name, const struct bt_field_class **field_class);
+               const bt_field_class *variant_field_class, uint64_t index,
+               const char **name, const bt_field_class **field_class);
 
 extern
-const struct bt_field_class *
+const bt_field_class *
 bt_field_class_variant_borrow_option_field_class_by_name_const(
-               const struct bt_field_class *field_class,
+               const bt_field_class *field_class,
                const char *name);
 
-extern void bt_field_class_get_ref(const struct bt_field_class *field_class);
+extern void bt_field_class_get_ref(const bt_field_class *field_class);
 
-extern void bt_field_class_put_ref(const struct bt_field_class *field_class);
+extern void bt_field_class_put_ref(const bt_field_class *field_class);
 
 #define BT_FIELD_CLASS_PUT_REF_AND_RESET(_var)         \
        do {                                            \
index 576ed99c1e873a8c395394daec5513a57668ca1f..337820b1dce48dd1944a859219689a89d03fb67c 100644 (file)
@@ -27,7 +27,7 @@
  * http://www.efficios.com/ctf
  */
 
-/* For bt_bool */
+/* For bt_bool, bt_field_class */
 #include <babeltrace/types.h>
 
 /* For enum bt_field_class_integer_preferred_display_base */
 extern "C" {
 #endif
 
-struct bt_field_class;
+extern bt_field_class *bt_field_class_unsigned_integer_create(void);
 
-extern struct bt_field_class *bt_field_class_unsigned_integer_create(void);
-
-extern struct bt_field_class *bt_field_class_signed_integer_create(void);
+extern bt_field_class *bt_field_class_signed_integer_create(void);
 
 extern void bt_field_class_integer_set_field_value_range(
-               struct bt_field_class *field_class, uint64_t size);
+               bt_field_class *field_class, uint64_t size);
 
 extern void bt_field_class_integer_set_preferred_display_base(
-               struct bt_field_class *field_class,
+               bt_field_class *field_class,
                enum bt_field_class_integer_preferred_display_base base);
 
-extern struct bt_field_class *bt_field_class_real_create(void);
+extern bt_field_class *bt_field_class_real_create(void);
 
 extern void bt_field_class_real_set_is_single_precision(
-               struct bt_field_class *field_class,
+               bt_field_class *field_class,
                bt_bool is_single_precision);
 
-extern struct bt_field_class *bt_field_class_unsigned_enumeration_create(void);
+extern bt_field_class *bt_field_class_unsigned_enumeration_create(void);
 
-extern struct bt_field_class *bt_field_class_signed_enumeration_create(void);
+extern bt_field_class *bt_field_class_signed_enumeration_create(void);
 
 extern int bt_field_class_unsigned_enumeration_map_range(
-               struct bt_field_class *field_class, const char *label,
+               bt_field_class *field_class, const char *label,
                uint64_t range_lower, uint64_t range_upper);
 
 extern int bt_field_class_signed_enumeration_map_range(
-               struct bt_field_class *field_class, const char *label,
+               bt_field_class *field_class, const char *label,
                int64_t range_lower, int64_t range_upper);
 
-extern struct bt_field_class *bt_field_class_string_create(void);
+extern bt_field_class *bt_field_class_string_create(void);
 
-extern struct bt_field_class *bt_field_class_structure_create(void);
+extern bt_field_class *bt_field_class_structure_create(void);
 
 extern int bt_field_class_structure_append_member(
-               struct bt_field_class *struct_field_class,
-               const char *name, struct bt_field_class *field_class);
+               bt_field_class *struct_field_class,
+               const char *name, bt_field_class *field_class);
 
-extern struct bt_field_class *bt_field_class_static_array_create(
-               struct bt_field_class *elem_field_class, uint64_t length);
+extern bt_field_class *bt_field_class_static_array_create(
+               bt_field_class *elem_field_class, uint64_t length);
 
-extern struct bt_field_class *bt_field_class_dynamic_array_create(
-               struct bt_field_class *elem_field_class);
+extern bt_field_class *bt_field_class_dynamic_array_create(
+               bt_field_class *elem_field_class);
 
 extern int bt_field_class_dynamic_array_set_length_field_class(
-               struct bt_field_class *field_class,
-               struct bt_field_class *length_field_class);
+               bt_field_class *field_class,
+               bt_field_class *length_field_class);
 
-extern struct bt_field_class *bt_field_class_variant_create(void);
+extern bt_field_class *bt_field_class_variant_create(void);
 
 extern int bt_field_class_variant_set_selector_field_class(
-               struct bt_field_class *field_class,
-               struct bt_field_class *selector_field_class);
+               bt_field_class *field_class,
+               bt_field_class *selector_field_class);
 
 extern int bt_field_class_variant_append_option(
-               struct bt_field_class *var_field_class,
-               const char *name, struct bt_field_class *field_class);
+               bt_field_class *var_field_class,
+               const char *name, bt_field_class *field_class);
 
 #ifdef __cplusplus
 }
index 893c719044301e6d76f5496fc155841d05160b1e..e8784dd77c99eb53a51c56ce6e32b8fd6a684249 100644 (file)
 /* For enum bt_field_class_type */
 #include <babeltrace/trace-ir/field-class.h>
 
+/* For bt_field, bt_field_class */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_field;
-struct bt_field_class;
-
-extern const struct bt_field_class *bt_field_borrow_class_const(
-               const struct bt_field *field);
+extern const bt_field_class *bt_field_borrow_class_const(
+               const bt_field *field);
 
 extern enum bt_field_class_type bt_field_get_class_type(
-               const struct bt_field *field);
+               const bt_field *field);
 
-extern int64_t bt_field_signed_integer_get_value(const struct bt_field *field);
+extern int64_t bt_field_signed_integer_get_value(const bt_field *field);
 
 extern uint64_t bt_field_unsigned_integer_get_value(
-               const struct bt_field *field);
+               const bt_field *field);
 
-extern double bt_field_real_get_value(const struct bt_field *field);
+extern double bt_field_real_get_value(const bt_field *field);
 
 extern int bt_field_unsigned_enumeration_get_mapping_labels(
-               const struct bt_field *field,
+               const bt_field *field,
                bt_field_class_enumeration_mapping_label_array *label_array,
                uint64_t *count);
 
 extern int bt_field_signed_enumeration_get_mapping_labels(
-               const struct bt_field *field,
+               const bt_field *field,
                bt_field_class_enumeration_mapping_label_array *label_array,
                uint64_t *count);
 
-extern const char *bt_field_string_get_value(const struct bt_field *field);
+extern const char *bt_field_string_get_value(const bt_field *field);
 
-extern uint64_t bt_field_string_get_length(const struct bt_field *field);
+extern uint64_t bt_field_string_get_length(const bt_field *field);
 
-extern const struct bt_field *
+extern const bt_field *
 bt_field_structure_borrow_member_field_by_index_const(
-               const struct bt_field *field, uint64_t index);
+               const bt_field *field, uint64_t index);
 
-extern const struct bt_field *
+extern const bt_field *
 bt_field_structure_borrow_member_field_by_name_const(
-               const struct bt_field *field, const char *name);
+               const bt_field *field, const char *name);
 
-extern uint64_t bt_field_array_get_length(const struct bt_field *field);
+extern uint64_t bt_field_array_get_length(const bt_field *field);
 
-extern const struct bt_field *
+extern const bt_field *
 bt_field_array_borrow_element_field_by_index_const(
-               const struct bt_field *field, uint64_t index);
+               const bt_field *field, uint64_t index);
 
 extern uint64_t bt_field_variant_get_selected_option_field_index(
-               const struct bt_field *field);
+               const bt_field *field);
 
-extern const struct bt_field *
+extern const bt_field *
 bt_field_variant_borrow_selected_option_field_const(
-               const struct bt_field *field);
+               const bt_field *field);
 
 #ifdef __cplusplus
 }
index 066bc4568761446ecaaabdfd50bc1766bb9d9ea0..1d80f9399f9f1828708eb9bf710991b3d8a61167 100644 (file)
 
 #include <stdint.h>
 
+/* For bt_field_path */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_field_path;
-
 enum bt_scope {
        BT_SCOPE_PACKET_HEADER,
        BT_SCOPE_PACKET_CONTEXT,
@@ -44,17 +45,17 @@ enum bt_scope {
 };
 
 extern enum bt_scope bt_field_path_get_root_scope(
-               const struct bt_field_path *field_path);
+               const bt_field_path *field_path);
 
 extern uint64_t bt_field_path_get_index_count(
-               const struct bt_field_path *field_path);
+               const bt_field_path *field_path);
 
 extern uint64_t bt_field_path_get_index_by_index(
-               const struct bt_field_path *field_path, uint64_t index);
+               const bt_field_path *field_path, uint64_t index);
 
-extern void bt_field_path_get_ref(const struct bt_field_path *field_path);
+extern void bt_field_path_get_ref(const bt_field_path *field_path);
 
-extern void bt_field_path_put_ref(const struct bt_field_path *field_path);
+extern void bt_field_path_put_ref(const bt_field_path *field_path);
 
 #define BT_FIELD_PATH_PUT_REF_AND_RESET(_var)          \
        do {                                            \
index 630a1cd1f4304488f8705471b088cc8b3330538f..3b53cc4b7916bfb45fafa3e09669ef392da22025 100644 (file)
 
 #include <stdint.h>
 
+/* For bt_field, bt_field_class */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_field;
-struct bt_field_class;
-
-extern void bt_field_signed_integer_set_value(struct bt_field *field,
+extern void bt_field_signed_integer_set_value(bt_field *field,
                int64_t value);
 
-extern void bt_field_unsigned_integer_set_value(struct bt_field *field,
+extern void bt_field_unsigned_integer_set_value(bt_field *field,
                uint64_t value);
 
-extern void bt_field_real_set_value(struct bt_field *field, double value);
+extern void bt_field_real_set_value(bt_field *field, double value);
 
-extern int bt_field_string_set_value(struct bt_field *field, const char *value);
+extern int bt_field_string_set_value(bt_field *field, const char *value);
 
-extern int bt_field_string_append(struct bt_field *field, const char *value);
+extern int bt_field_string_append(bt_field *field, const char *value);
 
-extern int bt_field_string_append_with_length(struct bt_field *field,
+extern int bt_field_string_append_with_length(bt_field *field,
                const char *value, uint64_t length);
 
-extern int bt_field_string_clear(struct bt_field *field);
+extern int bt_field_string_clear(bt_field *field);
 
-extern struct bt_field *bt_field_structure_borrow_member_field_by_index(
-               struct bt_field *field, uint64_t index);
+extern bt_field *bt_field_structure_borrow_member_field_by_index(
+               bt_field *field, uint64_t index);
 
-extern struct bt_field *bt_field_structure_borrow_member_field_by_name(
-               struct bt_field *field, const char *name);
+extern bt_field *bt_field_structure_borrow_member_field_by_name(
+               bt_field *field, const char *name);
 
-extern struct bt_field *bt_field_array_borrow_element_field_by_index(
-               struct bt_field *field, uint64_t index);
+extern bt_field *bt_field_array_borrow_element_field_by_index(
+               bt_field *field, uint64_t index);
 
-extern int bt_field_dynamic_array_set_length(struct bt_field *field,
+extern int bt_field_dynamic_array_set_length(bt_field *field,
                uint64_t length);
 
-extern int bt_field_variant_select_option_field(struct bt_field *field,
+extern int bt_field_variant_select_option_field(bt_field *field,
                uint64_t index);
 
-extern struct bt_field *bt_field_variant_borrow_selected_option_field(
-               struct bt_field *field);
+extern bt_field *bt_field_variant_borrow_selected_option_field(
+               bt_field *field);
 
 #ifdef __cplusplus
 }
index 3aee95ec60c194badfc0c385efe8c49b70c325ea..62ee8d1ef9af96e5e0b67285836c61f5055ade42 100644 (file)
 /* For enum bt_clock_value_status */
 #include <babeltrace/trace-ir/clock-value-const.h>
 
+/*
+ * For bt_packet, bt_packet_header_field, bt_packet_context_field,
+ * bt_stream, bt_clock_value
+ */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_packet;
-struct bt_packet_header_field;
-struct bt_packet_context_field;
-struct bt_stream;
-struct bt_clock_value;
-
-extern const struct bt_stream *bt_packet_borrow_stream_const(
-               const struct bt_packet *packet);
+extern const bt_stream *bt_packet_borrow_stream_const(
+               const bt_packet *packet);
 
 extern
-const struct bt_field *bt_packet_borrow_header_field_const(
-               const struct bt_packet *packet);
+const bt_field *bt_packet_borrow_header_field_const(
+               const bt_packet *packet);
 
 extern
-const struct bt_field *bt_packet_borrow_context_field_const(
-               const struct bt_packet *packet);
+const bt_field *bt_packet_borrow_context_field_const(
+               const bt_packet *packet);
 
 extern
 enum bt_clock_value_status bt_packet_borrow_default_beginning_clock_value_const(
-               const struct bt_packet *packet,
-               const struct bt_clock_value **clock_value);
+               const bt_packet *packet,
+               const bt_clock_value **clock_value);
 
 extern
 enum bt_clock_value_status bt_packet_borrow_default_end_clock_valeu_const(
-               const struct bt_packet *packet,
-               const struct bt_clock_value **clock_value);
+               const bt_packet *packet,
+               const bt_clock_value **clock_value);
 
 extern
 enum bt_property_availability bt_packet_get_discarded_event_counter_snapshot(
-               const struct bt_packet *packet, uint64_t *value);
+               const bt_packet *packet, uint64_t *value);
 
 extern
 enum bt_property_availability bt_packet_get_packet_counter_snapshot(
-               const struct bt_packet *packet, uint64_t *value);
+               const bt_packet *packet, uint64_t *value);
 
-extern void bt_packet_get_ref(const struct bt_packet *packet);
+extern void bt_packet_get_ref(const bt_packet *packet);
 
-extern void bt_packet_put_ref(const struct bt_packet *packet);
+extern void bt_packet_put_ref(const bt_packet *packet);
 
 #define BT_PACKET_PUT_REF_AND_RESET(_var)              \
        do {                                            \
index 6e29f632ab9f0338c99241b0ba34ea5e6fe9915a..4fcde26f6af5a207c7c8cb08da6c423234ac5cef 100644 (file)
  * http://www.efficios.com/ctf
  */
 
+/* For bt_stream_class, bt_packet_context_field, bt_field */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_stream_class;
-struct bt_packet_context_field;
-struct bt_field;
-
 extern
-struct bt_packet_context_field *bt_packet_context_field_create(
-               struct bt_stream_class *stream_class);
+bt_packet_context_field *bt_packet_context_field_create(
+               bt_stream_class *stream_class);
 
 extern
-struct bt_field *bt_packet_context_field_borrow_field(
-               struct bt_packet_context_field *field);
+bt_field *bt_packet_context_field_borrow_field(
+               bt_packet_context_field *field);
 
 extern
 void bt_packet_context_field_release(
-               struct bt_packet_context_field *field);
+               bt_packet_context_field *field);
 
 #ifdef __cplusplus
 }
index ed03ae9aad8ff31357930a54671368169c526e11..37cd89eea0aba17d334443cc9b5b836cce89996b 100644 (file)
  * http://www.efficios.com/ctf
  */
 
+/* For bt_trace_class, bt_packet_header_field, bt_field */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_trace_class;
-struct bt_packet_header_field;
-struct bt_field;
-
 extern
-struct bt_packet_header_field *bt_packet_header_field_create(
-               struct bt_trace_class *trace_class);
+bt_packet_header_field *bt_packet_header_field_create(
+               bt_trace_class *trace_class);
 
 extern
-struct bt_field *bt_packet_header_field_borrow_field(
-               struct bt_packet_header_field *field);
+bt_field *bt_packet_header_field_borrow_field(
+               bt_packet_header_field *field);
 
 extern
 void bt_packet_header_field_release(
-               struct bt_packet_header_field *field);
+               bt_packet_header_field *field);
 
 #ifdef __cplusplus
 }
index f2320756c6104e205443e6de5e93a29d40724829..b485e9bc39db2c1fde3c456627219b8931f75897 100644 (file)
  * http://www.efficios.com/ctf
  */
 
+/* For bt_packet, bt_packet_header_field, bt_packet_context_field, bt_stream */
+#include <babeltrace/types.h>
+
 #include <stdint.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_packet;
-struct bt_packet_header_field;
-struct bt_packet_context_field;
-struct bt_stream;
-
-extern struct bt_packet *bt_packet_create(struct bt_stream *stream);
+extern bt_packet *bt_packet_create(bt_stream *stream);
 
-extern struct bt_stream *bt_packet_borrow_stream(struct bt_packet *packet);
+extern bt_stream *bt_packet_borrow_stream(bt_packet *packet);
 
 extern
-struct bt_field *bt_packet_borrow_header_field(struct bt_packet *packet);
+bt_field *bt_packet_borrow_header_field(bt_packet *packet);
 
 extern
-int bt_packet_move_header_field(struct bt_packet *packet,
-               struct bt_packet_header_field *header);
+int bt_packet_move_header_field(bt_packet *packet,
+               bt_packet_header_field *header);
 
 extern
-struct bt_field *bt_packet_borrow_context_field(struct bt_packet *packet);
+bt_field *bt_packet_borrow_context_field(bt_packet *packet);
 
 extern
-int bt_packet_move_context_field(struct bt_packet *packet,
-               struct bt_packet_context_field *context);
+int bt_packet_move_context_field(bt_packet *packet,
+               bt_packet_context_field *context);
 
 extern
-void bt_packet_set_default_beginning_clock_value(struct bt_packet *packet,
+void bt_packet_set_default_beginning_clock_value(bt_packet *packet,
                uint64_t value_cycles);
 
 extern
-void bt_packet_set_default_end_clock_value(struct bt_packet *packet,
+void bt_packet_set_default_end_clock_value(bt_packet *packet,
                uint64_t value_cycles);
 
 extern
-void bt_packet_set_discarded_event_counter_snapshot(struct bt_packet *packet,
+void bt_packet_set_discarded_event_counter_snapshot(bt_packet *packet,
                uint64_t value);
 
 extern
-void bt_packet_set_packet_counter_snapshot(struct bt_packet *packet,
+void bt_packet_set_packet_counter_snapshot(bt_packet *packet,
                uint64_t value);
 
 #ifdef __cplusplus
index b740b936002e291ffb3a197cdb6c043a44805fbb..d954c05779a1e364f72e9fe28a76520a249bc082 100644 (file)
 
 #include <stdint.h>
 
-/* For bt_bool */
+/*
+ * For bt_bool, bt_trace_class, bt_stream_class, bt_event_class,
+ * bt_stream_class, bt_event_header_field, bt_packet_context_field
+ */
 #include <babeltrace/types.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_trace_class;
-struct bt_stream_class;
-struct bt_event_class;
-struct bt_stream_class;
-struct bt_event_header_field;
-struct bt_packet_context_field;
-
-extern const struct bt_trace_class *bt_stream_class_borrow_trace_class_const(
-               const struct bt_stream_class *stream_class);
+extern const bt_trace_class *bt_stream_class_borrow_trace_class_const(
+               const bt_stream_class *stream_class);
 
 extern const char *bt_stream_class_get_name(
-               const struct bt_stream_class *stream_class);
+               const bt_stream_class *stream_class);
 
 extern bt_bool bt_stream_class_assigns_automatic_event_class_id(
-               const struct bt_stream_class *stream_class);
+               const bt_stream_class *stream_class);
 
 extern bt_bool bt_stream_class_assigns_automatic_stream_id(
-               const struct bt_stream_class *stream_class);
+               const bt_stream_class *stream_class);
 
 extern uint64_t bt_stream_class_get_id(
-               const struct bt_stream_class *stream_class);
+               const bt_stream_class *stream_class);
 
-extern const struct bt_field_class *
+extern const bt_field_class *
 bt_stream_class_borrow_packet_context_field_class_const(
-               const struct bt_stream_class *stream_class);
+               const bt_stream_class *stream_class);
 
-extern const struct bt_field_class *
+extern const bt_field_class *
 bt_stream_class_borrow_event_header_field_class_const(
-               const struct bt_stream_class *stream_class);
+               const bt_stream_class *stream_class);
 
-extern const struct bt_field_class *
+extern const bt_field_class *
 bt_stream_class_borrow_event_common_context_field_class_const(
-               const struct bt_stream_class *stream_class);
+               const bt_stream_class *stream_class);
 
 extern uint64_t bt_stream_class_get_event_class_count(
-               const struct bt_stream_class *stream_class);
+               const bt_stream_class *stream_class);
 
-extern const struct bt_event_class *
+extern const bt_event_class *
 bt_stream_class_borrow_event_class_by_index_const(
-               const struct bt_stream_class *stream_class, uint64_t index);
+               const bt_stream_class *stream_class, uint64_t index);
 
-extern const struct bt_event_class *
+extern const bt_event_class *
 bt_stream_class_borrow_event_class_by_id_const(
-               const struct bt_stream_class *stream_class, uint64_t id);
+               const bt_stream_class *stream_class, uint64_t id);
 
-extern const struct bt_clock_class *
+extern const bt_clock_class *
 bt_stream_class_borrow_default_clock_class_const(
-               const struct bt_stream_class *stream_class);
+               const bt_stream_class *stream_class);
 
 extern bt_bool bt_stream_class_default_clock_is_always_known(
-               const struct bt_stream_class *stream_class);
+               const bt_stream_class *stream_class);
 
 extern bt_bool bt_stream_class_packets_have_discarded_event_counter_snapshot(
-               const struct bt_stream_class *stream_class);
+               const bt_stream_class *stream_class);
 
 extern bt_bool bt_stream_class_packets_have_packet_counter_snapshot(
-               const struct bt_stream_class *stream_class);
+               const bt_stream_class *stream_class);
 
 extern bt_bool bt_stream_class_packets_have_default_beginning_clock_value(
-               const struct bt_stream_class *stream_class);
+               const bt_stream_class *stream_class);
 
 extern bt_bool bt_stream_class_packets_have_default_end_clock_value(
-               const struct bt_stream_class *stream_class);
+               const bt_stream_class *stream_class);
 
-extern void bt_stream_class_get_ref(const struct bt_stream_class *stream_class);
+extern void bt_stream_class_get_ref(const bt_stream_class *stream_class);
 
-extern void bt_stream_class_put_ref(const struct bt_stream_class *stream_class);
+extern void bt_stream_class_put_ref(const bt_stream_class *stream_class);
 
 #define BT_STREAM_CLASS_PUT_REF_AND_RESET(_var)                \
        do {                                            \
index b39f3e178efbe09cb25651f206827f7373a32933..aec3be3432c5601843db096d0b188f67d86b7dc6 100644 (file)
 
 #include <stdint.h>
 
-/* For bt_bool */
+/*
+ * For bt_bool, bt_trace_class, bt_stream_class, bt_event_class,
+ * bt_clock_class
+ */
 #include <babeltrace/types.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_trace_class;
-struct bt_stream_class;
-struct bt_event_class;
-struct bt_clock_class;
-
-extern struct bt_stream_class *bt_stream_class_create(
-               struct bt_trace_class *trace_class);
+extern bt_stream_class *bt_stream_class_create(
+               bt_trace_class *trace_class);
 
-extern struct bt_stream_class *bt_stream_class_create_with_id(
-               struct bt_trace_class *trace_class, uint64_t id);
+extern bt_stream_class *bt_stream_class_create_with_id(
+               bt_trace_class *trace_class, uint64_t id);
 
-extern struct bt_trace_class *bt_stream_class_borrow_trace_class(
-               struct bt_stream_class *stream_class);
+extern bt_trace_class *bt_stream_class_borrow_trace_class(
+               bt_stream_class *stream_class);
 
-extern int bt_stream_class_set_name(struct bt_stream_class *stream_class,
+extern int bt_stream_class_set_name(bt_stream_class *stream_class,
                const char *name);
 
 extern void bt_stream_class_set_assigns_automatic_event_class_id(
-               struct bt_stream_class *stream_class, bt_bool value);
+               bt_stream_class *stream_class, bt_bool value);
 
 extern void bt_stream_class_set_assigns_automatic_stream_id(
-               struct bt_stream_class *stream_class, bt_bool value);
+               bt_stream_class *stream_class, bt_bool value);
 
 extern int bt_stream_class_set_packet_context_field_class(
-               struct bt_stream_class *stream_class,
-               struct bt_field_class *field_class);
+               bt_stream_class *stream_class,
+               bt_field_class *field_class);
 
 extern int bt_stream_class_set_event_header_field_class(
-               struct bt_stream_class *stream_class,
-               struct bt_field_class *field_class);
+               bt_stream_class *stream_class,
+               bt_field_class *field_class);
 
 extern int
 bt_stream_class_set_event_common_context_field_class(
-               struct bt_stream_class *stream_class,
-               struct bt_field_class *field_class);
+               bt_stream_class *stream_class,
+               bt_field_class *field_class);
 
-extern struct bt_event_class *
+extern bt_event_class *
 bt_stream_class_borrow_event_class_by_index(
-               struct bt_stream_class *stream_class, uint64_t index);
+               bt_stream_class *stream_class, uint64_t index);
 
-extern struct bt_event_class *
+extern bt_event_class *
 bt_stream_class_borrow_event_class_by_id(
-               struct bt_stream_class *stream_class, uint64_t id);
+               bt_stream_class *stream_class, uint64_t id);
 
-extern struct bt_clock_class *bt_stream_class_borrow_default_clock_class(
-               struct bt_stream_class *stream_class);
+extern bt_clock_class *bt_stream_class_borrow_default_clock_class(
+               bt_stream_class *stream_class);
 
 extern int bt_stream_class_set_default_clock_class(
-               struct bt_stream_class *stream_class,
-               struct bt_clock_class *clock_class);
+               bt_stream_class *stream_class,
+               bt_clock_class *clock_class);
 
 extern void
 bt_stream_class_set_packets_have_discarded_event_counter_snapshot(
-               struct bt_stream_class *stream_class, bt_bool value);
+               bt_stream_class *stream_class, bt_bool value);
 
 extern void
 bt_stream_class_set_packets_have_packet_counter_snapshot(
-               struct bt_stream_class *stream_class, bt_bool value);
+               bt_stream_class *stream_class, bt_bool value);
 
 extern void
 bt_stream_class_set_packets_have_default_beginning_clock_value(
-               struct bt_stream_class *stream_class, bt_bool value);
+               bt_stream_class *stream_class, bt_bool value);
 
 extern void
 bt_stream_class_set_packets_have_default_end_clock_value(
-               struct bt_stream_class *stream_class, bt_bool value);
+               bt_stream_class *stream_class, bt_bool value);
 
 #ifdef __cplusplus
 }
index 328441c8fc6fc7ef745b551fdb96181f8685ddea..ede1fe8dab61799a8c20020e4061c52616cf8b7e 100644 (file)
  * http://www.efficios.com/ctf
  */
 
+/* For bt_trace, bt_stream, bt_stream_class */
+#include <babeltrace/types.h>
+
 #include <stdint.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_trace;
-struct bt_stream;
-struct bt_stream_class;
-
-extern const struct bt_stream_class *bt_stream_borrow_class_const(
-               const struct bt_stream *stream);
+extern const bt_stream_class *bt_stream_borrow_class_const(
+               const bt_stream *stream);
 
-extern const struct bt_trace *bt_stream_borrow_trace_const(
-               const struct bt_stream *stream);
+extern const bt_trace *bt_stream_borrow_trace_const(
+               const bt_stream *stream);
 
-extern const char *bt_stream_get_name(const struct bt_stream *stream);
+extern const char *bt_stream_get_name(const bt_stream *stream);
 
-extern uint64_t bt_stream_get_id(const struct bt_stream *stream);
+extern uint64_t bt_stream_get_id(const bt_stream *stream);
 
-extern void bt_stream_get_ref(const struct bt_stream *stream);
+extern void bt_stream_get_ref(const bt_stream *stream);
 
-extern void bt_stream_put_ref(const struct bt_stream *stream);
+extern void bt_stream_put_ref(const bt_stream *stream);
 
 #define BT_STREAM_PUT_REF_AND_RESET(_var)              \
        do {                                            \
index 0849a4372207943bf4f392dffdbfcd11759c1f9f..d33f7c653021ec05c5c4383da1ce9f7fdecaee63 100644 (file)
  * http://www.efficios.com/ctf
  */
 
+/* For bt_trace, bt_stream, bt_stream_class */
+#include <babeltrace/types.h>
+
 #include <stdint.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_trace;
-struct bt_stream;
-struct bt_stream_class;
-
-extern struct bt_stream *bt_stream_create(struct bt_stream_class *stream_class,
-               struct bt_trace *trace);
+extern bt_stream *bt_stream_create(bt_stream_class *stream_class,
+               bt_trace *trace);
 
-extern struct bt_stream *bt_stream_create_with_id(
-               struct bt_stream_class *stream_class,
-               struct bt_trace *trace, uint64_t id);
+extern bt_stream *bt_stream_create_with_id(
+               bt_stream_class *stream_class,
+               bt_trace *trace, uint64_t id);
 
-extern struct bt_trace *bt_stream_borrow_trace(struct bt_stream *stream);
+extern bt_trace *bt_stream_borrow_trace(bt_stream *stream);
 
-extern struct bt_stream_class *bt_stream_borrow_class(struct bt_stream *stream);
+extern bt_stream_class *bt_stream_borrow_class(bt_stream *stream);
 
-extern int bt_stream_set_name(struct bt_stream *stream, const char *name);
+extern int bt_stream_set_name(bt_stream *stream, const char *name);
 
 #ifdef __cplusplus
 }
index 179d3ce6c8c553af85fcd28d55df3d5c6695b1d6..dc451c0480c88baaeaba26206130f5ce1fdc2dce 100644 (file)
  * http://www.efficios.com/ctf
  */
 
-/* For bt_bool, bt_uuid */
+/*
+ * For bt_bool, bt_uuid, bt_trace_class, bt_stream_class,
+ * bt_field_class, bt_value
+ */
 #include <babeltrace/types.h>
 
 #include <stdint.h>
 extern "C" {
 #endif
 
-struct bt_trace_class;
-struct bt_stream_class;
-struct bt_field_class;
-struct bt_value;
-
 extern bt_bool bt_trace_class_assigns_automatic_stream_class_id(
-               const struct bt_trace_class *trace_class);
+               const bt_trace_class *trace_class);
 
 extern const char *bt_trace_class_get_name(
-               const struct bt_trace_class *trace_class);
+               const bt_trace_class *trace_class);
 
 extern bt_uuid bt_trace_class_get_uuid(
-               const struct bt_trace_class *trace_class);
+               const bt_trace_class *trace_class);
 
 extern uint64_t bt_trace_class_get_environment_entry_count(
-               const struct bt_trace_class *trace_class);
+               const bt_trace_class *trace_class);
 
 extern void bt_trace_class_borrow_environment_entry_by_index_const(
-               const struct bt_trace_class *trace_class, uint64_t index,
-               const char **name, const struct bt_value **value);
+               const bt_trace_class *trace_class, uint64_t index,
+               const char **name, const bt_value **value);
 
-extern const struct bt_value *
+extern const bt_value *
 bt_trace_class_borrow_environment_entry_value_by_name_const(
-               const struct bt_trace_class *trace_class, const char *name);
+               const bt_trace_class *trace_class, const char *name);
 
-extern const struct bt_field_class *
+extern const bt_field_class *
 bt_trace_class_borrow_packet_header_field_class_const(
-               const struct bt_trace_class *trace_class);
+               const bt_trace_class *trace_class);
 
 extern uint64_t bt_trace_class_get_stream_class_count(
-               const struct bt_trace_class *trace_class);
+               const bt_trace_class *trace_class);
 
-extern const struct bt_stream_class *
+extern const bt_stream_class *
 bt_trace_class_borrow_stream_class_by_index_const(
-               const struct bt_trace_class *trace_class, uint64_t index);
+               const bt_trace_class *trace_class, uint64_t index);
 
-extern const struct bt_stream_class *bt_trace_class_borrow_stream_class_by_id_const(
-               const struct bt_trace_class *trace_class, uint64_t id);
+extern const bt_stream_class *bt_trace_class_borrow_stream_class_by_id_const(
+               const bt_trace_class *trace_class, uint64_t id);
 
-extern void bt_trace_class_get_ref(const struct bt_trace_class *trace_class);
+extern void bt_trace_class_get_ref(const bt_trace_class *trace_class);
 
-extern void bt_trace_class_put_ref(const struct bt_trace_class *trace_class);
+extern void bt_trace_class_put_ref(const bt_trace_class *trace_class);
 
 #define BT_TRACE_CLASS_PUT_REF_AND_RESET(_var)         \
        do {                                            \
index 9ae88aca589fe428a395d161b0570172c1817e54..ffa3fc0e24d264f9c400b858be2fc1187d117662 100644 (file)
@@ -27,7 +27,7 @@
  * http://www.efficios.com/ctf
  */
 
-/* For bt_bool, bt_uuid */
+/* For bt_bool, bt_uuid, bt_trace_class, bt_stream_class, bt_field_class */
 #include <babeltrace/types.h>
 
 #include <stdint.h>
 extern "C" {
 #endif
 
-struct bt_trace_class;
-struct bt_stream_class;
-struct bt_field_class;
-
-extern struct bt_trace_class *bt_trace_class_create(void);
+extern bt_trace_class *bt_trace_class_create(void);
 
 extern void bt_trace_class_set_assigns_automatic_stream_class_id(
-               struct bt_trace_class *trace_class, bt_bool value);
+               bt_trace_class *trace_class, bt_bool value);
 
-extern int bt_trace_class_set_name(struct bt_trace_class *trace_class,
+extern int bt_trace_class_set_name(bt_trace_class *trace_class,
                const char *name);
 
-extern void bt_trace_class_set_uuid(struct bt_trace_class *trace_class,
+extern void bt_trace_class_set_uuid(bt_trace_class *trace_class,
                bt_uuid uuid);
 
 extern int bt_trace_class_set_environment_entry_integer(
-               struct bt_trace_class *trace_class,
+               bt_trace_class *trace_class,
                const char *name, int64_t value);
 
 extern int bt_trace_class_set_environment_entry_string(
-               struct bt_trace_class *trace_class,
+               bt_trace_class *trace_class,
                const char *name, const char *value);
 
 extern int bt_trace_class_set_packet_header_field_class(
-               struct bt_trace_class *trace_class,
-               struct bt_field_class *packet_header_field_class);
+               bt_trace_class *trace_class,
+               bt_field_class *packet_header_field_class);
 
-extern struct bt_stream_class *bt_trace_class_borrow_stream_class_by_index(
-               struct bt_trace_class *trace_class, uint64_t index);
+extern bt_stream_class *bt_trace_class_borrow_stream_class_by_index(
+               bt_trace_class *trace_class, uint64_t index);
 
-extern struct bt_stream_class *bt_trace_class_borrow_stream_class_by_id(
-               struct bt_trace_class *trace_class, uint64_t id);
+extern bt_stream_class *bt_trace_class_borrow_stream_class_by_id(
+               bt_trace_class *trace_class, uint64_t id);
 
 #ifdef __cplusplus
 }
index ba629e053c9599929f521a7affe087de6b99a597..24f2239431d465b3a877e9e8e16aaf63abee0a3d 100644 (file)
  * http://www.efficios.com/ctf
  */
 
-/* For bt_bool, bt_uuid */
+/*
+ * For bt_bool, bt_uuid, bt_trace, bt_stream, bt_stream_class,
+ * bt_field_class, bt_value
+ */
 #include <babeltrace/types.h>
 
 #include <stdint.h>
 extern "C" {
 #endif
 
-struct bt_trace;
-struct bt_stream;
-struct bt_stream_class;
-struct bt_field_class;
-struct bt_value;
-
-typedef void (* bt_trace_is_static_listener_func)(const struct bt_trace *trace,
+typedef void (* bt_trace_is_static_listener_func)(const bt_trace *trace,
                void *data);
 
-typedef void (* bt_trace_listener_removed_func)(const struct bt_trace *trace,
+typedef void (* bt_trace_listener_removed_func)(const bt_trace *trace,
                void *data);
 
-extern const struct bt_trace_class *bt_trace_borrow_class_const(
-               const struct bt_trace *trace);
+extern const bt_trace_class *bt_trace_borrow_class_const(
+               const bt_trace *trace);
 
-extern const char *bt_trace_get_name(const struct bt_trace *trace);
+extern const char *bt_trace_get_name(const bt_trace *trace);
 
-extern uint64_t bt_trace_get_stream_count(const struct bt_trace *trace);
+extern uint64_t bt_trace_get_stream_count(const bt_trace *trace);
 
-extern const struct bt_stream *bt_trace_borrow_stream_by_index_const(
-               const struct bt_trace *trace, uint64_t index);
+extern const bt_stream *bt_trace_borrow_stream_by_index_const(
+               const bt_trace *trace, uint64_t index);
 
-extern const struct bt_stream *bt_trace_borrow_stream_by_id_const(
-               const struct bt_trace *trace, uint64_t id);
+extern const bt_stream *bt_trace_borrow_stream_by_id_const(
+               const bt_trace *trace, uint64_t id);
 
-extern bt_bool bt_trace_is_static(const struct bt_trace *trace);
+extern bt_bool bt_trace_is_static(const bt_trace *trace);
 
-extern int bt_trace_add_is_static_listener(const struct bt_trace *trace,
+extern int bt_trace_add_is_static_listener(const bt_trace *trace,
                bt_trace_is_static_listener_func listener,
                bt_trace_listener_removed_func listener_removed, void *data,
                uint64_t *listener_id);
 
-extern int bt_trace_remove_is_static_listener(const struct bt_trace *trace,
+extern int bt_trace_remove_is_static_listener(const bt_trace *trace,
                uint64_t listener_id);
 
-extern void bt_trace_get_ref(const struct bt_trace *trace);
+extern void bt_trace_get_ref(const bt_trace *trace);
 
-extern void bt_trace_put_ref(const struct bt_trace *trace);
+extern void bt_trace_put_ref(const bt_trace *trace);
 
 #define BT_TRACE_PUT_REF_AND_RESET(_var)               \
        do {                                            \
index 33c038f8c74a8f12752cb4b9ab6f8a7e9fd40962..d00570e39affb2a759c47c6c316683da71e9face 100644 (file)
@@ -27,7 +27,7 @@
  * http://www.efficios.com/ctf
  */
 
-/* For bt_bool */
+/* For bt_bool, bt_trace, bt_trace_class, bt_stream */
 #include <babeltrace/types.h>
 
 #include <stdint.h>
 extern "C" {
 #endif
 
-struct bt_trace;
-struct bt_trace_class;
-struct bt_stream;
+extern bt_trace_class *bt_trace_borrow_class(bt_trace *trace);
 
-extern struct bt_trace_class *bt_trace_borrow_class(struct bt_trace *trace);
+extern bt_trace *bt_trace_create(bt_trace_class *trace_class);
 
-extern struct bt_trace *bt_trace_create(struct bt_trace_class *trace_class);
+extern int bt_trace_set_name(bt_trace *trace, const char *name);
 
-extern int bt_trace_set_name(struct bt_trace *trace, const char *name);
-
-extern struct bt_stream *bt_trace_borrow_stream_by_index(struct bt_trace *trace,
+extern bt_stream *bt_trace_borrow_stream_by_index(bt_trace *trace,
                uint64_t index);
 
-extern struct bt_stream *bt_trace_borrow_stream_by_id(struct bt_trace *trace,
+extern bt_stream *bt_trace_borrow_stream_by_id(bt_trace *trace,
                uint64_t id);
 
-extern int bt_trace_make_static(struct bt_trace *trace);
+extern int bt_trace_make_static(bt_trace *trace);
 
 #ifdef __cplusplus
 }
index 43575291df542e8f65b8e14718c262a42f5533ae..f63e7d944215ebd25b38a3d48e58c062c398abd9 100644 (file)
@@ -76,6 +76,65 @@ typedef int bt_bool;
 
 typedef const uint8_t *bt_uuid;
 
+typedef struct bt_clock_class bt_clock_class;
+typedef struct bt_clock_value bt_clock_value;
+typedef struct bt_component bt_component;
+typedef struct bt_component_class bt_component_class;
+typedef struct bt_component_class_filter bt_component_class_filter;
+typedef struct bt_component_class_sink bt_component_class_sink;
+typedef struct bt_component_class_source bt_component_class_source;
+typedef struct bt_component_filter bt_component_filter;
+typedef struct bt_component_graph bt_component_graph;
+typedef struct bt_component_sink bt_component_sink;
+typedef struct bt_component_source bt_component_source;
+typedef struct bt_connection bt_connection;
+typedef struct bt_event bt_event;
+typedef struct bt_event_class bt_event_class;
+typedef struct bt_event_header_field bt_event_header_field;
+typedef struct bt_field bt_field;
+typedef struct bt_field_class bt_field_class;
+typedef struct bt_field_class_signed_enumeration_mapping_ranges bt_field_class_signed_enumeration_mapping_ranges;
+typedef struct bt_field_class_unsigned_enumeration_mapping_ranges bt_field_class_unsigned_enumeration_mapping_ranges;
+typedef struct bt_field_path bt_field_path;
+typedef struct bt_graph bt_graph;
+typedef struct bt_notification bt_notification;
+typedef struct bt_notification_iterator bt_notification_iterator;
+typedef struct bt_object bt_object;
+typedef struct bt_packet bt_packet;
+typedef struct bt_packet_context_field bt_packet_context_field;
+typedef struct bt_packet_header_field bt_packet_header_field;
+typedef struct bt_plugin bt_plugin;
+typedef struct bt_plugin_set bt_plugin_set;
+typedef struct bt_plugin_so_shared_lib_handle bt_plugin_so_shared_lib_handle;
+typedef struct bt_port bt_port;
+typedef struct bt_port_input bt_port_input;
+typedef struct bt_port_output bt_port_output;
+typedef struct bt_port_output_notification_iterator bt_port_output_notification_iterator;
+typedef struct bt_query_executor bt_query_executor;
+typedef struct bt_self_component bt_self_component;
+typedef struct bt_self_component_class_filter bt_self_component_class_filter;
+typedef struct bt_self_component_class_sink bt_self_component_class_sink;
+typedef struct bt_self_component_class_source bt_self_component_class_source;
+typedef struct bt_self_component_filter bt_self_component_filter;
+typedef struct bt_self_component_port bt_self_component_port;
+typedef struct bt_self_component_port_input bt_self_component_port_input;
+typedef struct bt_self_component_port_input_notification_iterator bt_self_component_port_input_notification_iterator;
+typedef struct bt_self_component_port_output bt_self_component_port_output;
+typedef struct bt_self_component_sink bt_self_component_sink;
+typedef struct bt_self_component_source bt_self_component_source;
+typedef struct bt_self_notification_iterator bt_self_notification_iterator;
+typedef struct bt_self_port_input bt_self_port_input;
+typedef struct bt_self_port_output bt_self_port_output;
+typedef struct bt_self_port bt_self_port;
+typedef struct bt_stream bt_stream;
+typedef struct bt_stream_class bt_stream_class;
+typedef struct bt_trace bt_trace;
+typedef struct bt_trace_class bt_trace_class;
+typedef struct bt_value bt_value;
+
+typedef const char * const *bt_field_class_enumeration_mapping_label_array;
+typedef const struct bt_notification **bt_notification_array_const;
+
 /** @} */
 
 #ifdef __cplusplus
index a1bf532ed31796e8000f630b6be93f59aed09bb3..8966194c249b53dc7672bd156eee2f688a34b002 100644 (file)
 #include <stdint.h>
 #include <stddef.h>
 
-/* For bt_bool */
+/* For bt_bool, bt_value */
 #include <babeltrace/types.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_value;
-
 enum bt_value_status {
        /// Operation canceled.
        BT_VALUE_STATUS_CANCELED        = 125,
@@ -69,104 +67,104 @@ enum bt_value_type {
        BT_VALUE_TYPE_MAP =             6,
 };
 
-extern enum bt_value_type bt_value_get_type(const struct bt_value *object);
+extern enum bt_value_type bt_value_get_type(const bt_value *object);
 
 static inline
-bt_bool bt_value_is_null(const struct bt_value *object)
+bt_bool bt_value_is_null(const bt_value *object)
 {
        return bt_value_get_type(object) == BT_VALUE_TYPE_NULL;
 }
 
 static inline
-bt_bool bt_value_is_bool(const struct bt_value *object)
+bt_bool bt_value_is_bool(const bt_value *object)
 {
        return bt_value_get_type(object) == BT_VALUE_TYPE_BOOL;
 }
 
 static inline
-bt_bool bt_value_is_integer(const struct bt_value *object)
+bt_bool bt_value_is_integer(const bt_value *object)
 {
        return bt_value_get_type(object) == BT_VALUE_TYPE_INTEGER;
 }
 
 static inline
-bt_bool bt_value_is_real(const struct bt_value *object)
+bt_bool bt_value_is_real(const bt_value *object)
 {
        return bt_value_get_type(object) == BT_VALUE_TYPE_REAL;
 }
 
 static inline
-bt_bool bt_value_is_string(const struct bt_value *object)
+bt_bool bt_value_is_string(const bt_value *object)
 {
        return bt_value_get_type(object) == BT_VALUE_TYPE_STRING;
 }
 
 static inline
-bt_bool bt_value_is_array(const struct bt_value *object)
+bt_bool bt_value_is_array(const bt_value *object)
 {
        return bt_value_get_type(object) == BT_VALUE_TYPE_ARRAY;
 }
 
 static inline
-bt_bool bt_value_is_map(const struct bt_value *object)
+bt_bool bt_value_is_map(const bt_value *object)
 {
        return bt_value_get_type(object) == BT_VALUE_TYPE_MAP;
 }
 
-extern enum bt_value_status bt_value_copy(const struct bt_value *object,
-               struct bt_value **copy);
+extern enum bt_value_status bt_value_copy(const bt_value *object,
+               bt_value **copy);
 
-extern bt_bool bt_value_compare(const struct bt_value *object_a,
-               const struct bt_value *object_b);
+extern bt_bool bt_value_compare(const bt_value *object_a,
+               const bt_value *object_b);
 
-extern bt_bool bt_value_bool_get(const struct bt_value *bool_obj);
+extern bt_bool bt_value_bool_get(const bt_value *bool_obj);
 
-extern int64_t bt_value_integer_get(const struct bt_value *integer_obj);
+extern int64_t bt_value_integer_get(const bt_value *integer_obj);
 
-extern double bt_value_real_get(const struct bt_value *real_obj);
+extern double bt_value_real_get(const bt_value *real_obj);
 
-extern const char *bt_value_string_get(const struct bt_value *string_obj);
+extern const char *bt_value_string_get(const bt_value *string_obj);
 
-extern uint64_t bt_value_array_get_size(const struct bt_value *array_obj);
+extern uint64_t bt_value_array_get_size(const bt_value *array_obj);
 
 static inline
-bt_bool bt_value_array_is_empty(const struct bt_value *array_obj)
+bt_bool bt_value_array_is_empty(const bt_value *array_obj)
 {
        return bt_value_array_get_size(array_obj) == 0;
 }
 
-extern const struct bt_value *bt_value_array_borrow_element_by_index_const(
-               const struct bt_value *array_obj, uint64_t index);
+extern const bt_value *bt_value_array_borrow_element_by_index_const(
+               const bt_value *array_obj, uint64_t index);
 
-extern uint64_t bt_value_map_get_size(const struct bt_value *map_obj);
+extern uint64_t bt_value_map_get_size(const bt_value *map_obj);
 
 static inline
-bt_bool bt_value_map_is_empty(const struct bt_value *map_obj)
+bt_bool bt_value_map_is_empty(const bt_value *map_obj)
 {
        return bt_value_map_get_size(map_obj) == 0;
 }
 
-extern const struct bt_value *bt_value_map_borrow_entry_value_const(
-               const struct bt_value *map_obj, const char *key);
+extern const bt_value *bt_value_map_borrow_entry_value_const(
+               const bt_value *map_obj, const char *key);
 
 typedef bt_bool (* bt_value_map_foreach_entry_const_func)(const char *key,
-               const struct bt_value *object, void *data);
+               const bt_value *object, void *data);
 
 extern enum bt_value_status bt_value_map_foreach_entry_const(
-               const struct bt_value *map_obj,
+               const bt_value *map_obj,
                bt_value_map_foreach_entry_const_func func, void *data);
 
-extern bt_bool bt_value_map_has_entry(const struct bt_value *map_obj,
+extern bt_bool bt_value_map_has_entry(const bt_value *map_obj,
                const char *key);
 
 extern enum bt_value_status bt_value_map_extend(
-               const struct bt_value *base_map_obj,
-               const struct bt_value *extension_map_obj,
-               struct bt_value **extended_map_obj);
+               const bt_value *base_map_obj,
+               const bt_value *extension_map_obj,
+               bt_value **extended_map_obj);
 
-extern void bt_value_get_ref(const struct bt_value *value);
+extern void bt_value_get_ref(const bt_value *value);
 
-extern void bt_value_put_ref(const struct bt_value *value);
+extern void bt_value_put_ref(const bt_value *value);
 
 #define BT_VALUE_PUT_REF_AND_RESET(_var)               \
        do {                                            \
index 2bf068739eeb041db2dc7ad453ed504445649153..9db6da2208753a7016ff15383966cd5dce86bf39 100644 (file)
@@ -26,7 +26,7 @@
 #include <stdint.h>
 #include <stddef.h>
 
-/* For bt_bool */
+/* For bt_bool, bt_value */
 #include <babeltrace/types.h>
 
 /* For enum bt_value_status, enum bt_value_type */
 extern "C" {
 #endif
 
-struct bt_value;
+extern bt_value *bt_value_null;
 
-extern struct bt_value *bt_value_null;
+extern bt_value *bt_value_bool_create(void);
 
-extern struct bt_value *bt_value_bool_create(void);
+extern bt_value *bt_value_bool_create_init(bt_bool val);
 
-extern struct bt_value *bt_value_bool_create_init(bt_bool val);
+extern void bt_value_bool_set(bt_value *bool_obj, bt_bool val);
 
-extern void bt_value_bool_set(struct bt_value *bool_obj, bt_bool val);
+extern bt_value *bt_value_integer_create(void);
 
-extern struct bt_value *bt_value_integer_create(void);
-
-extern struct bt_value *bt_value_integer_create_init(
+extern bt_value *bt_value_integer_create_init(
                int64_t val);
 
-extern void bt_value_integer_set(struct bt_value *integer_obj, int64_t val);
+extern void bt_value_integer_set(bt_value *integer_obj, int64_t val);
 
-extern struct bt_value *bt_value_real_create(void);
+extern bt_value *bt_value_real_create(void);
 
-extern struct bt_value *bt_value_real_create_init(double val);
+extern bt_value *bt_value_real_create_init(double val);
 
-extern void bt_value_real_set(struct bt_value *real_obj, double val);
+extern void bt_value_real_set(bt_value *real_obj, double val);
 
-extern struct bt_value *bt_value_string_create(void);
+extern bt_value *bt_value_string_create(void);
 
-extern struct bt_value *bt_value_string_create_init(const char *val);
+extern bt_value *bt_value_string_create_init(const char *val);
 
-extern enum bt_value_status bt_value_string_set(struct bt_value *string_obj,
+extern enum bt_value_status bt_value_string_set(bt_value *string_obj,
                const char *val);
 
-extern struct bt_value *bt_value_array_create(void);
+extern bt_value *bt_value_array_create(void);
 
-extern struct bt_value *bt_value_array_borrow_element_by_index(
-               struct bt_value *array_obj, uint64_t index);
+extern bt_value *bt_value_array_borrow_element_by_index(
+               bt_value *array_obj, uint64_t index);
 
 extern enum bt_value_status bt_value_array_append_element(
-               struct bt_value *array_obj,
-               struct bt_value *element_obj);
+               bt_value *array_obj,
+               bt_value *element_obj);
 
 extern enum bt_value_status bt_value_array_append_bool_element(
-               struct bt_value *array_obj, bt_bool val);
+               bt_value *array_obj, bt_bool val);
 
 extern enum bt_value_status bt_value_array_append_integer_element(
-               struct bt_value *array_obj, int64_t val);
+               bt_value *array_obj, int64_t val);
 
 extern enum bt_value_status bt_value_array_append_real_element(
-               struct bt_value *array_obj, double val);
+               bt_value *array_obj, double val);
 
 extern enum bt_value_status bt_value_array_append_string_element(
-               struct bt_value *array_obj, const char *val);
+               bt_value *array_obj, const char *val);
 
 extern enum bt_value_status bt_value_array_append_empty_array_element(
-               struct bt_value *array_obj);
+               bt_value *array_obj);
 
 extern enum bt_value_status bt_value_array_append_empty_map_element(
-               struct bt_value *array_obj);
+               bt_value *array_obj);
 
 extern enum bt_value_status bt_value_array_set_element_by_index(
-               struct bt_value *array_obj, uint64_t index,
-               struct bt_value *element_obj);
+               bt_value *array_obj, uint64_t index,
+               bt_value *element_obj);
 
-extern struct bt_value *bt_value_map_create(void);
+extern bt_value *bt_value_map_create(void);
 
-extern struct bt_value *bt_value_map_borrow_entry_value(
-               struct bt_value *map_obj, const char *key);
+extern bt_value *bt_value_map_borrow_entry_value(
+               bt_value *map_obj, const char *key);
 
 typedef bt_bool (* bt_value_map_foreach_entry_func)(const char *key,
-               struct bt_value *object, void *data);
+               bt_value *object, void *data);
 
 extern enum bt_value_status bt_value_map_foreach_entry(
-               struct bt_value *map_obj,
+               bt_value *map_obj,
                bt_value_map_foreach_entry_func func, void *data);
 
 extern enum bt_value_status bt_value_map_insert_entry(
-               struct bt_value *map_obj, const char *key,
-               struct bt_value *element_obj);
+               bt_value *map_obj, const char *key,
+               bt_value *element_obj);
 
 extern enum bt_value_status bt_value_map_insert_bool_entry(
-               struct bt_value *map_obj, const char *key, bt_bool val);
+               bt_value *map_obj, const char *key, bt_bool val);
 
 extern enum bt_value_status bt_value_map_insert_integer_entry(
-               struct bt_value *map_obj, const char *key, int64_t val);
+               bt_value *map_obj, const char *key, int64_t val);
 
 extern enum bt_value_status bt_value_map_insert_real_entry(
-               struct bt_value *map_obj, const char *key, double val);
+               bt_value *map_obj, const char *key, double val);
 
 extern enum bt_value_status bt_value_map_insert_string_entry(
-               struct bt_value *map_obj, const char *key,
+               bt_value *map_obj, const char *key,
                const char *val);
 
 extern enum bt_value_status bt_value_map_insert_empty_array_entry(
-               struct bt_value *map_obj, const char *key);
+               bt_value *map_obj, const char *key);
 
 extern enum bt_value_status bt_value_map_insert_empty_map_entry(
-               struct bt_value *map_obj, const char *key);
+               bt_value *map_obj, const char *key);
 
 #ifdef __cplusplus
 }
index 907cdcd9cba898f4f4b9c881ee20b8a78cb051ee..ef40333bfc290bdca9a5269594b4b7ce24a0c8af 100644 (file)
@@ -323,7 +323,7 @@ struct ctf_visitor_generate_ir *ctf_visitor_generate_ir_create(
 void ctf_visitor_generate_ir_destroy(struct ctf_visitor_generate_ir *visitor);
 
 BT_HIDDEN
-struct bt_trace_class *ctf_visitor_generate_ir_get_ir_trace_class(
+bt_trace_class *ctf_visitor_generate_ir_get_ir_trace_class(
                struct ctf_visitor_generate_ir *visitor);
 
 BT_HIDDEN
index 4b5e219a8584a9cee4d7e1d5206d843aa6b6429c..54b7d9713fbf4182a91916b8b16d28dda5e7680d 100644 (file)
 #include "ctf-meta-visitors.h"
 
 static inline
-struct bt_field_class *ctf_field_class_to_ir(struct ctf_field_class *fc,
+bt_field_class *ctf_field_class_to_ir(struct ctf_field_class *fc,
                struct ctf_trace_class *tc,
                struct ctf_stream_class *sc,
                struct ctf_event_class *ec);
 
 static inline
 void ctf_field_class_int_set_props(struct ctf_field_class_int *fc,
-               struct bt_field_class *ir_fc)
+               bt_field_class *ir_fc)
 {
        bt_field_class_integer_set_field_value_range(ir_fc,
                fc->base.size);
@@ -42,10 +42,10 @@ void ctf_field_class_int_set_props(struct ctf_field_class_int *fc,
 }
 
 static inline
-struct bt_field_class *ctf_field_class_int_to_ir(
+bt_field_class *ctf_field_class_int_to_ir(
                struct ctf_field_class_int *fc)
 {
-       struct bt_field_class *ir_fc;
+       bt_field_class *ir_fc;
 
        if (fc->is_signed) {
                ir_fc = bt_field_class_signed_integer_create();
@@ -59,11 +59,11 @@ struct bt_field_class *ctf_field_class_int_to_ir(
 }
 
 static inline
-struct bt_field_class *ctf_field_class_enum_to_ir(
+bt_field_class *ctf_field_class_enum_to_ir(
                struct ctf_field_class_enum *fc)
 {
        int ret;
-       struct bt_field_class *ir_fc;
+       bt_field_class *ir_fc;
        uint64_t i;
 
        if (fc->base.is_signed) {
@@ -96,10 +96,10 @@ struct bt_field_class *ctf_field_class_enum_to_ir(
 }
 
 static inline
-struct bt_field_class *ctf_field_class_float_to_ir(
+bt_field_class *ctf_field_class_float_to_ir(
                struct ctf_field_class_float *fc)
 {
-       struct bt_field_class *ir_fc;
+       bt_field_class *ir_fc;
 
        ir_fc = bt_field_class_real_create();
        BT_ASSERT(ir_fc);
@@ -113,10 +113,10 @@ struct bt_field_class *ctf_field_class_float_to_ir(
 }
 
 static inline
-struct bt_field_class *ctf_field_class_string_to_ir(
+bt_field_class *ctf_field_class_string_to_ir(
                struct ctf_field_class_string *fc)
 {
-       struct bt_field_class *ir_fc =
+       bt_field_class *ir_fc =
                bt_field_class_string_create();
 
        BT_ASSERT(ir_fc);
@@ -124,14 +124,14 @@ struct bt_field_class *ctf_field_class_string_to_ir(
 }
 
 static inline
-struct bt_field_class *ctf_field_class_struct_to_ir(
+bt_field_class *ctf_field_class_struct_to_ir(
                struct ctf_field_class_struct *fc,
                struct ctf_trace_class *tc,
                struct ctf_stream_class *sc,
                struct ctf_event_class *ec)
 {
        int ret;
-       struct bt_field_class *ir_fc =
+       bt_field_class *ir_fc =
                bt_field_class_structure_create();
        uint64_t i;
 
@@ -140,7 +140,7 @@ struct bt_field_class *ctf_field_class_struct_to_ir(
        for (i = 0; i < fc->members->len; i++) {
                struct ctf_named_field_class *named_fc =
                        ctf_field_class_struct_borrow_member_by_index(fc, i);
-               struct bt_field_class *member_ir_fc;
+               bt_field_class *member_ir_fc;
 
                if (!named_fc->fc->in_ir) {
                        continue;
@@ -158,13 +158,13 @@ struct bt_field_class *ctf_field_class_struct_to_ir(
 }
 
 static inline
-struct bt_field_class *borrow_ir_ft_from_field_path(
+bt_field_class *borrow_ir_ft_from_field_path(
                struct ctf_field_path *field_path,
                struct ctf_trace_class *tc,
                struct ctf_stream_class *sc,
                struct ctf_event_class *ec)
 {
-       struct bt_field_class *ir_fc = NULL;
+       bt_field_class *ir_fc = NULL;
        struct ctf_field_class *fc = ctf_field_path_borrow_field_class(
                field_path, tc, sc, ec);
 
@@ -178,14 +178,14 @@ struct bt_field_class *borrow_ir_ft_from_field_path(
 }
 
 static inline
-struct bt_field_class *ctf_field_class_variant_to_ir(
+bt_field_class *ctf_field_class_variant_to_ir(
                struct ctf_field_class_variant *fc,
                struct ctf_trace_class *tc,
                struct ctf_stream_class *sc,
                struct ctf_event_class *ec)
 {
        int ret;
-       struct bt_field_class *ir_fc =
+       bt_field_class *ir_fc =
                bt_field_class_variant_create();
        uint64_t i;
 
@@ -197,7 +197,7 @@ struct bt_field_class *ctf_field_class_variant_to_ir(
        for (i = 0; i < fc->options->len; i++) {
                struct ctf_named_field_class *named_fc =
                        ctf_field_class_variant_borrow_option_by_index(fc, i);
-               struct bt_field_class *option_ir_fc;
+               bt_field_class *option_ir_fc;
 
                BT_ASSERT(named_fc->fc->in_ir);
                option_ir_fc = ctf_field_class_to_ir(named_fc->fc, tc, sc, ec);
@@ -212,14 +212,14 @@ struct bt_field_class *ctf_field_class_variant_to_ir(
 }
 
 static inline
-struct bt_field_class *ctf_field_class_array_to_ir(
+bt_field_class *ctf_field_class_array_to_ir(
                struct ctf_field_class_array *fc,
                struct ctf_trace_class *tc,
                struct ctf_stream_class *sc,
                struct ctf_event_class *ec)
 {
-       struct bt_field_class *ir_fc;
-       struct bt_field_class *elem_ir_fc;
+       bt_field_class *ir_fc;
+       bt_field_class *elem_ir_fc;
 
        if (fc->base.is_text) {
                ir_fc = bt_field_class_string_create();
@@ -239,15 +239,15 @@ end:
 }
 
 static inline
-struct bt_field_class *ctf_field_class_sequence_to_ir(
+bt_field_class *ctf_field_class_sequence_to_ir(
                struct ctf_field_class_sequence *fc,
                struct ctf_trace_class *tc,
                struct ctf_stream_class *sc,
                struct ctf_event_class *ec)
 {
        int ret;
-       struct bt_field_class *ir_fc;
-       struct bt_field_class *elem_ir_fc;
+       bt_field_class *ir_fc;
+       bt_field_class *elem_ir_fc;
 
        if (fc->base.is_text) {
                ir_fc = bt_field_class_string_create();
@@ -271,12 +271,12 @@ end:
 }
 
 static inline
-struct bt_field_class *ctf_field_class_to_ir(struct ctf_field_class *fc,
+bt_field_class *ctf_field_class_to_ir(struct ctf_field_class *fc,
                struct ctf_trace_class *tc,
                struct ctf_stream_class *sc,
                struct ctf_event_class *ec)
 {
-       struct bt_field_class *ir_fc = NULL;
+       bt_field_class *ir_fc = NULL;
 
        BT_ASSERT(fc);
        BT_ASSERT(fc->in_ir);
@@ -336,12 +336,12 @@ end:
 }
 
 static inline
-struct bt_field_class *scope_ctf_field_class_to_ir(struct ctf_field_class *fc,
+bt_field_class *scope_ctf_field_class_to_ir(struct ctf_field_class *fc,
        struct ctf_trace_class *tc,
        struct ctf_stream_class *sc,
        struct ctf_event_class *ec)
 {
-       struct bt_field_class *ir_fc = NULL;
+       bt_field_class *ir_fc = NULL;
 
        if (!fc) {
                goto end;
@@ -391,12 +391,12 @@ end:
 }
 
 static inline
-struct bt_event_class *ctf_event_class_to_ir(struct ctf_event_class *ec,
-               struct bt_stream_class *ir_sc, struct ctf_trace_class *tc,
+bt_event_class *ctf_event_class_to_ir(struct ctf_event_class *ec,
+               bt_stream_class *ir_sc, struct ctf_trace_class *tc,
                struct ctf_stream_class *sc)
 {
        int ret;
-       struct bt_event_class *ir_ec = NULL;
+       bt_event_class *ir_ec = NULL;
 
        if (ec->is_translated) {
                ir_ec = bt_stream_class_borrow_event_class_by_id(
@@ -410,7 +410,7 @@ struct bt_event_class *ctf_event_class_to_ir(struct ctf_event_class *ec,
        bt_event_class_put_ref(ir_ec);
 
        if (ec->spec_context_fc) {
-               struct bt_field_class *ir_fc = scope_ctf_field_class_to_ir(
+               bt_field_class *ir_fc = scope_ctf_field_class_to_ir(
                        ec->spec_context_fc, tc, sc, ec);
 
                if (ir_fc) {
@@ -422,7 +422,7 @@ struct bt_event_class *ctf_event_class_to_ir(struct ctf_event_class *ec,
        }
 
        if (ec->payload_fc) {
-               struct bt_field_class *ir_fc = scope_ctf_field_class_to_ir(
+               bt_field_class *ir_fc = scope_ctf_field_class_to_ir(
                        ec->payload_fc, tc, sc, ec);
 
                if (ir_fc) {
@@ -456,11 +456,11 @@ end:
 
 
 static inline
-struct bt_stream_class *ctf_stream_class_to_ir(struct ctf_stream_class *sc,
-               struct bt_trace_class *ir_tc, struct ctf_trace_class *tc)
+bt_stream_class *ctf_stream_class_to_ir(struct ctf_stream_class *sc,
+               bt_trace_class *ir_tc, struct ctf_trace_class *tc)
 {
        int ret;
-       struct bt_stream_class *ir_sc = NULL;
+       bt_stream_class *ir_sc = NULL;
        struct ctf_field_class_int *int_fc;
 
        if (sc->is_translated) {
@@ -474,7 +474,7 @@ struct bt_stream_class *ctf_stream_class_to_ir(struct ctf_stream_class *sc,
        bt_stream_class_put_ref(ir_sc);
 
        if (sc->packet_context_fc) {
-               struct bt_field_class *ir_fc = scope_ctf_field_class_to_ir(
+               bt_field_class *ir_fc = scope_ctf_field_class_to_ir(
                        sc->packet_context_fc, tc, sc, NULL);
 
                if (ir_fc) {
@@ -486,7 +486,7 @@ struct bt_stream_class *ctf_stream_class_to_ir(struct ctf_stream_class *sc,
        }
 
        if (sc->event_header_fc) {
-               struct bt_field_class *ir_fc = scope_ctf_field_class_to_ir(
+               bt_field_class *ir_fc = scope_ctf_field_class_to_ir(
                        sc->event_header_fc, tc, sc, NULL);
 
                if (ir_fc) {
@@ -498,7 +498,7 @@ struct bt_stream_class *ctf_stream_class_to_ir(struct ctf_stream_class *sc,
        }
 
        if (sc->event_common_context_fc) {
-               struct bt_field_class *ir_fc = scope_ctf_field_class_to_ir(
+               bt_field_class *ir_fc = scope_ctf_field_class_to_ir(
                        sc->event_common_context_fc, tc, sc, NULL);
 
                if (ir_fc) {
@@ -563,7 +563,7 @@ end:
 }
 
 static inline
-int ctf_trace_class_to_ir(struct bt_trace_class *ir_tc,
+int ctf_trace_class_to_ir(bt_trace_class *ir_tc,
                struct ctf_trace_class *tc)
 {
        int ret = 0;
@@ -574,7 +574,7 @@ int ctf_trace_class_to_ir(struct bt_trace_class *ir_tc,
        }
 
        if (tc->packet_header_fc) {
-               struct bt_field_class *ir_fc = scope_ctf_field_class_to_ir(
+               bt_field_class *ir_fc = scope_ctf_field_class_to_ir(
                        tc->packet_header_fc, tc, NULL, NULL);
 
                if (ir_fc) {
@@ -623,7 +623,7 @@ end:
 }
 
 BT_HIDDEN
-int ctf_trace_class_translate(struct bt_trace_class *ir_tc,
+int ctf_trace_class_translate(bt_trace_class *ir_tc,
                struct ctf_trace_class *tc)
 {
        int ret = 0;
@@ -637,7 +637,7 @@ int ctf_trace_class_translate(struct bt_trace_class *ir_tc,
        for (i = 0; i < tc->stream_classes->len; i++) {
                uint64_t j;
                struct ctf_stream_class *sc = tc->stream_classes->pdata[i];
-               struct bt_stream_class *ir_sc;
+               bt_stream_class *ir_sc;
 
                ir_sc = ctf_stream_class_to_ir(sc, ir_tc, tc);
                if (!ir_sc) {
@@ -647,7 +647,7 @@ int ctf_trace_class_translate(struct bt_trace_class *ir_tc,
 
                for (j = 0; j < sc->event_classes->len; j++) {
                        struct ctf_event_class *ec = sc->event_classes->pdata[j];
-                       struct bt_event_class *ir_ec;
+                       bt_event_class *ir_ec;
 
                        ir_ec = ctf_event_class_to_ir(ec, ir_sc, tc, sc);
                        if (!ir_ec) {
index 8bc957f2b22c37ce5b4a54467d1ecdf0a36aa7f2..335f608accb8d72939d2ad3f9799b05e56ddecdb 100644 (file)
@@ -27,7 +27,7 @@
 
 static inline
 int find_mapped_clock_class(struct ctf_field_class *fc,
-               struct bt_clock_class **clock_class)
+               bt_clock_class **clock_class)
 {
        int ret = 0;
        uint64_t i;
@@ -120,7 +120,7 @@ int update_stream_class_default_clock_class(
                struct ctf_stream_class *stream_class)
 {
        int ret = 0;
-       struct bt_clock_class *clock_class =
+       bt_clock_class *clock_class =
                stream_class->default_clock_class;
        uint64_t i;
 
@@ -173,7 +173,7 @@ int ctf_trace_class_update_default_clock_classes(struct ctf_trace_class *ctf_tc)
 {
        uint64_t i;
        int ret = 0;
-       struct bt_clock_class *clock_class = NULL;
+       bt_clock_class *clock_class = NULL;
 
        ret = find_mapped_clock_class(ctf_tc->packet_header_fc,
                &clock_class);
index 9d3bd23472eade1907abb32f1047f90ae74d6357..7870b89c2069e2ccf90232a887c390482c47191f 100644 (file)
@@ -24,7 +24,7 @@ BT_HIDDEN
 int ctf_trace_class_resolve_field_classes(struct ctf_trace_class *tc);
 
 BT_HIDDEN
-int ctf_trace_class_translate(struct bt_trace_class *ir_tc,
+int ctf_trace_class_translate(bt_trace_class *ir_tc,
                struct ctf_trace_class *tc);
 
 BT_HIDDEN
index a52995251998fc0220b1d2bac2d9d7ccaba559b3..b4d56a45d87b95cbb4b42daab10dfd10b31f04a4 100644 (file)
@@ -66,7 +66,7 @@ struct ctf_field_class {
        bool in_ir;
 
        /* Weak, set during translation. NULL if `in_ir` is false below. */
-       struct bt_field_class *ir_fc;
+       bt_field_class *ir_fc;
 };
 
 struct ctf_field_class_bit_array {
@@ -84,7 +84,7 @@ struct ctf_field_class_int {
        int64_t storing_index;
 
        /* Owned by this */
-       struct bt_clock_class *mapped_clock_class;
+       bt_clock_class *mapped_clock_class;
 };
 
 struct ctf_range {
@@ -198,7 +198,7 @@ struct ctf_event_class {
        struct ctf_field_class *payload_fc;
 
        /* Weak, set during translation */
-       struct bt_event_class *ir_ec;
+       bt_event_class *ir_ec;
 };
 
 struct ctf_stream_class {
@@ -224,10 +224,10 @@ struct ctf_stream_class {
        GHashTable *event_classes_by_id;
 
        /* Owned by this */
-       struct bt_clock_class *default_clock_class;
+       bt_clock_class *default_clock_class;
 
        /* Weak, set during translation */
-       struct bt_stream_class *ir_sc;
+       bt_stream_class *ir_sc;
 };
 
 enum ctf_trace_class_env_entry_type {
@@ -257,7 +257,7 @@ struct ctf_trace_class {
 
        uint64_t stored_value_count;
 
-       /* Array of `struct bt_clock_class *` (owned by this) */
+       /* Array of `bt_clock_class *` (owned by this) */
        GPtrArray *clock_classes;
 
        /* Array of `struct ctf_stream_class *` */
@@ -269,7 +269,7 @@ struct ctf_trace_class {
        bool is_translated;
 
        /* Weak, set during translation */
-       struct bt_trace_class *ir_tc;
+       bt_trace_class *ir_tc;
 };
 
 static inline
@@ -1542,17 +1542,17 @@ end:
 }
 
 static inline
-struct bt_clock_class *ctf_trace_class_borrow_clock_class_by_name(
+bt_clock_class *ctf_trace_class_borrow_clock_class_by_name(
                struct ctf_trace_class *tc, const char *name)
 {
        uint64_t i;
-       struct bt_clock_class *ret_cc = NULL;
+       bt_clock_class *ret_cc = NULL;
 
        BT_ASSERT(tc);
        BT_ASSERT(name);
 
        for (i = 0; i < tc->clock_classes->len; i++) {
-               struct bt_clock_class *cc = tc->clock_classes->pdata[i];
+               bt_clock_class *cc = tc->clock_classes->pdata[i];
                const char *cc_name = bt_clock_class_get_name(cc);
 
                BT_ASSERT(cc_name);
index 4b4e634db5192c396f98e1aabb3c7a45a44a7efb..af1e1eda2d0d6ad05c4fb716f1b3e57c1fcf5e05 100644 (file)
@@ -553,7 +553,7 @@ end:
 }
 
 BT_HIDDEN
-struct bt_trace_class *ctf_metadata_decoder_get_ir_trace_class(
+bt_trace_class *ctf_metadata_decoder_get_ir_trace_class(
                struct ctf_metadata_decoder *mdec)
 {
        return ctf_visitor_generate_ir_get_ir_trace_class(mdec->visitor);
index 56b262dd0db56a9deb85fce3fe1a21e8cfa0e3e0..1edb548c7aaacf16609260df6b773bf5c63e2243 100644 (file)
@@ -18,7 +18,7 @@
 #include <stdint.h>
 #include <stdbool.h>
 
-struct bt_trace;
+#include <babeltrace/babeltrace.h>
 
 /* A CTF metadata decoder object */
 struct ctf_metadata_decoder;
@@ -87,7 +87,7 @@ enum ctf_metadata_decoder_status ctf_metadata_decoder_decode(
                struct ctf_metadata_decoder *metadata_decoder, FILE *fp);
 
 BT_HIDDEN
-struct bt_trace_class *ctf_metadata_decoder_get_ir_trace_class(
+bt_trace_class *ctf_metadata_decoder_get_ir_trace_class(
                struct ctf_metadata_decoder *mdec);
 
 BT_HIDDEN
index c225491b9c304b39f851b92413599f16072b341e..8196e5c163e38591b74bf81a3202abe6626ff5f1 100644 (file)
@@ -194,7 +194,7 @@ struct ctx_decl_scope {
  */
 struct ctx {
        /* Trace IR trace class being filled (owned by this) */
-       struct bt_trace_class *trace_class;
+       bt_trace_class *trace_class;
 
        /* CTF meta trace being filled (owned by this) */
        struct ctf_trace_class *ctf_tc;
@@ -2350,7 +2350,7 @@ int visit_integer_decl(struct ctx *ctx,
        int signedness = 0;
        struct ctf_node *expression;
        uint64_t alignment = 0, size = 0;
-       struct bt_clock_class *mapped_clock_class = NULL;
+       bt_clock_class *mapped_clock_class = NULL;
        enum ctf_encoding encoding = CTF_ENCODING_NONE;
        enum bt_field_class_integer_preferred_display_base base =
                BT_FIELD_CLASS_INTEGER_PREFERRED_DISPLAY_BASE_DECIMAL;
@@ -3562,7 +3562,7 @@ static
 int auto_map_field_to_trace_clock_class(struct ctx *ctx,
                struct ctf_field_class *fc)
 {
-       struct bt_clock_class *clock_class_to_map_to = NULL;
+       bt_clock_class *clock_class_to_map_to = NULL;
        struct ctf_field_class_int *int_fc = (void *) fc;
        int ret = 0;
        uint64_t clock_class_count;
@@ -4355,7 +4355,7 @@ error:
 
 static
 int visit_clock_decl_entry(struct ctx *ctx, struct ctf_node *entry_node,
-       struct bt_clock_class *clock, int *set, int64_t *offset_seconds,
+       bt_clock_class *clock, int *set, int64_t *offset_seconds,
        uint64_t *offset_cycles)
 {
        int ret = 0;
@@ -4602,7 +4602,7 @@ void calibrate_clock_class_offsets(int64_t *offset_seconds,
 
 static
 void apply_clock_class_offset(struct ctx *ctx,
-               struct bt_clock_class *clock)
+               bt_clock_class *clock)
 {
        uint64_t freq;
        int64_t offset_s_to_apply = ctx->decoder_config.clock_class_offset_s;
@@ -4663,7 +4663,7 @@ int visit_clock_decl(struct ctx *ctx, struct ctf_node *clock_node)
 {
        int ret = 0;
        int set = 0;
-       struct bt_clock_class *clock;
+       bt_clock_class *clock;
        struct ctf_node *entry_node;
        struct bt_list_head *decl_list = &clock_node->u.clock.declaration_list;
        const char *clock_class_name;
@@ -4830,7 +4830,7 @@ void ctf_visitor_generate_ir_destroy(struct ctf_visitor_generate_ir *visitor)
 }
 
 BT_HIDDEN
-struct bt_trace_class *ctf_visitor_generate_ir_get_ir_trace_class(
+bt_trace_class *ctf_visitor_generate_ir_get_ir_trace_class(
                struct ctf_visitor_generate_ir *visitor)
 {
        struct ctx *ctx = (void *) visitor;
index a9e35552fc039ed29a0740439fd2c6645744ecde..3d377d356305960c42fa8ec54ef80193d53ba653 100644 (file)
@@ -56,7 +56,7 @@ struct stack_entry {
         *
         * Field is borrowed.
         */
-       struct bt_field *base;
+       bt_field *base;
 
        /* Index of next field to set */
        size_t index;
@@ -103,7 +103,7 @@ struct bt_notif_iter {
        struct stack *stack;
 
        /* Current notification iterator to create notifications (weak) */
-       struct bt_self_notification_iterator *notif_iter;
+       bt_self_notification_iterator *notif_iter;
 
        /*
         * Current dynamic scope field pointer.
@@ -111,7 +111,7 @@ struct bt_notif_iter {
         * This is set by read_dscope_begin_state() and contains the
         * value of one of the pointers in `dscopes` below.
         */
-       struct bt_field *cur_dscope_field;
+       bt_field *cur_dscope_field;
 
        /*
         * True if we're done filling a string field from a text
@@ -127,34 +127,34 @@ struct bt_notif_iter {
        } meta;
 
        /* Current packet header field wrapper (NULL if not created yet) */
-       struct bt_packet_header_field *packet_header_field;
+       bt_packet_header_field *packet_header_field;
 
        /* Current packet header field wrapper (NULL if not created yet) */
-       struct bt_packet_context_field *packet_context_field;
+       bt_packet_context_field *packet_context_field;
 
        /* Current event header field (NULL if not created yet) */
-       struct bt_event_header_field *event_header_field;
+       bt_event_header_field *event_header_field;
 
        /* Current packet (NULL if not created yet) */
-       struct bt_packet *packet;
+       bt_packet *packet;
 
        /* Current stream (NULL if not set yet) */
-       struct bt_stream *stream;
+       bt_stream *stream;
 
        /* Current event (NULL if not created yet) */
-       struct bt_event *event;
+       bt_event *event;
 
        /* Current event notification (NULL if not created yet) */
-       struct bt_notification *event_notif;
+       bt_notification *event_notif;
 
        /* Database of current dynamic scopes */
        struct {
-               struct bt_field *trace_packet_header;
-               struct bt_field *stream_packet_context;
-               struct bt_field *event_header;
-               struct bt_field *event_common_context;
-               struct bt_field *event_spec_context;
-               struct bt_field *event_payload;
+               bt_field *trace_packet_header;
+               bt_field *stream_packet_context;
+               bt_field *event_header;
+               bt_field *event_common_context;
+               bt_field *event_spec_context;
+               bt_field *event_payload;
        } dscopes;
 
        /* Current state */
@@ -325,7 +325,7 @@ void stack_destroy(struct stack *stack)
 }
 
 static
-void stack_push(struct stack *stack, struct bt_field *base)
+void stack_push(struct stack *stack, bt_field *base)
 {
        struct stack_entry *entry;
 
@@ -520,7 +520,7 @@ enum bt_notif_iter_status read_dscope_begin_state(
                struct bt_notif_iter *notit,
                struct ctf_field_class *dscope_fc,
                enum state done_state, enum state continue_state,
-               struct bt_field *dscope_field)
+               bt_field *dscope_field)
 {
        enum bt_notif_iter_status status = BT_NOTIF_ITER_STATUS_OK;
        enum bt_bfcr_status bfcr_status;
@@ -792,7 +792,7 @@ static inline
 enum bt_notif_iter_status set_current_stream(struct bt_notif_iter *notit)
 {
        enum bt_notif_iter_status status = BT_NOTIF_ITER_STATUS_OK;
-       struct bt_stream *stream = NULL;
+       bt_stream *stream = NULL;
 
        BT_LOGV("Calling user function (get stream): notit-addr=%p, "
                "stream-class-addr=%p, stream-class-id=%" PRId64,
@@ -828,7 +828,7 @@ static inline
 enum bt_notif_iter_status set_current_packet(struct bt_notif_iter *notit)
 {
        enum bt_notif_iter_status status = BT_NOTIF_ITER_STATUS_OK;
-       struct bt_packet *packet = NULL;
+       bt_packet *packet = NULL;
 
        BT_LOGV("Creating packet for packet notification: "
                "notit-addr=%p", notit);
@@ -1190,7 +1190,7 @@ enum bt_notif_iter_status set_current_event_notification(
                struct bt_notif_iter *notit)
 {
        enum bt_notif_iter_status status = BT_NOTIF_ITER_STATUS_OK;
-       struct bt_notification *notif = NULL;
+       bt_notification *notif = NULL;
 
        BT_ASSERT(notit->meta.ec);
        BT_ASSERT(notit->packet);
@@ -1671,11 +1671,11 @@ end:
 }
 
 static
-struct bt_field *borrow_next_field(struct bt_notif_iter *notit)
+bt_field *borrow_next_field(struct bt_notif_iter *notit)
 {
-       struct bt_field *next_field = NULL;
-       struct bt_field *base_field;
-       const struct bt_field_class *base_fc;
+       bt_field *next_field = NULL;
+       bt_field *base_field;
+       const bt_field_class *base_fc;
        size_t index;
 
        BT_ASSERT(!stack_empty(notit->stack));
@@ -1764,7 +1764,7 @@ enum bt_bfcr_status bfcr_unsigned_int_cb(uint64_t value,
 {
        struct bt_notif_iter *notit = data;
        enum bt_bfcr_status status = BT_BFCR_STATUS_OK;
-       struct bt_field *field = NULL;
+       bt_field *field = NULL;
        struct ctf_field_class_int *int_fc = (void *) fc;
 
        BT_LOGV("Unsigned integer function called from BFCR: "
@@ -1852,7 +1852,7 @@ enum bt_bfcr_status bfcr_unsigned_int_char_cb(uint64_t value,
        int ret;
        struct bt_notif_iter *notit = data;
        enum bt_bfcr_status status = BT_BFCR_STATUS_OK;
-       struct bt_field *string_field = NULL;
+       bt_field *string_field = NULL;
        struct ctf_field_class_int *int_fc = (void *) fc;
        char str[2] = {'\0', '\0'};
 
@@ -1901,7 +1901,7 @@ enum bt_bfcr_status bfcr_signed_int_cb(int64_t value,
                struct ctf_field_class *fc, void *data)
 {
        enum bt_bfcr_status status = BT_BFCR_STATUS_OK;
-       struct bt_field *field = NULL;
+       bt_field *field = NULL;
        struct bt_notif_iter *notit = data;
        struct ctf_field_class_int *int_fc = (void *) fc;
 
@@ -1939,7 +1939,7 @@ enum bt_bfcr_status bfcr_floating_point_cb(double value,
                struct ctf_field_class *fc, void *data)
 {
        enum bt_bfcr_status status = BT_BFCR_STATUS_OK;
-       struct bt_field *field = NULL;
+       bt_field *field = NULL;
        struct bt_notif_iter *notit = data;
 
        BT_LOGV("Floating point number function called from BFCR: "
@@ -1961,7 +1961,7 @@ static
 enum bt_bfcr_status bfcr_string_begin_cb(
                struct ctf_field_class *fc, void *data)
 {
-       struct bt_field *field = NULL;
+       bt_field *field = NULL;
        struct bt_notif_iter *notit = data;
        int ret;
 
@@ -1993,7 +1993,7 @@ enum bt_bfcr_status bfcr_string_cb(const char *value,
                size_t len, struct ctf_field_class *fc, void *data)
 {
        enum bt_bfcr_status status = BT_BFCR_STATUS_OK;
-       struct bt_field *field = NULL;
+       bt_field *field = NULL;
        struct bt_notif_iter *notit = data;
        int ret;
 
@@ -2044,7 +2044,7 @@ enum bt_bfcr_status bfcr_compound_begin_cb(
                struct ctf_field_class *fc, void *data)
 {
        struct bt_notif_iter *notit = data;
-       struct bt_field *field;
+       bt_field *field;
 
        BT_LOGV("Compound (beginning) function called from BFCR: "
                "notit-addr=%p, bfcr-addr=%p, fc-addr=%p, "
@@ -2144,7 +2144,7 @@ end:
 static
 int64_t bfcr_get_sequence_length_cb(struct ctf_field_class *fc, void *data)
 {
-       struct bt_field *seq_field;
+       bt_field *seq_field;
        struct bt_notif_iter *notit = data;
        struct ctf_field_class_sequence *seq_fc = (void *) fc;
        int64_t length = -1;
@@ -2224,7 +2224,7 @@ struct ctf_field_class *bfcr_borrow_variant_selected_field_class_cb(
                var_fc, (uint64_t) option_index);
 
        if (selected_option->fc->in_ir) {
-               struct bt_field *var_field = stack_top(notit->stack)->base;
+               bt_field *var_field = stack_top(notit->stack)->base;
 
                ret = bt_field_variant_select_option_field(
                        var_field, option_index);
@@ -2246,10 +2246,10 @@ end:
 static
 void set_event_default_clock_value(struct bt_notif_iter *notit)
 {
-       struct bt_event *event =
+       bt_event *event =
                bt_notification_event_borrow_event(
                        notit->event_notif);
-       struct bt_stream_class *sc = notit->meta.sc->ir_sc;
+       bt_stream_class *sc = notit->meta.sc->ir_sc;
 
        BT_ASSERT(event);
 
@@ -2261,10 +2261,10 @@ void set_event_default_clock_value(struct bt_notif_iter *notit)
 
 static
 void notify_new_stream(struct bt_notif_iter *notit,
-               struct bt_notification **notification)
+               bt_notification **notification)
 {
        enum bt_notif_iter_status status;
-       struct bt_notification *ret = NULL;
+       bt_notification *ret = NULL;
 
        status = set_current_stream(notit);
        if (status != BT_NOTIF_ITER_STATUS_OK) {
@@ -2289,9 +2289,9 @@ end:
 
 static
 void notify_end_of_stream(struct bt_notif_iter *notit,
-               struct bt_notification **notification)
+               bt_notification **notification)
 {
-       struct bt_notification *ret;
+       bt_notification *ret;
 
        if (!notit->stream) {
                BT_LOGE("Cannot create stream for stream notification: "
@@ -2313,12 +2313,12 @@ void notify_end_of_stream(struct bt_notif_iter *notit,
 
 static
 void notify_new_packet(struct bt_notif_iter *notit,
-               struct bt_notification **notification)
+               bt_notification **notification)
 {
        int ret;
        enum bt_notif_iter_status status;
-       struct bt_notification *notif = NULL;
-       const struct bt_stream_class *sc;
+       bt_notification *notif = NULL;
+       const bt_stream_class *sc;
 
        status = set_current_packet(notit);
        if (status != BT_NOTIF_ITER_STATUS_OK) {
@@ -2409,9 +2409,9 @@ end:
 
 static
 void notify_end_of_packet(struct bt_notif_iter *notit,
-               struct bt_notification **notification)
+               bt_notification **notification)
 {
-       struct bt_notification *notif;
+       bt_notification *notif;
 
        if (!notit->packet) {
                return;
@@ -2533,8 +2533,8 @@ void bt_notif_iter_destroy(struct bt_notif_iter *notit)
 
 enum bt_notif_iter_status bt_notif_iter_get_next_notification(
                struct bt_notif_iter *notit,
-               struct bt_self_notification_iterator *notif_iter,
-               struct bt_notification **notification)
+               bt_self_notification_iterator *notif_iter,
+               bt_notification **notification)
 {
        enum bt_notif_iter_status status = BT_NOTIF_ITER_STATUS_OK;
 
@@ -2636,8 +2636,8 @@ end:
 BT_HIDDEN
 enum bt_notif_iter_status bt_notif_iter_borrow_packet_header_context_fields(
                struct bt_notif_iter *notit,
-               struct bt_field **packet_header_field,
-               struct bt_field **packet_context_field)
+               bt_field **packet_header_field,
+               bt_field **packet_context_field)
 {
        int ret;
        enum bt_notif_iter_status status = BT_NOTIF_ITER_STATUS_OK;
index 9c3033a128d118d9c9a832b4196acb0be7f36507..c0f187ec2301086280dc957061d20493006e13cc 100644 (file)
@@ -228,8 +228,8 @@ struct bt_notif_iter_medium_ops {
         * @returns             Stream instance (weak reference) or
         *                      \c NULL on error
         */
-       struct bt_stream * (* borrow_stream)(
-                       struct bt_stream_class *stream_class,
+       bt_stream * (* borrow_stream)(
+                       bt_stream_class *stream_class,
                        int64_t stream_id, void *data);
 };
 
@@ -287,8 +287,8 @@ void bt_notif_iter_destroy(struct bt_notif_iter *notif_iter);
 BT_HIDDEN
 enum bt_notif_iter_status bt_notif_iter_get_next_notification(
                struct bt_notif_iter *notit,
-               struct bt_self_notification_iterator *notif_iter,
-               struct bt_notification **notification);
+               bt_self_notification_iterator *notif_iter,
+               bt_notification **notification);
 
 /**
  * Returns the first packet header and context fields. This function
@@ -305,8 +305,8 @@ enum bt_notif_iter_status bt_notif_iter_get_next_notification(
 BT_HIDDEN
 enum bt_notif_iter_status bt_notif_iter_borrow_packet_header_context_fields(
                struct bt_notif_iter *notit,
-               struct bt_field **packet_header_field,
-               struct bt_field **packet_context_field);
+               bt_field **packet_header_field,
+               bt_field **packet_context_field);
 
 struct bt_notif_iter_packet_properties {
        uint64_t exp_packet_total_size;
index 55d7b3449e55d43e7fb8324f2ce465b09a543fea..05a75e5a4f5cdef29ce4ad83c7d848af0bf8c3ef 100644 (file)
 #include "writer.h"
 
 static
-void unref_stream_class(const struct bt_stream_class *writer_stream_class)
+void unref_stream_class(const bt_stream_class *writer_stream_class)
 {
        bt_stream_class_put_ref(writer_stream_class);
 }
 
 static
-void unref_stream(const struct bt_stream_class *writer_stream)
+void unref_stream(const bt_stream_class *writer_stream)
 {
        bt_stream_class_put_ref(writer_stream);
 }
@@ -59,7 +59,7 @@ static
 gboolean empty_streams_ht(gpointer key, gpointer value, gpointer user_data)
 {
        int ret;
-       const struct bt_stream *writer_stream = value;
+       const bt_stream *writer_stream = value;
 
        ret = bt_stream_flush(writer_stream);
        if (ret) {
@@ -86,7 +86,7 @@ void check_completed_trace(gpointer key, gpointer value, gpointer user_data)
 }
 
 static
-void trace_is_static_listener(const struct bt_trace *trace, void *data)
+void trace_is_static_listener(const bt_trace *trace, void *data)
 {
        struct fs_writer *fs_writer = data;
        int trace_completed = 1;
@@ -103,13 +103,13 @@ void trace_is_static_listener(const struct bt_trace *trace, void *data)
 }
 
 static
-const struct bt_stream_class *insert_new_stream_class(
+const bt_stream_class *insert_new_stream_class(
                struct writer_component *writer_component,
                struct fs_writer *fs_writer,
-               const struct bt_stream_class *stream_class)
+               const bt_stream_class *stream_class)
 {
-       const struct bt_stream_class *writer_stream_class = NULL;
-       const struct bt_trace *trace = NULL, *writer_trace = NULL;
+       const bt_stream_class *writer_stream_class = NULL;
+       const bt_trace *trace = NULL, *writer_trace = NULL;
        struct bt_ctf_writer *ctf_writer = fs_writer->writer;
        enum bt_component_status ret;
 
@@ -155,7 +155,7 @@ end:
 static
 enum fs_writer_stream_state *insert_new_stream_state(
                struct writer_component *writer_component,
-               struct fs_writer *fs_writer, const struct bt_stream *stream)
+               struct fs_writer *fs_writer, const bt_stream *stream)
 {
        enum fs_writer_stream_state *v = NULL;
 
@@ -214,7 +214,7 @@ end:
 
 static
 int make_trace_path(struct writer_component *writer_component,
-               const struct bt_trace *trace, char *trace_path)
+               const bt_trace *trace, char *trace_path)
 {
        int ret;
        const char *trace_name;
@@ -280,13 +280,13 @@ end:
 static
 struct fs_writer *insert_new_writer(
                struct writer_component *writer_component,
-               const struct bt_trace *trace)
+               const bt_trace *trace)
 {
        struct bt_ctf_writer *ctf_writer = NULL;
-       const struct bt_trace *writer_trace = NULL;
+       const bt_trace *writer_trace = NULL;
        char trace_path[PATH_MAX];
        enum bt_component_status ret;
-       const struct bt_stream *stream = NULL;
+       const bt_stream *stream = NULL;
        struct fs_writer *fs_writer = NULL;
        int nr_stream, i;
 
@@ -375,9 +375,9 @@ end:
 
 static
 struct fs_writer *get_fs_writer(struct writer_component *writer_component,
-               const struct bt_stream_class *stream_class)
+               const bt_stream_class *stream_class)
 {
-       const struct bt_trace *trace = NULL;
+       const bt_trace *trace = NULL;
        struct fs_writer *fs_writer;
 
        trace = bt_stream_class_get_trace(stream_class);
@@ -396,9 +396,9 @@ struct fs_writer *get_fs_writer(struct writer_component *writer_component,
 static
 struct fs_writer *get_fs_writer_from_stream(
                struct writer_component *writer_component,
-               const struct bt_stream *stream)
+               const bt_stream *stream)
 {
-       const struct bt_stream_class *stream_class = NULL;
+       const bt_stream_class *stream_class = NULL;
        struct fs_writer *fs_writer;
 
        stream_class = bt_stream_get_class(stream);
@@ -411,37 +411,37 @@ struct fs_writer *get_fs_writer_from_stream(
 }
 
 static
-const struct bt_stream_class *lookup_stream_class(
+const bt_stream_class *lookup_stream_class(
                struct writer_component *writer_component,
-               const struct bt_stream_class *stream_class)
+               const bt_stream_class *stream_class)
 {
        struct fs_writer *fs_writer = get_fs_writer(
                        writer_component, stream_class);
        BT_ASSERT(fs_writer);
-       return (const struct bt_stream_class *) g_hash_table_lookup(
+       return (const bt_stream_class *) g_hash_table_lookup(
                        fs_writer->stream_class_map, (gpointer) stream_class);
 }
 
 static
-const struct bt_stream *lookup_stream(struct writer_component *writer_component,
-               const struct bt_stream *stream)
+const bt_stream *lookup_stream(struct writer_component *writer_component,
+               const bt_stream *stream)
 {
        struct fs_writer *fs_writer = get_fs_writer_from_stream(
                        writer_component, stream);
        BT_ASSERT(fs_writer);
-       return (const struct bt_stream *) g_hash_table_lookup(
+       return (const bt_stream *) g_hash_table_lookup(
                        fs_writer->stream_map, (gpointer) stream);
 }
 
 static
-const struct bt_stream *insert_new_stream(
+const bt_stream *insert_new_stream(
                struct writer_component *writer_component,
                struct fs_writer *fs_writer,
-               const struct bt_stream_class *stream_class,
-               const struct bt_stream *stream)
+               const bt_stream_class *stream_class,
+               const bt_stream *stream)
 {
-       const struct bt_stream *writer_stream = NULL;
-       const struct bt_stream_class *writer_stream_class = NULL;
+       const bt_stream *writer_stream = NULL;
+       const bt_stream_class *writer_stream_class = NULL;
        struct bt_ctf_writer *ctf_writer = bt_object_get_ref(fs_writer->writer);
 
        writer_stream_class = lookup_stream_class(writer_component,
@@ -474,20 +474,20 @@ end:
 }
 
 static
-const struct bt_event_class *get_event_class(struct writer_component *writer_component,
-               const struct bt_stream_class *writer_stream_class,
-               const struct bt_event_class *event_class)
+const bt_event_class *get_event_class(struct writer_component *writer_component,
+               const bt_stream_class *writer_stream_class,
+               const bt_event_class *event_class)
 {
        return bt_stream_class_get_event_class_by_id(writer_stream_class,
                        bt_event_class_get_id(event_class));
 }
 
 static
-const struct bt_stream *get_writer_stream(
+const bt_stream *get_writer_stream(
                struct writer_component *writer_component,
-               const struct bt_packet *packet, const struct bt_stream *stream)
+               const bt_packet *packet, const bt_stream *stream)
 {
-       const struct bt_stream *writer_stream = NULL;
+       const bt_stream *writer_stream = NULL;
 
        writer_stream = lookup_stream(writer_component, stream);
        if (!writer_stream) {
@@ -532,11 +532,11 @@ void writer_close(struct writer_component *writer_component,
 BT_HIDDEN
 enum bt_component_status writer_stream_begin(
                struct writer_component *writer_component,
-               const struct bt_stream *stream)
+               const bt_stream *stream)
 {
-       const struct bt_stream_class *stream_class = NULL;
+       const bt_stream_class *stream_class = NULL;
        struct fs_writer *fs_writer;
-       const struct bt_stream *writer_stream = NULL;
+       const bt_stream *writer_stream = NULL;
        enum bt_component_status ret = BT_COMPONENT_STATUS_OK;
        enum fs_writer_stream_state *state;
 
@@ -584,11 +584,11 @@ end:
 BT_HIDDEN
 enum bt_component_status writer_stream_end(
                struct writer_component *writer_component,
-               const struct bt_stream *stream)
+               const bt_stream *stream)
 {
-       const struct bt_stream_class *stream_class = NULL;
+       const bt_stream_class *stream_class = NULL;
        struct fs_writer *fs_writer;
-       const struct bt_trace *trace = NULL;
+       const bt_trace *trace = NULL;
        enum bt_component_status ret = BT_COMPONENT_STATUS_OK;
        enum fs_writer_stream_state *state;
 
@@ -635,9 +635,9 @@ end:
 BT_HIDDEN
 enum bt_component_status writer_new_packet(
                struct writer_component *writer_component,
-               const struct bt_packet *packet)
+               const bt_packet *packet)
 {
-       const struct bt_stream *stream = NULL, *writer_stream = NULL;
+       const bt_stream *stream = NULL, *writer_stream = NULL;
        enum bt_component_status ret = BT_COMPONENT_STATUS_OK;
        int int_ret;
 
@@ -678,9 +678,9 @@ end:
 BT_HIDDEN
 enum bt_component_status writer_close_packet(
                struct writer_component *writer_component,
-               const struct bt_packet *packet)
+               const bt_packet *packet)
 {
-       const struct bt_stream *stream = NULL, *writer_stream = NULL;
+       const bt_stream *stream = NULL, *writer_stream = NULL;
        enum bt_component_status ret;
 
        stream = bt_packet_get_stream(packet);
@@ -717,15 +717,15 @@ end:
 BT_HIDDEN
 enum bt_component_status writer_output_event(
                struct writer_component *writer_component,
-               const struct bt_event *event)
+               const bt_event *event)
 {
        enum bt_component_status ret;
-       const struct bt_event_class *event_class = NULL, *writer_event_class = NULL;
-       const struct bt_stream *stream = NULL, *writer_stream = NULL;
-       const struct bt_stream_class *stream_class = NULL, *writer_stream_class = NULL;
-       const struct bt_event *writer_event = NULL;
+       const bt_event_class *event_class = NULL, *writer_event_class = NULL;
+       const bt_stream *stream = NULL, *writer_stream = NULL;
+       const bt_stream_class *stream_class = NULL, *writer_stream_class = NULL;
+       const bt_event *writer_event = NULL;
        int int_ret;
-       const struct bt_trace *writer_trace = NULL;
+       const bt_trace *writer_trace = NULL;
 
        event_class = bt_event_get_class(event);
        BT_ASSERT(event_class);
index 74e0b7eb8dc3e34c0ad972076c9b300ecfaa1c02..ff6035133bcd21ead40114a6e8e33cd2e6529fec 100644 (file)
@@ -63,7 +63,7 @@ void destroy_writer_component_data(struct writer_component *writer_component)
 }
 
 BT_HIDDEN
-void writer_component_finalize(struct bt_self_component *component)
+void writer_component_finalize(bt_self_component *component)
 {
        struct writer_component *writer_component = (struct writer_component *)
                bt_self_component_get_user_data(component);
@@ -111,7 +111,7 @@ end:
 static
 enum bt_component_status handle_notification(
                struct writer_component *writer_component,
-               const struct bt_notification *notification)
+               const bt_notification *notification)
 {
        enum bt_component_status ret = BT_COMPONENT_STATUS_OK;
 
@@ -123,7 +123,7 @@ enum bt_component_status handle_notification(
        switch (bt_notification_get_type(notification)) {
        case BT_NOTIFICATION_TYPE_PACKET_BEGINNING:
        {
-               const struct bt_packet *packet =
+               const bt_packet *packet =
                        bt_notification_packet_beginning_get_packet(notification);
 
                if (!packet) {
@@ -137,7 +137,7 @@ enum bt_component_status handle_notification(
        }
        case BT_NOTIFICATION_TYPE_PACKET_END:
        {
-               const struct bt_packet *packet =
+               const bt_packet *packet =
                        bt_notification_packet_end_get_packet(notification);
 
                if (!packet) {
@@ -150,7 +150,7 @@ enum bt_component_status handle_notification(
        }
        case BT_NOTIFICATION_TYPE_EVENT:
        {
-               const struct bt_event *event = bt_notification_event_get_event(
+               const bt_event *event = bt_notification_event_get_event(
                                notification);
 
                if (!event) {
@@ -166,7 +166,7 @@ enum bt_component_status handle_notification(
        }
        case BT_NOTIFICATION_TYPE_STREAM_BEGINNING:
        {
-               const struct bt_stream *stream =
+               const bt_stream *stream =
                        bt_notification_stream_beginning_get_stream(notification);
 
                if (!stream) {
@@ -179,7 +179,7 @@ enum bt_component_status handle_notification(
        }
        case BT_NOTIFICATION_TYPE_STREAM_END:
        {
-               const struct bt_stream *stream =
+               const bt_stream *stream =
                        bt_notification_stream_end_get_stream(notification);
 
                if (!stream) {
@@ -199,9 +199,9 @@ end:
 
 BT_HIDDEN
 void writer_component_port_connected(
-               struct bt_self_component *component,
+               bt_self_component *component,
                struct bt_private_port *self_port,
-               const struct bt_port *other_port)
+               const bt_port *other_port)
 {
        struct bt_private_connection *connection;
        struct writer_component *writer;
@@ -222,11 +222,11 @@ void writer_component_port_connected(
 }
 
 BT_HIDDEN
-enum bt_component_status writer_run(struct bt_self_component *component)
+enum bt_component_status writer_run(bt_self_component *component)
 {
        enum bt_component_status ret;
-       const struct bt_notification *notification = NULL;
-       struct bt_notification_iterator *it;
+       const bt_notification *notification = NULL;
+       bt_notification_iterator *it;
        struct writer_component *writer_component =
                bt_self_component_get_user_data(component);
        enum bt_notification_iterator_status it_ret;
@@ -265,12 +265,12 @@ end:
 
 static
 enum bt_component_status apply_one_bool(const char *key,
-               struct bt_value *params,
+               bt_value *params,
                bool *option,
                bool *found)
 {
        enum bt_component_status ret = BT_COMPONENT_STATUS_OK;
-       struct bt_value *value = NULL;
+       bt_value *value = NULL;
        enum bt_value_status status;
        bt_bool bool_val;
 
@@ -291,13 +291,13 @@ end:
 
 BT_HIDDEN
 enum bt_component_status writer_component_init(
-       struct bt_self_component *component, struct bt_value *params,
+       bt_self_component *component, bt_value *params,
        UNUSED_VAR void *init_method_data)
 {
        enum bt_component_status ret;
        enum bt_value_status value_ret;
        struct writer_component *writer_component = create_writer_component();
-       struct bt_value *value = NULL;
+       bt_value *value = NULL;
        const char *path;
 
        if (!writer_component) {
index ae95f71491b36d4c28e95e0c325ee84ae2b84768..5a0981040a90b7003a87ca59477a58a6c9809ac3 100644 (file)
@@ -36,10 +36,10 @@ struct writer_component {
        GString *trace_name_base;
        /* For the directory name suffix. */
        int trace_id;
-       /* Map between struct bt_trace and struct fs_writer. */
+       /* Map between bt_trace and struct fs_writer. */
        GHashTable *trace_map;
        FILE *err;
-       struct bt_notification_iterator *input_iterator;
+       bt_notification_iterator *input_iterator;
        bool error;
        bool single_trace;
        unsigned int nr_traces;
@@ -59,8 +59,8 @@ enum fs_writer_stream_state {
 
 struct fs_writer {
        struct bt_ctf_writer *writer;
-       const struct bt_trace *trace;
-       const struct bt_trace *writer_trace;
+       const bt_trace *trace;
+       const bt_trace *writer_trace;
        struct writer_component *writer_component;
        int static_listener_id;
        int trace_static;
@@ -76,35 +76,35 @@ void writer_close(struct writer_component *writer_component,
                struct fs_writer *fs_writer);
 BT_HIDDEN
 enum bt_component_status writer_output_event(struct writer_component *writer,
-               const struct bt_event *event);
+               const bt_event *event);
 BT_HIDDEN
 enum bt_component_status writer_new_packet(struct writer_component *writer,
-               const struct bt_packet *packet);
+               const bt_packet *packet);
 BT_HIDDEN
 enum bt_component_status writer_close_packet(struct writer_component *writer,
-               const struct bt_packet *packet);
+               const bt_packet *packet);
 BT_HIDDEN
 enum bt_component_status writer_stream_begin(struct writer_component *writer,
-               const struct bt_stream *stream);
+               const bt_stream *stream);
 BT_HIDDEN
 enum bt_component_status writer_stream_end(struct writer_component *writer,
-               const struct bt_stream *stream);
+               const bt_stream *stream);
 
 BT_HIDDEN
 enum bt_component_status writer_component_init(
-       struct bt_self_component *component, struct bt_value *params,
+       bt_self_component *component, bt_value *params,
        void *init_method_data);
 
 BT_HIDDEN
-enum bt_component_status writer_run(struct bt_self_component *component);
+enum bt_component_status writer_run(bt_self_component *component);
 
 BT_HIDDEN
 void writer_component_port_connected(
-               struct bt_self_component *component,
+               bt_self_component *component,
                struct bt_private_port *self_port,
-               const struct bt_port *other_port);
+               const bt_port *other_port);
 
 BT_HIDDEN
-void writer_component_finalize(struct bt_self_component *component);
+void writer_component_finalize(bt_self_component *component);
 
 #endif /* BABELTRACE_PLUGIN_WRITER_H */
index b6e301ccaa33c71d28c5286ee098eee16d0309ed..dca33e2e4b8da85b083f29c1a61c124a15a8f807 100644 (file)
@@ -173,13 +173,13 @@ end:
 }
 
 static
-struct bt_stream *medop_borrow_stream(
-               struct bt_stream_class *stream_class, int64_t stream_id,
+bt_stream *medop_borrow_stream(
+               bt_stream_class *stream_class, int64_t stream_id,
                void *data)
 {
        struct ctf_fs_ds_file *ds_file = data;
-       struct bt_stream_class *ds_file_stream_class;
-       struct bt_stream *stream = NULL;
+       bt_stream_class *ds_file_stream_class;
+       bt_stream *stream = NULL;
 
        ds_file_stream_class = bt_stream_borrow_class(
                ds_file->stream);
@@ -293,7 +293,7 @@ struct ctf_fs_ds_index_entry *ctf_fs_ds_index_add_new_entry(
 }
 
 static
-int convert_cycles_to_ns(struct bt_clock_class *clock_class,
+int convert_cycles_to_ns(bt_clock_class *clock_class,
                uint64_t cycles, int64_t *ns)
 {
        return bt_clock_class_cycles_to_ns_from_origin(clock_class, cycles,
@@ -624,9 +624,9 @@ error:
 BT_HIDDEN
 struct ctf_fs_ds_file *ctf_fs_ds_file_create(
                struct ctf_fs_trace *ctf_fs_trace,
-               struct bt_self_notification_iterator *pc_notif_iter,
+               bt_self_notification_iterator *pc_notif_iter,
                struct bt_notif_iter *notif_iter,
-               struct bt_stream *stream, const char *path)
+               bt_stream *stream, const char *path)
 {
        int ret;
        const size_t page_size = bt_common_get_page_size();
@@ -708,7 +708,7 @@ void ctf_fs_ds_file_destroy(struct ctf_fs_ds_file *ds_file)
 BT_HIDDEN
 enum bt_notification_iterator_status ctf_fs_ds_file_next(
                struct ctf_fs_ds_file *ds_file,
-               struct bt_notification **notif)
+               bt_notification **notif)
 {
        enum bt_notif_iter_status notif_iter_status;
        enum bt_notification_iterator_status status;
@@ -742,8 +742,8 @@ enum bt_notification_iterator_status ctf_fs_ds_file_next(
 BT_HIDDEN
 int ctf_fs_ds_file_borrow_packet_header_context_fields(
                struct ctf_fs_ds_file *ds_file,
-               struct bt_field **packet_header_field,
-               struct bt_field **packet_context_field)
+               bt_field **packet_header_field,
+               bt_field **packet_context_field)
 {
        enum bt_notif_iter_status notif_iter_status;
        int ret = 0;
index a02501c6074a1c006559880c79e5f991fc8a62bd..d8e6ff99f8336c0bf3777cb15754af229d0a0201 100644 (file)
@@ -91,13 +91,13 @@ struct ctf_fs_ds_file {
        struct ctf_fs_metadata *metadata;
 
        /* Weak */
-       struct bt_self_notification_iterator *pc_notif_iter;
+       bt_self_notification_iterator *pc_notif_iter;
 
        /* Owned by this */
        struct ctf_fs_file *file;
 
        /* Owned by this */
-       struct bt_stream *stream;
+       bt_stream *stream;
 
        /* Weak */
        struct bt_notif_iter *notif_iter;
@@ -128,15 +128,15 @@ struct ctf_fs_ds_file {
 BT_HIDDEN
 struct ctf_fs_ds_file *ctf_fs_ds_file_create(
                struct ctf_fs_trace *ctf_fs_trace,
-               struct bt_self_notification_iterator *pc_notif_iter,
+               bt_self_notification_iterator *pc_notif_iter,
                struct bt_notif_iter *notif_iter,
-               struct bt_stream *stream, const char *path);
+               bt_stream *stream, const char *path);
 
 BT_HIDDEN
 int ctf_fs_ds_file_borrow_packet_header_context_fields(
                struct ctf_fs_ds_file *ds_file,
-               struct bt_field **packet_header_field,
-               struct bt_field **packet_context_field);
+               bt_field **packet_header_field,
+               bt_field **packet_context_field);
 
 BT_HIDDEN
 void ctf_fs_ds_file_destroy(struct ctf_fs_ds_file *stream);
@@ -144,7 +144,7 @@ void ctf_fs_ds_file_destroy(struct ctf_fs_ds_file *stream);
 BT_HIDDEN
 enum bt_notification_iterator_status ctf_fs_ds_file_next(
                struct ctf_fs_ds_file *ds_file,
-               struct bt_notification **notif);
+               bt_notification **notif);
 
 BT_HIDDEN
 struct ctf_fs_ds_index *ctf_fs_ds_file_build_index(
index abdf8e2b39a979b4247eb8406effb46c6847ef7b..b612d2c6809ff8d2fb423fca5ae9771b36c6fe71 100644 (file)
@@ -90,10 +90,10 @@ void ctf_fs_notif_iter_data_destroy(
 static
 enum bt_self_notification_iterator_status ctf_fs_iterator_next_one(
                struct ctf_fs_notif_iter_data *notif_iter_data,
-               const struct bt_notification **notif)
+               const bt_notification **notif)
 {
        enum bt_self_notification_iterator_status status;
-       struct bt_notification *priv_notif;
+       bt_notification *priv_notif;
        int ret;
 
        BT_ASSERT(notif_iter_data->ds_file);
@@ -195,7 +195,7 @@ end:
 
 BT_HIDDEN
 enum bt_self_notification_iterator_status ctf_fs_iterator_next(
-               struct bt_self_notification_iterator *iterator,
+               bt_self_notification_iterator *iterator,
                bt_notification_array_const notifs, uint64_t capacity,
                uint64_t *count)
 {
@@ -231,16 +231,16 @@ enum bt_self_notification_iterator_status ctf_fs_iterator_next(
        return status;
 }
 
-void ctf_fs_iterator_finalize(struct bt_self_notification_iterator *it)
+void ctf_fs_iterator_finalize(bt_self_notification_iterator *it)
 {
        ctf_fs_notif_iter_data_destroy(
                bt_self_notification_iterator_get_data(it));
 }
 
 enum bt_self_notification_iterator_status ctf_fs_iterator_init(
-               struct bt_self_notification_iterator *self_notif_iter,
-               struct bt_self_component_source *self_comp,
-               struct bt_self_component_port_output *self_port)
+               bt_self_notification_iterator *self_notif_iter,
+               bt_self_component_source *self_comp,
+               bt_self_component_port_output *self_port)
 {
        struct ctf_fs_port_data *port_data;
        struct ctf_fs_notif_iter_data *notif_iter_data = NULL;
@@ -347,7 +347,7 @@ void ctf_fs_trace_destroy_notifier(void *data)
        ctf_fs_trace_destroy(trace);
 }
 
-void ctf_fs_finalize(struct bt_self_component_source *component)
+void ctf_fs_finalize(bt_self_component_source *component)
 {
        ctf_fs_destroy(bt_self_component_get_data(
                bt_self_component_source_as_self_component(component)));
@@ -520,7 +520,7 @@ void ctf_fs_ds_file_group_destroy(struct ctf_fs_ds_file_group *ds_file_group)
 static
 struct ctf_fs_ds_file_group *ctf_fs_ds_file_group_create(
                struct ctf_fs_trace *ctf_fs_trace,
-               struct bt_stream_class *stream_class,
+               bt_stream_class *stream_class,
                uint64_t stream_instance_id)
 {
        struct ctf_fs_ds_file_group *ds_file_group;
@@ -614,7 +614,7 @@ static
 int add_ds_file_to_ds_file_group(struct ctf_fs_trace *ctf_fs_trace,
                const char *path)
 {
-       struct bt_stream_class *stream_class = NULL;
+       bt_stream_class *stream_class = NULL;
        int64_t stream_instance_id = -1;
        int64_t begin_ns = -1;
        struct ctf_fs_ds_file_group *ds_file_group = NULL;
@@ -914,11 +914,11 @@ end:
 }
 
 static
-int set_trace_name(struct bt_trace *trace, const char *name_suffix)
+int set_trace_name(bt_trace *trace, const char *name_suffix)
 {
        int ret = 0;
-       const struct bt_trace_class *tc = bt_trace_borrow_class_const(trace);
-       const struct bt_value *val;
+       const bt_trace_class *tc = bt_trace_borrow_class_const(trace);
+       const bt_value *val;
        GString *name;
 
        name = g_string_new(NULL);
@@ -1307,11 +1307,11 @@ end:
 
 static
 struct ctf_fs_component *ctf_fs_create(
-               struct bt_self_component_source *self_comp,
-               const struct bt_value *params)
+               bt_self_component_source *self_comp,
+               const bt_value *params)
 {
        struct ctf_fs_component *ctf_fs;
-       const struct bt_value *value = NULL;
+       const bt_value *value = NULL;
        const char *path_param;
 
        ctf_fs = g_new0(struct ctf_fs_component, 1);
@@ -1385,8 +1385,8 @@ end:
 
 BT_HIDDEN
 enum bt_self_component_status ctf_fs_init(
-               struct bt_self_component_source *self_comp,
-               const struct bt_value *params, UNUSED_VAR void *init_method_data)
+               bt_self_component_source *self_comp,
+               const bt_value *params, UNUSED_VAR void *init_method_data)
 {
        struct ctf_fs_component *ctf_fs;
        enum bt_self_component_status ret = BT_SELF_COMPONENT_STATUS_OK;
@@ -1401,10 +1401,10 @@ enum bt_self_component_status ctf_fs_init(
 
 BT_HIDDEN
 enum bt_query_status ctf_fs_query(
-               struct bt_self_component_class_source *comp_class,
-               const struct bt_query_executor *query_exec,
-               const char *object, const struct bt_value *params,
-               const struct bt_value **result)
+               bt_self_component_class_source *comp_class,
+               const bt_query_executor *query_exec,
+               const char *object, const bt_value *params,
+               const bt_value **result)
 {
        enum bt_query_status status = BT_QUERY_STATUS_OK;
 
index 5619e1b25517aa3b26f0b53de114b1b5ac85f804..1660169389e582b58ad290d01a125303e1aeffe0 100644 (file)
@@ -53,7 +53,7 @@ struct ctf_fs_metadata {
        struct ctf_metadata_decoder *decoder;
 
        /* Owned by this */
-       struct bt_trace_class *trace_class;
+       bt_trace_class *trace_class;
 
        /* Weak (owned by `decoder` above) */
        struct ctf_trace_class *tc;
@@ -70,7 +70,7 @@ struct ctf_fs_metadata {
 
 struct ctf_fs_component {
        /* Weak, guaranteed to exist */
-       struct bt_self_component_source *self_comp;
+       bt_self_component_source *self_comp;
 
        /* Array of struct ctf_fs_port_data *, owned by this */
        GPtrArray *port_data;
@@ -86,7 +86,7 @@ struct ctf_fs_trace {
        struct ctf_fs_metadata *metadata;
 
        /* Owned by this */
-       struct bt_trace *trace;
+       bt_trace *trace;
 
        /* Array of struct ctf_fs_ds_file_group *, owned by this */
        GPtrArray *ds_file_groups;
@@ -114,10 +114,10 @@ struct ctf_fs_ds_file_group {
        GPtrArray *ds_file_infos;
 
        /* Owned by this */
-       struct bt_stream_class *stream_class;
+       bt_stream_class *stream_class;
 
        /* Owned by this */
-       struct bt_stream *stream;
+       bt_stream *stream;
 
        /* Stream (instance) ID; -1ULL means none */
        uint64_t stream_id;
@@ -136,7 +136,7 @@ struct ctf_fs_port_data {
 
 struct ctf_fs_notif_iter_data {
        /* Weak */
-       struct bt_self_notification_iterator *pc_notif_iter;
+       bt_self_notification_iterator *pc_notif_iter;
 
        /* Weak, belongs to ctf_fs_trace */
        struct ctf_fs_ds_file_group *ds_file_group;
@@ -156,18 +156,18 @@ struct ctf_fs_notif_iter_data {
 
 BT_HIDDEN
 enum bt_self_component_status ctf_fs_init(
-               struct bt_self_component_source *source,
-               const struct bt_value *params, void *init_method_data);
+               bt_self_component_source *source,
+               const bt_value *params, void *init_method_data);
 
 BT_HIDDEN
-void ctf_fs_finalize(struct bt_self_component_source *component);
+void ctf_fs_finalize(bt_self_component_source *component);
 
 BT_HIDDEN
 enum bt_query_status ctf_fs_query(
-               struct bt_self_component_class_source *comp_class,
-               const struct bt_query_executor *query_exec,
-               const char *object, const struct bt_value *params,
-               const struct bt_value **result);
+               bt_self_component_class_source *comp_class,
+               const bt_query_executor *query_exec,
+               const char *object, const bt_value *params,
+               const bt_value **result);
 
 BT_HIDDEN
 struct ctf_fs_trace *ctf_fs_trace_create(const char *path, const char *name,
@@ -184,16 +184,16 @@ GList *ctf_fs_create_trace_names(GList *trace_paths, const char *base_path);
 
 BT_HIDDEN
 enum bt_self_notification_iterator_status ctf_fs_iterator_init(
-               struct bt_self_notification_iterator *self_notif_iter,
-               struct bt_self_component_source *self_comp,
-               struct bt_self_component_port_output *self_port);
+               bt_self_notification_iterator *self_notif_iter,
+               bt_self_component_source *self_comp,
+               bt_self_component_port_output *self_port);
 
 BT_HIDDEN
-void ctf_fs_iterator_finalize(struct bt_self_notification_iterator *it);
+void ctf_fs_iterator_finalize(bt_self_notification_iterator *it);
 
 BT_HIDDEN
 enum bt_self_notification_iterator_status ctf_fs_iterator_next(
-               struct bt_self_notification_iterator *iterator,
+               bt_self_notification_iterator *iterator,
                bt_notification_array_const notifs, uint64_t capacity,
                uint64_t *count);
 
index 7b2228662a9b3fc74f877b3ff8834516a9d54806..0cdf22c1e87e28fde9e20155f679e97dd4016b95 100644 (file)
@@ -47,13 +47,13 @@ struct range {
 
 BT_HIDDEN
 enum bt_query_status metadata_info_query(
-               struct bt_self_component_class_source *comp_class,
-               const struct bt_value *params,
-               const struct bt_value **user_result)
+               bt_self_component_class_source *comp_class,
+               const bt_value *params,
+               const bt_value **user_result)
 {
        enum bt_query_status status = BT_QUERY_STATUS_OK;
-       struct bt_value *result = NULL;
-       const struct bt_value *path_value = NULL;
+       bt_value *result = NULL;
+       const bt_value *path_value = NULL;
        char *metadata_text = NULL;
        FILE *metadata_fp = NULL;
        GString *g_metadata_text = NULL;
@@ -181,12 +181,12 @@ end:
 }
 
 static
-int add_range(struct bt_value *info, struct range *range,
+int add_range(bt_value *info, struct range *range,
                const char *range_name)
 {
        int ret = 0;
        enum bt_value_status status;
-       struct bt_value *range_map = NULL;
+       bt_value *range_map = NULL;
 
        if (!range->set) {
                /* Not an error. */
@@ -226,12 +226,12 @@ end:
 }
 
 static
-int add_stream_ids(struct bt_value *info, const struct bt_stream *stream)
+int add_stream_ids(bt_value *info, const bt_stream *stream)
 {
        int ret = 0;
        int64_t stream_class_id, stream_instance_id;
        enum bt_value_status status;
-       const struct bt_stream_class *stream_class = NULL;
+       const bt_stream_class *stream_class = NULL;
 
        stream_instance_id = bt_stream_get_id(stream);
        if (stream_instance_id != -1) {
@@ -267,12 +267,12 @@ end:
 
 static
 int populate_stream_info(struct ctf_fs_ds_file_group *group,
-               struct bt_value *group_info, struct range *stream_range)
+               bt_value *group_info, struct range *stream_range)
 {
        int ret = 0;
        size_t file_idx;
        enum bt_value_status status;
-       struct bt_value *file_paths;
+       bt_value *file_paths;
 
        stream_range->begin_ns = INT64_MAX;
        stream_range->end_ns = 0;
@@ -342,13 +342,13 @@ end:
 
 static
 int populate_trace_info(const char *trace_path, const char *trace_name,
-               struct bt_value *trace_info)
+               bt_value *trace_info)
 {
        int ret = 0;
        size_t group_idx;
        struct ctf_fs_trace *trace = NULL;
        enum bt_value_status status;
-       struct bt_value *file_groups;
+       bt_value *file_groups;
        struct range trace_range = {
                .begin_ns = INT64_MAX,
                .end_ns = 0,
@@ -395,7 +395,7 @@ int populate_trace_info(const char *trace_path, const char *trace_name,
        /* Find range of all stream groups, and of the trace. */
        for (group_idx = 0; group_idx < trace->ds_file_groups->len;
                        group_idx++) {
-               struct bt_value *group_info;
+               bt_value *group_info;
                struct range group_range = { .set = false };
                struct ctf_fs_ds_file_group *group = g_ptr_array_index(
                                trace->ds_file_groups, group_idx);
@@ -463,13 +463,13 @@ end:
 
 BT_HIDDEN
 enum bt_query_status trace_info_query(
-               struct bt_self_component_class_source *comp_class,
-               const struct bt_value *params,
-               const struct bt_value **user_result)
+               bt_self_component_class_source *comp_class,
+               const bt_value *params,
+               const bt_value **user_result)
 {
        enum bt_query_status status = BT_QUERY_STATUS_OK;
-       struct bt_value *result = NULL;
-       const struct bt_value *path_value = NULL;
+       bt_value *result = NULL;
+       const bt_value *path_value = NULL;
        int ret = 0;
        const char *path = NULL;
        GList *trace_paths = NULL;
@@ -521,7 +521,7 @@ enum bt_query_status trace_info_query(
                GString *trace_path = tp_node->data;
                GString *trace_name = tn_node->data;
                enum bt_value_status status;
-               struct bt_value *trace_info;
+               bt_value *trace_info;
 
                trace_info = bt_value_map_create();
                if (!trace_info) {
index 86ecb558a055b8d4f4602e86d0ac46b3f1bec82b..e778d4d07292140c6abf840a28cd8e56cc6e9096 100644 (file)
 
 BT_HIDDEN
 enum bt_query_status metadata_info_query(
-               struct bt_self_component_class_source *comp_class,
-               const struct bt_value *params, const struct bt_value **result);
+               bt_self_component_class_source *comp_class,
+               const bt_value *params, const bt_value **result);
 
 BT_HIDDEN
 enum bt_query_status trace_info_query(
-               struct bt_self_component_class_source *comp_class,
-               const struct bt_value *params, const struct bt_value **result);
+               bt_self_component_class_source *comp_class,
+               const bt_value *params, const bt_value **result);
 
 #endif /* BABELTRACE_PLUGIN_CTF_FS_QUERY_H */
index 1692715139084bd1c70f0a1b3f7c495faec9e02d..c0233e1195834d5cdcba8c1d2e0c64e9728d60f8 100644 (file)
@@ -72,8 +72,8 @@ enum bt_notif_iter_medium_status medop_request_bytes(
 }
 
 static
-const struct bt_stream *medop_get_stream(
-               const struct bt_stream_class *stream_class,
+const bt_stream *medop_get_stream(
+               const bt_stream_class *stream_class,
                uint64_t stream_id, void *data)
 {
        struct lttng_live_stream_iterator *lttng_live_stream = data;
index 153db97d869804760d12be0d8dadab8bf4583b5b..d9c328d3d3a965dcb7773a8dbeeef35c042892d5 100644 (file)
@@ -69,7 +69,7 @@ struct lttng_live_stream_iterator_generic {
 struct lttng_live_stream_iterator {
        struct lttng_live_stream_iterator_generic p;
 
-       const struct bt_stream *stream;
+       const bt_stream *stream;
        struct lttng_live_trace *trace;
        struct bt_private_port *port;   /* weak ref. */
 
@@ -95,7 +95,7 @@ struct lttng_live_stream_iterator {
        enum lttng_live_stream_state state;
 
        uint64_t current_packet_end_timestamp;
-       const struct bt_notification *packet_end_notif_queue;
+       const bt_notification *packet_end_notif_queue;
 
        uint8_t *buf;
        size_t buflen;
@@ -128,7 +128,7 @@ struct lttng_live_metadata {
 };
 
 struct lttng_live_trace {
-       struct bt_object obj;
+       bt_object obj;
 
        /* Node of trace list within the session. */
        struct bt_list_head node;
@@ -138,10 +138,10 @@ struct lttng_live_trace {
 
        uint64_t id;    /* ctf trace ID within the session. */
 
-       const struct bt_trace *trace;
+       const bt_trace *trace;
 
        struct lttng_live_metadata *metadata;
-       struct bt_clock_class_priority_map *cc_prio_map;
+       bt_clock_class_priority_map *cc_prio_map;
 
        /* List of struct lttng_live_stream_iterator */
        struct bt_list_head streams;
@@ -173,8 +173,8 @@ struct lttng_live_session {
  * A component instance is an iterator on a single session.
  */
 struct lttng_live_component {
-       struct bt_object obj;
-       struct bt_self_component *private_component;    /* weak */
+       bt_object obj;
+       bt_self_component *private_component;   /* weak */
        struct bt_live_viewer_connection *viewer_connection;
 
        /* List of struct lttng_live_session */
@@ -187,7 +187,7 @@ struct lttng_live_component {
        struct bt_private_port *no_stream_port; /* weak */
        struct lttng_live_no_stream_iterator *no_stream_iter;
 
-       struct bt_component *downstream_component;
+       bt_component *downstream_component;
 };
 
 enum bt_lttng_live_iterator_status {
@@ -209,29 +209,29 @@ enum bt_lttng_live_iterator_status {
        BT_LTTNG_LIVE_ITERATOR_STATUS_UNSUPPORTED = -4,
 };
 
-enum bt_component_status lttng_live_component_init(struct bt_self_component *source,
-               struct bt_value *params, void *init_method_data);
+enum bt_component_status lttng_live_component_init(bt_self_component *source,
+               bt_value *params, void *init_method_data);
 
-struct bt_component_class_query_method_return lttng_live_query(
-               const struct bt_component_class *comp_class,
-               const struct bt_query_executor *query_exec,
-               const char *object, struct bt_value *params);
+bt_component_class_query_method_return lttng_live_query(
+               const bt_component_class *comp_class,
+               const bt_query_executor *query_exec,
+               const char *object, bt_value *params);
 
-void lttng_live_component_finalize(struct bt_self_component *component);
+void lttng_live_component_finalize(bt_self_component *component);
 
-struct bt_notification_iterator_next_method_return lttng_live_iterator_next(
-        struct bt_self_notification_iterator *iterator);
+bt_notification_iterator_next_method_return lttng_live_iterator_next(
+        bt_self_notification_iterator *iterator);
 
 enum bt_component_status lttng_live_accept_port_connection(
-               struct bt_self_component *private_component,
+               bt_self_component *private_component,
                struct bt_private_port *self_private_port,
-               const struct bt_port *other_port);
+               const bt_port *other_port);
 
 enum bt_notification_iterator_status lttng_live_iterator_init(
-               struct bt_self_notification_iterator *it,
+               bt_self_notification_iterator *it,
                struct bt_private_port *port);
 
-void lttng_live_iterator_finalize(struct bt_self_notification_iterator *it);
+void lttng_live_iterator_finalize(bt_self_notification_iterator *it);
 
 int lttng_live_create_viewer_session(struct lttng_live_component *lttng_live);
 int lttng_live_attach_session(struct lttng_live_session *session);
index c61bff6ca6e2264bb543e2cacd861128b197a2c9..ff646bb23ecbbc49ae52ec3fb1f440438606eb63 100644 (file)
@@ -68,7 +68,7 @@ static const char *print_state(struct lttng_live_stream_iterator *s)
 static
 void print_stream_state(struct lttng_live_stream_iterator *stream)
 {
-       const struct bt_port *port;
+       const bt_port *port;
 
        port = bt_port_from_private(stream->port);
        print_dbg("stream %s state %s last_inact_ts %" PRId64 " cur_inact_ts %" PRId64,
@@ -82,8 +82,8 @@ void print_stream_state(struct lttng_live_stream_iterator *stream)
 BT_HIDDEN
 bt_bool lttng_live_is_canceled(struct lttng_live_component *lttng_live)
 {
-       struct bt_component *component;
-       const struct bt_graph *graph;
+       bt_component *component;
+       const bt_graph *graph;
        bt_bool ret;
 
        if (!lttng_live) {
@@ -145,7 +145,7 @@ BT_HIDDEN
 int lttng_live_remove_port(struct lttng_live_component *lttng_live,
                struct bt_private_port *port)
 {
-       struct bt_component *component;
+       bt_component *component;
        int64_t nr_ports;
        int ret;
 
@@ -201,7 +201,7 @@ struct lttng_live_trace *lttng_live_find_trace(struct lttng_live_session *sessio
 }
 
 static
-void lttng_live_destroy_trace(struct bt_object *obj)
+void lttng_live_destroy_trace(bt_object *obj)
 {
        struct lttng_live_trace *trace = container_of(obj, struct lttng_live_trace, obj);
 
@@ -339,7 +339,7 @@ void lttng_live_destroy_session(struct lttng_live_session *session)
 }
 
 BT_HIDDEN
-void lttng_live_iterator_finalize(struct bt_self_notification_iterator *it)
+void lttng_live_iterator_finalize(bt_self_notification_iterator *it)
 {
        struct lttng_live_stream_iterator_generic *s =
                        bt_self_notification_iterator_get_user_data(it);
@@ -556,15 +556,15 @@ static
 enum bt_lttng_live_iterator_status emit_inactivity_notification(
                struct lttng_live_component *lttng_live,
                struct lttng_live_stream_iterator *lttng_live_stream,
-               const struct bt_notification **notification,
+               const bt_notification **notification,
                uint64_t timestamp)
 {
        enum bt_lttng_live_iterator_status ret =
                        BT_LTTNG_LIVE_ITERATOR_STATUS_OK;
        struct lttng_live_trace *trace;
-       const struct bt_clock_class *clock_class = NULL;
-       struct bt_clock_value *clock_value = NULL;
-       const struct bt_notification *notif = NULL;
+       const bt_clock_class *clock_class = NULL;
+       bt_clock_value *clock_value = NULL;
+       const bt_notification *notif = NULL;
        int retval;
 
        trace = lttng_live_stream->trace;
@@ -603,12 +603,12 @@ static
 enum bt_lttng_live_iterator_status lttng_live_iterator_next_handle_one_quiescent_stream(
                struct lttng_live_component *lttng_live,
                struct lttng_live_stream_iterator *lttng_live_stream,
-               const struct bt_notification **notification)
+               const bt_notification **notification)
 {
        enum bt_lttng_live_iterator_status ret =
                        BT_LTTNG_LIVE_ITERATOR_STATUS_OK;
-       const struct bt_clock_class *clock_class = NULL;
-       struct bt_clock_value *clock_value = NULL;
+       const bt_clock_class *clock_class = NULL;
+       bt_clock_value *clock_value = NULL;
 
        if (lttng_live_stream->state != LTTNG_LIVE_STREAM_QUIESCENT) {
                return BT_LTTNG_LIVE_ITERATOR_STATUS_OK;
@@ -636,7 +636,7 @@ static
 enum bt_lttng_live_iterator_status lttng_live_iterator_next_handle_one_active_data_stream(
                struct lttng_live_component *lttng_live,
                struct lttng_live_stream_iterator *lttng_live_stream,
-               const struct bt_notification **notification)
+               const bt_notification **notification)
 {
        enum bt_lttng_live_iterator_status ret =
                        BT_LTTNG_LIVE_ITERATOR_STATUS_OK;
@@ -755,12 +755,12 @@ enum bt_lttng_live_iterator_status lttng_live_iterator_next_handle_one_active_da
  * When disconnected from relayd: try to re-connect endlessly.
  */
 static
-struct bt_notification_iterator_next_method_return lttng_live_iterator_next_stream(
-               struct bt_self_notification_iterator *iterator,
+bt_notification_iterator_next_method_return lttng_live_iterator_next_stream(
+               bt_self_notification_iterator *iterator,
                struct lttng_live_stream_iterator *stream_iter)
 {
        enum bt_lttng_live_iterator_status status;
-       struct bt_notification_iterator_next_method_return next_return;
+       bt_notification_iterator_next_method_return next_return;
        struct lttng_live_component *lttng_live;
 
        lttng_live = stream_iter->trace->session->lttng_live;
@@ -826,12 +826,12 @@ end:
 }
 
 static
-struct bt_notification_iterator_next_method_return lttng_live_iterator_next_no_stream(
-               struct bt_self_notification_iterator *iterator,
+bt_notification_iterator_next_method_return lttng_live_iterator_next_no_stream(
+               bt_self_notification_iterator *iterator,
                struct lttng_live_no_stream_iterator *no_stream_iter)
 {
        enum bt_lttng_live_iterator_status status;
-       struct bt_notification_iterator_next_method_return next_return;
+       bt_notification_iterator_next_method_return next_return;
        struct lttng_live_component *lttng_live;
 
        lttng_live = no_stream_iter->lttng_live;
@@ -875,12 +875,12 @@ end:
 }
 
 BT_HIDDEN
-struct bt_notification_iterator_next_method_return lttng_live_iterator_next(
-               struct bt_self_notification_iterator *iterator)
+bt_notification_iterator_next_method_return lttng_live_iterator_next(
+               bt_self_notification_iterator *iterator)
 {
        struct lttng_live_stream_iterator_generic *s =
                        bt_self_notification_iterator_get_user_data(iterator);
-       struct bt_notification_iterator_next_method_return next_return;
+       bt_notification_iterator_next_method_return next_return;
 
        switch (s->type) {
        case LIVE_STREAM_TYPE_NO_STREAM:
@@ -900,7 +900,7 @@ struct bt_notification_iterator_next_method_return lttng_live_iterator_next(
 
 BT_HIDDEN
 enum bt_notification_iterator_status lttng_live_iterator_init(
-               struct bt_self_notification_iterator *it,
+               bt_self_notification_iterator *it,
                struct bt_private_port *port)
 {
        enum bt_notification_iterator_status ret =
@@ -948,17 +948,17 @@ error:
 }
 
 static
-struct bt_component_class_query_method_return lttng_live_query_list_sessions(
-               const struct bt_component_class *comp_class,
-               const struct bt_query_executor *query_exec,
-               struct bt_value *params)
+bt_component_class_query_method_return lttng_live_query_list_sessions(
+               const bt_component_class *comp_class,
+               const bt_query_executor *query_exec,
+               bt_value *params)
 {
-       struct bt_component_class_query_method_return query_ret = {
+       bt_component_class_query_method_return query_ret = {
                .result = NULL,
                .status = BT_QUERY_STATUS_OK,
        };
 
-       struct bt_value *url_value = NULL;
+       bt_value *url_value = NULL;
        const char *url;
        struct bt_live_viewer_connection *viewer_connection = NULL;
 
@@ -1004,12 +1004,12 @@ end:
 }
 
 BT_HIDDEN
-struct bt_component_class_query_method_return lttng_live_query(
-               const struct bt_component_class *comp_class,
-               const struct bt_query_executor *query_exec,
-               const char *object, struct bt_value *params)
+bt_component_class_query_method_return lttng_live_query(
+               const bt_component_class *comp_class,
+               const bt_query_executor *query_exec,
+               const char *object, bt_value *params)
 {
-       struct bt_component_class_query_method_return ret = {
+       bt_component_class_query_method_return ret = {
                .result = NULL,
                .status = BT_QUERY_STATUS_OK,
        };
@@ -1049,7 +1049,7 @@ void lttng_live_component_destroy_data(struct lttng_live_component *lttng_live)
 }
 
 BT_HIDDEN
-void lttng_live_component_finalize(struct bt_self_component *component)
+void lttng_live_component_finalize(bt_self_component *component)
 {
        void *data = bt_self_component_get_user_data(component);
 
@@ -1060,11 +1060,11 @@ void lttng_live_component_finalize(struct bt_self_component *component)
 }
 
 static
-struct lttng_live_component *lttng_live_component_create(struct bt_value *params,
-               struct bt_self_component *private_component)
+struct lttng_live_component *lttng_live_component_create(bt_value *params,
+               bt_self_component *private_component)
 {
        struct lttng_live_component *lttng_live;
-       struct bt_value *value = NULL;
+       bt_value *value = NULL;
        const char *url;
        enum bt_value_status ret;
 
@@ -1107,8 +1107,8 @@ end:
 
 BT_HIDDEN
 enum bt_component_status lttng_live_component_init(
-               struct bt_self_component *private_component,
-               struct bt_value *params, void *init_method_data)
+               bt_self_component *private_component,
+               bt_value *params, void *init_method_data)
 {
        struct lttng_live_component *lttng_live;
        enum bt_component_status ret = BT_COMPONENT_STATUS_OK;
@@ -1153,15 +1153,15 @@ error:
 
 BT_HIDDEN
 enum bt_component_status lttng_live_accept_port_connection(
-               struct bt_self_component *private_component,
+               bt_self_component *private_component,
                struct bt_private_port *self_private_port,
-               const struct bt_port *other_port)
+               const bt_port *other_port)
 {
        struct lttng_live_component *lttng_live =
                        bt_self_component_get_user_data(private_component);
-       struct bt_component *other_component;
+       bt_component *other_component;
        enum bt_component_status status = BT_COMPONENT_STATUS_OK;
-       const struct bt_port *self_port = bt_port_from_private(self_private_port);
+       const bt_port *self_port = bt_port_from_private(self_private_port);
 
        other_component = bt_port_get_component(other_port);
        bt_component_put_ref(other_component);  /* weak */
index 0beb0f1ef9df921efb956aa1750806b9e0b407fc..3021f78ab34e26e2b57a13c88ff5a03c024bf990 100644 (file)
@@ -72,7 +72,7 @@ enum bt_lttng_live_iterator_status lttng_live_update_clock_map(
        BT_ASSERT(count >= 0);
 
        for (i = 0; i < count; i++) {
-               const struct bt_clock_class *clock_class =
+               const bt_clock_class *clock_class =
                        bt_trace_get_clock_class_by_index(trace->trace, i);
 
                BT_ASSERT(clock_class);
index 17fc234de4f4371938614de8e9248468f9d5a8f4..2549875013a01c7bf39fdc3a9844ecd764f28027 100644 (file)
@@ -282,7 +282,7 @@ static void lttng_live_disconnect_viewer(struct bt_live_viewer_connection *viewe
        }
 }
 
-static void connection_release(struct bt_object *obj)
+static void connection_release(bt_object *obj)
 {
        struct bt_live_viewer_connection *conn =
                container_of(obj, struct bt_live_viewer_connection, obj);
@@ -291,15 +291,15 @@ static void connection_release(struct bt_object *obj)
 }
 
 static
-enum bt_value_status list_update_session(struct bt_value *results,
+enum bt_value_status list_update_session(bt_value *results,
                const struct lttng_viewer_session *session,
                bool *_found)
 {
        enum bt_value_status ret = BT_VALUE_STATUS_OK;
-       struct bt_value *map = NULL;
-       struct bt_value *hostname = NULL;
-       struct bt_value *session_name = NULL;
-       struct bt_value *btval = NULL;
+       bt_value *map = NULL;
+       bt_value *hostname = NULL;
+       bt_value *session_name = NULL;
+       bt_value *btval = NULL;
        int i, len;
        bool found = false;
 
@@ -386,12 +386,12 @@ end:
 }
 
 static
-enum bt_value_status list_append_session(struct bt_value *results,
+enum bt_value_status list_append_session(bt_value *results,
                GString *base_url,
                const struct lttng_viewer_session *session)
 {
        enum bt_value_status ret = BT_VALUE_STATUS_OK;
-       struct bt_value *map = NULL;
+       bt_value *map = NULL;
        GString *url = NULL;
        bool found = false;
 
@@ -538,9 +538,9 @@ end:
  */
 
 BT_HIDDEN
-struct bt_value *bt_live_viewer_connection_list_sessions(struct bt_live_viewer_connection *viewer_connection)
+bt_value *bt_live_viewer_connection_list_sessions(struct bt_live_viewer_connection *viewer_connection)
 {
-       struct bt_value *results = NULL;
+       bt_value *results = NULL;
        struct lttng_viewer_cmd cmd;
        struct lttng_viewer_list_sessions list;
        uint32_t i, sessions_count;
index bb9c2852f023055832e2e613774b37551d2d5ab8..90d2dcff608714c0cc4eaf39222a691d3b7fa053 100644 (file)
@@ -41,7 +41,7 @@
 struct lttng_live_component;
 
 struct bt_live_viewer_connection {
-       struct bt_object obj;
+       bt_object obj;
 
        GString *url;
 
@@ -82,6 +82,6 @@ struct bt_live_viewer_connection *
 
 void bt_live_viewer_connection_destroy(struct bt_live_viewer_connection *conn);
 
-struct bt_value *bt_live_viewer_connection_list_sessions(struct bt_live_viewer_connection *viewer_connection);
+bt_value *bt_live_viewer_connection_list_sessions(struct bt_live_viewer_connection *viewer_connection);
 
 #endif /* LTTNG_LIVE_VIEWER_CONNECTION_H */
index c7199d8b81df017bf5631f703d5e24f566c03c4c..ef5368c0be73d1003269b5fd872307d26d18b3e5 100644 (file)
 #include "clock-field.h"
 
 static
-int find_update_struct_clock_fields(FILE *err, struct bt_field_type *type,
-               const struct bt_clock_class *writer_clock_class);
+int find_update_struct_clock_fields(FILE *err, bt_field_type *type,
+               const bt_clock_class *writer_clock_class);
 static
-int find_update_array_clock_fields(FILE *err, struct bt_field_type *type,
-               const struct bt_clock_class *writer_clock_class);
+int find_update_array_clock_fields(FILE *err, bt_field_type *type,
+               const bt_clock_class *writer_clock_class);
 static
-int find_update_enum_clock_fields(FILE *err, struct bt_field_type *type,
-               const struct bt_clock_class *writer_clock_class);
+int find_update_enum_clock_fields(FILE *err, bt_field_type *type,
+               const bt_clock_class *writer_clock_class);
 static
-int find_update_sequence_clock_fields(FILE *err, struct bt_field_type *type,
-               const struct bt_clock_class *writer_clock_class);
+int find_update_sequence_clock_fields(FILE *err, bt_field_type *type,
+               const bt_clock_class *writer_clock_class);
 static
-int find_update_variant_clock_fields(FILE *err, struct bt_field_type *type,
-               const struct bt_clock_class *writer_clock_class);
+int find_update_variant_clock_fields(FILE *err, bt_field_type *type,
+               const bt_clock_class *writer_clock_class);
 
 static
 int copy_find_clock_int_field(FILE *err,
-               const struct bt_event *event, const struct bt_event *writer_event,
-               const struct bt_field *field, struct bt_field_type *type,
-               const struct bt_field *copy_field);
+               const bt_event *event, const bt_event *writer_event,
+               const bt_field *field, bt_field_type *type,
+               const bt_field *copy_field);
 static
 int copy_find_clock_struct_field(FILE *err,
-               const struct bt_event *event, const struct bt_event *writer_event,
-               const struct bt_field *field, struct bt_field_type *type,
-               const struct bt_field *copy_field);
+               const bt_event *event, const bt_event *writer_event,
+               const bt_field *field, bt_field_type *type,
+               const bt_field *copy_field);
 static
 int copy_find_clock_array_field(FILE *err,
-               const struct bt_event *event, const struct bt_event *writer_event,
-               const struct bt_field *field, struct bt_field_type *type,
-               const struct bt_field *copy_field);
+               const bt_event *event, const bt_event *writer_event,
+               const bt_field *field, bt_field_type *type,
+               const bt_field *copy_field);
 static
 int copy_find_clock_sequence_field(FILE *err,
-               const struct bt_event *event, const struct bt_event *writer_event,
-               const struct bt_field *field, struct bt_field_type *type,
-               const struct bt_field *copy_field);
+               const bt_event *event, const bt_event *writer_event,
+               const bt_field *field, bt_field_type *type,
+               const bt_field *copy_field);
 static
-int copy_find_clock_variant_field(FILE *err, const struct bt_event *event,
-               const struct bt_event *writer_event, const struct bt_field *field,
-               struct bt_field_type *type, const struct bt_field *copy_field);
+int copy_find_clock_variant_field(FILE *err, const bt_event *event,
+               const bt_event *writer_event, const bt_field *field,
+               bt_field_type *type, const bt_field *copy_field);
 static
-int copy_find_clock_enum_field(FILE *err, const struct bt_event *event,
-               const struct bt_event *writer_event, const struct bt_field *field,
-               struct bt_field_type *type, const struct bt_field *copy_field);
+int copy_find_clock_enum_field(FILE *err, const bt_event *event,
+               const bt_event *writer_event, const bt_field *field,
+               bt_field_type *type, const bt_field *copy_field);
 
 static
-int update_header_clock_int_field_type(FILE *err, struct bt_field_type *type,
-               const struct bt_clock_class *writer_clock_class)
+int update_header_clock_int_field_type(FILE *err, bt_field_type *type,
+               const bt_clock_class *writer_clock_class)
 {
-       const struct bt_clock_class *clock = NULL;
+       const bt_clock_class *clock = NULL;
        int ret;
 
        clock = bt_field_type_integer_get_mapped_clock_class(type);
@@ -111,8 +111,8 @@ end:
 }
 
 static
-int find_update_clock_fields(FILE *err, struct bt_field_type *type,
-               const struct bt_clock_class *writer_clock_class)
+int find_update_clock_fields(FILE *err, bt_field_type *type,
+               const bt_clock_class *writer_clock_class)
 {
        int ret;
 
@@ -146,11 +146,11 @@ int find_update_clock_fields(FILE *err, struct bt_field_type *type,
 }
 
 static
-int find_update_variant_clock_fields(FILE *err, struct bt_field_type *type,
-               const struct bt_clock_class *writer_clock_class)
+int find_update_variant_clock_fields(FILE *err, bt_field_type *type,
+               const bt_clock_class *writer_clock_class)
 {
        int count, i, ret;
-       struct bt_field_type *entry_type = NULL;
+       bt_field_type *entry_type = NULL;
 
        count = bt_field_type_variant_get_field_count(type);
        for (i = 0; i < count; i++) {
@@ -183,11 +183,11 @@ end:
 }
 
 static
-int find_update_struct_clock_fields(FILE *err, struct bt_field_type *type,
-               const struct bt_clock_class *writer_clock_class)
+int find_update_struct_clock_fields(FILE *err, bt_field_type *type,
+               const bt_clock_class *writer_clock_class)
 {
        int count, i, ret;
-       struct bt_field_type *entry_type = NULL;
+       bt_field_type *entry_type = NULL;
 
        count = bt_field_type_structure_get_field_count(type);
        for (i = 0; i < count; i++) {
@@ -219,11 +219,11 @@ end:
 }
 
 static
-int find_update_sequence_clock_fields(FILE *err, struct bt_field_type *type,
-               const struct bt_clock_class *writer_clock_class)
+int find_update_sequence_clock_fields(FILE *err, bt_field_type *type,
+               const bt_clock_class *writer_clock_class)
 {
        int ret;
-       struct bt_field_type *entry_type = NULL;
+       bt_field_type *entry_type = NULL;
 
        entry_type = bt_field_type_sequence_get_element_type(type);
        BT_ASSERT(entry_type);
@@ -245,11 +245,11 @@ end:
 }
 
 static
-int find_update_array_clock_fields(FILE *err, struct bt_field_type *type,
-               const struct bt_clock_class *writer_clock_class)
+int find_update_array_clock_fields(FILE *err, bt_field_type *type,
+               const bt_clock_class *writer_clock_class)
 {
        int ret = 0;
-       struct bt_field_type *entry_type = NULL;
+       bt_field_type *entry_type = NULL;
 
        entry_type = bt_field_type_array_get_element_type(type);
        BT_ASSERT(entry_type);
@@ -267,11 +267,11 @@ end:
 }
 
 static
-int find_update_enum_clock_fields(FILE *err, struct bt_field_type *type,
-               const struct bt_clock_class *writer_clock_class)
+int find_update_enum_clock_fields(FILE *err, bt_field_type *type,
+               const bt_clock_class *writer_clock_class)
 {
        int ret;
-       struct bt_field_type *entry_type = NULL;
+       bt_field_type *entry_type = NULL;
 
        entry_type = bt_field_type_enumeration_get_container_type(type);
        BT_ASSERT(entry_type);
@@ -293,12 +293,12 @@ end:
 }
 
 BT_HIDDEN
-struct bt_field_type *override_header_type(FILE *err,
-               struct bt_field_type *type,
-               const struct bt_trace *writer_trace)
+bt_field_type *override_header_type(FILE *err,
+               bt_field_type *type,
+               const bt_trace *writer_trace)
 {
-       struct bt_field_type *new_type = NULL;
-       const struct bt_clock_class *writer_clock_class = NULL;
+       bt_field_type *new_type = NULL;
+       const bt_clock_class *writer_clock_class = NULL;
        int ret;
 
        /* FIXME multi-clock? */
@@ -334,9 +334,9 @@ end:
 }
 
 static
-int copy_float_field(FILE *err, const struct bt_field *field,
-               struct bt_field_type *type,
-               const struct bt_field *copy_field)
+int copy_float_field(FILE *err, const bt_field *field,
+               bt_field_type *type,
+               const bt_field *copy_field)
 {
        double value;
        int ret;
@@ -364,9 +364,9 @@ end:
 }
 
 static
-int copy_string_field(FILE *err, const struct bt_field *field,
-               struct bt_field_type *type,
-               const struct bt_field *copy_field)
+int copy_string_field(FILE *err, const bt_field *field,
+               bt_field_type *type,
+               const bt_field *copy_field)
 {
        const char *value;
        int ret;
@@ -394,11 +394,11 @@ end:
 }
 
 BT_HIDDEN
-int copy_override_field(FILE *err, const struct bt_event *event,
-               const struct bt_event *writer_event, const struct bt_field *field,
-               const struct bt_field *copy_field)
+int copy_override_field(FILE *err, const bt_event *event,
+               const bt_event *writer_event, const bt_field *field,
+               const bt_field *copy_field)
 {
-       struct bt_field_type *type = NULL;
+       bt_field_type *type = NULL;
        int ret = 0;
 
        type = bt_field_get_type(field);
@@ -447,12 +447,12 @@ int copy_override_field(FILE *err, const struct bt_event *event,
 }
 
 static
-int copy_find_clock_enum_field(FILE *err, const struct bt_event *event,
-               const struct bt_event *writer_event, const struct bt_field *field,
-               struct bt_field_type *type, const struct bt_field *copy_field)
+int copy_find_clock_enum_field(FILE *err, const bt_event *event,
+               const bt_event *writer_event, const bt_field *field,
+               bt_field_type *type, const bt_field *copy_field)
 {
        int ret;
-       const struct bt_field *container = NULL, *copy_container = NULL;
+       const bt_field *container = NULL, *copy_container = NULL;
 
        container = bt_field_enumeration_get_container(field);
        BT_ASSERT(container);
@@ -480,13 +480,13 @@ end:
 }
 
 static
-int copy_find_clock_variant_field(FILE *err, const struct bt_event *event,
-               const struct bt_event *writer_event, const struct bt_field *field,
-               struct bt_field_type *type, const struct bt_field *copy_field)
+int copy_find_clock_variant_field(FILE *err, const bt_event *event,
+               const bt_event *writer_event, const bt_field *field,
+               bt_field_type *type, const bt_field *copy_field)
 {
        int ret;
-       const struct bt_field *tag = NULL;
-       const struct bt_field *variant_field = NULL, *copy_variant_field = NULL;
+       const bt_field *tag = NULL;
+       const bt_field *variant_field = NULL, *copy_variant_field = NULL;
 
        tag = bt_field_variant_get_tag(field);
        BT_ASSERT(tag);
@@ -521,14 +521,14 @@ end:
 
 static
 int copy_find_clock_sequence_field(FILE *err,
-               const struct bt_event *event, const struct bt_event *writer_event,
-               const struct bt_field *field, struct bt_field_type *type,
-               const struct bt_field *copy_field)
+               const bt_event *event, const bt_event *writer_event,
+               const bt_field *field, bt_field_type *type,
+               const bt_field *copy_field)
 {
        int ret;
        uint64_t i, count;
-       const struct bt_field *length_field = NULL;
-       const struct bt_field *entry_field = NULL, *entry_copy = NULL;
+       const bt_field *length_field = NULL;
+       const bt_field *entry_field = NULL, *entry_copy = NULL;
 
        length_field = bt_field_sequence_get_length(field);
        BT_ASSERT(length_field);
@@ -580,12 +580,12 @@ end:
 
 static
 int copy_find_clock_array_field(FILE *err,
-               const struct bt_event *event, const struct bt_event *writer_event,
-               const struct bt_field *field, struct bt_field_type *type,
-               const struct bt_field *copy_field)
+               const bt_event *event, const bt_event *writer_event,
+               const bt_field *field, bt_field_type *type,
+               const bt_field *copy_field)
 {
        int ret, count, i;
-       const struct bt_field *entry_field = NULL, *entry_copy = NULL;
+       const bt_field *entry_field = NULL, *entry_copy = NULL;
 
        count = bt_field_type_array_get_length(type);
        for (i = 0; i < count; i++) {
@@ -623,13 +623,13 @@ end:
 
 static
 int copy_find_clock_struct_field(FILE *err,
-               const struct bt_event *event, const struct bt_event *writer_event,
-               const struct bt_field *field, struct bt_field_type *type,
-               const struct bt_field *copy_field)
+               const bt_event *event, const bt_event *writer_event,
+               const bt_field *field, bt_field_type *type,
+               const bt_field *copy_field)
 {
        int count, i, ret;
-       struct bt_field_type *entry_type = NULL;
-       const struct bt_field *entry_field = NULL, *entry_copy = NULL;
+       bt_field_type *entry_type = NULL;
+       const bt_field *entry_field = NULL, *entry_copy = NULL;
 
        count = bt_field_type_structure_get_field_count(type);
        for (i = 0; i < count; i++) {
@@ -675,9 +675,9 @@ end:
 }
 
 static
-int set_int_value(FILE *err, const struct bt_field *field,
-               const struct bt_field *copy_field,
-               struct bt_field_type *type)
+int set_int_value(FILE *err, const bt_field *field,
+               const bt_field *copy_field,
+               bt_field_type *type)
 {
        uint64_t uvalue;
        int64_t value;
@@ -720,11 +720,11 @@ end:
        return ret;
 }
 
-const struct bt_clock_class *stream_class_get_clock_class(FILE *err,
-               const struct bt_stream_class *stream_class)
+const bt_clock_class *stream_class_get_clock_class(FILE *err,
+               const bt_stream_class *stream_class)
 {
-       const struct bt_trace *trace = NULL;
-       const struct bt_clock_class *clock_class = NULL;
+       const bt_trace *trace = NULL;
+       const bt_clock_class *clock_class = NULL;
 
        trace = bt_stream_class_get_trace(stream_class);
        BT_ASSERT(trace);
@@ -737,11 +737,11 @@ const struct bt_clock_class *stream_class_get_clock_class(FILE *err,
        return clock_class;
 }
 
-const struct bt_clock_class *event_get_clock_class(FILE *err, const struct bt_event *event)
+const bt_clock_class *event_get_clock_class(FILE *err, const bt_event *event)
 {
-       const struct bt_event_class *event_class = NULL;
-       const struct bt_stream_class *stream_class = NULL;
-       const struct bt_clock_class *clock_class = NULL;
+       const bt_event_class *event_class = NULL;
+       const bt_stream_class *stream_class = NULL;
+       const bt_clock_class *clock_class = NULL;
 
        event_class = bt_event_get_class(event);
        BT_ASSERT(event_class);
@@ -758,12 +758,12 @@ const struct bt_clock_class *event_get_clock_class(FILE *err, const struct bt_ev
 
 static
 int copy_find_clock_int_field(FILE *err,
-               const struct bt_event *event, const struct bt_event *writer_event,
-               const struct bt_field *field, struct bt_field_type *type,
-               const struct bt_field *copy_field)
+               const bt_event *event, const bt_event *writer_event,
+               const bt_field *field, bt_field_type *type,
+               const bt_field *copy_field)
 {
-       const struct bt_clock_class *clock_class = NULL, *writer_clock_class = NULL;
-       struct bt_clock_value *clock_value = NULL, *writer_clock_value = NULL;
+       const bt_clock_class *clock_class = NULL, *writer_clock_class = NULL;
+       bt_clock_value *clock_value = NULL, *writer_clock_value = NULL;
        uint64_t value;
        int ret;
 
index b3643501cf087ed85d5e64e58b24aa5d58587b30..c5781aa3b27d274d3e3ece6826f60d8cdf7e9fdc 100644 (file)
@@ -36,22 +36,22 @@ extern "C" {
 #endif
 
 BT_HIDDEN
-struct bt_field_type *override_header_type(FILE *err,
-               struct bt_field_type *type,
-               const struct bt_trace *writer_trace);
+bt_field_type *override_header_type(FILE *err,
+               bt_field_type *type,
+               const bt_trace *writer_trace);
 
 BT_HIDDEN
-int copy_override_field(FILE *err, const struct bt_event *event,
-               const struct bt_event *writer_event, const struct bt_field *field,
-               const struct bt_field *copy_field);
+int copy_override_field(FILE *err, const bt_event *event,
+               const bt_event *writer_event, const bt_field *field,
+               const bt_field *copy_field);
 
 BT_HIDDEN
-const struct bt_clock_class *stream_class_get_clock_class(FILE *err,
-               const struct bt_stream_class *stream_class);
+const bt_clock_class *stream_class_get_clock_class(FILE *err,
+               const bt_stream_class *stream_class);
 
 BT_HIDDEN
-const struct bt_clock_class *event_get_clock_class(FILE *err,
-               const struct bt_event *event);
+const bt_clock_class *event_get_clock_class(FILE *err,
+               const bt_event *event);
 
 #ifdef __cplusplus
 }
index 3ce5663fbf8ee433382346970a251b4359266ebf..140a7ad8797c9fd5c7eedc71dd253af935cd0573 100644 (file)
 #include "clock-field.h"
 
 BT_HIDDEN
-const struct bt_clock_class *ctf_copy_clock_class(FILE *err,
-               const struct bt_clock_class *clock_class)
+const bt_clock_class *ctf_copy_clock_class(FILE *err,
+               const bt_clock_class *clock_class)
 {
        int64_t offset, offset_s;
        int int_ret;
        uint64_t u64_ret;
        const char *name, *description;
-       const struct bt_clock_class *writer_clock_class = NULL;
+       const bt_clock_class *writer_clock_class = NULL;
 
        BT_ASSERT(err && clock_class);
 
@@ -95,9 +95,9 @@ end:
 
 BT_HIDDEN
 enum bt_component_status ctf_copy_clock_classes(FILE *err,
-               const struct bt_trace *writer_trace,
-               const struct bt_stream_class *writer_stream_class,
-               const struct bt_trace *trace)
+               const bt_trace *writer_trace,
+               const bt_stream_class *writer_stream_class,
+               const bt_trace *trace)
 {
        enum bt_component_status ret;
        int int_ret, clock_class_count, i;
@@ -105,8 +105,8 @@ enum bt_component_status ctf_copy_clock_classes(FILE *err,
        clock_class_count = bt_trace_get_clock_class_count(trace);
 
        for (i = 0; i < clock_class_count; i++) {
-               const struct bt_clock_class *writer_clock_class;
-               const struct bt_clock_class *clock_class =
+               const bt_clock_class *writer_clock_class;
+               const bt_clock_class *clock_class =
                        bt_trace_get_clock_class_by_index(trace, i);
 
                BT_ASSERT(clock_class);
@@ -140,8 +140,8 @@ end:
 }
 
 static
-void replace_clock_classes(const struct bt_trace *trace_copy,
-               struct bt_field_type *field_type)
+void replace_clock_classes(const bt_trace *trace_copy,
+               bt_field_type *field_type)
 {
        int ret;
 
@@ -151,9 +151,9 @@ void replace_clock_classes(const struct bt_trace *trace_copy,
        switch (bt_field_type_get_type_id(field_type)) {
        case BT_FIELD_TYPE_ID_INTEGER:
        {
-               const struct bt_clock_class *mapped_clock_class =
+               const bt_clock_class *mapped_clock_class =
                        bt_field_type_integer_get_mapped_clock_class(field_type);
-               const struct bt_clock_class *clock_class_copy = NULL;
+               const bt_clock_class *clock_class_copy = NULL;
                const char *name;
 
                if (!mapped_clock_class) {
@@ -176,7 +176,7 @@ void replace_clock_classes(const struct bt_trace *trace_copy,
        case BT_FIELD_TYPE_ID_ARRAY:
        case BT_FIELD_TYPE_ID_SEQUENCE:
        {
-               struct bt_field_type *subtype = NULL;
+               bt_field_type *subtype = NULL;
 
                switch (bt_field_type_get_type_id(field_type)) {
                case BT_FIELD_TYPE_ID_ENUM:
@@ -210,7 +210,7 @@ void replace_clock_classes(const struct bt_trace *trace_copy,
 
                for (i = 0; i < count; i++) {
                        const char *name;
-                       struct bt_field_type *member_type;
+                       bt_field_type *member_type;
 
                        ret = bt_field_type_structure_get_field_by_index(
                                field_type, &name, &member_type, i);
@@ -229,7 +229,7 @@ void replace_clock_classes(const struct bt_trace *trace_copy,
 
                for (i = 0; i < count; i++) {
                        const char *name;
-                       struct bt_field_type *member_type;
+                       bt_field_type *member_type;
 
                        ret = bt_field_type_variant_get_field_by_index(
                                field_type, &name, &member_type, i);
@@ -246,12 +246,12 @@ void replace_clock_classes(const struct bt_trace *trace_copy,
 }
 
 BT_HIDDEN
-const struct bt_event_class *ctf_copy_event_class(FILE *err,
-               const struct bt_trace *trace_copy,
-               const struct bt_event_class *event_class)
+const bt_event_class *ctf_copy_event_class(FILE *err,
+               const bt_trace *trace_copy,
+               const bt_event_class *event_class)
 {
-       const struct bt_event_class *writer_event_class = NULL;
-       struct bt_field_type *context = NULL, *payload_type = NULL;
+       const bt_event_class *writer_event_class = NULL;
+       bt_field_type *context = NULL, *payload_type = NULL;
        const char *name;
        int ret;
        int64_t id;
@@ -296,7 +296,7 @@ const struct bt_event_class *ctf_copy_event_class(FILE *err,
 
        payload_type = bt_event_class_get_payload_type(event_class);
        if (payload_type) {
-               struct bt_field_type *ft_copy =
+               bt_field_type *ft_copy =
                        bt_field_type_copy(payload_type);
 
                if (!ft_copy) {
@@ -315,7 +315,7 @@ const struct bt_event_class *ctf_copy_event_class(FILE *err,
 
        context = bt_event_class_get_context_type(event_class);
        if (context) {
-               struct bt_field_type *ft_copy =
+               bt_field_type *ft_copy =
                        bt_field_type_copy(context);
 
                if (!ft_copy) {
@@ -343,13 +343,13 @@ end:
 
 BT_HIDDEN
 enum bt_component_status ctf_copy_event_classes(FILE *err,
-               const struct bt_stream_class *stream_class,
-               const struct bt_stream_class *writer_stream_class)
+               const bt_stream_class *stream_class,
+               const bt_stream_class *writer_stream_class)
 {
        enum bt_component_status ret = BT_COMPONENT_STATUS_OK;
-       const struct bt_event_class *event_class = NULL, *writer_event_class = NULL;
+       const bt_event_class *event_class = NULL, *writer_event_class = NULL;
        int count, i;
-       const struct bt_trace *writer_trace =
+       const bt_trace *writer_trace =
                bt_stream_class_get_trace(writer_stream_class);
 
        BT_ASSERT(writer_trace);
@@ -409,14 +409,14 @@ end:
 }
 
 BT_HIDDEN
-const struct bt_stream_class *ctf_copy_stream_class(FILE *err,
-               const struct bt_stream_class *stream_class,
-               const struct bt_trace *writer_trace,
+const bt_stream_class *ctf_copy_stream_class(FILE *err,
+               const bt_stream_class *stream_class,
+               const bt_trace *writer_trace,
                bool override_ts64)
 {
-       struct bt_field_type *type = NULL;
-       struct bt_field_type *type_copy = NULL;
-       const struct bt_stream_class *writer_stream_class = NULL;
+       bt_field_type *type = NULL;
+       bt_field_type *type_copy = NULL;
+       const bt_stream_class *writer_stream_class = NULL;
        int ret_int;
        const char *name = bt_stream_class_get_name(stream_class);
 
@@ -451,7 +451,7 @@ const struct bt_stream_class *ctf_copy_stream_class(FILE *err,
                ret_int = bt_trace_get_clock_class_count(writer_trace);
                BT_ASSERT(ret_int >= 0);
                if (override_ts64 && ret_int > 0) {
-                       struct bt_field_type *new_event_header_type;
+                       bt_field_type *new_event_header_type;
 
                        new_event_header_type = override_header_type(err, type_copy,
                                        writer_trace);
@@ -510,10 +510,10 @@ end:
 }
 
 BT_HIDDEN
-int ctf_stream_copy_packet_header(FILE *err, const struct bt_packet *packet,
-               const struct bt_stream *writer_stream)
+int ctf_stream_copy_packet_header(FILE *err, const bt_packet *packet,
+               const bt_stream *writer_stream)
 {
-       const struct bt_field *packet_header = NULL, *writer_packet_header = NULL;
+       const bt_field *packet_header = NULL, *writer_packet_header = NULL;
        int ret = 0;
 
        packet_header = bt_packet_get_header(packet);
@@ -545,10 +545,10 @@ end:
 }
 
 BT_HIDDEN
-int ctf_packet_copy_header(FILE *err, const struct bt_packet *packet,
-               const struct bt_packet *writer_packet)
+int ctf_packet_copy_header(FILE *err, const bt_packet *packet,
+               const bt_packet *writer_packet)
 {
-       const struct bt_field *packet_header = NULL, *writer_packet_header = NULL;
+       const bt_field *packet_header = NULL, *writer_packet_header = NULL;
        int ret = 0;
 
        packet_header = bt_packet_get_header(packet);
@@ -579,10 +579,10 @@ end:
 }
 
 BT_HIDDEN
-int ctf_stream_copy_packet_context(FILE *err, const struct bt_packet *packet,
-               const struct bt_stream *writer_stream)
+int ctf_stream_copy_packet_context(FILE *err, const bt_packet *packet,
+               const bt_stream *writer_stream)
 {
-       const struct bt_field *packet_context = NULL, *writer_packet_context = NULL;
+       const bt_field *packet_context = NULL, *writer_packet_context = NULL;
        int ret = 0;
 
        packet_context = bt_packet_get_context(packet);
@@ -614,11 +614,11 @@ end:
 }
 
 BT_HIDDEN
-int ctf_packet_copy_context(FILE *err, const struct bt_packet *packet,
-               const struct bt_stream *writer_stream,
-               const struct bt_packet *writer_packet)
+int ctf_packet_copy_context(FILE *err, const bt_packet *packet,
+               const bt_stream *writer_stream,
+               const bt_packet *writer_packet)
 {
-       const struct bt_field *packet_context = NULL, *writer_packet_context = NULL;
+       const bt_field *packet_context = NULL, *writer_packet_context = NULL;
        int ret = 0;
 
        packet_context = bt_packet_get_context(packet);
@@ -649,16 +649,16 @@ end:
 }
 
 BT_HIDDEN
-int ctf_copy_event_header(FILE *err, const struct bt_event *event,
-               const struct bt_event_class *writer_event_class,
-               const struct bt_event *writer_event,
-               const struct bt_field *event_header)
+int ctf_copy_event_header(FILE *err, const bt_event *event,
+               const bt_event_class *writer_event_class,
+               const bt_event *writer_event,
+               const bt_field *event_header)
 {
-       const struct bt_clock_class *clock_class = NULL, *writer_clock_class = NULL;
-       struct bt_clock_value *clock_value = NULL, *writer_clock_value = NULL;
+       const bt_clock_class *clock_class = NULL, *writer_clock_class = NULL;
+       bt_clock_value *clock_value = NULL, *writer_clock_value = NULL;
 
        int ret;
-       const struct bt_field *writer_event_header = NULL;
+       const bt_field *writer_event_header = NULL;
        uint64_t value;
 
        clock_class = event_get_clock_class(err, event);
@@ -722,11 +722,11 @@ end:
 }
 
 static
-const struct bt_trace *event_class_get_trace(FILE *err,
-               const struct bt_event_class *event_class)
+const bt_trace *event_class_get_trace(FILE *err,
+               const bt_event_class *event_class)
 {
-       const struct bt_trace *trace = NULL;
-       const struct bt_stream_class *stream_class = NULL;
+       const bt_trace *trace = NULL;
+       const bt_stream_class *stream_class = NULL;
 
        stream_class = bt_event_class_get_stream_class(event_class);
        BT_ASSERT(stream_class);
@@ -739,13 +739,13 @@ const struct bt_trace *event_class_get_trace(FILE *err,
 }
 
 BT_HIDDEN
-const struct bt_event *ctf_copy_event(FILE *err, const struct bt_event *event,
-               const struct bt_event_class *writer_event_class,
+const bt_event *ctf_copy_event(FILE *err, const bt_event *event,
+               const bt_event_class *writer_event_class,
                bool override_ts64)
 {
-       const struct bt_event *writer_event = NULL;
-       const struct bt_field *field = NULL, *copy_field = NULL;
-       const struct bt_trace *writer_trace = NULL;
+       const bt_event *writer_event = NULL;
+       const bt_field *field = NULL, *copy_field = NULL;
+       const bt_trace *writer_trace = NULL;
        int ret;
 
        writer_event = bt_event_create(writer_event_class);
@@ -855,12 +855,12 @@ end:
 }
 
 BT_HIDDEN
-enum bt_component_status ctf_copy_trace(FILE *err, const struct bt_trace *trace,
-               const struct bt_trace *writer_trace)
+enum bt_component_status ctf_copy_trace(FILE *err, const bt_trace *trace,
+               const bt_trace *writer_trace)
 {
        enum bt_component_status ret = BT_COMPONENT_STATUS_OK;
        int field_count, i, int_ret;
-       struct bt_field_type *header_type = NULL;
+       bt_field_type *header_type = NULL;
        enum bt_byte_order order;
        const char *trace_name;
        const unsigned char *trace_uuid;
@@ -869,7 +869,7 @@ enum bt_component_status ctf_copy_trace(FILE *err, const struct bt_trace *trace,
        for (i = 0; i < field_count; i++) {
                int ret_int;
                const char *name;
-               struct bt_value *value = NULL;
+               bt_value *value = NULL;
 
                name = bt_trace_get_environment_field_name_by_index(
                        trace, i);
index c57f488b06e93186a3999e283d6aae228a9b6449..d7bdd02675598f65831bf5620f27a69aebd4fd0a 100644 (file)
@@ -40,8 +40,8 @@ extern "C" {
  *
  * Returns NULL on error.
  */
-const struct bt_clock_class *ctf_copy_clock_class(FILE *err,
-               const struct bt_clock_class *clock_class);
+const bt_clock_class *ctf_copy_clock_class(FILE *err,
+               const bt_clock_class *clock_class);
 
 /*
  * Copy all the clock classes from the input trace and add them to the writer
@@ -52,9 +52,9 @@ const struct bt_clock_class *ctf_copy_clock_class(FILE *err,
  */
 BT_HIDDEN
 enum bt_component_status ctf_copy_clock_classes(FILE *err,
-               const struct bt_trace *writer_trace,
-               const struct bt_stream_class *writer_stream_class,
-               const struct bt_trace *trace);
+               const bt_trace *writer_trace,
+               const bt_stream_class *writer_stream_class,
+               const bt_trace *trace);
 
 /*
  * Create a copy of the event class passed in parameter.
@@ -62,9 +62,9 @@ enum bt_component_status ctf_copy_clock_classes(FILE *err,
  * Returns NULL on error.
  */
 BT_HIDDEN
-const struct bt_event_class *ctf_copy_event_class(FILE *err,
-               const struct bt_trace *trace_copy,
-               const struct bt_event_class *event_class);
+const bt_event_class *ctf_copy_event_class(FILE *err,
+               const bt_trace *trace_copy,
+               const bt_event_class *event_class);
 
 /*
  * Copy all the event classes from the input stream class and add them to the
@@ -75,8 +75,8 @@ const struct bt_event_class *ctf_copy_event_class(FILE *err,
  */
 BT_HIDDEN
 enum bt_component_status ctf_copy_event_classes(FILE *err,
-               const struct bt_stream_class *stream_class,
-               const struct bt_stream_class *writer_stream_class);
+               const bt_stream_class *stream_class,
+               const bt_stream_class *writer_stream_class);
 
 /*
  * Create a copy of the stream class passed in parameter.
@@ -84,9 +84,9 @@ enum bt_component_status ctf_copy_event_classes(FILE *err,
  * Returns NULL or error.
  */
 BT_HIDDEN
-const struct bt_stream_class *ctf_copy_stream_class(FILE *err,
-               const struct bt_stream_class *stream_class,
-               const struct bt_trace *writer_trace,
+const bt_stream_class *ctf_copy_stream_class(FILE *err,
+               const bt_stream_class *stream_class,
+               const bt_trace *writer_trace,
                bool override_ts64);
 
 /*
@@ -98,9 +98,9 @@ const struct bt_stream_class *ctf_copy_stream_class(FILE *err,
  */
 BT_HIDDEN
 enum bt_component_status ctf_copy_packet_context_field(FILE *err,
-               const struct bt_field *field, const char *field_name,
-               const struct bt_field *writer_packet_context,
-               struct bt_field_type *writer_packet_context_type);
+               const bt_field *field, const char *field_name,
+               const bt_field *writer_packet_context,
+               bt_field_type *writer_packet_context_type);
 
 
 /*
@@ -110,8 +110,8 @@ enum bt_component_status ctf_copy_packet_context_field(FILE *err,
  * Returns 0 on success or -1 on error.
  */
 BT_HIDDEN
-int ctf_stream_copy_packet_header(FILE *err, const struct bt_packet *packet,
-               const struct bt_stream *writer_stream);
+int ctf_stream_copy_packet_header(FILE *err, const bt_packet *packet,
+               const bt_stream *writer_stream);
 
 /*
  * Copy the packet_header from the packet passed in parameter and assign it
@@ -120,8 +120,8 @@ int ctf_stream_copy_packet_header(FILE *err, const struct bt_packet *packet,
  * Returns 0 on success or -1 on error.
  */
 BT_HIDDEN
-int ctf_packet_copy_header(FILE *err, const struct bt_packet *packet,
-               const struct bt_packet *writer_packet);
+int ctf_packet_copy_header(FILE *err, const bt_packet *packet,
+               const bt_packet *writer_packet);
 
 /*
  * Copy all the field values of the packet context from the packet passed in
@@ -130,8 +130,8 @@ int ctf_packet_copy_header(FILE *err, const struct bt_packet *packet,
  * Returns 0 on success or -1 on error.
  */
 BT_HIDDEN
-int ctf_stream_copy_packet_context(FILE *err, const struct bt_packet *packet,
-               const struct bt_stream *writer_stream);
+int ctf_stream_copy_packet_context(FILE *err, const bt_packet *packet,
+               const bt_stream *writer_stream);
 
 /*
  * Copy all the field values of the packet context from the packet passed in
@@ -140,9 +140,9 @@ int ctf_stream_copy_packet_context(FILE *err, const struct bt_packet *packet,
  * Returns 0 on success or -1 on error.
  */
 BT_HIDDEN
-int ctf_packet_copy_context(FILE *err, const struct bt_packet *packet,
-               const struct bt_stream *writer_stream,
-               const struct bt_packet *writer_packet);
+int ctf_packet_copy_context(FILE *err, const bt_packet *packet,
+               const bt_stream *writer_stream,
+               const bt_packet *writer_packet);
 
 /*
  * Create and return a copy of the event passed in parameter. The caller has to
@@ -151,8 +151,8 @@ int ctf_packet_copy_context(FILE *err, const struct bt_packet *packet,
  * Returns NULL on error.
  */
 BT_HIDDEN
-const struct bt_event *ctf_copy_event(FILE *err, const struct bt_event *event,
-               const struct bt_event_class *writer_event_class,
+const bt_event *ctf_copy_event(FILE *err, const bt_event *event,
+               const bt_event_class *writer_event_class,
                bool override_ts64);
 
 /*
@@ -161,10 +161,10 @@ const struct bt_event *ctf_copy_event(FILE *err, const struct bt_event *event,
  * Returns 0 on success, -1 on error.
  */
 BT_HIDDEN
-int ctf_copy_event_header(FILE *err, const struct bt_event *event,
-               const struct bt_event_class *writer_event_class,
-               const struct bt_event *writer_event,
-               const struct bt_field *event_header);
+int ctf_copy_event_header(FILE *err, const bt_event *event,
+               const bt_event_class *writer_event_class,
+               const bt_event *writer_event,
+               const bt_field *event_header);
 
 /*
  * Copy the environment and the packet header from the input trace to the
@@ -174,8 +174,8 @@ int ctf_copy_event_header(FILE *err, const struct bt_event *event,
  * error.
  */
 BT_HIDDEN
-enum bt_component_status ctf_copy_trace(FILE *err, const struct bt_trace *trace,
-               const struct bt_trace *writer_trace);
+enum bt_component_status ctf_copy_trace(FILE *err, const bt_trace *trace,
+               const bt_trace *writer_trace);
 
 #ifdef __cplusplus
 }
index 0a4dbf1dc46d7a989fb5146f5cbf2897de995914..71ce63c151f7cc6cbf146d80fa60e890a120af4e 100644 (file)
 #include "debug-info.h"
 
 static
-const struct bt_stream *insert_new_stream(
+const bt_stream *insert_new_stream(
                struct debug_info_iterator *debug_it,
-               const struct bt_stream *stream,
+               const bt_stream *stream,
                struct debug_info_trace *di_trace);
 
 static
-void unref_stream(const struct bt_stream *stream)
+void unref_stream(const bt_stream *stream)
 {
        bt_stream_put_ref(stream);
 }
 
 static
-void unref_packet(const struct bt_packet *packet)
+void unref_packet(const bt_packet *packet)
 {
        bt_packet_put_ref(packet);
 }
 
 static
-void unref_stream_class(const struct bt_stream_class *stream_class)
+void unref_stream_class(const bt_stream_class *stream_class)
 {
        bt_stream_class_put_ref(stream_class);
 }
@@ -73,11 +73,11 @@ void destroy_stream_state_key(gpointer key)
 }
 
 static
-const struct bt_field *get_payload_field(FILE *err,
-               const struct bt_event *event, const char *field_name)
+const bt_field *get_payload_field(FILE *err,
+               const bt_event *event, const char *field_name)
 {
-       const struct bt_field *field = NULL, *payload = NULL;
-       const struct bt_field_class *payload_class = NULL;
+       const bt_field *field = NULL, *payload = NULL;
+       const bt_field_class *payload_class = NULL;
 
        payload = bt_event_get_payload(event, NULL);
        BT_ASSERT(payload);
@@ -100,11 +100,11 @@ end:
 }
 
 static
-const struct bt_field *get_stream_event_context_field(FILE *err,
-               const struct bt_event *event, const char *field_name)
+const bt_field *get_stream_event_context_field(FILE *err,
+               const bt_event *event, const char *field_name)
 {
-       const struct bt_field *field = NULL, *sec = NULL;
-       const struct bt_field_class *sec_class = NULL;
+       const bt_field *field = NULL, *sec = NULL;
+       const bt_field_class *sec_class = NULL;
 
        sec = bt_event_get_stream_event_context(event);
        if (!sec) {
@@ -130,12 +130,12 @@ end:
 
 BT_HIDDEN
 int get_stream_event_context_unsigned_int_field_value(FILE *err,
-               const struct bt_event *event, const char *field_name,
+               const bt_event *event, const char *field_name,
                uint64_t *value)
 {
        int ret;
-       const struct bt_field *field = NULL;
-       const struct bt_field_class *field_class = NULL;
+       const bt_field *field = NULL;
+       const bt_field_class *field_class = NULL;
 
        field = get_stream_event_context_field(err, event, field_name);
        if (!field) {
@@ -174,11 +174,11 @@ end:
 }
 
 BT_HIDDEN
-int get_stream_event_context_int_field_value(FILE *err, const struct bt_event *event,
+int get_stream_event_context_int_field_value(FILE *err, const bt_event *event,
                const char *field_name, int64_t *value)
 {
-       const struct bt_field *field = NULL;
-       const struct bt_field_class *field_class = NULL;
+       const bt_field *field = NULL;
+       const bt_field_class *field_class = NULL;
        int ret;
 
        field = get_stream_event_context_field(err, event, field_name);
@@ -213,11 +213,11 @@ end:
 
 BT_HIDDEN
 int get_payload_unsigned_int_field_value(FILE *err,
-               const struct bt_event *event, const char *field_name,
+               const bt_event *event, const char *field_name,
                uint64_t *value)
 {
-       const struct bt_field *field = NULL;
-       const struct bt_field_class *field_class = NULL;
+       const bt_field *field = NULL;
+       const bt_field_class *field_class = NULL;
        int ret;
 
        field = get_payload_field(err, event, field_name);
@@ -258,11 +258,11 @@ end:
 }
 
 BT_HIDDEN
-int get_payload_int_field_value(FILE *err, const struct bt_event *event,
+int get_payload_int_field_value(FILE *err, const bt_event *event,
                const char *field_name, int64_t *value)
 {
-       const struct bt_field *field = NULL;
-       const struct bt_field_class *field_class = NULL;
+       const bt_field *field = NULL;
+       const bt_field_class *field_class = NULL;
        int ret;
 
        field = get_payload_field(err, event, field_name);
@@ -303,11 +303,11 @@ end:
 
 BT_HIDDEN
 int get_payload_string_field_value(FILE *err,
-               const struct bt_event *event, const char *field_name,
+               const bt_event *event, const char *field_name,
                const char **value)
 {
-       const struct bt_field *field = NULL;
-       const struct bt_field_class *field_class = NULL;
+       const bt_field *field = NULL;
+       const bt_field_class *field_class = NULL;
        int ret;
 
        /*
@@ -347,12 +347,12 @@ end:
 
 BT_HIDDEN
 int get_payload_build_id_field_value(FILE *err,
-               const struct bt_event *event, const char *field_name,
+               const bt_event *event, const char *field_name,
                uint8_t **build_id, uint64_t *build_id_len)
 {
-       const struct bt_field *field = NULL, *seq_len = NULL;
-       const struct bt_field_class *field_class = NULL;
-       const struct bt_field *seq_field = NULL;
+       const bt_field *field = NULL, *seq_len = NULL;
+       const bt_field_class *field_class = NULL;
+       const bt_field *seq_field = NULL;
        uint64_t i;
        int ret;
 
@@ -424,7 +424,7 @@ end:
 
 static
 struct debug_info *lookup_trace_debug_info(struct debug_info_iterator *debug_it,
-               const struct bt_trace *writer_trace,
+               const bt_trace *writer_trace,
                struct debug_info_trace *di_trace)
 {
        return (struct debug_info *) g_hash_table_lookup(
@@ -434,11 +434,11 @@ struct debug_info *lookup_trace_debug_info(struct debug_info_iterator *debug_it,
 
 static
 struct debug_info *insert_new_debug_info(struct debug_info_iterator *debug_it,
-               const struct bt_trace *writer_trace,
+               const bt_trace *writer_trace,
                struct debug_info_trace *di_trace)
 {
        struct debug_info *debug_info = NULL;
-       struct bt_value *field = NULL;
+       bt_value *field = NULL;
        const char *str_value;
        enum bt_value_status ret;
 
@@ -487,7 +487,7 @@ end:
 
 static
 struct debug_info *get_trace_debug_info(struct debug_info_iterator *debug_it,
-               const struct bt_trace *writer_trace,
+               const bt_trace *writer_trace,
                struct debug_info_trace *di_trace)
 {
        struct debug_info *debug_info;
@@ -505,7 +505,7 @@ end:
 
 static
 struct debug_info_trace *lookup_trace(struct debug_info_iterator *debug_it,
-               const struct bt_trace *trace)
+               const bt_trace *trace)
 {
        return (struct debug_info_trace *) g_hash_table_lookup(
                        debug_it->trace_map,
@@ -515,7 +515,7 @@ struct debug_info_trace *lookup_trace(struct debug_info_iterator *debug_it,
 static
 enum debug_info_stream_state *insert_new_stream_state(
                struct debug_info_iterator *debug_it,
-               struct debug_info_trace *di_trace, const struct bt_stream *stream)
+               struct debug_info_trace *di_trace, const bt_stream *stream)
 {
        enum debug_info_stream_state *v = NULL;
 
@@ -586,11 +586,11 @@ void debug_info_close_trace(struct debug_info_iterator *debug_it,
 
 static
 int sync_event_classes(struct debug_info_iterator *debug_it,
-               const struct bt_stream *stream,
-               const struct bt_stream *writer_stream)
+               const bt_stream *stream,
+               const bt_stream *writer_stream)
 {
        int int_ret;
-       const struct bt_stream_class *stream_class = NULL,
+       const bt_stream_class *stream_class = NULL,
                                   *writer_stream_class = NULL;
        enum bt_component_status ret;
 
@@ -619,12 +619,12 @@ end:
 }
 
 static
-void trace_is_static_listener(const struct bt_trace *trace, void *data)
+void trace_is_static_listener(const bt_trace *trace, void *data)
 {
        struct debug_info_trace *di_trace = data;
        int trace_completed = 1, ret, nr_stream, i;
-       const struct bt_stream *stream = NULL, *writer_stream = NULL;
-       const struct bt_trace *writer_trace = di_trace->writer_trace;
+       const bt_stream *stream = NULL, *writer_stream = NULL;
+       const bt_trace *writer_trace = di_trace->writer_trace;
 
        /*
         * When the trace becomes static, make sure that we have all
@@ -666,12 +666,12 @@ error:
 
 static
 struct debug_info_trace *insert_new_trace(struct debug_info_iterator *debug_it,
-               const struct bt_stream *stream) {
-       const struct bt_trace *writer_trace = NULL;
+               const bt_stream *stream) {
+       const bt_trace *writer_trace = NULL;
        struct debug_info_trace *di_trace = NULL;
-       const struct bt_trace *trace = NULL;
-       const struct bt_stream_class *stream_class = NULL;
-       const struct bt_stream *writer_stream = NULL;
+       const bt_trace *trace = NULL;
+       const bt_stream_class *stream_class = NULL;
+       const bt_stream *writer_stream = NULL;
        int ret, nr_stream, i;
 
        writer_trace = bt_trace_create();
@@ -764,22 +764,22 @@ end:
 }
 
 static
-const struct bt_packet *lookup_packet(struct debug_info_iterator *debug_it,
-               const struct bt_packet *packet,
+const bt_packet *lookup_packet(struct debug_info_iterator *debug_it,
+               const bt_packet *packet,
                struct debug_info_trace *di_trace)
 {
-       return (const struct bt_packet *) g_hash_table_lookup(
+       return (const bt_packet *) g_hash_table_lookup(
                        di_trace->packet_map,
                        (gpointer) packet);
 }
 
 static
-const struct bt_packet *insert_new_packet(struct debug_info_iterator *debug_it,
-               const struct bt_packet *packet,
-               const struct bt_stream *writer_stream,
+const bt_packet *insert_new_packet(struct debug_info_iterator *debug_it,
+               const bt_packet *packet,
+               const bt_stream *writer_stream,
                struct debug_info_trace *di_trace)
 {
-       const struct bt_packet *writer_packet;
+       const bt_packet *writer_packet;
        int ret;
 
        writer_packet = bt_packet_create(writer_stream);
@@ -806,10 +806,10 @@ end:
 
 static
 int add_debug_info_fields(FILE *err,
-               const struct bt_field_class *writer_event_context_class,
+               const bt_field_class *writer_event_context_class,
                struct debug_info_component *component)
 {
-       const struct bt_field_class *ip_field = NULL, *debug_field_class = NULL,
+       const bt_field_class *ip_field = NULL, *debug_field_class = NULL,
                                 *bin_field_class = NULL, *func_field_class = NULL,
                                 *src_field_class = NULL;
        int ret = 0;
@@ -898,15 +898,15 @@ end:
 
 static
 int create_debug_info_event_context_class(FILE *err,
-               const struct bt_field_class *event_context_class,
-               const struct bt_field_class *writer_event_context_class,
+               const bt_field_class *event_context_class,
+               const bt_field_class *writer_event_context_class,
                struct debug_info_component *component)
 {
        int ret, nr_fields, i;
 
        nr_fields = bt_field_class_structure_get_field_count(event_context_class);
        for (i = 0; i < nr_fields; i++) {
-               const struct bt_field_class *field_class = NULL;
+               const bt_field_class *field_class = NULL;
                const char *field_name;
 
                if (bt_field_class_structure_get_field_by_index(event_context_class,
@@ -937,14 +937,14 @@ end:
 }
 
 static
-const struct bt_stream_class *copy_stream_class_debug_info(FILE *err,
-               const struct bt_stream_class *stream_class,
-               const struct bt_trace *writer_trace,
+const bt_stream_class *copy_stream_class_debug_info(FILE *err,
+               const bt_stream_class *stream_class,
+               const bt_trace *writer_trace,
                struct debug_info_component *component)
 {
-       const struct bt_field_class *cls = NULL;
-       const struct bt_stream_class *writer_stream_class = NULL;
-       const struct bt_field_class *writer_event_context_class = NULL;
+       const bt_field_class *cls = NULL;
+       const bt_stream_class *writer_stream_class = NULL;
+       const bt_field_class *writer_event_context_class = NULL;
        int ret_int;
        const char *name = bt_stream_class_get_name(stream_class);
 
@@ -1016,18 +1016,18 @@ end:
  * to update the integers mapping to a clock.
  */
 static
-int add_clock_classes(FILE *err, const struct bt_trace *writer_trace,
-               const struct bt_stream_class *writer_stream_class,
-               const struct bt_trace *trace)
+int add_clock_classes(FILE *err, const bt_trace *writer_trace,
+               const bt_stream_class *writer_stream_class,
+               const bt_trace *trace)
 {
        int ret, clock_class_count, i;
 
        clock_class_count = bt_trace_get_clock_class_count(trace);
 
        for (i = 0; i < clock_class_count; i++) {
-               const struct bt_clock_class *clock_class =
+               const bt_clock_class *clock_class =
                        bt_trace_get_clock_class_by_index(trace, i);
-               const struct bt_clock_class *existing_clock_class = NULL;
+               const bt_clock_class *existing_clock_class = NULL;
 
                BT_ASSERT(clock_class);
 
@@ -1058,12 +1058,12 @@ end:
 }
 
 static
-const struct bt_stream_class *insert_new_stream_class(
+const bt_stream_class *insert_new_stream_class(
                struct debug_info_iterator *debug_it,
-               const struct bt_stream_class *stream_class)
+               const bt_stream_class *stream_class)
 {
-       const struct bt_stream_class *writer_stream_class = NULL;
-       const struct bt_trace *trace, *writer_trace = NULL;
+       const bt_stream_class *writer_stream_class = NULL;
+       const bt_trace *trace, *writer_trace = NULL;
        struct debug_info_trace *di_trace;
        enum bt_component_status ret;
        int int_ret;
@@ -1114,14 +1114,14 @@ end:
 }
 
 static
-const struct bt_stream *insert_new_stream(
+const bt_stream *insert_new_stream(
                struct debug_info_iterator *debug_it,
-               const struct bt_stream *stream,
+               const bt_stream *stream,
                struct debug_info_trace *di_trace)
 {
-       const struct bt_stream *writer_stream = NULL;
-       const struct bt_stream_class *stream_class = NULL;
-       const struct bt_stream_class *writer_stream_class = NULL;
+       const bt_stream *writer_stream = NULL;
+       const bt_stream_class *stream_class = NULL;
+       const bt_stream_class *writer_stream_class = NULL;
        int64_t id;
 
        stream_class = bt_stream_get_class(stream);
@@ -1170,18 +1170,18 @@ end:
 }
 
 static
-const struct bt_stream *lookup_stream(struct debug_info_iterator *debug_it,
-               const struct bt_stream *stream,
+const bt_stream *lookup_stream(struct debug_info_iterator *debug_it,
+               const bt_stream *stream,
                struct debug_info_trace *di_trace)
 {
-       return (const struct bt_stream *) g_hash_table_lookup(
+       return (const bt_stream *) g_hash_table_lookup(
                        di_trace->stream_map, (gpointer) stream);
 }
 
 static
-const struct bt_event_class *get_event_class(struct debug_info_iterator *debug_it,
-               const struct bt_stream_class *writer_stream_class,
-               const struct bt_event_class *event_class)
+const bt_event_class *get_event_class(struct debug_info_iterator *debug_it,
+               const bt_stream_class *writer_stream_class,
+               const bt_event_class *event_class)
 {
        return bt_stream_class_get_event_class_by_id(writer_stream_class,
                        bt_event_class_get_id(event_class));
@@ -1190,10 +1190,10 @@ const struct bt_event_class *get_event_class(struct debug_info_iterator *debug_i
 static
 struct debug_info_trace *lookup_di_trace_from_stream(
                struct debug_info_iterator *debug_it,
-               const struct bt_stream *stream)
+               const bt_stream *stream)
 {
-       const struct bt_stream_class *stream_class = NULL;
-       const struct bt_trace *trace = NULL;
+       const bt_stream_class *stream_class = NULL;
+       const bt_trace *trace = NULL;
        struct debug_info_trace *di_trace = NULL;
 
        stream_class = bt_stream_get_class(stream);
@@ -1211,12 +1211,12 @@ struct debug_info_trace *lookup_di_trace_from_stream(
 }
 
 static
-const struct bt_stream *get_writer_stream(
+const bt_stream *get_writer_stream(
                struct debug_info_iterator *debug_it,
-               const struct bt_packet *packet, const struct bt_stream *stream)
+               const bt_packet *packet, const bt_stream *stream)
 {
-       const struct bt_stream_class *stream_class = NULL;
-       const struct bt_stream *writer_stream = NULL;
+       const bt_stream_class *stream_class = NULL;
+       const bt_stream *writer_stream = NULL;
        struct debug_info_trace *di_trace = NULL;
 
        stream_class = bt_stream_get_class(stream);
@@ -1245,13 +1245,13 @@ end:
 }
 
 BT_HIDDEN
-const struct bt_packet *debug_info_new_packet(
+const bt_packet *debug_info_new_packet(
                struct debug_info_iterator *debug_it,
-               const struct bt_packet *packet)
+               const bt_packet *packet)
 {
-       const struct bt_stream *stream = NULL, *writer_stream = NULL;
-       const struct bt_packet *writer_packet = NULL;
-       const struct bt_field *packet_context = NULL;
+       const bt_stream *stream = NULL, *writer_stream = NULL;
+       const bt_packet *writer_packet = NULL;
+       const bt_field *packet_context = NULL;
        struct debug_info_trace *di_trace;
        int int_ret;
 
@@ -1311,12 +1311,12 @@ end:
 }
 
 BT_HIDDEN
-const struct bt_packet *debug_info_close_packet(
+const bt_packet *debug_info_close_packet(
                struct debug_info_iterator *debug_it,
-               const struct bt_packet *packet)
+               const bt_packet *packet)
 {
-       const struct bt_packet *writer_packet = NULL;
-       const struct bt_stream *stream = NULL;
+       const bt_packet *writer_packet = NULL;
+       const bt_stream *stream = NULL;
        struct debug_info_trace *di_trace;
 
        stream = bt_packet_get_stream(packet);
@@ -1342,11 +1342,11 @@ end:
 }
 
 BT_HIDDEN
-const struct bt_stream *debug_info_stream_begin(
+const bt_stream *debug_info_stream_begin(
                struct debug_info_iterator *debug_it,
-               const struct bt_stream *stream)
+               const bt_stream *stream)
 {
-       const struct bt_stream *writer_stream = NULL;
+       const bt_stream *writer_stream = NULL;
        enum debug_info_stream_state *state;
        struct debug_info_trace *di_trace = NULL;
 
@@ -1394,10 +1394,10 @@ end:
 }
 
 BT_HIDDEN
-const struct bt_stream *debug_info_stream_end(struct debug_info_iterator *debug_it,
-               const struct bt_stream *stream)
+const bt_stream *debug_info_stream_end(struct debug_info_iterator *debug_it,
+               const bt_stream *stream)
 {
-       const struct bt_stream *writer_stream = NULL;
+       const bt_stream *writer_stream = NULL;
        struct debug_info_trace *di_trace = NULL;
        enum debug_info_stream_state *state;
 
@@ -1450,7 +1450,7 @@ end:
 
 static
 struct debug_info_source *lookup_debug_info(FILE *err,
-               const struct bt_event *event,
+               const bt_event *event,
                struct debug_info *debug_info)
 {
        int64_t vpid;
@@ -1478,14 +1478,14 @@ end:
 }
 
 static
-int set_debug_info_field(FILE *err, const struct bt_field *debug_field,
+int set_debug_info_field(FILE *err, const bt_field *debug_field,
                struct debug_info_source *dbg_info_src,
                struct debug_info_component *component)
 {
        int i, nr_fields, ret = 0;
-       const struct bt_field_class *debug_field_class = NULL;
-       const struct bt_field *field = NULL;
-       const struct bt_field_class *field_class = NULL;
+       const bt_field_class *debug_field_class = NULL;
+       const bt_field *field = NULL;
+       const bt_field_class *field_class = NULL;
 
        debug_field_class = bt_field_get_class(debug_field);
        BT_ASSERT(debug_field_class);
@@ -1568,17 +1568,17 @@ end:
 
 static
 int copy_set_debug_info_stream_event_context(FILE *err,
-               const struct bt_field *event_context,
-               const struct bt_event *event,
-               const struct bt_event *writer_event,
+               const bt_field *event_context,
+               const bt_event *event,
+               const bt_event *writer_event,
                struct debug_info *debug_info,
                struct debug_info_component *component)
 {
-       const struct bt_field_class *writer_event_context_class = NULL,
+       const bt_field_class *writer_event_context_class = NULL,
                                 *event_context_class = NULL;
-       const struct bt_field *writer_event_context = NULL;
-       const struct bt_field *field = NULL, *copy_field = NULL, *debug_field = NULL;
-       const struct bt_field_class *field_class = NULL;
+       const bt_field *writer_event_context = NULL;
+       const bt_field *field = NULL, *copy_field = NULL, *debug_field = NULL;
+       const bt_field_class *field_class = NULL;
        struct debug_info_source *dbg_info_src;
        int ret, nr_fields, i;
 
@@ -1675,11 +1675,11 @@ end:
 }
 
 static
-const struct bt_clock_class *stream_class_get_clock_class(FILE *err,
-               const struct bt_stream_class *stream_class)
+const bt_clock_class *stream_class_get_clock_class(FILE *err,
+               const bt_stream_class *stream_class)
 {
-       const struct bt_trace *trace = NULL;
-       const struct bt_clock_class *clock_class = NULL;
+       const bt_trace *trace = NULL;
+       const bt_clock_class *clock_class = NULL;
 
        trace = bt_stream_class_get_trace(stream_class);
        BT_ASSERT(trace);
@@ -1699,11 +1699,11 @@ end:
 }
 
 static
-const struct bt_clock_class *event_get_clock_class(FILE *err, const struct bt_event *event)
+const bt_clock_class *event_get_clock_class(FILE *err, const bt_event *event)
 {
-       const struct bt_event_class *event_class = NULL;
-       const struct bt_stream_class *stream_class = NULL;
-       const struct bt_clock_class *clock_class = NULL;
+       const bt_event_class *event_class = NULL;
+       const bt_stream_class *stream_class = NULL;
+       const bt_clock_class *clock_class = NULL;
 
        event_class = bt_event_get_class(event);
        BT_ASSERT(event_class);
@@ -1721,11 +1721,11 @@ end:
 }
 
 static
-int set_event_clock_value(FILE *err, const struct bt_event *event,
-               const struct bt_event *writer_event)
+int set_event_clock_value(FILE *err, const bt_event *event,
+               const bt_event *writer_event)
 {
-       const struct bt_clock_class *clock_class = NULL;
-       struct bt_clock_value *clock_value = NULL;
+       const bt_clock_class *clock_class = NULL;
+       bt_clock_value *clock_value = NULL;
        int ret = 0;
 
        clock_class = event_get_clock_class(err, event);
@@ -1762,13 +1762,13 @@ end:
 }
 
 static
-const struct bt_event *debug_info_copy_event(FILE *err, const struct bt_event *event,
-               const struct bt_event_class *writer_event_class,
+const bt_event *debug_info_copy_event(FILE *err, const bt_event *event,
+               const bt_event_class *writer_event_class,
                struct debug_info *debug_info,
                struct debug_info_component *component)
 {
-       const struct bt_event *writer_event = NULL;
-       const struct bt_field *field = NULL, *copy_field = NULL;
+       const bt_event *writer_event = NULL;
+       const bt_field *field = NULL, *copy_field = NULL;
        int ret;
 
        writer_event = bt_event_create(writer_event_class);
@@ -1850,16 +1850,16 @@ end:
 }
 
 BT_HIDDEN
-const struct bt_event *debug_info_output_event(
+const bt_event *debug_info_output_event(
                struct debug_info_iterator *debug_it,
-               const struct bt_event *event)
+               const bt_event *event)
 {
-       const struct bt_event_class *event_class = NULL, *writer_event_class = NULL;
-       const struct bt_stream_class *stream_class = NULL, *writer_stream_class = NULL;
-       const struct bt_event *writer_event = NULL;
-       const struct bt_packet *packet = NULL, *writer_packet = NULL;
-       const struct bt_trace *writer_trace = NULL;
-       const struct bt_stream *stream = NULL;
+       const bt_event_class *event_class = NULL, *writer_event_class = NULL;
+       const bt_stream_class *stream_class = NULL, *writer_stream_class = NULL;
+       const bt_event *writer_event = NULL;
+       const bt_packet *packet = NULL, *writer_packet = NULL;
+       const bt_trace *writer_trace = NULL;
+       const bt_stream *stream = NULL;
        struct debug_info_trace *di_trace;
        struct debug_info *debug_info;
        int int_ret;
index 1c4d83f529d8edd72a57be4ac57c861244d6bf0b..33c26c23c89cbb84faf7d80714f4d370c542ab57 100644 (file)
 #include <babeltrace/babeltrace.h>
 
 BT_HIDDEN
-const struct bt_event *debug_info_output_event(struct debug_info_iterator *debug_it,
-               const struct bt_event *event);
+const bt_event *debug_info_output_event(struct debug_info_iterator *debug_it,
+               const bt_event *event);
 BT_HIDDEN
-const struct bt_packet *debug_info_new_packet(struct debug_info_iterator *debug_it,
-               const struct bt_packet *packet);
+const bt_packet *debug_info_new_packet(struct debug_info_iterator *debug_it,
+               const bt_packet *packet);
 BT_HIDDEN
-const struct bt_packet *debug_info_close_packet(struct debug_info_iterator *debug_it,
-               const struct bt_packet *packet);
+const bt_packet *debug_info_close_packet(struct debug_info_iterator *debug_it,
+               const bt_packet *packet);
 BT_HIDDEN
-const struct bt_stream *debug_info_stream_begin(
+const bt_stream *debug_info_stream_begin(
                struct debug_info_iterator *debug_it,
-               const struct bt_stream *stream);
+               const bt_stream *stream);
 BT_HIDDEN
-const struct bt_stream *debug_info_stream_end(struct debug_info_iterator *debug_it,
-               const struct bt_stream *stream);
+const bt_stream *debug_info_stream_end(struct debug_info_iterator *debug_it,
+               const bt_stream *stream);
 
 BT_HIDDEN
 int get_stream_event_context_unsigned_int_field_value(FILE *err,
-               const struct bt_event *event, const char *field_name,
+               const bt_event *event, const char *field_name,
                uint64_t *value);
 BT_HIDDEN
-int get_stream_event_context_int_field_value(FILE *err, const struct bt_event *event,
+int get_stream_event_context_int_field_value(FILE *err, const bt_event *event,
                const char *field_name, int64_t *value);
 BT_HIDDEN
 int get_payload_unsigned_int_field_value(FILE *err,
-               const struct bt_event *event, const char *field_name,
+               const bt_event *event, const char *field_name,
                uint64_t *value);
 BT_HIDDEN
-int get_payload_int_field_value(FILE *err, const struct bt_event *event,
+int get_payload_int_field_value(FILE *err, const bt_event *event,
                const char *field_name, int64_t *value);
 BT_HIDDEN
 int get_payload_string_field_value(FILE *err,
-               const struct bt_event *event, const char *field_name,
+               const bt_event *event, const char *field_name,
                const char **value);
 BT_HIDDEN
 int get_payload_build_id_field_value(FILE *err,
-               const struct bt_event *event, const char *field_name,
+               const bt_event *event, const char *field_name,
                uint8_t **build_id, uint64_t *build_id_len);
 
 #endif /* BABELTRACE_PLUGIN_TRIMMER_COPY_H */
index ff193c2c793995a0fb82a68b907e567d7cbf0a14..614b1b43c025327969d948a6b74e3e5b1fdd6f40 100644 (file)
@@ -373,7 +373,7 @@ end:
 
 static
 void handle_statedump_build_id_event(FILE *err, struct debug_info *debug_info,
-               const struct bt_event *event)
+               const bt_event *event)
 {
        struct proc_debug_info_sources *proc_dbg_info_src;
        struct bin_info *bin = NULL;
@@ -439,7 +439,7 @@ end:
 
 static
 void handle_statedump_debug_link_event(FILE *err, struct debug_info *debug_info,
-               const struct bt_event *event)
+               const bt_event *event)
 {
        struct proc_debug_info_sources *proc_dbg_info_src;
        struct bin_info *bin = NULL;
@@ -508,7 +508,7 @@ end:
 
 static
 void handle_bin_info_event(FILE *err, struct debug_info *debug_info,
-               const struct bt_event *event, bool has_pic_field)
+               const bt_event *event, bool has_pic_field)
 {
        struct proc_debug_info_sources *proc_dbg_info_src;
        struct bin_info *bin;
@@ -614,21 +614,21 @@ end:
 
 static inline
 void handle_statedump_bin_info_event(FILE *err, struct debug_info *debug_info,
-               const struct bt_event *event)
+               const bt_event *event)
 {
        handle_bin_info_event(err, debug_info, event, true);
 }
 
 static inline
 void handle_lib_load_event(FILE *err, struct debug_info *debug_info,
-               const struct bt_event *event)
+               const bt_event *event)
 {
        handle_bin_info_event(err, debug_info, event, false);
 }
 
 static inline
 void handle_lib_unload_event(FILE *err, struct debug_info *debug_info,
-               const struct bt_event *event)
+               const bt_event *event)
 {
        struct proc_debug_info_sources *proc_dbg_info_src;
        uint64_t baddr;
@@ -666,7 +666,7 @@ end:
 
 static
 void handle_statedump_start(FILE *err, struct debug_info *debug_info,
-               const struct bt_event *event)
+               const bt_event *event)
 {
        struct proc_debug_info_sources *proc_dbg_info_src;
        int64_t vpid;
@@ -692,10 +692,10 @@ end:
 }
 
 BT_HIDDEN
-void debug_info_handle_event(FILE *err, const struct bt_event *event,
+void debug_info_handle_event(FILE *err, const bt_event *event,
                struct debug_info *debug_info)
 {
-       const struct bt_event_class *event_class;
+       const bt_event_class *event_class;
        const char *event_name;
        GQuark q_event_name;
 
index af198164205de709c3e863ad90f1f988efcb14fd..58cb5728f67019ae8019314c5efb79854c0bb362 100644 (file)
@@ -64,18 +64,18 @@ struct debug_info_component {
 
 struct debug_info_iterator {
        struct debug_info_component *debug_info_component;
-       /* Map between struct bt_trace and struct bt_writer. */
+       /* Map between bt_trace and struct bt_writer. */
        GHashTable *trace_map;
        /* Input iterators associated with this output iterator. */
        GPtrArray *input_iterator_group;
-       const struct bt_notification *current_notification;
-       struct bt_notification_iterator *input_iterator;
+       const bt_notification *current_notification;
+       bt_notification_iterator *input_iterator;
        FILE *err;
 };
 
 struct debug_info_trace {
-       const struct bt_trace *trace;
-       const struct bt_trace *writer_trace;
+       const bt_trace *trace;
+       const bt_trace *writer_trace;
        struct debug_info_component *debug_info_component;
        struct debug_info_iterator *debug_it;
        int static_listener_id;
@@ -120,7 +120,7 @@ struct debug_info_source *debug_info_query(struct debug_info *debug_info,
                int64_t vpid, uint64_t ip);
 
 BT_HIDDEN
-void debug_info_handle_event(FILE *err, const struct bt_event *event,
+void debug_info_handle_event(FILE *err, const bt_event *event,
                struct debug_info *debug_info);
 
 BT_HIDDEN
index 6b2f5349e97dc7fb69ec3cbc3625d09564177886..09740c677308d1542452a5ca8011a8b32a313878 100644 (file)
@@ -54,7 +54,7 @@ void destroy_debug_info_data(struct debug_info_component *debug_info)
 }
 
 static
-void destroy_debug_info_component(struct bt_self_component *component)
+void destroy_debug_info_component(bt_self_component *component)
 {
        void *data = bt_self_component_get_user_data(component);
        destroy_debug_info_data(data);
@@ -83,7 +83,7 @@ void unref_trace(struct debug_info_trace *di_trace)
 }
 
 static
-void debug_info_iterator_destroy(struct bt_self_notification_iterator *it)
+void debug_info_iterator_destroy(bt_self_notification_iterator *it)
 {
        struct debug_info_iterator *it_data;
 
@@ -105,18 +105,18 @@ void debug_info_iterator_destroy(struct bt_self_notification_iterator *it)
 }
 
 static
-const struct bt_notification *handle_notification(FILE *err,
+const bt_notification *handle_notification(FILE *err,
                struct debug_info_iterator *debug_it,
-               const struct bt_notification *notification)
+               const bt_notification *notification)
 {
-       const struct bt_notification *new_notification = NULL;
+       const bt_notification *new_notification = NULL;
 
        switch (bt_notification_get_type(notification)) {
        case BT_NOTIFICATION_TYPE_PACKET_BEGINNING:
        {
-               const struct bt_packet *packet =
+               const bt_packet *packet =
                        bt_notification_packet_beginning_get_packet(notification);
-               const struct bt_packet *writer_packet;
+               const bt_packet *writer_packet;
 
                if (!packet) {
                        goto end;
@@ -133,9 +133,9 @@ const struct bt_notification *handle_notification(FILE *err,
        }
        case BT_NOTIFICATION_TYPE_PACKET_END:
        {
-               const struct bt_packet *packet =
+               const bt_packet *packet =
                        bt_notification_packet_end_get_packet(notification);
-               const struct bt_packet *writer_packet;
+               const bt_packet *writer_packet;
 
                if (!packet) {
                        goto end;
@@ -152,10 +152,10 @@ const struct bt_notification *handle_notification(FILE *err,
        }
        case BT_NOTIFICATION_TYPE_EVENT:
        {
-               const struct bt_event *event = bt_notification_event_get_event(
+               const bt_event *event = bt_notification_event_get_event(
                                notification);
-               const struct bt_event *writer_event;
-               struct bt_clock_class_priority_map *cc_prio_map =
+               const bt_event *writer_event;
+               bt_clock_class_priority_map *cc_prio_map =
                        bt_notification_event_get_clock_class_priority_map(
                                        notification);
 
@@ -174,9 +174,9 @@ const struct bt_notification *handle_notification(FILE *err,
        }
        case BT_NOTIFICATION_TYPE_STREAM_BEGINNING:
        {
-               const struct bt_stream *stream =
+               const bt_stream *stream =
                        bt_notification_stream_beginning_get_stream(notification);
-               const struct bt_stream *writer_stream;
+               const bt_stream *writer_stream;
 
                if (!stream) {
                        goto end;
@@ -193,9 +193,9 @@ const struct bt_notification *handle_notification(FILE *err,
        }
        case BT_NOTIFICATION_TYPE_STREAM_END:
        {
-               const struct bt_stream *stream =
+               const bt_stream *stream =
                        bt_notification_stream_end_get_stream(notification);
-               const struct bt_stream *writer_stream;
+               const bt_stream *writer_stream;
 
                if (!stream) {
                        goto end;
@@ -220,15 +220,15 @@ end:
 }
 
 static
-struct bt_notification_iterator_next_method_return debug_info_iterator_next(
-               struct bt_self_notification_iterator *iterator)
+bt_notification_iterator_next_method_return debug_info_iterator_next(
+               bt_self_notification_iterator *iterator)
 {
        struct debug_info_iterator *debug_it = NULL;
-       struct bt_self_component *component = NULL;
+       bt_self_component *component = NULL;
        struct debug_info_component *debug_info = NULL;
-       struct bt_notification_iterator *source_it = NULL;
-       const struct bt_notification *notification;
-       struct bt_notification_iterator_next_method_return ret = {
+       bt_notification_iterator *source_it = NULL;
+       const bt_notification *notification;
+       bt_notification_iterator_next_method_return ret = {
                .status = BT_NOTIFICATION_ITERATOR_STATUS_OK,
                .notification = NULL,
        };
@@ -267,7 +267,7 @@ end:
 
 static
 enum bt_notification_iterator_status debug_info_iterator_init(
-               struct bt_self_notification_iterator *iterator,
+               bt_self_notification_iterator *iterator,
                struct bt_private_port *port)
 {
        enum bt_notification_iterator_status ret =
@@ -275,7 +275,7 @@ enum bt_notification_iterator_status debug_info_iterator_init(
        enum bt_notification_iterator_status it_ret;
        enum bt_connection_status conn_status;
        struct bt_private_connection *connection = NULL;
-       struct bt_self_component *component =
+       bt_self_component *component =
                bt_self_notification_iterator_get_private_component(iterator);
        struct debug_info_iterator *it_data = g_new0(struct debug_info_iterator, 1);
        struct bt_private_port *input_port;
@@ -326,9 +326,9 @@ end:
 static
 enum bt_component_status init_from_params(
                struct debug_info_component *debug_info_component,
-               struct bt_value *params)
+               bt_value *params)
 {
-       struct bt_value *value = NULL;
+       bt_value *value = NULL;
        enum bt_component_status ret = BT_COMPONENT_STATUS_OK;
 
        BT_ASSERT(params);
@@ -397,7 +397,7 @@ end:
 }
 
 enum bt_component_status debug_info_component_init(
-       struct bt_self_component *component, struct bt_value *params,
+       bt_self_component *component, bt_value *params,
        UNUSED_VAR void *init_method_data)
 {
        enum bt_component_status ret;
index ffe35fdebc701b864298cf34244d8eb434079020..1d721ab16dce8e1e27d30b62aa20e879a4f29bf2 100644 (file)
@@ -45,11 +45,11 @@ struct dmesg_component;
 
 struct dmesg_notif_iter {
        struct dmesg_component *dmesg_comp;
-       struct bt_self_notification_iterator *pc_notif_iter; /* Weak */
+       bt_self_notification_iterator *pc_notif_iter; /* Weak */
        char *linebuf;
        size_t linebuf_len;
        FILE *fp;
-       struct bt_notification *tmp_event_notif;
+       bt_notification *tmp_event_notif;
 
        enum {
                STATE_EMIT_STREAM_BEGINNING,
@@ -68,20 +68,20 @@ struct dmesg_component {
                bt_bool no_timestamp;
        } params;
 
-       struct bt_trace_class *trace_class;
-       struct bt_stream_class *stream_class;
-       struct bt_event_class *event_class;
-       struct bt_trace *trace;
-       struct bt_stream *stream;
-       struct bt_packet *packet;
-       struct bt_clock_class *clock_class;
+       bt_trace_class *trace_class;
+       bt_stream_class *stream_class;
+       bt_event_class *event_class;
+       bt_trace *trace;
+       bt_stream *stream;
+       bt_packet *packet;
+       bt_clock_class *clock_class;
 };
 
 static
-struct bt_field_class *create_event_payload_fc(void)
+bt_field_class *create_event_payload_fc(void)
 {
-       struct bt_field_class *root_fc = NULL;
-       struct bt_field_class *fc = NULL;
+       bt_field_class *root_fc = NULL;
+       bt_field_class *fc = NULL;
        int ret;
 
        root_fc = bt_field_class_structure_create();
@@ -117,7 +117,7 @@ end:
 static
 int create_meta(struct dmesg_component *dmesg_comp, bool has_ts)
 {
-       struct bt_field_class *fc = NULL;
+       bt_field_class *fc = NULL;
        int ret = 0;
 
        dmesg_comp->trace_class = bt_trace_class_create();
@@ -185,10 +185,10 @@ end:
 
 static
 int handle_params(struct dmesg_component *dmesg_comp,
-               const struct bt_value *params)
+               const bt_value *params)
 {
-       const struct bt_value *no_timestamp = NULL;
-       const struct bt_value *path = NULL;
+       const bt_value *no_timestamp = NULL;
+       const bt_value *path = NULL;
        const char *path_str;
        int ret = 0;
 
@@ -359,7 +359,7 @@ void destroy_dmesg_component(struct dmesg_component *dmesg_comp)
 
 static
 enum bt_self_component_status create_port(
-               struct bt_self_component_source *self_comp)
+               bt_self_component_source *self_comp)
 {
        return bt_self_component_source_add_output_port(self_comp,
                "out", NULL, NULL);
@@ -367,8 +367,8 @@ enum bt_self_component_status create_port(
 
 BT_HIDDEN
 enum bt_self_component_status dmesg_init(
-               struct bt_self_component_source *self_comp,
-               struct bt_value *params, void *init_method_data)
+               bt_self_component_source *self_comp,
+               bt_value *params, void *init_method_data)
 {
        int ret = 0;
        struct dmesg_component *dmesg_comp = g_new0(struct dmesg_component, 1);
@@ -425,19 +425,19 @@ end:
 }
 
 BT_HIDDEN
-void dmesg_finalize(struct bt_self_component_source *self_comp)
+void dmesg_finalize(bt_self_component_source *self_comp)
 {
        destroy_dmesg_component(bt_self_component_get_data(
                bt_self_component_source_as_self_component(self_comp)));
 }
 
 static
-struct bt_notification *create_init_event_notif_from_line(
+bt_notification *create_init_event_notif_from_line(
                struct dmesg_notif_iter *notif_iter,
                const char *line, const char **new_start)
 {
-       struct bt_event *event;
-       struct bt_notification *notif = NULL;
+       bt_event *event;
+       bt_notification *notif = NULL;
        bool has_timestamp = false;
        unsigned long sec, usec, msec;
        unsigned int year, mon, mday, hour, min;
@@ -532,10 +532,10 @@ end:
 
 static
 int fill_event_payload_from_line(const char *line,
-               struct bt_event *event)
+               bt_event *event)
 {
-       struct bt_field *ep_field = NULL;
-       struct bt_field *str_field = NULL;
+       bt_field *ep_field = NULL;
+       bt_field *str_field = NULL;
        size_t len;
        int ret;
 
@@ -577,11 +577,11 @@ end:
 }
 
 static
-struct bt_notification *create_notif_from_line(
+bt_notification *create_notif_from_line(
                struct dmesg_notif_iter *dmesg_notif_iter, const char *line)
 {
-       struct bt_event *event = NULL;
-       struct bt_notification *notif = NULL;
+       bt_event *event = NULL;
+       bt_notification *notif = NULL;
        const char *new_start;
        int ret;
 
@@ -630,9 +630,9 @@ void destroy_dmesg_notif_iter(struct dmesg_notif_iter *dmesg_notif_iter)
 
 BT_HIDDEN
 enum bt_self_notification_iterator_status dmesg_notif_iter_init(
-               struct bt_self_notification_iterator *self_notif_iter,
-               struct bt_self_component_source *self_comp,
-               struct bt_self_component_port_output *self_port)
+               bt_self_notification_iterator *self_notif_iter,
+               bt_self_component_source *self_comp,
+               bt_self_component_port_output *self_port)
 {
        struct dmesg_component *dmesg_comp;
        struct dmesg_notif_iter *dmesg_notif_iter =
@@ -679,7 +679,7 @@ end:
 
 BT_HIDDEN
 void dmesg_notif_iter_finalize(
-               struct bt_self_notification_iterator *priv_notif_iter)
+               bt_self_notification_iterator *priv_notif_iter)
 {
        destroy_dmesg_notif_iter(bt_self_notification_iterator_get_data(
                priv_notif_iter));
@@ -688,7 +688,7 @@ void dmesg_notif_iter_finalize(
 static
 enum bt_self_notification_iterator_status dmesg_notif_iter_next_one(
                struct dmesg_notif_iter *dmesg_notif_iter,
-               struct bt_notification **notif)
+               bt_notification **notif)
 {
        ssize_t len;
        struct dmesg_component *dmesg_comp;
@@ -809,7 +809,7 @@ end:
 
 BT_HIDDEN
 enum bt_self_notification_iterator_status dmesg_notif_iter_next(
-               struct bt_self_notification_iterator *self_notif_iter,
+               bt_self_notification_iterator *self_notif_iter,
                bt_notification_array_const notifs, uint64_t capacity,
                uint64_t *count)
 {
@@ -822,7 +822,7 @@ enum bt_self_notification_iterator_status dmesg_notif_iter_next(
 
        while (i < capacity &&
                        status == BT_SELF_NOTIFICATION_ITERATOR_STATUS_OK) {
-               struct bt_notification *priv_notif = NULL;
+               bt_notification *priv_notif = NULL;
 
                status = dmesg_notif_iter_next_one(dmesg_notif_iter,
                        &priv_notif);
index be49d4212b3674be673f31c1fd61efd03d3f70d8..7fbaf4cc6653a49394aeb6b2bb5a1136f14f8f60 100644 (file)
 
 BT_HIDDEN
 enum bt_self_component_status dmesg_init(
-               struct bt_self_component_source *self_comp,
-               const struct bt_value *params, void *init_method_data);
+               bt_self_component_source *self_comp,
+               const bt_value *params, void *init_method_data);
 
 BT_HIDDEN
-void dmesg_finalize(struct bt_self_component_source *self_comp);
+void dmesg_finalize(bt_self_component_source *self_comp);
 
 BT_HIDDEN
 enum bt_self_notification_iterator_status dmesg_notif_iter_init(
-               struct bt_self_notification_iterator *self_notif_iter,
-               struct bt_self_component_source *self_comp,
-               struct bt_self_component_port_output *self_port);
+               bt_self_notification_iterator *self_notif_iter,
+               bt_self_component_source *self_comp,
+               bt_self_component_port_output *self_port);
 
 BT_HIDDEN
 void dmesg_notif_iter_finalize(
-               struct bt_self_notification_iterator *self_notif_iter);
+               bt_self_notification_iterator *self_notif_iter);
 
 BT_HIDDEN
 enum bt_self_notification_iterator_status dmesg_notif_iter_next(
-               struct bt_self_notification_iterator *self_notif_iter,
+               bt_self_notification_iterator *self_notif_iter,
                bt_notification_array_const notifs, uint64_t capacity,
                uint64_t *count);
 
index 846cbdae7265cbe33f8d4815d42e7bed9f129f6e..d9f1888bc1c1b8ed7000c2402faa6e2fae0ef3a4 100644 (file)
@@ -113,7 +113,7 @@ error:
 }
 
 BT_HIDDEN
-void pretty_finalize(struct bt_self_component_sink *comp)
+void pretty_finalize(bt_self_component_sink *comp)
 {
        destroy_pretty_data(
                bt_self_component_get_data(
@@ -123,7 +123,7 @@ void pretty_finalize(struct bt_self_component_sink *comp)
 static
 enum bt_self_component_status handle_notification(
                struct pretty_component *pretty,
-               const struct bt_notification *notification)
+               const bt_notification *notification)
 {
        enum bt_self_component_status ret = BT_SELF_COMPONENT_STATUS_OK;
 
@@ -152,9 +152,9 @@ enum bt_self_component_status handle_notification(
 
 BT_HIDDEN
 enum bt_self_component_status pretty_port_connected(
-               struct bt_self_component_sink *comp,
-               struct bt_self_component_port_input *self_port,
-               const struct bt_port_output *other_port)
+               bt_self_component_sink *comp,
+               bt_self_component_port_input *self_port,
+               const bt_port_output *other_port)
 {
        enum bt_self_component_status status = BT_SELF_COMPONENT_STATUS_OK;
        struct pretty_component *pretty;
@@ -174,11 +174,11 @@ enum bt_self_component_status pretty_port_connected(
 
 BT_HIDDEN
 enum bt_self_component_status pretty_consume(
-               struct bt_self_component_sink *comp)
+               bt_self_component_sink *comp)
 {
        enum bt_self_component_status ret;
        bt_notification_array_const notifs;
-       struct bt_self_component_port_input_notification_iterator *it;
+       bt_self_component_port_input_notification_iterator *it;
        struct pretty_component *pretty = bt_self_component_get_data(
                bt_self_component_sink_as_self_component(comp));
        enum bt_notification_iterator_status it_ret;
@@ -228,7 +228,7 @@ end:
 }
 
 static
-int add_params_to_map(struct bt_value *plugin_opt_map)
+int add_params_to_map(bt_value *plugin_opt_map)
 {
        int ret = 0;
        unsigned int i;
@@ -252,7 +252,7 @@ end:
 }
 
 static
-bt_bool check_param_exists(const char *key, const struct bt_value *object,
+bt_bool check_param_exists(const char *key, const bt_value *object,
                void *data)
 {
        struct pretty_component *pretty = data;
@@ -266,9 +266,9 @@ bt_bool check_param_exists(const char *key, const struct bt_value *object,
 }
 
 static
-void apply_one_string(const char *key, const struct bt_value *params, char **option)
+void apply_one_string(const char *key, const bt_value *params, char **option)
 {
-       const struct bt_value *value = NULL;
+       const bt_value *value = NULL;
        const char *str;
 
        value = bt_value_map_borrow_entry_value_const(params, key);
@@ -286,10 +286,10 @@ end:
 }
 
 static
-void apply_one_bool(const char *key, const struct bt_value *params, bool *option,
+void apply_one_bool(const char *key, const bt_value *params, bool *option,
                bool *found)
 {
-       const struct bt_value *value = NULL;
+       const bt_value *value = NULL;
        bt_bool bool_val;
 
        value = bt_value_map_borrow_entry_value_const(params, key);
@@ -337,7 +337,7 @@ end:
 }
 
 static
-int apply_params(struct pretty_component *pretty, const struct bt_value *params)
+int apply_params(struct pretty_component *pretty, const bt_value *params)
 {
        int ret = 0;
        enum bt_value_status status;
@@ -366,7 +366,7 @@ int apply_params(struct pretty_component *pretty, const struct bt_value *params)
        /* Known parameters. */
        pretty->options.color = PRETTY_COLOR_OPT_AUTO;
        if (bt_value_map_has_entry(params, "color")) {
-               const struct bt_value *color_value;
+               const bt_value *color_value;
                const char *color;
 
                color_value = bt_value_map_borrow_entry_value_const(params,
@@ -637,8 +637,8 @@ void init_stream_packet_context_quarks(void)
 
 BT_HIDDEN
 enum bt_self_component_status pretty_init(
-               struct bt_self_component_sink *comp,
-               const struct bt_value *params,
+               bt_self_component_sink *comp,
+               const bt_value *params,
                UNUSED_VAR void *init_method_data)
 {
        enum bt_self_component_status ret;
index b4ad2864092883eb75cbae5f683f5c8fc6589daf..e8dcbc6576805107277bdd0717298c7cb741473d 100644 (file)
@@ -72,13 +72,13 @@ struct pretty_options {
 
 struct pretty_component {
        struct pretty_options options;
-       struct bt_self_component_port_input_notification_iterator *iterator;
+       bt_self_component_port_input_notification_iterator *iterator;
        FILE *out, *err;
        int depth;      /* nesting, used for tabulation alignment. */
        bool start_line;
        GString *string;
        GString *tmp_string;
-       struct bt_value *plugin_opt_map; /* Temporary parameter map. */
+       bt_value *plugin_opt_map; /* Temporary parameter map. */
        bool use_colors;
 
        uint64_t last_cycles_timestamp;
@@ -105,29 +105,29 @@ GQuark stream_packet_context_quarks[STREAM_PACKET_CONTEXT_QUARKS_LEN];
 
 BT_HIDDEN
 enum bt_self_component_status pretty_init(
-               struct bt_self_component_sink *component,
-               const struct bt_value *params,
+               bt_self_component_sink *component,
+               const bt_value *params,
                void *init_method_data);
 
 BT_HIDDEN
 enum bt_self_component_status pretty_consume(
-               struct bt_self_component_sink *component);
+               bt_self_component_sink *component);
 
 BT_HIDDEN
 enum bt_self_component_status pretty_port_connected(
-               struct bt_self_component_sink *component,
-               struct bt_self_component_port_input *self_port,
-               const struct bt_port_output *other_port);
+               bt_self_component_sink *component,
+               bt_self_component_port_input *self_port,
+               const bt_port_output *other_port);
 
 BT_HIDDEN
-void pretty_finalize(struct bt_self_component_sink *component);
+void pretty_finalize(bt_self_component_sink *component);
 
 BT_HIDDEN
 int pretty_print_event(struct pretty_component *pretty,
-               const struct bt_notification *event_notif);
+               const bt_notification *event_notif);
 
 BT_HIDDEN
 int pretty_print_packet(struct pretty_component *pretty,
-               const struct bt_notification *packet_beginning_notif);
+               const bt_notification *packet_beginning_notif);
 
 #endif /* BABELTRACE_PLUGIN_TEXT_PRETTY_PRETTY_H */
index 5f31221943de6bda53047a9c782b90e6eba005f8..3c3988827df02d15dd081e7bc62cfe0daf477277 100644 (file)
@@ -51,7 +51,7 @@ struct timestamp {
 
 static
 int print_field(struct pretty_component *pretty,
-               const struct bt_field *field, bool print_names,
+               const bt_field *field, bool print_names,
                GQuark *filters_fields, int filter_array_len);
 
 static
@@ -78,9 +78,9 @@ void print_field_name_equal(struct pretty_component *pretty, const char *name)
 
 static
 void print_timestamp_cycles(struct pretty_component *pretty,
-               const struct bt_event *event)
+               const bt_event *event)
 {
-       const struct bt_clock_value *clock_value;
+       const bt_clock_value *clock_value;
        uint64_t cycles;
        enum bt_clock_value_status cv_status;
 
@@ -101,7 +101,7 @@ void print_timestamp_cycles(struct pretty_component *pretty,
 
 static
 void print_timestamp_wall(struct pretty_component *pretty,
-               const struct bt_clock_value *clock_value)
+               const bt_clock_value *clock_value)
 {
        int ret;
        int64_t ts_nsec = 0;    /* add configurable offset */
@@ -216,13 +216,13 @@ end:
 
 static
 int print_event_timestamp(struct pretty_component *pretty,
-               const struct bt_event *event, bool *start_line)
+               const bt_event *event, bool *start_line)
 {
        bool print_names = pretty->options.print_header_field_names;
        int ret = 0;
-       const struct bt_stream *stream = NULL;
-       const struct bt_stream_class *stream_class = NULL;
-       const struct bt_clock_value *clock_value = NULL;
+       const bt_stream *stream = NULL;
+       const bt_stream_class *stream_class = NULL;
+       const bt_clock_value *clock_value = NULL;
        enum bt_clock_value_status cv_status;
 
        stream = bt_event_borrow_stream_const(event);
@@ -308,16 +308,16 @@ end:
 
 static
 int print_event_header(struct pretty_component *pretty,
-               const struct bt_event *event)
+               const bt_event *event)
 {
        bool print_names = pretty->options.print_header_field_names;
        int ret = 0;
-       const struct bt_event_class *event_class = NULL;
-       const struct bt_stream_class *stream_class = NULL;
-       const struct bt_trace_class *trace_class = NULL;
-       const struct bt_packet *packet = NULL;
-       const struct bt_stream *stream = NULL;
-       const struct bt_trace *trace = NULL;
+       const bt_event_class *event_class = NULL;
+       const bt_stream_class *stream_class = NULL;
+       const bt_trace_class *trace_class = NULL;
+       const bt_packet *packet = NULL;
+       const bt_stream *stream = NULL;
+       const bt_trace *trace = NULL;
        int dom_print = 0;
        enum bt_property_availability prop_avail;
 
@@ -351,7 +351,7 @@ int print_event_header(struct pretty_component *pretty,
                }
        }
        if (pretty->options.print_trace_hostname_field) {
-               const struct bt_value *hostname_str;
+               const bt_value *hostname_str;
 
                hostname_str = bt_trace_class_borrow_environment_entry_value_by_name_const(
                        trace_class, "hostname");
@@ -370,7 +370,7 @@ int print_event_header(struct pretty_component *pretty,
                }
        }
        if (pretty->options.print_trace_domain_field) {
-               const struct bt_value *domain_str;
+               const bt_value *domain_str;
 
                domain_str = bt_trace_class_borrow_environment_entry_value_by_name_const(
                        trace_class, "domain");
@@ -391,7 +391,7 @@ int print_event_header(struct pretty_component *pretty,
                }
        }
        if (pretty->options.print_trace_procname_field) {
-               const struct bt_value *procname_str;
+               const bt_value *procname_str;
 
                procname_str = bt_trace_class_borrow_environment_entry_value_by_name_const(
                        trace_class, "procname");
@@ -412,7 +412,7 @@ int print_event_header(struct pretty_component *pretty,
                }
        }
        if (pretty->options.print_trace_vpid_field) {
-               const struct bt_value *vpid_value;
+               const bt_value *vpid_value;
 
                vpid_value = bt_trace_class_borrow_environment_entry_value_by_name_const(
                        trace_class, "vpid");
@@ -522,11 +522,11 @@ end:
 
 static
 int print_integer(struct pretty_component *pretty,
-               const struct bt_field *field)
+               const bt_field *field)
 {
        int ret = 0;
        enum bt_field_class_integer_preferred_display_base base;
-       const struct bt_field_class *int_fc;
+       const bt_field_class *int_fc;
        union {
                uint64_t u;
                int64_t s;
@@ -689,10 +689,10 @@ void print_escape_string(struct pretty_component *pretty, const char *str)
 
 static
 int print_enum(struct pretty_component *pretty,
-               const struct bt_field *field)
+               const bt_field *field)
 {
        int ret = 0;
-       const struct bt_field_class *enumeration_field_class = NULL;
+       const bt_field_class *enumeration_field_class = NULL;
        bt_field_class_enumeration_mapping_label_array label_array;
        uint64_t label_count;
        uint64_t i;
@@ -778,15 +778,15 @@ int filter_field_name(struct pretty_component *pretty, const char *field_name,
 
 static
 int print_struct_field(struct pretty_component *pretty,
-               const struct bt_field *_struct,
-               const struct bt_field_class *struct_class,
+               const bt_field *_struct,
+               const bt_field_class *struct_class,
                uint64_t i, bool print_names, uint64_t *nr_printed_fields,
                GQuark *filter_fields, int filter_array_len)
 {
        int ret = 0;
        const char *field_name;
-       const struct bt_field *field = NULL;
-       const struct bt_field_class *field_class = NULL;;
+       const bt_field *field = NULL;
+       const bt_field_class *field_class = NULL;;
 
        field = bt_field_structure_borrow_member_field_by_index_const(_struct, i);
        if (!field) {
@@ -820,11 +820,11 @@ end:
 
 static
 int print_struct(struct pretty_component *pretty,
-               const struct bt_field *_struct, bool print_names,
+               const bt_field *_struct, bool print_names,
                GQuark *filter_fields, int filter_array_len)
 {
        int ret = 0;
-       const struct bt_field_class *struct_class = NULL;
+       const bt_field_class *struct_class = NULL;
        uint64_t nr_fields, i, nr_printed_fields;
 
        struct_class = bt_field_borrow_class_const(_struct);
@@ -857,9 +857,9 @@ end:
 
 static
 int print_array_field(struct pretty_component *pretty,
-               const struct bt_field *array, uint64_t i, bool print_names)
+               const bt_field *array, uint64_t i, bool print_names)
 {
-       const struct bt_field *field = NULL;
+       const bt_field *field = NULL;
 
        if (i != 0) {
                g_string_append(pretty->string, ", ");
@@ -877,10 +877,10 @@ int print_array_field(struct pretty_component *pretty,
 
 static
 int print_array(struct pretty_component *pretty,
-               const struct bt_field *array, bool print_names)
+               const bt_field *array, bool print_names)
 {
        int ret = 0;
-       const struct bt_field_class *array_class = NULL;
+       const bt_field_class *array_class = NULL;
        uint64_t len;
        uint64_t i;
 
@@ -907,9 +907,9 @@ end:
 
 static
 int print_sequence_field(struct pretty_component *pretty,
-               const struct bt_field *seq, uint64_t i, bool print_names)
+               const bt_field *seq, uint64_t i, bool print_names)
 {
-       const struct bt_field *field = NULL;
+       const bt_field *field = NULL;
 
        if (i != 0) {
                g_string_append(pretty->string, ", ");
@@ -927,7 +927,7 @@ int print_sequence_field(struct pretty_component *pretty,
 
 static
 int print_sequence(struct pretty_component *pretty,
-               const struct bt_field *seq, bool print_names)
+               const bt_field *seq, bool print_names)
 {
        int ret = 0;
        uint64_t len;
@@ -957,10 +957,10 @@ end:
 
 static
 int print_variant(struct pretty_component *pretty,
-               const struct bt_field *variant, bool print_names)
+               const bt_field *variant, bool print_names)
 {
        int ret = 0;
-       const struct bt_field *field = NULL;
+       const bt_field *field = NULL;
 
        field = bt_field_variant_borrow_selected_option_field_const(variant);
        BT_ASSERT(field);
@@ -983,7 +983,7 @@ end:
 
 static
 int print_field(struct pretty_component *pretty,
-               const struct bt_field *field, bool print_names,
+               const bt_field *field, bool print_names,
                GQuark *filter_fields, int filter_array_len)
 {
        enum bt_field_class_type class_id;
@@ -1046,11 +1046,11 @@ int print_field(struct pretty_component *pretty,
 
 static
 int print_stream_packet_context(struct pretty_component *pretty,
-               const struct bt_event *event)
+               const bt_event *event)
 {
        int ret = 0;
-       const struct bt_packet *packet = NULL;
-       const struct bt_field *main_field = NULL;
+       const bt_packet *packet = NULL;
+       const bt_field *main_field = NULL;
 
        packet = bt_event_borrow_packet_const(event);
        if (!packet) {
@@ -1079,10 +1079,10 @@ end:
 
 static
 int print_event_header_raw(struct pretty_component *pretty,
-               const struct bt_event *event)
+               const bt_event *event)
 {
        int ret = 0;
-       const struct bt_field *main_field = NULL;
+       const bt_field *main_field = NULL;
 
        main_field = bt_event_borrow_header_field_const(event);
        if (!main_field) {
@@ -1104,10 +1104,10 @@ end:
 
 static
 int print_stream_event_context(struct pretty_component *pretty,
-               const struct bt_event *event)
+               const bt_event *event)
 {
        int ret = 0;
-       const struct bt_field *main_field = NULL;
+       const bt_field *main_field = NULL;
 
        main_field = bt_event_borrow_common_context_field_const(event);
        if (!main_field) {
@@ -1129,10 +1129,10 @@ end:
 
 static
 int print_event_context(struct pretty_component *pretty,
-               const struct bt_event *event)
+               const bt_event *event)
 {
        int ret = 0;
-       const struct bt_field *main_field = NULL;
+       const bt_field *main_field = NULL;
 
        main_field = bt_event_borrow_specific_context_field_const(event);
        if (!main_field) {
@@ -1154,10 +1154,10 @@ end:
 
 static
 int print_event_payload(struct pretty_component *pretty,
-               const struct bt_event *event)
+               const bt_event *event)
 {
        int ret = 0;
-       const struct bt_field *main_field = NULL;
+       const bt_field *main_field = NULL;
 
        main_field = bt_event_borrow_payload_field_const(event);
        if (!main_field) {
@@ -1196,10 +1196,10 @@ end:
 
 BT_HIDDEN
 int pretty_print_event(struct pretty_component *pretty,
-               const struct bt_notification *event_notif)
+               const bt_notification *event_notif)
 {
        int ret;
-       const struct bt_event *event =
+       const bt_event *event =
                bt_notification_event_borrow_event_const(event_notif);
 
        BT_ASSERT(event);
@@ -1249,21 +1249,21 @@ end:
 
 static
 int print_discarded_elements_msg(
-               struct pretty_component *pretty, const struct bt_packet *packet,
+               struct pretty_component *pretty, const bt_packet *packet,
                uint64_t count, const char *elem_type)
 {
 #if 0
        int ret = 0;
-       const struct bt_stream *stream = NULL;
-       const struct bt_stream_class *stream_class = NULL;
-       const struct bt_trace *trace = NULL;
+       const bt_stream *stream = NULL;
+       const bt_stream_class *stream_class = NULL;
+       const bt_trace *trace = NULL;
        const char *stream_name;
        const char *trace_name;
        const unsigned char *trace_uuid;
        int64_t stream_class_id;
        int64_t stream_id;
-       struct bt_clock_value *begin_clock_value = NULL;
-       struct bt_clock_value *end_clock_value = NULL;
+       bt_clock_value *begin_clock_value = NULL;
+       bt_clock_value *end_clock_value = NULL;
 
        /* Stream name */
        BT_ASSERT(packet);
@@ -1370,10 +1370,10 @@ int print_discarded_elements_msg(
 
 BT_HIDDEN
 int pretty_print_packet(struct pretty_component *pretty,
-               const struct bt_notification *packet_beginning_notif)
+               const bt_notification *packet_beginning_notif)
 {
 #if 0
-       const struct bt_packet *packet = bt_notification_packet_beginning_borrow_packet_const(
+       const bt_packet *packet = bt_notification_packet_beginning_borrow_packet_const(
                packet_beginning_notif);
        uint64_t count;
        int status = 0;
index ba4c521e10408a157c7394bd4c810c1cdd5bcd78..5506e5800e896f3bb246a08b1fa4db9015108c22 100644 (file)
@@ -108,7 +108,7 @@ void destroy_private_counter_data(struct counter *counter)
 }
 
 BT_HIDDEN
-void counter_finalize(struct bt_self_component_sink *comp)
+void counter_finalize(bt_self_component_sink *comp)
 {
        struct counter *counter;
 
@@ -123,14 +123,14 @@ void counter_finalize(struct bt_self_component_sink *comp)
 
 BT_HIDDEN
 enum bt_self_component_status counter_init(
-               struct bt_self_component_sink *component,
-               const struct bt_value *params,
+               bt_self_component_sink *component,
+               const bt_value *params,
                UNUSED_VAR void *init_method_data)
 {
        enum bt_self_component_status ret;
        struct counter *counter = g_new0(struct counter, 1);
-       const struct bt_value *step = NULL;
-       const struct bt_value *hide_zero = NULL;
+       const bt_value *step = NULL;
+       const bt_value *hide_zero = NULL;
 
        if (!counter) {
                ret = BT_SELF_COMPONENT_STATUS_NOMEM;
@@ -177,13 +177,13 @@ end:
 
 BT_HIDDEN
 enum bt_self_component_status counter_port_connected(
-               struct bt_self_component_sink *comp,
-               struct bt_self_component_port_input *self_port,
-               const struct bt_port_output *other_port)
+               bt_self_component_sink *comp,
+               bt_self_component_port_input *self_port,
+               const bt_port_output *other_port)
 {
        enum bt_self_component_status status = BT_SELF_COMPONENT_STATUS_OK;
        struct counter *counter;
-       struct bt_self_component_port_input_notification_iterator *iterator;
+       bt_self_component_port_input_notification_iterator *iterator;
 
        counter = bt_self_component_get_data(
                bt_self_component_sink_as_self_component(comp));
@@ -204,7 +204,7 @@ end:
 
 BT_HIDDEN
 enum bt_self_component_status counter_consume(
-               struct bt_self_component_sink *comp)
+               bt_self_component_sink *comp)
 {
        enum bt_self_component_status ret = BT_SELF_COMPONENT_STATUS_OK;
        struct counter *counter;
@@ -236,7 +236,7 @@ enum bt_self_component_status counter_consume(
                uint64_t i;
 
                for (i = 0; i < notif_count; i++) {
-                       const struct bt_notification *notif = notifs[i];
+                       const bt_notification *notif = notifs[i];
 
                        BT_ASSERT(notif);
                        switch (bt_notification_get_type(notif)) {
index 54da5294027e2c060ff24050ca1f95b94c70fbc5..beed7ddc9bd47cac7e09254b4abfa1dc3c923142 100644 (file)
@@ -29,7 +29,7 @@
 #include <stdint.h>
 
 struct counter {
-       struct bt_self_component_port_input_notification_iterator *notif_iter;
+       bt_self_component_port_input_notification_iterator *notif_iter;
        struct {
                uint64_t event;
                uint64_t stream_begin;
@@ -47,19 +47,19 @@ struct counter {
 
 BT_HIDDEN
 enum bt_self_component_status counter_init(
-               struct bt_self_component_sink *component,
-               const struct bt_value *params, void *init_method_data);
+               bt_self_component_sink *component,
+               const bt_value *params, void *init_method_data);
 
 BT_HIDDEN
-void counter_finalize(struct bt_self_component_sink *component);
+void counter_finalize(bt_self_component_sink *component);
 
 BT_HIDDEN
 enum bt_self_component_status counter_port_connected(
-               struct bt_self_component_sink *component,
-               struct bt_self_component_port_input *self_port,
-               const struct bt_port_output *other_port);
+               bt_self_component_sink *component,
+               bt_self_component_port_input *self_port,
+               const bt_port_output *other_port);
 
 BT_HIDDEN
-enum bt_self_component_status counter_consume(struct bt_self_component_sink *component);
+enum bt_self_component_status counter_consume(bt_self_component_sink *component);
 
 #endif /* BABELTRACE_PLUGINS_UTILS_COUNTER_H */
index ebd94674d1844e7edf03e1aa7f124689ac476e16..a2bab43008f978f128d9db05f4d595d18016013c 100644 (file)
@@ -34,7 +34,7 @@ void destroy_private_dummy_data(struct dummy *dummy)
 }
 
 BT_HIDDEN
-void dummy_finalize(struct bt_self_component_sink *comp)
+void dummy_finalize(bt_self_component_sink *comp)
 {
        struct dummy *dummy;
 
@@ -47,8 +47,8 @@ void dummy_finalize(struct bt_self_component_sink *comp)
 
 BT_HIDDEN
 enum bt_self_component_status dummy_init(
-               struct bt_self_component_sink *component,
-               const struct bt_value *params,
+               bt_self_component_sink *component,
+               const bt_value *params,
                UNUSED_VAR void *init_method_data)
 {
        enum bt_self_component_status ret;
@@ -78,13 +78,13 @@ end:
 
 BT_HIDDEN
 enum bt_self_component_status dummy_port_connected(
-               struct bt_self_component_sink *comp,
-               struct bt_self_component_port_input *self_port,
-               const struct bt_port_output *other_port)
+               bt_self_component_sink *comp,
+               bt_self_component_port_input *self_port,
+               const bt_port_output *other_port)
 {
        enum bt_self_component_status status = BT_SELF_COMPONENT_STATUS_OK;
        struct dummy *dummy;
-       struct bt_self_component_port_input_notification_iterator *iterator;
+       bt_self_component_port_input_notification_iterator *iterator;
 
        dummy = bt_self_component_get_data(
                bt_self_component_sink_as_self_component(comp));
@@ -105,7 +105,7 @@ end:
 
 BT_HIDDEN
 enum bt_self_component_status dummy_consume(
-               struct bt_self_component_sink *component)
+               bt_self_component_sink *component)
 {
        enum bt_self_component_status ret = BT_SELF_COMPONENT_STATUS_OK;
        bt_notification_array_const notifs;
index d6a9bd127e19955c0d3f72ccbb811c58bf11cc05..833df41e4b7e2890e35bd44fc860f37f28530a0a 100644 (file)
 #include <stdbool.h>
 
 struct dummy {
-       struct bt_self_component_port_input_notification_iterator *notif_iter;
+       bt_self_component_port_input_notification_iterator *notif_iter;
 };
 
 BT_HIDDEN
 enum bt_self_component_status dummy_init(
-               struct bt_self_component_sink *component,
-               const struct bt_value *params, void *init_method_data);
+               bt_self_component_sink *component,
+               const bt_value *params, void *init_method_data);
 
 BT_HIDDEN
-void dummy_finalize(struct bt_self_component_sink *component);
+void dummy_finalize(bt_self_component_sink *component);
 
 BT_HIDDEN
 enum bt_self_component_status dummy_port_connected(
-               struct bt_self_component_sink *comp,
-               struct bt_self_component_port_input *self_port,
-               const struct bt_port_output *other_port);
+               bt_self_component_sink *comp,
+               bt_self_component_port_input *self_port,
+               const bt_port_output *other_port);
 
 BT_HIDDEN
 enum bt_self_component_status dummy_consume(
-               struct bt_self_component_sink *component);
+               bt_self_component_sink *component);
 
 #endif /* BABELTRACE_PLUGINS_UTILS_DUMMY_H */
index 4e97a014800eadd6dcd33997c305a7810f846a1f..9aa69223dc8bdf9d44a06827bce090f250da7810 100644 (file)
@@ -50,7 +50,7 @@ struct muxer_comp {
        GPtrArray *muxer_notif_iters;
 
        /* Weak ref */
-       struct bt_self_component_filter *self_comp;
+       bt_self_component_filter *self_comp;
 
        unsigned int next_port_num;
        size_t available_input_ports;
@@ -60,9 +60,9 @@ struct muxer_comp {
 
 struct muxer_upstream_notif_iter {
        /* Owned by this, NULL if ended */
-       struct bt_self_component_port_input_notification_iterator *notif_iter;
+       bt_self_component_port_input_notification_iterator *notif_iter;
 
-       /* Contains `const struct bt_notification *`, owned by this */
+       /* Contains `const bt_notification *`, owned by this */
        GQueue *notifs;
 };
 
@@ -125,7 +125,7 @@ void destroy_muxer_upstream_notif_iter(
        bt_self_component_port_input_notification_iterator_put_ref(muxer_upstream_notif_iter->notif_iter);
 
        if (muxer_upstream_notif_iter->notifs) {
-               const struct bt_notification *notif;
+               const bt_notification *notif;
 
                while ((notif = g_queue_pop_head(
                                muxer_upstream_notif_iter->notifs))) {
@@ -141,7 +141,7 @@ void destroy_muxer_upstream_notif_iter(
 static
 struct muxer_upstream_notif_iter *muxer_notif_iter_add_upstream_notif_iter(
                struct muxer_notif_iter *muxer_notif_iter,
-               struct bt_self_component_port_input_notification_iterator *self_notif_iter)
+               bt_self_component_port_input_notification_iterator *self_notif_iter)
 {
        struct muxer_upstream_notif_iter *muxer_upstream_notif_iter =
                g_new0(struct muxer_upstream_notif_iter, 1);
@@ -172,7 +172,7 @@ end:
 
 static
 enum bt_self_component_status ensure_available_input_port(
-               struct bt_self_component_filter *self_comp)
+               bt_self_component_filter *self_comp)
 {
        struct muxer_comp *muxer_comp = bt_self_component_get_data(
                bt_self_component_filter_as_self_component(self_comp));
@@ -218,7 +218,7 @@ end:
 
 static
 enum bt_self_component_status create_output_port(
-               struct bt_self_component_filter *self_comp)
+               bt_self_component_filter *self_comp)
 {
        return bt_self_component_filter_add_output_port(
                self_comp, "out", NULL, NULL);
@@ -244,9 +244,9 @@ void destroy_muxer_comp(struct muxer_comp *muxer_comp)
 }
 
 static
-struct bt_value *get_default_params(void)
+bt_value *get_default_params(void)
 {
-       struct bt_value *params;
+       bt_value *params;
        int ret;
 
        params = bt_value_map_create();
@@ -273,11 +273,11 @@ end:
 
 static
 int configure_muxer_comp(struct muxer_comp *muxer_comp,
-               const struct bt_value *params)
+               const bt_value *params)
 {
-       struct bt_value *default_params = NULL;
-       struct bt_value *real_params = NULL;
-       const struct bt_value *assume_absolute_clock_classes = NULL;
+       bt_value *default_params = NULL;
+       bt_value *real_params = NULL;
+       const bt_value *assume_absolute_clock_classes = NULL;
        int ret = 0;
        bt_bool bool_val;
 
@@ -327,8 +327,8 @@ end:
 
 BT_HIDDEN
 enum bt_self_component_status muxer_init(
-               struct bt_self_component_filter *self_comp,
-               struct bt_value *params, void *init_data)
+               bt_self_component_filter *self_comp,
+               bt_value *params, void *init_data)
 {
        int ret;
        enum bt_self_component_status status = BT_SELF_COMPONENT_STATUS_OK;
@@ -399,7 +399,7 @@ end:
 }
 
 BT_HIDDEN
-void muxer_finalize(struct bt_self_component_filter *self_comp)
+void muxer_finalize(bt_self_component_filter *self_comp)
 {
        struct muxer_comp *muxer_comp = bt_self_component_get_data(
                bt_self_component_filter_as_self_component(self_comp));
@@ -410,14 +410,14 @@ void muxer_finalize(struct bt_self_component_filter *self_comp)
 }
 
 static
-struct bt_self_component_port_input_notification_iterator *
+bt_self_component_port_input_notification_iterator *
 create_notif_iter_on_input_port(
-               struct bt_self_component_port_input *self_port, int *ret)
+               bt_self_component_port_input *self_port, int *ret)
 {
-       const struct bt_port *port = bt_self_component_port_as_port(
+       const bt_port *port = bt_self_component_port_as_port(
                bt_self_component_port_input_as_self_component_port(
                        self_port));
-       struct bt_self_component_port_input_notification_iterator *notif_iter =
+       bt_self_component_port_input_notification_iterator *notif_iter =
                NULL;
 
        BT_ASSERT(ret);
@@ -531,9 +531,9 @@ int muxer_notif_iter_handle_newly_connected_ports(
         */
        while (true) {
                GList *node = muxer_notif_iter->newly_connected_self_ports;
-               struct bt_self_component_port_input *self_port;
-               const struct bt_port *port;
-               struct bt_self_component_port_input_notification_iterator *
+               bt_self_component_port_input *self_port;
+               const bt_port *port;
+               bt_self_component_port_input_notification_iterator *
                        upstream_notif_iter = NULL;
                struct muxer_upstream_notif_iter *muxer_upstream_notif_iter;
 
@@ -599,12 +599,12 @@ end:
 static
 int get_notif_ts_ns(struct muxer_comp *muxer_comp,
                struct muxer_notif_iter *muxer_notif_iter,
-               const struct bt_notification *notif, int64_t last_returned_ts_ns,
+               const bt_notification *notif, int64_t last_returned_ts_ns,
                int64_t *ts_ns)
 {
-       const struct bt_clock_class *clock_class = NULL;
-       const struct bt_clock_value *clock_value = NULL;
-       const struct bt_event *event = NULL;
+       const bt_clock_class *clock_class = NULL;
+       const bt_clock_value *clock_value = NULL;
+       const bt_event *event = NULL;
        int ret = 0;
        const unsigned char *cc_uuid;
        const char *cc_name;
@@ -870,7 +870,7 @@ muxer_notif_iter_youngest_upstream_notif_iter(
        *muxer_upstream_notif_iter = NULL;
 
        for (i = 0; i < muxer_notif_iter->muxer_upstream_notif_iters->len; i++) {
-               const struct bt_notification *notif;
+               const bt_notification *notif;
                struct muxer_upstream_notif_iter *cur_muxer_upstream_notif_iter =
                        g_ptr_array_index(muxer_notif_iter->muxer_upstream_notif_iters, i);
                int64_t notif_ts_ns;
@@ -1004,7 +1004,7 @@ static inline
 enum bt_notification_iterator_status muxer_notif_iter_do_next_one(
                struct muxer_comp *muxer_comp,
                struct muxer_notif_iter *muxer_notif_iter,
-               const struct bt_notification **notif)
+               const bt_notification **notif)
 {
        enum bt_notification_iterator_status status =
                BT_NOTIFICATION_ITERATOR_STATUS_OK;
@@ -1184,10 +1184,10 @@ int muxer_notif_iter_init_newly_connected_ports(struct muxer_comp *muxer_comp,
        }
 
        for (i = 0; i < count; i++) {
-               struct bt_self_component_port_input *self_port =
+               bt_self_component_port_input *self_port =
                        bt_self_component_filter_borrow_input_port_by_index(
                                muxer_comp->self_comp, i);
-               const struct bt_port *port;
+               const bt_port *port;
 
                BT_ASSERT(self_port);
                port = bt_self_component_port_as_port(
@@ -1227,9 +1227,9 @@ end:
 
 BT_HIDDEN
 enum bt_self_notification_iterator_status muxer_notif_iter_init(
-               struct bt_self_notification_iterator *self_notif_iter,
-               struct bt_self_component_filter *self_comp,
-               struct bt_self_component_port_output *port)
+               bt_self_notification_iterator *self_notif_iter,
+               bt_self_component_filter *self_comp,
+               bt_self_component_port_output *port)
 {
        struct muxer_comp *muxer_comp = NULL;
        struct muxer_notif_iter *muxer_notif_iter = NULL;
@@ -1319,11 +1319,11 @@ end:
 
 BT_HIDDEN
 void muxer_notif_iter_finalize(
-               struct bt_self_notification_iterator *self_notif_iter)
+               bt_self_notification_iterator *self_notif_iter)
 {
        struct muxer_notif_iter *muxer_notif_iter =
                bt_self_notification_iterator_get_data(self_notif_iter);
-       struct bt_self_component *self_comp = NULL;
+       bt_self_component *self_comp = NULL;
        struct muxer_comp *muxer_comp = NULL;
 
        self_comp = bt_self_notification_iterator_borrow_component(
@@ -1344,14 +1344,14 @@ void muxer_notif_iter_finalize(
 
 BT_HIDDEN
 enum bt_notification_iterator_status muxer_notif_iter_next(
-               struct bt_self_notification_iterator *self_notif_iter,
+               bt_self_notification_iterator *self_notif_iter,
                bt_notification_array_const notifs, uint64_t capacity,
                uint64_t *count)
 {
        enum bt_notification_iterator_status status;
        struct muxer_notif_iter *muxer_notif_iter =
                bt_self_notification_iterator_get_data(self_notif_iter);
-       struct bt_self_component *self_comp = NULL;
+       bt_self_component *self_comp = NULL;
        struct muxer_comp *muxer_comp = NULL;
 
        BT_ASSERT(muxer_notif_iter);
@@ -1384,12 +1384,12 @@ enum bt_notification_iterator_status muxer_notif_iter_next(
 
 BT_HIDDEN
 enum bt_self_component_status muxer_input_port_connected(
-               struct bt_self_component_filter *self_comp,
-               struct bt_self_component_port_input *self_port,
-               const struct bt_port_output *other_port)
+               bt_self_component_filter *self_comp,
+               bt_self_component_port_input *self_port,
+               const bt_port_output *other_port)
 {
        enum bt_self_component_status status = BT_SELF_COMPONENT_STATUS_OK;
-       const struct bt_port *port = bt_self_component_port_as_port(
+       const bt_port *port = bt_self_component_port_as_port(
                bt_self_component_port_input_as_self_component_port(
                        self_port));
        struct muxer_comp *muxer_comp =
@@ -1460,14 +1460,14 @@ end:
 
 BT_HIDDEN
 void muxer_input_port_disconnected(
-               struct bt_self_component_filter *self_component,
-               struct bt_self_component_port_input *self_port)
+               bt_self_component_filter *self_component,
+               bt_self_component_port_input *self_port)
 {
        struct muxer_comp *muxer_comp =
                bt_self_component_get_data(
                        bt_self_component_filter_as_self_component(
                                self_component));
-       const struct bt_port *port =
+       const bt_port *port =
                bt_self_component_port_as_port(
                        bt_self_component_port_input_as_self_component_port(
                                self_port));
index b070d5c5e7faeec1f9a1260f5238f8f381db2539..b2036e052c5eb8de6562b212d0638924fa238da7 100644 (file)
 
 BT_HIDDEN
 enum bt_self_component_status muxer_init(
-               struct bt_self_component_filter *self_comp,
-               const struct bt_value *params, void *init_data);
+               bt_self_component_filter *self_comp,
+               const bt_value *params, void *init_data);
 
 BT_HIDDEN
-void muxer_finalize(struct bt_self_component_filter *self_comp);
+void muxer_finalize(bt_self_component_filter *self_comp);
 
 BT_HIDDEN
 enum bt_self_notification_iterator_status muxer_notif_iter_init(
-               struct bt_self_notification_iterator *self_notif_iter,
-               struct bt_self_component_filter *self_comp,
-               struct bt_self_component_port_output *self_port);
+               bt_self_notification_iterator *self_notif_iter,
+               bt_self_component_filter *self_comp,
+               bt_self_component_port_output *self_port);
 
 BT_HIDDEN
 void muxer_notif_iter_finalize(
-               struct bt_self_notification_iterator *self_notif_iter);
+               bt_self_notification_iterator *self_notif_iter);
 
 BT_HIDDEN
 enum bt_self_notification_iterator_status muxer_notif_iter_next(
-               struct bt_self_notification_iterator *self_notif_iter,
+               bt_self_notification_iterator *self_notif_iter,
                bt_notification_array_const notifs, uint64_t capacity,
                uint64_t *count);
 
 BT_HIDDEN
 enum bt_self_component_status muxer_input_port_connected(
-               struct bt_self_component_filter *comp,
-               struct bt_self_component_port_input *self_port,
-               const struct bt_port_output *other_port);
+               bt_self_component_filter *comp,
+               bt_self_component_port_input *self_port,
+               const bt_port_output *other_port);
 
 BT_HIDDEN
 void muxer_input_port_disconnected(
-               struct bt_self_component_filter *self_component,
-               struct bt_self_component_port_input *self_port);
+               bt_self_component_filter *self_component,
+               bt_self_component_port_input *self_port);
 
 #endif /* BABELTRACE_PLUGINS_UTILS_MUXER_H */
index 423a76658245754f07f8369767d1e0e8726a529e..33583c20dd0f259e7c41640f9b59883860068362 100644 (file)
 #include "iterator.h"
 
 static
-const struct bt_packet *lookup_packet(struct trimmer_iterator *trim_it,
-               const struct bt_packet *packet)
+const bt_packet *lookup_packet(struct trimmer_iterator *trim_it,
+               const bt_packet *packet)
 {
-       return (const struct bt_packet *) g_hash_table_lookup(
+       return (const bt_packet *) g_hash_table_lookup(
                        trim_it->packet_map,
                        (gpointer) packet);
 }
 
 static
-const struct bt_packet *insert_new_packet(struct trimmer_iterator *trim_it,
-               const struct bt_packet *packet,
-               const struct bt_stream *stream)
+const bt_packet *insert_new_packet(struct trimmer_iterator *trim_it,
+               const bt_packet *packet,
+               const bt_stream *stream)
 {
-       const struct bt_packet *writer_packet = NULL;
+       const bt_packet *writer_packet = NULL;
        int ret;
 
        BT_LOGD_STR("Inserting a new packet.");
@@ -77,13 +77,13 @@ end:
 
 BT_HIDDEN
 enum bt_component_status update_packet_context_field(FILE *err,
-               const struct bt_packet *writer_packet,
+               const bt_packet *writer_packet,
                const char *name, int64_t value)
 {
        enum bt_component_status ret;
-       const struct bt_field *packet_context = NULL, *writer_packet_context = NULL;
-       const struct bt_field_class *struct_class = NULL, *field_class = NULL;
-       const struct bt_field *field = NULL, *writer_field = NULL;
+       const bt_field *packet_context = NULL, *writer_packet_context = NULL;
+       const bt_field_class *struct_class = NULL, *field_class = NULL;
+       const bt_field *field = NULL, *writer_field = NULL;
        int nr_fields, i, int_ret;
 
        BT_LOGD("Updating packet context field: name=%s", name);
@@ -152,12 +152,12 @@ end:
 }
 
 BT_HIDDEN
-const struct bt_packet *trimmer_new_packet(
+const bt_packet *trimmer_new_packet(
                struct trimmer_iterator *trim_it,
-               const struct bt_packet *packet)
+               const bt_packet *packet)
 {
-       const struct bt_stream *stream = NULL;
-       const struct bt_packet *writer_packet = NULL;
+       const bt_stream *stream = NULL;
+       const bt_packet *writer_packet = NULL;
        int int_ret;
 
        stream = bt_packet_get_stream(packet);
@@ -197,11 +197,11 @@ end:
 }
 
 BT_HIDDEN
-const struct bt_packet *trimmer_close_packet(
+const bt_packet *trimmer_close_packet(
                struct trimmer_iterator *trim_it,
-               const struct bt_packet *packet)
+               const bt_packet *packet)
 {
-       const struct bt_packet *writer_packet = NULL;
+       const bt_packet *writer_packet = NULL;
 
        writer_packet = lookup_packet(trim_it, packet);
        if (!writer_packet) {
@@ -216,13 +216,13 @@ end:
 }
 
 BT_HIDDEN
-const struct bt_event *trimmer_output_event(
+const bt_event *trimmer_output_event(
                struct trimmer_iterator *trim_it,
-               const struct bt_event *event)
+               const bt_event *event)
 {
-       const struct bt_event_class *event_class = NULL;
-       const struct bt_event *writer_event = NULL;
-       const struct bt_packet *packet = NULL, *writer_packet = NULL;
+       const bt_event_class *event_class = NULL;
+       const bt_event *writer_event = NULL;
+       const bt_packet *packet = NULL, *writer_packet = NULL;
        const char *event_name;
        int int_ret;
 
index 066fafd119a23b79196a0511db392d904284feec..94b2150ef8442de1128d1d6295a02e5011f1abf0 100644 (file)
 #include <babeltrace/babeltrace.h>
 
 BT_HIDDEN
-const struct bt_event *trimmer_output_event(struct trimmer_iterator *trim_it,
-               const struct bt_event *event);
+const bt_event *trimmer_output_event(struct trimmer_iterator *trim_it,
+               const bt_event *event);
 BT_HIDDEN
-const struct bt_packet *trimmer_new_packet(struct trimmer_iterator *trim_it,
-               const struct bt_packet *packet);
+const bt_packet *trimmer_new_packet(struct trimmer_iterator *trim_it,
+               const bt_packet *packet);
 BT_HIDDEN
-const struct bt_packet *trimmer_close_packet(struct trimmer_iterator *trim_it,
-               const struct bt_packet *packet);
+const bt_packet *trimmer_close_packet(struct trimmer_iterator *trim_it,
+               const bt_packet *packet);
 BT_HIDDEN
 enum bt_component_status update_packet_context_field(FILE *err,
-               const struct bt_packet *writer_packet,
+               const bt_packet *writer_packet,
                const char *name, int64_t value);
 
 #endif /* BABELTRACE_PLUGIN_TRIMMER_COPY_H */
index 0f9d248736edabf52846df3b7f42fdf675424142..b7e958ac937b88facf94102095a804beb37187d5 100644 (file)
 static
 gboolean close_packets(gpointer key, gpointer value, gpointer user_data)
 {
-       const struct bt_packet *writer_packet = value;
+       const bt_packet *writer_packet = value;
 
        bt_packet_put_ref(writer_packet);
        return TRUE;
 }
 
 BT_HIDDEN
-void trimmer_iterator_finalize(struct bt_self_notification_iterator *it)
+void trimmer_iterator_finalize(bt_self_notification_iterator *it)
 {
        struct trimmer_iterator *trim_it;
 
@@ -65,7 +65,7 @@ void trimmer_iterator_finalize(struct bt_self_notification_iterator *it)
 
 BT_HIDDEN
 enum bt_notification_iterator_status trimmer_iterator_init(
-               struct bt_self_notification_iterator *iterator,
+               bt_self_notification_iterator *iterator,
                struct bt_private_port *port)
 {
        enum bt_notification_iterator_status ret =
@@ -74,7 +74,7 @@ enum bt_notification_iterator_status trimmer_iterator_init(
        enum bt_connection_status conn_status;
        struct bt_private_port *input_port = NULL;
        struct bt_private_connection *connection = NULL;
-       struct bt_self_component *component =
+       bt_self_component *component =
                bt_self_notification_iterator_get_private_component(iterator);
        struct trimmer_iterator *it_data = g_new0(struct trimmer_iterator, 1);
 
@@ -174,24 +174,24 @@ error:
 }
 
 static
-const struct bt_notification *evaluate_event_notification(
-               const struct bt_notification *notification,
+const bt_notification *evaluate_event_notification(
+               const bt_notification *notification,
                struct trimmer_iterator *trim_it,
                struct trimmer_bound *begin, struct trimmer_bound *end,
                bool *_event_in_range, bool *finished)
 {
        int64_t ts;
        int clock_ret;
-       const struct bt_event *event = NULL, *writer_event;
+       const bt_event *event = NULL, *writer_event;
        bool in_range = true;
-       const struct bt_clock_class *clock_class = NULL;
-       const struct bt_trace *trace = NULL;
-       const struct bt_stream *stream = NULL;
-       const struct bt_stream_class *stream_class = NULL;
-       struct bt_clock_value *clock_value = NULL;
+       const bt_clock_class *clock_class = NULL;
+       const bt_trace *trace = NULL;
+       const bt_stream *stream = NULL;
+       const bt_stream_class *stream_class = NULL;
+       bt_clock_value *clock_value = NULL;
        bool lazy_update = false;
-       const struct bt_notification *new_notification = NULL;
-       struct bt_clock_class_priority_map *cc_prio_map;
+       const bt_notification *new_notification = NULL;
+       bt_clock_class_priority_map *cc_prio_map;
 
        event = bt_notification_event_get_event(notification);
        BT_ASSERT(event);
@@ -268,14 +268,14 @@ end:
 }
 
 static
-int ns_from_integer_field(const struct bt_field *integer, int64_t *ns)
+int ns_from_integer_field(const bt_field *integer, int64_t *ns)
 {
        int ret = 0;
        int is_signed;
        uint64_t raw_clock_value;
-       const struct bt_field_class *integer_class = NULL;
-       const struct bt_clock_class *clock_class = NULL;
-       struct bt_clock_value *clock_value = NULL;
+       const bt_field_class *integer_class = NULL;
+       const bt_clock_class *clock_class = NULL;
+       bt_clock_value *clock_value = NULL;
 
        integer_class = bt_field_get_class(integer);
        BT_ASSERT(integer_class);
@@ -329,14 +329,14 @@ static uint64_t ns_from_value(uint64_t frequency, uint64_t value)
  * timestamp minus the offset.
  */
 static
-int64_t get_raw_timestamp(const struct bt_packet *writer_packet,
+int64_t get_raw_timestamp(const bt_packet *writer_packet,
                int64_t timestamp)
 {
-       const struct bt_clock_class *writer_clock_class;
+       const bt_clock_class *writer_clock_class;
        int64_t sec_offset, cycles_offset, ns;
-       const struct bt_trace *writer_trace;
-       const struct bt_stream *writer_stream;
-       const struct bt_stream_class *writer_stream_class;
+       const bt_trace *writer_trace;
+       const bt_stream *writer_stream;
+       const bt_stream_class *writer_stream_class;
        int ret;
        uint64_t freq;
 
@@ -375,19 +375,19 @@ int64_t get_raw_timestamp(const struct bt_packet *writer_packet,
 }
 
 static
-const struct bt_notification *evaluate_packet_notification(
-               const struct bt_notification *notification,
+const bt_notification *evaluate_packet_notification(
+               const bt_notification *notification,
                struct trimmer_iterator *trim_it,
                struct trimmer_bound *begin, struct trimmer_bound *end,
                bool *_packet_in_range, bool *finished)
 {
        int64_t begin_ns, pkt_begin_ns, end_ns, pkt_end_ns;
        bool in_range = true;
-       const struct bt_packet *packet = NULL, *writer_packet = NULL;
-       const struct bt_field *packet_context = NULL,
+       const bt_packet *packet = NULL, *writer_packet = NULL;
+       const bt_field *packet_context = NULL,
                        *timestamp_begin = NULL,
                        *timestamp_end = NULL;
-       const struct bt_notification *new_notification = NULL;
+       const bt_notification *new_notification = NULL;
        enum bt_component_status ret;
        bool lazy_update = false;
 
@@ -501,11 +501,11 @@ end_no_notif:
 }
 
 static
-const struct bt_notification *evaluate_stream_notification(
-               const struct bt_notification *notification,
+const bt_notification *evaluate_stream_notification(
+               const bt_notification *notification,
                struct trimmer_iterator *trim_it)
 {
-       const struct bt_stream *stream;
+       const bt_stream *stream;
 
        stream = bt_notification_stream_end_get_stream(notification);
        BT_ASSERT(stream);
@@ -517,13 +517,13 @@ const struct bt_notification *evaluate_stream_notification(
 /* Return true if the notification should be forwarded. */
 static
 enum bt_notification_iterator_status evaluate_notification(
-               const struct bt_notification **notification,
+               const bt_notification **notification,
                struct trimmer_iterator *trim_it,
                struct trimmer_bound *begin, struct trimmer_bound *end,
                bool *in_range)
 {
        enum bt_notification_type type;
-       const struct bt_notification *new_notification = NULL;
+       const bt_notification *new_notification = NULL;
        bool finished = false;
 
        *in_range = true;
@@ -556,14 +556,14 @@ enum bt_notification_iterator_status evaluate_notification(
 }
 
 BT_HIDDEN
-struct bt_notification_iterator_next_method_return trimmer_iterator_next(
-               struct bt_self_notification_iterator *iterator)
+bt_notification_iterator_next_method_return trimmer_iterator_next(
+               bt_self_notification_iterator *iterator)
 {
        struct trimmer_iterator *trim_it = NULL;
-       struct bt_self_component *component = NULL;
+       bt_self_component *component = NULL;
        struct trimmer *trimmer = NULL;
-       struct bt_notification_iterator *source_it = NULL;
-       struct bt_notification_iterator_next_method_return ret = {
+       bt_notification_iterator *source_it = NULL;
+       bt_notification_iterator_next_method_return ret = {
                .status = BT_NOTIFICATION_ITERATOR_STATUS_OK,
                .notification = NULL,
        };
index e6be66a06ddda42d73536ce362edbd3e32cb6296..e3f663dd9f752ead5dafcd5f479e023c0e16ab7e 100644 (file)
@@ -32,8 +32,8 @@
 
 struct trimmer_iterator {
        /* Input iterator associated with this output iterator. */
-       struct bt_notification_iterator *input_iterator;
-       const struct bt_notification *current_notification;
+       bt_notification_iterator *input_iterator;
+       const bt_notification *current_notification;
        FILE *err;
        /* Map between reader and writer packets. */
        GHashTable *packet_map;
@@ -41,14 +41,14 @@ struct trimmer_iterator {
 
 BT_HIDDEN
 enum bt_notification_iterator_status trimmer_iterator_init(
-               struct bt_self_notification_iterator *iterator,
+               bt_self_notification_iterator *iterator,
                struct bt_private_port *port);
 
 BT_HIDDEN
-void trimmer_iterator_finalize(struct bt_self_notification_iterator *it);
+void trimmer_iterator_finalize(bt_self_notification_iterator *it);
 
 BT_HIDDEN
-struct bt_notification_iterator_next_method_return trimmer_iterator_next(
-               struct bt_self_notification_iterator *iterator);
+bt_notification_iterator_next_method_return trimmer_iterator_next(
+               bt_self_notification_iterator *iterator);
 
 #endif /* BABELTRACE_PLUGIN_TRIMMER_ITERATOR_H */
index a7bc66d572a2ede20fa4c81bfffe2d8cbe4d2c3b..0c5af14776a0c1865a0dcfd1cadb5e5086a811af 100644 (file)
@@ -48,7 +48,7 @@ struct trimmer *create_trimmer_data(void)
        return g_new0(struct trimmer, 1);
 }
 
-void finalize_trimmer(struct bt_self_component *component)
+void finalize_trimmer(bt_self_component *component)
 {
        void *data = bt_self_component_get_user_data(component);
 
@@ -72,7 +72,7 @@ void finalize_trimmer(struct bt_self_component *component)
  *   ss
  */
 static
-int timestamp_from_param(const char *param_name, struct bt_value *param,
+int timestamp_from_param(const char *param_name, bt_value *param,
                struct trimmer *trimmer, struct trimmer_bound *result_bound,
                bt_bool gmt)
 {
@@ -292,9 +292,9 @@ lazy:
 
 static
 enum bt_component_status init_from_params(struct trimmer *trimmer,
-               struct bt_value *params)
+               bt_value *params)
 {
-       struct bt_value *value = NULL;
+       bt_value *value = NULL;
        bt_bool gmt = BT_FALSE;
        enum bt_component_status ret = BT_COMPONENT_STATUS_OK;
 
@@ -345,7 +345,7 @@ end:
 }
 
 enum bt_component_status trimmer_component_init(
-       struct bt_self_component *component, struct bt_value *params,
+       bt_self_component *component, bt_value *params,
        UNUSED_VAR void *init_method_data)
 {
        enum bt_component_status ret;
index 6e0f609e868ddd58f4fd704ffc460aeed63a9b1c..f3980f079e7708af2a8caf6bac33faa657a305d3 100644 (file)
@@ -50,9 +50,9 @@ struct trimmer {
 };
 
 enum bt_component_status trimmer_component_init(
-       struct bt_self_component *component,
-       struct bt_value *params, void *init_method_data);
+       bt_self_component *component,
+       bt_value *params, void *init_method_data);
 
-void finalize_trimmer(struct bt_self_component *component);
+void finalize_trimmer(bt_self_component *component);
 
 #endif /* BABELTRACE_PLUGINS_UTILS_TRIMMER_H */
index 1eb1fa34182d95c539b06797c7e8da39c7f1e053..f4747ef7e6972769abae94c6341ba4d4a3a1c8ae 100644 (file)
@@ -157,9 +157,9 @@ void fini_python(void) {
 }
 
 static
-const struct bt_plugin *bt_plugin_from_python_plugin_info(PyObject *plugin_info)
+const bt_plugin *bt_plugin_from_python_plugin_info(PyObject *plugin_info)
 {
-       const struct bt_plugin *plugin = NULL;
+       const bt_plugin *plugin = NULL;
        PyObject *py_name = NULL;
        PyObject *py_author = NULL;
        PyObject *py_description = NULL;
@@ -332,14 +332,14 @@ const struct bt_plugin *bt_plugin_from_python_plugin_info(PyObject *plugin_info)
                size_t i;
 
                for (i = 0; i < PyList_Size(py_comp_class_addrs); i++) {
-                       struct bt_component_class *comp_class;
+                       bt_component_class *comp_class;
                        PyObject *py_comp_class_addr;
 
                        py_comp_class_addr =
                                PyList_GetItem(py_comp_class_addrs, i);
                        BT_ASSERT(py_comp_class_addr);
                        if (PyLong_Check(py_comp_class_addr)) {
-                               comp_class = (struct bt_component_class *)
+                               comp_class = (bt_component_class *)
                                        PyLong_AsUnsignedLongLong(py_comp_class_addr);
                        } else {
                                BT_LOGW("Component class address is not an integer in Python plugin info object: "
@@ -387,10 +387,10 @@ end:
 }
 
 G_MODULE_EXPORT
-struct bt_plugin_set *bt_plugin_python_create_all_from_file(const char *path)
+bt_plugin_set *bt_plugin_python_create_all_from_file(const char *path)
 {
-       struct bt_plugin_set *plugin_set = NULL;
-       const struct bt_plugin *plugin = NULL;
+       bt_plugin_set *plugin_set = NULL;
+       const bt_plugin *plugin = NULL;
        PyObject *py_plugin_info = NULL;
        gchar *basename = NULL;
        size_t path_len;
index 8611f215b2a14965b3fa1280344bd6bb3485ff7d..5ea4bde65eeec3c12b3ea1d2febdb50b778f0b10 100644 (file)
@@ -19,7 +19,7 @@
 #include <stdlib.h>
 #include <glib.h>
 
-static enum bt_plugin_status plugin_init(const struct bt_plugin *plugin)
+static enum bt_plugin_status plugin_init(const bt_plugin *plugin)
 {
        g_setenv("BT_TEST_PLUGIN_INIT_CALLED", "1", 1);
        return BT_PLUGIN_STATUS_OK;
index beac97258a09d538aaf16532805d0b4ad112606c..77e6a656f932b4d94b1af17c71d10ed9b9bd2f68 100644 (file)
 #include <babeltrace/assert-internal.h>
 
 static enum bt_self_component_status sink_consume(
-               struct bt_self_component_sink *self_comp)
+               bt_self_component_sink *self_comp)
 {
        return BT_SELF_COMPONENT_STATUS_OK;
 }
 
 static enum bt_self_notification_iterator_status src_dummy_iterator_init_method(
-               struct bt_self_notification_iterator *self_notif_iter,
-               struct bt_self_component_source *self_comp,
-               struct bt_self_component_port_output *self_port)
+               bt_self_notification_iterator *self_notif_iter,
+               bt_self_component_source *self_comp,
+               bt_self_component_port_output *self_port)
 {
        return BT_SELF_NOTIFICATION_ITERATOR_STATUS_OK;
 }
 
 static enum bt_self_notification_iterator_status flt_dummy_iterator_init_method(
-               struct bt_self_notification_iterator *self_notif_iter,
-               struct bt_self_component_filter *self_comp,
-               struct bt_self_component_port_output *self_port)
+               bt_self_notification_iterator *self_notif_iter,
+               bt_self_component_filter *self_comp,
+               bt_self_component_port_output *self_port)
 {
        return BT_SELF_NOTIFICATION_ITERATOR_STATUS_OK;
 }
 
 static void dummy_iterator_finalize_method(
-               struct bt_self_notification_iterator *self_notif_iter)
+               bt_self_notification_iterator *self_notif_iter)
 {
 }
 
 static enum bt_self_notification_iterator_status dummy_iterator_next_method(
-               struct bt_self_notification_iterator *self_notif_iter,
+               bt_self_notification_iterator *self_notif_iter,
                bt_notification_array_const notifs, uint64_t capacity,
                uint64_t *count)
 {
@@ -54,13 +54,13 @@ static enum bt_self_notification_iterator_status dummy_iterator_next_method(
 }
 
 static enum bt_query_status flt_query_method(
-               struct bt_self_component_class_filter *component_class,
-               const struct bt_query_executor *query_exec,
-               const char *object, const struct bt_value *params,
-               const struct bt_value **result)
+               bt_self_component_class_filter *component_class,
+               const bt_query_executor *query_exec,
+               const char *object, const bt_value *params,
+               const bt_value **result)
 {
-       struct bt_value *res = bt_value_array_create();
-       struct bt_value *val;
+       bt_value *res = bt_value_array_create();
+       bt_value *val;
        *result = res;
        int iret;
 
index 5a2f9a3e9622739c49e888d3b13173f3c4681b0c..387eaa81f22b2135f1c280bc410a8aad41b3ecd4 100644 (file)
@@ -47,22 +47,22 @@ enum test_event_type {
 
 struct test_event {
        enum test_event_type type;
-       const struct bt_stream *stream;
-       const struct bt_packet *packet;
+       const bt_stream *stream;
+       const bt_packet *packet;
 };
 
 static bool debug = false;
 static enum test current_test;
 static GArray *test_events;
-static struct bt_graph *graph;
-static struct bt_stream_class *src_stream_class;
-static struct bt_event_class *src_event_class;
-static struct bt_stream *src_stream1;
-static struct bt_stream *src_stream2;
-static struct bt_packet *src_stream1_packet1;
-static struct bt_packet *src_stream1_packet2;
-static struct bt_packet *src_stream2_packet1;
-static struct bt_packet *src_stream2_packet2;
+static bt_graph *graph;
+static bt_stream_class *src_stream_class;
+static bt_event_class *src_event_class;
+static bt_stream *src_stream1;
+static bt_stream *src_stream2;
+static bt_packet *src_stream1_packet1;
+static bt_packet *src_stream1_packet2;
+static bt_packet *src_stream2_packet1;
+static bt_packet *src_stream2_packet2;
 
 enum {
        SEQ_END = -1,
@@ -90,7 +90,7 @@ struct src_iter_user_data {
 };
 
 struct sink_user_data {
-       struct bt_self_component_port_input_notification_iterator *notif_iter;
+       bt_self_component_port_input_notification_iterator *notif_iter;
 };
 
 /*
@@ -241,8 +241,8 @@ bool compare_test_events(const struct test_event *expected_events)
 static
 void init_static_data(void)
 {
-       struct bt_trace_class *trace_class;
-       struct bt_trace *trace;
+       bt_trace_class *trace_class;
+       bt_trace *trace;
 
        /* Test events */
        test_events = g_array_new(FALSE, TRUE, sizeof(struct test_event));
@@ -301,7 +301,7 @@ void fini_static_data(void)
 }
 
 static
-void src_iter_finalize(struct bt_self_notification_iterator *self_notif_iter)
+void src_iter_finalize(bt_self_notification_iterator *self_notif_iter)
 {
        struct src_iter_user_data *user_data =
                bt_self_notification_iterator_get_data(
@@ -314,9 +314,9 @@ void src_iter_finalize(struct bt_self_notification_iterator *self_notif_iter)
 
 static
 enum bt_self_notification_iterator_status src_iter_init(
-               struct bt_self_notification_iterator *self_notif_iter,
-               struct bt_self_component_source *self_comp,
-               struct bt_self_component_port_output *self_port)
+               bt_self_notification_iterator *self_notif_iter,
+               bt_self_component_source *self_comp,
+               bt_self_component_port_output *self_port)
 {
        struct src_iter_user_data *user_data =
                g_new0(struct src_iter_user_data, 1);
@@ -337,11 +337,11 @@ enum bt_self_notification_iterator_status src_iter_init(
 }
 
 static
-void src_iter_next_seq_one(struct bt_self_notification_iterator* notif_iter,
+void src_iter_next_seq_one(bt_self_notification_iterator* notif_iter,
                struct src_iter_user_data *user_data,
-               const struct bt_notification **notif)
+               const bt_notification **notif)
 {
-       struct bt_packet *event_packet = NULL;
+       bt_packet *event_packet = NULL;
 
        switch (user_data->seq[user_data->at]) {
        case SEQ_STREAM1_BEGIN:
@@ -420,7 +420,7 @@ void src_iter_next_seq_one(struct bt_self_notification_iterator* notif_iter,
 
 static
 enum bt_self_notification_iterator_status src_iter_next_seq(
-               struct bt_self_notification_iterator *notif_iter,
+               bt_self_notification_iterator *notif_iter,
                struct src_iter_user_data *user_data,
                bt_notification_array_const notifs, uint64_t capacity,
                uint64_t *count)
@@ -450,7 +450,7 @@ end:
 
 static
 enum bt_self_notification_iterator_status src_iter_next(
-               struct bt_self_notification_iterator *self_notif_iter,
+               bt_self_notification_iterator *self_notif_iter,
                bt_notification_array_const notifs, uint64_t capacity,
                uint64_t *count)
 {
@@ -464,8 +464,8 @@ enum bt_self_notification_iterator_status src_iter_next(
 
 static
 enum bt_self_component_status src_init(
-               struct bt_self_component_source *self_comp,
-               const struct bt_value *params, void *init_method_data)
+               bt_self_component_source *self_comp,
+               const bt_value *params, void *init_method_data)
 {
        int ret;
 
@@ -476,19 +476,19 @@ enum bt_self_component_status src_init(
 }
 
 static
-void src_finalize(struct bt_self_component_source *self_comp)
+void src_finalize(bt_self_component_source *self_comp)
 {
 }
 
 static
-void append_test_events_from_notification(const struct bt_notification *notification)
+void append_test_events_from_notification(const bt_notification *notification)
 {
        struct test_event test_event = { 0 };
 
        switch (bt_notification_get_type(notification)) {
        case BT_NOTIFICATION_TYPE_EVENT:
        {
-               const struct bt_event *event;
+               const bt_event *event;
 
                test_event.type = TEST_EV_TYPE_NOTIF_EVENT;
                event = bt_notification_event_borrow_event_const(notification);
@@ -584,7 +584,7 @@ end:
 
 static
 enum bt_self_component_status sink_consume(
-               struct bt_self_component_sink *self_comp)
+               bt_self_component_sink *self_comp)
 {
        enum bt_self_component_status ret = BT_SELF_COMPONENT_STATUS_OK;
        struct sink_user_data *user_data =
@@ -619,9 +619,9 @@ end:
 
 static
 enum bt_self_component_status sink_port_connected(
-               struct bt_self_component_sink *self_comp,
-               struct bt_self_component_port_input *self_port,
-               const struct bt_port_output *other_port)
+               bt_self_component_sink *self_comp,
+               bt_self_component_port_input *self_port,
+               const bt_port_output *other_port)
 {
        struct sink_user_data *user_data =
                bt_self_component_get_data(
@@ -637,8 +637,8 @@ enum bt_self_component_status sink_port_connected(
 
 static
 enum bt_self_component_status sink_init(
-               struct bt_self_component_sink *self_comp,
-               const struct bt_value *params, void *init_method_data)
+               bt_self_component_sink *self_comp,
+               const bt_value *params, void *init_method_data)
 {
        struct sink_user_data *user_data = g_new0(struct sink_user_data, 1);
        int ret;
@@ -654,7 +654,7 @@ enum bt_self_component_status sink_init(
 }
 
 static
-void sink_finalize(struct bt_self_component_sink *self_comp)
+void sink_finalize(bt_self_component_sink *self_comp)
 {
        struct sink_user_data *user_data =
                bt_self_component_get_data(
@@ -669,12 +669,12 @@ void sink_finalize(struct bt_self_component_sink *self_comp)
 }
 
 static
-void create_source_sink(struct bt_graph *graph,
-               const struct bt_component_source **source,
-               const struct bt_component_sink **sink)
+void create_source_sink(bt_graph *graph,
+               const bt_component_source **source,
+               const bt_component_sink **sink)
 {
-       struct bt_component_class_source *src_comp_class;
-       struct bt_component_class_sink *sink_comp_class;
+       bt_component_class_source *src_comp_class;
+       bt_component_class_sink *sink_comp_class;
        int ret;
 
        /* Create source component */
@@ -725,10 +725,10 @@ static
 void do_std_test(enum test test, const char *name,
                const struct test_event *expected_test_events)
 {
-       const struct bt_component_source *src_comp;
-       const struct bt_component_sink *sink_comp;
-       const struct bt_port_output *upstream_port;
-       const struct bt_port_input *downstream_port;
+       const bt_component_source *src_comp;
+       const bt_component_sink *sink_comp;
+       const bt_port_output *upstream_port;
+       const bt_port_input *downstream_port;
        enum bt_graph_status graph_status = BT_GRAPH_STATUS_OK;
 
        clear_test_events();
@@ -821,11 +821,11 @@ void test_output_port_notification_iterator(void)
                { .type = TEST_EV_TYPE_END, },
                { .type = TEST_EV_TYPE_SENTINEL, },
        };
-       const struct bt_component_source *src_comp;
-       struct bt_port_output_notification_iterator *notif_iter;
+       const bt_component_source *src_comp;
+       bt_port_output_notification_iterator *notif_iter;
        enum bt_notification_iterator_status iter_status =
                BT_NOTIFICATION_ITERATOR_STATUS_OK;
-       const struct bt_port_output *upstream_port;
+       const bt_port_output *upstream_port;
 
        clear_test_events();
        current_test = TEST_OUTPUT_PORT_NOTIFICATION_ITERATOR;
index e88535e592dce820bb01fedfb00578b3d27e1c0f..0bc1b1095147086a176bf41ce20375c376a8aeef 100644 (file)
@@ -43,7 +43,7 @@ static
 void test_bool(void)
 {
        bt_bool value;
-       struct bt_value *obj;
+       bt_value *obj;
 
        obj = bt_value_bool_create();
        ok(obj && bt_value_is_bool(obj),
@@ -76,7 +76,7 @@ static
 void test_integer(void)
 {
        int64_t value;
-       struct bt_value *obj;
+       bt_value *obj;
 
        obj = bt_value_integer_create();
        ok(obj && bt_value_is_integer(obj),
@@ -107,7 +107,7 @@ static
 void test_real(void)
 {
        double value;
-       struct bt_value *obj;
+       bt_value *obj;
 
        obj = bt_value_real_create();
        ok(obj && bt_value_is_real(obj),
@@ -139,7 +139,7 @@ static
 void test_string(void)
 {
        const char *value;
-       struct bt_value *obj;
+       bt_value *obj;
 
        obj = bt_value_string_create();
        ok(obj && bt_value_is_string(obj),
@@ -174,9 +174,9 @@ void test_array(void)
        bt_bool bool_value;
        int64_t int_value;
        double real_value;
-       struct bt_value *obj;
+       bt_value *obj;
        const char *string_value;
-       struct bt_value *array_obj;
+       bt_value *array_obj;
 
        array_obj = bt_value_array_create();
        ok(array_obj && bt_value_is_array(array_obj),
@@ -296,7 +296,7 @@ void test_array(void)
 }
 
 static
-bt_bool test_map_foreach_cb_count(const char *key, struct bt_value *object,
+bt_bool test_map_foreach_cb_count(const char *key, bt_value *object,
        void *data)
 {
        int *count = data;
@@ -324,7 +324,7 @@ struct map_foreach_checklist {
 };
 
 static
-bt_bool test_map_foreach_cb_check(const char *key, struct bt_value *object,
+bt_bool test_map_foreach_cb_check(const char *key, bt_value *object,
        void *data)
 {
        struct map_foreach_checklist *checklist = data;
@@ -475,8 +475,8 @@ void test_map(void)
        bt_bool bool_value;
        int64_t int_value;
        double real_value;
-       struct bt_value *obj;
-       struct bt_value *map_obj;
+       bt_value *obj;
+       bt_value *map_obj;
        struct map_foreach_checklist checklist;
 
        map_obj = bt_value_map_create();
@@ -615,11 +615,11 @@ void test_compare_null(void)
 static
 void test_compare_bool(void)
 {
-       struct bt_value *bool1 =
+       bt_value *bool1 =
                bt_value_bool_create_init(BT_FALSE);
-       struct bt_value *bool2 =
+       bt_value *bool2 =
                bt_value_bool_create_init(BT_TRUE);
-       struct bt_value *bool3 =
+       bt_value *bool3 =
                bt_value_bool_create_init(BT_FALSE);
 
        BT_ASSERT(bool1 && bool2 && bool3);
@@ -641,11 +641,11 @@ void test_compare_bool(void)
 static
 void test_compare_integer(void)
 {
-       struct bt_value *int1 =
+       bt_value *int1 =
                bt_value_integer_create_init(10);
-       struct bt_value *int2 =
+       bt_value *int2 =
                bt_value_integer_create_init(-23);
-       struct bt_value *int3 =
+       bt_value *int3 =
                bt_value_integer_create_init(10);
 
        BT_ASSERT(int1 && int2 && int3);
@@ -667,11 +667,11 @@ void test_compare_integer(void)
 static
 void test_compare_real(void)
 {
-       struct bt_value *real1 =
+       bt_value *real1 =
                bt_value_real_create_init(17.38);
-       struct bt_value *real2 =
+       bt_value *real2 =
                bt_value_real_create_init(-14.23);
-       struct bt_value *real3 =
+       bt_value *real3 =
                bt_value_real_create_init(17.38);
 
        BT_ASSERT(real1 && real2 && real3);
@@ -694,11 +694,11 @@ void test_compare_real(void)
 static
 void test_compare_string(void)
 {
-       struct bt_value *string1 =
+       bt_value *string1 =
                bt_value_string_create_init("hello");
-       struct bt_value *string2 =
+       bt_value *string2 =
                bt_value_string_create_init("bt_value");
-       struct bt_value *string3 =
+       bt_value *string3 =
                bt_value_string_create_init("hello");
 
        BT_ASSERT(string1 && string2 && string3);
@@ -721,9 +721,9 @@ void test_compare_string(void)
 static
 void test_compare_array(void)
 {
-       struct bt_value *array1 = bt_value_array_create();
-       struct bt_value *array2 = bt_value_array_create();
-       struct bt_value *array3 = bt_value_array_create();
+       bt_value *array1 = bt_value_array_create();
+       bt_value *array2 = bt_value_array_create();
+       bt_value *array3 = bt_value_array_create();
        enum bt_value_status status;
 
        BT_ASSERT(array1 && array2 && array3);
@@ -772,9 +772,9 @@ void test_compare_array(void)
 static
 void test_compare_map(void)
 {
-       struct bt_value *map1 = bt_value_map_create();
-       struct bt_value *map2 = bt_value_map_create();
-       struct bt_value *map3 = bt_value_map_create();
+       bt_value *map1 = bt_value_map_create();
+       bt_value *map2 = bt_value_map_create();
+       bt_value *map3 = bt_value_map_create();
        enum bt_value_status status;
 
        BT_ASSERT(map1 && map2 && map3);
@@ -847,13 +847,13 @@ void test_copy(void)
         * bt_value_compare() elsewhere, then the deep copy is a
         * success.
         */
-       struct bt_value *null_copy_obj;
-       struct bt_value *bool_obj, *bool_copy_obj;
-       struct bt_value *integer_obj, *integer_copy_obj;
-       struct bt_value *real_obj, *real_copy_obj;
-       struct bt_value *string_obj, *string_copy_obj;
-       struct bt_value *array_obj, *array_copy_obj;
-       struct bt_value *map_obj, *map_copy_obj;
+       bt_value *null_copy_obj;
+       bt_value *bool_obj, *bool_copy_obj;
+       bt_value *integer_obj, *integer_copy_obj;
+       bt_value *real_obj, *real_copy_obj;
+       bt_value *string_obj, *string_copy_obj;
+       bt_value *array_obj, *array_copy_obj;
+       bt_value *map_obj, *map_copy_obj;
        enum bt_value_status status;
 
        bool_obj = bt_value_bool_create_init(BT_TRUE);
@@ -930,11 +930,11 @@ void test_copy(void)
 }
 
 static
-bt_bool compare_map_elements(const struct bt_value *map_a, const struct bt_value *map_b,
+bt_bool compare_map_elements(const bt_value *map_a, const bt_value *map_b,
                const char *key)
 {
-       const struct bt_value *elem_a = NULL;
-       const struct bt_value *elem_b = NULL;
+       const bt_value *elem_a = NULL;
+       const bt_value *elem_b = NULL;
        bt_bool equal;
 
        elem_a = bt_value_map_borrow_entry_value_const(map_a, key);
@@ -946,10 +946,10 @@ bt_bool compare_map_elements(const struct bt_value *map_a, const struct bt_value
 static
 void test_extend(void)
 {
-       struct bt_value *base_map = bt_value_map_create();
-       struct bt_value *extension_map = bt_value_map_create();
-       struct bt_value *extended_map = NULL;
-       struct bt_value *array = bt_value_array_create();
+       bt_value *base_map = bt_value_map_create();
+       bt_value *extension_map = bt_value_map_create();
+       bt_value *extended_map = NULL;
+       bt_value *array = bt_value_array_create();
        enum bt_value_status status;
 
        BT_ASSERT(base_map);
index 4f04fb48892f649d3ab6a17389410e11f2f7db9f..43c236e49d98b20607767c454720ccdbb6bda085 100644 (file)
@@ -58,78 +58,78 @@ struct event {
 
        union {
                struct {
-                       const struct bt_component *comp;
-                       const struct bt_port *self_port;
-                       const struct bt_port *other_port;
+                       const bt_component *comp;
+                       const bt_port *self_port;
+                       const bt_port *other_port;
                } src_comp_accept_output_port_connection;
 
                struct {
-                       const struct bt_component *comp;
-                       const struct bt_port *self_port;
-                       const struct bt_port *other_port;
+                       const bt_component *comp;
+                       const bt_port *self_port;
+                       const bt_port *other_port;
                } sink_comp_accept_input_port_connection;
 
                struct {
-                       const struct bt_component *comp;
-                       const struct bt_port *self_port;
-                       const struct bt_port *other_port;
+                       const bt_component *comp;
+                       const bt_port *self_port;
+                       const bt_port *other_port;
                } src_comp_output_port_connected;
 
                struct {
-                       const struct bt_component *comp;
-                       const struct bt_port *self_port;
-                       const struct bt_port *other_port;
+                       const bt_component *comp;
+                       const bt_port *self_port;
+                       const bt_port *other_port;
                } sink_comp_input_port_connected;
 
                struct {
-                       const struct bt_component *comp;
-                       const struct bt_port *self_port;
+                       const bt_component *comp;
+                       const bt_port *self_port;
                } src_comp_output_port_disconnected;
 
                struct {
-                       const struct bt_component *comp;
-                       const struct bt_port *self_port;
+                       const bt_component *comp;
+                       const bt_port *self_port;
                } sink_comp_input_port_disconnected;
 
                struct {
-                       const struct bt_component *comp;
-                       const struct bt_port *port;
+                       const bt_component *comp;
+                       const bt_port *port;
                } graph_src_output_port_added;
 
                struct {
-                       const struct bt_component *comp;
-                       const struct bt_port *port;
+                       const bt_component *comp;
+                       const bt_port *port;
                } graph_sink_input_port_added;
 
                struct {
-                       const struct bt_component *comp;
-                       const struct bt_port *port;
+                       const bt_component *comp;
+                       const bt_port *port;
                } graph_src_output_port_removed;
 
                struct {
-                       const struct bt_component *comp;
-                       const struct bt_port *port;
+                       const bt_component *comp;
+                       const bt_port *port;
                } graph_sink_input_port_removed;
 
                struct {
-                       const struct bt_component *upstream_comp;
-                       const struct bt_component *downstream_comp;
-                       const struct bt_port *upstream_port;
-                       const struct bt_port *downstream_port;
+                       const bt_component *upstream_comp;
+                       const bt_component *downstream_comp;
+                       const bt_port *upstream_port;
+                       const bt_port *downstream_port;
                } graph_src_sink_ports_connected;
 
                struct {
-                       const struct bt_component *upstream_comp;
-                       const struct bt_component *downstream_comp;
-                       const struct bt_port *upstream_port;
-                       const struct bt_port *downstream_port;
+                       const bt_component *upstream_comp;
+                       const bt_component *downstream_comp;
+                       const bt_port *upstream_port;
+                       const bt_port *downstream_port;
                } graph_src_sink_ports_disconnected;
        } data;
 };
 
 static GArray *events;
-static struct bt_component_class_source *src_comp_class;
-static struct bt_component_class_sink *sink_comp_class;
+static bt_component_class_source *src_comp_class;
+static bt_component_class_sink *sink_comp_class;
 static enum test current_test;
 
 static
@@ -365,7 +365,7 @@ size_t event_pos(struct event *event)
 
 static
 enum bt_self_notification_iterator_status src_iter_next(
-               struct bt_self_notification_iterator *self_iterator,
+               bt_self_notification_iterator *self_iterator,
                bt_notification_array_const notifs, uint64_t capacity,
                uint64_t *count)
 {
@@ -374,9 +374,9 @@ enum bt_self_notification_iterator_status src_iter_next(
 
 static
 enum bt_self_component_status src_accept_output_port_connection(
-               struct bt_self_component_source *self_comp,
-               struct bt_self_component_port_output *self_comp_port,
-               const struct bt_port_input *other_port)
+               bt_self_component_source *self_comp,
+               bt_self_component_port_output *self_comp_port,
+               const bt_port_input *other_port)
 {
        struct event event = {
                .type = SRC_COMP_ACCEPT_OUTPUT_PORT_CONNECTION,
@@ -397,9 +397,9 @@ enum bt_self_component_status src_accept_output_port_connection(
 
 static
 enum bt_self_component_status sink_accept_input_port_connection(
-               struct bt_self_component_sink *self_comp,
-               struct bt_self_component_port_input *self_comp_port,
-               const struct bt_port_output *other_port)
+               bt_self_component_sink *self_comp,
+               bt_self_component_port_input *self_comp_port,
+               const bt_port_output *other_port)
 {
        struct event event = {
                .type = SINK_COMP_ACCEPT_INPUT_PORT_CONNECTION,
@@ -420,9 +420,9 @@ enum bt_self_component_status sink_accept_input_port_connection(
 
 static
 enum bt_self_component_status src_output_port_connected(
-               struct bt_self_component_source *self_comp,
-               struct bt_self_component_port_output *self_comp_port,
-               const struct bt_port_input *other_port)
+               bt_self_component_source *self_comp,
+               bt_self_component_port_output *self_comp_port,
+               const bt_port_input *other_port)
 {
        int ret;
        struct event event = {
@@ -457,9 +457,9 @@ enum bt_self_component_status src_output_port_connected(
 
 static
 enum bt_self_component_status sink_input_port_connected(
-               struct bt_self_component_sink *self_comp,
-               struct bt_self_component_port_input *self_comp_port,
-               const struct bt_port_output *other_port)
+               bt_self_component_sink *self_comp,
+               bt_self_component_port_input *self_comp_port,
+               const bt_port_output *other_port)
 {
        struct event event = {
                .type = SINK_COMP_INPUT_PORT_CONNECTED,
@@ -484,8 +484,8 @@ enum bt_self_component_status sink_input_port_connected(
 }
 
 static
-void src_output_port_disconnected(struct bt_self_component_source *self_comp,
-               struct bt_self_component_port_output *self_comp_port)
+void src_output_port_disconnected(bt_self_component_source *self_comp,
+               bt_self_component_port_output *self_comp_port)
 {
        int ret;
        struct event event = {
@@ -514,8 +514,8 @@ void src_output_port_disconnected(struct bt_self_component_source *self_comp,
 }
 
 static
-void sink_input_port_disconnected(struct bt_self_component_sink *self_comp,
-               struct bt_self_component_port_input *self_comp_port)
+void sink_input_port_disconnected(bt_self_component_sink *self_comp,
+               bt_self_component_port_input *self_comp_port)
 {
        struct event event = {
                .type = SINK_COMP_INPUT_PORT_DISCONNECTED,
@@ -534,8 +534,8 @@ void sink_input_port_disconnected(struct bt_self_component_sink *self_comp,
 
 static
 enum bt_self_component_status src_init(
-       struct bt_self_component_source *self_comp,
-       const struct bt_value *params, void *init_method_data)
+       bt_self_component_source *self_comp,
+       const bt_value *params, void *init_method_data)
 {
        int ret;
 
@@ -547,8 +547,8 @@ enum bt_self_component_status src_init(
 
 static
 enum bt_self_component_status sink_init(
-       struct bt_self_component_sink *self_comp,
-       const struct bt_value *params, void *init_method_data)
+       bt_self_component_sink *self_comp,
+       const bt_value *params, void *init_method_data)
 {
        int ret;
 
@@ -560,9 +560,9 @@ enum bt_self_component_status sink_init(
 
 static
 enum bt_self_component_status sink_consume(
-               struct bt_self_component_sink *self_comp)
+               bt_self_component_sink *self_comp)
 {
-       struct bt_self_component_port_input *def_port;
+       bt_self_component_port_input *def_port;
        int ret;
 
        switch (current_test) {
@@ -584,8 +584,8 @@ enum bt_self_component_status sink_consume(
 }
 
 static
-void graph_src_output_port_added(const struct bt_component_source *comp,
-               const struct bt_port_output *port, void *data)
+void graph_src_output_port_added(const bt_component_source *comp,
+               const bt_port_output *port, void *data)
 {
        struct event event = {
                .type = GRAPH_SRC_OUTPUT_PORT_ADDED,
@@ -599,8 +599,8 @@ void graph_src_output_port_added(const struct bt_component_source *comp,
 }
 
 static
-void graph_sink_input_port_added(const struct bt_component_sink *comp,
-               const struct bt_port_input *port, void *data)
+void graph_sink_input_port_added(const bt_component_sink *comp,
+               const bt_port_input *port, void *data)
 {
        struct event event = {
                .type = GRAPH_SINK_INPUT_PORT_ADDED,
@@ -614,8 +614,8 @@ void graph_sink_input_port_added(const struct bt_component_sink *comp,
 }
 
 static
-void graph_src_output_port_removed(const struct bt_component_source *comp,
-               const struct bt_port_output *port, void *data)
+void graph_src_output_port_removed(const bt_component_source *comp,
+               const bt_port_output *port, void *data)
 {
        struct event event = {
                .type = GRAPH_SRC_OUTPUT_PORT_REMOVED,
@@ -629,8 +629,8 @@ void graph_src_output_port_removed(const struct bt_component_source *comp,
 }
 
 static
-void graph_sink_input_port_removed(const struct bt_component_sink *comp,
-               const struct bt_port_input *port, void *data)
+void graph_sink_input_port_removed(const bt_component_sink *comp,
+               const bt_port_input *port, void *data)
 {
        struct event event = {
                .type = GRAPH_SINK_INPUT_PORT_REMOVED,
@@ -644,10 +644,10 @@ void graph_sink_input_port_removed(const struct bt_component_sink *comp,
 }
 
 static
-void graph_src_sink_ports_connected(const struct bt_component_source *upstream_comp,
-               const struct bt_component_sink *downstream_comp,
-               const struct bt_port_output *upstream_port,
-               const struct bt_port_input *downstream_port, void *data)
+void graph_src_sink_ports_connected(const bt_component_source *upstream_comp,
+               const bt_component_sink *downstream_comp,
+               const bt_port_output *upstream_port,
+               const bt_port_input *downstream_port, void *data)
 {
        struct event event = {
                .type = GRAPH_SRC_SINK_PORTS_CONNECTED,
@@ -667,10 +667,10 @@ void graph_src_sink_ports_connected(const struct bt_component_source *upstream_c
 }
 
 static
-void graph_src_sink_ports_disconnected(const struct bt_component_source *upstream_comp,
-               const struct bt_component_sink *downstream_comp,
-               const struct bt_port_output *upstream_port,
-               const struct bt_port_input *downstream_port, void *data)
+void graph_src_sink_ports_disconnected(const bt_component_source *upstream_comp,
+               const bt_component_sink *downstream_comp,
+               const bt_port_output *upstream_port,
+               const bt_port_input *downstream_port, void *data)
 {
        struct event event = {
                .type = GRAPH_SRC_SINK_PORTS_DISCONNECTED,
@@ -737,9 +737,9 @@ void fini_test(void)
 }
 
 static
-const struct bt_component_source *create_src(struct bt_graph *graph)
+const bt_component_source *create_src(bt_graph *graph)
 {
-       const struct bt_component_source *comp;
+       const bt_component_source *comp;
        int ret;
 
        ret = bt_graph_add_source_component(graph, src_comp_class,
@@ -749,9 +749,9 @@ const struct bt_component_source *create_src(struct bt_graph *graph)
 }
 
 static
-const struct bt_component_sink *create_sink(struct bt_graph *graph)
+const bt_component_sink *create_sink(bt_graph *graph)
 {
-       const struct bt_component_sink *comp;
+       const bt_component_sink *comp;
        int ret;
 
        ret = bt_graph_add_sink_component(graph, sink_comp_class,
@@ -761,9 +761,9 @@ const struct bt_component_sink *create_sink(struct bt_graph *graph)
 }
 
 static
-struct bt_graph *create_graph(void)
+bt_graph *create_graph(void)
 {
-       struct bt_graph *graph = bt_graph_create();
+       bt_graph *graph = bt_graph_create();
        int ret;
 
        BT_ASSERT(graph);
@@ -800,15 +800,15 @@ static
 void test_sink_removes_port_in_consume_then_src_removes_disconnected_port(void)
 {
        int ret;
-       const struct bt_component_source *src;
-       const struct bt_component_sink *sink;
-       const struct bt_component *gsrc;
-       const struct bt_component *gsink;
-       struct bt_graph *graph;
-       const struct bt_port_output *src_def_port;
-       const struct bt_port_input *sink_def_port;
-       const struct bt_port *gsrc_def_port;
-       const struct bt_port *gsink_def_port;
+       const bt_component_source *src;
+       const bt_component_sink *sink;
+       const bt_component *gsrc;
+       const bt_component *gsink;
+       bt_graph *graph;
+       const bt_port_output *src_def_port;
+       const bt_port_input *sink_def_port;
+       const bt_port *gsrc_def_port;
+       const bt_port *gsink_def_port;
        struct event event;
        enum bt_graph_status status;
        size_t src_accept_port_connection_pos;
@@ -982,15 +982,15 @@ static
 void test_sink_removes_port_in_consume(void)
 {
        int ret;
-       const struct bt_component_source *src;
-       const struct bt_component_sink *sink;
-       const struct bt_component *gsrc;
-       const struct bt_component *gsink;
-       struct bt_graph *graph;
-       const struct bt_port_output *src_def_port;
-       const struct bt_port_input *sink_def_port;
-       const struct bt_port *gsrc_def_port;
-       const struct bt_port *gsink_def_port;
+       const bt_component_source *src;
+       const bt_component_sink *sink;
+       const bt_component *gsrc;
+       const bt_component *gsink;
+       bt_graph *graph;
+       const bt_port_output *src_def_port;
+       const bt_port_input *sink_def_port;
+       const bt_port *gsrc_def_port;
+       const bt_port *gsink_def_port;
        struct event event;
        enum bt_graph_status status;
        size_t src_accept_port_connection_pos;
@@ -1147,17 +1147,17 @@ void test_sink_removes_port_in_consume(void)
 static
 void test_src_adds_port_in_port_connected(void)
 {
-       const struct bt_component_source *src;
-       const struct bt_component_sink *sink;
-       const struct bt_component *gsrc;
-       const struct bt_component *gsink;
-       struct bt_graph *graph;
-       const struct bt_port_output *src_def_port;
-       const struct bt_port_output *src_hello_port;
-       const struct bt_port_input *sink_def_port;
-       const struct bt_port *gsrc_def_port;
-       const struct bt_port *gsrc_hello_port;
-       const struct bt_port *gsink_def_port;
+       const bt_component_source *src;
+       const bt_component_sink *sink;
+       const bt_component *gsrc;
+       const bt_component *gsink;
+       bt_graph *graph;
+       const bt_port_output *src_def_port;
+       const bt_port_output *src_hello_port;
+       const bt_port_input *sink_def_port;
+       const bt_port *gsrc_def_port;
+       const bt_port *gsrc_hello_port;
+       const bt_port *gsink_def_port;
        struct event event;
        enum bt_graph_status status;
        size_t src_accept_port_connection_pos;
@@ -1276,15 +1276,15 @@ void test_src_adds_port_in_port_connected(void)
 static
 void test_simple(void)
 {
-       const struct bt_component_source *src;
-       const struct bt_component_sink *sink;
-       const struct bt_component *gsrc;
-       const struct bt_component *gsink;
-       struct bt_graph *graph;
-       const struct bt_port_output *src_def_port;
-       const struct bt_port_input *sink_def_port;
-       const struct bt_port *gsrc_def_port;
-       const struct bt_port *gsink_def_port;
+       const bt_component_source *src;
+       const bt_component_sink *sink;
+       const bt_component *gsrc;
+       const bt_component *gsink;
+       bt_graph *graph;
+       const bt_port_output *src_def_port;
+       const bt_port_input *sink_def_port;
+       const bt_port *gsrc_def_port;
+       const bt_port *gsink_def_port;
        struct event event;
        enum bt_graph_status status;
        size_t src_accept_port_connection_pos;
@@ -1386,16 +1386,16 @@ void test_simple(void)
 static
 void test_src_port_connected_error(void)
 {
-       const struct bt_component_source *src;
-       const struct bt_component_sink *sink;
-       const struct bt_component *gsrc;
-       const struct bt_component *gsink;
-       struct bt_graph *graph;
-       const struct bt_port_output *src_def_port;
-       const struct bt_port_input *sink_def_port;
-       const struct bt_port *gsrc_def_port;
-       const struct bt_port *gsink_def_port;
-       const struct bt_connection *conn = NULL;
+       const bt_component_source *src;
+       const bt_component_sink *sink;
+       const bt_component *gsrc;
+       const bt_component *gsink;
+       bt_graph *graph;
+       const bt_port_output *src_def_port;
+       const bt_port_input *sink_def_port;
+       const bt_port *gsrc_def_port;
+       const bt_port *gsink_def_port;
+       const bt_connection *conn = NULL;
        struct event event;
        enum bt_graph_status status;
        size_t src_accept_port_connection_pos;
@@ -1473,16 +1473,16 @@ void test_src_port_connected_error(void)
 static
 void test_sink_port_connected_error(void)
 {
-       const struct bt_component_source *src;
-       const struct bt_component_sink *sink;
-       const struct bt_component *gsrc;
-       const struct bt_component *gsink;
-       struct bt_graph *graph;
-       const struct bt_port_output *src_def_port;
-       const struct bt_port_input *sink_def_port;
-       const struct bt_port *gsrc_def_port;
-       const struct bt_port *gsink_def_port;
-       const struct bt_connection *conn = NULL;
+       const bt_component_source *src;
+       const bt_component_sink *sink;
+       const bt_component *gsrc;
+       const bt_component *gsink;
+       bt_graph *graph;
+       const bt_port_output *src_def_port;
+       const bt_port_input *sink_def_port;
+       const bt_port *gsrc_def_port;
+       const bt_port *gsink_def_port;
+       const bt_connection *conn = NULL;
        struct event event;
        enum bt_graph_status status;
        size_t src_accept_port_connection_pos;
@@ -1583,7 +1583,7 @@ void test_sink_port_connected_error(void)
 static
 void test_empty_graph(void)
 {
-       struct bt_graph *graph;
+       bt_graph *graph;
 
        prepare_test(TEST_EMPTY_GRAPH, "empty graph");
        graph = create_graph();
index c8fc32d7be33a98c5a20cdef94e5712f7882872b..e9739f3e928f2f4be3eaed95a000e84d414216ca 100644 (file)
@@ -64,8 +64,8 @@ static char *get_test_plugin_path(const char *plugin_dir,
 
 static void test_minimal(const char *plugin_dir)
 {
-       const struct bt_plugin_set *plugin_set;
-       const struct bt_plugin *plugin;
+       const bt_plugin_set *plugin_set;
+       const bt_plugin *plugin;
        char *minimal_path = get_test_plugin_path(plugin_dir, "minimal");
 
        BT_ASSERT(minimal_path);
@@ -109,23 +109,23 @@ static void test_minimal(const char *plugin_dir)
 
 static void test_sfs(const char *plugin_dir)
 {
-       const struct bt_plugin_set *plugin_set;
-       const struct bt_plugin *plugin;
-       const struct bt_component_class_sink *sink_comp_class;
-       const struct bt_component_class_source *source_comp_class;
-       const struct bt_component_class_filter *filter_comp_class;
-       const struct bt_component_sink *sink_component;
+       const bt_plugin_set *plugin_set;
+       const bt_plugin *plugin;
+       const bt_component_class_sink *sink_comp_class;
+       const bt_component_class_source *source_comp_class;
+       const bt_component_class_filter *filter_comp_class;
+       const bt_component_sink *sink_component;
        char *sfs_path = get_test_plugin_path(plugin_dir, "sfs");
        unsigned int major, minor, patch;
        const char *extra;
-       struct bt_value *params;
-       const struct bt_value *results;
-       const struct bt_value *object;
-       const struct bt_value *res_params;
-       struct bt_graph *graph;
+       bt_value *params;
+       const bt_value *results;
+       const bt_value *object;
+       const bt_value *res_params;
+       bt_graph *graph;
        const char *object_str;
        enum bt_graph_status graph_ret;
-       struct bt_query_executor *query_exec = bt_query_executor_create();
+       bt_query_executor *query_exec = bt_query_executor_create();
        int ret;
 
        BT_ASSERT(query_exec);
@@ -210,7 +210,7 @@ static void test_sfs(const char *plugin_dir)
 
 static void test_create_all_from_dir(const char *plugin_dir)
 {
-       const struct bt_plugin_set *plugin_set;
+       const bt_plugin_set *plugin_set;
 
        diag("create from all test below");
 
@@ -232,7 +232,7 @@ static void test_create_all_from_dir(const char *plugin_dir)
 static void test_find(const char *plugin_dir)
 {
        int ret;
-       const struct bt_plugin *plugin;
+       const bt_plugin *plugin;
        char *plugin_path;
 
        ok(!bt_plugin_find(NON_EXISTING_PATH),
index 1c827892a7598b09e7d0c0c486caf2a6638a3a7c..61c3de613e44587ed250a5caf4474a1bc247c120 100644 (file)
 #define NR_TESTS 37
 
 struct user {
-       struct bt_trace_class *tc;
-       struct bt_stream_class *sc;
-       struct bt_event_class *ec;
-       struct bt_stream *stream;
-       struct bt_event *event;
+       bt_trace_class *tc;
+       bt_stream_class *sc;
+       bt_event_class *ec;
+       bt_stream *stream;
+       bt_event *event;
 };
 
 struct writer_user {
@@ -63,11 +63,11 @@ static const size_t WRITER_USER_NR_ELEMENTS =
  *     - uint16_t payload_16;
  *     - uint32_t payload_32;
  */
-static struct bt_field_class *create_integer_struct(void)
+static bt_field_class *create_integer_struct(void)
 {
        int ret;
-       struct bt_field_class *structure = NULL;
-       struct bt_field_class *ui8 = NULL, *ui16 = NULL, *ui32 = NULL;
+       bt_field_class *structure = NULL;
+       bt_field_class *ui8 = NULL, *ui16 = NULL, *ui32 = NULL;
 
        structure = bt_field_class_structure_create();
        BT_ASSERT(structure);
@@ -130,12 +130,12 @@ static struct bt_ctf_field_type *create_writer_integer_struct(void)
  *     - uint16_t payload_16;
  *     - uint32_t payload_32;
  */
-static struct bt_event_class *create_simple_event(
-               struct bt_stream_class *sc, const char *name)
+static bt_event_class *create_simple_event(
+               bt_stream_class *sc, const char *name)
 {
        int ret;
-       struct bt_event_class *event = NULL;
-       struct bt_field_class *payload = NULL;
+       bt_event_class *event = NULL;
+       bt_field_class *payload = NULL;
 
        BT_ASSERT(name);
        event = bt_event_class_create(sc);
@@ -160,13 +160,13 @@ static struct bt_event_class *create_simple_event(
  *           - uint16_t payload_16;
  *           - uint32_t payload_32;
  */
-static struct bt_event_class *create_complex_event(
-               struct bt_stream_class *sc,
+static bt_event_class *create_complex_event(
+               bt_stream_class *sc,
                const char *name)
 {
        int ret;
-       struct bt_event_class *event = NULL;
-       struct bt_field_class *inner = NULL, *outer = NULL;
+       bt_event_class *event = NULL;
+       bt_field_class *inner = NULL, *outer = NULL;
 
        BT_ASSERT(name);
        event = bt_event_class_create(sc);
@@ -188,11 +188,11 @@ static struct bt_event_class *create_complex_event(
 }
 
 static void set_stream_class_field_classes(
-               struct bt_stream_class *stream_class)
+               bt_stream_class *stream_class)
 {
-       struct bt_field_class *packet_context_type;
-       struct bt_field_class *event_header_type;
-       struct bt_field_class *fc;
+       bt_field_class *packet_context_type;
+       bt_field_class *event_header_type;
+       bt_field_class *fc;
        int ret;
 
        packet_context_type = bt_field_class_structure_create();
@@ -230,11 +230,11 @@ static void set_stream_class_field_classes(
        bt_field_class_put_ref(event_header_type);
 }
 
-static void create_sc1(struct bt_trace_class *trace_class)
+static void create_sc1(bt_trace_class *trace_class)
 {
        int ret;
-       struct bt_event_class *ec1 = NULL, *ec2 = NULL;
-       struct bt_stream_class *sc1 = NULL, *ret_stream = NULL;
+       bt_event_class *ec1 = NULL, *ec2 = NULL;
+       bt_stream_class *sc1 = NULL, *ret_stream = NULL;
 
        sc1 = bt_stream_class_create(trace_class);
        BT_ASSERT(sc1);
@@ -254,11 +254,11 @@ static void create_sc1(struct bt_trace_class *trace_class)
        BT_STREAM_CLASS_PUT_REF_AND_RESET(sc1);
 }
 
-static void create_sc2(struct bt_trace_class *trace_class)
+static void create_sc2(bt_trace_class *trace_class)
 {
        int ret;
-       struct bt_event_class *ec3 = NULL;
-       struct bt_stream_class *sc2 = NULL, *ret_stream = NULL;
+       bt_event_class *ec3 = NULL;
+       bt_stream_class *sc2 = NULL, *ret_stream = NULL;
 
        sc2 = bt_stream_class_create(trace_class);
        BT_ASSERT(sc2);
@@ -272,10 +272,10 @@ static void create_sc2(struct bt_trace_class *trace_class)
        BT_STREAM_CLASS_PUT_REF_AND_RESET(sc2);
 }
 
-static void set_trace_packet_header(struct bt_trace_class *trace_class)
+static void set_trace_packet_header(bt_trace_class *trace_class)
 {
-       struct bt_field_class *packet_header_type;
-       struct bt_field_class *fc;
+       bt_field_class *packet_header_type;
+       bt_field_class *fc;
        int ret;
 
        packet_header_type = bt_field_class_structure_create();
@@ -294,9 +294,9 @@ static void set_trace_packet_header(struct bt_trace_class *trace_class)
        bt_field_class_put_ref(packet_header_type);
 }
 
-static struct bt_trace_class *create_tc1(void)
+static bt_trace_class *create_tc1(void)
 {
-       struct bt_trace_class *tc1 = NULL;
+       bt_trace_class *tc1 = NULL;
 
        tc1 = bt_trace_class_create();
        BT_ASSERT(tc1);
@@ -306,13 +306,13 @@ static struct bt_trace_class *create_tc1(void)
        return tc1;
 }
 
-static void init_weak_refs(struct bt_trace_class *tc,
-               struct bt_trace_class **tc1,
-               struct bt_stream_class **sc1,
-               struct bt_stream_class **sc2,
-               struct bt_event_class **ec1,
-               struct bt_event_class **ec2,
-               struct bt_event_class **ec3)
+static void init_weak_refs(bt_trace_class *tc,
+               bt_trace_class **tc1,
+               bt_stream_class **sc1,
+               bt_stream_class **sc2,
+               bt_event_class **ec1,
+               bt_event_class **ec2,
+               bt_event_class **ec3)
 {
        *tc1 = tc;
        *sc1 = bt_trace_class_borrow_stream_class_by_index(tc, 0);
@@ -331,9 +331,9 @@ static void test_example_scenario(void)
         * of expected reference counts without affecting them by taking
         * "real" references to the objects.
         */
-       struct bt_trace_class *tc1 = NULL, *weak_tc1 = NULL;
-       struct bt_stream_class *weak_sc1 = NULL, *weak_sc2 = NULL;
-       struct bt_event_class *weak_ec1 = NULL, *weak_ec2 = NULL,
+       bt_trace_class *tc1 = NULL, *weak_tc1 = NULL;
+       bt_stream_class *weak_sc1 = NULL, *weak_sc2 = NULL;
+       bt_event_class *weak_ec1 = NULL, *weak_ec2 = NULL,
                        *weak_ec3 = NULL;
        struct user user_a = { 0 }, user_b = { 0 }, user_c = { 0 };
 
This page took 0.276442 seconds and 4 git commands to generate.