API doc: add notes about automatic resolving
[babeltrace.git] / include / babeltrace / ctf-ir / event.h
index dc43392125152137ae95c18cf9e84fa072085099..fecab1547cd349fa928006710b68461260146479 100644 (file)
@@ -141,6 +141,17 @@ can set them with bt_ctf_event_set_header(),
 bt_ctf_event_set_stream_event_context(),
 bt_ctf_event_set_event_context(), and bt_ctf_event_set_payload_field().
 
+This function tries to resolve the needed
+\link ctfirfieldtypes CTF IR field type\endlink of the dynamic field
+types that are found anywhere in the context or payload field
+types of \p event_class and in the root field types of the
+parent stream class of \p event_class. If any automatic resolving fails,
+this function fails. This means that, if any dynamic field type need
+a field type which should be found in the trace packet header root
+field type, and if the parent stream class of \p event_class was not
+added to a \link ctfirtraceclass CTF IR trace class\endlink yet
+with bt_ctf_trace_add_stream_class(), then this function fails.
+
 @param[in] event_class CTF IR event class to use to create the
                        CTF IR event.
 @returns               Created event object, or \c NULL on error.
This page took 0.023517 seconds and 4 git commands to generate.