module BT2

Constants

BTClockClassCyclesToNSFromOriginStatus
BTClockClassSetDescriptionStatus
BTClockClassSetNameStatus
BTClockSnapshotGetNSFromOriginStatus
BTComponentClassFilter
BTComponentClassGetSupportedMipVersionsMethodStatus
BTComponentClassInitializeMethodStatus
BTComponentClassPortConnectedMethodStatus
BTComponentClassQueryMethodStatus
BTComponentClassSetDescriptionStatus
BTComponentClassSetHelpStatus
BTComponentClassSetMethodStatus
BTComponentClassSink
BTComponentClassSinkConsumeMethodStatus
BTComponentClassSinkGraphIsConfiguredMethodStatus
BTComponentClassSource
BTComponentClassType
BTComponentDescriptorSet
BTComponentDescriptorSetAddDescriptorStatus
BTComponentFilter
BTComponentSink
BTComponentSource
BTCurrentThreadErrorAppendCauseStatus
BTErrorCause
BTErrorCauseActorType
BTErrorCauseComponentActor
BTErrorCauseComponentClassActor
BTErrorCauseMessageIteratorActor
BTEventClassLogLevel
BTEventClassSetEmfUriStatus
BTEventClassSetFieldClassStatus
BTEventClassSetNameStatus
BTFieldArray
BTFieldArrayDynamic
BTFieldArrayDynamicSetLengthStatus
BTFieldArrayDynamicWithLengthField
BTFieldArrayStatic
BTFieldBitArray
BTFieldBool
BTFieldClassArray
BTFieldClassArrayDynamic
BTFieldClassArrayDynamicWithLengthField
BTFieldClassArrayStatic
BTFieldClassBitArray
BTFieldClassBool
BTFieldClassEnumeration
BTFieldClassEnumerationAddMappingStatus
BTFieldClassEnumerationGetMappingLabelsForValueStatus
BTFieldClassEnumerationMapping
BTFieldClassEnumerationSigned
BTFieldClassEnumerationSignedMapping
BTFieldClassEnumerationUnsigned
BTFieldClassEnumerationUnsignedMapping
BTFieldClassInteger
BTFieldClassIntegerPreferredDisplayBase
BTFieldClassIntegerSigned
BTFieldClassIntegerUnsigned
BTFieldClassOption
BTFieldClassOptionWithSelectorField
BTFieldClassOptionWithSelectorFieldBool
BTFieldClassOptionWithSelectorFieldIntegerSigned
BTFieldClassOptionWithSelectorFieldIntegerUnsigned
BTFieldClassOptionWithoutSelectorField
BTFieldClassReal
BTFieldClassRealDoublePrecision
BTFieldClassRealSinglePrecision
BTFieldClassString
BTFieldClassStructure
BTFieldClassStructureAppendMemberStatus
BTFieldClassStructureMember
BTFieldClassType
BTFieldClassVariant
BTFieldClassVariantOption
BTFieldClassVariantWithSelectorAppendOptionStatus
BTFieldClassVariantWithSelectorFieldIntegerSigned
BTFieldClassVariantWithSelectorFieldIntegerSignedOption
BTFieldClassVariantWithSelectorFieldIntegerUnsigned
BTFieldClassVariantWithSelectorFieldIntegerUnsignedOption
BTFieldClassVariantWithoutSelectorAppendOptionStatus
BTFieldClassVariantWithoutSelectorField
BTFieldEnumeration
BTFieldEnumerationGetMappingLabelsStatus
BTFieldEnumerationSigned
BTFieldEnumerationUnsigned
BTFieldInteger
BTFieldIntegerSigned
BTFieldIntegerUnsigned
BTFieldOption
BTFieldOptionWithSelectorField
BTFieldOptionWithSelectorFieldBool
BTFieldOptionWithSelectorFieldIntegerSigned
BTFieldOptionWithSelectorFieldIntegerUnsigned
BTFieldOptionWithoutSelectorField
BTFieldPathItem
BTFieldPathItemType
BTFieldPathScope
BTFieldReal
BTFieldRealDoublePrecision
BTFieldRealSinglePrecision
BTFieldString
BTFieldStringAppendStatus
BTFieldStringSetValueStatus
BTFieldStructure
BTFieldVariant
BTFieldVariantSelectOptionByIndexStatus
BTFieldVariantWithSelectorField
BTFieldVariantWithSelectorFieldIntegerSigned
BTFieldVariantWithSelectorFieldIntegerUnsigned
BTFieldVariantWithoutSelectorField
BTGetGreatestOperativeMipVersionStatus
BTGraphAddComponentStatus
BTGraphAddInterrupterStatus
BTGraphAddListenerStatus
BTGraphConnectPortsStatus
BTGraphListenerFuncStatus
BTGraphRunOnceStatus
BTGraphRunStatus
BTGraphSimpleSinkComponentConsumeFuncStatus
BTGraphSimpleSinkComponentInitializeFuncStatus
BTIntegerRangeSetAddRangeStatus
BTIntegerRangeSetSigned
BTIntegerRangeSetUnsigned
BTLoggingLevel
BTMessageDiscardedEvents
BTMessageDiscardedPackets
BTMessageEvent
BTMessageIteratorCanSeekBeginningStatus
BTMessageIteratorCanSeekNSFromOriginStatus
BTMessageIteratorClassCanSeekBeginningMethodStatus
BTMessageIteratorClassCanSeekNSFromOriginMethodStatus
BTMessageIteratorClassInitializeMethodStatus
BTMessageIteratorClassNextMethodStatus
BTMessageIteratorClassSeekBeginningMethodStatus
BTMessageIteratorClassSeekNSFromOriginMethodStatus
BTMessageIteratorClassSetMethodStatus
BTMessageIteratorCreateFromMessageIteratorStatus
BTMessageIteratorCreateFromSinkComponentStatus
BTMessageIteratorNextStatus
BTMessageIteratorSeekBeginningStatus
BTMessageIteratorSeekNSFromOriginStatus
BTMessageMessageIteratorInactivity
BTMessagePacketBeginning
BTMessagePacketEnd
BTMessageStreamBeginning
BTMessageStreamClockSnapshotState
BTMessageStreamEnd
BTMessageType
BTPluginFindAllFromDirStatus
BTPluginFindAllFromFileStatus
BTPluginFindAllFromStaticStatus
BTPluginFindAllStatus
BTPluginFindStatus
BTPluginSet
BTPortInput
BTPortOutput
BTPortType
BTPropertyAvailability
BTQueryExecutorAddInterrupterStatus
BTQueryExecutorQueryStatus
BTQueryExecutorSetLoggingLevelStatus
BTSelfComponentAddPortStatus
BTSelfComponentClass
BTSelfComponentClassFilter
BTSelfComponentClassSink
BTSelfComponentClassSource
BTSelfComponentFilter
BTSelfComponentFilterConfiguration
BTSelfComponentPortInput
BTSelfComponentPortOutput
BTSelfComponentSink
BTSelfComponentSinkConfiguration
BTSelfComponentSource
BTSelfComponentSourceConfiguration
BTSelfMessageIteratorConfiguration
BTStreamClassSetDefaultClockClassStatus
BTStreamClassSetFieldClassStatus
BTStreamClassSetNameStatus
BTStreamSetNameStatus
BTTraceAddListenerStatus
BTTraceClassAddListenerStatus
BTTraceClassRemoveListenerStatus
BTTraceRemoveListenerStatus
BTTraceSetEnvironmentEntryStatus
BTTraceSetNameStatus
BTUtilClockCyclesToNSFromOriginStatus
BTValueArray
BTValueArrayAppendElementStatus
BTValueArraySetElementByIndexStatus
BTValueBool
BTValueCopyStatus
BTValueInteger
BTValueIntegerSigned
BTValueIntegerUnsigned
BTValueMap
BTValueMapExtendStatus
BTValueMapForeachEntryConstFuncStatus
BTValueMapForeachEntryConstStatus
BTValueMapForeachEntryFuncStatus
BTValueMapForeachEntryStatus
BTValueMapInsertEntryStatus
BTValueNull
BTValueReal
BTValueString
BTValueStringSetStatus
BTValueType
BT_CLOCK_CLASS_CYCLES_TO_NS_FROM_ORIGIN_STATUS_OK
BT_CLOCK_CLASS_CYCLES_TO_NS_FROM_ORIGIN_STATUS_OVERFLOW_ERROR
BT_CLOCK_CLASS_SET_DESCRIPTION_STATUS_MEMORY_ERROR
BT_CLOCK_CLASS_SET_DESCRIPTION_STATUS_OK
BT_CLOCK_CLASS_SET_NAME_STATUS_MEMORY_ERROR
BT_CLOCK_CLASS_SET_NAME_STATUS_OK
BT_CLOCK_SNAPSHOT_GET_NS_FROM_ORIGIN_STATUS_OK
BT_CLOCK_SNAPSHOT_GET_NS_FROM_ORIGIN_STATUS_OVERFLOW_ERROR
BT_COMPONENT_CLASS_GET_SUPPORTED_MIP_VERSIONS_METHOD_STATUS_ERROR
BT_COMPONENT_CLASS_GET_SUPPORTED_MIP_VERSIONS_METHOD_STATUS_MEMORY_ERROR
BT_COMPONENT_CLASS_GET_SUPPORTED_MIP_VERSIONS_METHOD_STATUS_OK
BT_COMPONENT_CLASS_INITIALIZE_METHOD_STATUS_ERROR
BT_COMPONENT_CLASS_INITIALIZE_METHOD_STATUS_MEMORY_ERROR
BT_COMPONENT_CLASS_INITIALIZE_METHOD_STATUS_OK
BT_COMPONENT_CLASS_PORT_CONNECTED_METHOD_STATUS_ERROR
BT_COMPONENT_CLASS_PORT_CONNECTED_METHOD_STATUS_MEMORY_ERROR
BT_COMPONENT_CLASS_PORT_CONNECTED_METHOD_STATUS_OK
BT_COMPONENT_CLASS_QUERY_METHOD_STATUS_AGAIN
BT_COMPONENT_CLASS_QUERY_METHOD_STATUS_ERROR
BT_COMPONENT_CLASS_QUERY_METHOD_STATUS_MEMORY_ERROR
BT_COMPONENT_CLASS_QUERY_METHOD_STATUS_OK
BT_COMPONENT_CLASS_QUERY_METHOD_STATUS_UNKNOWN_OBJECT
BT_COMPONENT_CLASS_SET_DESCRIPTION_STATUS_MEMORY_ERROR
BT_COMPONENT_CLASS_SET_DESCRIPTION_STATUS_OK
BT_COMPONENT_CLASS_SET_HELP_STATUS_MEMORY_ERROR
BT_COMPONENT_CLASS_SET_HELP_STATUS_OK
BT_COMPONENT_CLASS_SET_METHOD_STATUS_OK
BT_COMPONENT_CLASS_SINK_CONSUME_METHOD_STATUS_AGAIN
BT_COMPONENT_CLASS_SINK_CONSUME_METHOD_STATUS_END
BT_COMPONENT_CLASS_SINK_CONSUME_METHOD_STATUS_ERROR
BT_COMPONENT_CLASS_SINK_CONSUME_METHOD_STATUS_MEMORY_ERROR
BT_COMPONENT_CLASS_SINK_CONSUME_METHOD_STATUS_OK
BT_COMPONENT_CLASS_SINK_GRAPH_IS_CONFIGURED_METHOD_STATUS_ERROR
BT_COMPONENT_CLASS_SINK_GRAPH_IS_CONFIGURED_METHOD_STATUS_MEMORY_ERROR
BT_COMPONENT_CLASS_SINK_GRAPH_IS_CONFIGURED_METHOD_STATUS_OK
BT_COMPONENT_CLASS_TYPE_FILTER
BT_COMPONENT_CLASS_TYPE_SINK
BT_COMPONENT_CLASS_TYPE_SOURCE
BT_COMPONENT_DESCRIPTOR_SET_ADD_DESCRIPTOR_STATUS_MEMORY_ERROR
BT_COMPONENT_DESCRIPTOR_SET_ADD_DESCRIPTOR_STATUS_OK
BT_EVENT_CLASS_LOG_LEVEL_ALERT
BT_EVENT_CLASS_LOG_LEVEL_CRITICAL
BT_EVENT_CLASS_LOG_LEVEL_DEBUG
BT_EVENT_CLASS_LOG_LEVEL_DEBUG_FUNCTION
BT_EVENT_CLASS_LOG_LEVEL_DEBUG_LINE
BT_EVENT_CLASS_LOG_LEVEL_DEBUG_MODULE
BT_EVENT_CLASS_LOG_LEVEL_DEBUG_PROCESS
BT_EVENT_CLASS_LOG_LEVEL_DEBUG_PROGRAM
BT_EVENT_CLASS_LOG_LEVEL_DEBUG_SYSTEM
BT_EVENT_CLASS_LOG_LEVEL_DEBUG_UNIT
BT_EVENT_CLASS_LOG_LEVEL_EMERGENCY
BT_EVENT_CLASS_LOG_LEVEL_ERROR
BT_EVENT_CLASS_LOG_LEVEL_INFO
BT_EVENT_CLASS_LOG_LEVEL_NOTICE
BT_EVENT_CLASS_LOG_LEVEL_WARNING
BT_EVENT_CLASS_SET_EMF_URI_STATUS_MEMORY_ERROR
BT_EVENT_CLASS_SET_EMF_URI_STATUS_OK
BT_EVENT_CLASS_SET_FIELD_CLASS_STATUS_MEMORY_ERROR
BT_EVENT_CLASS_SET_FIELD_CLASS_STATUS_OK
BT_EVENT_CLASS_SET_NAME_STATUS_MEMORY_ERROR
BT_EVENT_CLASS_SET_NAME_STATUS_OK
BT_FALSE
BT_FIELD_CLASS_ENUMERATION_ADD_MAPPING_STATUS_MEMORY_ERROR
BT_FIELD_CLASS_ENUMERATION_ADD_MAPPING_STATUS_OK
BT_FIELD_CLASS_ENUMERATION_GET_MAPPING_LABELS_BY_VALUE_STATUS_MEMORY_ERROR
BT_FIELD_CLASS_ENUMERATION_GET_MAPPING_LABELS_BY_VALUE_STATUS_OK
BT_FIELD_CLASS_INTEGER_PREFERRED_DISPLAY_BASE_BINARY
BT_FIELD_CLASS_INTEGER_PREFERRED_DISPLAY_BASE_DECIMAL
BT_FIELD_CLASS_INTEGER_PREFERRED_DISPLAY_BASE_HEXADECIMAL
BT_FIELD_CLASS_INTEGER_PREFERRED_DISPLAY_BASE_OCTAL
BT_FIELD_CLASS_STRUCTURE_APPEND_MEMBER_STATUS_MEMORY_ERROR
BT_FIELD_CLASS_STRUCTURE_APPEND_MEMBER_STATUS_OK
BT_FIELD_CLASS_TYPE_ARRAY
BT_FIELD_CLASS_TYPE_BIT_ARRAY
BT_FIELD_CLASS_TYPE_BOOL
BT_FIELD_CLASS_TYPE_DOUBLE_PRECISION_REAL
BT_FIELD_CLASS_TYPE_DYNAMIC_ARRAY
BT_FIELD_CLASS_TYPE_DYNAMIC_ARRAY_WITHOUT_LENGTH_FIELD
BT_FIELD_CLASS_TYPE_DYNAMIC_ARRAY_WITH_LENGTH_FIELD
BT_FIELD_CLASS_TYPE_ENUMERATION
BT_FIELD_CLASS_TYPE_INTEGER
BT_FIELD_CLASS_TYPE_OPTION
BT_FIELD_CLASS_TYPE_OPTION_WITHOUT_SELECTOR_FIELD
BT_FIELD_CLASS_TYPE_OPTION_WITH_BOOL_SELECTOR_FIELD
BT_FIELD_CLASS_TYPE_OPTION_WITH_INTEGER_SELECTOR_FIELD
BT_FIELD_CLASS_TYPE_OPTION_WITH_SELECTOR_FIELD
BT_FIELD_CLASS_TYPE_OPTION_WITH_SIGNED_INTEGER_SELECTOR_FIELD
BT_FIELD_CLASS_TYPE_OPTION_WITH_UNSIGNED_INTEGER_SELECTOR_FIELD
BT_FIELD_CLASS_TYPE_REAL
BT_FIELD_CLASS_TYPE_SIGNED_ENUMERATION
BT_FIELD_CLASS_TYPE_SIGNED_INTEGER
BT_FIELD_CLASS_TYPE_SINGLE_PRECISION_REAL
BT_FIELD_CLASS_TYPE_STATIC_ARRAY
BT_FIELD_CLASS_TYPE_STRING
BT_FIELD_CLASS_TYPE_STRUCTURE
BT_FIELD_CLASS_TYPE_UNSIGNED_ENUMERATION
BT_FIELD_CLASS_TYPE_UNSIGNED_INTEGER
BT_FIELD_CLASS_TYPE_VARIANT
BT_FIELD_CLASS_TYPE_VARIANT_WITHOUT_SELECTOR_FIELD
BT_FIELD_CLASS_TYPE_VARIANT_WITH_INTEGER_SELECTOR_FIELD
BT_FIELD_CLASS_TYPE_VARIANT_WITH_SELECTOR_FIELD
BT_FIELD_CLASS_TYPE_VARIANT_WITH_SIGNED_INTEGER_SELECTOR_FIELD
BT_FIELD_CLASS_TYPE_VARIANT_WITH_UNSIGNED_INTEGER_SELECTOR_FIELD
BT_FIELD_CLASS_VARIANT_WITHOUT_SELECTOR_FIELD_APPEND_OPTION_STATUS_MEMORY_ERROR
BT_FIELD_CLASS_VARIANT_WITHOUT_SELECTOR_FIELD_APPEND_OPTION_STATUS_OK
BT_FIELD_CLASS_VARIANT_WITH_SELECTOR_FIELD_APPEND_OPTION_STATUS_MEMORY_ERROR
BT_FIELD_CLASS_VARIANT_WITH_SELECTOR_FIELD_APPEND_OPTION_STATUS_OK
BT_FIELD_DYNAMIC_ARRAY_SET_LENGTH_STATUS_MEMORY_ERROR
BT_FIELD_DYNAMIC_ARRAY_SET_LENGTH_STATUS_OK
BT_FIELD_ENUMERATION_GET_MAPPING_LABELS_STATUS_MEMORY_ERROR
BT_FIELD_ENUMERATION_GET_MAPPING_LABELS_STATUS_OK
BT_FIELD_PATH_ITEM_TYPE_CURRENT_ARRAY_ELEMENT
BT_FIELD_PATH_ITEM_TYPE_CURRENT_OPTION_CONTENT
BT_FIELD_PATH_ITEM_TYPE_INDEX
BT_FIELD_PATH_SCOPE_EVENT_COMMON_CONTEXT
BT_FIELD_PATH_SCOPE_EVENT_PAYLOAD
BT_FIELD_PATH_SCOPE_EVENT_SPECIFIC_CONTEXT
BT_FIELD_PATH_SCOPE_PACKET_CONTEXT
BT_FIELD_STRING_APPEND_STATUS_MEMORY_ERROR
BT_FIELD_STRING_APPEND_STATUS_OK
BT_FIELD_STRING_SET_VALUE_STATUS_MEMORY_ERROR
BT_FIELD_STRING_SET_VALUE_STATUS_OK
BT_FIELD_VARIANT_SELECT_OPTION_STATUS_OK
BT_FUNC_STATUS_AGAIN
BT_FUNC_STATUS_END
BT_FUNC_STATUS_ERROR
BT_FUNC_STATUS_INTERRUPTED
BT_FUNC_STATUS_MEMORY_ERROR
BT_FUNC_STATUS_NOT_FOUND
BT_FUNC_STATUS_NO_MATCH
BT_FUNC_STATUS_OK
BT_FUNC_STATUS_OVERFLOW_ERROR
BT_FUNC_STATUS_UNKNOWN_OBJECT
BT_FUNC_STATUS_USER_ERROR
BT_GET_GREATEST_OPERATIVE_MIP_VERSION_STATUS_ERROR
BT_GET_GREATEST_OPERATIVE_MIP_VERSION_STATUS_MEMORY_ERROR
BT_GET_GREATEST_OPERATIVE_MIP_VERSION_STATUS_NO_MATCH
BT_GET_GREATEST_OPERATIVE_MIP_VERSION_STATUS_OK
BT_GRAPH_ADD_INTERRUPTER_STATUS_MEMORY_ERROR
BT_GRAPH_ADD_INTERRUPTER_STATUS_OK
BT_GRAPH_ADD_LISTENER_STATUS_MEMORY_ERROR
BT_GRAPH_ADD_LISTENER_STATUS_OK
BT_GRAPH_CONNECT_PORTS_STATUS_ERROR
BT_GRAPH_CONNECT_PORTS_STATUS_MEMORY_ERROR
BT_GRAPH_CONNECT_PORTS_STATUS_OK
BT_GRAPH_LISTENER_FUNC_STATUS_ERROR
BT_GRAPH_LISTENER_FUNC_STATUS_MEMORY_ERROR
BT_GRAPH_LISTENER_FUNC_STATUS_OK
BT_GRAPH_RUN_ONCE_STATUS_AGAIN
BT_GRAPH_RUN_ONCE_STATUS_END
BT_GRAPH_RUN_ONCE_STATUS_ERROR
BT_GRAPH_RUN_ONCE_STATUS_MEMORY_ERROR
BT_GRAPH_RUN_ONCE_STATUS_OK
BT_GRAPH_RUN_STATUS_AGAIN
BT_GRAPH_RUN_STATUS_ERROR
BT_GRAPH_RUN_STATUS_MEMORY_ERROR
BT_GRAPH_RUN_STATUS_OK
BT_GRAPH_SIMPLE_SINK_COMPONENT_CONSUME_FUNC_STATUS_AGAIN
BT_GRAPH_SIMPLE_SINK_COMPONENT_CONSUME_FUNC_STATUS_END
BT_GRAPH_SIMPLE_SINK_COMPONENT_CONSUME_FUNC_STATUS_ERROR
BT_GRAPH_SIMPLE_SINK_COMPONENT_CONSUME_FUNC_STATUS_MEMORY_ERROR
BT_GRAPH_SIMPLE_SINK_COMPONENT_CONSUME_FUNC_STATUS_OK
BT_GRAPH_SIMPLE_SINK_COMPONENT_INITIALIZE_FUNC_STATUS_ERROR
BT_GRAPH_SIMPLE_SINK_COMPONENT_INITIALIZE_FUNC_STATUS_MEMORY_ERROR
BT_GRAPH_SIMPLE_SINK_COMPONENT_INITIALIZE_FUNC_STATUS_OK
BT_LOGGING_LEVEL_DEBUG
BT_LOGGING_LEVEL_ERROR
BT_LOGGING_LEVEL_FATAL
BT_LOGGING_LEVEL_INFO
BT_LOGGING_LEVEL_NONE
BT_LOGGING_LEVEL_TRACE
BT_LOGGING_LEVEL_WARNING
BT_MESSAGE_ITERATOR_CAN_SEEK_BEGINNING_STATUS_AGAIN
BT_MESSAGE_ITERATOR_CAN_SEEK_BEGINNING_STATUS_ERROR
BT_MESSAGE_ITERATOR_CAN_SEEK_BEGINNING_STATUS_MEMORY_ERROR
BT_MESSAGE_ITERATOR_CAN_SEEK_BEGINNING_STATUS_OK
BT_MESSAGE_ITERATOR_CAN_SEEK_NS_FROM_ORIGIN_STATUS_AGAIN
BT_MESSAGE_ITERATOR_CAN_SEEK_NS_FROM_ORIGIN_STATUS_ERROR
BT_MESSAGE_ITERATOR_CAN_SEEK_NS_FROM_ORIGIN_STATUS_MEMORY_ERROR
BT_MESSAGE_ITERATOR_CAN_SEEK_NS_FROM_ORIGIN_STATUS_OK
BT_MESSAGE_ITERATOR_CLASS_CAN_SEEK_BEGINNING_METHOD_STATUS_AGAIN
BT_MESSAGE_ITERATOR_CLASS_CAN_SEEK_BEGINNING_METHOD_STATUS_ERROR
BT_MESSAGE_ITERATOR_CLASS_CAN_SEEK_BEGINNING_METHOD_STATUS_MEMORY_ERROR
BT_MESSAGE_ITERATOR_CLASS_CAN_SEEK_BEGINNING_METHOD_STATUS_OK
BT_MESSAGE_ITERATOR_CLASS_CAN_SEEK_NS_FROM_ORIGIN_METHOD_STATUS_AGAIN
BT_MESSAGE_ITERATOR_CLASS_CAN_SEEK_NS_FROM_ORIGIN_METHOD_STATUS_ERROR
BT_MESSAGE_ITERATOR_CLASS_CAN_SEEK_NS_FROM_ORIGIN_METHOD_STATUS_MEMORY_ERROR
BT_MESSAGE_ITERATOR_CLASS_CAN_SEEK_NS_FROM_ORIGIN_METHOD_STATUS_OK
BT_MESSAGE_ITERATOR_CLASS_INITIALIZE_METHOD_STATUS_ERROR
BT_MESSAGE_ITERATOR_CLASS_INITIALIZE_METHOD_STATUS_MEMORY_ERROR
BT_MESSAGE_ITERATOR_CLASS_INITIALIZE_METHOD_STATUS_OK
BT_MESSAGE_ITERATOR_CLASS_NEXT_METHOD_STATUS_AGAIN
BT_MESSAGE_ITERATOR_CLASS_NEXT_METHOD_STATUS_END
BT_MESSAGE_ITERATOR_CLASS_NEXT_METHOD_STATUS_ERROR
BT_MESSAGE_ITERATOR_CLASS_NEXT_METHOD_STATUS_MEMORY_ERROR
BT_MESSAGE_ITERATOR_CLASS_NEXT_METHOD_STATUS_OK
BT_MESSAGE_ITERATOR_CLASS_SEEK_BEGINNING_METHOD_STATUS_AGAIN
BT_MESSAGE_ITERATOR_CLASS_SEEK_BEGINNING_METHOD_STATUS_ERROR
BT_MESSAGE_ITERATOR_CLASS_SEEK_BEGINNING_METHOD_STATUS_MEMORY_ERROR
BT_MESSAGE_ITERATOR_CLASS_SEEK_BEGINNING_METHOD_STATUS_OK
BT_MESSAGE_ITERATOR_CLASS_SEEK_NS_FROM_ORIGIN_METHOD_STATUS_AGAIN
BT_MESSAGE_ITERATOR_CLASS_SEEK_NS_FROM_ORIGIN_METHOD_STATUS_ERROR
BT_MESSAGE_ITERATOR_CLASS_SEEK_NS_FROM_ORIGIN_METHOD_STATUS_MEMORY_ERROR
BT_MESSAGE_ITERATOR_CLASS_SEEK_NS_FROM_ORIGIN_METHOD_STATUS_OK
BT_MESSAGE_ITERATOR_CLASS_SET_METHOD_STATUS_OK
BT_MESSAGE_ITERATOR_CREATE_FROM_MESSAGE_ITERATOR_STATUS_ERROR
BT_MESSAGE_ITERATOR_CREATE_FROM_MESSAGE_ITERATOR_STATUS_MEMORY_ERROR
BT_MESSAGE_ITERATOR_CREATE_FROM_MESSAGE_ITERATOR_STATUS_OK
BT_MESSAGE_ITERATOR_CREATE_FROM_SINK_COMPONENT_STATUS_ERROR
BT_MESSAGE_ITERATOR_CREATE_FROM_SINK_COMPONENT_STATUS_MEMORY_ERROR
BT_MESSAGE_ITERATOR_CREATE_FROM_SINK_COMPONENT_STATUS_OK
BT_MESSAGE_ITERATOR_NEXT_STATUS_AGAIN
BT_MESSAGE_ITERATOR_NEXT_STATUS_END
BT_MESSAGE_ITERATOR_NEXT_STATUS_ERROR
BT_MESSAGE_ITERATOR_NEXT_STATUS_MEMORY_ERROR
BT_MESSAGE_ITERATOR_NEXT_STATUS_OK
BT_MESSAGE_ITERATOR_SEEK_BEGINNING_STATUS_AGAIN
BT_MESSAGE_ITERATOR_SEEK_BEGINNING_STATUS_ERROR
BT_MESSAGE_ITERATOR_SEEK_BEGINNING_STATUS_MEMORY_ERROR
BT_MESSAGE_ITERATOR_SEEK_BEGINNING_STATUS_OK
BT_MESSAGE_ITERATOR_SEEK_NS_FROM_ORIGIN_STATUS_AGAIN
BT_MESSAGE_ITERATOR_SEEK_NS_FROM_ORIGIN_STATUS_ERROR
BT_MESSAGE_ITERATOR_SEEK_NS_FROM_ORIGIN_STATUS_MEMORY_ERROR
BT_MESSAGE_ITERATOR_SEEK_NS_FROM_ORIGIN_STATUS_OK
BT_MESSAGE_STREAM_CLOCK_SNAPSHOT_STATE_KNOWN
BT_MESSAGE_STREAM_CLOCK_SNAPSHOT_STATE_UNKNOWN
BT_MESSAGE_TYPE_DISCARDED_EVENTS
BT_MESSAGE_TYPE_DISCARDED_PACKETS
BT_MESSAGE_TYPE_EVENT
BT_MESSAGE_TYPE_MESSAGE_ITERATOR_INACTIVITY
BT_MESSAGE_TYPE_PACKET_BEGINNING
BT_MESSAGE_TYPE_PACKET_END
BT_MESSAGE_TYPE_STREAM_BEGINNING
BT_MESSAGE_TYPE_STREAM_END
BT_PLUGIN_FIND_ALL_FROM_DIR_STATUS_ERROR
BT_PLUGIN_FIND_ALL_FROM_DIR_STATUS_MEMORY_ERROR
BT_PLUGIN_FIND_ALL_FROM_DIR_STATUS_NOT_FOUND
BT_PLUGIN_FIND_ALL_FROM_DIR_STATUS_OK
BT_PLUGIN_FIND_ALL_FROM_FILE_STATUS_ERROR
BT_PLUGIN_FIND_ALL_FROM_FILE_STATUS_MEMORY_ERROR
BT_PLUGIN_FIND_ALL_FROM_FILE_STATUS_NOT_FOUND
BT_PLUGIN_FIND_ALL_FROM_FILE_STATUS_OK
BT_PLUGIN_FIND_ALL_FROM_STATIC_STATUS_ERROR
BT_PLUGIN_FIND_ALL_FROM_STATIC_STATUS_MEMORY_ERROR
BT_PLUGIN_FIND_ALL_FROM_STATIC_STATUS_NOT_FOUND
BT_PLUGIN_FIND_ALL_FROM_STATIC_STATUS_OK
BT_PLUGIN_FIND_ALL_STATUS_ERROR
BT_PLUGIN_FIND_ALL_STATUS_MEMORY_ERROR
BT_PLUGIN_FIND_ALL_STATUS_NOT_FOUND
BT_PLUGIN_FIND_ALL_STATUS_OK
BT_PLUGIN_FIND_STATUS_ERROR
BT_PLUGIN_FIND_STATUS_MEMORY_ERROR
BT_PLUGIN_FIND_STATUS_NOT_FOUND
BT_PLUGIN_FIND_STATUS_OK
BT_PORT_TYPE_INPUT
BT_PORT_TYPE_OUTPUT
BT_QUERY_EXECUTOR_ADD_INTERRUPTER_STATUS_MEMORY_ERROR
BT_QUERY_EXECUTOR_ADD_INTERRUPTER_STATUS_OK
BT_QUERY_EXECUTOR_QUERY_STATUS_AGAIN
BT_QUERY_EXECUTOR_QUERY_STATUS_ERROR
BT_QUERY_EXECUTOR_QUERY_STATUS_MEMORY_ERROR
BT_QUERY_EXECUTOR_QUERY_STATUS_OK
BT_QUERY_EXECUTOR_QUERY_STATUS_UNKNOWN_OBJECT
BT_QUERY_EXECUTOR_SET_LOGGING_LEVEL_STATUS_OK
BT_SELF_COMPONENT_ADD_PORT_STATUS_ERROR
BT_SELF_COMPONENT_ADD_PORT_STATUS_MEMORY_ERROR
BT_SELF_COMPONENT_ADD_PORT_STATUS_OK
BT_SLEEP_TIME
BT_STREAM_CLASS_SET_DEFAULT_CLOCK_CLASS_STATUS_OK
BT_STREAM_CLASS_SET_FIELD_CLASS_STATUS_MEMORY_ERROR
BT_STREAM_CLASS_SET_FIELD_CLASS_STATUS_OK
BT_STREAM_CLASS_SET_NAME_STATUS_MEMORY_ERROR
BT_STREAM_CLASS_SET_NAME_STATUS_OK
BT_STREAM_SET_NAME_STATUS_MEMORY_ERROR
BT_STREAM_SET_NAME_STATUS_OK
BT_TRACE_ADD_LISTENER_STATUS_MEMORY_ERROR
BT_TRACE_ADD_LISTENER_STATUS_OK
BT_TRACE_CLASS_ADD_LISTENER_STATUS_MEMORY_ERROR
BT_TRACE_CLASS_ADD_LISTENER_STATUS_OK
BT_TRACE_CLASS_REMOVE_LISTENER_STATUS_MEMORY_ERROR
BT_TRACE_CLASS_REMOVE_LISTENER_STATUS_OK
BT_TRACE_REMOVE_LISTENER_STATUS_MEMORY_ERROR
BT_TRACE_REMOVE_LISTENER_STATUS_OK
BT_TRACE_SET_ENVIRONMENT_ENTRY_STATUS_MEMORY_ERROR
BT_TRACE_SET_ENVIRONMENT_ENTRY_STATUS_OK
BT_TRACE_SET_NAME_STATUS_MEMORY_ERROR
BT_TRACE_SET_NAME_STATUS_OK
BT_TRUE
BT_UTIL_CLOCK_CYCLES_TO_NS_FROM_ORIGIN_STATUS_OK
BT_UTIL_CLOCK_CYCLES_TO_NS_FROM_ORIGIN_STATUS_OVERFLOW_ERROR
BT_VALUE_ARRAY_APPEND_ELEMENT_STATUS_MEMORY_ERROR
BT_VALUE_ARRAY_APPEND_ELEMENT_STATUS_OK
BT_VALUE_ARRAY_SET_ELEMENT_BY_INDEX_STATUS_MEMORY_ERROR
BT_VALUE_ARRAY_SET_ELEMENT_BY_INDEX_STATUS_OK
BT_VALUE_COPY_STATUS_MEMORY_ERROR
BT_VALUE_COPY_STATUS_OK
BT_VALUE_MAP_EXTEND_STATUS_MEMORY_ERROR
BT_VALUE_MAP_EXTEND_STATUS_OK
BT_VALUE_MAP_FOREACH_ENTRY_CONST_FUNC_STATUS_ERROR
BT_VALUE_MAP_FOREACH_ENTRY_CONST_FUNC_STATUS_INTERRUPT
BT_VALUE_MAP_FOREACH_ENTRY_CONST_FUNC_STATUS_MEMORY_ERROR
BT_VALUE_MAP_FOREACH_ENTRY_CONST_FUNC_STATUS_OK
BT_VALUE_MAP_FOREACH_ENTRY_CONST_STATUS_ERROR
BT_VALUE_MAP_FOREACH_ENTRY_CONST_STATUS_INTERRUPT
BT_VALUE_MAP_FOREACH_ENTRY_CONST_STATUS_MEMORY_ERROR
BT_VALUE_MAP_FOREACH_ENTRY_CONST_STATUS_OK
BT_VALUE_MAP_FOREACH_ENTRY_FUNC_STATUS_ERROR
BT_VALUE_MAP_FOREACH_ENTRY_FUNC_STATUS_INTERRUPT
BT_VALUE_MAP_FOREACH_ENTRY_FUNC_STATUS_MEMORY_ERROR
BT_VALUE_MAP_FOREACH_ENTRY_FUNC_STATUS_OK
BT_VALUE_MAP_FOREACH_ENTRY_STATUS_ERROR
BT_VALUE_MAP_FOREACH_ENTRY_STATUS_INTERRUPT
BT_VALUE_MAP_FOREACH_ENTRY_STATUS_MEMORY_ERROR
BT_VALUE_MAP_FOREACH_ENTRY_STATUS_OK
BT_VALUE_MAP_INSERT_ENTRY_STATUS_MEMORY_ERROR
BT_VALUE_MAP_INSERT_ENTRY_STATUS_OK
BT_VALUE_STRING_SET_STATUS_MEMORY_ERROR
BT_VALUE_STRING_SET_STATUS_OK
BT_VALUE_TYPE_ARRAY
BT_VALUE_TYPE_BOOL
BT_VALUE_TYPE_INTEGER
BT_VALUE_TYPE_MAP
BT_VALUE_TYPE_NULL
BT_VALUE_TYPE_REAL
BT_VALUE_TYPE_SIGNED_INTEGER
BT_VALUE_TYPE_STRING
BT_VALUE_TYPE_UNSIGNED_INTEGER

Public Class Methods

_callbacks() click to toggle source
# File lib/babeltrace2/types.rb, line 664
def self._callbacks
  @@callbacks
end
_wrap_component_class_filter_input_port_connected_method(handle, method) click to toggle source
# File lib/babeltrace2/graph/component-class-dev.rb, line 242
def self._wrap_component_class_filter_input_port_connected_method(handle, method)
  _wrap_component_class_port_connected_method(
    BTSelfComponentFilter, BTSelfComponentPortInput, BTPortOutput,
    :input_port_connected_method, handle, method)
end
_wrap_component_class_filter_output_port_connected_method(handle, method) click to toggle source
# File lib/babeltrace2/graph/component-class-dev.rb, line 254
def self._wrap_component_class_filter_output_port_connected_method(handle, method)
  _wrap_component_class_port_connected_method(
    BTSelfComponentFilter, BTSelfComponentPortOutput, BTPortInput,
    :output_port_connected_method, handle, method)
end
_wrap_component_class_finalize_method(component_class, handle, method) click to toggle source
# File lib/babeltrace2/graph/component-class-dev.rb, line 51
def self._wrap_component_class_finalize_method(component_class, handle, method)
  id = handle.to_i
  method_wrapper = lambda { |self_component|
    begin
      method.call(component_class.new(self_component,
                                      retain: false, auto_release: false))
    rescue Exception => e
      puts e
    end
  }
  @@callbacks[id][:finalize_method] = method_wrapper
  method_wrapper
end
_wrap_component_class_get_supported_mip_versions_method(component_class_class, handle, method) click to toggle source
# File lib/babeltrace2/graph/component-class-dev.rb, line 89
def self._wrap_component_class_get_supported_mip_versions_method(component_class_class, handle, method)
  id = handle.to_i
  method_wrapper = lambda { |self_component_class, params, initialize_method_data, logging_level, supported_versions|
    begin
      method.call(component_class_class.new(self_component_class,
                    retain: false, auto_release: false),
                  BTValue.from_handle(params, retain: false, auto_release: false),
                  initialize_method_data, logging_level,
                  BTIntergerRangeSetUnsigned.new(supported_versions,
                    retain: false, auto_release: false))
      :BT_COMPONENT_CLASS_GET_SUPPORTED_MIP_VERSIONS_METHOD_STATUS_OK
    rescue Exception => e
      Babeltrace2.stack_ruby_error(e, source: self_component_class)
      :BT_COMPONENT_CLASS_GET_SUPPORTED_MIP_VERSIONS_METHOD_STATUS_ERROR
    end
  }
  @@callbacks[id][:get_supported_mip_versions_method] = method_wrapper
  method_wrapper
end
_wrap_component_class_initialize_method(component_class, component_configuration_class, handle, method) click to toggle source
# File lib/babeltrace2/graph/component-class-dev.rb, line 171
def self._wrap_component_class_initialize_method(component_class, component_configuration_class, handle, method)
  id = handle.to_i
  method_wrapper = lambda { |self_component, configuration, params, initialize_method_data|
    begin
      method.call(component_class.new(self_component,
                    retain: false, auto_release: false),
                  component_configuration_class.new(configuration),
                  BTValue.from_handle(params, retain: false, auto_release: false),
                  initialize_method_data)
      :BT_COMPONENT_CLASS_INITIALIZE_METHOD_STATUS_OK
    rescue Exception => e
      Babeltrace2.stack_ruby_error(e, source: self_component)
      :BT_COMPONENT_CLASS_INITIALIZE_METHOD_STATUS_ERROR
    end
  }
  @@callbacks[id][:initialize_method] = method_wrapper
  method_wrapper
end
_wrap_component_class_port_connected_method( self_component_class, self_component_port_class, port_class, category, handle, method) click to toggle source
# File lib/babeltrace2/graph/component-class-dev.rb, line 208
def self._wrap_component_class_port_connected_method(
           self_component_class, self_component_port_class, port_class,
           category, handle, method)
  id = handle.to_i
  method_wrapper = lambda { |self_component, self_port, other_port|
    begin
      method.call(self_component_class.new(self_component,
                    retain: false, auto_release: false),
                  self_component_port_class.new(self_port,
                    retain: false, auto_release: false),
                  port_class.new(other_port,
                    retain: false, auto_release: false))
      :BT_COMPONENT_CLASS_PORT_CONNECTED_METHOD_STATUS_OK
    rescue Exception => e
      Babeltrace2.stack_ruby_error(e, source: self_component)
      :BT_COMPONENT_CLASS_PORT_CONNECTED_METHOD_STATUS_ERROR
    end
  }
  @@callbacks[id][category] = method_wrapper
  method_wrapper
end
_wrap_component_class_query_method(component_class_class, handle, method) click to toggle source
# File lib/babeltrace2/graph/component-class-dev.rb, line 290
def self._wrap_component_class_query_method(component_class_class, handle, method)
  id = handle.to_i
  method_wrapper = lambda { |self_component_class, query_executor, object_name, params, method_data, result|
    begin
      rvalue = method.call(component_class_class.new(self_component_class,
                              retain: false, auto_release: false),
                            BTPrivateQueryExecutor.new(query_executor,
                              retain: false, auto_release: false),
                            object_name, BTValue.from_handle(params,
                              retain: false, auto_release: false), method_data)
      unless rvalue.nil?
        rvalue = BTValue.from_value(rvalue)
        bt_value_get_ref(rvalue.handle)
        result.write_pointer(rvalue.handle)
        :BT_COMPONENT_CLASS_QUERY_METHOD_STATUS_OK
      else
        :BT_COMPONENT_CLASS_QUERY_METHOD_STATUS_UNKNOWN_OBJECT
      end
    rescue Exception => e
      Babeltrace2.stack_ruby_error(e, source: self_component_class)
      :BT_COMPONENT_CLASS_QUERY_METHOD_STATUS_ERROR
    end      
  }
  @@callbacks[id][:query_method] = method_wrapper
  method_wrapper
end
_wrap_component_class_sink_consume_method(method) click to toggle source
# File lib/babeltrace2/graph/component-class-dev.rb, line 24
def self._wrap_component_class_sink_consume_method(method)
  lambda { |self_component|
    begin
      method.call(BTSelfComponentSink.new(self_component,
                                          retain: false, auto_release: false))
      :BT_COMPONENT_CLASS_SINK_CONSUME_METHOD_STATUS_OK
    rescue StopIteration
      :BT_COMPONENT_CLASS_SINK_CONSUME_METHOD_STATUS_END
    rescue Exception => e
      Babeltrace2.stack_ruby_error(e, source: self_component)
      :BT_COMPONENT_CLASS_SINK_CONSUME_METHOD_STATUS_ERROR
    end
  }
end
_wrap_component_class_sink_graph_is_configured_method(handle, method) click to toggle source
# File lib/babeltrace2/graph/component-class-dev.rb, line 125
def self._wrap_component_class_sink_graph_is_configured_method(handle, method)
  id = handle.to_i
  method_wrapper = lambda { |self_component|
    begin
      method.call(BTSelfComponentSink.new(self_component,
                    retain: false, auto_release: false))
      :BT_COMPONENT_CLASS_SINK_GRAPH_IS_CONFIGURED_METHOD_STATUS_OK
    rescue Exception => e
      Babeltrace2.stack_ruby_error(e, source: self_component)
      :BT_COMPONENT_CLASS_SINK_GRAPH_IS_CONFIGURED_METHOD_STATUS_ERROR
    end
  }
  @@callbacks[id][:graph_is_configured_method] = method_wrapper
  method_wrapper
end
_wrap_component_class_sink_input_port_connected_method(handle, method) click to toggle source
# File lib/babeltrace2/graph/component-class-dev.rb, line 266
def self._wrap_component_class_sink_input_port_connected_method(handle, method)
  _wrap_component_class_port_connected_method(
    BTSelfComponentSink, BTSelfComponentPortInput, BTPortOutput,
    :input_port_connected_method, handle, method)
end
_wrap_component_class_source_output_port_connected_method(handle, method) click to toggle source
# File lib/babeltrace2/graph/component-class-dev.rb, line 230
def self._wrap_component_class_source_output_port_connected_method(handle, method)
  _wrap_component_class_port_connected_method(
    BTSelfComponentSource, BTSelfComponentPortOutput, BTPortInput,
    :output_port_connected_method, handle, method)
end
_wrap_graph_component_port_added_listener_func( component_class, port_class, category, handle, method) click to toggle source
# File lib/babeltrace2/graph/graph.rb, line 236
def self._wrap_graph_component_port_added_listener_func(
           component_class, port_class, category, handle, method)
  id = handle.to_i
  method_wrapper = lambda { |component, port, user_data|
    begin
      method.call(component_class.new(component, retain: false, auto_release: false),
                  port_class.new(port, retain: false, auto_release: false),
                  user_data)
      :BT_GRAPH_LISTENER_FUNC_STATUS_OK
    rescue Exception => e
      Babeltrace2.stack_ruby_error(e, source: component)
      :BT_GRAPH_LISTENER_FUNC_STATUS_ERROR
    end
  }
  arr = @@callbacks[id][category]
  if arr.nil?
    arr = []
    @@callbacks[id][category] = arr
  end
  arr.push method_wrapper
  method_wrapper
end
_wrap_graph_filter_component_input_port_added_listener_func(handle, method) click to toggle source
# File lib/babeltrace2/graph/graph.rb, line 259
def self._wrap_graph_filter_component_input_port_added_listener_func(handle, method)
  _wrap_graph_component_port_added_listener_func(
    BTComponentFilter, BTPortInput, :filter_component_input_port_added_listener_funcs,
    handle, method)
end
_wrap_graph_filter_component_output_port_added_listener_func(handle, method) click to toggle source
# File lib/babeltrace2/graph/graph.rb, line 310
def self._wrap_graph_filter_component_output_port_added_listener_func(handle, method)
  _wrap_graph_component_port_added_listener_func(
    BTComponentFilter, BTPortOutput, :filter_component_output_port_added_listener_funcs,
    handle, method)
end
_wrap_graph_simple_sink_component_consume_func(method) click to toggle source
# File lib/babeltrace2/graph/graph.rb, line 111
def self._wrap_graph_simple_sink_component_consume_func(method)
  lambda { |message_iterator, user_data|
    begin
      method.call(BTMessageIterator.new(message_iterator,
                    retain: false, auto_release: false), user_data)
      :BT_GRAPH_SIMPLE_SINK_COMPONENT_CONSUME_FUNC_STATUS_OK
    rescue StopIteration
      :BT_GRAPH_SIMPLE_SINK_COMPONENT_CONSUME_FUNC_STATUS_END
    rescue Exception => e
      Babeltrace2.stack_ruby_error(e, source: message_iterator)
      :BT_GRAPH_SIMPLE_SINK_COMPONENT_CONSUME_FUNC_STATUS_ERROR
    end
  }
end
_wrap_graph_simple_sink_component_initialize_func(method) click to toggle source
# File lib/babeltrace2/graph/graph.rb, line 76
def self._wrap_graph_simple_sink_component_initialize_func(method)
  lambda { |message_iterator, user_data|
    begin
      method.call(BTMessageIterator.new(message_iterator,
                    retain: false, auto_release: false), user_data)
      :BT_GRAPH_SIMPLE_SINK_COMPONENT_INITIALIZE_FUNC_STATUS_OK
    rescue Exception => e
      Babeltrace2.stack_ruby_error(e, source: message_iterator)
      :BT_GRAPH_SIMPLE_SINK_COMPONENT_INITIALIZE_FUNC_STATUS_ERROR
    end
  }
end
_wrap_graph_sink_component_input_port_added_listener_func(handle, method) click to toggle source
# File lib/babeltrace2/graph/graph.rb, line 276
def self._wrap_graph_sink_component_input_port_added_listener_func(handle, method)
  _wrap_graph_component_port_added_listener_func(
    BTComponentSink, BTPortInput, :sink_component_input_port_added_listener_funcs,
    handle, method)
end
_wrap_graph_source_component_output_port_added_listener_func(handle, method) click to toggle source
# File lib/babeltrace2/graph/graph.rb, line 293
def self._wrap_graph_source_component_output_port_added_listener_func(handle, method)
  _wrap_graph_component_port_added_listener_func(
    BTComponentSource, BTPortOutput, :source_component_output_port_added_listener_funcs,
    handle, method)
end
_wrap_message_iterator_class_can_seek_beginning_method(handle, method) click to toggle source
# File lib/babeltrace2/graph/message-iterator-class.rb, line 23
def self._wrap_message_iterator_class_can_seek_beginning_method(handle, method)
  id = handle.to_i
  method_wrapper = lambda { |self_message_iterator, can_seek_beginning|
    begin
      csb = method.call(BTSelfMessageIterator.new(self_message_iterator,
                          retain: false, auto_release: false))
      can_seek_beginning.write_int(csb ? BT_TRUE : BT_FALSE)
      :BT_MESSAGE_ITERATOR_CLASS_CAN_SEEK_BEGINNING_METHOD_STATUS_OK
    rescue Exception => e
      Babeltrace2.stack_ruby_error(e, source: self_message_iterator)
      :BT_MESSAGE_ITERATOR_CLASS_CAN_SEEK_BEGINNING_METHOD_STATUS_ERROR
    end
  }
  @@callbacks[id][:can_seek_beginning_method] = method_wrapper
  method_wrapper
end
_wrap_message_iterator_class_can_seek_ns_from_origin_method(handle, method) click to toggle source
# File lib/babeltrace2/graph/message-iterator-class.rb, line 60
def self._wrap_message_iterator_class_can_seek_ns_from_origin_method(handle, method)
  id = handle.to_i
  method_wrapper = lambda { |self_message_iterator, ns_from_origin, can_seek_beginning|
    begin
      csb = method.call(BTSelfMessageIterator.new(self_message_iterator,
                          retain: false, auto_release: false), ns_from_origin)
      can_seek_beginning.write_int(csb ? BT_TRUE : BT_FALSE)
      :BT_MESSAGE_ITERATOR_CLASS_CAN_SEEK_NS_FROM_ORIGIN_METHOD_STATUS_OK
    rescue Exception => e
      Babeltrace2.stack_ruby_error(e, source: self_message_iterator)
      :BT_MESSAGE_ITERATOR_CLASS_CAN_SEEK_NS_FROM_ORIGIN_METHOD_STATUS_ERROR
    end
  }
  @@callbacks[id][:can_seek_ns_from_origin_method] = method_wrapper
  method_wrapper
end
_wrap_message_iterator_class_finalize_method(handle, method) click to toggle source
# File lib/babeltrace2/graph/message-iterator-class.rb, line 81
def self._wrap_message_iterator_class_finalize_method(handle, method)
  id = handle.to_i
  method_wrapper = lambda { |self_message_iterator|
    begin
      method.call(BTSelfMessageIterator.new(self_message_iterator,
                          retain: false, auto_release: false))
    rescue Exception => e
      puts e
    end
  }
  @@callbacks[id][:finalize_method] = method_wrapper
  method_wrapper
end
_wrap_message_iterator_class_initialize_method(handle, method) click to toggle source
# File lib/babeltrace2/graph/message-iterator-class.rb, line 113
def self._wrap_message_iterator_class_initialize_method(handle, method)
  id = handle.to_i
  method_wrapper = lambda { |self_message_iterator, configuration, port|
    begin
      method.call(BTSelfMessageIterator.new(self_message_iterator,
                    retain: false, auto_release: false),
                  BTSelfMessageIteratorConfiguration.new(configuration),
                  BTSelfComponentPortOutput.new(port,
                    retain: false, auto_release: false))
      :BT_MESSAGE_ITERATOR_CLASS_INITIALIZE_METHOD_STATUS_OK
    rescue Exception => e
      Babeltrace2.stack_ruby_error(e, source: self_message_iterator)
      :BT_MESSAGE_ITERATOR_CLASS_INITIALIZE_METHOD_STATUS_ERROR
    end
  }
  @@callbacks[id][:initialize_method] = method_wrapper
  method_wrapper
end
_wrap_message_iterator_class_next_method(method) click to toggle source
# File lib/babeltrace2/graph/message-iterator-class.rb, line 156
def self._wrap_message_iterator_class_next_method(method)
  lambda { |self_message_iterator, messages, capacity, count|
    begin
      mess = method.call(BTSelfMessageIterator.new(self_message_iterator,
                           retain: false, auto_release: false),
                         capacity)
      if mess.size <= capacity
        mess.each { |m| bt_message_get_ref(m.handle) }
        messages.write_array_of_pointer(mess.collect(&:handle))
        count.write_uint64(mess.size)
        :BT_MESSAGE_ITERATOR_CLASS_NEXT_METHOD_STATUS_OK
      else
        puts "Too many messages for capacity"
        :BT_MESSAGE_ITERATOR_CLASS_NEXT_METHOD_STATUS_ERROR
      end
    rescue StopIteration
      :BT_MESSAGE_ITERATOR_CLASS_NEXT_METHOD_STATUS_END
    rescue Exception => e
      Babeltrace2.stack_ruby_error(e, source: self_message_iterator)
      :BT_MESSAGE_ITERATOR_CLASS_NEXT_METHOD_STATUS_ERROR
    end
  }
end
_wrap_message_iterator_class_seek_beginning_method(handle, method) click to toggle source
# File lib/babeltrace2/graph/message-iterator-class.rb, line 199
def self._wrap_message_iterator_class_seek_beginning_method(handle, method)
  id = handle.to_i
  method_wrapper = lambda { |self_message_iterator|
    begin
      method.call(BTSelfMessageIterator.new(self_message_iterator,
                    retain: false, auto_release: false))
      :BT_MESSAGE_ITERATOR_CLASS_SEEK_BEGINNING_METHOD_STATUS_OK
    rescue Exception => e
      Babeltrace2.stack_ruby_error(e, source: self_message_iterator)
      :BT_MESSAGE_ITERATOR_CLASS_SEEK_BEGINNING_METHOD_STATUS_ERROR
    end
  }
  @@callbacks[id][:seek_beginning_method] = method_wrapper
  method_wrapper
end
_wrap_message_iterator_class_seek_ns_from_origin_method(handle, method) click to toggle source
# File lib/babeltrace2/graph/message-iterator-class.rb, line 235
def self._wrap_message_iterator_class_seek_ns_from_origin_method(handle, method)
  id = handle.to_i
  method_wrapper = lambda { |self_message_iterator, ns_from_origin|
    begin
      method.call(BTSelfMessageIterator.new(self_message_iterator,
        retain: false, auto_release: false), ns_from_origin)
      :BT_MESSAGE_ITERATOR_CLASS_SEEK_NS_FROM_ORIGIN_METHOD_STATUS_OK
    rescue Exception => e
      Babeltrace2.stack_ruby_error(e, source: self_message_iterator)
      :BT_MESSAGE_ITERATOR_CLASS_SEEK_NS_FROM_ORIGIN_METHOD_STATUS_ERROR
    end
  }
  @@callbacks[id][:seek_ns_from_origin_method] = method_wrapper
  method_wrapper
end
_wrap_trace_class_destruction_listener_func(method) click to toggle source
# File lib/babeltrace2/trace-ir/trace-class.rb, line 51
def self._wrap_trace_class_destruction_listener_func(method)
  method_wrapper = lambda { |trace_class, user_data|
    begin
      method.call(BTTraceClass.new(trace_class,
                    retain: false, auto_release: false), user_data)
    rescue Exception => e
      puts e
    end
  }
  method_wrapper
end
_wrap_trace_destruction_listener_func(method) click to toggle source
# File lib/babeltrace2/trace-ir/trace.rb, line 103
def self._wrap_trace_destruction_listener_func(method)
  method_wrapper = lambda { |trace, user_data|
    begin
      method.call(BTTrace.new(trace,
                  retain: false, auto_release: false), user_data)
    rescue Exception => e
      puts e
    end
  }
  method_wrapper
end
load_plugin_file(path) click to toggle source
# File lib/babeltrace2/plugin/plugin-dev.rb, line 321
def self.load_plugin_file(path)
  return [] unless File.exist?(path)
  hash = Digest::SHA256.file(path).to_s
  return @@native_plugins[hash] if @@native_plugins.include?(hash)
  @@user_plugins = []
  str = ""
  str << "module Mod#{hash}; class << self; def register_user_plugin(plugin); Babeltrace2.register_user_plugin(plugin); end; alias register_plugin register_user_plugin; alias register register_user_plugin; end; "
  str << File.read(path) << "; end"
  eval(str, nil, path)
  @@user_plugins.each { |p|
    p.path = path unless p.path
  }
  @@native_plugins[hash] = @@user_plugins
end
process_error(code = :BT_FUNC_STATUS_MEMORY_ERROR) click to toggle source
# File lib/babeltrace2/error-reporting.rb, line 424
def self.process_error(code = :BT_FUNC_STATUS_MEMORY_ERROR)
  err = BTCurrentThread.take_error
  if err
    klass, message, backtrace = err.exception_params
    err.release
  else
    klass, message, backtrace = nil, nil, []
  end
  if klass
    klass = eval(klass)
    e = klass.new(message)
  else
    message = "#{code}" unless message
    e = Error.new(message)
  end
  e.set_backtrace(backtrace+caller_locations.collect(&:to_s))
  e
end
register_user_plugin(plugin) click to toggle source
# File lib/babeltrace2/plugin/plugin-dev.rb, line 317
def self.register_user_plugin(plugin)
  @@user_plugins.push(plugin)
end
stack_error(source, message, absolute_path, lineno) click to toggle source
# File lib/babeltrace2/error-reporting.rb, line 374
def self.stack_error(source, message, absolute_path, lineno)
  case source
  when BTSelfComponent, BTSelfComponentHandle
    BTCurrentThread::Error.append_cause_from_component(
      source, message, file_name: absolute_path, line_number: lineno)
  when BTSelfComponentClass, BTSelfComponentClassHandle
    BTCurrentThread::Error.append_cause_from_component_class(
      source, message, file_name: absolute_path, line_number: lineno)
  when BTSelfMessageIterator, BTSelfMessageIteratorHandle
    BTCurrentThread::Error.append_cause_from_message_iterator(
      source, message, file_name: absolute_path, line_number: lineno)
  else
    BTCurrentThread::Error.append_cause_from_unknown(
      "babeltrace2-ruby", message, file_name: absolute_path, line_number: lineno)
  end
end
stack_ruby_error(err, source: nil) click to toggle source
# File lib/babeltrace2/error-reporting.rb, line 391
def self.stack_ruby_error(err, source: nil)
  mess = "#{err.class}: #{err.message}"
  backtrace_locations = err.backtrace_locations
  if backtrace_locations
    err.backtrace_locations.each { |loc|
      lineno = loc.lineno
      absolute_path = loc.absolute_path
      label = loc.label
      message = ""
      if label
        message << ":in `" << label << "'"
      else
        message << "."
      end
      message << " :: " << mess if mess
      stack_error(source, message, absolute_path, lineno)
      mess = nil
    }
  else
    err.backtrace.each { |loc|
      m = loc.match(/(.*?):(\d*)([\.:].*)/)
      if m
        absolute_path = m[1]
        lineno = m[2].to_i
        message = m[3]
        message << " :: " << mess if mess
        stack_error(source, message, absolute_path, lineno)
        mess = nil
      end
    }
  end
end
verbose=(val) click to toggle source
# File lib/babeltrace2/error-reporting.rb, line 13
def self.verbose=(val)
  @verbose = !!val
end
verbose?() click to toggle source
# File lib/babeltrace2/error-reporting.rb, line 9
def self.verbose?
  !!@verbose
end