added to a stream class yet or on error.
@prenotnull{event_class}
+@postrefcountsame{event_class}
@postsuccessrefcountretinc
@sa bt_ctf_stream_class_add_event_class(): Add an event class to
or \c NULL on error.
@prenotnull{event_class}
+@postrefcountsame{event_class}
@postsuccessrefcountretinc
@sa bt_ctf_event_class_set_context_type(): Sets the context field
or \c NULL on error.
@prenotnull{event_class}
+@postrefcountsame{event_class}
@postsuccessrefcountretinc
@sa bt_ctf_event_class_set_payload_type(): Sets the payload field
@prenotnull{name}
@postrefcountsame{event_class}
@postsuccessrefcountretinc
-
*/
extern struct bt_ctf_field_type *bt_ctf_event_class_get_field_by_name(
struct bt_ctf_event_class *event_class, const char *name);
or \c NULL on error.
@prenotnull{event}
+@postrefcountsame{event}
@postsuccessrefcountretinc
*/
extern struct bt_ctf_event_class *bt_ctf_event_get_class(
\p event or on error.
@prenotnull{event}
+@postrefcountsame{event}
@postsuccessrefcountretinc
@sa bt_ctf_event_set_packet(): Associates a given event to a given
@returns Parent stream of \p event, or \c NULL on error.
@prenotnull{event}
+@postrefcountsame{event}
@postsuccessrefcountretinc
*/
extern struct bt_ctf_stream *bt_ctf_event_get_stream(
field is not set or on error.
@prenotnull{event}
+@postrefcountsame{event}
@postsuccessrefcountretinc
@sa bt_ctf_event_get_header(): Sets the stream event header
field is not set or on error.
@prenotnull{event}
+@postrefcountsame{event}
@postsuccessrefcountretinc
@sa bt_ctf_event_set_stream_event_context(): Sets the stream event
the event context field is not set or on error.
@prenotnull{event}
+@postrefcountsame{event}
@postsuccessrefcountretinc
@sa bt_ctf_event_set_event_context(): Sets the event context field of a
the event payload field is not set or on error.
@prenotnull{event}
+@postrefcountsame{event}
@postsuccessrefcountretinc
@sa bt_ctf_event_set_payload_field(): Sets the event payload field of a
@returns Parent stream of \p packet, or \c NULL on error.
@prenotnull{packet}
+@postrefcountsame{packet}
@postsuccessrefcountretinc
*/
extern struct bt_ctf_stream *bt_ctf_packet_get_stream(
field is not set or on error.
@prenotnull{packet}
+@postrefcountsame{packet}
@postsuccessrefcountretinc
@sa bt_ctf_packet_set_header(): Sets the trace packet header
field is not set or on error.
@prenotnull{packet}
+@postrefcountsame{packet}
@postsuccessrefcountretinc
@sa bt_ctf_packet_set_context(): Sets the stream packet context
added to a trace class yet or on error.
@prenotnull{stream_class}
+@postrefcountsame{stream_class}
@postsuccessrefcountretinc
@sa bt_ctf_trace_add_stream_class(): Add a stream class to
or \c NULL on error.
@prenotnull{stream_class}
+@postrefcountsame{stream_class}
@postsuccessrefcountretinc
@sa bt_ctf_stream_class_set_packet_context_type(): Sets the packet
or \c NULL on error.
@prenotnull{stream_class}
+@postrefcountsame{stream_class}
@postsuccessrefcountretinc
@sa bt_ctf_stream_class_set_event_header_type(): Sets the event
\p stream_class, or \c NULL on error.
@prenotnull{stream_class}
+@postrefcountsame{stream_class}
@postsuccessrefcountretinc
@sa bt_ctf_stream_class_set_event_context_type(): Sets the per-stream
or \c NULL on error.
@prenotnull{stream}
+@postrefcountsame{stream}
@postsuccessrefcountretinc
*/
extern struct bt_ctf_stream_class *bt_ctf_stream_get_class(
or \c NULL on error.
@prenotnull{trace_class}
+@postrefcountsame{trace_class}
@postsuccessrefcountretinc
@sa bt_ctf_trace_set_packet_header_type(): Sets the packet
@prenotnull{trace_class}
@prenotnull{listener}
+@postrefcountsame{trace_class}
*/
extern int bt_ctf_trace_add_listener(struct bt_ctf_trace *trace_class,
bt_ctf_listener_cb listener, void *data);
@brief Returns the CTF IR object wrapped by the CTF IR object
wrapper \p object.
+The reference count of \p object is \em not incremented by this
+function. On success, you must call bt_get() on the return value to
+have your own reference.
+
@param[in] object Object wrapper of which to get the wrapped
CTF IR object.
@returns CTF IR object wrapped by \p object.
@prenotnull{object}
+@post The reference count of the returned object is not modified.
@sa bt_ctf_object_get_type(): Returns the type of a given
CTF IR object wrapper.