And uses aliases in CLI, plugins, and tests.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
*/
static
void plugin_comp_cls_names(const char *arg, char **name, char **plugin,
- char **comp_cls, enum bt_component_class_type *comp_cls_type)
+ char **comp_cls, bt_component_class_type *comp_cls_type)
{
const char *at = arg;
GString *gs_name = NULL;
*/
static
struct bt_config_component *bt_config_component_create(
- enum bt_component_class_type type,
+ bt_component_class_type type,
const char *plugin_name, const char *comp_cls_name)
{
struct bt_config_component *cfg_component = NULL;
char *name = NULL;
char *plugin_name = NULL;
char *comp_cls_name = NULL;
- enum bt_component_class_type type;
+ bt_component_class_type type;
plugin_comp_cls_names(arg, &name, &plugin_name, &comp_cls_name, &type);
if (!plugin_name || !comp_cls_name) {
GString *cur_param_key = NULL;
char error_buf[256] = { 0 };
long retry_duration = -1;
- enum bt_value_status status;
+ bt_value_status status;
struct poptOption run_long_options[] = {
{ "base-params", 'b', POPT_ARG_STRING, NULL, OPT_BASE_PARAMS, NULL, NULL },
{ "component", 'c', POPT_ARG_STRING, NULL, OPT_COMPONENT, NULL, NULL },
{
int ret = 0;
GList *leftover;
- enum bt_value_status status;
+ bt_value_status status;
for (leftover = leftovers; leftover != NULL;
leftover = g_list_next(leftover)) {
switch (opt) {
case OPT_COMPONENT:
{
- enum bt_component_class_type type;
+ bt_component_class_type type;
const char *type_prefix;
/* Append current component's name if needed */
struct bt_config_component {
bt_object base;
- enum bt_component_class_type type;
+ bt_component_class_type type;
GString *plugin_name;
GString *comp_cls_name;
bt_value *params;
const char **fail_reason)
{
const bt_value *result = NULL;
- enum bt_query_executor_status status;
+ bt_query_executor_status status;
*fail_reason = "unknown error";
int ret = 0;
static
const bt_component_class *find_component_class(const char *plugin_name,
const char *comp_class_name,
- enum bt_component_class_type comp_class_type)
+ bt_component_class_type comp_class_type)
{
const bt_component_class *comp_cls = NULL;
}
static
-const char *component_type_str(enum bt_component_class_type type)
+const char *component_type_str(bt_component_class_type type)
{
switch (type) {
case BT_COMPONENT_CLASS_TYPE_SOURCE:
static
void print_plugin_comp_cls_opt(FILE *fh, const char *plugin_name,
- const char *comp_cls_name, enum bt_component_class_type type)
+ const char *comp_cls_name, bt_component_class_type type)
{
GString *shell_plugin_name = NULL;
GString *shell_comp_cls_name = NULL;
{
unsigned int major, minor, patch;
const char *extra;
- enum bt_property_availability version_avail;
+ bt_property_availability version_avail;
const char *plugin_name;
const char *path;
const char *author;
bt_component_class_get_description(comp_cls);
const char *comp_class_help =
bt_component_class_get_help(comp_cls);
- enum bt_component_class_type type =
+ bt_component_class_type type =
bt_component_class_get_type(comp_cls);
print_plugin_comp_cls_opt(stdout, plugin_name, comp_class_name, type);
bt_component_class_get_name(comp_class);
const char *comp_class_description =
bt_component_class_get_description(comp_class);
- enum bt_component_class_type type =
+ bt_component_class_type type =
bt_component_class_get_type(comp_class);
printf(" ");
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 =
+ static const bt_component_class_type comp_cls_type =
BT_COMPONENT_CLASS_TYPE_SOURCE;
int64_t array_size, i;
const char *fail_reason = NULL;
const char *metadata_text = NULL;
static const char * const plugin_name = "ctf";
static const char * const comp_cls_name = "fs";
- static const enum bt_component_class_type comp_cls_type =
+ static const bt_component_class_type comp_cls_type =
BT_COMPONENT_CLASS_TYPE_SOURCE;
const char *fail_reason = NULL;
FILE *out_stream = stdout;
uint64_t i;
input_port_count_func_t port_count_fn;
borrow_input_port_by_index_func_t port_by_index_fn;
- enum bt_graph_status status = BT_GRAPH_STATUS_ERROR;
+ bt_graph_status status = BT_GRAPH_STATUS_ERROR;
bool insert_trimmer = false;
bt_value *trimmer_params = NULL;
char *intersection_begin = NULL;
range = (struct trace_range *) g_hash_table_lookup(
ctx->intersections, &port_id);
if (range) {
- enum bt_value_status status;
+ bt_value_status status;
intersection_begin = s_from_ns(
range->intersection_range_begin_ns);
* source and the trimmer.
*/
char *trimmer_name = NULL;
- enum bt_graph_status graph_status;
+ bt_graph_status graph_status;
ret = asprintf(&trimmer_name,
"stream-intersection-trimmer-%s",
int cmd_run_ctx_init(struct cmd_run_ctx *ctx, struct bt_config *cfg)
{
int ret = 0;
- enum bt_graph_status status;
+ bt_graph_status status;
ctx->cfg = cfg;
ctx->connect_ports = false;
int ret = 0;
uint64_t trace_idx;
int64_t trace_count;
- enum bt_value_status value_status;
+ bt_value_status value_status;
const char *path = NULL;
const bt_value *component_path_value = NULL;
bt_value *query_params = NULL;
}
static inline
-const char *bt_graph_status_str(enum bt_graph_status status)
+const char *bt_graph_status_str(bt_graph_status status)
{
switch (status) {
case BT_GRAPH_STATUS_OK:
/* Run the graph */
while (true) {
- enum bt_graph_status graph_status = bt_graph_run(ctx.graph);
+ bt_graph_status graph_status = bt_graph_run(ctx.graph);
/*
* Reset console in case something messed with console
extern "C" {
#endif
-enum bt_component_class_type {
- BT_COMPONENT_CLASS_TYPE_SOURCE = 0,
- BT_COMPONENT_CLASS_TYPE_FILTER = 1,
- BT_COMPONENT_CLASS_TYPE_SINK = 2,
-};
+typedef enum bt_component_class_type {
+ BT_COMPONENT_CLASS_TYPE_SOURCE = 0,
+ BT_COMPONENT_CLASS_TYPE_FILTER = 1,
+ BT_COMPONENT_CLASS_TYPE_SINK = 2,
+} bt_component_class_type;
extern const char *bt_component_class_get_name(
const bt_component_class *component_class);
extern const char *bt_component_class_get_help(
const bt_component_class *component_class);
-extern enum bt_component_class_type bt_component_class_get_type(
+extern bt_component_class_type bt_component_class_get_type(
const bt_component_class *component_class);
static inline
#include <stdint.h>
-/* For enum bt_self_component_status */
+/* For bt_self_component_status */
#include <babeltrace/graph/self-component.h>
-/* For enum bt_self_message_iterator_status */
+/* For bt_self_message_iterator_status */
#include <babeltrace/graph/self-message-iterator.h>
-/* For enum bt_query_status */
+/* For bt_query_status */
#include <babeltrace/graph/component-class.h>
/*
extern "C" {
#endif
-typedef enum bt_self_component_status
+typedef bt_self_component_status
(*bt_component_class_filter_init_method)(
bt_self_component_filter *self_component,
const bt_value *params, void *init_method_data);
typedef void (*bt_component_class_filter_finalize_method)(
bt_self_component_filter *self_component);
-typedef enum bt_self_message_iterator_status
+typedef bt_self_message_iterator_status
(*bt_component_class_filter_message_iterator_init_method)(
bt_self_message_iterator *message_iterator,
bt_self_component_filter *self_component,
(*bt_component_class_filter_message_iterator_finalize_method)(
bt_self_message_iterator *message_iterator);
-typedef enum bt_self_message_iterator_status
+typedef bt_self_message_iterator_status
(*bt_component_class_filter_message_iterator_next_method)(
bt_self_message_iterator *message_iterator,
bt_message_array_const msgs, uint64_t capacity,
uint64_t *count);
-typedef enum bt_query_status
+typedef bt_query_status
(*bt_component_class_filter_query_method)(
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
+typedef bt_self_component_status
(*bt_component_class_filter_accept_input_port_connection_method)(
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
+typedef bt_self_component_status
(*bt_component_class_filter_accept_output_port_connection_method)(
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
+typedef bt_self_component_status
(*bt_component_class_filter_input_port_connected_method)(
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
+typedef bt_self_component_status
(*bt_component_class_filter_output_port_connected_method)(
bt_self_component_filter *self_component,
bt_self_component_port_output *self_port,
#include <stdint.h>
-/* For enum bt_self_component_status */
+/* For bt_self_component_status */
#include <babeltrace/graph/self-component.h>
-/* For enum bt_query_status */
+/* For bt_query_status */
#include <babeltrace/graph/component-class.h>
/*
extern "C" {
#endif
-typedef enum bt_self_component_status
-(*bt_component_class_sink_init_method)(
+typedef bt_self_component_status (*bt_component_class_sink_init_method)(
bt_self_component_sink *self_component,
const bt_value *params, void *init_method_data);
typedef void (*bt_component_class_sink_finalize_method)(
bt_self_component_sink *self_component);
-typedef enum bt_query_status
+typedef bt_query_status
(*bt_component_class_sink_query_method)(
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
+typedef bt_self_component_status
(*bt_component_class_sink_accept_input_port_connection_method)(
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
+typedef bt_self_component_status
(*bt_component_class_sink_input_port_connected_method)(
bt_self_component_sink *self_component,
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)(
+typedef bt_self_component_status (*bt_component_class_sink_consume_method)(
bt_self_component_sink *self_component);
static inline
#include <stdint.h>
-/* For enum bt_self_component_status */
+/* For bt_self_component_status */
#include <babeltrace/graph/self-component.h>
-/* For enum bt_self_message_iterator_status */
+/* For bt_self_message_iterator_status */
#include <babeltrace/graph/self-message-iterator.h>
-/* For enum bt_query_status */
+/* For bt_query_status */
#include <babeltrace/graph/component-class.h>
/*
extern "C" {
#endif
-typedef enum bt_self_component_status
+typedef bt_self_component_status
(*bt_component_class_source_init_method)(
bt_self_component_source *self_component,
const bt_value *params, void *init_method_data);
typedef void (*bt_component_class_source_finalize_method)(
bt_self_component_source *self_component);
-typedef enum bt_self_message_iterator_status
+typedef bt_self_message_iterator_status
(*bt_component_class_source_message_iterator_init_method)(
bt_self_message_iterator *message_iterator,
bt_self_component_source *self_component,
(*bt_component_class_source_message_iterator_finalize_method)(
bt_self_message_iterator *message_iterator);
-typedef enum bt_self_message_iterator_status
+typedef bt_self_message_iterator_status
(*bt_component_class_source_message_iterator_next_method)(
bt_self_message_iterator *message_iterator,
bt_message_array_const msgs, uint64_t capacity,
uint64_t *count);
-typedef enum bt_query_status
-(*bt_component_class_source_query_method)(
+typedef bt_query_status (*bt_component_class_source_query_method)(
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
+typedef bt_self_component_status
(*bt_component_class_source_accept_output_port_connection_method)(
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
+typedef bt_self_component_status
(*bt_component_class_source_output_port_connected_method)(
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)(
+typedef void (*bt_component_class_source_output_port_disconnected_method)(
bt_self_component_source *self_component,
bt_self_component_port_output *self_port);
* SOFTWARE.
*/
-/* For enum bt_query_executor_status */
+/* For BT_QUERY_EXECUTOR_STATUS_* */
#include <babeltrace/graph/query-executor-const.h>
/* For bt_component_class */
extern "C" {
#endif
-enum bt_query_status {
+typedef enum bt_query_status {
BT_QUERY_STATUS_OK = BT_QUERY_EXECUTOR_STATUS_OK,
BT_QUERY_STATUS_AGAIN = BT_QUERY_EXECUTOR_STATUS_AGAIN,
BT_QUERY_STATUS_ERROR = BT_QUERY_EXECUTOR_STATUS_ERROR,
BT_QUERY_STATUS_NOMEM = BT_QUERY_EXECUTOR_STATUS_NOMEM,
BT_QUERY_STATUS_INVALID_OBJECT = BT_QUERY_EXECUTOR_STATUS_INVALID_OBJECT,
BT_QUERY_STATUS_INVALID_PARAMS = BT_QUERY_EXECUTOR_STATUS_INVALID_PARAMS,
-};
+} bt_query_status;
extern int bt_component_class_set_description(
bt_component_class *component_class,
* SOFTWARE.
*/
-/* For enum bt_component_class_type */
+/* For bt_component_class_type */
#include <babeltrace/graph/component-class-const.h>
/*
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(
+extern bt_component_class_type bt_component_get_class_type(
const bt_component *component);
static inline
extern "C" {
#endif
-enum bt_graph_status {
+typedef enum bt_graph_status {
BT_GRAPH_STATUS_OK = 0,
BT_GRAPH_STATUS_END = 1,
BT_GRAPH_STATUS_AGAIN = 11,
BT_GRAPH_STATUS_ERROR = -1,
BT_GRAPH_STATUS_NO_SINK = -6,
BT_GRAPH_STATUS_NOMEM = -12,
-};
+} bt_graph_status;
extern bt_bool bt_graph_is_canceled(const bt_graph *graph);
*/
#include <babeltrace/types.h>
-/* For enum bt_graph_status */
+/* For bt_graph_status */
#include <babeltrace/graph/graph-const.h>
#ifdef __cplusplus
extern bt_graph *bt_graph_create(void);
-extern enum bt_graph_status bt_graph_add_source_component(
- bt_graph *graph,
+extern bt_graph_status bt_graph_add_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(
+extern bt_graph_status bt_graph_add_source_component_with_init_method_data(
bt_graph *graph,
const bt_component_class_source *component_class,
const char *name, const bt_value *params,
void *init_method_data,
const bt_component_source **component);
-extern enum bt_graph_status bt_graph_add_filter_component(
- bt_graph *graph,
+extern bt_graph_status bt_graph_add_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(
+extern bt_graph_status bt_graph_add_filter_component_with_init_method_data(
bt_graph *graph,
const bt_component_class_filter *component_class,
const char *name, const bt_value *params,
void *init_method_data,
const bt_component_filter **component);
-extern enum bt_graph_status bt_graph_add_sink_component(
- bt_graph *graph,
- const bt_component_class_sink *component_class,
+extern bt_graph_status bt_graph_add_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(
- bt_graph *graph,
- const bt_component_class_sink *component_class,
+extern bt_graph_status bt_graph_add_sink_component_with_init_method_data(
+ bt_graph *graph, const bt_component_class_sink *component_class,
const char *name, const bt_value *params,
void *init_method_data,
const bt_component_sink **component);
-extern enum bt_graph_status bt_graph_connect_ports(
- bt_graph *graph,
+extern bt_graph_status bt_graph_connect_ports(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(bt_graph *graph);
+extern bt_graph_status bt_graph_run(bt_graph *graph);
-extern enum bt_graph_status bt_graph_consume(
+extern bt_graph_status bt_graph_consume(
bt_graph *graph);
-extern enum bt_graph_status
+extern bt_graph_status
bt_graph_add_filter_component_input_port_added_listener(
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
+extern bt_graph_status
bt_graph_add_sink_component_input_port_added_listener(
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
+extern bt_graph_status
bt_graph_add_source_component_output_port_added_listener(
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
+extern bt_graph_status
bt_graph_add_filter_component_output_port_added_listener(
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
+extern bt_graph_status
bt_graph_add_filter_component_input_port_removed_listener(
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
+extern bt_graph_status
bt_graph_add_sink_component_input_port_removed_listener(
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
+extern bt_graph_status
bt_graph_add_source_component_output_port_removed_listener(
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
+extern bt_graph_status
bt_graph_add_filter_component_output_port_removed_listener(
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
+extern bt_graph_status
bt_graph_add_source_filter_component_ports_connected_listener(
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
+extern bt_graph_status
bt_graph_add_source_sink_component_ports_connected_listener(
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
+extern bt_graph_status
bt_graph_add_filter_sink_component_ports_connected_listener(
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
+extern bt_graph_status
bt_graph_add_source_filter_component_ports_disconnected_listener(
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
+extern bt_graph_status
bt_graph_add_source_sink_component_ports_disconnected_listener(
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
+extern bt_graph_status
bt_graph_add_filter_sink_component_ports_disconnected_listener(
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(bt_graph *graph);
+extern bt_graph_status bt_graph_cancel(bt_graph *graph);
#ifdef __cplusplus
}
/**
* Message types. Unhandled message types should be ignored.
*/
-enum bt_message_type {
+typedef enum bt_message_type {
BT_MESSAGE_TYPE_EVENT = 0,
BT_MESSAGE_TYPE_INACTIVITY = 1,
BT_MESSAGE_TYPE_STREAM_BEGINNING = 2,
BT_MESSAGE_TYPE_STREAM_END = 3,
BT_MESSAGE_TYPE_PACKET_BEGINNING = 4,
BT_MESSAGE_TYPE_PACKET_END = 5,
-};
+} bt_message_type;
/**
* Get a message's type.
* @param message Message instance
* @returns One of #bt_message_type
*/
-extern enum bt_message_type bt_message_get_type(
- const bt_message *message);
+extern bt_message_type bt_message_get_type(const bt_message *message);
extern void bt_message_get_ref(const bt_message *message);
/* For bt_message, bt_clock_snapshot */
#include <babeltrace/types.h>
-/* For enum bt_clock_snapshot_state */
+/* For bt_clock_snapshot_state */
#include <babeltrace/trace-ir/clock-snapshot-const.h>
#ifdef __cplusplus
extern "C" {
#endif
-extern enum bt_clock_snapshot_state
+extern bt_clock_snapshot_state
bt_message_inactivity_borrow_default_clock_snapshot_const(
const bt_message *msg, const bt_clock_snapshot **snapshot);
extern "C" {
#endif
-enum bt_message_iterator_status {
+typedef enum bt_message_iterator_status {
BT_MESSAGE_ITERATOR_STATUS_OK = 0,
BT_MESSAGE_ITERATOR_STATUS_END = 1,
BT_MESSAGE_ITERATOR_STATUS_AGAIN = 11,
BT_MESSAGE_ITERATOR_STATUS_CANCELED = 125,
BT_MESSAGE_ITERATOR_STATUS_ERROR = -1,
BT_MESSAGE_ITERATOR_STATUS_NOMEM = -12,
-};
+} bt_message_iterator_status;
#ifdef __cplusplus
}
/* For bt_message, bt_clock_snapshot, bt_stream */
#include <babeltrace/types.h>
-/* For enum bt_clock_snapshot_state */
+/* For bt_clock_snapshot_state */
#include <babeltrace/trace-ir/clock-snapshot-const.h>
#ifdef __cplusplus
extern const bt_stream *bt_message_stream_beginning_borrow_stream_const(
const bt_message *message);
-extern enum bt_clock_snapshot_state
+extern bt_clock_snapshot_state
bt_message_stream_beginning_borrow_default_clock_snapshot_const(
const bt_message *msg, const bt_clock_snapshot **snapshot);
extern const bt_stream *bt_message_stream_end_borrow_stream_const(
const bt_message *message);
-extern enum bt_clock_snapshot_state
+extern bt_clock_snapshot_state
bt_message_stream_end_borrow_default_clock_snapshot_const(
const bt_message *msg, const bt_clock_snapshot **snapshot);
extern "C" {
#endif
-enum bt_port_type {
+typedef enum bt_port_type {
BT_PORT_TYPE_INPUT = 0,
BT_PORT_TYPE_OUTPUT = 1,
-};
+} bt_port_type;
extern const char *bt_port_get_name(const bt_port *port);
-extern enum bt_port_type bt_port_get_type(const bt_port *port);
+extern bt_port_type bt_port_get_type(const bt_port *port);
extern const bt_connection *bt_port_borrow_connection_const(
const bt_port *port);
#endif
static inline
-const bt_port *bt_port_input_as_port_const(
- const 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;
}
#endif
static inline
-const bt_port *bt_port_output_as_port_const(
- const 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;
}
#include <stdint.h>
-/* For enum bt_message_iterator_status */
+/* For bt_message_iterator_status */
#include <babeltrace/graph/message-iterator.h>
/*
bt_graph *graph,
const bt_port_output *output_port);
-extern enum bt_message_iterator_status
+extern bt_message_iterator_status
bt_port_output_message_iterator_next(
bt_port_output_message_iterator *iterator,
bt_message_array_const *msgs, uint64_t *count);
extern "C" {
#endif
-enum bt_query_executor_status {
+typedef enum bt_query_executor_status {
BT_QUERY_EXECUTOR_STATUS_OK = 0,
BT_QUERY_EXECUTOR_STATUS_AGAIN = 11,
BT_QUERY_EXECUTOR_STATUS_UNSUPPORTED = 95,
BT_QUERY_EXECUTOR_STATUS_NOMEM = -12,
BT_QUERY_EXECUTOR_STATUS_INVALID_OBJECT = -23,
BT_QUERY_EXECUTOR_STATUS_INVALID_PARAMS = -24,
-};
+} bt_query_executor_status;
extern
bt_bool bt_query_executor_is_canceled(
* SOFTWARE.
*/
-/* For enum bt_query_executor_status */
+/* For bt_query_executor_status */
#include <babeltrace/graph/query-executor.h>
/* For bt_query_executor, bt_component_class, bt_value */
bt_query_executor *bt_query_executor_create(void);
extern
-enum bt_query_executor_status bt_query_executor_query(
+bt_query_executor_status bt_query_executor_query(
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(
+bt_query_executor_status bt_query_executor_cancel(
bt_query_executor *query_executor);
#ifdef __cplusplus
#include <stdint.h>
-/* For enum bt_self_component_status */
+/* For bt_self_component_status */
#include <babeltrace/graph/self-component.h>
/*
bt_self_component_filter *self_component,
uint64_t index);
-extern enum bt_self_component_status
+extern bt_self_component_status
bt_self_component_filter_add_output_port(
bt_self_component_filter *self_component,
const char *name, void *data,
bt_self_component_filter *self_component,
uint64_t index);
-extern enum bt_self_component_status
+extern bt_self_component_status
bt_self_component_filter_add_input_port(
bt_self_component_filter *self_component,
const char *name, void *data,
#include <stdint.h>
-/* For enum bt_message_iterator_status */
+/* For bt_message_iterator_status */
#include <babeltrace/graph/message-iterator.h>
/*
bt_self_component_port_input_message_iterator_borrow_component(
bt_self_component_port_input_message_iterator *iterator);
-extern enum bt_message_iterator_status
+extern bt_message_iterator_status
bt_self_component_port_input_message_iterator_next(
bt_self_component_port_input_message_iterator *iterator,
bt_message_array_const *msgs, uint64_t *count);
* SOFTWARE.
*/
-/* 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
* SOFTWARE.
*/
-/* 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
extern "C" {
#endif
-enum bt_self_component_port_status {
+typedef enum bt_self_component_port_status {
BT_SELF_PORT_STATUS_OK = 0,
-};
+} bt_self_component_port_status;
static inline
const bt_port *bt_self_component_port_as_port(
extern bt_self_component *bt_self_component_port_borrow_component(
bt_self_component_port *self_port);
-extern enum bt_self_component_port_status
+extern bt_self_component_port_status
bt_self_component_port_remove_from_component(
bt_self_component_port *self_port);
#include <stdint.h>
-/* For enum bt_self_component_status */
+/* For bt_self_component_status */
#include <babeltrace/graph/self-component.h>
/*
bt_self_component_sink_borrow_input_port_by_index(
bt_self_component_sink *self_component, uint64_t index);
-extern enum bt_self_component_status
+extern bt_self_component_status
bt_self_component_sink_add_input_port(
bt_self_component_sink *self_component,
const char *name, void *user_data,
#include <stdint.h>
-/* For enum bt_self_component_status */
+/* For bt_self_component_status */
#include <babeltrace/graph/self-component.h>
/*
bt_self_component_source *self_component,
uint64_t index);
-extern enum bt_self_component_status
+extern bt_self_component_status
bt_self_component_source_add_output_port(
bt_self_component_source *self_component,
const char *name, void *user_data,
extern "C" {
#endif
-enum bt_self_component_status {
+typedef enum bt_self_component_status {
BT_SELF_COMPONENT_STATUS_OK = 0,
BT_SELF_COMPONENT_STATUS_END = 1,
BT_SELF_COMPONENT_STATUS_AGAIN = 11,
BT_SELF_COMPONENT_STATUS_REFUSE_PORT_CONNECTION = 111,
BT_SELF_COMPONENT_STATUS_ERROR = -1,
BT_SELF_COMPONENT_STATUS_NOMEM = -12,
-};
+} bt_self_component_status;
static inline
const bt_component *bt_self_component_as_component(
extern "C" {
#endif
-enum bt_self_message_iterator_status {
+typedef enum bt_self_message_iterator_status {
BT_SELF_MESSAGE_ITERATOR_STATUS_OK = BT_MESSAGE_ITERATOR_STATUS_OK,
BT_SELF_MESSAGE_ITERATOR_STATUS_END = BT_MESSAGE_ITERATOR_STATUS_END,
BT_SELF_MESSAGE_ITERATOR_STATUS_AGAIN = BT_MESSAGE_ITERATOR_STATUS_AGAIN,
BT_SELF_MESSAGE_ITERATOR_STATUS_ERROR = BT_MESSAGE_ITERATOR_STATUS_ERROR,
BT_SELF_MESSAGE_ITERATOR_STATUS_NOMEM = BT_MESSAGE_ITERATOR_STATUS_NOMEM,
-};
+} bt_self_message_iterator_status;
extern bt_self_component *
bt_self_message_iterator_borrow_component(
/**
@brief Log levels.
*/
-enum bt_logging_level {
+typedef enum bt_logging_level {
/// Additional, low-level debugging context information.
BT_LOGGING_LEVEL_VERBOSE = 1,
/// Logging is disabled.
BT_LOGGING_LEVEL_NONE = 0xff,
-};
+} bt_logging_level;
/**
@brief Returns the minimal log level of the Babeltrace library.
@sa bt_logging_get_global_level(): Returns the current global log level.
*/
-extern enum bt_logging_level bt_logging_get_minimal_level(void);
+extern bt_logging_level bt_logging_get_minimal_level(void);
/**
@brief Returns the current global log level of the Babeltrace library.
@sa bt_logging_set_global_level(): Sets the current global log level.
@sa bt_logging_get_minimal_level(): Returns the minimal log level.
*/
-extern enum bt_logging_level bt_logging_get_global_level(void);
+extern bt_logging_level bt_logging_get_global_level(void);
/**
@brief Sets the current global log level of the Babeltrace library
@sa bt_logging_get_global_level(): Returns the global log level.
*/
-extern void bt_logging_set_global_level(enum bt_logging_level log_level);
+extern void bt_logging_set_global_level(bt_logging_level log_level);
/** @} */
*/
#include <babeltrace/types.h>
-/* For enum bt_component_class_type */
-#include <babeltrace/graph/component-class.h>
-
-/* For enum bt_component_class_source */
-#include <babeltrace/graph/component-class-source.h>
-
-/* For enum bt_component_class_filter */
-#include <babeltrace/graph/component-class-filter.h>
-
-/* For enum bt_component_class_sink */
-#include <babeltrace/graph/component-class-sink.h>
-
-/* For enum bt_property_availability */
+/* For bt_property_availability */
#include <babeltrace/property.h>
#ifdef __cplusplus
extern const char *bt_plugin_get_path(const bt_plugin *plugin);
-extern enum bt_property_availability bt_plugin_get_version(
+extern bt_property_availability bt_plugin_get_version(
const bt_plugin *plugin, unsigned int *major,
unsigned int *minor, unsigned int *patch, const char **extra);
/* For enum bt_plugin_status */
#include <babeltrace/plugin/plugin-const.h>
-/* For enum bt_component_class_type */
+/* For bt_component_class_type */
#include <babeltrace/graph/component-class-const.h>
/* For component class method type definitions */
-#include <babeltrace/graph/component-class-source-const.h>
-#include <babeltrace/graph/component-class-filter-const.h>
-#include <babeltrace/graph/component-class-sink-const.h>
+#include <babeltrace/graph/component-class-source.h>
+#include <babeltrace/graph/component-class-filter.h>
+#include <babeltrace/graph/component-class-sink.h>
/*
* _BT_HIDDEN: set the hidden attribute for internal functions
#define __BT_PLUGIN_VERSION_MINOR 0
/* Plugin initialization function type */
-enum bt_self_plugin_status {
+typedef enum bt_self_plugin_status {
BT_SELF_PLUGIN_STATUS_OK = 0,
BT_SELF_PLUGIN_STATUS_NOMEM = -12,
BT_SELF_PLUGIN_STATUS_ERROR = -1,
-};
+} bt_self_plugin_status;
typedef struct bt_self_plugin bt_self_plugin;
-typedef enum bt_self_plugin_status (*bt_plugin_init_func)(
+typedef bt_self_plugin_status (*bt_plugin_init_func)(
bt_self_plugin *plugin);
/* Plugin exit function type */
const char *name;
/* Component class type */
- enum bt_component_class_type type;
+ bt_component_class_type type;
/* Mandatory methods (depends on component class type) */
union {
extern "C" {
#endif
-enum bt_property_availability {
+typedef enum bt_property_availability {
BT_PROPERTY_AVAILABILITY_AVAILABLE,
BT_PROPERTY_AVAILABILITY_NOT_AVAILABLE,
-};
+} bt_property_availability;
#ifdef __cplusplus
}
extern "C" {
#endif
-enum bt_clock_class_status {
+typedef enum bt_clock_class_status {
BT_CLOCK_CLASS_STATUS_OK = 0,
BT_CLOCK_CLASS_STATUS_NOMEM = -12,
BT_CLOCK_CLASS_STATUS_OVERFLOW = -75,
-};
+} bt_clock_class_status;
extern const char *bt_clock_class_get_name(
const bt_clock_class *clock_class);
extern bt_uuid bt_clock_class_get_uuid(
const bt_clock_class *clock_class);
-extern enum bt_clock_class_status bt_clock_class_cycles_to_ns_from_origin(
+extern bt_clock_class_status bt_clock_class_cycles_to_ns_from_origin(
const bt_clock_class *clock_class,
uint64_t cycles, int64_t *ns_from_origin);
/* For bt_bool, bt_uuid, bt_clock_class */
#include <babeltrace/types.h>
-/* For enum bt_clock_class_status */
+/* For bt_clock_class_status */
#include <babeltrace/trace-ir/clock-class-const.h>
#ifdef __cplusplus
extern bt_clock_class *bt_clock_class_create(void);
-extern enum bt_clock_class_status bt_clock_class_set_name(
+extern bt_clock_class_status bt_clock_class_set_name(
bt_clock_class *clock_class, const char *name);
-extern enum bt_clock_class_status bt_clock_class_set_description(
+extern bt_clock_class_status bt_clock_class_set_description(
bt_clock_class *clock_class, const char *description);
extern void bt_clock_class_set_frequency(bt_clock_class *clock_class,
extern "C" {
#endif
-enum bt_clock_snapshot_state {
+typedef enum bt_clock_snapshot_state {
BT_CLOCK_SNAPSHOT_STATE_KNOWN,
BT_CLOCK_SNAPSHOT_STATE_UNKNOWN,
-};
+} bt_clock_snapshot_state;
-enum bt_clock_snapshot_status {
+typedef enum bt_clock_snapshot_status {
BT_CLOCK_SNAPSHOT_STATUS_OK = 0,
BT_CLOCK_SNAPSHOT_STATUS_OVERFLOW = -75,
-};
+} bt_clock_snapshot_status;
extern const bt_clock_class *bt_clock_snapshot_borrow_clock_class_const(
const bt_clock_snapshot *clock_snapshot);
extern uint64_t bt_clock_snapshot_get_value(
const bt_clock_snapshot *clock_snapshot);
-extern enum bt_clock_snapshot_status bt_clock_snapshot_get_ns_from_origin(
+extern bt_clock_snapshot_status bt_clock_snapshot_get_ns_from_origin(
const bt_clock_snapshot *clock_snapshot,
int64_t *ns_from_origin);
* http://www.efficios.com/ctf
*/
-/* For enum bt_property_availability */
+/* For bt_property_availability */
#include <babeltrace/property.h>
/* For bt_event_class, bt_field_class, bt_stream_class */
extern "C" {
#endif
-enum bt_event_class_status {
+typedef enum bt_event_class_status {
BT_EVENT_CLASS_STATUS_OK = 0,
BT_EVENT_CLASS_STATUS_NOMEM = -12,
-};
+} bt_event_class_status;
-enum bt_event_class_log_level {
+typedef enum bt_event_class_log_level {
BT_EVENT_CLASS_LOG_LEVEL_EMERGENCY,
BT_EVENT_CLASS_LOG_LEVEL_ALERT,
BT_EVENT_CLASS_LOG_LEVEL_CRITICAL,
BT_EVENT_CLASS_LOG_LEVEL_DEBUG_FUNCTION,
BT_EVENT_CLASS_LOG_LEVEL_DEBUG_LINE,
BT_EVENT_CLASS_LOG_LEVEL_DEBUG,
-};
+} bt_event_class_log_level;
extern const bt_stream_class *bt_event_class_borrow_stream_class_const(
const 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(
+extern bt_property_availability bt_event_class_get_log_level(
const bt_event_class *event_class,
- enum bt_event_class_log_level *log_level);
+ bt_event_class_log_level *log_level);
extern const char *bt_event_class_get_emf_uri(
const bt_event_class *event_class);
* http://www.efficios.com/ctf
*/
-/* For enum bt_event_class_status, enum bt_event_class_log_level */
+/* For bt_event_class_status, bt_event_class_log_level */
#include <babeltrace/trace-ir/event-class-const.h>
/* For bt_event_class, bt_stream_class */
extern bt_stream_class *bt_event_class_borrow_stream_class(
bt_event_class *event_class);
-extern enum bt_event_class_status bt_event_class_set_name(
+extern bt_event_class_status bt_event_class_set_name(
bt_event_class *event_class, const char *name);
-extern void bt_event_class_set_log_level(
- bt_event_class *event_class,
- enum bt_event_class_log_level log_level);
+extern void bt_event_class_set_log_level(bt_event_class *event_class,
+ bt_event_class_log_level log_level);
-extern enum bt_event_class_status bt_event_class_set_emf_uri(
- bt_event_class *event_class,
- const char *emf_uri);
+extern bt_event_class_status bt_event_class_set_emf_uri(
+ bt_event_class *event_class, const char *emf_uri);
-extern enum bt_event_class_status
+extern bt_event_class_status
bt_event_class_set_specific_context_field_class(bt_event_class *event_class,
bt_field_class *field_class);
-extern enum bt_event_class_status bt_event_class_set_payload_field_class(
+extern bt_event_class_status bt_event_class_set_payload_field_class(
bt_event_class *event_class,
bt_field_class *field_class);
* http://www.efficios.com/ctf
*/
-/* For enum bt_clock_snapshot_state */
+/* For bt_clock_snapshot_state */
#include <babeltrace/trace-ir/clock-snapshot-const.h>
/* For bt_event, bt_clock_snapshot, bt_event_class, bt_field, bt_packet */
extern "C" {
#endif
-enum bt_event_status {
+typedef enum bt_event_status {
BT_EVENT_STATUS_OK = 0,
BT_EVENT_STATUS_NOMEM = -12,
-};
+} bt_event_status;
extern const bt_event_class *bt_event_borrow_class_const(
const bt_event *event);
extern const bt_field *bt_event_borrow_payload_field_const(
const bt_event *event);
-extern enum bt_clock_snapshot_state bt_event_borrow_default_clock_snapshot_const(
+extern bt_clock_snapshot_state bt_event_borrow_default_clock_snapshot_const(
const bt_event *event,
const bt_clock_snapshot **clock_snapshot);
/* For bt_event, bt_event_header_field, bt_event_class, bt_field, bt_packet */
#include <babeltrace/types.h>
-/* For enum bt_event_status */
+/* For bt_event_status */
#include <babeltrace/trace-ir/event-const.h>
#ifdef __cplusplus
extern bt_field *bt_event_borrow_header_field(bt_event *event);
-extern enum bt_event_status bt_event_move_header_field(bt_event *event,
+extern bt_event_status bt_event_move_header_field(bt_event *event,
bt_event_header_field *header);
extern bt_field *
extern "C" {
#endif
-enum bt_field_class_status {
+typedef enum bt_field_class_status {
BT_FIELD_CLASS_STATUS_OK = 0,
BT_FIELD_CLASS_STATUS_NOMEM = -12,
-};
+} bt_field_class_status;
-enum bt_field_class_type {
+typedef enum bt_field_class_type {
BT_FIELD_CLASS_TYPE_UNSIGNED_INTEGER,
BT_FIELD_CLASS_TYPE_SIGNED_INTEGER,
BT_FIELD_CLASS_TYPE_UNSIGNED_ENUMERATION,
BT_FIELD_CLASS_TYPE_STATIC_ARRAY,
BT_FIELD_CLASS_TYPE_DYNAMIC_ARRAY,
BT_FIELD_CLASS_TYPE_VARIANT,
-};
+} bt_field_class_type;
-enum bt_field_class_integer_preferred_display_base {
+typedef enum bt_field_class_integer_preferred_display_base {
BT_FIELD_CLASS_INTEGER_PREFERRED_DISPLAY_BASE_BINARY,
BT_FIELD_CLASS_INTEGER_PREFERRED_DISPLAY_BASE_OCTAL,
BT_FIELD_CLASS_INTEGER_PREFERRED_DISPLAY_BASE_DECIMAL,
BT_FIELD_CLASS_INTEGER_PREFERRED_DISPLAY_BASE_HEXADECIMAL,
-};
+} bt_field_class_integer_preferred_display_base;
-extern enum bt_field_class_type bt_field_class_get_type(
+extern bt_field_class_type bt_field_class_get_type(
const bt_field_class *field_class);
extern uint64_t bt_field_class_integer_get_field_value_range(
const bt_field_class *field_class);
-extern enum bt_field_class_integer_preferred_display_base
+extern bt_field_class_integer_preferred_display_base
bt_field_class_integer_get_preferred_display_base(
const bt_field_class *field_class);
const bt_field_class_unsigned_enumeration_mapping_ranges *ranges,
uint64_t index, int64_t *lower, int64_t *upper);
-extern enum bt_field_class_status
+extern bt_field_class_status
bt_field_class_unsigned_enumeration_get_mapping_labels_by_value(
const bt_field_class *field_class, uint64_t value,
bt_field_class_enumeration_mapping_label_array *label_array,
uint64_t *count);
-extern enum bt_field_class_status
+extern bt_field_class_status
bt_field_class_signed_enumeration_get_mapping_labels_by_value(
const bt_field_class *field_class, int64_t value,
bt_field_class_enumeration_mapping_label_array *label_array,
#include <babeltrace/types.h>
/*
- * For enum bt_field_class_status,
- * enum bt_field_class_integer_preferred_display_base
+ * For bt_field_class_status,
+ * bt_field_class_integer_preferred_display_base
*/
#include <babeltrace/trace-ir/field-class-const.h>
extern void bt_field_class_integer_set_preferred_display_base(
bt_field_class *field_class,
- enum bt_field_class_integer_preferred_display_base base);
+ bt_field_class_integer_preferred_display_base base);
extern bt_field_class *bt_field_class_real_create(void);
extern bt_field_class *bt_field_class_signed_enumeration_create(void);
-extern enum bt_field_class_status bt_field_class_unsigned_enumeration_map_range(
+extern bt_field_class_status bt_field_class_unsigned_enumeration_map_range(
bt_field_class *field_class, const char *label,
uint64_t range_lower, uint64_t range_upper);
-extern enum bt_field_class_status bt_field_class_signed_enumeration_map_range(
+extern bt_field_class_status bt_field_class_signed_enumeration_map_range(
bt_field_class *field_class, const char *label,
int64_t range_lower, int64_t range_upper);
extern bt_field_class *bt_field_class_structure_create(void);
-extern enum bt_field_class_status bt_field_class_structure_append_member(
+extern bt_field_class_status bt_field_class_structure_append_member(
bt_field_class *struct_field_class,
const char *name, bt_field_class *field_class);
extern bt_field_class *bt_field_class_dynamic_array_create(
bt_field_class *elem_field_class);
-extern enum bt_field_class_status
+extern bt_field_class_status
bt_field_class_dynamic_array_set_length_field_class(
bt_field_class *field_class,
bt_field_class *length_field_class);
extern bt_field_class *bt_field_class_variant_create(void);
-extern enum bt_field_class_status
+extern bt_field_class_status
bt_field_class_variant_set_selector_field_class(bt_field_class *field_class,
bt_field_class *selector_field_class);
-extern enum bt_field_class_status bt_field_class_variant_append_option(
+extern bt_field_class_status bt_field_class_variant_append_option(
bt_field_class *var_field_class,
const char *name, bt_field_class *field_class);
#include <stdint.h>
-/* For enum bt_field_class_type */
+/* For bt_field_class_type */
#include <babeltrace/trace-ir/field-class.h>
/* For bt_field, bt_field_class */
extern "C" {
#endif
-enum bt_field_status {
+typedef enum bt_field_status {
BT_FIELD_STATUS_OK = 0,
BT_FIELD_STATUS_NOMEM = -12,
-};
+} bt_field_status;
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(
+extern bt_field_class_type bt_field_get_class_type(
const bt_field *field);
extern int64_t bt_field_signed_integer_get_value(const bt_field *field);
extern double bt_field_real_get_value(const bt_field *field);
-extern enum bt_field_status bt_field_unsigned_enumeration_get_mapping_labels(
+extern bt_field_status bt_field_unsigned_enumeration_get_mapping_labels(
const bt_field *field,
bt_field_class_enumeration_mapping_label_array *label_array,
uint64_t *count);
-extern enum bt_field_status bt_field_signed_enumeration_get_mapping_labels(
+extern bt_field_status bt_field_signed_enumeration_get_mapping_labels(
const bt_field *field,
bt_field_class_enumeration_mapping_label_array *label_array,
uint64_t *count);
extern "C" {
#endif
-enum bt_scope {
+typedef enum bt_scope {
BT_SCOPE_PACKET_HEADER,
BT_SCOPE_PACKET_CONTEXT,
BT_SCOPE_EVENT_HEADER,
BT_SCOPE_EVENT_COMMON_CONTEXT,
BT_SCOPE_EVENT_SPECIFIC_CONTEXT,
BT_SCOPE_EVENT_PAYLOAD,
-};
+} bt_scope;
-extern enum bt_scope bt_field_path_get_root_scope(
+extern bt_scope bt_field_path_get_root_scope(
const bt_field_path *field_path);
extern uint64_t bt_field_path_get_index_count(
/* For bt_field, bt_field_class */
#include <babeltrace/types.h>
-/* For enum bt_field_status */
+/* For bt_field_status */
#include <babeltrace/trace-ir/field-const.h>
#ifdef __cplusplus
extern void bt_field_real_set_value(bt_field *field, double value);
-extern enum bt_field_status bt_field_string_set_value(bt_field *field,
+extern bt_field_status bt_field_string_set_value(bt_field *field,
const char *value);
-extern enum bt_field_status bt_field_string_append(bt_field *field,
+extern bt_field_status bt_field_string_append(bt_field *field,
const char *value);
-extern enum bt_field_status bt_field_string_append_with_length(bt_field *field,
+extern bt_field_status bt_field_string_append_with_length(bt_field *field,
const char *value, uint64_t length);
-extern enum bt_field_status bt_field_string_clear(bt_field *field);
+extern bt_field_status bt_field_string_clear(bt_field *field);
extern bt_field *bt_field_structure_borrow_member_field_by_index(
bt_field *field, uint64_t index);
extern bt_field *bt_field_array_borrow_element_field_by_index(
bt_field *field, uint64_t index);
-extern enum bt_field_status bt_field_dynamic_array_set_length(bt_field *field,
+extern bt_field_status bt_field_dynamic_array_set_length(bt_field *field,
uint64_t length);
-extern enum bt_field_status bt_field_variant_select_option_field(
+extern bt_field_status bt_field_variant_select_option_field(
bt_field *field, uint64_t index);
extern bt_field *bt_field_variant_borrow_selected_option_field(
#include <stdint.h>
-/* For enum bt_property_availability */
+/* For bt_property_availability */
#include <babeltrace/property.h>
-/* For enum bt_clock_snapshot_state */
+/* For bt_clock_snapshot_state */
#include <babeltrace/trace-ir/clock-snapshot-const.h>
/*
extern "C" {
#endif
-enum bt_packet_status {
+typedef enum bt_packet_status {
BT_PACKET_STATUS_OK = 0,
BT_PACKET_STATUS_NOMEM = -12,
-};
+} bt_packet_status;
extern const bt_stream *bt_packet_borrow_stream_const(
const bt_packet *packet);
const bt_packet *packet);
extern
-enum bt_clock_snapshot_state
-bt_packet_borrow_default_beginning_clock_snapshot_const(
+bt_clock_snapshot_state bt_packet_borrow_default_beginning_clock_snapshot_const(
const bt_packet *packet,
const bt_clock_snapshot **clock_snapshot);
extern
-enum bt_clock_snapshot_state bt_packet_borrow_default_end_clock_snapshot_const(
+bt_clock_snapshot_state bt_packet_borrow_default_end_clock_snapshot_const(
const bt_packet *packet,
const bt_clock_snapshot **clock_snapshot);
extern
-enum bt_property_availability bt_packet_get_discarded_event_counter_snapshot(
+bt_property_availability bt_packet_get_discarded_event_counter_snapshot(
const bt_packet *packet, uint64_t *value);
extern
-enum bt_property_availability bt_packet_get_packet_counter_snapshot(
+bt_property_availability bt_packet_get_packet_counter_snapshot(
const bt_packet *packet, uint64_t *value);
extern void bt_packet_get_ref(const bt_packet *packet);
/* For bt_packet, bt_packet_header_field, bt_packet_context_field, bt_stream */
#include <babeltrace/types.h>
-/* For enum bt_packet_status */
+/* For bt_packet_status */
#include <babeltrace/trace-ir/packet-const.h>
#include <stdint.h>
bt_field *bt_packet_borrow_header_field(bt_packet *packet);
extern
-enum bt_packet_status bt_packet_move_header_field(bt_packet *packet,
+bt_packet_status bt_packet_move_header_field(bt_packet *packet,
bt_packet_header_field *header);
extern
bt_field *bt_packet_borrow_context_field(bt_packet *packet);
extern
-enum bt_packet_status bt_packet_move_context_field(bt_packet *packet,
+bt_packet_status bt_packet_move_context_field(bt_packet *packet,
bt_packet_context_field *context);
extern
extern "C" {
#endif
-enum bt_stream_class_status {
+typedef enum bt_stream_class_status {
BT_STREAM_CLASS_STATUS_OK = 0,
BT_STREAM_CLASS_STATUS_NOMEM = -12,
-};
+} bt_stream_class_status;
extern const bt_trace_class *bt_stream_class_borrow_trace_class_const(
const bt_stream_class *stream_class);
*/
#include <babeltrace/types.h>
-/* For enum bt_stream_class_status */
+/* For bt_stream_class_status */
#include <babeltrace/trace-ir/stream-class-const.h>
#ifdef __cplusplus
extern bt_trace_class *bt_stream_class_borrow_trace_class(
bt_stream_class *stream_class);
-extern enum bt_stream_class_status bt_stream_class_set_name(
+extern bt_stream_class_status bt_stream_class_set_name(
bt_stream_class *stream_class, const char *name);
extern void bt_stream_class_set_assigns_automatic_event_class_id(
extern void bt_stream_class_set_assigns_automatic_stream_id(
bt_stream_class *stream_class, bt_bool value);
-extern enum bt_stream_class_status
+extern bt_stream_class_status
bt_stream_class_set_packet_context_field_class(
bt_stream_class *stream_class,
bt_field_class *field_class);
-extern enum bt_stream_class_status
+extern bt_stream_class_status
bt_stream_class_set_event_header_field_class(
bt_stream_class *stream_class,
bt_field_class *field_class);
-extern enum bt_stream_class_status
+extern bt_stream_class_status
bt_stream_class_set_event_common_context_field_class(
bt_stream_class *stream_class,
bt_field_class *field_class);
extern bt_clock_class *bt_stream_class_borrow_default_clock_class(
bt_stream_class *stream_class);
-extern enum bt_stream_class_status bt_stream_class_set_default_clock_class(
+extern bt_stream_class_status bt_stream_class_set_default_clock_class(
bt_stream_class *stream_class,
bt_clock_class *clock_class);
extern "C" {
#endif
-enum bt_stream_status {
+typedef enum bt_stream_status {
BT_STREAM_STATUS_OK = 0,
BT_STREAM_STATUS_NOMEM = -12,
-};
+} bt_stream_status;
extern const bt_stream_class *bt_stream_borrow_class_const(
const bt_stream *stream);
/* For bt_trace, bt_stream, bt_stream_class */
#include <babeltrace/types.h>
-/* For enum bt_stream_status */
+/* For bt_stream_status */
#include <babeltrace/trace-ir/stream-const.h>
#include <stdint.h>
extern bt_stream_class *bt_stream_borrow_class(bt_stream *stream);
-extern enum bt_stream_status bt_stream_set_name(bt_stream *stream,
+extern bt_stream_status bt_stream_set_name(bt_stream *stream,
const char *name);
#ifdef __cplusplus
extern "C" {
#endif
-enum bt_trace_class_status {
+typedef enum bt_trace_class_status {
BT_TRACE_CLASS_STATUS_OK = 0,
BT_TRACE_CLASS_STATUS_NOMEM = -12,
-};
+} bt_trace_class_status;
extern bt_bool bt_trace_class_assigns_automatic_stream_class_id(
const bt_trace_class *trace_class);
/* For bt_bool, bt_uuid, bt_trace_class, bt_stream_class, bt_field_class */
#include <babeltrace/types.h>
-/* For enum bt_trace_class_status */
+/* For bt_trace_class_status */
#include <babeltrace/trace-ir/trace-class-const.h>
#include <stdint.h>
extern void bt_trace_class_set_assigns_automatic_stream_class_id(
bt_trace_class *trace_class, bt_bool value);
-extern enum bt_trace_class_status bt_trace_class_set_name(
+extern bt_trace_class_status bt_trace_class_set_name(
bt_trace_class *trace_class, const char *name);
extern void bt_trace_class_set_uuid(bt_trace_class *trace_class,
bt_uuid uuid);
-extern enum bt_trace_class_status bt_trace_class_set_environment_entry_integer(
+extern bt_trace_class_status bt_trace_class_set_environment_entry_integer(
bt_trace_class *trace_class,
const char *name, int64_t value);
-extern enum bt_trace_class_status bt_trace_class_set_environment_entry_string(
+extern bt_trace_class_status bt_trace_class_set_environment_entry_string(
bt_trace_class *trace_class,
const char *name, const char *value);
-extern enum bt_trace_class_status bt_trace_class_set_packet_header_field_class(
+extern bt_trace_class_status bt_trace_class_set_packet_header_field_class(
bt_trace_class *trace_class,
bt_field_class *packet_header_field_class);
extern "C" {
#endif
-enum bt_trace_status {
+typedef enum bt_trace_status {
BT_TRACE_STATUS_OK = 0,
BT_TRACE_STATUS_NOMEM = -12,
-};
+} bt_trace_status;
typedef void (* bt_trace_is_static_listener_func)(const bt_trace *trace,
void *data);
extern bt_bool bt_trace_is_static(const bt_trace *trace);
-extern enum bt_trace_status bt_trace_add_is_static_listener(
+extern bt_trace_status 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 enum bt_trace_status bt_trace_remove_is_static_listener(
+extern bt_trace_status bt_trace_remove_is_static_listener(
const bt_trace *trace, uint64_t listener_id);
extern void bt_trace_get_ref(const bt_trace *trace);
/* For bt_bool, bt_trace, bt_trace_class, bt_stream */
#include <babeltrace/types.h>
-/* For enum bt_trace_status */
+/* For bt_trace_status */
#include <babeltrace/trace-ir/trace-const.h>
#include <stdint.h>
extern bt_trace *bt_trace_create(bt_trace_class *trace_class);
-extern enum bt_trace_status bt_trace_set_name(bt_trace *trace,
+extern bt_trace_status bt_trace_set_name(bt_trace *trace,
const char *name);
extern bt_stream *bt_trace_borrow_stream_by_index(bt_trace *trace,
extern bt_stream *bt_trace_borrow_stream_by_id(bt_trace *trace,
uint64_t id);
-extern enum bt_trace_status bt_trace_make_static(bt_trace *trace);
+extern bt_trace_status bt_trace_make_static(bt_trace *trace);
#ifdef __cplusplus
}
extern "C" {
#endif
-enum bt_value_status {
+typedef enum bt_value_status {
/// Operation canceled.
BT_VALUE_STATUS_CANCELED = 125,
/// Okay, no error.
BT_VALUE_STATUS_OK = 0,
-};
+} bt_value_status;
-enum bt_value_type {
+typedef enum bt_value_type {
/// Null value object.
BT_VALUE_TYPE_NULL = 0,
/// Map value object.
BT_VALUE_TYPE_MAP = 6,
-};
+} bt_value_type;
-extern enum bt_value_type bt_value_get_type(const bt_value *object);
+extern bt_value_type bt_value_get_type(const bt_value *object);
static inline
bt_bool bt_value_is_null(const bt_value *object)
return bt_value_get_type(object) == BT_VALUE_TYPE_MAP;
}
-extern enum bt_value_status bt_value_copy(const bt_value *object,
+extern bt_value_status bt_value_copy(const bt_value *object,
bt_value **copy);
extern bt_bool bt_value_compare(const bt_value *object_a,
typedef bt_bool (* bt_value_map_foreach_entry_const_func)(const char *key,
const bt_value *object, void *data);
-extern enum bt_value_status bt_value_map_foreach_entry_const(
+extern bt_value_status bt_value_map_foreach_entry_const(
const bt_value *map_obj,
bt_value_map_foreach_entry_const_func func, void *data);
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(
+extern bt_value_status bt_value_map_extend(
const bt_value *base_map_obj,
const bt_value *extension_map_obj,
bt_value **extended_map_obj);
/* For bt_bool, bt_value */
#include <babeltrace/types.h>
-/* For enum bt_value_status, enum bt_value_type */
+/* For bt_value_status, bt_value_type */
#include <babeltrace/value-const.h>
#ifdef __cplusplus
extern bt_value *bt_value_string_create_init(const char *val);
-extern enum bt_value_status bt_value_string_set(bt_value *string_obj,
+extern bt_value_status bt_value_string_set(bt_value *string_obj,
const char *val);
extern bt_value *bt_value_array_create(void);
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(
+extern bt_value_status bt_value_array_append_element(
bt_value *array_obj,
bt_value *element_obj);
-extern enum bt_value_status bt_value_array_append_bool_element(
+extern bt_value_status bt_value_array_append_bool_element(
bt_value *array_obj, bt_bool val);
-extern enum bt_value_status bt_value_array_append_integer_element(
+extern bt_value_status bt_value_array_append_integer_element(
bt_value *array_obj, int64_t val);
-extern enum bt_value_status bt_value_array_append_real_element(
+extern bt_value_status bt_value_array_append_real_element(
bt_value *array_obj, double val);
-extern enum bt_value_status bt_value_array_append_string_element(
+extern bt_value_status bt_value_array_append_string_element(
bt_value *array_obj, const char *val);
-extern enum bt_value_status bt_value_array_append_empty_array_element(
+extern bt_value_status bt_value_array_append_empty_array_element(
bt_value *array_obj);
-extern enum bt_value_status bt_value_array_append_empty_map_element(
+extern bt_value_status bt_value_array_append_empty_map_element(
bt_value *array_obj);
-extern enum bt_value_status bt_value_array_set_element_by_index(
+extern bt_value_status bt_value_array_set_element_by_index(
bt_value *array_obj, uint64_t index,
bt_value *element_obj);
typedef bt_bool (* bt_value_map_foreach_entry_func)(const char *key,
bt_value *object, void *data);
-extern enum bt_value_status bt_value_map_foreach_entry(
+extern bt_value_status bt_value_map_foreach_entry(
bt_value *map_obj,
bt_value_map_foreach_entry_func func, void *data);
-extern enum bt_value_status bt_value_map_insert_entry(
+extern bt_value_status bt_value_map_insert_entry(
bt_value *map_obj, const char *key,
bt_value *element_obj);
-extern enum bt_value_status bt_value_map_insert_bool_entry(
+extern bt_value_status bt_value_map_insert_bool_entry(
bt_value *map_obj, const char *key, bt_bool val);
-extern enum bt_value_status bt_value_map_insert_integer_entry(
+extern bt_value_status bt_value_map_insert_integer_entry(
bt_value *map_obj, const char *key, int64_t val);
-extern enum bt_value_status bt_value_map_insert_real_entry(
+extern bt_value_status bt_value_map_insert_real_entry(
bt_value *map_obj, const char *key, double val);
-extern enum bt_value_status bt_value_map_insert_string_entry(
+extern bt_value_status bt_value_map_insert_string_entry(
bt_value *map_obj, const char *key,
const char *val);
-extern enum bt_value_status bt_value_map_insert_empty_array_entry(
+extern bt_value_status bt_value_map_insert_empty_array_entry(
bt_value *map_obj, const char *key);
-extern enum bt_value_status bt_value_map_insert_empty_map_entry(
+extern bt_value_status bt_value_map_insert_empty_map_entry(
bt_value *map_obj, const char *key);
#ifdef __cplusplus
} scopes;
/* Root scope being visited */
- enum bt_scope root_scope;
+ bt_scope root_scope;
field_class_stack *field_class_stack;
struct ctf_field_class *cur_fc;
};
*/
static
struct ctf_field_class *borrow_class_from_ctx(struct resolve_context *ctx,
- enum bt_scope scope)
+ bt_scope scope)
{
switch (scope) {
case BT_SCOPE_PACKET_HEADER:
* is found to be relative.
*/
static
-enum bt_scope get_root_scope_from_absolute_pathstr(const char *pathstr)
+bt_scope get_root_scope_from_absolute_pathstr(const char *pathstr)
{
- enum bt_scope scope;
- enum bt_scope ret = -1;
+ bt_scope scope;
+ bt_scope ret = -1;
const size_t prefixes_count = sizeof(absolute_path_prefixes) /
sizeof(*absolute_path_prefixes);
struct ctf_field_path *field_path, struct resolve_context *ctx)
{
int ret = 0;
- enum bt_scope root_scope;
+ bt_scope root_scope;
GList *ptokens = NULL;
/* Convert path string to path tokens */
* Resolves the root field class corresponding to the scope `root_scope`.
*/
static
-int resolve_root_class(enum bt_scope root_scope, struct resolve_context *ctx)
+int resolve_root_class(bt_scope root_scope, struct resolve_context *ctx)
{
int ret;
struct ctf_field_class_bit_array base;
enum ctf_field_class_meaning meaning;
bool is_signed;
- enum bt_field_class_integer_preferred_display_base disp_base;
+ bt_field_class_integer_preferred_display_base disp_base;
enum ctf_encoding encoding;
int64_t storing_index;
};
struct ctf_field_path {
- enum bt_scope root;
+ bt_scope root;
/* Array of `int64_t` */
GArray *path;
GString *name;
uint64_t id;
GString *emf_uri;
- enum bt_event_class_log_level log_level;
+ bt_event_class_log_level log_level;
bool is_translated;
/* Owned by this */
uint64_t alignment = 0, size = 0;
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 base =
BT_FIELD_CLASS_INTEGER_PREFERRED_DISPLAY_BASE_DECIMAL;
enum ctf_byte_order byte_order = ctx->ctf_tc->default_byte_order;
_SET(set, _EVENT_FIELDS_SET);
} else if (!strcmp(left, "loglevel")) {
uint64_t loglevel_value;
- enum bt_event_class_log_level log_level = -1;
+ bt_event_class_log_level log_level = -1;
if (_IS_SET(set, _EVENT_LOG_LEVEL_SET)) {
_BT_LOGE_DUP_ATTR(node, "loglevel",
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;
+ bt_component_status ret;
trace = bt_stream_class_get_trace(stream_class);
BT_ASSERT(trace);
struct bt_ctf_writer *ctf_writer = NULL;
const bt_trace *writer_trace = NULL;
char trace_path[PATH_MAX];
- enum bt_component_status ret;
+ bt_component_status ret;
const bt_stream *stream = NULL;
struct fs_writer *fs_writer = NULL;
int nr_stream, i;
}
BT_HIDDEN
-enum bt_component_status writer_stream_begin(
+bt_component_status writer_stream_begin(
struct writer_component *writer_component,
const bt_stream *stream)
{
const bt_stream_class *stream_class = NULL;
struct fs_writer *fs_writer;
const bt_stream *writer_stream = NULL;
- enum bt_component_status ret = BT_COMPONENT_STATUS_OK;
+ bt_component_status ret = BT_COMPONENT_STATUS_OK;
enum fs_writer_stream_state *state;
stream_class = bt_stream_get_class(stream);
}
BT_HIDDEN
-enum bt_component_status writer_stream_end(
+bt_component_status writer_stream_end(
struct writer_component *writer_component,
const bt_stream *stream)
{
const bt_stream_class *stream_class = NULL;
struct fs_writer *fs_writer;
const bt_trace *trace = NULL;
- enum bt_component_status ret = BT_COMPONENT_STATUS_OK;
+ bt_component_status ret = BT_COMPONENT_STATUS_OK;
enum fs_writer_stream_state *state;
stream_class = bt_stream_get_class(stream);
}
BT_HIDDEN
-enum bt_component_status writer_new_packet(
+bt_component_status writer_new_packet(
struct writer_component *writer_component,
const bt_packet *packet)
{
const bt_stream *stream = NULL, *writer_stream = NULL;
- enum bt_component_status ret = BT_COMPONENT_STATUS_OK;
+ bt_component_status ret = BT_COMPONENT_STATUS_OK;
int int_ret;
stream = bt_packet_get_stream(packet);
}
BT_HIDDEN
-enum bt_component_status writer_close_packet(
+bt_component_status writer_close_packet(
struct writer_component *writer_component,
const bt_packet *packet)
{
const bt_stream *stream = NULL, *writer_stream = NULL;
- enum bt_component_status ret;
+ bt_component_status ret;
stream = bt_packet_get_stream(packet);
BT_ASSERT(stream);
}
BT_HIDDEN
-enum bt_component_status writer_output_event(
+bt_component_status writer_output_event(
struct writer_component *writer_component,
const bt_event *event)
{
- enum bt_component_status ret;
+ bt_component_status ret;
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;
}
static
-enum bt_component_status handle_message(
+bt_component_status handle_message(
struct writer_component *writer_component,
const bt_message *message)
{
- enum bt_component_status ret = BT_COMPONENT_STATUS_OK;
+ bt_component_status ret = BT_COMPONENT_STATUS_OK;
if (!writer_component) {
ret = BT_COMPONENT_STATUS_ERROR;
{
struct bt_private_connection *connection;
struct writer_component *writer;
- enum bt_connection_status conn_status;
+ bt_connection_status conn_status;
writer = bt_self_component_get_user_data(component);
BT_ASSERT(writer);
}
BT_HIDDEN
-enum bt_component_status writer_run(bt_self_component *component)
+bt_component_status writer_run(bt_self_component *component)
{
- enum bt_component_status ret;
+ bt_component_status ret;
const bt_message *message = NULL;
bt_message_iterator *it;
struct writer_component *writer_component =
bt_self_component_get_user_data(component);
- enum bt_message_iterator_status it_ret;
+ bt_message_iterator_status it_ret;
if (unlikely(writer_component->error)) {
ret = BT_COMPONENT_STATUS_ERROR;
}
static
-enum bt_component_status apply_one_bool(const char *key,
+bt_component_status apply_one_bool(const char *key,
bt_value *params,
bool *option,
bool *found)
{
- enum bt_component_status ret = BT_COMPONENT_STATUS_OK;
+ bt_component_status ret = BT_COMPONENT_STATUS_OK;
bt_value *value = NULL;
- enum bt_value_status status;
+ bt_value_status status;
bt_bool bool_val;
value = bt_value_map_get(params, key);
}
BT_HIDDEN
-enum bt_component_status writer_component_init(
+bt_component_status writer_component_init(
bt_self_component *component, bt_value *params,
UNUSED_VAR void *init_method_data)
{
- enum bt_component_status ret;
- enum bt_value_status value_ret;
+ bt_component_status ret;
+ bt_value_status value_ret;
struct writer_component *writer_component = create_writer_component();
bt_value *value = NULL;
const char *path;
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,
+bt_component_status writer_output_event(struct writer_component *writer,
const bt_event *event);
BT_HIDDEN
-enum bt_component_status writer_new_packet(struct writer_component *writer,
+bt_component_status writer_new_packet(struct writer_component *writer,
const bt_packet *packet);
BT_HIDDEN
-enum bt_component_status writer_close_packet(struct writer_component *writer,
+bt_component_status writer_close_packet(struct writer_component *writer,
const bt_packet *packet);
BT_HIDDEN
-enum bt_component_status writer_stream_begin(struct writer_component *writer,
+bt_component_status writer_stream_begin(struct writer_component *writer,
const bt_stream *stream);
BT_HIDDEN
-enum bt_component_status writer_stream_end(struct writer_component *writer,
+bt_component_status writer_stream_end(struct writer_component *writer,
const bt_stream *stream);
BT_HIDDEN
-enum bt_component_status writer_component_init(
+bt_component_status writer_component_init(
bt_self_component *component, bt_value *params,
void *init_method_data);
BT_HIDDEN
-enum bt_component_status writer_run(bt_self_component *component);
+bt_component_status writer_run(bt_self_component *component);
BT_HIDDEN
void writer_component_port_connected(
}
BT_HIDDEN
-enum bt_message_iterator_status ctf_fs_ds_file_next(
+bt_message_iterator_status ctf_fs_ds_file_next(
struct ctf_fs_ds_file *ds_file,
bt_message **msg)
{
enum bt_msg_iter_status msg_iter_status;
- enum bt_message_iterator_status status;
+ bt_message_iterator_status status;
msg_iter_status = bt_msg_iter_get_next_message(
ds_file->msg_iter, ds_file->pc_msg_iter, msg);
void ctf_fs_ds_file_destroy(struct ctf_fs_ds_file *stream);
BT_HIDDEN
-enum bt_message_iterator_status ctf_fs_ds_file_next(
+bt_message_iterator_status ctf_fs_ds_file_next(
struct ctf_fs_ds_file *ds_file,
bt_message **msg);
}
static
-enum bt_self_message_iterator_status ctf_fs_iterator_next_one(
+bt_self_message_iterator_status ctf_fs_iterator_next_one(
struct ctf_fs_msg_iter_data *msg_iter_data,
const bt_message **msg)
{
- enum bt_self_message_iterator_status status;
+ bt_self_message_iterator_status status;
bt_message *priv_msg;
int ret;
}
BT_HIDDEN
-enum bt_self_message_iterator_status ctf_fs_iterator_next(
+bt_self_message_iterator_status ctf_fs_iterator_next(
bt_self_message_iterator *iterator,
bt_message_array_const msgs, uint64_t capacity,
uint64_t *count)
{
- enum bt_self_message_iterator_status status =
+ bt_self_message_iterator_status status =
BT_SELF_MESSAGE_ITERATOR_STATUS_OK;
struct ctf_fs_msg_iter_data *msg_iter_data =
bt_self_message_iterator_get_data(iterator);
bt_self_message_iterator_get_data(it));
}
-enum bt_self_message_iterator_status ctf_fs_iterator_init(
+bt_self_message_iterator_status ctf_fs_iterator_init(
bt_self_message_iterator *self_msg_iter,
bt_self_component_source *self_comp,
bt_self_component_port_output *self_port)
{
struct ctf_fs_port_data *port_data;
struct ctf_fs_msg_iter_data *msg_iter_data = NULL;
- enum bt_self_message_iterator_status ret =
+ bt_self_message_iterator_status ret =
BT_SELF_MESSAGE_ITERATOR_STATUS_OK;
int iret;
}
BT_HIDDEN
-enum bt_self_component_status ctf_fs_init(
+bt_self_component_status ctf_fs_init(
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;
+ bt_self_component_status ret = BT_SELF_COMPONENT_STATUS_OK;
ctf_fs = ctf_fs_create(self_comp, params);
if (!ctf_fs) {
}
BT_HIDDEN
-enum bt_query_status ctf_fs_query(
+bt_query_status ctf_fs_query(
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;
+ bt_query_status status = BT_QUERY_STATUS_OK;
if (!strcmp(object, "metadata-info")) {
status = metadata_info_query(comp_class, params, result);
};
BT_HIDDEN
-enum bt_self_component_status ctf_fs_init(
+bt_self_component_status ctf_fs_init(
bt_self_component_source *source,
const bt_value *params, void *init_method_data);
void ctf_fs_finalize(bt_self_component_source *component);
BT_HIDDEN
-enum bt_query_status ctf_fs_query(
+bt_query_status ctf_fs_query(
bt_self_component_class_source *comp_class,
const bt_query_executor *query_exec,
const char *object, const bt_value *params,
GList *ctf_fs_create_trace_names(GList *trace_paths, const char *base_path);
BT_HIDDEN
-enum bt_self_message_iterator_status ctf_fs_iterator_init(
+bt_self_message_iterator_status ctf_fs_iterator_init(
bt_self_message_iterator *self_msg_iter,
bt_self_component_source *self_comp,
bt_self_component_port_output *self_port);
void ctf_fs_iterator_finalize(bt_self_message_iterator *it);
BT_HIDDEN
-enum bt_self_message_iterator_status ctf_fs_iterator_next(
+bt_self_message_iterator_status ctf_fs_iterator_next(
bt_self_message_iterator *iterator,
bt_message_array_const msgs, uint64_t capacity,
uint64_t *count);
};
BT_HIDDEN
-enum bt_query_status metadata_info_query(
+bt_query_status metadata_info_query(
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;
+ bt_query_status status = BT_QUERY_STATUS_OK;
bt_value *result = NULL;
const bt_value *path_value = NULL;
char *metadata_text = NULL;
const char *range_name)
{
int ret = 0;
- enum bt_value_status status;
+ bt_value_status status;
bt_value *range_map = NULL;
if (!range->set) {
{
int ret = 0;
int64_t stream_class_id, stream_instance_id;
- enum bt_value_status status;
+ bt_value_status status;
const bt_stream_class *stream_class = NULL;
stream_instance_id = bt_stream_get_id(stream);
{
int ret = 0;
size_t file_idx;
- enum bt_value_status status;
+ bt_value_status status;
bt_value *file_paths;
stream_range->begin_ns = INT64_MAX;
int ret = 0;
size_t group_idx;
struct ctf_fs_trace *trace = NULL;
- enum bt_value_status status;
+ bt_value_status status;
bt_value *file_groups;
struct range trace_range = {
.begin_ns = INT64_MAX,
}
BT_HIDDEN
-enum bt_query_status trace_info_query(
+bt_query_status trace_info_query(
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;
+ bt_query_status status = BT_QUERY_STATUS_OK;
bt_value *result = NULL;
const bt_value *path_value = NULL;
int ret = 0;
tn_node = g_list_next(tn_node)) {
GString *trace_path = tp_node->data;
GString *trace_name = tn_node->data;
- enum bt_value_status status;
+ bt_value_status status;
bt_value *trace_info;
trace_info = bt_value_map_create();
#include <babeltrace/babeltrace.h>
BT_HIDDEN
-enum bt_query_status metadata_info_query(
+bt_query_status metadata_info_query(
bt_self_component_class_source *comp_class,
const bt_value *params, const bt_value **result);
BT_HIDDEN
-enum bt_query_status trace_info_query(
+bt_query_status trace_info_query(
bt_self_component_class_source *comp_class,
const bt_value *params, const bt_value **result);
};
BT_HIDDEN
-enum bt_lttng_live_iterator_status lttng_live_lazy_msg_init(
+bt_lttng_live_iterator_status lttng_live_lazy_msg_init(
struct lttng_live_session *session)
{
struct lttng_live_component *lttng_live = session->lttng_live;
#include "lttng-live-internal.h"
#include "../common/msg-iter/msg-iter.h"
-enum bt_lttng_live_iterator_status lttng_live_lazy_msg_init(
+bt_lttng_live_iterator_status lttng_live_lazy_msg_init(
struct lttng_live_session *session);
struct lttng_live_stream_iterator *lttng_live_stream_iterator_create(
bt_component *downstream_component;
};
-enum bt_lttng_live_iterator_status {
+bt_lttng_live_iterator_status {
/** Iterator state has progressed. Continue iteration immediately. */
BT_LTTNG_LIVE_ITERATOR_STATUS_CONTINUE = 3,
/** No message available for now. Try again later. */
BT_LTTNG_LIVE_ITERATOR_STATUS_UNSUPPORTED = -4,
};
-enum bt_component_status lttng_live_component_init(bt_self_component *source,
+bt_component_status lttng_live_component_init(bt_self_component *source,
bt_value *params, void *init_method_data);
bt_component_class_query_method_return lttng_live_query(
bt_message_iterator_next_method_return lttng_live_iterator_next(
bt_self_message_iterator *iterator);
-enum bt_component_status lttng_live_accept_port_connection(
+bt_component_status lttng_live_accept_port_connection(
bt_self_component *private_component,
struct bt_private_port *self_private_port,
const bt_port *other_port);
-enum bt_message_iterator_status lttng_live_iterator_init(
+bt_message_iterator_status lttng_live_iterator_init(
bt_self_message_iterator *it,
struct bt_private_port *port);
int lttng_live_create_viewer_session(struct lttng_live_component *lttng_live);
int lttng_live_attach_session(struct lttng_live_session *session);
int lttng_live_detach_session(struct lttng_live_session *session);
-enum bt_lttng_live_iterator_status lttng_live_get_new_streams(
+bt_lttng_live_iterator_status lttng_live_get_new_streams(
struct lttng_live_session *session);
int lttng_live_add_session(struct lttng_live_component *lttng_live,
ssize_t lttng_live_get_one_metadata_packet(struct lttng_live_trace *trace,
FILE *fp);
-enum bt_lttng_live_iterator_status lttng_live_get_next_index(
+bt_lttng_live_iterator_status lttng_live_get_next_index(
struct lttng_live_component *lttng_live,
struct lttng_live_stream_iterator *stream,
struct packet_index *index);
int ret;
struct bt_private_port *private_port;
char name[STREAM_NAME_MAX_LEN];
- enum bt_component_status status;
+ bt_component_status status;
ret = sprintf(name, STREAM_NAME_PREFIX "%" PRIu64, stream_iter->viewer_stream_id);
BT_ASSERT(ret > 0);
}
BT_COMPONENT_PUT_REF_AND_RESET(component);
if (nr_ports == 1) {
- enum bt_component_status status;
+ bt_component_status status;
BT_ASSERT(!lttng_live->no_stream_port);
}
static
-enum bt_lttng_live_iterator_status lttng_live_iterator_next_check_stream_state(
+bt_lttng_live_iterator_status lttng_live_iterator_next_check_stream_state(
struct lttng_live_component *lttng_live,
struct lttng_live_stream_iterator *lttng_live_stream)
{
* return EOF.
*/
static
-enum bt_lttng_live_iterator_status lttng_live_iterator_next_handle_one_no_data_stream(
+bt_lttng_live_iterator_status lttng_live_iterator_next_handle_one_no_data_stream(
struct lttng_live_component *lttng_live,
struct lttng_live_stream_iterator *lttng_live_stream)
{
- enum bt_lttng_live_iterator_status ret =
+ bt_lttng_live_iterator_status ret =
BT_LTTNG_LIVE_ITERATOR_STATUS_OK;
struct packet_index index;
enum lttng_live_stream_state orig_state = lttng_live_stream->state;
* per-stream messages.
*/
static
-enum bt_lttng_live_iterator_status lttng_live_get_session(
+bt_lttng_live_iterator_status lttng_live_get_session(
struct lttng_live_component *lttng_live,
struct lttng_live_session *session)
{
- enum bt_lttng_live_iterator_status status;
+ bt_lttng_live_iterator_status status;
struct lttng_live_trace *trace, *t;
if (lttng_live_attach_session(session)) {
}
static
-enum bt_lttng_live_iterator_status lttng_live_iterator_next_handle_new_streams_and_metadata(
+bt_lttng_live_iterator_status lttng_live_iterator_next_handle_new_streams_and_metadata(
struct lttng_live_component *lttng_live)
{
- enum bt_lttng_live_iterator_status ret =
+ bt_lttng_live_iterator_status ret =
BT_LTTNG_LIVE_ITERATOR_STATUS_OK;
unsigned int nr_sessions_opened = 0;
struct lttng_live_session *session, *s;
}
static
-enum bt_lttng_live_iterator_status emit_inactivity_message(
+bt_lttng_live_iterator_status emit_inactivity_message(
struct lttng_live_component *lttng_live,
struct lttng_live_stream_iterator *lttng_live_stream,
const bt_message **message,
uint64_t timestamp)
{
- enum bt_lttng_live_iterator_status ret =
+ bt_lttng_live_iterator_status ret =
BT_LTTNG_LIVE_ITERATOR_STATUS_OK;
struct lttng_live_trace *trace;
const bt_clock_class *clock_class = NULL;
}
static
-enum bt_lttng_live_iterator_status lttng_live_iterator_next_handle_one_quiescent_stream(
+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 bt_message **message)
{
- enum bt_lttng_live_iterator_status ret =
+ bt_lttng_live_iterator_status ret =
BT_LTTNG_LIVE_ITERATOR_STATUS_OK;
const bt_clock_class *clock_class = NULL;
bt_clock_snapshot *clock_snapshot = NULL;
}
static
-enum bt_lttng_live_iterator_status lttng_live_iterator_next_handle_one_active_data_stream(
+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 bt_message **message)
{
- enum bt_lttng_live_iterator_status ret =
+ bt_lttng_live_iterator_status ret =
BT_LTTNG_LIVE_ITERATOR_STATUS_OK;
enum bt_msg_iter_status status;
struct lttng_live_session *session;
bt_self_message_iterator *iterator,
struct lttng_live_stream_iterator *stream_iter)
{
- enum bt_lttng_live_iterator_status status;
+ bt_lttng_live_iterator_status status;
bt_message_iterator_next_method_return next_return;
struct lttng_live_component *lttng_live;
bt_self_message_iterator *iterator,
struct lttng_live_no_stream_iterator *no_stream_iter)
{
- enum bt_lttng_live_iterator_status status;
+ bt_lttng_live_iterator_status status;
bt_message_iterator_next_method_return next_return;
struct lttng_live_component *lttng_live;
}
BT_HIDDEN
-enum bt_message_iterator_status lttng_live_iterator_init(
+bt_message_iterator_status lttng_live_iterator_init(
bt_self_message_iterator *it,
struct bt_private_port *port)
{
- enum bt_message_iterator_status ret =
+ bt_message_iterator_status ret =
BT_MESSAGE_ITERATOR_STATUS_OK;
struct lttng_live_stream_iterator_generic *s;
struct lttng_live_component *lttng_live;
bt_value *value = NULL;
const char *url;
- enum bt_value_status ret;
+ bt_value_status ret;
lttng_live = g_new0(struct lttng_live_component, 1);
if (!lttng_live) {
}
BT_HIDDEN
-enum bt_component_status lttng_live_component_init(
+bt_component_status lttng_live_component_init(
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;
+ bt_component_status ret = BT_COMPONENT_STATUS_OK;
/* Passes ownership of iter ref to lttng_live_component_create. */
lttng_live = lttng_live_component_create(params, private_component);
}
BT_HIDDEN
-enum bt_component_status lttng_live_accept_port_connection(
+bt_component_status lttng_live_accept_port_connection(
bt_self_component *private_component,
struct bt_private_port *self_private_port,
const bt_port *other_port)
struct lttng_live_component *lttng_live =
bt_self_component_get_user_data(private_component);
bt_component *other_component;
- enum bt_component_status status = BT_COMPONENT_STATUS_OK;
+ bt_component_status status = BT_COMPONENT_STATUS_OK;
const bt_port *self_port = bt_port_from_private(self_private_port);
other_component = bt_port_get_component(other_port);
} __attribute__((__packed__));
static
-enum bt_lttng_live_iterator_status lttng_live_update_clock_map(
+bt_lttng_live_iterator_status lttng_live_update_clock_map(
struct lttng_live_trace *trace)
{
- enum bt_lttng_live_iterator_status status =
+ bt_lttng_live_iterator_status status =
BT_LTTNG_LIVE_ITERATOR_STATUS_OK;
size_t i;
int count, ret;
}
BT_HIDDEN
-enum bt_lttng_live_iterator_status lttng_live_metadata_update(
+bt_lttng_live_iterator_status lttng_live_metadata_update(
struct lttng_live_trace *trace)
{
struct lttng_live_session *session = trace->session;
char *metadata_buf = NULL;
FILE *fp = NULL;
enum ctf_metadata_decoder_status decoder_status;
- enum bt_lttng_live_iterator_status status =
+ bt_lttng_live_iterator_status status =
BT_LTTNG_LIVE_ITERATOR_STATUS_OK;
/* No metadata stream yet. */
uint64_t ctf_trace_id, uint64_t stream_id,
const char *trace_name);
-enum bt_lttng_live_iterator_status lttng_live_metadata_update(
+bt_lttng_live_iterator_status lttng_live_metadata_update(
struct lttng_live_trace *trace);
void lttng_live_metadata_fini(struct lttng_live_trace *trace);
}
static
-enum bt_value_status list_update_session(bt_value *results,
+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;
+ bt_value_status ret = BT_VALUE_STATUS_OK;
bt_value *map = NULL;
bt_value *hostname = NULL;
bt_value *session_name = NULL;
}
static
-enum bt_value_status list_append_session(bt_value *results,
+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;
+ bt_value_status ret = BT_VALUE_STATUS_OK;
bt_value *map = NULL;
GString *url = NULL;
bool found = false;
}
BT_HIDDEN
-enum bt_lttng_live_iterator_status lttng_live_get_next_index(struct lttng_live_component *lttng_live,
+bt_lttng_live_iterator_status lttng_live_get_next_index(struct lttng_live_component *lttng_live,
struct lttng_live_stream_iterator *stream,
struct packet_index *index)
{
ssize_t ret_len;
struct lttng_viewer_index rp;
uint32_t flags, status;
- enum bt_lttng_live_iterator_status retstatus =
+ bt_lttng_live_iterator_status retstatus =
BT_LTTNG_LIVE_ITERATOR_STATUS_OK;
struct bt_live_viewer_connection *viewer_connection =
lttng_live->viewer_connection;
* Request new streams for a session.
*/
BT_HIDDEN
-enum bt_lttng_live_iterator_status lttng_live_get_new_streams(
+bt_lttng_live_iterator_status lttng_live_get_new_streams(
struct lttng_live_session *session)
{
- enum bt_lttng_live_iterator_status status =
+ bt_lttng_live_iterator_status status =
BT_LTTNG_LIVE_ITERATOR_STATUS_OK;
struct lttng_viewer_cmd cmd;
struct lttng_viewer_new_streams_request rq;
}
BT_HIDDEN
-enum bt_component_status ctf_copy_clock_classes(FILE *err,
+bt_component_status ctf_copy_clock_classes(FILE *err,
const bt_trace *writer_trace,
const bt_stream_class *writer_stream_class,
const bt_trace *trace)
{
- enum bt_component_status ret;
+ bt_component_status ret;
int int_ret, clock_class_count, i;
clock_class_count = bt_trace_get_clock_class_count(trace);
const char *name;
int ret;
int64_t id;
- enum bt_event_class_log_level log_level;
+ bt_event_class_log_level log_level;
const char *emf_uri;
name = bt_event_class_get_name(event_class);
}
BT_HIDDEN
-enum bt_component_status ctf_copy_event_classes(FILE *err,
+bt_component_status ctf_copy_event_classes(FILE *err,
const bt_stream_class *stream_class,
const bt_stream_class *writer_stream_class)
{
- enum bt_component_status ret = BT_COMPONENT_STATUS_OK;
+ bt_component_status ret = BT_COMPONENT_STATUS_OK;
const bt_event_class *event_class = NULL, *writer_event_class = NULL;
int count, i;
const bt_trace *writer_trace =
}
BT_HIDDEN
-enum bt_component_status ctf_copy_trace(FILE *err, const bt_trace *trace,
+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;
+ bt_component_status ret = BT_COMPONENT_STATUS_OK;
int field_count, i, int_ret;
bt_field_type *header_type = NULL;
- enum bt_byte_order order;
+ bt_byte_order order;
const char *trace_name;
const unsigned char *trace_uuid;
* error.
*/
BT_HIDDEN
-enum bt_component_status ctf_copy_clock_classes(FILE *err,
+bt_component_status ctf_copy_clock_classes(FILE *err,
const bt_trace *writer_trace,
const bt_stream_class *writer_stream_class,
const bt_trace *trace);
* error.
*/
BT_HIDDEN
-enum bt_component_status ctf_copy_event_classes(FILE *err,
+bt_component_status ctf_copy_event_classes(FILE *err,
const bt_stream_class *stream_class,
const bt_stream_class *writer_stream_class);
* error.
*/
BT_HIDDEN
-enum bt_component_status ctf_copy_packet_context_field(FILE *err,
+bt_component_status ctf_copy_packet_context_field(FILE *err,
const bt_field *field, const char *field_name,
const bt_field *writer_packet_context,
bt_field_type *writer_packet_context_type);
* error.
*/
BT_HIDDEN
-enum bt_component_status ctf_copy_trace(FILE *err, const bt_trace *trace,
+bt_component_status ctf_copy_trace(FILE *err, const bt_trace *trace,
const bt_trace *writer_trace);
#ifdef __cplusplus
struct debug_info *debug_info = NULL;
bt_value *field = NULL;
const char *str_value;
- enum bt_value_status ret;
+ bt_value_status ret;
field = bt_trace_get_environment_field_value_by_name(writer_trace,
"domain");
int int_ret;
const bt_stream_class *stream_class = NULL,
*writer_stream_class = NULL;
- enum bt_component_status ret;
+ bt_component_status ret;
stream_class = bt_stream_get_class(stream);
BT_ASSERT(stream_class);
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;
+ bt_component_status ret;
int int_ret;
trace = bt_stream_class_get_trace(stream_class);
}
static
-enum bt_message_iterator_status debug_info_iterator_init(
+bt_message_iterator_status debug_info_iterator_init(
bt_self_message_iterator *iterator,
struct bt_private_port *port)
{
- enum bt_message_iterator_status ret =
+ bt_message_iterator_status ret =
BT_MESSAGE_ITERATOR_STATUS_OK;
- enum bt_message_iterator_status it_ret;
- enum bt_connection_status conn_status;
+ bt_message_iterator_status it_ret;
+ bt_connection_status conn_status;
struct bt_private_connection *connection = NULL;
bt_self_component *component =
bt_self_message_iterator_get_private_component(iterator);
}
static
-enum bt_component_status init_from_params(
+bt_component_status init_from_params(
struct debug_info_component *debug_info_component,
bt_value *params)
{
bt_value *value = NULL;
- enum bt_component_status ret = BT_COMPONENT_STATUS_OK;
+ bt_component_status ret = BT_COMPONENT_STATUS_OK;
BT_ASSERT(params);
value = bt_value_map_get(params, "debug-info-field-name");
if (value) {
- enum bt_value_status value_ret;
+ bt_value_status value_ret;
const char *tmp;
tmp = bt_value_string_get(value);
value = bt_value_map_get(params, "debug-info-dir");
if (value) {
- enum bt_value_status value_ret;
+ bt_value_status value_ret;
debug_info_component->arg_debug_dir = bt_value_string_get(value);
}
value = bt_value_map_get(params, "target-prefix");
if (value) {
- enum bt_value_status value_ret;
+ bt_value_status value_ret;
debug_info_component->arg_target_prefix = bt_value_string_get(value);
}
value = bt_value_map_get(params, "full-path");
if (value) {
- enum bt_value_status value_ret;
+ bt_value_status value_ret;
bt_bool bool_val;
bool_val = bt_value_bool_get(value);
return ret;
}
-enum bt_component_status debug_info_component_init(
+bt_component_status debug_info_component_init(
bt_self_component *component, bt_value *params,
UNUSED_VAR void *init_method_data)
{
- enum bt_component_status ret;
+ bt_component_status ret;
struct debug_info_component *debug_info = create_debug_info_component_data();
if (!debug_info) {
}
static
-enum bt_self_component_status create_port(
+bt_self_component_status create_port(
bt_self_component_source *self_comp)
{
return bt_self_component_source_add_output_port(self_comp,
}
BT_HIDDEN
-enum bt_self_component_status dmesg_init(
+bt_self_component_status dmesg_init(
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);
- enum bt_self_component_status status = BT_SELF_COMPONENT_STATUS_OK;
+ bt_self_component_status status = BT_SELF_COMPONENT_STATUS_OK;
if (!dmesg_comp) {
BT_LOGE_STR("Failed to allocate one dmesg component structure.");
}
BT_HIDDEN
-enum bt_self_message_iterator_status dmesg_msg_iter_init(
+bt_self_message_iterator_status dmesg_msg_iter_init(
bt_self_message_iterator *self_msg_iter,
bt_self_component_source *self_comp,
bt_self_component_port_output *self_port)
struct dmesg_component *dmesg_comp;
struct dmesg_msg_iter *dmesg_msg_iter =
g_new0(struct dmesg_msg_iter, 1);
- enum bt_self_message_iterator_status status =
+ bt_self_message_iterator_status status =
BT_SELF_MESSAGE_ITERATOR_STATUS_OK;
if (!dmesg_msg_iter) {
}
static
-enum bt_self_message_iterator_status dmesg_msg_iter_next_one(
+bt_self_message_iterator_status dmesg_msg_iter_next_one(
struct dmesg_msg_iter *dmesg_msg_iter,
bt_message **msg)
{
ssize_t len;
struct dmesg_component *dmesg_comp;
- enum bt_self_message_iterator_status status =
+ bt_self_message_iterator_status status =
BT_SELF_MESSAGE_ITERATOR_STATUS_OK;
BT_ASSERT(dmesg_msg_iter);
}
BT_HIDDEN
-enum bt_self_message_iterator_status dmesg_msg_iter_next(
+bt_self_message_iterator_status dmesg_msg_iter_next(
bt_self_message_iterator *self_msg_iter,
bt_message_array_const msgs, uint64_t capacity,
uint64_t *count)
struct dmesg_msg_iter *dmesg_msg_iter =
bt_self_message_iterator_get_data(
self_msg_iter);
- enum bt_self_message_iterator_status status =
+ bt_self_message_iterator_status status =
BT_SELF_MESSAGE_ITERATOR_STATUS_OK;
uint64_t i = 0;
#include <babeltrace/babeltrace.h>
BT_HIDDEN
-enum bt_self_component_status dmesg_init(
+bt_self_component_status dmesg_init(
bt_self_component_source *self_comp,
const bt_value *params, void *init_method_data);
void dmesg_finalize(bt_self_component_source *self_comp);
BT_HIDDEN
-enum bt_self_message_iterator_status dmesg_msg_iter_init(
+bt_self_message_iterator_status dmesg_msg_iter_init(
bt_self_message_iterator *self_msg_iter,
bt_self_component_source *self_comp,
bt_self_component_port_output *self_port);
bt_self_message_iterator *self_msg_iter);
BT_HIDDEN
-enum bt_self_message_iterator_status dmesg_msg_iter_next(
+bt_self_message_iterator_status dmesg_msg_iter_next(
bt_self_message_iterator *self_msg_iter,
bt_message_array_const msgs, uint64_t capacity,
uint64_t *count);
}
static
-enum bt_self_component_status handle_message(
+bt_self_component_status handle_message(
struct pretty_component *pretty,
const bt_message *message)
{
- enum bt_self_component_status ret = BT_SELF_COMPONENT_STATUS_OK;
+ bt_self_component_status ret = BT_SELF_COMPONENT_STATUS_OK;
BT_ASSERT(pretty);
}
BT_HIDDEN
-enum bt_self_component_status pretty_port_connected(
+bt_self_component_status pretty_port_connected(
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;
+ bt_self_component_status status = BT_SELF_COMPONENT_STATUS_OK;
struct pretty_component *pretty;
pretty = bt_self_component_get_data(
}
BT_HIDDEN
-enum bt_self_component_status pretty_consume(
+bt_self_component_status pretty_consume(
bt_self_component_sink *comp)
{
- enum bt_self_component_status ret;
+ bt_self_component_status ret;
bt_message_array_const msgs;
bt_self_component_port_input_message_iterator *it;
struct pretty_component *pretty = bt_self_component_get_data(
bt_self_component_sink_as_self_component(comp));
- enum bt_message_iterator_status it_ret;
+ bt_message_iterator_status it_ret;
uint64_t count = 0;
uint64_t i = 0;
for (i = 0; i < BT_ARRAY_SIZE(plugin_options); i++) {
const char *key = plugin_options[i];
- enum bt_value_status status;
+ bt_value_status status;
status = bt_value_map_insert_entry(plugin_opt_map, key,
bt_value_null);
int apply_params(struct pretty_component *pretty, const bt_value *params)
{
int ret = 0;
- enum bt_value_status status;
+ bt_value_status status;
bool value, found;
char *str = NULL;
}
BT_HIDDEN
-enum bt_self_component_status pretty_init(
+bt_self_component_status pretty_init(
bt_self_component_sink *comp,
const bt_value *params,
UNUSED_VAR void *init_method_data)
{
- enum bt_self_component_status ret;
+ bt_self_component_status ret;
struct pretty_component *pretty = create_pretty();
if (!pretty) {
GQuark stream_packet_context_quarks[STREAM_PACKET_CONTEXT_QUARKS_LEN];
BT_HIDDEN
-enum bt_self_component_status pretty_init(
+bt_self_component_status pretty_init(
bt_self_component_sink *component,
const bt_value *params,
void *init_method_data);
BT_HIDDEN
-enum bt_self_component_status pretty_consume(
+bt_self_component_status pretty_consume(
bt_self_component_sink *component);
BT_HIDDEN
-enum bt_self_component_status pretty_port_connected(
+bt_self_component_status pretty_port_connected(
bt_self_component_sink *component,
bt_self_component_port_input *self_port,
const bt_port_output *other_port);
{
const bt_clock_snapshot *clock_snapshot;
uint64_t cycles;
- enum bt_clock_snapshot_state cs_state;
+ bt_clock_snapshot_state cs_state;
cs_state = bt_event_borrow_default_clock_snapshot_const(event, &clock_snapshot);
if (cs_state != BT_CLOCK_SNAPSHOT_STATE_KNOWN || !clock_snapshot) {
const bt_stream *stream = NULL;
const bt_stream_class *stream_class = NULL;
const bt_clock_snapshot *clock_snapshot = NULL;
- enum bt_clock_snapshot_state cs_state;
+ bt_clock_snapshot_state cs_state;
stream = bt_event_borrow_stream_const(event);
if (!stream) {
const bt_stream *stream = NULL;
const bt_trace *trace = NULL;
int dom_print = 0;
- enum bt_property_availability prop_avail;
+ bt_property_availability prop_avail;
event_class = bt_event_borrow_class_const(event);
stream_class = bt_event_class_borrow_stream_class_const(event_class);
[ BT_EVENT_CLASS_LOG_LEVEL_DEBUG_LINE ] = "TRACE_DEBUG_LINE",
[ BT_EVENT_CLASS_LOG_LEVEL_DEBUG ] = "TRACE_DEBUG",
};
- enum bt_event_class_log_level log_level;
+ bt_event_class_log_level log_level;
const char *log_level_str = NULL;
prop_avail = bt_event_class_get_log_level(event_class,
const bt_field *field)
{
int ret = 0;
- enum bt_field_class_integer_preferred_display_base base;
+ bt_field_class_integer_preferred_display_base base;
const bt_field_class *int_fc;
union {
uint64_t u;
int64_t s;
} v;
bool rst_color = false;
- enum bt_field_class_type ft_type;
+ bt_field_class_type ft_type;
int_fc = bt_field_borrow_class_const(field);
BT_ASSERT(int_fc);
const bt_field *field, bool print_names,
GQuark *filter_fields, int filter_array_len)
{
- enum bt_field_class_type class_id;
+ bt_field_class_type class_id;
class_id = bt_field_get_class_type(field);
switch (class_id) {
}
BT_HIDDEN
-enum bt_self_component_status counter_init(
+bt_self_component_status counter_init(
bt_self_component_sink *component,
const bt_value *params,
UNUSED_VAR void *init_method_data)
{
- enum bt_self_component_status ret;
+ bt_self_component_status ret;
struct counter *counter = g_new0(struct counter, 1);
const bt_value *step = NULL;
const bt_value *hide_zero = NULL;
}
BT_HIDDEN
-enum bt_self_component_status counter_port_connected(
+bt_self_component_status counter_port_connected(
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;
+ bt_self_component_status status = BT_SELF_COMPONENT_STATUS_OK;
struct counter *counter;
bt_self_component_port_input_message_iterator *iterator;
}
BT_HIDDEN
-enum bt_self_component_status counter_consume(
+bt_self_component_status counter_consume(
bt_self_component_sink *comp)
{
- enum bt_self_component_status ret = BT_SELF_COMPONENT_STATUS_OK;
+ bt_self_component_status ret = BT_SELF_COMPONENT_STATUS_OK;
struct counter *counter;
- enum bt_message_iterator_status it_ret;
+ bt_message_iterator_status it_ret;
uint64_t msg_count;
bt_message_array_const msgs;
};
BT_HIDDEN
-enum bt_self_component_status counter_init(
+bt_self_component_status counter_init(
bt_self_component_sink *component,
const bt_value *params, void *init_method_data);
void counter_finalize(bt_self_component_sink *component);
BT_HIDDEN
-enum bt_self_component_status counter_port_connected(
+bt_self_component_status counter_port_connected(
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(bt_self_component_sink *component);
+bt_self_component_status counter_consume(bt_self_component_sink *component);
#endif /* BABELTRACE_PLUGINS_UTILS_COUNTER_H */
}
BT_HIDDEN
-enum bt_self_component_status dummy_init(
+bt_self_component_status dummy_init(
bt_self_component_sink *component,
const bt_value *params,
UNUSED_VAR void *init_method_data)
{
- enum bt_self_component_status ret;
+ bt_self_component_status ret;
struct dummy *dummy = g_new0(struct dummy, 1);
if (!dummy) {
}
BT_HIDDEN
-enum bt_self_component_status dummy_port_connected(
+bt_self_component_status dummy_port_connected(
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;
+ bt_self_component_status status = BT_SELF_COMPONENT_STATUS_OK;
struct dummy *dummy;
bt_self_component_port_input_message_iterator *iterator;
}
BT_HIDDEN
-enum bt_self_component_status dummy_consume(
+bt_self_component_status dummy_consume(
bt_self_component_sink *component)
{
- enum bt_self_component_status ret = BT_SELF_COMPONENT_STATUS_OK;
+ bt_self_component_status ret = BT_SELF_COMPONENT_STATUS_OK;
bt_message_array_const msgs;
uint64_t count;
struct dummy *dummy;
- enum bt_message_iterator_status it_ret;
+ bt_message_iterator_status it_ret;
uint64_t i;
dummy = bt_self_component_get_data(
};
BT_HIDDEN
-enum bt_self_component_status dummy_init(
+bt_self_component_status dummy_init(
bt_self_component_sink *component,
const bt_value *params, void *init_method_data);
void dummy_finalize(bt_self_component_sink *component);
BT_HIDDEN
-enum bt_self_component_status dummy_port_connected(
+bt_self_component_status dummy_port_connected(
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(
+bt_self_component_status dummy_consume(
bt_self_component_sink *component);
#endif /* BABELTRACE_PLUGINS_UTILS_DUMMY_H */
}
static
-enum bt_self_component_status ensure_available_input_port(
+bt_self_component_status ensure_available_input_port(
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));
- enum bt_self_component_status status = BT_SELF_COMPONENT_STATUS_OK;
+ bt_self_component_status status = BT_SELF_COMPONENT_STATUS_OK;
GString *port_name = NULL;
BT_ASSERT(muxer_comp);
}
static
-enum bt_self_component_status create_output_port(
+bt_self_component_status create_output_port(
bt_self_component_filter *self_comp)
{
return bt_self_component_filter_add_output_port(
}
BT_HIDDEN
-enum bt_self_component_status muxer_init(
+bt_self_component_status muxer_init(
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;
+ bt_self_component_status status = BT_SELF_COMPONENT_STATUS_OK;
struct muxer_comp *muxer_comp = g_new0(struct muxer_comp, 1);
BT_LOGD("Initializing muxer component: "
}
static
-enum bt_message_iterator_status muxer_upstream_msg_iter_next(
+bt_message_iterator_status muxer_upstream_msg_iter_next(
struct muxer_upstream_msg_iter *muxer_upstream_msg_iter)
{
- enum bt_message_iterator_status status;
+ bt_message_iterator_status status;
bt_message_array_const msgs;
uint64_t i;
uint64_t count;
int ret = 0;
const unsigned char *cc_uuid;
const char *cc_name;
- enum bt_clock_snapshot_state cs_state = BT_CLOCK_SNAPSHOT_STATE_KNOWN;
+ bt_clock_snapshot_state cs_state = BT_CLOCK_SNAPSHOT_STATE_KNOWN;
BT_ASSERT(msg);
BT_ASSERT(ts_ns);
* the youngest, and sets *ts_ns to its time.
*/
static
-enum bt_message_iterator_status
+bt_message_iterator_status
muxer_msg_iter_youngest_upstream_msg_iter(
struct muxer_comp *muxer_comp,
struct muxer_msg_iter *muxer_msg_iter,
size_t i;
int ret;
int64_t youngest_ts_ns = INT64_MAX;
- enum bt_message_iterator_status status =
+ bt_message_iterator_status status =
BT_MESSAGE_ITERATOR_STATUS_OK;
BT_ASSERT(muxer_comp);
}
static
-enum bt_message_iterator_status validate_muxer_upstream_msg_iter(
+bt_message_iterator_status validate_muxer_upstream_msg_iter(
struct muxer_upstream_msg_iter *muxer_upstream_msg_iter)
{
- enum bt_message_iterator_status status =
+ bt_message_iterator_status status =
BT_MESSAGE_ITERATOR_STATUS_OK;
BT_LOGV("Validating muxer's upstream message iterator wrapper: "
}
static
-enum bt_message_iterator_status validate_muxer_upstream_msg_iters(
+bt_message_iterator_status validate_muxer_upstream_msg_iters(
struct muxer_msg_iter *muxer_msg_iter)
{
- enum bt_message_iterator_status status =
+ bt_message_iterator_status status =
BT_MESSAGE_ITERATOR_STATUS_OK;
size_t i;
}
static inline
-enum bt_message_iterator_status muxer_msg_iter_do_next_one(
+bt_message_iterator_status muxer_msg_iter_do_next_one(
struct muxer_comp *muxer_comp,
struct muxer_msg_iter *muxer_msg_iter,
const bt_message **msg)
{
- enum bt_message_iterator_status status =
+ bt_message_iterator_status status =
BT_MESSAGE_ITERATOR_STATUS_OK;
struct muxer_upstream_msg_iter *muxer_upstream_msg_iter = NULL;
int64_t next_return_ts;
}
static
-enum bt_message_iterator_status muxer_msg_iter_do_next(
+bt_message_iterator_status muxer_msg_iter_do_next(
struct muxer_comp *muxer_comp,
struct muxer_msg_iter *muxer_msg_iter,
bt_message_array_const msgs, uint64_t capacity,
uint64_t *count)
{
- enum bt_message_iterator_status status =
+ bt_message_iterator_status status =
BT_MESSAGE_ITERATOR_STATUS_OK;
uint64_t i = 0;
}
BT_HIDDEN
-enum bt_self_message_iterator_status muxer_msg_iter_init(
+bt_self_message_iterator_status muxer_msg_iter_init(
bt_self_message_iterator *self_msg_iter,
bt_self_component_filter *self_comp,
bt_self_component_port_output *port)
{
struct muxer_comp *muxer_comp = NULL;
struct muxer_msg_iter *muxer_msg_iter = NULL;
- enum bt_self_message_iterator_status status =
+ bt_self_message_iterator_status status =
BT_MESSAGE_ITERATOR_STATUS_OK;
int ret;
}
BT_HIDDEN
-enum bt_message_iterator_status muxer_msg_iter_next(
+bt_message_iterator_status muxer_msg_iter_next(
bt_self_message_iterator *self_msg_iter,
bt_message_array_const msgs, uint64_t capacity,
uint64_t *count)
{
- enum bt_message_iterator_status status;
+ bt_message_iterator_status status;
struct muxer_msg_iter *muxer_msg_iter =
bt_self_message_iterator_get_data(self_msg_iter);
bt_self_component *self_comp = NULL;
}
BT_HIDDEN
-enum bt_self_component_status muxer_input_port_connected(
+bt_self_component_status muxer_input_port_connected(
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;
+ bt_self_component_status status = BT_SELF_COMPONENT_STATUS_OK;
const bt_port *port = bt_self_component_port_as_port(
bt_self_component_port_input_as_self_component_port(
self_port));
#include <babeltrace/babeltrace-internal.h>
BT_HIDDEN
-enum bt_self_component_status muxer_init(
+bt_self_component_status muxer_init(
bt_self_component_filter *self_comp,
const bt_value *params, void *init_data);
void muxer_finalize(bt_self_component_filter *self_comp);
BT_HIDDEN
-enum bt_self_message_iterator_status muxer_msg_iter_init(
+bt_self_message_iterator_status muxer_msg_iter_init(
bt_self_message_iterator *self_msg_iter,
bt_self_component_filter *self_comp,
bt_self_component_port_output *self_port);
bt_self_message_iterator *self_msg_iter);
BT_HIDDEN
-enum bt_self_message_iterator_status muxer_msg_iter_next(
+bt_self_message_iterator_status muxer_msg_iter_next(
bt_self_message_iterator *self_msg_iter,
bt_message_array_const msgs, uint64_t capacity,
uint64_t *count);
BT_HIDDEN
-enum bt_self_component_status muxer_input_port_connected(
+bt_self_component_status muxer_input_port_connected(
bt_self_component_filter *comp,
bt_self_component_port_input *self_port,
const bt_port_output *other_port);
}
BT_HIDDEN
-enum bt_component_status update_packet_context_field(FILE *err,
+bt_component_status update_packet_context_field(FILE *err,
const bt_packet *writer_packet,
const char *name, int64_t value)
{
- enum bt_component_status ret;
+ bt_component_status ret;
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;
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,
+bt_component_status update_packet_context_field(FILE *err,
const bt_packet *writer_packet,
const char *name, int64_t value);
}
BT_HIDDEN
-enum bt_message_iterator_status trimmer_iterator_init(
+bt_message_iterator_status trimmer_iterator_init(
bt_self_message_iterator *iterator,
struct bt_private_port *port)
{
- enum bt_message_iterator_status ret =
+ bt_message_iterator_status ret =
BT_MESSAGE_ITERATOR_STATUS_OK;
- enum bt_message_iterator_status it_ret;
- enum bt_connection_status conn_status;
+ bt_message_iterator_status it_ret;
+ bt_connection_status conn_status;
struct bt_private_port *input_port = NULL;
struct bt_private_connection *connection = NULL;
bt_self_component *component =
*timestamp_begin = NULL,
*timestamp_end = NULL;
const bt_message *new_message = NULL;
- enum bt_component_status ret;
+ bt_component_status ret;
bool lazy_update = false;
switch (bt_message_get_type(message)) {
/* Return true if the message should be forwarded. */
static
-enum bt_message_iterator_status evaluate_message(
+bt_message_iterator_status evaluate_message(
const bt_message **message,
struct trimmer_iterator *trim_it,
struct trimmer_bound *begin, struct trimmer_bound *end,
bool *in_range)
{
- enum bt_message_type type;
+ bt_message_type type;
const bt_message *new_message = NULL;
bool finished = false;
};
BT_HIDDEN
-enum bt_message_iterator_status trimmer_iterator_init(
+bt_message_iterator_status trimmer_iterator_init(
bt_self_message_iterator *iterator,
struct bt_private_port *port);
}
static
-enum bt_component_status init_from_params(struct trimmer *trimmer,
+bt_component_status init_from_params(struct trimmer *trimmer,
bt_value *params)
{
bt_value *value = NULL;
bt_bool gmt = BT_FALSE;
- enum bt_component_status ret = BT_COMPONENT_STATUS_OK;
+ bt_component_status ret = BT_COMPONENT_STATUS_OK;
BT_ASSERT(params);
value = bt_value_map_get(params, "clock-gmt");
if (value) {
- enum bt_value_status value_ret;
+ bt_value_status value_ret;
gmt = bt_value_bool_get(value);
}
return ret;
}
-enum bt_component_status trimmer_component_init(
+bt_component_status trimmer_component_init(
bt_self_component *component, bt_value *params,
UNUSED_VAR void *init_method_data)
{
- enum bt_component_status ret;
+ bt_component_status ret;
struct trimmer *trimmer = create_trimmer_data();
if (!trimmer) {
int year, month, day;
};
-enum bt_component_status trimmer_component_init(
+bt_component_status trimmer_component_init(
bt_self_component *component,
bt_value *params, void *init_method_data);
#include <stdlib.h>
#include <glib.h>
-static enum bt_self_plugin_status plugin_init(bt_self_plugin *plugin)
+static bt_self_plugin_status plugin_init(bt_self_plugin *plugin)
{
g_setenv("BT_TEST_PLUGIN_INIT_CALLED", "1", 1);
return BT_SELF_PLUGIN_STATUS_OK;
#include <babeltrace/babeltrace.h>
#include <babeltrace/assert-internal.h>
-static enum bt_self_component_status sink_consume(
+static bt_self_component_status sink_consume(
bt_self_component_sink *self_comp)
{
return BT_SELF_COMPONENT_STATUS_OK;
}
-static enum bt_self_message_iterator_status src_dummy_iterator_init_method(
+static bt_self_message_iterator_status src_dummy_iterator_init_method(
bt_self_message_iterator *self_msg_iter,
bt_self_component_source *self_comp,
bt_self_component_port_output *self_port)
return BT_SELF_MESSAGE_ITERATOR_STATUS_OK;
}
-static enum bt_self_message_iterator_status flt_dummy_iterator_init_method(
+static bt_self_message_iterator_status flt_dummy_iterator_init_method(
bt_self_message_iterator *self_msg_iter,
bt_self_component_filter *self_comp,
bt_self_component_port_output *self_port)
{
}
-static enum bt_self_message_iterator_status dummy_iterator_next_method(
+static bt_self_message_iterator_status dummy_iterator_next_method(
bt_self_message_iterator *self_msg_iter,
bt_message_array_const msgs, uint64_t capacity,
uint64_t *count)
return BT_SELF_MESSAGE_ITERATOR_STATUS_ERROR;
}
-static enum bt_query_status flt_query_method(
+static bt_query_status flt_query_method(
bt_self_component_class_filter *component_class,
const bt_query_executor *query_exec,
const char *object, const bt_value *params,
}
static
-enum bt_self_message_iterator_status src_iter_init(
+bt_self_message_iterator_status src_iter_init(
bt_self_message_iterator *self_msg_iter,
bt_self_component_source *self_comp,
bt_self_component_port_output *self_port)
}
static
-enum bt_self_message_iterator_status src_iter_next_seq(
+bt_self_message_iterator_status src_iter_next_seq(
bt_self_message_iterator *msg_iter,
struct src_iter_user_data *user_data,
bt_message_array_const msgs, uint64_t capacity,
uint64_t *count)
{
- enum bt_self_message_iterator_status status =
+ bt_self_message_iterator_status status =
BT_SELF_MESSAGE_ITERATOR_STATUS_OK;
uint64_t i = 0;
}
static
-enum bt_self_message_iterator_status src_iter_next(
+bt_self_message_iterator_status src_iter_next(
bt_self_message_iterator *self_msg_iter,
bt_message_array_const msgs, uint64_t capacity,
uint64_t *count)
}
static
-enum bt_self_component_status src_init(
+bt_self_component_status src_init(
bt_self_component_source *self_comp,
const bt_value *params, void *init_method_data)
{
}
static
-enum bt_message_iterator_status common_consume(
+bt_message_iterator_status common_consume(
void *msg_iter, bool is_output_port_msg_iter)
{
- enum bt_message_iterator_status ret;
+ bt_message_iterator_status ret;
bt_message_array_const messages = NULL;
uint64_t count = 0;
struct test_event test_event = { 0 };
}
static
-enum bt_self_component_status sink_consume(
+bt_self_component_status sink_consume(
bt_self_component_sink *self_comp)
{
- enum bt_self_component_status ret = BT_SELF_COMPONENT_STATUS_OK;
+ bt_self_component_status ret = BT_SELF_COMPONENT_STATUS_OK;
struct sink_user_data *user_data =
bt_self_component_get_data(
bt_self_component_sink_as_self_component(
self_comp));
- enum bt_message_iterator_status it_ret;
+ bt_message_iterator_status it_ret;
BT_ASSERT(user_data && user_data->msg_iter);
it_ret = common_consume(user_data->msg_iter, false);
}
static
-enum bt_self_component_status sink_port_connected(
+bt_self_component_status sink_port_connected(
bt_self_component_sink *self_comp,
bt_self_component_port_input *self_port,
const bt_port_output *other_port)
}
static
-enum bt_self_component_status sink_init(
+bt_self_component_status sink_init(
bt_self_component_sink *self_comp,
const bt_value *params, void *init_method_data)
{
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;
+ bt_graph_status graph_status = BT_GRAPH_STATUS_OK;
clear_test_events();
current_test = test;
};
const bt_component_source *src_comp;
bt_port_output_message_iterator *msg_iter;
- enum bt_message_iterator_status iter_status =
+ bt_message_iterator_status iter_status =
BT_MESSAGE_ITERATOR_STATUS_OK;
const bt_port_output *upstream_port;
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_value_status status;
BT_ASSERT(array1 && array2 && array3);
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_value_status status;
BT_ASSERT(map1 && map2 && map3);
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;
+ bt_value_status status;
bool_obj = bt_value_bool_create_init(BT_TRUE);
integer_obj = bt_value_integer_create_init(23);
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_value_status status;
BT_ASSERT(base_map);
BT_ASSERT(extension_map);
}
static
-enum bt_self_message_iterator_status src_iter_next(
+bt_self_message_iterator_status src_iter_next(
bt_self_message_iterator *self_iterator,
bt_message_array_const msgs, uint64_t capacity,
uint64_t *count)
}
static
-enum bt_self_component_status src_accept_output_port_connection(
+bt_self_component_status src_accept_output_port_connection(
bt_self_component_source *self_comp,
bt_self_component_port_output *self_comp_port,
const bt_port_input *other_port)
}
static
-enum bt_self_component_status sink_accept_input_port_connection(
+bt_self_component_status sink_accept_input_port_connection(
bt_self_component_sink *self_comp,
bt_self_component_port_input *self_comp_port,
const bt_port_output *other_port)
}
static
-enum bt_self_component_status src_output_port_connected(
+bt_self_component_status src_output_port_connected(
bt_self_component_source *self_comp,
bt_self_component_port_output *self_comp_port,
const bt_port_input *other_port)
}
static
-enum bt_self_component_status sink_input_port_connected(
+bt_self_component_status sink_input_port_connected(
bt_self_component_sink *self_comp,
bt_self_component_port_input *self_comp_port,
const bt_port_output *other_port)
}
static
-enum bt_self_component_status src_init(
+bt_self_component_status src_init(
bt_self_component_source *self_comp,
const bt_value *params, void *init_method_data)
{
}
static
-enum bt_self_component_status sink_init(
+bt_self_component_status sink_init(
bt_self_component_sink *self_comp,
const bt_value *params, void *init_method_data)
{
}
static
-enum bt_self_component_status sink_consume(
+bt_self_component_status sink_consume(
bt_self_component_sink *self_comp)
{
bt_self_component_port_input *def_port;
const bt_port *gsrc_def_port;
const bt_port *gsink_def_port;
struct event event;
- enum bt_graph_status status;
+ bt_graph_status status;
size_t src_accept_port_connection_pos;
size_t sink_accept_port_connection_pos;
size_t src_port_connected_pos;
const bt_port *gsrc_def_port;
const bt_port *gsink_def_port;
struct event event;
- enum bt_graph_status status;
+ bt_graph_status status;
size_t src_accept_port_connection_pos;
size_t sink_accept_port_connection_pos;
size_t src_port_connected_pos;
const bt_port *gsrc_hello_port;
const bt_port *gsink_def_port;
struct event event;
- enum bt_graph_status status;
+ bt_graph_status status;
size_t src_accept_port_connection_pos;
size_t sink_accept_port_connection_pos;
size_t src_port_connected_pos;
const bt_port *gsrc_def_port;
const bt_port *gsink_def_port;
struct event event;
- enum bt_graph_status status;
+ bt_graph_status status;
size_t src_accept_port_connection_pos;
size_t sink_accept_port_connection_pos;
size_t src_port_connected_pos;
const bt_port *gsink_def_port;
const bt_connection *conn = NULL;
struct event event;
- enum bt_graph_status status;
+ bt_graph_status status;
size_t src_accept_port_connection_pos;
size_t src_port_connected_pos;
const bt_port *gsink_def_port;
const bt_connection *conn = NULL;
struct event event;
- enum bt_graph_status status;
+ bt_graph_status status;
size_t src_accept_port_connection_pos;
size_t sink_accept_port_connection_pos;
size_t src_port_connected_pos;
const bt_value *res_params;
bt_graph *graph;
const char *object_str;
- enum bt_graph_status graph_ret;
+ bt_graph_status graph_ret;
bt_query_executor *query_exec = bt_query_executor_create();
int ret;