X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf-ir%2Fstream-class.h;fp=include%2Fbabeltrace%2Fctf-ir%2Fstream-class.h;h=6a0e2e135f11fa1df2d961e2a1f0affedb4aa4e9;hb=9ac68eb139149d2768848dae5e263cc5a755d439;hp=dc7b35d6ec436fd99005919ad06d19ac054bb87e;hpb=5774b889f257d1756a09ef720f22b8d7081e06fd;p=babeltrace.git diff --git a/include/babeltrace/ctf-ir/stream-class.h b/include/babeltrace/ctf-ir/stream-class.h index dc7b35d6..6a0e2e13 100644 --- a/include/babeltrace/ctf-ir/stream-class.h +++ b/include/babeltrace/ctf-ir/stream-class.h @@ -274,13 +274,14 @@ of the trace class to which you eventually add \p stream_class. @prenotnull{stream_class} @prehot{stream_class} +@pre \p id is lesser than or equal to 9223372036854775807 (\c INT64_MAX). @postrefcountsame{stream_class} @sa bt_ctf_stream_class_get_id(): Returns the numeric ID of a given stream class. */ extern int bt_ctf_stream_class_set_id( - struct bt_ctf_stream_class *stream_class, uint32_t id); + struct bt_ctf_stream_class *stream_class, uint64_t id); /** @} */ @@ -498,8 +499,8 @@ extern int64_t bt_ctf_stream_class_get_event_class_count( @sa bt_ctf_stream_class_get_event_class_by_name(): Finds an event class by name. */ -extern struct bt_ctf_event_class *bt_ctf_stream_class_get_event_class( - struct bt_ctf_stream_class *stream_class, int index); +extern struct bt_ctf_event_class *bt_ctf_stream_class_get_event_class_by_index( + struct bt_ctf_stream_class *stream_class, uint64_t index); /** @brief Returns the event class named \c name found in the CTF IR stream @@ -538,7 +539,7 @@ extern struct bt_ctf_event_class *bt_ctf_stream_class_get_event_class_by_name( by name. */ extern struct bt_ctf_event_class *bt_ctf_stream_class_get_event_class_by_id( - struct bt_ctf_stream_class *stream_class, uint32_t id); + struct bt_ctf_stream_class *stream_class, uint64_t id); /** @brief Adds the CTF IR event class \p event_class to the