+ * Create a brand new session using name.
+ */
+int lttng_create_session(const char *name, const char *path)
+{
+ copy_string(lsm.session.name, name, NAME_MAX);
+ copy_string(lsm.session.path, path, PATH_MAX);
+ return ask_sessiond(LTTNG_CREATE_SESSION, NULL);
+}
+
+/*
+ * Destroy session using name.
+ */
+int lttng_destroy_session(const char *name)
+{
+ copy_string(lsm.session.name, name, NAME_MAX);
+ return ask_sessiond(LTTNG_DESTROY_SESSION, NULL);
+}
+
+/*
+ * Ask the session daemon for all available sessions.