This function only casts t->context to (struct session *). It will
avoid some ugly and unsafe casts in upcoming changes.
struct track_ctr_prm *prm,
struct proxy *defpx, char **err);
+/* returns the session from a void *owner */
+static inline struct session *session_from_task(struct task *t)
+{
+ return (struct session *)t->context;
+}
+
/* Remove the refcount from the session to the tracked counters, and clear the
* pointer to ensure this is only performed once. The caller is responsible for
* ensuring that the pointer is valid first.