X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace2%2Ftypes.h;h=e2b9854eade93b07ab274b984da72dbd30059ccd;hb=a3f0c7db90f4cfc81090a83a7442b7bc624d5789;hp=3ebf5370d10f269efa4215631fc6a771db320219;hpb=3fadfbc0c91f82c46bd36e6e0657ea93570c9db1;p=babeltrace.git diff --git a/include/babeltrace2/types.h b/include/babeltrace2/types.h index 3ebf5370..e2b9854e 100644 --- a/include/babeltrace2/types.h +++ b/include/babeltrace2/types.h @@ -1,8 +1,8 @@ -#ifndef BABELTRACE_TYPES_H -#define BABELTRACE_TYPES_H +#ifndef BABELTRACE2_TYPES_H +#define BABELTRACE2_TYPES_H /* - * Copyright (c) 2017 Philippe Proulx + * Copyright (c) 2010-2019 EfficiOS Inc. and Linux Foundation * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -23,17 +23,12 @@ * SOFTWARE. */ -#include - -/* Internal use */ -#ifdef __cplusplus -# define __BT_UPCAST(_type, _p) static_cast<_type *>(static_cast(_p)) -# define __BT_UPCAST_CONST(_type, _p) static_cast(static_cast(_p)) -#else -# define __BT_UPCAST(_type, _p) ((_type *) (_p)) -# define __BT_UPCAST_CONST(_type, _p) ((const _type *) (_p)) +#ifndef __BT_IN_BABELTRACE_H +# error "Please include instead." #endif +#include + #ifdef __cplusplus extern "C" { #endif @@ -83,6 +78,8 @@ if (ret) { */ typedef int bt_bool; +typedef uint64_t bt_listener_id; + typedef const uint8_t *bt_uuid; typedef struct bt_clock_class bt_clock_class; @@ -92,29 +89,39 @@ typedef struct bt_component_class bt_component_class; typedef struct bt_component_class_filter bt_component_class_filter; typedef struct bt_component_class_sink bt_component_class_sink; typedef struct bt_component_class_source bt_component_class_source; +typedef struct bt_component_descriptor_set bt_component_descriptor_set; typedef struct bt_component_filter bt_component_filter; typedef struct bt_component_sink bt_component_sink; typedef struct bt_component_source bt_component_source; typedef struct bt_connection bt_connection; +typedef struct bt_error bt_error; +typedef struct bt_error_cause bt_error_cause; typedef struct bt_event bt_event; typedef struct bt_event_class bt_event_class; typedef struct bt_event_header_field bt_event_header_field; typedef struct bt_field bt_field; typedef struct bt_field_class bt_field_class; typedef struct bt_field_class_enumeration_mapping bt_field_class_enumeration_mapping; -typedef struct bt_field_class_signed_enumeration_mapping bt_field_class_signed_enumeration_mapping; -typedef struct bt_field_class_unsigned_enumeration_mapping bt_field_class_unsigned_enumeration_mapping; +typedef struct bt_field_class_enumeration_signed_mapping bt_field_class_enumeration_signed_mapping; +typedef struct bt_field_class_enumeration_unsigned_mapping bt_field_class_enumeration_unsigned_mapping; typedef struct bt_field_class_structure_member bt_field_class_structure_member; typedef struct bt_field_class_variant_option bt_field_class_variant_option; +typedef struct bt_field_class_variant_with_selector_field_integer_signed_option bt_field_class_variant_with_selector_field_integer_signed_option; +typedef struct bt_field_class_variant_with_selector_field_integer_unsigned_option bt_field_class_variant_with_selector_field_integer_unsigned_option; typedef struct bt_field_path bt_field_path; typedef struct bt_field_path_item bt_field_path_item; typedef struct bt_graph bt_graph; +typedef struct bt_integer_range_set bt_integer_range_set; +typedef struct bt_integer_range_set_signed bt_integer_range_set_signed; +typedef struct bt_integer_range_set_unsigned bt_integer_range_set_unsigned; +typedef struct bt_integer_range_signed bt_integer_range_signed; +typedef struct bt_integer_range_unsigned bt_integer_range_unsigned; +typedef struct bt_interrupter bt_interrupter; typedef struct bt_message bt_message; typedef struct bt_message_iterator bt_message_iterator; +typedef struct bt_message_iterator_class bt_message_iterator_class; typedef struct bt_object bt_object; typedef struct bt_packet bt_packet; -typedef struct bt_packet_context_field bt_packet_context_field; -typedef struct bt_packet_header_field bt_packet_header_field; typedef struct bt_plugin bt_plugin; typedef struct bt_plugin_set bt_plugin_set; typedef struct bt_plugin_so_shared_lib_handle bt_plugin_so_shared_lib_handle; @@ -122,22 +129,26 @@ typedef struct bt_port bt_port; typedef struct bt_port_input bt_port_input; typedef struct bt_port_output bt_port_output; typedef struct bt_port_output_message_iterator bt_port_output_message_iterator; +typedef struct bt_private_query_executor bt_private_query_executor; typedef struct bt_query_executor bt_query_executor; typedef struct bt_self_component bt_self_component; +typedef struct bt_self_component_class bt_self_component_class; typedef struct bt_self_component_class_filter bt_self_component_class_filter; typedef struct bt_self_component_class_sink bt_self_component_class_sink; typedef struct bt_self_component_class_source bt_self_component_class_source; typedef struct bt_self_component_filter bt_self_component_filter; +typedef struct bt_self_component_filter_configuration bt_self_component_filter_configuration; typedef struct bt_self_component_port bt_self_component_port; typedef struct bt_self_component_port_input bt_self_component_port_input; typedef struct bt_self_component_port_input_message_iterator bt_self_component_port_input_message_iterator; typedef struct bt_self_component_port_output bt_self_component_port_output; typedef struct bt_self_component_sink bt_self_component_sink; +typedef struct bt_self_component_sink_configuration bt_self_component_sink_configuration; typedef struct bt_self_component_source bt_self_component_source; +typedef struct bt_self_component_source_configuration bt_self_component_source_configuration; typedef struct bt_self_message_iterator bt_self_message_iterator; -typedef struct bt_self_port bt_self_port; -typedef struct bt_self_port_input bt_self_port_input; -typedef struct bt_self_port_output bt_self_port_output; +typedef struct bt_self_message_iterator_configuration bt_self_message_iterator_configuration; +typedef struct bt_self_plugin bt_self_plugin; typedef struct bt_stream bt_stream; typedef struct bt_stream_class bt_stream_class; typedef struct bt_trace bt_trace; @@ -153,4 +164,4 @@ typedef const struct bt_message **bt_message_array_const; } #endif -#endif /* BABELTRACE_TYPES_H */ +#endif /* BABELTRACE2_TYPES_H */