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);