*/
#define _GNU_SOURCE
+#define _LGPL_SOURCE
#include <limits.h>
#include <inttypes.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <urcu.h>
+#include <dirent.h>
+#include <sys/types.h>
#include <common/common.h>
#include <common/sessiond-comm/sessiond-comm.h>
* NULL is returned. This must be called with the session lock held using
* session_lock_list and session_unlock_list.
*/
-struct ltt_session *session_find_by_name(char *name)
+struct ltt_session *session_find_by_name(const char *name)
{
struct ltt_session *iter;
del_session_list(session);
pthread_mutex_destroy(&session->lock);
- consumer_destroy_output(session->consumer);
+ consumer_output_put(session->consumer);
snapshot_destroy(&session->snapshot);
free(session);