Refactoring: move count to an output parameter
[lttng-tools.git] / include / lttng / tracker.h
index a66a2cfce4dea3701fd0cb53fe25329bdd12eb78..1da12f82be6909bbbf183e449a26fe9647b44530 100644 (file)
@@ -223,8 +223,12 @@ extern const struct lttng_tracker_id *lttng_tracker_ids_get_at_index(
 
 /*
  * Get the number of tracker id in a tracker id list.
+ *
+ * Return LTTNG_TRACKER_ID_STATUS on sucess,
+ * LTTNG_TRACKER_ID_STATUS_INVALID when passed invalid parameters.
  */
-extern int lttng_tracker_ids_get_count(const struct lttng_tracker_ids *ids);
+extern enum lttng_tracker_id_status lttng_tracker_ids_get_count(
+               const struct lttng_tracker_ids *ids, unsigned int *count);
 
 /*
  * Destroy a tracker id list.
This page took 0.023786 seconds and 5 git commands to generate.