struct bt_private_port;
extern struct bt_private_port *
-bt_private_component_filter_get_output_private_port_by_name(
+bt_private_component_filter_get_output_port_by_name(
struct bt_private_component *private_component,
const char *name);
extern struct bt_private_port *
-bt_private_component_filter_get_output_private_port_by_index(
+bt_private_component_filter_get_output_port_by_index(
struct bt_private_component *private_component, uint64_t index);
extern enum bt_component_status
-bt_private_component_filter_add_output_private_port(
+bt_private_component_filter_add_output_port(
struct bt_private_component *private_component,
const char *name, void *user_data,
struct bt_private_port **private_port);
extern struct bt_private_port *
-bt_private_component_filter_get_input_private_port_by_name(
+bt_private_component_filter_get_input_port_by_name(
struct bt_private_component *private_component,
const char *name);
extern struct bt_private_port *
-bt_private_component_filter_get_input_private_port_by_index(
+bt_private_component_filter_get_input_port_by_index(
struct bt_private_component *private_component, uint64_t index);
extern enum bt_component_status
-bt_private_component_filter_add_input_private_port(
+bt_private_component_filter_add_input_port(
struct bt_private_component *private_component,
const char *name, void *user_data,
struct bt_private_port **private_port);
struct bt_private_port;
extern struct bt_private_port *
-bt_private_component_sink_get_input_private_port_by_name(
+bt_private_component_sink_get_input_port_by_name(
struct bt_private_component *private_component,
const char *name);
extern struct bt_private_port *
-bt_private_component_sink_get_input_private_port_by_index(
+bt_private_component_sink_get_input_port_by_index(
struct bt_private_component *private_component, uint64_t index);
extern enum bt_component_status
-bt_private_component_sink_add_input_private_port(
+bt_private_component_sink_add_input_port(
struct bt_private_component *private_component,
const char *name, void *user_data,
struct bt_private_port **private_port);
struct bt_private_port;
extern struct bt_private_port *
-bt_private_component_source_get_output_private_port_by_name(
+bt_private_component_source_get_output_port_by_name(
struct bt_private_component *private_component,
const char *name);
extern struct bt_private_port *
-bt_private_component_source_get_output_private_port_by_index(
+bt_private_component_source_get_output_port_by_index(
struct bt_private_component *private_component,
uint64_t index);
extern enum bt_component_status
-bt_private_component_source_add_output_private_port(
+bt_private_component_source_add_output_port(
struct bt_private_component *private_component,
const char *name, void *user_data,
struct bt_private_port **private_port);
struct bt_private_packet *packet);
extern struct bt_private_event *
-bt_private_notification_event_borrow_private_event(
+bt_private_notification_event_borrow_event(
struct bt_private_notification *notification);
#ifdef __cplusplus
struct bt_private_packet *packet);
extern struct bt_private_packet *
-bt_private_notification_packet_begin_borrow_private_packet(
+bt_private_notification_packet_begin_borrow_packet(
struct bt_private_notification *notification);
extern struct bt_private_packet *
-bt_private_notification_packet_end_borrow_private_packet(
+bt_private_notification_packet_end_borrow_packet(
struct bt_private_notification *notification);
#ifdef __cplusplus
struct bt_private_stream *stream);
extern struct bt_private_stream *
-bt_private_notification_stream_begin_borrow_private_stream(
+bt_private_notification_stream_begin_borrow_stream(
struct bt_private_notification *notification);
extern int bt_private_notification_stream_begin_set_default_clock_value(
struct bt_private_notification *notif, uint64_t value_cycles);
extern struct bt_private_stream *
-bt_private_notification_stream_end_borrow_private_stream(
+bt_private_notification_stream_end_borrow_stream(
struct bt_private_notification *notification);
extern int bt_private_notification_stream_end_set_default_clock_value(
struct bt_port *bt_port_borrow_from_private(
struct bt_private_port *private_port);
-extern struct bt_private_connection *bt_private_port_get_private_connection(
+extern struct bt_private_connection *bt_private_port_get_connection(
struct bt_private_port *private_port);
-extern struct bt_private_component *bt_private_port_get_private_component(
+extern struct bt_private_component *bt_private_port_get_component(
struct bt_private_port *private_port);
extern enum bt_port_status bt_private_port_remove_from_component(
struct bt_private_stream_class *stream_class, uint64_t id);
extern struct bt_private_stream_class *
-bt_private_event_class_borrow_private_stream_class(
+bt_private_event_class_borrow_stream_class(
struct bt_private_event_class *event_class);
extern int bt_private_event_class_set_name(
const char *emf_uri);
extern struct bt_private_field_class *
-bt_private_event_class_borrow_specific_context_private_field_class(
+bt_private_event_class_borrow_specific_context_field_class(
struct bt_private_event_class *event_class);
-extern int bt_private_event_class_set_specific_context_private_field_class(
+extern int bt_private_event_class_set_specific_context_field_class(
struct bt_private_event_class *event_class,
struct bt_private_field_class *field_class);
extern struct bt_private_field_class *
-bt_private_event_class_borrow_payload_private_field_class(
+bt_private_event_class_borrow_payload_field_class(
struct bt_private_event_class *event_class);
-extern int bt_private_event_class_set_payload_private_field_class(
+extern int bt_private_event_class_set_payload_field_class(
struct bt_private_event_class *event_class,
struct bt_private_field_class *field_class);
struct bt_private_stream_class *stream_class);
extern
-struct bt_private_field *bt_private_event_header_field_borrow_private_field(
+struct bt_private_field *bt_private_event_header_field_borrow_field(
struct bt_private_event_header_field *field);
extern
extern struct bt_private_stream *bt_private_event_borrow_stream(
struct bt_private_event *event);
-extern struct bt_private_field *bt_private_event_borrow_header_private_field(
+extern struct bt_private_field *bt_private_event_borrow_header_field(
struct bt_private_event *event);
-extern int bt_private_event_move_private_header_field(
+extern int bt_private_event_move_header_field(
struct bt_private_event *event,
struct bt_private_event_header_field *header);
extern struct bt_private_field *
-bt_private_event_borrow_common_context_private_field(
+bt_private_event_borrow_common_context_field(
struct bt_private_event *event);
extern struct bt_private_field *
-bt_private_event_borrow_specific_context_private_field(
+bt_private_event_borrow_specific_context_field(
struct bt_private_event *event);
-extern struct bt_private_field *bt_private_event_borrow_payload_private_field(
+extern struct bt_private_field *bt_private_event_borrow_payload_field(
struct bt_private_event *event);
extern int bt_private_event_set_default_clock_value(
extern struct bt_private_field_class *
bt_private_field_class_structure_create(void);
-extern void bt_private_field_class_structure_borrow_private_member_by_index(
+extern void bt_private_field_class_structure_borrow_member_by_index(
struct bt_private_field_class *struct_field_class,
uint64_t index, const char **name,
struct bt_private_field_class **field_class);
extern
struct bt_private_field_class *
-bt_private_field_class_structure_borrow_member_private_field_class_by_name(
+bt_private_field_class_structure_borrow_member_field_class_by_name(
struct bt_private_field_class *field_class, const char *name);
-extern int bt_private_field_class_structure_append_private_member(
+extern int bt_private_field_class_structure_append_member(
struct bt_private_field_class *struct_field_class,
const char *name, struct bt_private_field_class *field_class);
struct bt_private_field_class *elem_field_class);
extern struct bt_private_field_class *
-bt_private_field_class_array_borrow_element_private_field_class(
+bt_private_field_class_array_borrow_element_field_class(
struct bt_private_field_class *field_class);
-extern int bt_private_field_class_dynamic_array_set_length_private_field_class(
+extern int bt_private_field_class_dynamic_array_set_length_field_class(
struct bt_private_field_class *field_class,
struct bt_private_field_class *length_field_class);
extern struct bt_private_field_class *
bt_private_field_class_variant_create(void);
-extern int bt_private_field_class_variant_set_selector_private_field_class(
+extern int bt_private_field_class_variant_set_selector_field_class(
struct bt_private_field_class *field_class,
struct bt_private_field_class *selector_field_class);
-extern void bt_private_field_class_variant_borrow_private_option_by_index(
+extern void bt_private_field_class_variant_borrow_option_by_index(
struct bt_private_field_class *variant_field_class,
uint64_t index, const char **name,
struct bt_private_field_class **field_class);
extern
struct bt_private_field_class *
-bt_private_field_class_variant_borrow_option_private_field_class_by_name(
+bt_private_field_class_variant_borrow_option_field_class_by_name(
struct bt_private_field_class *field_class, const char *name);
extern int bt_private_field_class_variant_append_private_option(
extern struct bt_field *bt_field_borrow_from_private(
struct bt_private_field *priv_field);
-extern struct bt_private_field_class *bt_private_field_borrow_private_class(
+extern struct bt_private_field_class *bt_private_field_borrow_class(
struct bt_private_field *field);
extern void bt_private_field_signed_integer_set_value(
extern int bt_private_field_string_clear(struct bt_private_field *field);
extern struct bt_private_field *
-bt_private_field_structure_borrow_member_private_field_by_index(
+bt_private_field_structure_borrow_member_field_by_index(
struct bt_private_field *field, uint64_t index);
extern struct bt_private_field *
-bt_private_field_structure_borrow_member_private_field_by_name(
+bt_private_field_structure_borrow_member_field_by_name(
struct bt_private_field *field, const char *name);
extern struct bt_private_field *
-bt_private_field_array_borrow_element_private_field_by_index(
+bt_private_field_array_borrow_element_field_by_index(
struct bt_private_field *field, uint64_t index);
extern int bt_private_field_dynamic_array_set_length(
struct bt_private_field *field, uint64_t length);
-extern int bt_private_field_variant_select_option_private_field(
+extern int bt_private_field_variant_select_option_field(
struct bt_private_field *field, uint64_t index);
-extern uint64_t bt_private_field_variant_get_selected_option_private_field_index(
- struct bt_private_field *field);
-
extern struct bt_private_field *
-bt_private_field_variant_borrow_selected_option_private_field(
+bt_private_field_variant_borrow_selected_option_field(
struct bt_private_field *field);
#ifdef __cplusplus
struct bt_private_stream_class *stream_class);
extern
-struct bt_private_field *bt_private_packet_context_field_borrow_private_field(
+struct bt_private_field *bt_private_packet_context_field_borrow_field(
struct bt_private_packet_context_field *field);
extern
struct bt_private_trace *trace);
extern
-struct bt_private_field *bt_private_packet_header_field_borrow_private_field(
+struct bt_private_field *bt_private_packet_header_field_borrow_field(
struct bt_private_packet_header_field *field);
extern
extern struct bt_private_packet *bt_private_packet_create(
struct bt_private_stream *stream);
-extern struct bt_private_stream *bt_private_packet_borrow_private_stream(
+extern struct bt_private_stream *bt_private_packet_borrow_stream(
struct bt_private_packet *packet);
extern
-struct bt_private_field *bt_private_packet_borrow_header_private_field(
+struct bt_private_field *bt_private_packet_borrow_header_field(
struct bt_private_packet *packet);
extern
-int bt_private_packet_move_private_header_field(
+int bt_private_packet_move_header_field(
struct bt_private_packet *packet,
struct bt_private_packet_header_field *header);
extern
-struct bt_private_field *bt_private_packet_borrow_context_private_field(
+struct bt_private_field *bt_private_packet_borrow_context_field(
struct bt_private_packet *packet);
extern
-int bt_private_packet_move_private_context_field(
+int bt_private_packet_move_context_field(
struct bt_private_packet *packet,
struct bt_private_packet_context_field *context);
extern struct bt_private_stream_class *bt_private_stream_class_create_with_id(
struct bt_private_trace *trace, uint64_t id);
-extern struct bt_private_trace *bt_private_stream_class_borrow_private_trace(
+extern struct bt_private_trace *bt_private_stream_class_borrow_trace(
struct bt_private_stream_class *stream_class);
extern int bt_private_stream_class_set_name(
struct bt_private_stream_class *stream_class, bt_bool value);
extern struct bt_private_field_class *
-bt_private_stream_class_borrow_packet_context_private_field_class(
+bt_private_stream_class_borrow_packet_context_field_class(
struct bt_private_stream_class *stream_class);
-extern int bt_private_stream_class_set_packet_context_private_field_class(
+extern int bt_private_stream_class_set_packet_context_field_class(
struct bt_private_stream_class *stream_class,
struct bt_private_field_class *field_class);
extern struct bt_private_field_class *
-bt_private_stream_class_borrow_event_header_private_field_class(
+bt_private_stream_class_borrow_event_header_field_class(
struct bt_private_stream_class *stream_class);
-extern int bt_private_stream_class_set_event_header_private_field_class(
+extern int bt_private_stream_class_set_event_header_field_class(
struct bt_private_stream_class *stream_class,
struct bt_private_field_class *field_class);
extern struct bt_private_field_class *
-bt_private_stream_class_borrow_event_common_context_private_field_class(
+bt_private_stream_class_borrow_event_common_context_field_class(
struct bt_private_stream_class *stream_class);
extern int
-bt_private_stream_class_set_event_common_context_private_field_class(
+bt_private_stream_class_set_event_common_context_field_class(
struct bt_private_stream_class *stream_class,
struct bt_private_field_class *field_class);
extern struct bt_private_event_class *
-bt_private_stream_class_borrow_private_event_class_by_index(
+bt_private_stream_class_borrow_event_class_by_index(
struct bt_private_stream_class *stream_class, uint64_t index);
extern struct bt_private_event_class *
-bt_private_stream_class_borrow_private_event_class_by_id(
+bt_private_stream_class_borrow_event_class_by_id(
struct bt_private_stream_class *stream_class, uint64_t id);
extern int bt_private_stream_class_set_default_clock_class(
extern struct bt_private_stream *bt_private_stream_create_with_id(
struct bt_private_stream_class *stream_class, uint64_t id);
-extern struct bt_private_stream_class *bt_private_stream_borrow_private_class(
+extern struct bt_private_stream_class *bt_private_stream_borrow_class(
struct bt_private_stream *stream);
extern int bt_private_stream_set_name(struct bt_private_stream *stream,
extern int bt_private_trace_set_uuid(struct bt_private_trace *trace,
bt_uuid uuid);
-extern void bt_private_trace_borrow_private_environment_entry_by_index(
+extern void bt_private_trace_borrow_environment_entry_by_index(
struct bt_private_trace *trace, uint64_t index,
const char **name, struct bt_private_value **value);
extern struct bt_private_value *
-bt_private_trace_borrow_private_environment_entry_value_by_name(
+bt_private_trace_borrow_environment_entry_value_by_name(
struct bt_private_trace *trace, const char *name);
-extern int bt_private_trace_set_private_environment_entry_integer(
+extern int bt_private_trace_set_environment_entry_integer(
struct bt_private_trace *trace, const char *name,
int64_t value);
-extern int bt_private_trace_set_private_environment_entry_string(
+extern int bt_private_trace_set_environment_entry_string(
struct bt_private_trace *trace, const char *name,
const char *value);
extern struct bt_private_field_class *
-bt_private_trace_borrow_packet_header_private_field_class(
+bt_private_trace_borrow_packet_header_field_class(
struct bt_private_trace *trace);
-extern int bt_private_trace_set_packet_header_private_field_class(
+extern int bt_private_trace_set_packet_header_field_class(
struct bt_private_trace *trace,
struct bt_private_field_class *packet_header_field_class);
extern struct bt_private_stream_class *
-bt_private_trace_borrow_private_stream_class_by_index(
+bt_private_trace_borrow_stream_class_by_index(
struct bt_private_trace *trace, uint64_t index);
extern struct bt_private_stream_class *
-bt_private_trace_borrow_private_stream_class_by_id(
+bt_private_trace_borrow_stream_class_by_id(
struct bt_private_trace *trace, uint64_t id);
extern struct bt_private_stream *
-bt_private_trace_borrow_private_stream_by_index(
+bt_private_trace_borrow_stream_by_index(
struct bt_private_trace *trace, uint64_t index);
extern struct bt_private_stream *bt_private_trace_borrow_stream_by_id(
colander_data->notifs = user_provided_data->notifs;
colander_data->count_addr = user_provided_data->count_addr;
- status = bt_private_component_sink_add_input_private_port(
+ status = bt_private_component_sink_add_input_port(
priv_comp, "in", NULL, NULL);
if (status != BT_COMPONENT_STATUS_OK) {
BT_LOGE_STR("Cannot add input port.");
enum bt_component_status status = BT_COMPONENT_STATUS_OK;
enum bt_connection_status conn_status;
struct bt_private_connection *priv_conn =
- bt_private_port_get_private_connection(self_priv_port);
+ bt_private_port_get_connection(self_priv_port);
struct colander_data *colander_data =
bt_private_component_get_user_data(priv_comp);
}
struct bt_private_port *
-bt_private_component_filter_get_input_private_port_by_index(
+bt_private_component_filter_get_input_port_by_index(
struct bt_private_component *private_component, uint64_t index)
{
/* bt_component_filter_get_input_port_by_index() logs details/errors */
}
struct bt_private_port *
-bt_private_component_filter_get_input_private_port_by_name(
+bt_private_component_filter_get_input_port_by_name(
struct bt_private_component *private_component,
const char *name)
{
bt_component_borrow_from_private(private_component), name));
}
-enum bt_component_status bt_private_component_filter_add_input_private_port(
+enum bt_component_status bt_private_component_filter_add_input_port(
struct bt_private_component *private_component,
const char *name, void *user_data,
struct bt_private_port **user_priv_port)
}
struct bt_private_port *
-bt_private_component_filter_get_output_private_port_by_index(
+bt_private_component_filter_get_output_port_by_index(
struct bt_private_component *private_component, uint64_t index)
{
/* bt_component_filter_get_output_port_by_index() logs details/errors */
}
struct bt_private_port *
-bt_private_component_filter_get_output_private_port_by_name(
+bt_private_component_filter_get_output_port_by_name(
struct bt_private_component *private_component,
const char *name)
{
bt_component_borrow_from_private(private_component), name));
}
-enum bt_component_status bt_private_component_filter_add_output_private_port(
+enum bt_component_status bt_private_component_filter_add_output_port(
struct bt_private_component *private_component,
const char *name, void *user_data,
struct bt_private_port **user_priv_port)
return event_notification->event;
}
-struct bt_private_event *bt_private_notification_event_borrow_private_event(
+struct bt_private_event *bt_private_notification_event_borrow_event(
struct bt_private_notification *notification)
{
return (void *) bt_notification_event_borrow_event(
}
struct bt_private_packet *
-bt_private_notification_packet_begin_borrow_private_packet(
+bt_private_notification_packet_begin_borrow_packet(
struct bt_private_notification *notification)
{
return (void *) bt_notification_packet_begin_borrow_packet(
return (struct bt_component *) bt_object_get_parent(&port->base);
}
-struct bt_private_connection *bt_private_port_get_private_connection(
+struct bt_private_connection *bt_private_port_get_connection(
struct bt_private_port *private_port)
{
return bt_private_connection_from_connection(bt_port_get_connection(
bt_port_borrow_from_private(private_port)));
}
-struct bt_private_component *bt_private_port_get_private_component(
+struct bt_private_component *bt_private_port_get_component(
struct bt_private_port *private_port)
{
return bt_private_component_from_component(bt_port_get_component(
}
struct bt_private_port *
-bt_private_component_sink_get_input_private_port_by_index(
+bt_private_component_sink_get_input_port_by_index(
struct bt_private_component *private_component, uint64_t index)
{
/* bt_component_sink_get_input_port_by_index() logs details/errors */
}
struct bt_private_port *
-bt_private_component_sink_get_input_private_port_by_name(
+bt_private_component_sink_get_input_port_by_name(
struct bt_private_component *private_component,
const char *name)
{
bt_component_borrow_from_private(private_component), name));
}
-enum bt_component_status bt_private_component_sink_add_input_private_port(
+enum bt_component_status bt_private_component_sink_add_input_port(
struct bt_private_component *private_component,
const char *name, void *user_data,
struct bt_private_port **user_priv_port)
}
struct bt_private_port *
-bt_private_component_source_get_output_private_port_by_name(
+bt_private_component_source_get_output_port_by_name(
struct bt_private_component *private_component,
const char *name)
{
}
struct bt_private_port *
-bt_private_component_source_get_output_private_port_by_index(
+bt_private_component_source_get_output_port_by_index(
struct bt_private_component *private_component, uint64_t index)
{
/* bt_component_source_get_output_port_by_index() logs details/errors */
bt_component_borrow_from_private(private_component), index));
}
-enum bt_component_status bt_private_component_source_add_output_private_port(
+enum bt_component_status bt_private_component_source_add_output_port(
struct bt_private_component *private_component,
const char *name, void *user_data,
struct bt_private_port **user_priv_port)
}
struct bt_private_stream_class *
-bt_private_event_class_borrow_private_stream_class(
+bt_private_event_class_borrow_stream_class(
struct bt_private_event_class *event_class)
{
return (void *) bt_event_class_borrow_stream_class(
}
struct bt_private_field_class *
-bt_private_event_class_borrow_specific_context_private_field_class(
+bt_private_event_class_borrow_specific_context_field_class(
struct bt_private_event_class *event_class)
{
return (void *) bt_event_class_borrow_specific_context_field_class(
(void *) event_class);
}
-int bt_private_event_class_set_specific_context_private_field_class(
+int bt_private_event_class_set_specific_context_field_class(
struct bt_private_event_class *priv_event_class,
struct bt_private_field_class *priv_field_class)
{
return event_class->payload_fc;
}
-struct bt_private_field_class *bt_private_event_class_borrow_payload_private_field_class(
+struct bt_private_field_class *bt_private_event_class_borrow_payload_field_class(
struct bt_private_event_class *event_class)
{
return (void *) bt_event_class_borrow_payload_field_class(
(void *) event_class);
}
-int bt_private_event_class_set_payload_private_field_class(
+int bt_private_event_class_set_payload_field_class(
struct bt_private_event_class *priv_event_class,
struct bt_private_field_class *priv_field_class)
{
#include <babeltrace/trace-ir/field-wrapper-internal.h>
#include <glib.h>
-struct bt_private_field *bt_private_event_header_field_borrow_private_field(
+struct bt_private_field *bt_private_event_header_field_borrow_field(
struct bt_private_event_header_field *header_field)
{
struct bt_field_wrapper *field_wrapper = (void *) header_field;
return event->header_field ? event->header_field->field : NULL;
}
-struct bt_private_field *bt_private_event_borrow_header_private_field(
+struct bt_private_field *bt_private_event_borrow_header_field(
struct bt_private_event *event)
{
return (void *) bt_event_borrow_header_field((void *) event);
return event->common_context_field;
}
-struct bt_private_field *bt_private_event_borrow_common_context_private_field(
+struct bt_private_field *bt_private_event_borrow_common_context_field(
struct bt_private_event *event)
{
return (void *) bt_event_borrow_common_context_field((void *) event);
return event->specific_context_field;
}
-struct bt_private_field *bt_private_event_borrow_specific_context_private_field(
+struct bt_private_field *bt_private_event_borrow_specific_context_field(
struct bt_private_event *event)
{
return (void *) bt_event_borrow_specific_context_field((void *) event);
return event->payload_field;
}
-struct bt_private_field *bt_private_event_borrow_payload_private_field(
+struct bt_private_field *bt_private_event_borrow_payload_field(
struct bt_private_event *event)
{
return (void *) bt_event_borrow_payload_field((void *) event);
return (void *) bt_event_borrow_packet((void *) event);
}
-int bt_private_event_move_private_header_field(
+int bt_private_event_move_header_field(
struct bt_private_event *priv_event,
struct bt_private_event_header_field *priv_header_field)
{
return ret;
}
-int bt_private_field_class_structure_append_private_member(
+int bt_private_field_class_structure_append_member(
struct bt_private_field_class *priv_fc,
const char *name, struct bt_private_field_class *member_fc)
{
index, name, out_fc);
}
-void bt_private_field_class_structure_borrow_private_member_by_index(
+void bt_private_field_class_structure_borrow_member_by_index(
struct bt_private_field_class *fc, uint64_t index,
const char **name, struct bt_private_field_class **out_fc)
{
}
struct bt_private_field_class *
-bt_private_field_class_structure_borrow_member_private_field_class_by_name(
+bt_private_field_class_structure_borrow_member_field_class_by_name(
struct bt_private_field_class *fc, const char *name)
{
return (void *) bt_field_class_structure_borrow_member_field_class_by_name(
return (void *) var_fc;
}
-int bt_private_field_class_variant_set_selector_private_field_class(
+int bt_private_field_class_variant_set_selector_field_class(
struct bt_private_field_class *priv_fc,
struct bt_private_field_class *selector_fc)
{
}
struct bt_private_field_class *
-bt_private_field_class_variant_borrow_option_private_field_class_by_name(
+bt_private_field_class_variant_borrow_option_field_class_by_name(
struct bt_private_field_class *fc, const char *name)
{
return (void *) bt_field_class_variant_borrow_option_field_class_by_name(
index, name, out_fc);
}
-void bt_private_field_class_variant_borrow_private_option_by_index(
+void bt_private_field_class_variant_borrow_option_by_index(
struct bt_private_field_class *fc, uint64_t index,
const char **name, struct bt_private_field_class **out_fc)
{
return (void *) array_fc;
}
-int bt_private_field_class_dynamic_array_set_length_private_field_class(
+int bt_private_field_class_dynamic_array_set_length_field_class(
struct bt_private_field_class *priv_fc,
struct bt_private_field_class *priv_length_fc)
{
return field->class;
}
-struct bt_private_field_class *bt_private_field_borrow_private_class(
+struct bt_private_field_class *bt_private_field_borrow_class(
struct bt_private_field *field)
{
return (void *) bt_field_borrow_class((void *) field);
}
struct bt_private_field *
-bt_private_field_array_borrow_element_private_field_by_index(
+bt_private_field_array_borrow_element_field_by_index(
struct bt_private_field *field, uint64_t index)
{
return (void *) bt_field_array_borrow_element_field_by_index(
}
struct bt_private_field *
-bt_private_field_structure_borrow_member_private_field_by_index(
+bt_private_field_structure_borrow_member_field_by_index(
struct bt_private_field *field, uint64_t index)
{
return (void *) bt_field_structure_borrow_member_field_by_index(
}
struct bt_private_field *
-bt_private_field_structure_borrow_member_private_field_by_name(
+bt_private_field_structure_borrow_member_field_by_name(
struct bt_private_field *field, const char *name)
{
return (void *) bt_field_structure_borrow_member_field_by_name(
}
struct bt_private_field *
-bt_private_field_variant_borrow_selected_option_private_field(
+bt_private_field_variant_borrow_selected_option_field(
struct bt_private_field *field)
{
return (void *) bt_field_variant_borrow_selected_option_field(
(void *) field);
}
-int bt_private_field_variant_select_option_private_field(
+int bt_private_field_variant_select_option_field(
struct bt_private_field *priv_field, uint64_t index)
{
struct bt_field *field = (void *) priv_field;
#include <babeltrace/trace-ir/field-wrapper-internal.h>
#include <glib.h>
-struct bt_private_field *bt_private_packet_context_field_borrow_private_field(
+struct bt_private_field *bt_private_packet_context_field_borrow_field(
struct bt_private_packet_context_field *context_field)
{
struct bt_field_wrapper *field_wrapper = (void *) context_field;
#include <babeltrace/trace-ir/fields-internal.h>
#include <glib.h>
-struct bt_private_field *bt_private_packet_header_field_borrow_private_field(
+struct bt_private_field *bt_private_packet_header_field_borrow_field(
struct bt_private_packet_header_field *header_field)
{
struct bt_field_wrapper *field_wrapper = (void *) header_field;
return packet->stream;
}
-struct bt_private_stream *bt_private_packet_borrow_private_stream(
+struct bt_private_stream *bt_private_packet_borrow_stream(
struct bt_private_packet *packet)
{
return (void *) bt_packet_borrow_stream((void *) packet);
return packet->header_field ? packet->header_field->field : NULL;
}
-struct bt_private_field *bt_private_packet_borrow_header_private_field(
+struct bt_private_field *bt_private_packet_borrow_header_field(
struct bt_private_packet *packet)
{
return (void *) bt_packet_borrow_header_field((void *) packet);
return packet->context_field ? packet->context_field->field : NULL;
}
-struct bt_private_field *bt_private_packet_borrow_context_private_field(
+struct bt_private_field *bt_private_packet_borrow_context_field(
struct bt_private_packet *packet)
{
return (void *) bt_packet_borrow_context_field((void *) packet);
return (void *) packet;
}
-int bt_private_packet_move_private_header_field(
+int bt_private_packet_move_header_field(
struct bt_private_packet *priv_packet,
struct bt_private_packet_header_field *header_field)
{
return 0;
}
-int bt_private_packet_move_private_context_field(
+int bt_private_packet_move_context_field(
struct bt_private_packet *priv_packet,
struct bt_private_packet_context_field *context_field)
{
}
struct bt_private_event_class *
-bt_private_stream_class_borrow_private_event_class_by_index(
+bt_private_stream_class_borrow_event_class_by_index(
struct bt_private_stream_class *stream_class, uint64_t index)
{
return (void *) bt_stream_class_borrow_event_class_by_index(
}
struct bt_private_event_class *
-bt_private_stream_class_borrow_private_event_class_by_id(
+bt_private_stream_class_borrow_event_class_by_id(
struct bt_private_stream_class *stream_class, uint64_t id)
{
return (void *) bt_stream_class_borrow_event_class_by_id(
}
struct bt_private_field_class *
-bt_private_stream_class_borrow_packet_context_private_field_class(
+bt_private_stream_class_borrow_packet_context_field_class(
struct bt_private_stream_class *stream_class)
{
return (void *) bt_stream_class_borrow_packet_context_field_class(
(void *) stream_class);
}
-int bt_private_stream_class_set_packet_context_private_field_class(
+int bt_private_stream_class_set_packet_context_field_class(
struct bt_private_stream_class *priv_stream_class,
struct bt_private_field_class *priv_field_class)
{
}
struct bt_private_field_class *
-bt_private_stream_class_borrow_event_header_private_field_class(
+bt_private_stream_class_borrow_event_header_field_class(
struct bt_private_stream_class *stream_class)
{
return (void *) bt_stream_class_borrow_event_header_field_class(
(void *) stream_class);
}
-int bt_private_stream_class_set_event_header_private_field_class(
+int bt_private_stream_class_set_event_header_field_class(
struct bt_private_stream_class *priv_stream_class,
struct bt_private_field_class *priv_field_class)
{
}
struct bt_private_field_class *
-bt_private_stream_class_borrow_event_common_context_private_field_class(
+bt_private_stream_class_borrow_event_common_context_field_class(
struct bt_private_stream_class *stream_class)
{
return (void *) bt_stream_class_borrow_event_common_context_field_class(
(void *) stream_class);
}
-int bt_private_stream_class_set_event_common_context_private_field_class(
+int bt_private_stream_class_set_event_common_context_field_class(
struct bt_private_stream_class *priv_stream_class,
struct bt_private_field_class *priv_field_class)
{
return stream->class;
}
-struct bt_private_stream_class *bt_private_stream_borrow_private_class(
+struct bt_private_stream_class *bt_private_stream_borrow_class(
struct bt_private_stream *priv_stream)
{
return (void *) bt_stream_borrow_class((void *) priv_stream);
return ret;
}
-int bt_private_trace_set_private_environment_entry_string(
+int bt_private_trace_set_environment_entry_string(
struct bt_private_trace *priv_trace,
const char *name, const char *value)
{
return ret;
}
-int bt_private_trace_set_private_environment_entry_integer(
+int bt_private_trace_set_environment_entry_integer(
struct bt_private_trace *priv_trace,
const char *name, int64_t value)
{
BT_ASSERT(*name);
}
-void bt_private_trace_borrow_private_environment_entry_by_index(
+void bt_private_trace_borrow_environment_entry_by_index(
struct bt_private_trace *trace, uint64_t index,
const char **name, struct bt_private_value **value)
{
}
struct bt_private_value *
-bt_private_trace_borrow_private_environment_entry_value_by_name(
+bt_private_trace_borrow_environment_entry_value_by_name(
struct bt_private_trace *trace, const char *name)
{
return (void *) bt_trace_borrow_environment_entry_value_by_name(
return g_ptr_array_index(trace->streams, index);
}
-struct bt_private_stream *bt_private_trace_borrow_private_stream_by_index(
+struct bt_private_stream *bt_private_trace_borrow_stream_by_index(
struct bt_private_trace *trace, uint64_t index)
{
return (void *) bt_trace_borrow_stream_by_index((void *) trace, index);
}
struct bt_private_stream_class *
-bt_private_trace_borrow_private_stream_class_by_index(
+bt_private_trace_borrow_stream_class_by_index(
struct bt_private_trace *trace, uint64_t index)
{
return (void *) bt_trace_borrow_stream_class_by_index(
}
struct bt_private_stream_class *
-bt_private_trace_borrow_private_stream_class_by_id(
+bt_private_trace_borrow_stream_class_by_id(
struct bt_private_trace *trace, uint64_t id)
{
return (void *) bt_trace_borrow_stream_class_by_id((void *) trace, id);
return trace->packet_header_fc;
}
-int bt_private_trace_set_packet_header_private_field_class(
+int bt_private_trace_set_packet_header_field_class(
struct bt_private_trace *priv_trace,
struct bt_private_field_class *priv_field_class)
{
member_ir_fc = ctf_field_class_to_ir(named_fc->fc, tc, sc, ec);
BT_ASSERT(member_ir_fc);
- ret = bt_private_field_class_structure_append_private_member(
+ ret = bt_private_field_class_structure_append_member(
ir_fc, named_fc->name->str, member_ir_fc);
BT_ASSERT(ret == 0);
bt_object_put_ref(member_ir_fc);
uint64_t i;
BT_ASSERT(ir_fc);
- ret = bt_private_field_class_variant_set_selector_private_field_class(
+ ret = bt_private_field_class_variant_set_selector_field_class(
ir_fc, borrow_ir_ft_from_field_path(&fc->tag_path, tc, sc, ec));
BT_ASSERT(ret == 0);
BT_ASSERT(ir_fc);
bt_object_put_ref(elem_ir_fc);
BT_ASSERT(ir_fc);
- ret = bt_private_field_class_dynamic_array_set_length_private_field_class(
+ ret = bt_private_field_class_dynamic_array_set_length_field_class(
ir_fc,
borrow_ir_ft_from_field_path(&fc->length_path, tc, sc, ec));
BT_ASSERT(ret == 0);
struct bt_private_event_class *ir_ec = NULL;
if (ec->is_translated) {
- ir_ec = bt_private_stream_class_borrow_private_event_class_by_id(
+ ir_ec = bt_private_stream_class_borrow_event_class_by_id(
ir_sc, ec->id);
BT_ASSERT(ir_ec);
goto end;
ec->spec_context_fc, tc, sc, ec);
if (ir_fc) {
- ret = bt_private_event_class_set_specific_context_private_field_class(
+ ret = bt_private_event_class_set_specific_context_field_class(
ir_ec, ir_fc);
BT_ASSERT(ret == 0);
bt_object_put_ref(ir_fc);
ec->payload_fc, tc, sc, ec);
if (ir_fc) {
- ret = bt_private_event_class_set_payload_private_field_class(ir_ec,
+ ret = bt_private_event_class_set_payload_field_class(ir_ec,
ir_fc);
BT_ASSERT(ret == 0);
bt_object_put_ref(ir_fc);
struct ctf_field_class_int *int_fc;
if (sc->is_translated) {
- ir_sc = bt_private_trace_borrow_private_stream_class_by_id(
+ ir_sc = bt_private_trace_borrow_stream_class_by_id(
ir_trace, sc->id);
BT_ASSERT(ir_sc);
goto end;
sc->packet_context_fc, tc, sc, NULL);
if (ir_fc) {
- ret = bt_private_stream_class_set_packet_context_private_field_class(
+ ret = bt_private_stream_class_set_packet_context_field_class(
ir_sc, ir_fc);
BT_ASSERT(ret == 0);
bt_object_put_ref(ir_fc);
sc->event_header_fc, tc, sc, NULL);
if (ir_fc) {
- ret = bt_private_stream_class_set_event_header_private_field_class(
+ ret = bt_private_stream_class_set_event_header_field_class(
ir_sc, ir_fc);
BT_ASSERT(ret == 0);
bt_object_put_ref(ir_fc);
sc->event_common_context_fc, tc, sc, NULL);
if (ir_fc) {
- ret = bt_private_stream_class_set_event_common_context_private_field_class(
+ ret = bt_private_stream_class_set_event_common_context_field_class(
ir_sc, ir_fc);
BT_ASSERT(ret == 0);
bt_object_put_ref(ir_fc);
tc->packet_header_fc, tc, NULL, NULL);
if (ir_fc) {
- ret = bt_private_trace_set_packet_header_private_field_class(
+ ret = bt_private_trace_set_packet_header_field_class(
ir_trace, ir_fc);
BT_ASSERT(ret == 0);
bt_object_put_ref(ir_fc);
switch (env_entry->type) {
case CTF_TRACE_CLASS_ENV_ENTRY_TYPE_INT:
- ret = bt_private_trace_set_private_environment_entry_integer(
+ ret = bt_private_trace_set_environment_entry_integer(
ir_trace, env_entry->name->str,
env_entry->value.i);
break;
case CTF_TRACE_CLASS_ENV_ENTRY_TYPE_STR:
- ret = bt_private_trace_set_private_environment_entry_string(
+ ret = bt_private_trace_set_environment_entry_string(
ir_trace, env_entry->name->str,
env_entry->value.str->str);
break;
}
notit->dscopes.trace_packet_header =
- bt_private_packet_header_field_borrow_private_field(
+ bt_private_packet_header_field_borrow_field(
notit->packet_header_field);
BT_ASSERT(notit->dscopes.trace_packet_header);
}
}
notit->dscopes.stream_packet_context =
- bt_private_packet_context_field_borrow_private_field(
+ bt_private_packet_context_field_borrow_field(
notit->packet_context_field);
BT_ASSERT(notit->dscopes.stream_packet_context);
}
}
notit->dscopes.event_header =
- bt_private_event_header_field_borrow_private_field(
+ bt_private_event_header_field_borrow_field(
notit->event_header_field);
BT_ASSERT(notit->dscopes.event_header);
}
goto end;
}
- notit->event = bt_private_notification_event_borrow_private_event(
+ notit->event = bt_private_notification_event_borrow_event(
notit->event_notif);
BT_ASSERT(notit->event);
int ret;
BT_ASSERT(notit->event);
- ret = bt_private_event_move_private_header_field(notit->event,
+ ret = bt_private_event_move_header_field(notit->event,
notit->event_header_field);
if (ret) {
status = BT_NOTIF_ITER_STATUS_ERROR;
* the same value as the event header field within
* notit->event.
*/
- BT_ASSERT(bt_private_event_borrow_header_private_field(
+ BT_ASSERT(bt_private_event_borrow_header_field(
notit->event) == notit->dscopes.event_header);
}
if (event_common_context_fc->in_ir) {
BT_ASSERT(!notit->dscopes.event_common_context);
notit->dscopes.event_common_context =
- bt_private_event_borrow_common_context_private_field(
+ bt_private_event_borrow_common_context_field(
notit->event);
BT_ASSERT(notit->dscopes.event_common_context);
}
if (event_spec_context_fc->in_ir) {
BT_ASSERT(!notit->dscopes.event_spec_context);
notit->dscopes.event_spec_context =
- bt_private_event_borrow_specific_context_private_field(
+ bt_private_event_borrow_specific_context_field(
notit->event);
BT_ASSERT(notit->dscopes.event_spec_context);
}
if (event_payload_fc->in_ir) {
BT_ASSERT(!notit->dscopes.event_payload);
notit->dscopes.event_payload =
- bt_private_event_borrow_payload_private_field(
+ bt_private_event_borrow_payload_field(
notit->event);
BT_ASSERT(notit->dscopes.event_payload);
}
index = stack_top(notit->stack)->index;
base_field = stack_top(notit->stack)->base;
BT_ASSERT(base_field);
- base_fc = bt_private_field_borrow_private_class(base_field);
+ base_fc = bt_private_field_borrow_class(base_field);
BT_ASSERT(base_fc);
switch (bt_field_class_get_type(bt_field_class_borrow_from_private(base_fc))) {
BT_ASSERT(index <
bt_field_class_structure_get_member_count(
bt_field_class_borrow_from_private(
- bt_private_field_borrow_private_class(
+ bt_private_field_borrow_class(
base_field))));
next_field =
- bt_private_field_structure_borrow_member_private_field_by_index(
+ bt_private_field_structure_borrow_member_field_by_index(
base_field, index);
break;
}
case BT_FIELD_CLASS_TYPE_DYNAMIC_ARRAY:
BT_ASSERT(index < bt_field_array_get_length(
bt_field_borrow_from_private(base_field)));
- next_field = bt_private_field_array_borrow_element_private_field_by_index(
+ next_field = bt_private_field_array_borrow_element_field_by_index(
base_field, index);
break;
case BT_FIELD_CLASS_TYPE_VARIANT:
BT_ASSERT(index == 0);
- next_field = bt_private_field_variant_borrow_selected_option_private_field(
+ next_field = bt_private_field_variant_borrow_selected_option_field(
base_field);
break;
default:
field = borrow_next_field(notit);
BT_ASSERT(field);
- BT_ASSERT(bt_private_field_borrow_private_class(field) == fc->ir_fc);
+ BT_ASSERT(bt_private_field_borrow_class(field) == fc->ir_fc);
BT_ASSERT(bt_field_get_class_type(
bt_field_borrow_from_private(field)) ==
BT_FIELD_CLASS_TYPE_UNSIGNED_INTEGER ||
field = borrow_next_field(notit);
BT_ASSERT(field);
- BT_ASSERT(bt_private_field_borrow_private_class(field) == fc->ir_fc);
+ BT_ASSERT(bt_private_field_borrow_class(field) == fc->ir_fc);
BT_ASSERT(bt_field_get_class_type(
bt_field_borrow_from_private(field)) ==
BT_FIELD_CLASS_TYPE_SIGNED_INTEGER ||
BT_ASSERT(fc->in_ir);
field = borrow_next_field(notit);
BT_ASSERT(field);
- BT_ASSERT(bt_private_field_borrow_private_class(field) == fc->ir_fc);
+ BT_ASSERT(bt_private_field_borrow_class(field) == fc->ir_fc);
BT_ASSERT(bt_field_get_class_type(
bt_field_borrow_from_private(field)) ==
BT_FIELD_CLASS_TYPE_REAL);
BT_ASSERT(fc->in_ir);
field = borrow_next_field(notit);
BT_ASSERT(field);
- BT_ASSERT(bt_private_field_borrow_private_class(field) == fc->ir_fc);
+ BT_ASSERT(bt_private_field_borrow_class(field) == fc->ir_fc);
BT_ASSERT(bt_field_get_class_type(
bt_field_borrow_from_private(field)) ==
BT_FIELD_CLASS_TYPE_STRING);
/* Push field */
BT_ASSERT(field);
- BT_ASSERT(bt_private_field_borrow_private_class(field) == fc->ir_fc);
+ BT_ASSERT(bt_private_field_borrow_class(field) == fc->ir_fc);
stack_push(notit->stack, field);
/*
}
BT_ASSERT(!stack_empty(notit->stack));
- BT_ASSERT(bt_private_field_borrow_private_class(stack_top(notit->stack)->base) ==
+ BT_ASSERT(bt_private_field_borrow_class(stack_top(notit->stack)->base) ==
fc->ir_fc);
/*
if (selected_option->fc->in_ir) {
struct bt_private_field *var_field = stack_top(notit->stack)->base;
- ret = bt_private_field_variant_select_option_private_field(
+ ret = bt_private_field_variant_select_option_field(
var_field, option_index);
if (ret) {
BT_LOGW("Cannot select variant field's option field: "
void set_event_default_clock_value(struct bt_notif_iter *notit)
{
struct bt_private_event *event =
- bt_private_notification_event_borrow_private_event(
+ bt_private_notification_event_borrow_event(
notit->event_notif);
struct bt_stream_class *sc = bt_stream_class_borrow_from_private(
notit->meta.sc->ir_sc);
}
if (notit->packet_header_field) {
- ret = bt_private_packet_move_private_header_field(
+ ret = bt_private_packet_move_header_field(
notit->packet, notit->packet_header_field);
if (ret) {
goto end;
* the same value as the packet header field within
* notit->packet.
*/
- BT_ASSERT(bt_private_packet_borrow_header_private_field(
+ BT_ASSERT(bt_private_packet_borrow_header_field(
notit->packet) ==
notit->dscopes.trace_packet_header);
}
if (notit->packet_context_field) {
- ret = bt_private_packet_move_private_context_field(
+ ret = bt_private_packet_move_context_field(
notit->packet, notit->packet_context_field);
if (ret) {
goto end;
* the same value as the packet header field within
* notit->packet.
*/
- BT_ASSERT(bt_private_packet_borrow_context_private_field(
+ BT_ASSERT(bt_private_packet_borrow_context_field(
notit->packet) ==
notit->dscopes.stream_packet_context);
}
writer = bt_private_component_get_user_data(component);
BT_ASSERT(writer);
BT_ASSERT(!writer->input_iterator);
- connection = bt_private_port_get_private_connection(self_port);
+ connection = bt_private_port_get_connection(self_port);
BT_ASSERT(connection);
conn_status = bt_private_connection_create_notification_iterator(
connection, &writer->input_iterator);
goto end;
}
- ret = bt_private_component_sink_add_input_private_port(component,
+ ret = bt_private_component_sink_add_input_port(component,
"in", NULL, NULL);
if (ret != BT_COMPONENT_STATUS_OK) {
goto end;
struct bt_private_stream_class *ds_file_stream_class;
struct bt_private_stream *stream = NULL;
- ds_file_stream_class = bt_private_stream_borrow_private_class(
+ ds_file_stream_class = bt_private_stream_borrow_class(
ds_file->stream);
if (stream_class != ds_file_stream_class) {
port_data->ctf_fs = ctf_fs;
port_data->ds_file_group = ds_file_group;
- ret = bt_private_component_source_add_output_private_port(
+ ret = bt_private_component_source_add_output_port(
ctf_fs->priv_comp, port_name->str, port_data, NULL);
if (ret) {
goto error;
if (lttng_live_is_canceled(lttng_live)) {
return 0;
}
- status = bt_private_component_source_add_output_private_port(
+ status = bt_private_component_source_add_output_port(
lttng_live->private_component, name, stream_iter,
&private_port);
switch (status) {
if (lttng_live_is_canceled(lttng_live)) {
return 0;
}
- status = bt_private_component_source_add_output_private_port(lttng_live->private_component,
+ status = bt_private_component_source_add_output_port(lttng_live->private_component,
"no-stream", lttng_live->no_stream_iter,
<tng_live->no_stream_port);
switch (status) {
if (lttng_live_is_canceled(lttng_live)) {
goto end;
}
- ret = bt_private_component_source_add_output_private_port(
+ ret = bt_private_component_source_add_output_port(
lttng_live->private_component, "no-stream",
lttng_live->no_stream_iter,
<tng_live->no_stream_port);
goto end;
}
- input_port = bt_private_component_filter_get_input_private_port_by_name(
+ input_port = bt_private_component_filter_get_input_port_by_name(
component, "in");
if (!input_port) {
ret = BT_NOTIFICATION_ITERATOR_STATUS_ERROR;
goto end;
}
- connection = bt_private_port_get_private_connection(input_port);
+ connection = bt_private_port_get_connection(input_port);
bt_object_put_ref(input_port);
if (!connection) {
ret = BT_NOTIFICATION_ITERATOR_STATUS_ERROR;
goto error;
}
- ret = bt_private_component_filter_add_input_private_port(
+ ret = bt_private_component_filter_add_input_port(
component, "in", NULL, NULL);
if (ret != BT_COMPONENT_STATUS_OK) {
goto end;
}
- ret = bt_private_component_filter_add_output_private_port(
+ ret = bt_private_component_filter_add_output_port(
component, "out", NULL, NULL);
if (ret != BT_COMPONENT_STATUS_OK) {
goto end;
goto error;
}
- ret = bt_private_field_class_structure_append_private_member(root_fc,
+ ret = bt_private_field_class_structure_append_member(root_fc,
"str", fc);
if (ret) {
BT_LOGE("Cannot add `str` member to structure field class: "
goto error;
}
- ret = bt_private_event_class_set_payload_private_field_class(dmesg_comp->event_class, fc);
+ ret = bt_private_event_class_set_payload_field_class(dmesg_comp->event_class, fc);
if (ret) {
BT_LOGE_STR("Cannot set event class's event payload field class.");
goto error;
static
enum bt_component_status create_port(struct bt_private_component *priv_comp)
{
- return bt_private_component_source_add_output_private_port(priv_comp,
+ return bt_private_component_source_add_output_port(priv_comp,
"out", NULL, NULL);
}
goto error;
}
- event = bt_private_notification_event_borrow_private_event(notif);
+ event = bt_private_notification_event_borrow_event(notif);
BT_ASSERT(event);
if (dmesg_comp->clock_class) {
size_t len;
int ret;
- ep_field = bt_private_event_borrow_payload_private_field(event);
+ ep_field = bt_private_event_borrow_payload_field(event);
BT_ASSERT(ep_field);
- str_field = bt_private_field_structure_borrow_member_private_field_by_index(
+ str_field = bt_private_field_structure_borrow_member_field_by_index(
ep_field, 0);
if (!str_field) {
BT_LOGE_STR("Cannot borrow `timestamp` field from event payload structure field.");
goto error;
}
- event = bt_private_notification_event_borrow_private_event(notif);
+ event = bt_private_notification_event_borrow_event(notif);
BT_ASSERT(event);
ret = fill_event_payload_from_line(new_start, event);
if (ret) {
pretty = bt_private_component_get_user_data(component);
BT_ASSERT(pretty);
BT_ASSERT(!pretty->input_iterator);
- connection = bt_private_port_get_private_connection(self_port);
+ connection = bt_private_port_get_connection(self_port);
BT_ASSERT(connection);
conn_status = bt_private_connection_create_notification_iterator(
connection, &pretty->input_iterator);
goto end;
}
- ret = bt_private_component_sink_add_input_private_port(component,
+ ret = bt_private_component_sink_add_input_port(component,
"in", NULL, NULL);
if (ret != BT_COMPONENT_STATUS_OK) {
goto end;
goto end;
}
- ret = bt_private_component_sink_add_input_private_port(component,
+ ret = bt_private_component_sink_add_input_port(component,
"in", NULL, NULL);
if (ret != BT_COMPONENT_STATUS_OK) {
goto end;
counter = bt_private_component_get_user_data(component);
BT_ASSERT(counter);
- connection = bt_private_port_get_private_connection(self_port);
+ connection = bt_private_port_get_connection(self_port);
BT_ASSERT(connection);
conn_status = bt_private_connection_create_notification_iterator(
connection, &iterator);
goto end;
}
- ret = bt_private_component_sink_add_input_private_port(component,
+ ret = bt_private_component_sink_add_input_port(component,
"in", NULL, NULL);
if (ret != BT_COMPONENT_STATUS_OK) {
goto end;
dummy = bt_private_component_get_user_data(component);
BT_ASSERT(dummy);
- connection = bt_private_port_get_private_connection(self_port);
+ connection = bt_private_port_get_connection(self_port);
BT_ASSERT(connection);
conn_status = bt_private_connection_create_notification_iterator(
connection, &iterator);
}
g_string_append_printf(port_name, "%u", muxer_comp->next_port_num);
- status = bt_private_component_filter_add_input_private_port(
+ status = bt_private_component_filter_add_input_port(
priv_comp, port_name->str, NULL, NULL);
if (status != BT_COMPONENT_STATUS_OK) {
BT_LOGE("Cannot add input port to muxer component: "
enum bt_component_status create_output_port(
struct bt_private_component *priv_comp)
{
- return bt_private_component_filter_add_output_private_port(
+ return bt_private_component_filter_add_output_port(
priv_comp, "out", NULL, NULL);
}
*ret = 0;
BT_ASSERT(port);
BT_ASSERT(bt_port_is_connected(port));
- priv_conn = bt_private_port_get_private_connection(priv_port);
+ priv_conn = bt_private_port_get_connection(priv_port);
BT_ASSERT(priv_conn);
// TODO: Advance the iterator to >= the time of the latest
for (i = 0; i < count; i++) {
struct bt_private_port *priv_port =
- bt_private_component_filter_get_input_private_port_by_index(
+ bt_private_component_filter_get_input_port_by_index(
muxer_comp->priv_comp, i);
struct bt_port *port;
}
/* Create a new iterator on the upstream component. */
- input_port = bt_private_component_filter_get_input_private_port_by_name(
+ input_port = bt_private_component_filter_get_input_port_by_name(
component, "in");
BT_ASSERT(input_port);
- connection = bt_private_port_get_private_connection(input_port);
+ connection = bt_private_port_get_connection(input_port);
BT_ASSERT(connection);
conn_status = bt_private_connection_create_notification_iterator(connection,
}
/* Create input and output ports */
- ret = bt_private_component_filter_add_input_private_port(
+ ret = bt_private_component_filter_add_input_port(
component, "in", NULL, NULL);
if (ret != BT_COMPONENT_STATUS_OK) {
goto error;
}
- ret = bt_private_component_filter_add_output_private_port(
+ ret = bt_private_component_filter_add_output_port(
component, "out", NULL, NULL);
if (ret != BT_COMPONENT_STATUS_OK) {
goto error;
{
int ret;
- ret = bt_private_component_source_add_output_private_port(
+ ret = bt_private_component_source_add_output_port(
private_component, "out", NULL, NULL);
BT_ASSERT(ret == 0);
return BT_COMPONENT_STATUS_OK;
struct bt_port *other_port)
{
struct bt_private_connection *priv_conn =
- bt_private_port_get_private_connection(self_private_port);
+ bt_private_port_get_connection(self_private_port);
struct sink_user_data *user_data = bt_private_component_get_user_data(
private_component);
enum bt_connection_status conn_status;
ret = bt_private_component_set_user_data(private_component,
user_data);
BT_ASSERT(ret == 0);
- ret = bt_private_component_sink_add_input_private_port(
+ ret = bt_private_component_sink_add_input_port(
private_component, "in", NULL, NULL);
BT_ASSERT(ret == 0);
return BT_COMPONENT_STATUS_OK;
switch (current_test) {
case TEST_SRC_ADDS_PORT_IN_PORT_CONNECTED:
- ret = bt_private_component_source_add_output_private_port(
+ ret = bt_private_component_source_add_output_port(
private_component, "hello", NULL, NULL);
BT_ASSERT(ret == 0);
break;
{
int ret;
- ret = bt_private_component_source_add_output_private_port(
+ ret = bt_private_component_source_add_output_port(
priv_comp, "out", NULL, NULL);
BT_ASSERT(ret == 0);
return BT_COMPONENT_STATUS_OK;
switch (current_test) {
case TEST_SINK_REMOVES_PORT_IN_CONSUME:
case TEST_SINK_REMOVES_PORT_IN_CONSUME_THEN_SRC_REMOVES_DISCONNECTED_PORT:
- def_port = bt_private_component_sink_get_input_private_port_by_name(
+ def_port = bt_private_component_sink_get_input_port_by_name(
priv_component, "in");
BT_ASSERT(def_port);
ret = bt_private_port_remove_from_component(def_port);
{
int ret;
- ret = bt_private_component_sink_add_input_private_port(priv_comp,
+ ret = bt_private_component_sink_add_input_port(priv_comp,
"in", NULL, NULL);
BT_ASSERT(ret == 0);
return BT_COMPONENT_STATUS_OK;
BT_ASSERT(ui8);
ret = bt_private_field_class_integer_set_field_value_range(ui8, 8);
BT_ASSERT(ret == 0);
- ret = bt_private_field_class_structure_append_private_member(structure,
+ ret = bt_private_field_class_structure_append_member(structure,
"payload_8", ui8);
BT_ASSERT(ret == 0);
ui16 = bt_private_field_class_unsigned_integer_create();
BT_ASSERT(ui16);
ret = bt_private_field_class_integer_set_field_value_range(ui16, 16);
BT_ASSERT(ret == 0);
- ret = bt_private_field_class_structure_append_private_member(structure,
+ ret = bt_private_field_class_structure_append_member(structure,
"payload_16", ui16);
BT_ASSERT(ret == 0);
ui32 = bt_private_field_class_unsigned_integer_create();
BT_ASSERT(ui32);
ret = bt_private_field_class_integer_set_field_value_range(ui32, 32);
BT_ASSERT(ret == 0);
- ret = bt_private_field_class_structure_append_private_member(structure,
+ ret = bt_private_field_class_structure_append_member(structure,
"payload_32", ui32);
BT_ASSERT(ret == 0);
BT_OBJECT_PUT_REF_AND_RESET(ui8);
BT_ASSERT(ret == 0);
payload = create_integer_struct();
BT_ASSERT(payload);
- ret = bt_private_event_class_set_payload_private_field_class(event, payload);
+ ret = bt_private_event_class_set_payload_field_class(event, payload);
BT_ASSERT(ret == 0);
BT_OBJECT_PUT_REF_AND_RESET(payload);
return event;
BT_ASSERT(outer);
inner = create_integer_struct();
BT_ASSERT(inner);
- ret = bt_private_field_class_structure_append_private_member(outer,
+ ret = bt_private_field_class_structure_append_member(outer,
"payload_struct", inner);
BT_ASSERT(ret == 0);
- ret = bt_private_event_class_set_payload_private_field_class(event, outer);
+ ret = bt_private_event_class_set_payload_field_class(event, outer);
BT_ASSERT(ret == 0);
BT_OBJECT_PUT_REF_AND_RESET(inner);
BT_OBJECT_PUT_REF_AND_RESET(outer);
BT_ASSERT(fc);
ret = bt_private_field_class_integer_set_field_value_range(fc, 32);
BT_ASSERT(ret == 0);
- ret = bt_private_field_class_structure_append_private_member(packet_context_type,
+ ret = bt_private_field_class_structure_append_member(packet_context_type,
"packet_size", fc);
BT_ASSERT(ret == 0);
bt_object_put_ref(fc);
BT_ASSERT(fc);
ret = bt_private_field_class_integer_set_field_value_range(fc, 32);
BT_ASSERT(ret == 0);
- ret = bt_private_field_class_structure_append_private_member(packet_context_type,
+ ret = bt_private_field_class_structure_append_member(packet_context_type,
"content_size", fc);
BT_ASSERT(ret == 0);
bt_object_put_ref(fc);
BT_ASSERT(fc);
ret = bt_private_field_class_integer_set_field_value_range(fc, 32);
BT_ASSERT(ret == 0);
- ret = bt_private_field_class_structure_append_private_member(event_header_type,
+ ret = bt_private_field_class_structure_append_member(event_header_type,
"id", fc);
BT_ASSERT(ret == 0);
bt_object_put_ref(fc);
- ret = bt_private_stream_class_set_packet_context_private_field_class(
+ ret = bt_private_stream_class_set_packet_context_field_class(
stream_class, packet_context_type);
BT_ASSERT(ret == 0);
- ret = bt_private_stream_class_set_event_header_private_field_class(
+ ret = bt_private_stream_class_set_event_header_field_class(
stream_class, event_header_type);
BT_ASSERT(ret == 0);
bt_object_put_ref(packet_context_type);
BT_ASSERT(ec1);
ec2 = create_simple_event(sc1, "ec2");
BT_ASSERT(ec2);
- ret_stream = bt_private_event_class_borrow_private_stream_class(ec1);
+ ret_stream = bt_private_event_class_borrow_stream_class(ec1);
ok(ret_stream == sc1, "Borrow parent stream SC1 from EC1");
- ret_stream = bt_private_event_class_borrow_private_stream_class(ec2);
+ ret_stream = bt_private_event_class_borrow_stream_class(ec2);
ok(ret_stream == sc1, "Borrow parent stream SC1 from EC2");
BT_OBJECT_PUT_REF_AND_RESET(ec1);
BT_OBJECT_PUT_REF_AND_RESET(ec2);
BT_ASSERT(ret == 0);
set_stream_class_field_classes(sc2);
ec3 = create_simple_event(sc2, "ec3");
- ret_stream = bt_private_event_class_borrow_private_stream_class(ec3);
+ ret_stream = bt_private_event_class_borrow_stream_class(ec3);
ok(ret_stream == sc2, "Borrow parent stream SC2 from EC3");
BT_OBJECT_PUT_REF_AND_RESET(ec3);
BT_OBJECT_PUT_REF_AND_RESET(sc2);
BT_ASSERT(fc);
ret = bt_private_field_class_integer_set_field_value_range(fc, 32);
BT_ASSERT(ret == 0);
- ret = bt_private_field_class_structure_append_private_member(packet_header_type,
+ ret = bt_private_field_class_structure_append_member(packet_header_type,
"stream_id", fc);
BT_ASSERT(ret == 0);
bt_object_put_ref(fc);
- ret = bt_private_trace_set_packet_header_private_field_class(trace,
+ ret = bt_private_trace_set_packet_header_field_class(trace,
packet_header_type);
BT_ASSERT(ret == 0);
struct bt_private_event_class **ec3)
{
*tc1 = tc;
- *sc1 = bt_private_trace_borrow_private_stream_class_by_index(tc, 0);
- *sc2 = bt_private_trace_borrow_private_stream_class_by_index(tc, 1);
- *ec1 = bt_private_stream_class_borrow_private_event_class_by_index(*sc1, 0);
- *ec2 = bt_private_stream_class_borrow_private_event_class_by_index(*sc1, 1);
- *ec3 = bt_private_stream_class_borrow_private_event_class_by_index(*sc2, 0);
+ *sc1 = bt_private_trace_borrow_stream_class_by_index(tc, 0);
+ *sc2 = bt_private_trace_borrow_stream_class_by_index(tc, 1);
+ *ec1 = bt_private_stream_class_borrow_event_class_by_index(*sc1, 0);
+ *ec2 = bt_private_stream_class_borrow_event_class_by_index(*sc1, 1);
+ *ec3 = bt_private_stream_class_borrow_event_class_by_index(*sc2, 0);
}
static void test_example_scenario(void)
/* User A acquires a reference to SC2 from TC1. */
user_a.sc = bt_object_get_ref(
- bt_private_trace_borrow_private_stream_class_by_index(
+ bt_private_trace_borrow_stream_class_by_index(
user_a.tc, 1));
ok(user_a.sc, "User A acquires SC2 from TC1");
ok(bt_object_get_ref_count((void *) weak_tc1) == 2,
/* User A acquires a reference to EC3 from SC2. */
user_a.ec = bt_object_get_ref(
- bt_private_stream_class_borrow_private_event_class_by_index(
+ bt_private_stream_class_borrow_event_class_by_index(
user_a.sc, 0));
ok(user_a.ec, "User A acquires EC3 from SC2");
ok(bt_object_get_ref_count((void *) weak_tc1) == 2,
/* User C acquires a reference to EC1. */
diag("User C acquires a reference to EC1");
user_c.ec = bt_object_get_ref(
- bt_private_stream_class_borrow_private_event_class_by_index(
+ bt_private_stream_class_borrow_event_class_by_index(
user_b.sc, 0));
ok(bt_object_get_ref_count((void *) weak_ec1) == 1,
"EC1 reference count is 1");