Cleanup: remove struct lttng_handle from tracker.h
[lttng-tools.git] / include / lttng / tracker.h
index a66a2cfce4dea3701fd0cb53fe25329bdd12eb78..51e1680c1e2da197eb6fe5575439c9508a85406c 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <lttng/constant.h>
 #include <common/macros.h>
+#include <lttng/session.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -49,7 +50,6 @@ enum lttng_tracker_id_status {
        LTTNG_TRACKER_ID_STATUS_UNSET = 1,
 };
 
-struct lttng_handle;
 struct lttng_tracker_id;
 struct lttng_tracker_ids;
 
@@ -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.024015 seconds and 5 git commands to generate.