*/
#define _GNU_SOURCE
+#define _LGPL_SOURCE
#include <common/common.h>
#include "connection.h"
connection_free(conn);
}
+/*
+ * Must be called with a read side lock held. The read side lock must be
+ * kept until the returned relay_connection is no longer in use.
+ */
struct relay_connection *connection_find_by_sock(struct lttng_ht *ht, int sock)
{
struct lttng_ht_node_ulong *node;