X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf-ir%2Ftrace.h;h=91b09f80eb409be76244dd7c4ff55a333344c194;hb=3230ee6b4f3a704958b761daecae835c56938bc9;hp=af8b9fccf1359cba439ee8bbbb861a153f32c875;hpb=43350437a513e8ed1a158ff3013eb5efefd3dc3b;p=babeltrace.git diff --git a/include/babeltrace/ctf-ir/trace.h b/include/babeltrace/ctf-ir/trace.h index af8b9fcc..91b09f80 100644 --- a/include/babeltrace/ctf-ir/trace.h +++ b/include/babeltrace/ctf-ir/trace.h @@ -725,37 +725,6 @@ extern int bt_ctf_trace_add_stream_class(struct bt_ctf_trace *trace_class, @{ */ -/** -@brief User function type to use with bt_ctf_trace_add_listener(). - -@param[in] obj New CTF IR object which is part of the trace - class hierarchy. -@param[in] data User data. - -@prenotnull{obj} -*/ -typedef void (*bt_ctf_listener_cb)(struct bt_ctf_object *obj, void *data); - -/** -@brief Adds the trace class modification listener \p listener to - the CTF IR trace class \p trace_class. - -Once you add \p listener to \p trace_class, whenever \p trace_class -is modified, \p listener is called with the new element and with -\p data (user data). - -@param[in] trace_class Trace class to which to add \p listener. -@param[in] listener Modification listener function. -@param[in] data User data. -@returns 0 on success, or a negative value on error. - -@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 Accepts the visitor \p visitor to visit the hierarchy of the CTF IR trace class \p trace_class.